@seatmap-fyi/api-client 0.1.0-alpha.6 → 0.1.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated.d.ts +144 -107
- package/dist/generated.js +219 -0
- package/dist/transport.d.ts +11 -0
- package/dist/transport.js +19 -0
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -93,7 +93,9 @@ export declare enum MapLifecycle {
|
|
|
93
93
|
deleted = "deleted"
|
|
94
94
|
}
|
|
95
95
|
export interface MapSummaryDto {
|
|
96
|
-
/**
|
|
96
|
+
/**
|
|
97
|
+
* Permanent editor identifier: ten lowercase letters in three hyphen-separated groups, such as abc-defg-hjk. This code does not grant access.
|
|
98
|
+
*/
|
|
97
99
|
editorCode: string;
|
|
98
100
|
id: string;
|
|
99
101
|
name: string;
|
|
@@ -125,7 +127,6 @@ export type PhysicalDocumentV1DtoCoordinateSystem = {
|
|
|
125
127
|
rotation: PhysicalDocumentV1DtoCoordinateSystemRotation;
|
|
126
128
|
};
|
|
127
129
|
export type PhysicalDocumentV1DtoBackground = {
|
|
128
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
129
130
|
color: string;
|
|
130
131
|
/**
|
|
131
132
|
* @minimum 0
|
|
@@ -172,7 +173,6 @@ export type PhysicalDocumentV1DtoSectionsItemOutline = {
|
|
|
172
173
|
holes: PhysicalDocumentV1DtoSectionsItemOutlineHolesItemItem[][];
|
|
173
174
|
};
|
|
174
175
|
export type PhysicalDocumentV1DtoSectionsItemStyleFill = {
|
|
175
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
176
176
|
color: string;
|
|
177
177
|
/**
|
|
178
178
|
* @minimum 0
|
|
@@ -181,7 +181,6 @@ export type PhysicalDocumentV1DtoSectionsItemStyleFill = {
|
|
|
181
181
|
opacity: number;
|
|
182
182
|
};
|
|
183
183
|
export type PhysicalDocumentV1DtoSectionsItemStyleStroke = {
|
|
184
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
185
184
|
color: string;
|
|
186
185
|
/**
|
|
187
186
|
* @minimum 0
|
|
@@ -228,7 +227,6 @@ export type PhysicalDocumentV1DtoSectionsItemLabelStyle = {
|
|
|
228
227
|
fontSizeM: number;
|
|
229
228
|
};
|
|
230
229
|
export type PhysicalDocumentV1DtoSectionsItem = {
|
|
231
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
232
230
|
id: string;
|
|
233
231
|
/**
|
|
234
232
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -269,11 +267,9 @@ export type PhysicalDocumentV1DtoCollectionsItemTransform = {
|
|
|
269
267
|
flipY?: boolean;
|
|
270
268
|
};
|
|
271
269
|
export type PhysicalDocumentV1DtoCollectionsItem = {
|
|
272
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
273
270
|
id: string;
|
|
274
271
|
/**
|
|
275
272
|
* @nullable
|
|
276
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
277
273
|
*/
|
|
278
274
|
parentId: string | null;
|
|
279
275
|
transform: PhysicalDocumentV1DtoCollectionsItemTransform;
|
|
@@ -290,11 +286,9 @@ export type PhysicalDocumentV1DtoCollectionsItem = {
|
|
|
290
286
|
name: string;
|
|
291
287
|
};
|
|
292
288
|
export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
293
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
294
289
|
id: string;
|
|
295
290
|
/**
|
|
296
291
|
* @nullable
|
|
297
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
298
292
|
*/
|
|
299
293
|
parentId: string | null;
|
|
300
294
|
transform: {
|
|
@@ -331,7 +325,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
331
325
|
name: string;
|
|
332
326
|
/**
|
|
333
327
|
* @nullable
|
|
334
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
335
328
|
*/
|
|
336
329
|
sectionId: string | null;
|
|
337
330
|
seatSizeM: {
|
|
@@ -460,7 +453,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
460
453
|
* @maxItems 100000
|
|
461
454
|
*/
|
|
462
455
|
rows: {
|
|
463
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
464
456
|
id: string;
|
|
465
457
|
/**
|
|
466
458
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -504,7 +496,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
504
496
|
* @maxItems 100000
|
|
505
497
|
*/
|
|
506
498
|
seats: {
|
|
507
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
508
499
|
id: string;
|
|
509
500
|
/**
|
|
510
501
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -516,7 +507,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
516
507
|
restrictedView?: boolean;
|
|
517
508
|
hearingAssistance?: boolean;
|
|
518
509
|
semiAmbulatory?: boolean;
|
|
519
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
520
510
|
companionForSeatId?: string;
|
|
521
511
|
};
|
|
522
512
|
override?: {
|
|
@@ -553,11 +543,9 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
553
543
|
}[];
|
|
554
544
|
}[];
|
|
555
545
|
} | {
|
|
556
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
557
546
|
id: string;
|
|
558
547
|
/**
|
|
559
548
|
* @nullable
|
|
560
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
561
549
|
*/
|
|
562
550
|
parentId: string | null;
|
|
563
551
|
transform: {
|
|
@@ -594,7 +582,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
594
582
|
name: string;
|
|
595
583
|
/**
|
|
596
584
|
* @nullable
|
|
597
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
598
585
|
*/
|
|
599
586
|
sectionId: string | null;
|
|
600
587
|
seatSizeM: {
|
|
@@ -752,7 +739,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
752
739
|
* @maxItems 100000
|
|
753
740
|
*/
|
|
754
741
|
rows: {
|
|
755
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
756
742
|
id: string;
|
|
757
743
|
/**
|
|
758
744
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -796,7 +782,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
796
782
|
* @maxItems 100000
|
|
797
783
|
*/
|
|
798
784
|
seats: {
|
|
799
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
800
785
|
id: string;
|
|
801
786
|
/**
|
|
802
787
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -808,7 +793,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
808
793
|
restrictedView?: boolean;
|
|
809
794
|
hearingAssistance?: boolean;
|
|
810
795
|
semiAmbulatory?: boolean;
|
|
811
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
812
796
|
companionForSeatId?: string;
|
|
813
797
|
};
|
|
814
798
|
override?: {
|
|
@@ -845,11 +829,9 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
845
829
|
}[];
|
|
846
830
|
}[];
|
|
847
831
|
} | {
|
|
848
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
849
832
|
id: string;
|
|
850
833
|
/**
|
|
851
834
|
* @nullable
|
|
852
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
853
835
|
*/
|
|
854
836
|
parentId: string | null;
|
|
855
837
|
transform: {
|
|
@@ -886,7 +868,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
886
868
|
name: string;
|
|
887
869
|
/**
|
|
888
870
|
* @nullable
|
|
889
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
890
871
|
*/
|
|
891
872
|
sectionId: string | null;
|
|
892
873
|
seatSizeM: {
|
|
@@ -1006,7 +987,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1006
987
|
chairsBySide: {
|
|
1007
988
|
/** @maxItems 100000 */
|
|
1008
989
|
top: {
|
|
1009
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1010
990
|
id: string;
|
|
1011
991
|
/**
|
|
1012
992
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -1018,7 +998,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1018
998
|
restrictedView?: boolean;
|
|
1019
999
|
hearingAssistance?: boolean;
|
|
1020
1000
|
semiAmbulatory?: boolean;
|
|
1021
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1022
1001
|
companionForSeatId?: string;
|
|
1023
1002
|
};
|
|
1024
1003
|
override?: {
|
|
@@ -1055,7 +1034,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1055
1034
|
}[];
|
|
1056
1035
|
/** @maxItems 100000 */
|
|
1057
1036
|
right: {
|
|
1058
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1059
1037
|
id: string;
|
|
1060
1038
|
/**
|
|
1061
1039
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -1067,7 +1045,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1067
1045
|
restrictedView?: boolean;
|
|
1068
1046
|
hearingAssistance?: boolean;
|
|
1069
1047
|
semiAmbulatory?: boolean;
|
|
1070
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1071
1048
|
companionForSeatId?: string;
|
|
1072
1049
|
};
|
|
1073
1050
|
override?: {
|
|
@@ -1104,7 +1081,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1104
1081
|
}[];
|
|
1105
1082
|
/** @maxItems 100000 */
|
|
1106
1083
|
bottom: {
|
|
1107
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1108
1084
|
id: string;
|
|
1109
1085
|
/**
|
|
1110
1086
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -1116,7 +1092,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1116
1092
|
restrictedView?: boolean;
|
|
1117
1093
|
hearingAssistance?: boolean;
|
|
1118
1094
|
semiAmbulatory?: boolean;
|
|
1119
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1120
1095
|
companionForSeatId?: string;
|
|
1121
1096
|
};
|
|
1122
1097
|
override?: {
|
|
@@ -1153,7 +1128,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1153
1128
|
}[];
|
|
1154
1129
|
/** @maxItems 100000 */
|
|
1155
1130
|
left: {
|
|
1156
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1157
1131
|
id: string;
|
|
1158
1132
|
/**
|
|
1159
1133
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -1165,7 +1139,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1165
1139
|
restrictedView?: boolean;
|
|
1166
1140
|
hearingAssistance?: boolean;
|
|
1167
1141
|
semiAmbulatory?: boolean;
|
|
1168
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1169
1142
|
companionForSeatId?: string;
|
|
1170
1143
|
};
|
|
1171
1144
|
override?: {
|
|
@@ -1202,11 +1175,9 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1202
1175
|
}[];
|
|
1203
1176
|
};
|
|
1204
1177
|
} | {
|
|
1205
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1206
1178
|
id: string;
|
|
1207
1179
|
/**
|
|
1208
1180
|
* @nullable
|
|
1209
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1210
1181
|
*/
|
|
1211
1182
|
parentId: string | null;
|
|
1212
1183
|
transform: {
|
|
@@ -1243,7 +1214,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1243
1214
|
name: string;
|
|
1244
1215
|
/**
|
|
1245
1216
|
* @nullable
|
|
1246
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1247
1217
|
*/
|
|
1248
1218
|
sectionId: string | null;
|
|
1249
1219
|
seatSizeM: {
|
|
@@ -1360,7 +1330,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1360
1330
|
* @maxItems 100000
|
|
1361
1331
|
*/
|
|
1362
1332
|
chairs: {
|
|
1363
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1364
1333
|
id: string;
|
|
1365
1334
|
/**
|
|
1366
1335
|
* Unicode code-point length; control characters and unpaired surrogates are rejected.
|
|
@@ -1372,7 +1341,6 @@ export type PhysicalDocumentV1DtoSeatingGroupsItem = {
|
|
|
1372
1341
|
restrictedView?: boolean;
|
|
1373
1342
|
hearingAssistance?: boolean;
|
|
1374
1343
|
semiAmbulatory?: boolean;
|
|
1375
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1376
1344
|
companionForSeatId?: string;
|
|
1377
1345
|
};
|
|
1378
1346
|
override?: {
|
|
@@ -1495,11 +1463,9 @@ export type PhysicalDocumentV1DtoAreasItemShape = {
|
|
|
1495
1463
|
};
|
|
1496
1464
|
};
|
|
1497
1465
|
export type PhysicalDocumentV1DtoAreasItem = {
|
|
1498
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1499
1466
|
id: string;
|
|
1500
1467
|
/**
|
|
1501
1468
|
* @nullable
|
|
1502
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1503
1469
|
*/
|
|
1504
1470
|
parentId: string | null;
|
|
1505
1471
|
transform: PhysicalDocumentV1DtoAreasItemTransform;
|
|
@@ -1511,7 +1477,6 @@ export type PhysicalDocumentV1DtoAreasItem = {
|
|
|
1511
1477
|
kind: PhysicalDocumentV1DtoAreasItemKind;
|
|
1512
1478
|
/**
|
|
1513
1479
|
* @nullable
|
|
1514
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1515
1480
|
*/
|
|
1516
1481
|
sectionId: string | null;
|
|
1517
1482
|
/**
|
|
@@ -1528,11 +1493,9 @@ export type PhysicalDocumentV1DtoAreasItem = {
|
|
|
1528
1493
|
shape: PhysicalDocumentV1DtoAreasItemShape;
|
|
1529
1494
|
};
|
|
1530
1495
|
export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
1531
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1532
1496
|
id: string;
|
|
1533
1497
|
/**
|
|
1534
1498
|
* @nullable
|
|
1535
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1536
1499
|
*/
|
|
1537
1500
|
parentId: string | null;
|
|
1538
1501
|
transform: {
|
|
@@ -1563,7 +1526,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1563
1526
|
zIndex: number;
|
|
1564
1527
|
style?: {
|
|
1565
1528
|
fill?: {
|
|
1566
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1567
1529
|
color: string;
|
|
1568
1530
|
/**
|
|
1569
1531
|
* @minimum 0
|
|
@@ -1572,7 +1534,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1572
1534
|
opacity: number;
|
|
1573
1535
|
};
|
|
1574
1536
|
stroke?: {
|
|
1575
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1576
1537
|
color: string;
|
|
1577
1538
|
/**
|
|
1578
1539
|
* @minimum 0
|
|
@@ -1599,11 +1560,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1599
1560
|
fontSizeM: number;
|
|
1600
1561
|
align: "left" | "center" | "right";
|
|
1601
1562
|
} | {
|
|
1602
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1603
1563
|
id: string;
|
|
1604
1564
|
/**
|
|
1605
1565
|
* @nullable
|
|
1606
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1607
1566
|
*/
|
|
1608
1567
|
parentId: string | null;
|
|
1609
1568
|
transform: {
|
|
@@ -1634,7 +1593,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1634
1593
|
zIndex: number;
|
|
1635
1594
|
style?: {
|
|
1636
1595
|
fill?: {
|
|
1637
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1638
1596
|
color: string;
|
|
1639
1597
|
/**
|
|
1640
1598
|
* @minimum 0
|
|
@@ -1643,7 +1601,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1643
1601
|
opacity: number;
|
|
1644
1602
|
};
|
|
1645
1603
|
stroke?: {
|
|
1646
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1647
1604
|
color: string;
|
|
1648
1605
|
/**
|
|
1649
1606
|
* @minimum 0
|
|
@@ -1676,11 +1633,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1676
1633
|
*/
|
|
1677
1634
|
cornerRadiusM: number;
|
|
1678
1635
|
} | {
|
|
1679
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1680
1636
|
id: string;
|
|
1681
1637
|
/**
|
|
1682
1638
|
* @nullable
|
|
1683
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1684
1639
|
*/
|
|
1685
1640
|
parentId: string | null;
|
|
1686
1641
|
transform: {
|
|
@@ -1711,7 +1666,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1711
1666
|
zIndex: number;
|
|
1712
1667
|
style?: {
|
|
1713
1668
|
fill?: {
|
|
1714
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1715
1669
|
color: string;
|
|
1716
1670
|
/**
|
|
1717
1671
|
* @minimum 0
|
|
@@ -1720,7 +1674,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1720
1674
|
opacity: number;
|
|
1721
1675
|
};
|
|
1722
1676
|
stroke?: {
|
|
1723
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1724
1677
|
color: string;
|
|
1725
1678
|
/**
|
|
1726
1679
|
* @minimum 0
|
|
@@ -1741,11 +1694,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1741
1694
|
*/
|
|
1742
1695
|
radiusM: number;
|
|
1743
1696
|
} | {
|
|
1744
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1745
1697
|
id: string;
|
|
1746
1698
|
/**
|
|
1747
1699
|
* @nullable
|
|
1748
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1749
1700
|
*/
|
|
1750
1701
|
parentId: string | null;
|
|
1751
1702
|
transform: {
|
|
@@ -1776,7 +1727,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1776
1727
|
zIndex: number;
|
|
1777
1728
|
style?: {
|
|
1778
1729
|
fill?: {
|
|
1779
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1780
1730
|
color: string;
|
|
1781
1731
|
/**
|
|
1782
1732
|
* @minimum 0
|
|
@@ -1785,7 +1735,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1785
1735
|
opacity: number;
|
|
1786
1736
|
};
|
|
1787
1737
|
stroke?: {
|
|
1788
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1789
1738
|
color: string;
|
|
1790
1739
|
/**
|
|
1791
1740
|
* @minimum 0
|
|
@@ -1817,11 +1766,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1817
1766
|
y: number;
|
|
1818
1767
|
}[];
|
|
1819
1768
|
} | {
|
|
1820
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1821
1769
|
id: string;
|
|
1822
1770
|
/**
|
|
1823
1771
|
* @nullable
|
|
1824
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1825
1772
|
*/
|
|
1826
1773
|
parentId: string | null;
|
|
1827
1774
|
transform: {
|
|
@@ -1852,7 +1799,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1852
1799
|
zIndex: number;
|
|
1853
1800
|
style?: {
|
|
1854
1801
|
fill?: {
|
|
1855
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1856
1802
|
color: string;
|
|
1857
1803
|
/**
|
|
1858
1804
|
* @minimum 0
|
|
@@ -1861,7 +1807,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1861
1807
|
opacity: number;
|
|
1862
1808
|
};
|
|
1863
1809
|
stroke?: {
|
|
1864
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1865
1810
|
color: string;
|
|
1866
1811
|
/**
|
|
1867
1812
|
* @minimum 0
|
|
@@ -1913,11 +1858,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1913
1858
|
}[][];
|
|
1914
1859
|
};
|
|
1915
1860
|
} | {
|
|
1916
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1917
1861
|
id: string;
|
|
1918
1862
|
/**
|
|
1919
1863
|
* @nullable
|
|
1920
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1921
1864
|
*/
|
|
1922
1865
|
parentId: string | null;
|
|
1923
1866
|
transform: {
|
|
@@ -1948,7 +1891,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1948
1891
|
zIndex: number;
|
|
1949
1892
|
style?: {
|
|
1950
1893
|
fill?: {
|
|
1951
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1952
1894
|
color: string;
|
|
1953
1895
|
/**
|
|
1954
1896
|
* @minimum 0
|
|
@@ -1957,7 +1899,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1957
1899
|
opacity: number;
|
|
1958
1900
|
};
|
|
1959
1901
|
stroke?: {
|
|
1960
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
1961
1902
|
color: string;
|
|
1962
1903
|
/**
|
|
1963
1904
|
* @minimum 0
|
|
@@ -1986,11 +1927,9 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
1986
1927
|
height: number;
|
|
1987
1928
|
};
|
|
1988
1929
|
} | {
|
|
1989
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
1990
1930
|
id: string;
|
|
1991
1931
|
/**
|
|
1992
1932
|
* @nullable
|
|
1993
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
|
|
1994
1933
|
*/
|
|
1995
1934
|
parentId: string | null;
|
|
1996
1935
|
transform: {
|
|
@@ -2021,7 +1960,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
2021
1960
|
zIndex: number;
|
|
2022
1961
|
style?: {
|
|
2023
1962
|
fill?: {
|
|
2024
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
2025
1963
|
color: string;
|
|
2026
1964
|
/**
|
|
2027
1965
|
* @minimum 0
|
|
@@ -2030,7 +1968,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
2030
1968
|
opacity: number;
|
|
2031
1969
|
};
|
|
2032
1970
|
stroke?: {
|
|
2033
|
-
/** @pattern ^#[0-9a-fA-F]{6}$ */
|
|
2034
1971
|
color: string;
|
|
2035
1972
|
/**
|
|
2036
1973
|
* @minimum 0
|
|
@@ -2045,7 +1982,6 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
2045
1982
|
strokeWidthM?: number;
|
|
2046
1983
|
};
|
|
2047
1984
|
kind: "image";
|
|
2048
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2049
1985
|
assetId: string;
|
|
2050
1986
|
sizeM: {
|
|
2051
1987
|
/**
|
|
@@ -2066,13 +2002,11 @@ export type PhysicalDocumentV1DtoDecorationsItem = {
|
|
|
2066
2002
|
opacity: number;
|
|
2067
2003
|
};
|
|
2068
2004
|
export type PhysicalDocumentV1DtoAssetsItem = {
|
|
2069
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2070
2005
|
id: string;
|
|
2071
2006
|
mimeType: PhysicalDocumentV1DtoAssetsItemMimeType;
|
|
2072
2007
|
};
|
|
2073
2008
|
export interface PhysicalDocumentV1Dto {
|
|
2074
2009
|
schemaVersion: PhysicalDocumentV1DtoSchemaVersion;
|
|
2075
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2076
2010
|
mapId: string;
|
|
2077
2011
|
/**
|
|
2078
2012
|
* Nonempty, trimmed name; at most 120 Unicode code points. Control characters and unpaired surrogates are rejected.
|
|
@@ -2099,7 +2033,6 @@ export type ReferencePresentationDtoVersion = 1;
|
|
|
2099
2033
|
export type ReferencePresentationDtoSeatsItemState = "unverified" | "available" | "unavailable";
|
|
2100
2034
|
export type ReferencePresentationDtoSeatsItemOffer = "standard" | "resale" | "vip";
|
|
2101
2035
|
export type ReferencePresentationDtoOverviewMembershipsItem = {
|
|
2102
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2103
2036
|
sectionId: string;
|
|
2104
2037
|
/**
|
|
2105
2038
|
* @maxItems 1024
|
|
@@ -2108,7 +2041,6 @@ export type ReferencePresentationDtoOverviewMembershipsItem = {
|
|
|
2108
2041
|
inventorySectionIds: string[];
|
|
2109
2042
|
};
|
|
2110
2043
|
export type ReferencePresentationDtoSeatsItem = {
|
|
2111
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2112
2044
|
id: string;
|
|
2113
2045
|
state: ReferencePresentationDtoSeatsItemState;
|
|
2114
2046
|
offer: ReferencePresentationDtoSeatsItemOffer;
|
|
@@ -2116,14 +2048,12 @@ export type ReferencePresentationDtoSeatsItem = {
|
|
|
2116
2048
|
};
|
|
2117
2049
|
export interface ReferencePresentationDto {
|
|
2118
2050
|
version: ReferencePresentationDtoVersion;
|
|
2119
|
-
/** @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ */
|
|
2120
2051
|
mapId: string;
|
|
2121
2052
|
/**
|
|
2122
2053
|
* @minLength 1
|
|
2123
2054
|
* @maxLength 200
|
|
2124
2055
|
*/
|
|
2125
2056
|
source: string;
|
|
2126
|
-
/** @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ */
|
|
2127
2057
|
capturedAt: string;
|
|
2128
2058
|
/**
|
|
2129
2059
|
* @maxItems 1024
|
|
@@ -2143,9 +2073,7 @@ export type CreateMapDtoContent = {
|
|
|
2143
2073
|
referencePresentation?: ReferencePresentationDto;
|
|
2144
2074
|
};
|
|
2145
2075
|
export interface CreateMapDto {
|
|
2146
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2147
2076
|
operationId: string;
|
|
2148
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2149
2077
|
idempotencyKey: string;
|
|
2150
2078
|
/** Physical v1 and optional dated reference presentation. Runtime validation additionally enforces unique identities, structural references, capacity and cross-field geometry rules; readable semantic issues remain repairable. */
|
|
2151
2079
|
content: CreateMapDtoContent;
|
|
@@ -2160,9 +2088,6 @@ export interface MapAcknowledgementDto {
|
|
|
2160
2088
|
mapId: string;
|
|
2161
2089
|
revision: number;
|
|
2162
2090
|
contentHash: string;
|
|
2163
|
-
physicalHash: string;
|
|
2164
|
-
/** @nullable */
|
|
2165
|
-
referenceHash: string | null;
|
|
2166
2091
|
acceptedAt: string;
|
|
2167
2092
|
lifecycle: MapLifecycle;
|
|
2168
2093
|
unchanged: boolean;
|
|
@@ -2178,7 +2103,9 @@ export interface MutationStatusDto {
|
|
|
2178
2103
|
}
|
|
2179
2104
|
export interface MapLinkDto {
|
|
2180
2105
|
mapId: string;
|
|
2181
|
-
/**
|
|
2106
|
+
/**
|
|
2107
|
+
* Permanent editor identifier: ten lowercase letters in three hyphen-separated groups, such as abc-defg-hjk. This code does not grant access.
|
|
2108
|
+
*/
|
|
2182
2109
|
editorCode: string;
|
|
2183
2110
|
}
|
|
2184
2111
|
export interface MapResponseDto {
|
|
@@ -2187,24 +2114,18 @@ export interface MapResponseDto {
|
|
|
2187
2114
|
revision: number;
|
|
2188
2115
|
lifecycle: MapLifecycle;
|
|
2189
2116
|
contentHash: string;
|
|
2190
|
-
physicalHash: string;
|
|
2191
|
-
/** @nullable */
|
|
2192
|
-
referenceHash: string | null;
|
|
2193
2117
|
capabilities: string[];
|
|
2194
2118
|
updatedAt: string;
|
|
2195
2119
|
issues: MapIssueDto[];
|
|
2196
2120
|
}
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
export type
|
|
2201
|
-
|
|
2202
|
-
referencePresentation?: ReferencePresentationDto;
|
|
2121
|
+
export type _Schema0 = string | number | boolean | null | (_Schema0 | null)[] | {
|
|
2122
|
+
[key: string]: _Schema0 | null;
|
|
2123
|
+
};
|
|
2124
|
+
export type _Schema1 = string | number | boolean | null | (_Schema1 | null)[] | {
|
|
2125
|
+
[key: string]: _Schema1 | null;
|
|
2203
2126
|
};
|
|
2204
|
-
export
|
|
2205
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2127
|
+
export type SaveMapDto = {
|
|
2206
2128
|
operationId: string;
|
|
2207
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2208
2129
|
idempotencyKey: string;
|
|
2209
2130
|
/**
|
|
2210
2131
|
* @maximum 9007199254740991
|
|
@@ -2212,12 +2133,39 @@ export interface SaveMapDto {
|
|
|
2212
2133
|
*/
|
|
2213
2134
|
expectedRevision: number;
|
|
2214
2135
|
/** Physical v1 and optional dated reference presentation. Runtime validation additionally enforces unique identities, structural references, capacity and cross-field geometry rules; readable semantic issues remain repairable. */
|
|
2215
|
-
content:
|
|
2216
|
-
|
|
2136
|
+
content: {
|
|
2137
|
+
physical: PhysicalDocumentV1Dto;
|
|
2138
|
+
referencePresentation?: ReferencePresentationDto;
|
|
2139
|
+
};
|
|
2140
|
+
} | {
|
|
2141
|
+
operationId: string;
|
|
2142
|
+
idempotencyKey: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* @maximum 9007199254740991
|
|
2145
|
+
* @exclusiveMinimum 0
|
|
2146
|
+
*/
|
|
2147
|
+
expectedRevision: number;
|
|
2148
|
+
/** @maxItems 10000 */
|
|
2149
|
+
changes: ({
|
|
2150
|
+
op: "add";
|
|
2151
|
+
/** @maxLength 2048 */
|
|
2152
|
+
path: string;
|
|
2153
|
+
value: _Schema0 | null;
|
|
2154
|
+
} | {
|
|
2155
|
+
op: "replace";
|
|
2156
|
+
/** @maxLength 2048 */
|
|
2157
|
+
path: string;
|
|
2158
|
+
value: _Schema1 | null;
|
|
2159
|
+
} | {
|
|
2160
|
+
op: "remove";
|
|
2161
|
+
/** @maxLength 2048 */
|
|
2162
|
+
path: string;
|
|
2163
|
+
})[];
|
|
2164
|
+
baseContentHash: string;
|
|
2165
|
+
targetContentHash: string;
|
|
2166
|
+
};
|
|
2217
2167
|
export type MapActionDto = {
|
|
2218
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2219
2168
|
operationId: string;
|
|
2220
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2221
2169
|
idempotencyKey: string;
|
|
2222
2170
|
/**
|
|
2223
2171
|
* @maximum 9007199254740991
|
|
@@ -2232,9 +2180,7 @@ export type MapActionDto = {
|
|
|
2232
2180
|
*/
|
|
2233
2181
|
name: string;
|
|
2234
2182
|
} | {
|
|
2235
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2236
2183
|
operationId: string;
|
|
2237
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2238
2184
|
idempotencyKey: string;
|
|
2239
2185
|
/**
|
|
2240
2186
|
* @maximum 9007199254740991
|
|
@@ -2254,9 +2200,7 @@ export type MapActionDto = {
|
|
|
2254
2200
|
*/
|
|
2255
2201
|
sourceRevision: number;
|
|
2256
2202
|
} | {
|
|
2257
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2258
2203
|
operationId: string;
|
|
2259
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2260
2204
|
idempotencyKey: string;
|
|
2261
2205
|
/**
|
|
2262
2206
|
* @maximum 9007199254740991
|
|
@@ -2265,9 +2209,7 @@ export type MapActionDto = {
|
|
|
2265
2209
|
expectedRevision: number;
|
|
2266
2210
|
action: "archive";
|
|
2267
2211
|
} | {
|
|
2268
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2269
2212
|
operationId: string;
|
|
2270
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2271
2213
|
idempotencyKey: string;
|
|
2272
2214
|
/**
|
|
2273
2215
|
* @maximum 9007199254740991
|
|
@@ -2276,9 +2218,7 @@ export type MapActionDto = {
|
|
|
2276
2218
|
expectedRevision: number;
|
|
2277
2219
|
action: "restore";
|
|
2278
2220
|
} | {
|
|
2279
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2280
2221
|
operationId: string;
|
|
2281
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2282
2222
|
idempotencyKey: string;
|
|
2283
2223
|
/**
|
|
2284
2224
|
* @maximum 9007199254740991
|
|
@@ -2287,9 +2227,7 @@ export type MapActionDto = {
|
|
|
2287
2227
|
expectedRevision: number;
|
|
2288
2228
|
action: "trash";
|
|
2289
2229
|
} | {
|
|
2290
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2291
2230
|
operationId: string;
|
|
2292
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2293
2231
|
idempotencyKey: string;
|
|
2294
2232
|
/**
|
|
2295
2233
|
* @maximum 9007199254740991
|
|
@@ -2298,9 +2236,7 @@ export type MapActionDto = {
|
|
|
2298
2236
|
expectedRevision: number;
|
|
2299
2237
|
action: "restoreTrash";
|
|
2300
2238
|
} | {
|
|
2301
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2302
2239
|
operationId: string;
|
|
2303
|
-
/** @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ */
|
|
2304
2240
|
idempotencyKey: string;
|
|
2305
2241
|
/**
|
|
2306
2242
|
* @maximum 9007199254740991
|
|
@@ -2336,6 +2272,93 @@ export interface MapContentDto {
|
|
|
2336
2272
|
physical: PhysicalDocumentV1Dto;
|
|
2337
2273
|
referencePresentation?: ReferencePresentationDto;
|
|
2338
2274
|
}
|
|
2275
|
+
export interface ArtworkLimitsDto {
|
|
2276
|
+
fileBytes: number;
|
|
2277
|
+
rasterPixels: number;
|
|
2278
|
+
mapBytes: number;
|
|
2279
|
+
references: number;
|
|
2280
|
+
concurrentUploads: number;
|
|
2281
|
+
uploadsPerHour: number;
|
|
2282
|
+
configured: boolean;
|
|
2283
|
+
}
|
|
2284
|
+
export declare enum PrepareArtworkUploadDtoMimeType {
|
|
2285
|
+
"image/png" = "image/png",
|
|
2286
|
+
"image/jpeg" = "image/jpeg",
|
|
2287
|
+
"image/webp" = "image/webp",
|
|
2288
|
+
"image/svg+xml" = "image/svg+xml"
|
|
2289
|
+
}
|
|
2290
|
+
export interface PrepareArtworkUploadDto {
|
|
2291
|
+
uploadId: string;
|
|
2292
|
+
assetId: string;
|
|
2293
|
+
mapId: string;
|
|
2294
|
+
mimeType: PrepareArtworkUploadDtoMimeType;
|
|
2295
|
+
/**
|
|
2296
|
+
* @minimum 1
|
|
2297
|
+
* @maximum 10485760
|
|
2298
|
+
*/
|
|
2299
|
+
byteLength: number;
|
|
2300
|
+
sha256: string;
|
|
2301
|
+
}
|
|
2302
|
+
export declare enum ArtworkUploadState {
|
|
2303
|
+
prepared = "prepared",
|
|
2304
|
+
receiving = "receiving",
|
|
2305
|
+
uploaded = "uploaded",
|
|
2306
|
+
validating = "validating",
|
|
2307
|
+
ready = "ready",
|
|
2308
|
+
"review-required" = "review-required",
|
|
2309
|
+
failed = "failed",
|
|
2310
|
+
cancelled = "cancelled"
|
|
2311
|
+
}
|
|
2312
|
+
export declare enum ArtworkFailureCode {
|
|
2313
|
+
ARTWORK_DIGEST = "ARTWORK_DIGEST",
|
|
2314
|
+
ARTWORK_SVG_ACTIVE = "ARTWORK_SVG_ACTIVE",
|
|
2315
|
+
ARTWORK_SVG_INVALID = "ARTWORK_SVG_INVALID",
|
|
2316
|
+
ARTWORK_SVG_COMPLEX = "ARTWORK_SVG_COMPLEX",
|
|
2317
|
+
ARTWORK_FILE_LIMIT = "ARTWORK_FILE_LIMIT",
|
|
2318
|
+
ARTWORK_TYPE = "ARTWORK_TYPE",
|
|
2319
|
+
ARTWORK_PIXEL_LIMIT = "ARTWORK_PIXEL_LIMIT",
|
|
2320
|
+
ARTWORK_DECODE = "ARTWORK_DECODE",
|
|
2321
|
+
ARTWORK_TRANSFER = "ARTWORK_TRANSFER",
|
|
2322
|
+
ARTWORK_EXPIRED = "ARTWORK_EXPIRED",
|
|
2323
|
+
ARTWORK_VALIDATION_FAILED = "ARTWORK_VALIDATION_FAILED"
|
|
2324
|
+
}
|
|
2325
|
+
export interface ArtworkUploadDto {
|
|
2326
|
+
uploadId: string;
|
|
2327
|
+
assetId: string;
|
|
2328
|
+
state: ArtworkUploadState;
|
|
2329
|
+
expiresAt: string;
|
|
2330
|
+
errorCode?: ArtworkFailureCode;
|
|
2331
|
+
}
|
|
2332
|
+
export interface RetryArtworkUploadDto {
|
|
2333
|
+
uploadId: string;
|
|
2334
|
+
}
|
|
2335
|
+
export interface ArtworkBatchDto {
|
|
2336
|
+
/**
|
|
2337
|
+
* @minItems 1
|
|
2338
|
+
* @maxItems 50
|
|
2339
|
+
* @items.pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
|
|
2340
|
+
*/
|
|
2341
|
+
assetIds: string[];
|
|
2342
|
+
}
|
|
2343
|
+
export declare enum ArtworkState {
|
|
2344
|
+
pending = "pending",
|
|
2345
|
+
ready = "ready",
|
|
2346
|
+
"review-required" = "review-required",
|
|
2347
|
+
failed = "failed",
|
|
2348
|
+
deleting = "deleting",
|
|
2349
|
+
deleted = "deleted"
|
|
2350
|
+
}
|
|
2351
|
+
export interface ArtworkResourceDto {
|
|
2352
|
+
assetId: string;
|
|
2353
|
+
state: ArtworkState;
|
|
2354
|
+
url?: string;
|
|
2355
|
+
expiresAt?: string;
|
|
2356
|
+
sha256?: string;
|
|
2357
|
+
mimeType?: string;
|
|
2358
|
+
byteLength?: number;
|
|
2359
|
+
width?: number;
|
|
2360
|
+
height?: number;
|
|
2361
|
+
}
|
|
2339
2362
|
export type StartLoginParams = {
|
|
2340
2363
|
/**
|
|
2341
2364
|
* Registered frontend return destination.
|
|
@@ -2404,3 +2427,17 @@ export declare class MapsClient {
|
|
|
2404
2427
|
listMapRevisions(workspaceId: string, mapId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<MapRevisionDto[]>>;
|
|
2405
2428
|
getMapRevision(workspaceId: string, mapId: string, revision: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MapContentDto>>;
|
|
2406
2429
|
}
|
|
2430
|
+
export declare class ArtworkClient {
|
|
2431
|
+
private readonly configuration;
|
|
2432
|
+
private readonly basePath?;
|
|
2433
|
+
private readonly operations;
|
|
2434
|
+
constructor(configuration: Configuration, basePath?: string | undefined, axiosInstance?: AxiosInstance);
|
|
2435
|
+
getArtworkLimits(workspaceId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkLimitsDto>>;
|
|
2436
|
+
prepareArtworkUpload(workspaceId: string, prepareArtworkUploadDto: PrepareArtworkUploadDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2437
|
+
getArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2438
|
+
uploadArtworkContent(workspaceId: string, uploadId: string, uploadArtworkContentBody: Blob, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2439
|
+
completeArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2440
|
+
cancelArtworkUpload(workspaceId: string, uploadId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2441
|
+
retryArtworkUpload(workspaceId: string, uploadId: string, retryArtworkUploadDto: RetryArtworkUploadDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkUploadDto>>;
|
|
2442
|
+
getArtworkResources(workspaceId: string, artworkBatchDto: ArtworkBatchDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ArtworkResourceDto[]>>;
|
|
2443
|
+
}
|
package/dist/generated.js
CHANGED
|
@@ -46,6 +46,47 @@ export var MapOperation;
|
|
|
46
46
|
MapOperation["restoreTrash"] = "restoreTrash";
|
|
47
47
|
MapOperation["restoreRevision"] = "restoreRevision";
|
|
48
48
|
})(MapOperation || (MapOperation = {}));
|
|
49
|
+
export var PrepareArtworkUploadDtoMimeType;
|
|
50
|
+
(function (PrepareArtworkUploadDtoMimeType) {
|
|
51
|
+
PrepareArtworkUploadDtoMimeType["image/png"] = "image/png";
|
|
52
|
+
PrepareArtworkUploadDtoMimeType["image/jpeg"] = "image/jpeg";
|
|
53
|
+
PrepareArtworkUploadDtoMimeType["image/webp"] = "image/webp";
|
|
54
|
+
PrepareArtworkUploadDtoMimeType["image/svg+xml"] = "image/svg+xml";
|
|
55
|
+
})(PrepareArtworkUploadDtoMimeType || (PrepareArtworkUploadDtoMimeType = {}));
|
|
56
|
+
export var ArtworkUploadState;
|
|
57
|
+
(function (ArtworkUploadState) {
|
|
58
|
+
ArtworkUploadState["prepared"] = "prepared";
|
|
59
|
+
ArtworkUploadState["receiving"] = "receiving";
|
|
60
|
+
ArtworkUploadState["uploaded"] = "uploaded";
|
|
61
|
+
ArtworkUploadState["validating"] = "validating";
|
|
62
|
+
ArtworkUploadState["ready"] = "ready";
|
|
63
|
+
ArtworkUploadState["review-required"] = "review-required";
|
|
64
|
+
ArtworkUploadState["failed"] = "failed";
|
|
65
|
+
ArtworkUploadState["cancelled"] = "cancelled";
|
|
66
|
+
})(ArtworkUploadState || (ArtworkUploadState = {}));
|
|
67
|
+
export var ArtworkFailureCode;
|
|
68
|
+
(function (ArtworkFailureCode) {
|
|
69
|
+
ArtworkFailureCode["ARTWORK_DIGEST"] = "ARTWORK_DIGEST";
|
|
70
|
+
ArtworkFailureCode["ARTWORK_SVG_ACTIVE"] = "ARTWORK_SVG_ACTIVE";
|
|
71
|
+
ArtworkFailureCode["ARTWORK_SVG_INVALID"] = "ARTWORK_SVG_INVALID";
|
|
72
|
+
ArtworkFailureCode["ARTWORK_SVG_COMPLEX"] = "ARTWORK_SVG_COMPLEX";
|
|
73
|
+
ArtworkFailureCode["ARTWORK_FILE_LIMIT"] = "ARTWORK_FILE_LIMIT";
|
|
74
|
+
ArtworkFailureCode["ARTWORK_TYPE"] = "ARTWORK_TYPE";
|
|
75
|
+
ArtworkFailureCode["ARTWORK_PIXEL_LIMIT"] = "ARTWORK_PIXEL_LIMIT";
|
|
76
|
+
ArtworkFailureCode["ARTWORK_DECODE"] = "ARTWORK_DECODE";
|
|
77
|
+
ArtworkFailureCode["ARTWORK_TRANSFER"] = "ARTWORK_TRANSFER";
|
|
78
|
+
ArtworkFailureCode["ARTWORK_EXPIRED"] = "ARTWORK_EXPIRED";
|
|
79
|
+
ArtworkFailureCode["ARTWORK_VALIDATION_FAILED"] = "ARTWORK_VALIDATION_FAILED";
|
|
80
|
+
})(ArtworkFailureCode || (ArtworkFailureCode = {}));
|
|
81
|
+
export var ArtworkState;
|
|
82
|
+
(function (ArtworkState) {
|
|
83
|
+
ArtworkState["pending"] = "pending";
|
|
84
|
+
ArtworkState["ready"] = "ready";
|
|
85
|
+
ArtworkState["review-required"] = "review-required";
|
|
86
|
+
ArtworkState["failed"] = "failed";
|
|
87
|
+
ArtworkState["deleting"] = "deleting";
|
|
88
|
+
ArtworkState["deleted"] = "deleted";
|
|
89
|
+
})(ArtworkState || (ArtworkState = {}));
|
|
49
90
|
export var ListMapsLifecycle;
|
|
50
91
|
(function (ListMapsLifecycle) {
|
|
51
92
|
ListMapsLifecycle["active"] = "active";
|
|
@@ -168,6 +209,56 @@ export class MapsClient {
|
|
|
168
209
|
return this.operations.getMapRevision(workspaceId, mapId, revision, requestOptions);
|
|
169
210
|
}
|
|
170
211
|
}
|
|
212
|
+
export class ArtworkClient {
|
|
213
|
+
configuration;
|
|
214
|
+
basePath;
|
|
215
|
+
operations;
|
|
216
|
+
constructor(configuration, basePath, axiosInstance = axios) {
|
|
217
|
+
this.configuration = configuration;
|
|
218
|
+
this.basePath = basePath;
|
|
219
|
+
this.operations = getSeatmapApi(axiosInstance);
|
|
220
|
+
}
|
|
221
|
+
async getArtworkLimits(workspaceId, options) {
|
|
222
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
223
|
+
return this.operations.getArtworkLimits(workspaceId, requestOptions);
|
|
224
|
+
}
|
|
225
|
+
async prepareArtworkUpload(workspaceId, prepareArtworkUploadDto, options) {
|
|
226
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", prepareArtworkUploadDto);
|
|
227
|
+
return this.operations.prepareArtworkUpload(workspaceId, requestOptions.data instanceof ArrayBuffer
|
|
228
|
+
? requestOptions.data
|
|
229
|
+
: prepareArtworkUploadDto, requestOptions);
|
|
230
|
+
}
|
|
231
|
+
async getArtworkUpload(workspaceId, uploadId, options) {
|
|
232
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "GET");
|
|
233
|
+
return this.operations.getArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
234
|
+
}
|
|
235
|
+
async uploadArtworkContent(workspaceId, uploadId, uploadArtworkContentBody, options) {
|
|
236
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "PUT", uploadArtworkContentBody);
|
|
237
|
+
return this.operations.uploadArtworkContent(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer
|
|
238
|
+
? requestOptions.data
|
|
239
|
+
: uploadArtworkContentBody, requestOptions);
|
|
240
|
+
}
|
|
241
|
+
async completeArtworkUpload(workspaceId, uploadId, options) {
|
|
242
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
|
|
243
|
+
return this.operations.completeArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
244
|
+
}
|
|
245
|
+
async cancelArtworkUpload(workspaceId, uploadId, options) {
|
|
246
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST");
|
|
247
|
+
return this.operations.cancelArtworkUpload(workspaceId, uploadId, requestOptions);
|
|
248
|
+
}
|
|
249
|
+
async retryArtworkUpload(workspaceId, uploadId, retryArtworkUploadDto, options) {
|
|
250
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", retryArtworkUploadDto);
|
|
251
|
+
return this.operations.retryArtworkUpload(workspaceId, uploadId, requestOptions.data instanceof ArrayBuffer
|
|
252
|
+
? requestOptions.data
|
|
253
|
+
: retryArtworkUploadDto, requestOptions);
|
|
254
|
+
}
|
|
255
|
+
async getArtworkResources(workspaceId, artworkBatchDto, options) {
|
|
256
|
+
const requestOptions = await prepareRequestOptions(this.configuration, this.basePath, options, "POST", artworkBatchDto);
|
|
257
|
+
return this.operations.getArtworkResources(workspaceId, requestOptions.data instanceof ArrayBuffer
|
|
258
|
+
? requestOptions.data
|
|
259
|
+
: artworkBatchDto, requestOptions);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
171
262
|
const getSeatmapApi = (axiosInstance = axios) => {
|
|
172
263
|
const getLiveness = (options) => {
|
|
173
264
|
return axiosInstance.get(`/health`, options);
|
|
@@ -435,6 +526,118 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
435
526
|
baseURL: "",
|
|
436
527
|
});
|
|
437
528
|
};
|
|
529
|
+
const getArtworkLimits = (workspaceId, options) => {
|
|
530
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`, options);
|
|
531
|
+
};
|
|
532
|
+
const getGetArtworkLimitsUrl = (workspaceId) => {
|
|
533
|
+
return axiosInstance
|
|
534
|
+
.create({
|
|
535
|
+
baseURL: "",
|
|
536
|
+
params: null,
|
|
537
|
+
})
|
|
538
|
+
.getUri({
|
|
539
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/limits`,
|
|
540
|
+
baseURL: "",
|
|
541
|
+
});
|
|
542
|
+
};
|
|
543
|
+
const prepareArtworkUpload = (workspaceId, prepareArtworkUploadDto, options) => {
|
|
544
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`, prepareArtworkUploadDto, options);
|
|
545
|
+
};
|
|
546
|
+
const getPrepareArtworkUploadUrl = (workspaceId) => {
|
|
547
|
+
return axiosInstance
|
|
548
|
+
.create({
|
|
549
|
+
baseURL: "",
|
|
550
|
+
params: null,
|
|
551
|
+
})
|
|
552
|
+
.getUri({
|
|
553
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads`,
|
|
554
|
+
baseURL: "",
|
|
555
|
+
});
|
|
556
|
+
};
|
|
557
|
+
const getArtworkUpload = (workspaceId, uploadId, options) => {
|
|
558
|
+
return axiosInstance.get(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`, options);
|
|
559
|
+
};
|
|
560
|
+
const getGetArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
561
|
+
return axiosInstance
|
|
562
|
+
.create({
|
|
563
|
+
baseURL: "",
|
|
564
|
+
params: null,
|
|
565
|
+
})
|
|
566
|
+
.getUri({
|
|
567
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}`,
|
|
568
|
+
baseURL: "",
|
|
569
|
+
});
|
|
570
|
+
};
|
|
571
|
+
const uploadArtworkContent = (workspaceId, uploadId, uploadArtworkContentBody, options) => {
|
|
572
|
+
return axiosInstance.put(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`, uploadArtworkContentBody, options);
|
|
573
|
+
};
|
|
574
|
+
const getUploadArtworkContentUrl = (workspaceId, uploadId) => {
|
|
575
|
+
return axiosInstance
|
|
576
|
+
.create({
|
|
577
|
+
baseURL: "",
|
|
578
|
+
params: null,
|
|
579
|
+
})
|
|
580
|
+
.getUri({
|
|
581
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/content`,
|
|
582
|
+
baseURL: "",
|
|
583
|
+
});
|
|
584
|
+
};
|
|
585
|
+
const completeArtworkUpload = (workspaceId, uploadId, options) => {
|
|
586
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`, undefined, options);
|
|
587
|
+
};
|
|
588
|
+
const getCompleteArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
589
|
+
return axiosInstance
|
|
590
|
+
.create({
|
|
591
|
+
baseURL: "",
|
|
592
|
+
params: null,
|
|
593
|
+
})
|
|
594
|
+
.getUri({
|
|
595
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/complete`,
|
|
596
|
+
baseURL: "",
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
const cancelArtworkUpload = (workspaceId, uploadId, options) => {
|
|
600
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`, undefined, options);
|
|
601
|
+
};
|
|
602
|
+
const getCancelArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
603
|
+
return axiosInstance
|
|
604
|
+
.create({
|
|
605
|
+
baseURL: "",
|
|
606
|
+
params: null,
|
|
607
|
+
})
|
|
608
|
+
.getUri({
|
|
609
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/cancel`,
|
|
610
|
+
baseURL: "",
|
|
611
|
+
});
|
|
612
|
+
};
|
|
613
|
+
const retryArtworkUpload = (workspaceId, uploadId, retryArtworkUploadDto, options) => {
|
|
614
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`, retryArtworkUploadDto, options);
|
|
615
|
+
};
|
|
616
|
+
const getRetryArtworkUploadUrl = (workspaceId, uploadId) => {
|
|
617
|
+
return axiosInstance
|
|
618
|
+
.create({
|
|
619
|
+
baseURL: "",
|
|
620
|
+
params: null,
|
|
621
|
+
})
|
|
622
|
+
.getUri({
|
|
623
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/uploads/${encodeURIComponent(uploadId)}/retry`,
|
|
624
|
+
baseURL: "",
|
|
625
|
+
});
|
|
626
|
+
};
|
|
627
|
+
const getArtworkResources = (workspaceId, artworkBatchDto, options) => {
|
|
628
|
+
return axiosInstance.post(`/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`, artworkBatchDto, options);
|
|
629
|
+
};
|
|
630
|
+
const getGetArtworkResourcesUrl = (workspaceId) => {
|
|
631
|
+
return axiosInstance
|
|
632
|
+
.create({
|
|
633
|
+
baseURL: "",
|
|
634
|
+
params: null,
|
|
635
|
+
})
|
|
636
|
+
.getUri({
|
|
637
|
+
url: `/workspaces/${encodeURIComponent(workspaceId)}/artwork/resources`,
|
|
638
|
+
baseURL: "",
|
|
639
|
+
});
|
|
640
|
+
};
|
|
438
641
|
return {
|
|
439
642
|
getLiveness,
|
|
440
643
|
getIntegrationContext,
|
|
@@ -454,6 +657,14 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
454
657
|
changeMap,
|
|
455
658
|
listMapRevisions,
|
|
456
659
|
getMapRevision,
|
|
660
|
+
getArtworkLimits,
|
|
661
|
+
prepareArtworkUpload,
|
|
662
|
+
getArtworkUpload,
|
|
663
|
+
uploadArtworkContent,
|
|
664
|
+
completeArtworkUpload,
|
|
665
|
+
cancelArtworkUpload,
|
|
666
|
+
retryArtworkUpload,
|
|
667
|
+
getArtworkResources,
|
|
457
668
|
getGetLivenessUrl,
|
|
458
669
|
getGetIntegrationContextUrl,
|
|
459
670
|
getStartLoginUrl,
|
|
@@ -472,5 +683,13 @@ const getSeatmapApi = (axiosInstance = axios) => {
|
|
|
472
683
|
getChangeMapUrl,
|
|
473
684
|
getListMapRevisionsUrl,
|
|
474
685
|
getGetMapRevisionUrl,
|
|
686
|
+
getGetArtworkLimitsUrl,
|
|
687
|
+
getPrepareArtworkUploadUrl,
|
|
688
|
+
getGetArtworkUploadUrl,
|
|
689
|
+
getUploadArtworkContentUrl,
|
|
690
|
+
getCompleteArtworkUploadUrl,
|
|
691
|
+
getCancelArtworkUploadUrl,
|
|
692
|
+
getRetryArtworkUploadUrl,
|
|
693
|
+
getGetArtworkResourcesUrl,
|
|
475
694
|
};
|
|
476
695
|
};
|
package/dist/transport.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { Configuration } from "./configuration.js";
|
|
3
|
+
/**
|
|
4
|
+
* @method prepareRequestOptions
|
|
5
|
+
* @description Applies instance-scoped transport settings, the SDK write contract and optional body compression.
|
|
6
|
+
* @async
|
|
7
|
+
* @param {Configuration} configuration
|
|
8
|
+
* @param {string | undefined} basePath
|
|
9
|
+
* @param {AxiosRequestConfig | undefined} options
|
|
10
|
+
* @param {string} method
|
|
11
|
+
* @param {unknown} [body]
|
|
12
|
+
* @returns {Promise<AxiosRequestConfig<unknown>>}
|
|
13
|
+
*/
|
|
3
14
|
export declare function prepareRequestOptions(configuration: Configuration, basePath: string | undefined, options: AxiosRequestConfig | undefined, method: string, body?: unknown): Promise<AxiosRequestConfig<unknown>>;
|
package/dist/transport.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { mergeConfig } from "axios";
|
|
2
2
|
const clientContract = "1";
|
|
3
3
|
const requestCompressionThreshold = 64 * 1024;
|
|
4
|
+
/**
|
|
5
|
+
* @method prepareRequestOptions
|
|
6
|
+
* @description Applies instance-scoped transport settings, the SDK write contract and optional body compression.
|
|
7
|
+
* @async
|
|
8
|
+
* @param {Configuration} configuration
|
|
9
|
+
* @param {string | undefined} basePath
|
|
10
|
+
* @param {AxiosRequestConfig | undefined} options
|
|
11
|
+
* @param {string} method
|
|
12
|
+
* @param {unknown} [body]
|
|
13
|
+
* @returns {Promise<AxiosRequestConfig<unknown>>}
|
|
14
|
+
*/
|
|
4
15
|
export async function prepareRequestOptions(configuration, basePath, options, method, body) {
|
|
5
16
|
const prepared = mergeConfig(configuration.baseOptions ?? {}, options ?? {});
|
|
6
17
|
const headers = { ...prepared.headers };
|
|
@@ -11,12 +22,20 @@ export async function prepareRequestOptions(configuration, basePath, options, me
|
|
|
11
22
|
if (configuredBasePath !== undefined) {
|
|
12
23
|
prepared.baseURL = configuredBasePath;
|
|
13
24
|
}
|
|
25
|
+
if (body === undefined &&
|
|
26
|
+
!["GET", "HEAD", "OPTIONS"].includes(method) &&
|
|
27
|
+
!Object.keys(headers).some((name) => name.toLowerCase() === "content-type")) {
|
|
28
|
+
headers["Content-Type"] = "application/json";
|
|
29
|
+
}
|
|
14
30
|
prepared.headers = headers;
|
|
15
31
|
if (prepared.validateStatus === undefined) {
|
|
16
32
|
prepared.validateStatus = (status) => (status >= 200 && status < 300) || status === 304;
|
|
17
33
|
}
|
|
18
34
|
if (!configuration.compressRequests ||
|
|
19
35
|
body === undefined ||
|
|
36
|
+
(typeof Blob !== "undefined" && body instanceof Blob) ||
|
|
37
|
+
body instanceof ArrayBuffer ||
|
|
38
|
+
ArrayBuffer.isView(body) ||
|
|
20
39
|
Object.keys(headers).some((name) => name.toLowerCase() === "content-encoding")) {
|
|
21
40
|
return prepared;
|
|
22
41
|
}
|