@teemill/platform 0.8.0 → 0.10.0

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/api.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.8.0
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.10.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -97,6 +97,62 @@ export interface ApiError {
97
97
  */
98
98
  'message': string;
99
99
  }
100
+ /**
101
+ * Application of a variant
102
+ * @export
103
+ * @interface Application
104
+ */
105
+ export interface Application {
106
+ /**
107
+ * Placement of the application
108
+ * @type {string}
109
+ * @memberof Application
110
+ */
111
+ 'placement': string;
112
+ /**
113
+ *
114
+ * @type {ApplicationTechnology}
115
+ * @memberof Application
116
+ */
117
+ 'technology'?: ApplicationTechnology | null;
118
+ /**
119
+ *
120
+ * @type {Mockup}
121
+ * @memberof Application
122
+ */
123
+ 'mockup': Mockup;
124
+ /**
125
+ *
126
+ * @type {Output}
127
+ * @memberof Application
128
+ */
129
+ 'output'?: Output;
130
+ /**
131
+ * Whether the application requires pretreatment
132
+ * @type {boolean}
133
+ * @memberof Application
134
+ */
135
+ 'requiresPretreat'?: boolean;
136
+ }
137
+ /**
138
+ * Technology to be used for the application
139
+ * @export
140
+ * @interface ApplicationTechnology
141
+ */
142
+ export interface ApplicationTechnology {
143
+ /**
144
+ * Unique object identifier
145
+ * @type {string}
146
+ * @memberof ApplicationTechnology
147
+ */
148
+ 'id'?: string;
149
+ /**
150
+ * A reference to the resource location
151
+ * @type {string}
152
+ * @memberof ApplicationTechnology
153
+ */
154
+ 'ref'?: string;
155
+ }
100
156
  /**
101
157
  * Order recipient contact information, used only for courier tracking/updates.
102
158
  * @export
@@ -318,6 +374,87 @@ export interface Image {
318
374
  */
319
375
  'sortOrder'?: number;
320
376
  }
377
+ /**
378
+ *
379
+ * @export
380
+ * @interface Metafield
381
+ */
382
+ export interface Metafield {
383
+ /**
384
+ * The unique identifier for a meta field
385
+ * @type {string}
386
+ * @memberof Metafield
387
+ */
388
+ 'key': string;
389
+ /**
390
+ * The data stored in the meta field. Always stored as a string, regardless of the meta field\'s type.
391
+ * @type {string}
392
+ * @memberof Metafield
393
+ */
394
+ 'value': string;
395
+ }
396
+ /**
397
+ * Configuration of the product mockup
398
+ * @export
399
+ * @interface Mockup
400
+ */
401
+ export interface Mockup {
402
+ /**
403
+ * Base image of the mockup
404
+ * @type {string}
405
+ * @memberof Mockup
406
+ */
407
+ 'baseImage': string;
408
+ /**
409
+ *
410
+ * @type {MockupDesignPlacement}
411
+ * @memberof Mockup
412
+ */
413
+ 'designPlacement'?: MockupDesignPlacement | null;
414
+ /**
415
+ * Optional mask applied to the design. Used for products with non-rectangular print areas
416
+ * @type {string}
417
+ * @memberof Mockup
418
+ */
419
+ 'designMask'?: string | null;
420
+ /**
421
+ * Optional image to be overlaid on top of the design. This can be used to give the impression of texture, shading, depth or other effects.
422
+ * @type {string}
423
+ * @memberof Mockup
424
+ */
425
+ 'overlayImage'?: string | null;
426
+ }
427
+ /**
428
+ * Design placement
429
+ * @export
430
+ * @interface MockupDesignPlacement
431
+ */
432
+ export interface MockupDesignPlacement {
433
+ /**
434
+ * X coordinate in pixels
435
+ * @type {number}
436
+ * @memberof MockupDesignPlacement
437
+ */
438
+ 'x': number;
439
+ /**
440
+ * Y coordinate in pixels
441
+ * @type {number}
442
+ * @memberof MockupDesignPlacement
443
+ */
444
+ 'y': number;
445
+ /**
446
+ * Width in pixels
447
+ * @type {number}
448
+ * @memberof MockupDesignPlacement
449
+ */
450
+ 'width': number;
451
+ /**
452
+ * Height in pixels
453
+ * @type {number}
454
+ * @memberof MockupDesignPlacement
455
+ */
456
+ 'height': number;
457
+ }
321
458
  /**
322
459
  *
323
460
  * @export
@@ -601,6 +738,178 @@ export interface Origin {
601
738
  */
602
739
  'isPaid'?: boolean;
603
740
  }
741
+ /**
742
+ * Configuration of the files output for this application
743
+ * @export
744
+ * @interface Output
745
+ */
746
+ export interface Output {
747
+ /**
748
+ * Width of the print file in pixels
749
+ * @type {number}
750
+ * @memberof Output
751
+ */
752
+ 'width': number;
753
+ /**
754
+ * Height of the print file in pixels
755
+ * @type {number}
756
+ * @memberof Output
757
+ */
758
+ 'height': number;
759
+ /**
760
+ * DPI of the print file in pixels
761
+ * @type {number}
762
+ * @memberof Output
763
+ */
764
+ 'dpi': number;
765
+ /**
766
+ *
767
+ * @type {OutputPadding}
768
+ * @memberof Output
769
+ */
770
+ 'padding'?: OutputPadding;
771
+ /**
772
+ * Position of the print
773
+ * @type {string}
774
+ * @memberof Output
775
+ */
776
+ 'position': OutputPositionEnum;
777
+ /**
778
+ * Whether the print should be mirrored horizontally
779
+ * @type {boolean}
780
+ * @memberof Output
781
+ */
782
+ 'mirrorX'?: boolean;
783
+ /**
784
+ * Whether the print should be mirrored vertically
785
+ * @type {boolean}
786
+ * @memberof Output
787
+ */
788
+ 'mirrorY'?: boolean;
789
+ /**
790
+ * Amount of reflection in pixels
791
+ * @type {number}
792
+ * @memberof Output
793
+ */
794
+ 'reflect'?: number;
795
+ /**
796
+ * Amount to extend the print in pixels
797
+ * @type {number}
798
+ * @memberof Output
799
+ */
800
+ 'extend'?: number;
801
+ /**
802
+ * Rotation in degrees
803
+ * @type {number}
804
+ * @memberof Output
805
+ */
806
+ 'rotate'?: number;
807
+ /**
808
+ * Format of the print file
809
+ * @type {string}
810
+ * @memberof Output
811
+ */
812
+ 'fileFormat': OutputFileFormatEnum;
813
+ /**
814
+ *
815
+ * @type {Array<OutputDeviceConfigsInner>}
816
+ * @memberof Output
817
+ */
818
+ 'deviceConfigs'?: Array<OutputDeviceConfigsInner>;
819
+ }
820
+
821
+ export const OutputPositionEnum = {
822
+ Center: 'center',
823
+ Top: 'top',
824
+ Left: 'left',
825
+ Bottom: 'bottom',
826
+ Right: 'right',
827
+ RightTop: 'right-top',
828
+ RightBottom: 'right-bottom',
829
+ LeftTop: 'left-top',
830
+ LeftBottom: 'left-bottom'
831
+ } as const;
832
+
833
+ export type OutputPositionEnum = typeof OutputPositionEnum[keyof typeof OutputPositionEnum];
834
+ export const OutputFileFormatEnum = {
835
+ Png: 'png',
836
+ Jpg: 'jpg',
837
+ Jpeg: 'jpeg',
838
+ Webp: 'webp',
839
+ Pdf: 'pdf'
840
+ } as const;
841
+
842
+ export type OutputFileFormatEnum = typeof OutputFileFormatEnum[keyof typeof OutputFileFormatEnum];
843
+
844
+ /**
845
+ *
846
+ * @export
847
+ * @interface OutputDeviceConfigsInner
848
+ */
849
+ export interface OutputDeviceConfigsInner {
850
+ /**
851
+ * Unique object identifier
852
+ * @type {string}
853
+ * @memberof OutputDeviceConfigsInner
854
+ */
855
+ 'modelId'?: string;
856
+ /**
857
+ *
858
+ * @type {Array<OutputDeviceConfigsInnerPropertiesInner>}
859
+ * @memberof OutputDeviceConfigsInner
860
+ */
861
+ 'properties'?: Array<OutputDeviceConfigsInnerPropertiesInner>;
862
+ }
863
+ /**
864
+ *
865
+ * @export
866
+ * @interface OutputDeviceConfigsInnerPropertiesInner
867
+ */
868
+ export interface OutputDeviceConfigsInnerPropertiesInner {
869
+ /**
870
+ *
871
+ * @type {string}
872
+ * @memberof OutputDeviceConfigsInnerPropertiesInner
873
+ */
874
+ 'name'?: string;
875
+ /**
876
+ *
877
+ * @type {string}
878
+ * @memberof OutputDeviceConfigsInnerPropertiesInner
879
+ */
880
+ 'option'?: string;
881
+ }
882
+ /**
883
+ * Padding to be applied to the print file
884
+ * @export
885
+ * @interface OutputPadding
886
+ */
887
+ export interface OutputPadding {
888
+ /**
889
+ * Top padding in pixels
890
+ * @type {number}
891
+ * @memberof OutputPadding
892
+ */
893
+ 'top': number;
894
+ /**
895
+ * Right padding in pixels
896
+ * @type {number}
897
+ * @memberof OutputPadding
898
+ */
899
+ 'right': number;
900
+ /**
901
+ * Bottom padding in pixels
902
+ * @type {number}
903
+ * @memberof OutputPadding
904
+ */
905
+ 'bottom': number;
906
+ /**
907
+ * Left padding in pixels
908
+ * @type {number}
909
+ * @memberof OutputPadding
910
+ */
911
+ 'left': number;
912
+ }
604
913
  /**
605
914
  *
606
915
  * @export
@@ -637,6 +946,12 @@ export interface Platform {
637
946
  * @memberof Platform
638
947
  */
639
948
  'favicon': string | null;
949
+ /**
950
+ *
951
+ * @type {boolean}
952
+ * @memberof Platform
953
+ */
954
+ 'clientGiftWrapAvailable': boolean;
640
955
  }
641
956
  /**
642
957
  *
@@ -679,96 +994,333 @@ export interface Price {
679
994
  /**
680
995
  *
681
996
  * @export
682
- * @interface ShippingMethod
997
+ * @interface Product
683
998
  */
684
- export interface ShippingMethod {
999
+ export interface Product {
685
1000
  /**
686
1001
  * Unique object identifier
687
1002
  * @type {string}
688
- * @memberof ShippingMethod
1003
+ * @memberof Product
689
1004
  */
690
- 'id'?: string;
1005
+ 'id': string;
691
1006
  /**
692
- *
1007
+ * A reference to the resource location
693
1008
  * @type {string}
694
- * @memberof ShippingMethod
1009
+ * @memberof Product
695
1010
  */
696
- 'name'?: string;
1011
+ 'ref': string;
697
1012
  /**
698
1013
  *
699
1014
  * @type {string}
700
- * @memberof ShippingMethod
1015
+ * @memberof Product
701
1016
  */
702
- 'description'?: string;
1017
+ 'title': string;
703
1018
  /**
704
- *
705
- * @type {DeliveryEstimates}
706
- * @memberof ShippingMethod
1019
+ * Whether the product is enabled
1020
+ * @type {boolean}
1021
+ * @memberof Product
707
1022
  */
708
- 'deliveryEstimates'?: DeliveryEstimates;
1023
+ 'enabled'?: boolean;
709
1024
  /**
710
- *
711
- * @type {Price}
712
- * @memberof ShippingMethod
1025
+ * Whether stock levels should be tracked for this product
1026
+ * @type {boolean}
1027
+ * @memberof Product
713
1028
  */
714
- 'totalPrice'?: Price;
1029
+ 'trackInventory'?: boolean;
715
1030
  /**
716
- *
717
- * @type {Price}
718
- * @memberof ShippingMethod
1031
+ * Whether this product should always be purchasable, regardless of factory stock levels
1032
+ * @type {boolean}
1033
+ * @memberof Product
719
1034
  */
720
- 'taxPrice'?: Price;
1035
+ 'alwaysInStock'?: boolean;
721
1036
  /**
722
1037
  *
723
- * @type {Price}
724
- * @memberof ShippingMethod
1038
+ * @type {string}
1039
+ * @memberof Product
725
1040
  */
726
- 'subtotalPrice'?: Price;
1041
+ 'sku'?: string;
727
1042
  /**
728
- *
729
- * @type {Price}
730
- * @memberof ShippingMethod
1043
+ * Tariff code of the product
1044
+ * @type {number}
1045
+ * @memberof Product
731
1046
  */
732
- 'discountPrice'?: Price;
733
- }
734
- /**
735
- *
736
- * @export
737
- * @interface StatusHistoryItem
738
- */
739
- export interface StatusHistoryItem {
1047
+ 'tariffCode'?: number;
1048
+ /**
1049
+ * Brand of the product
1050
+ * @type {string}
1051
+ * @memberof Product
1052
+ */
1053
+ 'brand'?: string;
1054
+ /**
1055
+ * The owner of the product
1056
+ * @type {string}
1057
+ * @memberof Product
1058
+ */
1059
+ 'ownerId': string;
1060
+ /**
1061
+ * Description of the product
1062
+ * @type {string}
1063
+ * @memberof Product
1064
+ */
1065
+ 'description'?: string;
1066
+ /**
1067
+ * Specifications of the product
1068
+ * @type {string}
1069
+ * @memberof Product
1070
+ */
1071
+ 'specifications'?: string;
740
1072
  /**
741
1073
  *
742
- * @type {OrderStatus}
743
- * @memberof StatusHistoryItem
1074
+ * @type {ProductType}
1075
+ * @memberof Product
744
1076
  */
745
- 'status'?: OrderStatus;
1077
+ 'productType': ProductType;
1078
+ /**
1079
+ * Attributes associated to a product such as Colour and Size.
1080
+ * @type {Array<ProductAttribute>}
1081
+ * @memberof Product
1082
+ */
1083
+ 'attributes': Array<ProductAttribute>;
1084
+ /**
1085
+ * Additional data to be stored with the product
1086
+ * @type {Array<Metafield>}
1087
+ * @memberof Product
1088
+ */
1089
+ 'metafields': Array<Metafield>;
1090
+ /**
1091
+ * Variants
1092
+ * @type {Array<ProductVariantsInner>}
1093
+ * @memberof Product
1094
+ */
1095
+ 'variants': Array<ProductVariantsInner>;
746
1096
  /**
747
1097
  * ISO 8601 Timestamp
748
1098
  * @type {string}
749
- * @memberof StatusHistoryItem
1099
+ * @memberof Product
750
1100
  */
751
1101
  'createdAt'?: string;
752
- }
753
-
754
-
755
- /**
756
- *
757
- * @export
758
- * @interface UpdateFulfillmentRequest
759
- */
760
- export interface UpdateFulfillmentRequest {
761
1102
  /**
762
- * Unique object identifier
1103
+ * ISO 8601 Timestamp
763
1104
  * @type {string}
764
- * @memberof UpdateFulfillmentRequest
1105
+ * @memberof Product
765
1106
  */
766
- 'fulfillerId'?: string;
1107
+ 'updatedAt'?: string;
1108
+ /**
1109
+ * Images
1110
+ * @type {Array<Image>}
1111
+ * @memberof Product
1112
+ */
1113
+ 'images'?: Array<Image>;
767
1114
  }
768
1115
  /**
769
1116
  *
770
1117
  * @export
771
- * @interface UpdatePlatformRequest
1118
+ * @interface ProductAttribute
1119
+ */
1120
+ export interface ProductAttribute {
1121
+ /**
1122
+ * Attribute name
1123
+ * @type {string}
1124
+ * @memberof ProductAttribute
1125
+ */
1126
+ 'name': string;
1127
+ /**
1128
+ * Position of the attribute when ordered
1129
+ * @type {number}
1130
+ * @memberof ProductAttribute
1131
+ */
1132
+ 'sortOrder': number;
1133
+ /**
1134
+ * Attribute values
1135
+ * @type {Array<ProductAttributeValuesInner>}
1136
+ * @memberof ProductAttribute
1137
+ */
1138
+ 'values': Array<ProductAttributeValuesInner>;
1139
+ }
1140
+ /**
1141
+ *
1142
+ * @export
1143
+ * @interface ProductAttributeValuesInner
1144
+ */
1145
+ export interface ProductAttributeValuesInner {
1146
+ /**
1147
+ * Position of the attribute value when ordered
1148
+ * @type {number}
1149
+ * @memberof ProductAttributeValuesInner
1150
+ */
1151
+ 'sortOrder': number;
1152
+ /**
1153
+ * Value of the attribute
1154
+ * @type {string}
1155
+ * @memberof ProductAttributeValuesInner
1156
+ */
1157
+ 'value': string;
1158
+ /**
1159
+ *
1160
+ * @type {ProductAttributeValuesInnerThumbnail}
1161
+ * @memberof ProductAttributeValuesInner
1162
+ */
1163
+ 'thumbnail'?: ProductAttributeValuesInnerThumbnail;
1164
+ }
1165
+ /**
1166
+ *
1167
+ * @export
1168
+ * @interface ProductAttributeValuesInnerThumbnail
1169
+ */
1170
+ export interface ProductAttributeValuesInnerThumbnail {
1171
+ /**
1172
+ *
1173
+ * @type {string}
1174
+ * @memberof ProductAttributeValuesInnerThumbnail
1175
+ */
1176
+ 'type'?: ProductAttributeValuesInnerThumbnailTypeEnum;
1177
+ /**
1178
+ *
1179
+ * @type {string}
1180
+ * @memberof ProductAttributeValuesInnerThumbnail
1181
+ */
1182
+ 'value'?: string;
1183
+ }
1184
+
1185
+ export const ProductAttributeValuesInnerThumbnailTypeEnum = {
1186
+ Text: 'text',
1187
+ Color: 'color',
1188
+ Image: 'image'
1189
+ } as const;
1190
+
1191
+ export type ProductAttributeValuesInnerThumbnailTypeEnum = typeof ProductAttributeValuesInnerThumbnailTypeEnum[keyof typeof ProductAttributeValuesInnerThumbnailTypeEnum];
1192
+
1193
+ /**
1194
+ *
1195
+ * @export
1196
+ * @interface ProductType
1197
+ */
1198
+ export interface ProductType {
1199
+ /**
1200
+ * Id of the product type
1201
+ * @type {number}
1202
+ * @memberof ProductType
1203
+ */
1204
+ 'id'?: number;
1205
+ /**
1206
+ * Name of the product type
1207
+ * @type {string}
1208
+ * @memberof ProductType
1209
+ */
1210
+ 'name'?: string;
1211
+ }
1212
+ /**
1213
+ *
1214
+ * @export
1215
+ * @interface ProductVariantsInner
1216
+ */
1217
+ export interface ProductVariantsInner {
1218
+ /**
1219
+ * Unique object identifier
1220
+ * @type {string}
1221
+ * @memberof ProductVariantsInner
1222
+ */
1223
+ 'id'?: string;
1224
+ /**
1225
+ * A reference to the resource location
1226
+ * @type {string}
1227
+ * @memberof ProductVariantsInner
1228
+ */
1229
+ 'ref'?: string;
1230
+ }
1231
+ /**
1232
+ *
1233
+ * @export
1234
+ * @interface ShippingMethod
1235
+ */
1236
+ export interface ShippingMethod {
1237
+ /**
1238
+ * Unique object identifier
1239
+ * @type {string}
1240
+ * @memberof ShippingMethod
1241
+ */
1242
+ 'id'?: string;
1243
+ /**
1244
+ *
1245
+ * @type {string}
1246
+ * @memberof ShippingMethod
1247
+ */
1248
+ 'name'?: string;
1249
+ /**
1250
+ *
1251
+ * @type {string}
1252
+ * @memberof ShippingMethod
1253
+ */
1254
+ 'description'?: string;
1255
+ /**
1256
+ *
1257
+ * @type {DeliveryEstimates}
1258
+ * @memberof ShippingMethod
1259
+ */
1260
+ 'deliveryEstimates'?: DeliveryEstimates;
1261
+ /**
1262
+ *
1263
+ * @type {Price}
1264
+ * @memberof ShippingMethod
1265
+ */
1266
+ 'totalPrice'?: Price;
1267
+ /**
1268
+ *
1269
+ * @type {Price}
1270
+ * @memberof ShippingMethod
1271
+ */
1272
+ 'taxPrice'?: Price;
1273
+ /**
1274
+ *
1275
+ * @type {Price}
1276
+ * @memberof ShippingMethod
1277
+ */
1278
+ 'subtotalPrice'?: Price;
1279
+ /**
1280
+ *
1281
+ * @type {Price}
1282
+ * @memberof ShippingMethod
1283
+ */
1284
+ 'discountPrice'?: Price;
1285
+ }
1286
+ /**
1287
+ *
1288
+ * @export
1289
+ * @interface StatusHistoryItem
1290
+ */
1291
+ export interface StatusHistoryItem {
1292
+ /**
1293
+ *
1294
+ * @type {OrderStatus}
1295
+ * @memberof StatusHistoryItem
1296
+ */
1297
+ 'status'?: OrderStatus;
1298
+ /**
1299
+ * ISO 8601 Timestamp
1300
+ * @type {string}
1301
+ * @memberof StatusHistoryItem
1302
+ */
1303
+ 'createdAt'?: string;
1304
+ }
1305
+
1306
+
1307
+ /**
1308
+ *
1309
+ * @export
1310
+ * @interface UpdateFulfillmentRequest
1311
+ */
1312
+ export interface UpdateFulfillmentRequest {
1313
+ /**
1314
+ * Unique object identifier
1315
+ * @type {string}
1316
+ * @memberof UpdateFulfillmentRequest
1317
+ */
1318
+ 'fulfillerId'?: string;
1319
+ }
1320
+ /**
1321
+ *
1322
+ * @export
1323
+ * @interface UpdatePlatformRequest
772
1324
  */
773
1325
  export interface UpdatePlatformRequest {
774
1326
  /**
@@ -783,6 +1335,63 @@ export interface UpdatePlatformRequest {
783
1335
  * @memberof UpdatePlatformRequest
784
1336
  */
785
1337
  'favicon'?: string;
1338
+ /**
1339
+ *
1340
+ * @type {boolean}
1341
+ * @memberof UpdatePlatformRequest
1342
+ */
1343
+ 'clientGiftWrapAvailable'?: boolean;
1344
+ }
1345
+ /**
1346
+ *
1347
+ * @export
1348
+ * @interface UpdateProductRequest
1349
+ */
1350
+ export interface UpdateProductRequest {
1351
+ /**
1352
+ * The warehouse variants of the product to update
1353
+ * @type {Array<UpdateProductRequestVariantsInner>}
1354
+ * @memberof UpdateProductRequest
1355
+ */
1356
+ 'variants'?: Array<UpdateProductRequestVariantsInner>;
1357
+ /**
1358
+ * Whether the platform warehouse product should be enabled or not
1359
+ * @type {boolean}
1360
+ * @memberof UpdateProductRequest
1361
+ */
1362
+ 'enabled'?: boolean;
1363
+ }
1364
+ /**
1365
+ *
1366
+ * @export
1367
+ * @interface UpdateProductRequestVariantsInner
1368
+ */
1369
+ export interface UpdateProductRequestVariantsInner {
1370
+ /**
1371
+ * The ID of the variant to update
1372
+ * @type {string}
1373
+ * @memberof UpdateProductRequestVariantsInner
1374
+ */
1375
+ 'id': string;
1376
+ /**
1377
+ * Whether the warehouse variant should be enabled or not
1378
+ * @type {boolean}
1379
+ * @memberof UpdateProductRequestVariantsInner
1380
+ */
1381
+ 'enabled'?: boolean;
1382
+ }
1383
+ /**
1384
+ *
1385
+ * @export
1386
+ * @interface UpdateVariantRequest
1387
+ */
1388
+ export interface UpdateVariantRequest {
1389
+ /**
1390
+ * Whether the platform warehouse variant is enabled or not
1391
+ * @type {boolean}
1392
+ * @memberof UpdateVariantRequest
1393
+ */
1394
+ 'enabled'?: boolean;
786
1395
  }
787
1396
  /**
788
1397
  *
@@ -803,6 +1412,206 @@ export interface ValidationError {
803
1412
  */
804
1413
  'errors': { [key: string]: Array<string>; };
805
1414
  }
1415
+ /**
1416
+ *
1417
+ * @export
1418
+ * @interface Variant
1419
+ */
1420
+ export interface Variant {
1421
+ /**
1422
+ * Unique object identifier
1423
+ * @type {string}
1424
+ * @memberof Variant
1425
+ */
1426
+ 'id': string;
1427
+ /**
1428
+ * A reference to the resource location
1429
+ * @type {string}
1430
+ * @memberof Variant
1431
+ */
1432
+ 'ref': string;
1433
+ /**
1434
+ *
1435
+ * @type {ProductVariantsInner}
1436
+ * @memberof Variant
1437
+ */
1438
+ 'product'?: ProductVariantsInner;
1439
+ /**
1440
+ *
1441
+ * @type {string}
1442
+ * @memberof Variant
1443
+ */
1444
+ 'sku': string;
1445
+ /**
1446
+ * ISO 8601 Timestamp
1447
+ * @type {string}
1448
+ * @memberof Variant
1449
+ */
1450
+ 'createdAt'?: string;
1451
+ /**
1452
+ * ISO 8601 Timestamp
1453
+ * @type {string}
1454
+ * @memberof Variant
1455
+ */
1456
+ 'updatedAt'?: string;
1457
+ /**
1458
+ * Images
1459
+ * @type {Array<Image>}
1460
+ * @memberof Variant
1461
+ */
1462
+ 'images'?: Array<Image>;
1463
+ /**
1464
+ * Weight in kg
1465
+ * @type {number}
1466
+ * @memberof Variant
1467
+ */
1468
+ 'weight'?: number;
1469
+ /**
1470
+ * The number of units that can be packed in a single pickface
1471
+ * @type {number}
1472
+ * @memberof Variant
1473
+ */
1474
+ 'packVolume'?: number;
1475
+ /**
1476
+ *
1477
+ * @type {VariantPackedDimensions}
1478
+ * @memberof Variant
1479
+ */
1480
+ 'packedDimensions'?: VariantPackedDimensions;
1481
+ /**
1482
+ * Whether the variant can be pre-ordered
1483
+ * @type {boolean}
1484
+ * @memberof Variant
1485
+ */
1486
+ 'preOrderable'?: boolean;
1487
+ /**
1488
+ * Whether the variant is enabled
1489
+ * @type {boolean}
1490
+ * @memberof Variant
1491
+ */
1492
+ 'enabled'?: boolean;
1493
+ /**
1494
+ * Whether the variant is discontinued
1495
+ * @type {boolean}
1496
+ * @memberof Variant
1497
+ */
1498
+ 'discontinued'?: boolean;
1499
+ /**
1500
+ *
1501
+ * @type {VariantManufacturerOrigin}
1502
+ * @memberof Variant
1503
+ */
1504
+ 'manufacturerOrigin'?: VariantManufacturerOrigin;
1505
+ /**
1506
+ * Attributes associated to a variant such as Colour and Size. An attribute can have thumbnail type of `text`, `color`, or `image`. Attribute tags are intended for grouping and filtering, e.g. by a group of colours.
1507
+ * @type {Array<VariantAttribute>}
1508
+ * @memberof Variant
1509
+ */
1510
+ 'attributes': Array<VariantAttribute>;
1511
+ /**
1512
+ * Applications of the variant
1513
+ * @type {Array<Application>}
1514
+ * @memberof Variant
1515
+ */
1516
+ 'applications'?: Array<Application>;
1517
+ }
1518
+ /**
1519
+ *
1520
+ * @export
1521
+ * @interface VariantAttribute
1522
+ */
1523
+ export interface VariantAttribute {
1524
+ /**
1525
+ * Attribute name
1526
+ * @type {string}
1527
+ * @memberof VariantAttribute
1528
+ */
1529
+ 'name': string;
1530
+ /**
1531
+ * Attribute value
1532
+ * @type {string}
1533
+ * @memberof VariantAttribute
1534
+ */
1535
+ 'value': string;
1536
+ /**
1537
+ *
1538
+ * @type {VariantAttributeThumbnail}
1539
+ * @memberof VariantAttribute
1540
+ */
1541
+ 'thumbnail'?: VariantAttributeThumbnail;
1542
+ /**
1543
+ * Attribute tags
1544
+ * @type {Array<string>}
1545
+ * @memberof VariantAttribute
1546
+ */
1547
+ 'tags'?: Array<string>;
1548
+ }
1549
+ /**
1550
+ * Attribute thumbnail
1551
+ * @export
1552
+ * @interface VariantAttributeThumbnail
1553
+ */
1554
+ export interface VariantAttributeThumbnail {
1555
+ /**
1556
+ *
1557
+ * @type {string}
1558
+ * @memberof VariantAttributeThumbnail
1559
+ */
1560
+ 'type'?: VariantAttributeThumbnailTypeEnum;
1561
+ /**
1562
+ *
1563
+ * @type {string}
1564
+ * @memberof VariantAttributeThumbnail
1565
+ */
1566
+ 'value'?: string;
1567
+ }
1568
+
1569
+ export const VariantAttributeThumbnailTypeEnum = {
1570
+ Text: 'text',
1571
+ Color: 'color',
1572
+ Image: 'image'
1573
+ } as const;
1574
+
1575
+ export type VariantAttributeThumbnailTypeEnum = typeof VariantAttributeThumbnailTypeEnum[keyof typeof VariantAttributeThumbnailTypeEnum];
1576
+
1577
+ /**
1578
+ * Where the product was originally produced or manufactured
1579
+ * @export
1580
+ * @interface VariantManufacturerOrigin
1581
+ */
1582
+ export interface VariantManufacturerOrigin {
1583
+ /**
1584
+ * Country of origin (ISO 3166-1 alpha-2).
1585
+ * @type {string}
1586
+ * @memberof VariantManufacturerOrigin
1587
+ */
1588
+ 'country'?: string;
1589
+ }
1590
+ /**
1591
+ *
1592
+ * @export
1593
+ * @interface VariantPackedDimensions
1594
+ */
1595
+ export interface VariantPackedDimensions {
1596
+ /**
1597
+ * Length in mm
1598
+ * @type {number}
1599
+ * @memberof VariantPackedDimensions
1600
+ */
1601
+ 'length'?: number;
1602
+ /**
1603
+ * Width in mm
1604
+ * @type {number}
1605
+ * @memberof VariantPackedDimensions
1606
+ */
1607
+ 'width'?: number;
1608
+ /**
1609
+ * Depth in mm
1610
+ * @type {number}
1611
+ * @memberof VariantPackedDimensions
1612
+ */
1613
+ 'depth'?: number;
1614
+ }
806
1615
 
807
1616
  /**
808
1617
  * OrdersApi - axios parameter creator
@@ -2104,6 +2913,122 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
2104
2913
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2105
2914
  localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
2106
2915
 
2916
+ return {
2917
+ url: toPathString(localVarUrlObj),
2918
+ options: localVarRequestOptions,
2919
+ };
2920
+ },
2921
+ /**
2922
+ * Updates the warehouse product and its variants
2923
+ * @summary Update warehouse product
2924
+ * @param {string} project Project unique identifier
2925
+ * @param {string} platformId The platform identifier
2926
+ * @param {string} productId Products unique identifier
2927
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
2928
+ * @param {*} [options] Override http request option.
2929
+ * @throws {RequiredError}
2930
+ */
2931
+ updateProduct: async (project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2932
+ // verify required parameter 'project' is not null or undefined
2933
+ assertParamExists('updateProduct', 'project', project)
2934
+ // verify required parameter 'platformId' is not null or undefined
2935
+ assertParamExists('updateProduct', 'platformId', platformId)
2936
+ // verify required parameter 'productId' is not null or undefined
2937
+ assertParamExists('updateProduct', 'productId', productId)
2938
+ // verify required parameter 'updateProductRequest' is not null or undefined
2939
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest)
2940
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
2941
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
2942
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2944
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2945
+ let baseOptions;
2946
+ if (configuration) {
2947
+ baseOptions = configuration.baseOptions;
2948
+ }
2949
+
2950
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2951
+ const localVarHeaderParameter = {} as any;
2952
+ const localVarQueryParameter = {} as any;
2953
+
2954
+ // authentication session-oauth required
2955
+ // oauth required
2956
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
2957
+
2958
+ // authentication api-key required
2959
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
2960
+
2961
+ if (project !== undefined) {
2962
+ localVarQueryParameter['project'] = project;
2963
+ }
2964
+
2965
+
2966
+
2967
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2968
+
2969
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2971
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2972
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
2973
+
2974
+ return {
2975
+ url: toPathString(localVarUrlObj),
2976
+ options: localVarRequestOptions,
2977
+ };
2978
+ },
2979
+ /**
2980
+ * Updates the warehouse variant
2981
+ * @summary Update warehouse variant
2982
+ * @param {string} project Project unique identifier
2983
+ * @param {string} platformId The platform identifier
2984
+ * @param {string} variantId Variants unique identifier
2985
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
2986
+ * @param {*} [options] Override http request option.
2987
+ * @throws {RequiredError}
2988
+ */
2989
+ updateVariant: async (project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2990
+ // verify required parameter 'project' is not null or undefined
2991
+ assertParamExists('updateVariant', 'project', project)
2992
+ // verify required parameter 'platformId' is not null or undefined
2993
+ assertParamExists('updateVariant', 'platformId', platformId)
2994
+ // verify required parameter 'variantId' is not null or undefined
2995
+ assertParamExists('updateVariant', 'variantId', variantId)
2996
+ // verify required parameter 'updateVariantRequest' is not null or undefined
2997
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest)
2998
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
2999
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3000
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
3001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3003
+ let baseOptions;
3004
+ if (configuration) {
3005
+ baseOptions = configuration.baseOptions;
3006
+ }
3007
+
3008
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3009
+ const localVarHeaderParameter = {} as any;
3010
+ const localVarQueryParameter = {} as any;
3011
+
3012
+ // authentication session-oauth required
3013
+ // oauth required
3014
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3015
+
3016
+ // authentication api-key required
3017
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3018
+
3019
+ if (project !== undefined) {
3020
+ localVarQueryParameter['project'] = project;
3021
+ }
3022
+
3023
+
3024
+
3025
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3026
+
3027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3029
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3030
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration)
3031
+
2107
3032
  return {
2108
3033
  url: toPathString(localVarUrlObj),
2109
3034
  options: localVarRequestOptions,
@@ -2243,6 +3168,38 @@ export const PlatformApiFp = function(configuration?: Configuration) {
2243
3168
  const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
2244
3169
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2245
3170
  },
3171
+ /**
3172
+ * Updates the warehouse product and its variants
3173
+ * @summary Update warehouse product
3174
+ * @param {string} project Project unique identifier
3175
+ * @param {string} platformId The platform identifier
3176
+ * @param {string} productId Products unique identifier
3177
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
3178
+ * @param {*} [options] Override http request option.
3179
+ * @throws {RequiredError}
3180
+ */
3181
+ async updateProduct(project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
3182
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
3183
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3184
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateProduct']?.[localVarOperationServerIndex]?.url;
3185
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3186
+ },
3187
+ /**
3188
+ * Updates the warehouse variant
3189
+ * @summary Update warehouse variant
3190
+ * @param {string} project Project unique identifier
3191
+ * @param {string} platformId The platform identifier
3192
+ * @param {string} variantId Variants unique identifier
3193
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
3194
+ * @param {*} [options] Override http request option.
3195
+ * @throws {RequiredError}
3196
+ */
3197
+ async updateVariant(project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
3198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
3199
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3200
+ const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateVariant']?.[localVarOperationServerIndex]?.url;
3201
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3202
+ },
2246
3203
  }
2247
3204
  };
2248
3205
 
@@ -2333,6 +3290,26 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
2333
3290
  updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
2334
3291
  return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
2335
3292
  },
3293
+ /**
3294
+ * Updates the warehouse product and its variants
3295
+ * @summary Update warehouse product
3296
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
3297
+ * @param {*} [options] Override http request option.
3298
+ * @throws {RequiredError}
3299
+ */
3300
+ updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
3301
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
3302
+ },
3303
+ /**
3304
+ * Updates the warehouse variant
3305
+ * @summary Update warehouse variant
3306
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
3307
+ * @param {*} [options] Override http request option.
3308
+ * @throws {RequiredError}
3309
+ */
3310
+ updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant> {
3311
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
3312
+ },
2336
3313
  };
2337
3314
  };
2338
3315
 
@@ -2574,18 +3551,88 @@ export interface PlatformApiUpdateFulfillmentRequest {
2574
3551
  */
2575
3552
  export interface PlatformApiUpdatePlatformRequest {
2576
3553
  /**
2577
- * Project unique identifier
3554
+ * Project unique identifier
3555
+ * @type {string}
3556
+ * @memberof PlatformApiUpdatePlatform
3557
+ */
3558
+ readonly project: string
3559
+
3560
+ /**
3561
+ *
3562
+ * @type {UpdatePlatformRequest}
3563
+ * @memberof PlatformApiUpdatePlatform
3564
+ */
3565
+ readonly updatePlatformRequest: UpdatePlatformRequest
3566
+ }
3567
+
3568
+ /**
3569
+ * Request parameters for updateProduct operation in PlatformApi.
3570
+ * @export
3571
+ * @interface PlatformApiUpdateProductRequest
3572
+ */
3573
+ export interface PlatformApiUpdateProductRequest {
3574
+ /**
3575
+ * Project unique identifier
3576
+ * @type {string}
3577
+ * @memberof PlatformApiUpdateProduct
3578
+ */
3579
+ readonly project: string
3580
+
3581
+ /**
3582
+ * The platform identifier
3583
+ * @type {string}
3584
+ * @memberof PlatformApiUpdateProduct
3585
+ */
3586
+ readonly platformId: string
3587
+
3588
+ /**
3589
+ * Products unique identifier
3590
+ * @type {string}
3591
+ * @memberof PlatformApiUpdateProduct
3592
+ */
3593
+ readonly productId: string
3594
+
3595
+ /**
3596
+ * Update a platform warehouse product
3597
+ * @type {UpdateProductRequest}
3598
+ * @memberof PlatformApiUpdateProduct
3599
+ */
3600
+ readonly updateProductRequest: UpdateProductRequest
3601
+ }
3602
+
3603
+ /**
3604
+ * Request parameters for updateVariant operation in PlatformApi.
3605
+ * @export
3606
+ * @interface PlatformApiUpdateVariantRequest
3607
+ */
3608
+ export interface PlatformApiUpdateVariantRequest {
3609
+ /**
3610
+ * Project unique identifier
3611
+ * @type {string}
3612
+ * @memberof PlatformApiUpdateVariant
3613
+ */
3614
+ readonly project: string
3615
+
3616
+ /**
3617
+ * The platform identifier
3618
+ * @type {string}
3619
+ * @memberof PlatformApiUpdateVariant
3620
+ */
3621
+ readonly platformId: string
3622
+
3623
+ /**
3624
+ * Variants unique identifier
2578
3625
  * @type {string}
2579
- * @memberof PlatformApiUpdatePlatform
3626
+ * @memberof PlatformApiUpdateVariant
2580
3627
  */
2581
- readonly project: string
3628
+ readonly variantId: string
2582
3629
 
2583
3630
  /**
2584
- *
2585
- * @type {UpdatePlatformRequest}
2586
- * @memberof PlatformApiUpdatePlatform
3631
+ * Update a platform warehouse variant
3632
+ * @type {UpdateVariantRequest}
3633
+ * @memberof PlatformApiUpdateVariant
2587
3634
  */
2588
- readonly updatePlatformRequest: UpdatePlatformRequest
3635
+ readonly updateVariantRequest: UpdateVariantRequest
2589
3636
  }
2590
3637
 
2591
3638
  /**
@@ -2690,6 +3737,370 @@ export class PlatformApi extends BaseAPI {
2690
3737
  public updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig) {
2691
3738
  return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
2692
3739
  }
3740
+
3741
+ /**
3742
+ * Updates the warehouse product and its variants
3743
+ * @summary Update warehouse product
3744
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
3745
+ * @param {*} [options] Override http request option.
3746
+ * @throws {RequiredError}
3747
+ * @memberof PlatformApi
3748
+ */
3749
+ public updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
3750
+ return PlatformApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
3751
+ }
3752
+
3753
+ /**
3754
+ * Updates the warehouse variant
3755
+ * @summary Update warehouse variant
3756
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
3757
+ * @param {*} [options] Override http request option.
3758
+ * @throws {RequiredError}
3759
+ * @memberof PlatformApi
3760
+ */
3761
+ public updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig) {
3762
+ return PlatformApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
3763
+ }
3764
+ }
3765
+
3766
+
3767
+
3768
+ /**
3769
+ * ProductsApi - axios parameter creator
3770
+ * @export
3771
+ */
3772
+ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
3773
+ return {
3774
+ /**
3775
+ * Updates the warehouse product and its variants
3776
+ * @summary Update warehouse product
3777
+ * @param {string} project Project unique identifier
3778
+ * @param {string} platformId The platform identifier
3779
+ * @param {string} productId Products unique identifier
3780
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
3781
+ * @param {*} [options] Override http request option.
3782
+ * @throws {RequiredError}
3783
+ */
3784
+ updateProduct: async (project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3785
+ // verify required parameter 'project' is not null or undefined
3786
+ assertParamExists('updateProduct', 'project', project)
3787
+ // verify required parameter 'platformId' is not null or undefined
3788
+ assertParamExists('updateProduct', 'platformId', platformId)
3789
+ // verify required parameter 'productId' is not null or undefined
3790
+ assertParamExists('updateProduct', 'productId', productId)
3791
+ // verify required parameter 'updateProductRequest' is not null or undefined
3792
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest)
3793
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
3794
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3795
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
3796
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3797
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3798
+ let baseOptions;
3799
+ if (configuration) {
3800
+ baseOptions = configuration.baseOptions;
3801
+ }
3802
+
3803
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3804
+ const localVarHeaderParameter = {} as any;
3805
+ const localVarQueryParameter = {} as any;
3806
+
3807
+ // authentication session-oauth required
3808
+ // oauth required
3809
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3810
+
3811
+ // authentication api-key required
3812
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3813
+
3814
+ if (project !== undefined) {
3815
+ localVarQueryParameter['project'] = project;
3816
+ }
3817
+
3818
+
3819
+
3820
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3821
+
3822
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3823
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3824
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3825
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
3826
+
3827
+ return {
3828
+ url: toPathString(localVarUrlObj),
3829
+ options: localVarRequestOptions,
3830
+ };
3831
+ },
3832
+ }
3833
+ };
3834
+
3835
+ /**
3836
+ * ProductsApi - functional programming interface
3837
+ * @export
3838
+ */
3839
+ export const ProductsApiFp = function(configuration?: Configuration) {
3840
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
3841
+ return {
3842
+ /**
3843
+ * Updates the warehouse product and its variants
3844
+ * @summary Update warehouse product
3845
+ * @param {string} project Project unique identifier
3846
+ * @param {string} platformId The platform identifier
3847
+ * @param {string} productId Products unique identifier
3848
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
3849
+ * @param {*} [options] Override http request option.
3850
+ * @throws {RequiredError}
3851
+ */
3852
+ async updateProduct(project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
3853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
3854
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3855
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.updateProduct']?.[localVarOperationServerIndex]?.url;
3856
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3857
+ },
3858
+ }
3859
+ };
3860
+
3861
+ /**
3862
+ * ProductsApi - factory interface
3863
+ * @export
3864
+ */
3865
+ export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3866
+ const localVarFp = ProductsApiFp(configuration)
3867
+ return {
3868
+ /**
3869
+ * Updates the warehouse product and its variants
3870
+ * @summary Update warehouse product
3871
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
3872
+ * @param {*} [options] Override http request option.
3873
+ * @throws {RequiredError}
3874
+ */
3875
+ updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
3876
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
3877
+ },
3878
+ };
3879
+ };
3880
+
3881
+ /**
3882
+ * Request parameters for updateProduct operation in ProductsApi.
3883
+ * @export
3884
+ * @interface ProductsApiUpdateProductRequest
3885
+ */
3886
+ export interface ProductsApiUpdateProductRequest {
3887
+ /**
3888
+ * Project unique identifier
3889
+ * @type {string}
3890
+ * @memberof ProductsApiUpdateProduct
3891
+ */
3892
+ readonly project: string
3893
+
3894
+ /**
3895
+ * The platform identifier
3896
+ * @type {string}
3897
+ * @memberof ProductsApiUpdateProduct
3898
+ */
3899
+ readonly platformId: string
3900
+
3901
+ /**
3902
+ * Products unique identifier
3903
+ * @type {string}
3904
+ * @memberof ProductsApiUpdateProduct
3905
+ */
3906
+ readonly productId: string
3907
+
3908
+ /**
3909
+ * Update a platform warehouse product
3910
+ * @type {UpdateProductRequest}
3911
+ * @memberof ProductsApiUpdateProduct
3912
+ */
3913
+ readonly updateProductRequest: UpdateProductRequest
3914
+ }
3915
+
3916
+ /**
3917
+ * ProductsApi - object-oriented interface
3918
+ * @export
3919
+ * @class ProductsApi
3920
+ * @extends {BaseAPI}
3921
+ */
3922
+ export class ProductsApi extends BaseAPI {
3923
+ /**
3924
+ * Updates the warehouse product and its variants
3925
+ * @summary Update warehouse product
3926
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
3927
+ * @param {*} [options] Override http request option.
3928
+ * @throws {RequiredError}
3929
+ * @memberof ProductsApi
3930
+ */
3931
+ public updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
3932
+ return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
3933
+ }
3934
+ }
3935
+
3936
+
3937
+
3938
+ /**
3939
+ * VariantsApi - axios parameter creator
3940
+ * @export
3941
+ */
3942
+ export const VariantsApiAxiosParamCreator = function (configuration?: Configuration) {
3943
+ return {
3944
+ /**
3945
+ * Updates the warehouse variant
3946
+ * @summary Update warehouse variant
3947
+ * @param {string} project Project unique identifier
3948
+ * @param {string} platformId The platform identifier
3949
+ * @param {string} variantId Variants unique identifier
3950
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
3951
+ * @param {*} [options] Override http request option.
3952
+ * @throws {RequiredError}
3953
+ */
3954
+ updateVariant: async (project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3955
+ // verify required parameter 'project' is not null or undefined
3956
+ assertParamExists('updateVariant', 'project', project)
3957
+ // verify required parameter 'platformId' is not null or undefined
3958
+ assertParamExists('updateVariant', 'platformId', platformId)
3959
+ // verify required parameter 'variantId' is not null or undefined
3960
+ assertParamExists('updateVariant', 'variantId', variantId)
3961
+ // verify required parameter 'updateVariantRequest' is not null or undefined
3962
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest)
3963
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
3964
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
3965
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
3966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3968
+ let baseOptions;
3969
+ if (configuration) {
3970
+ baseOptions = configuration.baseOptions;
3971
+ }
3972
+
3973
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
3974
+ const localVarHeaderParameter = {} as any;
3975
+ const localVarQueryParameter = {} as any;
3976
+
3977
+ // authentication session-oauth required
3978
+ // oauth required
3979
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
3980
+
3981
+ // authentication api-key required
3982
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
3983
+
3984
+ if (project !== undefined) {
3985
+ localVarQueryParameter['project'] = project;
3986
+ }
3987
+
3988
+
3989
+
3990
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3991
+
3992
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3993
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3994
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3995
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration)
3996
+
3997
+ return {
3998
+ url: toPathString(localVarUrlObj),
3999
+ options: localVarRequestOptions,
4000
+ };
4001
+ },
4002
+ }
4003
+ };
4004
+
4005
+ /**
4006
+ * VariantsApi - functional programming interface
4007
+ * @export
4008
+ */
4009
+ export const VariantsApiFp = function(configuration?: Configuration) {
4010
+ const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration)
4011
+ return {
4012
+ /**
4013
+ * Updates the warehouse variant
4014
+ * @summary Update warehouse variant
4015
+ * @param {string} project Project unique identifier
4016
+ * @param {string} platformId The platform identifier
4017
+ * @param {string} variantId Variants unique identifier
4018
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
4019
+ * @param {*} [options] Override http request option.
4020
+ * @throws {RequiredError}
4021
+ */
4022
+ async updateVariant(project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
4023
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
4024
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4025
+ const localVarOperationServerBasePath = operationServerMap['VariantsApi.updateVariant']?.[localVarOperationServerIndex]?.url;
4026
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4027
+ },
4028
+ }
4029
+ };
4030
+
4031
+ /**
4032
+ * VariantsApi - factory interface
4033
+ * @export
4034
+ */
4035
+ export const VariantsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4036
+ const localVarFp = VariantsApiFp(configuration)
4037
+ return {
4038
+ /**
4039
+ * Updates the warehouse variant
4040
+ * @summary Update warehouse variant
4041
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
4042
+ * @param {*} [options] Override http request option.
4043
+ * @throws {RequiredError}
4044
+ */
4045
+ updateVariant(requestParameters: VariantsApiUpdateVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant> {
4046
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
4047
+ },
4048
+ };
4049
+ };
4050
+
4051
+ /**
4052
+ * Request parameters for updateVariant operation in VariantsApi.
4053
+ * @export
4054
+ * @interface VariantsApiUpdateVariantRequest
4055
+ */
4056
+ export interface VariantsApiUpdateVariantRequest {
4057
+ /**
4058
+ * Project unique identifier
4059
+ * @type {string}
4060
+ * @memberof VariantsApiUpdateVariant
4061
+ */
4062
+ readonly project: string
4063
+
4064
+ /**
4065
+ * The platform identifier
4066
+ * @type {string}
4067
+ * @memberof VariantsApiUpdateVariant
4068
+ */
4069
+ readonly platformId: string
4070
+
4071
+ /**
4072
+ * Variants unique identifier
4073
+ * @type {string}
4074
+ * @memberof VariantsApiUpdateVariant
4075
+ */
4076
+ readonly variantId: string
4077
+
4078
+ /**
4079
+ * Update a platform warehouse variant
4080
+ * @type {UpdateVariantRequest}
4081
+ * @memberof VariantsApiUpdateVariant
4082
+ */
4083
+ readonly updateVariantRequest: UpdateVariantRequest
4084
+ }
4085
+
4086
+ /**
4087
+ * VariantsApi - object-oriented interface
4088
+ * @export
4089
+ * @class VariantsApi
4090
+ * @extends {BaseAPI}
4091
+ */
4092
+ export class VariantsApi extends BaseAPI {
4093
+ /**
4094
+ * Updates the warehouse variant
4095
+ * @summary Update warehouse variant
4096
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
4097
+ * @param {*} [options] Override http request option.
4098
+ * @throws {RequiredError}
4099
+ * @memberof VariantsApi
4100
+ */
4101
+ public updateVariant(requestParameters: VariantsApiUpdateVariantRequest, options?: RawAxiosRequestConfig) {
4102
+ return VariantsApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
4103
+ }
2693
4104
  }
2694
4105
 
2695
4106