Skip to content

Commit 9c0042b

Browse files
committed
MINOR: order in zones and spacezones
1 parent 57b49f4 commit 9c0042b

File tree

7 files changed

+78
-30
lines changed

7 files changed

+78
-30
lines changed

package/src/apis/CollaborationApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ export class CollaborationApi extends runtime.BaseAPI {
15641564
}
15651565

15661566
/**
1567-
* Create a document. If the document is one of {\'POINT_CLOUD\', \'GLTF\', \'DXF\', \'IFC\', \'OBJ\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
1567+
* Create a document. If the document is one of {\'IFC\', \'GLTF\', \'POINT_CLOUD\', \'DWG\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
15681568
* Create a document
15691569
*/
15701570
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
@@ -1667,7 +1667,7 @@ export class CollaborationApi extends runtime.BaseAPI {
16671667
}
16681668

16691669
/**
1670-
* Create a document. If the document is one of {\'POINT_CLOUD\', \'GLTF\', \'DXF\', \'IFC\', \'OBJ\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
1670+
* Create a document. If the document is one of {\'IFC\', \'GLTF\', \'POINT_CLOUD\', \'DWG\', \'OBJ\', \'DXF\'}, a model will be created and attached to this document Required scopes: document:write
16711671
* Create a document
16721672
*/
16731673
async createDocument(cloud_pk: number, project_pk: number, name: string, file: Blob, parent_id?: number | null, file_name?: string, description?: string | null, model_source?: CreateDocumentModelSourceEnum, ifc_source?: CreateDocumentIfcSourceEnum, successor_of?: number, initOverrides?: RequestInit): Promise<Document> {

package/src/models/PatchedZoneRequest.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
*/
1414

1515
import { exists, mapValues } from '../runtime';
16-
import {
17-
SpaceRequest,
18-
SpaceRequestFromJSON,
19-
SpaceRequestFromJSONTyped,
20-
SpaceRequestToJSON,
21-
} from './SpaceRequest';
2216
import {
2317
ZoneRequest,
2418
ZoneRequestFromJSON,
2519
ZoneRequestFromJSONTyped,
2620
ZoneRequestToJSON,
2721
} from './ZoneRequest';
22+
import {
23+
ZoneSpaceRequest,
24+
ZoneSpaceRequestFromJSON,
25+
ZoneSpaceRequestFromJSONTyped,
26+
ZoneSpaceRequestToJSON,
27+
} from './ZoneSpaceRequest';
2828

2929
/**
3030
* Adds nested create feature
@@ -58,16 +58,22 @@ export interface PatchedZoneRequest {
5858
parent_id?: number;
5959
/**
6060
*
61-
* @type {Array<SpaceRequest>}
61+
* @type {Array<ZoneSpaceRequest>}
6262
* @memberof PatchedZoneRequest
6363
*/
64-
spaces?: Array<SpaceRequest>;
64+
spaces?: Array<ZoneSpaceRequest>;
6565
/**
6666
*
6767
* @type {string}
6868
* @memberof PatchedZoneRequest
6969
*/
7070
color?: string | null;
71+
/**
72+
*
73+
* @type {number}
74+
* @memberof PatchedZoneRequest
75+
*/
76+
order?: number;
7177
}
7278

7379
export function PatchedZoneRequestFromJSON(json: any): PatchedZoneRequest {
@@ -84,8 +90,9 @@ export function PatchedZoneRequestFromJSONTyped(json: any, ignoreDiscriminator:
8490
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
8591
'zones': !exists(json, 'zones') ? undefined : ((json['zones'] as Array<any>).map(ZoneRequestFromJSON)),
8692
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
87-
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(SpaceRequestFromJSON)),
93+
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(ZoneSpaceRequestFromJSON)),
8894
'color': !exists(json, 'color') ? undefined : json['color'],
95+
'order': !exists(json, 'order') ? undefined : json['order'],
8996
};
9097
}
9198

@@ -102,8 +109,9 @@ export function PatchedZoneRequestToJSON(value?: PatchedZoneRequest | null): any
102109
'uuid': value.uuid,
103110
'zones': value.zones === undefined ? undefined : ((value.zones as Array<any>).map(ZoneRequestToJSON)),
104111
'parent_id': value.parent_id,
105-
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(SpaceRequestToJSON)),
112+
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(ZoneSpaceRequestToJSON)),
106113
'color': value.color,
114+
'order': value.order,
107115
};
108116
}
109117

package/src/models/PatchedZoneSpaceRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export interface PatchedZoneSpaceRequest {
3737
* @memberof PatchedZoneSpaceRequest
3838
*/
3939
uuid?: string;
40+
/**
41+
*
42+
* @type {number}
43+
* @memberof PatchedZoneSpaceRequest
44+
*/
45+
order?: number;
4046
}
4147

4248
export function PatchedZoneSpaceRequestFromJSON(json: any): PatchedZoneSpaceRequest {
@@ -52,6 +58,7 @@ export function PatchedZoneSpaceRequestFromJSONTyped(json: any, ignoreDiscrimina
5258
'name': !exists(json, 'name') ? undefined : json['name'],
5359
'longname': !exists(json, 'longname') ? undefined : json['longname'],
5460
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
61+
'order': !exists(json, 'order') ? undefined : json['order'],
5562
};
5663
}
5764

@@ -67,6 +74,7 @@ export function PatchedZoneSpaceRequestToJSON(value?: PatchedZoneSpaceRequest |
6774
'name': value.name,
6875
'longname': value.longname,
6976
'uuid': value.uuid,
77+
'order': value.order,
7078
};
7179
}
7280

package/src/models/Zone.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
import { exists, mapValues } from '../runtime';
1616
import {
17-
Space,
18-
SpaceFromJSON,
19-
SpaceFromJSONTyped,
20-
SpaceToJSON,
21-
} from './Space';
17+
ZoneSpace,
18+
ZoneSpaceFromJSON,
19+
ZoneSpaceFromJSONTyped,
20+
ZoneSpaceToJSON,
21+
} from './ZoneSpace';
2222

2323
/**
2424
* Adds nested create feature
@@ -58,10 +58,10 @@ export interface Zone {
5858
parent_id?: number;
5959
/**
6060
*
61-
* @type {Array<Space>}
61+
* @type {Array<ZoneSpace>}
6262
* @memberof Zone
6363
*/
64-
spaces?: Array<Space>;
64+
spaces?: Array<ZoneSpace>;
6565
/**
6666
*
6767
* @type {Date}
@@ -80,6 +80,12 @@ export interface Zone {
8080
* @memberof Zone
8181
*/
8282
color?: string | null;
83+
/**
84+
*
85+
* @type {number}
86+
* @memberof Zone
87+
*/
88+
order?: number;
8389
}
8490

8591
export function ZoneFromJSON(json: any): Zone {
@@ -97,10 +103,11 @@ export function ZoneFromJSONTyped(json: any, ignoreDiscriminator: boolean): Zone
97103
'uuid': json['uuid'],
98104
'zones': !exists(json, 'zones') ? undefined : ((json['zones'] as Array<any>).map(ZoneFromJSON)),
99105
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
100-
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(SpaceFromJSON)),
106+
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(ZoneSpaceFromJSON)),
101107
'created_at': (new Date(json['created_at'])),
102108
'updated_at': (new Date(json['updated_at'])),
103109
'color': !exists(json, 'color') ? undefined : json['color'],
110+
'order': !exists(json, 'order') ? undefined : json['order'],
104111
};
105112
}
106113

@@ -117,8 +124,9 @@ export function ZoneToJSON(value?: Zone | null): any {
117124
'uuid': value.uuid,
118125
'zones': value.zones === undefined ? undefined : ((value.zones as Array<any>).map(ZoneToJSON)),
119126
'parent_id': value.parent_id,
120-
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(SpaceToJSON)),
127+
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(ZoneSpaceToJSON)),
121128
'color': value.color,
129+
'order': value.order,
122130
};
123131
}
124132

package/src/models/ZoneRequest.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
import { exists, mapValues } from '../runtime';
1616
import {
17-
SpaceRequest,
18-
SpaceRequestFromJSON,
19-
SpaceRequestFromJSONTyped,
20-
SpaceRequestToJSON,
21-
} from './SpaceRequest';
17+
ZoneSpaceRequest,
18+
ZoneSpaceRequestFromJSON,
19+
ZoneSpaceRequestFromJSONTyped,
20+
ZoneSpaceRequestToJSON,
21+
} from './ZoneSpaceRequest';
2222

2323
/**
2424
* Adds nested create feature
@@ -52,16 +52,22 @@ export interface ZoneRequest {
5252
parent_id?: number;
5353
/**
5454
*
55-
* @type {Array<SpaceRequest>}
55+
* @type {Array<ZoneSpaceRequest>}
5656
* @memberof ZoneRequest
5757
*/
58-
spaces?: Array<SpaceRequest>;
58+
spaces?: Array<ZoneSpaceRequest>;
5959
/**
6060
*
6161
* @type {string}
6262
* @memberof ZoneRequest
6363
*/
6464
color?: string | null;
65+
/**
66+
*
67+
* @type {number}
68+
* @memberof ZoneRequest
69+
*/
70+
order?: number;
6571
}
6672

6773
export function ZoneRequestFromJSON(json: any): ZoneRequest {
@@ -78,8 +84,9 @@ export function ZoneRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean
7884
'uuid': json['uuid'],
7985
'zones': !exists(json, 'zones') ? undefined : ((json['zones'] as Array<any>).map(ZoneRequestFromJSON)),
8086
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
81-
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(SpaceRequestFromJSON)),
87+
'spaces': !exists(json, 'spaces') ? undefined : ((json['spaces'] as Array<any>).map(ZoneSpaceRequestFromJSON)),
8288
'color': !exists(json, 'color') ? undefined : json['color'],
89+
'order': !exists(json, 'order') ? undefined : json['order'],
8390
};
8491
}
8592

@@ -96,8 +103,9 @@ export function ZoneRequestToJSON(value?: ZoneRequest | null): any {
96103
'uuid': value.uuid,
97104
'zones': value.zones === undefined ? undefined : ((value.zones as Array<any>).map(ZoneRequestToJSON)),
98105
'parent_id': value.parent_id,
99-
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(SpaceRequestToJSON)),
106+
'spaces': value.spaces === undefined ? undefined : ((value.spaces as Array<any>).map(ZoneSpaceRequestToJSON)),
100107
'color': value.color,
108+
'order': value.order,
101109
};
102110
}
103111

package/src/models/ZoneSpace.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ export interface ZoneSpace {
4949
* @memberof ZoneSpace
5050
*/
5151
readonly zone_set: Array<number>;
52+
/**
53+
*
54+
* @type {number}
55+
* @memberof ZoneSpace
56+
*/
57+
order?: number;
5258
/**
5359
*
5460
* @type {Date}
@@ -78,6 +84,7 @@ export function ZoneSpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
7884
'longname': !exists(json, 'longname') ? undefined : json['longname'],
7985
'uuid': json['uuid'],
8086
'zone_set': json['zone_set'],
87+
'order': !exists(json, 'order') ? undefined : json['order'],
8188
'created_at': (new Date(json['created_at'])),
8289
'updated_at': (new Date(json['updated_at'])),
8390
};
@@ -95,6 +102,7 @@ export function ZoneSpaceToJSON(value?: ZoneSpace | null): any {
95102
'name': value.name,
96103
'longname': value.longname,
97104
'uuid': value.uuid,
105+
'order': value.order,
98106
};
99107
}
100108

package/src/models/ZoneSpaceRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export interface ZoneSpaceRequest {
3737
* @memberof ZoneSpaceRequest
3838
*/
3939
uuid: string;
40+
/**
41+
*
42+
* @type {number}
43+
* @memberof ZoneSpaceRequest
44+
*/
45+
order?: number;
4046
}
4147

4248
export function ZoneSpaceRequestFromJSON(json: any): ZoneSpaceRequest {
@@ -52,6 +58,7 @@ export function ZoneSpaceRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
5258
'name': !exists(json, 'name') ? undefined : json['name'],
5359
'longname': !exists(json, 'longname') ? undefined : json['longname'],
5460
'uuid': json['uuid'],
61+
'order': !exists(json, 'order') ? undefined : json['order'],
5562
};
5663
}
5764

@@ -67,6 +74,7 @@ export function ZoneSpaceRequestToJSON(value?: ZoneSpaceRequest | null): any {
6774
'name': value.name,
6875
'longname': value.longname,
6976
'uuid': value.uuid,
77+
'order': value.order,
7078
};
7179
}
7280

0 commit comments

Comments
 (0)