@teemill/platform 0.9.0 → 0.11.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/README.md +2 -2
- package/api.ts +2252 -110
- package/base.ts +3 -3
- package/common.ts +3 -3
- package/configuration.ts +10 -4
- package/dist/api.d.ts +1594 -59
- package/dist/api.js +1001 -25
- package/dist/base.d.ts +3 -3
- package/dist/base.js +3 -3
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +5 -4
- package/dist/esm/api.d.ts +1594 -59
- package/dist/esm/api.js +988 -24
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +5 -4
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Platform API
|
|
5
|
-
* Manage Your podOS platform
|
|
5
|
+
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
-
*
|
|
7
|
+
* The version of the OpenAPI document: 0.11.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
|
|
@@ -116,6 +172,56 @@ export interface ContactInformation {
|
|
|
116
172
|
*/
|
|
117
173
|
'phone'?: string | null;
|
|
118
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* The customer that has placed an order on your platform
|
|
177
|
+
* @export
|
|
178
|
+
* @interface Customer
|
|
179
|
+
*/
|
|
180
|
+
export interface Customer {
|
|
181
|
+
/**
|
|
182
|
+
* Unique object identifier
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof Customer
|
|
185
|
+
*/
|
|
186
|
+
'id': string;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof Customer
|
|
191
|
+
*/
|
|
192
|
+
'email': string;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof Customer
|
|
197
|
+
*/
|
|
198
|
+
'firstName'?: string;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof Customer
|
|
203
|
+
*/
|
|
204
|
+
'lastName'?: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @export
|
|
209
|
+
* @interface CustomersResponse
|
|
210
|
+
*/
|
|
211
|
+
export interface CustomersResponse {
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {Array<Customer>}
|
|
215
|
+
* @memberof CustomersResponse
|
|
216
|
+
*/
|
|
217
|
+
'customers': Array<Customer>;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {number}
|
|
221
|
+
* @memberof CustomersResponse
|
|
222
|
+
*/
|
|
223
|
+
'nextPageToken'?: number | null;
|
|
224
|
+
}
|
|
119
225
|
/**
|
|
120
226
|
*
|
|
121
227
|
* @export
|
|
@@ -318,6 +424,87 @@ export interface Image {
|
|
|
318
424
|
*/
|
|
319
425
|
'sortOrder'?: number;
|
|
320
426
|
}
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @export
|
|
430
|
+
* @interface Metafield
|
|
431
|
+
*/
|
|
432
|
+
export interface Metafield {
|
|
433
|
+
/**
|
|
434
|
+
* The unique identifier for a meta field
|
|
435
|
+
* @type {string}
|
|
436
|
+
* @memberof Metafield
|
|
437
|
+
*/
|
|
438
|
+
'key': string;
|
|
439
|
+
/**
|
|
440
|
+
* The data stored in the meta field. Always stored as a string, regardless of the meta field\'s type.
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof Metafield
|
|
443
|
+
*/
|
|
444
|
+
'value': string;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Configuration of the product mockup
|
|
448
|
+
* @export
|
|
449
|
+
* @interface Mockup
|
|
450
|
+
*/
|
|
451
|
+
export interface Mockup {
|
|
452
|
+
/**
|
|
453
|
+
* Base image of the mockup
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof Mockup
|
|
456
|
+
*/
|
|
457
|
+
'baseImage': string;
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @type {MockupDesignPlacement}
|
|
461
|
+
* @memberof Mockup
|
|
462
|
+
*/
|
|
463
|
+
'designPlacement'?: MockupDesignPlacement | null;
|
|
464
|
+
/**
|
|
465
|
+
* Optional mask applied to the design. Used for products with non-rectangular print areas
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof Mockup
|
|
468
|
+
*/
|
|
469
|
+
'designMask'?: string | null;
|
|
470
|
+
/**
|
|
471
|
+
* 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.
|
|
472
|
+
* @type {string}
|
|
473
|
+
* @memberof Mockup
|
|
474
|
+
*/
|
|
475
|
+
'overlayImage'?: string | null;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Design placement
|
|
479
|
+
* @export
|
|
480
|
+
* @interface MockupDesignPlacement
|
|
481
|
+
*/
|
|
482
|
+
export interface MockupDesignPlacement {
|
|
483
|
+
/**
|
|
484
|
+
* X coordinate in pixels
|
|
485
|
+
* @type {number}
|
|
486
|
+
* @memberof MockupDesignPlacement
|
|
487
|
+
*/
|
|
488
|
+
'x': number;
|
|
489
|
+
/**
|
|
490
|
+
* Y coordinate in pixels
|
|
491
|
+
* @type {number}
|
|
492
|
+
* @memberof MockupDesignPlacement
|
|
493
|
+
*/
|
|
494
|
+
'y': number;
|
|
495
|
+
/**
|
|
496
|
+
* Width in pixels
|
|
497
|
+
* @type {number}
|
|
498
|
+
* @memberof MockupDesignPlacement
|
|
499
|
+
*/
|
|
500
|
+
'width': number;
|
|
501
|
+
/**
|
|
502
|
+
* Height in pixels
|
|
503
|
+
* @type {number}
|
|
504
|
+
* @memberof MockupDesignPlacement
|
|
505
|
+
*/
|
|
506
|
+
'height': number;
|
|
507
|
+
}
|
|
321
508
|
/**
|
|
322
509
|
*
|
|
323
510
|
* @export
|
|
@@ -601,6 +788,178 @@ export interface Origin {
|
|
|
601
788
|
*/
|
|
602
789
|
'isPaid'?: boolean;
|
|
603
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Configuration of the files output for this application
|
|
793
|
+
* @export
|
|
794
|
+
* @interface Output
|
|
795
|
+
*/
|
|
796
|
+
export interface Output {
|
|
797
|
+
/**
|
|
798
|
+
* Width of the print file in pixels
|
|
799
|
+
* @type {number}
|
|
800
|
+
* @memberof Output
|
|
801
|
+
*/
|
|
802
|
+
'width': number;
|
|
803
|
+
/**
|
|
804
|
+
* Height of the print file in pixels
|
|
805
|
+
* @type {number}
|
|
806
|
+
* @memberof Output
|
|
807
|
+
*/
|
|
808
|
+
'height': number;
|
|
809
|
+
/**
|
|
810
|
+
* DPI of the print file in pixels
|
|
811
|
+
* @type {number}
|
|
812
|
+
* @memberof Output
|
|
813
|
+
*/
|
|
814
|
+
'dpi': number;
|
|
815
|
+
/**
|
|
816
|
+
*
|
|
817
|
+
* @type {OutputPadding}
|
|
818
|
+
* @memberof Output
|
|
819
|
+
*/
|
|
820
|
+
'padding'?: OutputPadding;
|
|
821
|
+
/**
|
|
822
|
+
* Position of the print
|
|
823
|
+
* @type {string}
|
|
824
|
+
* @memberof Output
|
|
825
|
+
*/
|
|
826
|
+
'position': OutputPositionEnum;
|
|
827
|
+
/**
|
|
828
|
+
* Whether the print should be mirrored horizontally
|
|
829
|
+
* @type {boolean}
|
|
830
|
+
* @memberof Output
|
|
831
|
+
*/
|
|
832
|
+
'mirrorX'?: boolean;
|
|
833
|
+
/**
|
|
834
|
+
* Whether the print should be mirrored vertically
|
|
835
|
+
* @type {boolean}
|
|
836
|
+
* @memberof Output
|
|
837
|
+
*/
|
|
838
|
+
'mirrorY'?: boolean;
|
|
839
|
+
/**
|
|
840
|
+
* Amount of reflection in pixels
|
|
841
|
+
* @type {number}
|
|
842
|
+
* @memberof Output
|
|
843
|
+
*/
|
|
844
|
+
'reflect'?: number;
|
|
845
|
+
/**
|
|
846
|
+
* Amount to extend the print in pixels
|
|
847
|
+
* @type {number}
|
|
848
|
+
* @memberof Output
|
|
849
|
+
*/
|
|
850
|
+
'extend'?: number;
|
|
851
|
+
/**
|
|
852
|
+
* Rotation in degrees
|
|
853
|
+
* @type {number}
|
|
854
|
+
* @memberof Output
|
|
855
|
+
*/
|
|
856
|
+
'rotate'?: number;
|
|
857
|
+
/**
|
|
858
|
+
* Format of the print file
|
|
859
|
+
* @type {string}
|
|
860
|
+
* @memberof Output
|
|
861
|
+
*/
|
|
862
|
+
'fileFormat': OutputFileFormatEnum;
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @type {Array<OutputDeviceConfigsInner>}
|
|
866
|
+
* @memberof Output
|
|
867
|
+
*/
|
|
868
|
+
'deviceConfigs'?: Array<OutputDeviceConfigsInner>;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export const OutputPositionEnum = {
|
|
872
|
+
Center: 'center',
|
|
873
|
+
Top: 'top',
|
|
874
|
+
Left: 'left',
|
|
875
|
+
Bottom: 'bottom',
|
|
876
|
+
Right: 'right',
|
|
877
|
+
RightTop: 'right-top',
|
|
878
|
+
RightBottom: 'right-bottom',
|
|
879
|
+
LeftTop: 'left-top',
|
|
880
|
+
LeftBottom: 'left-bottom'
|
|
881
|
+
} as const;
|
|
882
|
+
|
|
883
|
+
export type OutputPositionEnum = typeof OutputPositionEnum[keyof typeof OutputPositionEnum];
|
|
884
|
+
export const OutputFileFormatEnum = {
|
|
885
|
+
Png: 'png',
|
|
886
|
+
Jpg: 'jpg',
|
|
887
|
+
Jpeg: 'jpeg',
|
|
888
|
+
Webp: 'webp',
|
|
889
|
+
Pdf: 'pdf'
|
|
890
|
+
} as const;
|
|
891
|
+
|
|
892
|
+
export type OutputFileFormatEnum = typeof OutputFileFormatEnum[keyof typeof OutputFileFormatEnum];
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
*
|
|
896
|
+
* @export
|
|
897
|
+
* @interface OutputDeviceConfigsInner
|
|
898
|
+
*/
|
|
899
|
+
export interface OutputDeviceConfigsInner {
|
|
900
|
+
/**
|
|
901
|
+
* Unique object identifier
|
|
902
|
+
* @type {string}
|
|
903
|
+
* @memberof OutputDeviceConfigsInner
|
|
904
|
+
*/
|
|
905
|
+
'modelId'?: string;
|
|
906
|
+
/**
|
|
907
|
+
*
|
|
908
|
+
* @type {Array<OutputDeviceConfigsInnerPropertiesInner>}
|
|
909
|
+
* @memberof OutputDeviceConfigsInner
|
|
910
|
+
*/
|
|
911
|
+
'properties'?: Array<OutputDeviceConfigsInnerPropertiesInner>;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @export
|
|
916
|
+
* @interface OutputDeviceConfigsInnerPropertiesInner
|
|
917
|
+
*/
|
|
918
|
+
export interface OutputDeviceConfigsInnerPropertiesInner {
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @type {string}
|
|
922
|
+
* @memberof OutputDeviceConfigsInnerPropertiesInner
|
|
923
|
+
*/
|
|
924
|
+
'name'?: string;
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @type {string}
|
|
928
|
+
* @memberof OutputDeviceConfigsInnerPropertiesInner
|
|
929
|
+
*/
|
|
930
|
+
'option'?: string;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Padding to be applied to the print file
|
|
934
|
+
* @export
|
|
935
|
+
* @interface OutputPadding
|
|
936
|
+
*/
|
|
937
|
+
export interface OutputPadding {
|
|
938
|
+
/**
|
|
939
|
+
* Top padding in pixels
|
|
940
|
+
* @type {number}
|
|
941
|
+
* @memberof OutputPadding
|
|
942
|
+
*/
|
|
943
|
+
'top': number;
|
|
944
|
+
/**
|
|
945
|
+
* Right padding in pixels
|
|
946
|
+
* @type {number}
|
|
947
|
+
* @memberof OutputPadding
|
|
948
|
+
*/
|
|
949
|
+
'right': number;
|
|
950
|
+
/**
|
|
951
|
+
* Bottom padding in pixels
|
|
952
|
+
* @type {number}
|
|
953
|
+
* @memberof OutputPadding
|
|
954
|
+
*/
|
|
955
|
+
'bottom': number;
|
|
956
|
+
/**
|
|
957
|
+
* Left padding in pixels
|
|
958
|
+
* @type {number}
|
|
959
|
+
* @memberof OutputPadding
|
|
960
|
+
*/
|
|
961
|
+
'left': number;
|
|
962
|
+
}
|
|
604
963
|
/**
|
|
605
964
|
*
|
|
606
965
|
* @export
|
|
@@ -685,82 +1044,319 @@ export interface Price {
|
|
|
685
1044
|
/**
|
|
686
1045
|
*
|
|
687
1046
|
* @export
|
|
688
|
-
* @interface
|
|
1047
|
+
* @interface Product
|
|
689
1048
|
*/
|
|
690
|
-
export interface
|
|
1049
|
+
export interface Product {
|
|
691
1050
|
/**
|
|
692
1051
|
* Unique object identifier
|
|
693
1052
|
* @type {string}
|
|
694
|
-
* @memberof
|
|
1053
|
+
* @memberof Product
|
|
695
1054
|
*/
|
|
696
|
-
'id'
|
|
1055
|
+
'id': string;
|
|
697
1056
|
/**
|
|
698
|
-
*
|
|
1057
|
+
* A reference to the resource location
|
|
699
1058
|
* @type {string}
|
|
700
|
-
* @memberof
|
|
1059
|
+
* @memberof Product
|
|
701
1060
|
*/
|
|
702
|
-
'
|
|
1061
|
+
'ref': string;
|
|
703
1062
|
/**
|
|
704
1063
|
*
|
|
705
1064
|
* @type {string}
|
|
706
|
-
* @memberof
|
|
1065
|
+
* @memberof Product
|
|
707
1066
|
*/
|
|
708
|
-
'
|
|
1067
|
+
'title': string;
|
|
709
1068
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @type {
|
|
712
|
-
* @memberof
|
|
1069
|
+
* Whether the product is enabled
|
|
1070
|
+
* @type {boolean}
|
|
1071
|
+
* @memberof Product
|
|
713
1072
|
*/
|
|
714
|
-
'
|
|
1073
|
+
'enabled'?: boolean;
|
|
715
1074
|
/**
|
|
716
|
-
*
|
|
717
|
-
* @type {
|
|
718
|
-
* @memberof
|
|
1075
|
+
* Whether stock levels should be tracked for this product
|
|
1076
|
+
* @type {boolean}
|
|
1077
|
+
* @memberof Product
|
|
719
1078
|
*/
|
|
720
|
-
'
|
|
1079
|
+
'trackInventory'?: boolean;
|
|
721
1080
|
/**
|
|
722
|
-
*
|
|
723
|
-
* @type {
|
|
724
|
-
* @memberof
|
|
1081
|
+
* Whether this product should always be purchasable, regardless of factory stock levels
|
|
1082
|
+
* @type {boolean}
|
|
1083
|
+
* @memberof Product
|
|
725
1084
|
*/
|
|
726
|
-
'
|
|
1085
|
+
'alwaysInStock'?: boolean;
|
|
727
1086
|
/**
|
|
728
1087
|
*
|
|
729
|
-
* @type {
|
|
730
|
-
* @memberof
|
|
1088
|
+
* @type {string}
|
|
1089
|
+
* @memberof Product
|
|
731
1090
|
*/
|
|
732
|
-
'
|
|
1091
|
+
'sku'?: string;
|
|
733
1092
|
/**
|
|
734
|
-
*
|
|
735
|
-
* @type {
|
|
736
|
-
* @memberof
|
|
1093
|
+
* Tariff code of the product
|
|
1094
|
+
* @type {number}
|
|
1095
|
+
* @memberof Product
|
|
737
1096
|
*/
|
|
738
|
-
'
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
*
|
|
742
|
-
* @export
|
|
743
|
-
* @interface StatusHistoryItem
|
|
744
|
-
*/
|
|
745
|
-
export interface StatusHistoryItem {
|
|
1097
|
+
'tariffCode'?: number;
|
|
746
1098
|
/**
|
|
747
|
-
*
|
|
748
|
-
* @type {
|
|
749
|
-
* @memberof
|
|
1099
|
+
* Brand of the product
|
|
1100
|
+
* @type {string}
|
|
1101
|
+
* @memberof Product
|
|
750
1102
|
*/
|
|
751
|
-
'
|
|
1103
|
+
'brand'?: string;
|
|
752
1104
|
/**
|
|
753
|
-
*
|
|
1105
|
+
* The owner of the product
|
|
754
1106
|
* @type {string}
|
|
755
|
-
* @memberof
|
|
1107
|
+
* @memberof Product
|
|
756
1108
|
*/
|
|
757
|
-
'
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
1109
|
+
'ownerId': string;
|
|
1110
|
+
/**
|
|
1111
|
+
* Description of the product
|
|
1112
|
+
* @type {string}
|
|
1113
|
+
* @memberof Product
|
|
1114
|
+
*/
|
|
1115
|
+
'description'?: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* Specifications of the product
|
|
1118
|
+
* @type {string}
|
|
1119
|
+
* @memberof Product
|
|
1120
|
+
*/
|
|
1121
|
+
'specifications'?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
*
|
|
1124
|
+
* @type {ProductType}
|
|
1125
|
+
* @memberof Product
|
|
1126
|
+
*/
|
|
1127
|
+
'productType': ProductType;
|
|
1128
|
+
/**
|
|
1129
|
+
* Attributes associated to a product such as Colour and Size.
|
|
1130
|
+
* @type {Array<ProductAttribute>}
|
|
1131
|
+
* @memberof Product
|
|
1132
|
+
*/
|
|
1133
|
+
'attributes': Array<ProductAttribute>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Additional data to be stored with the product
|
|
1136
|
+
* @type {Array<Metafield>}
|
|
1137
|
+
* @memberof Product
|
|
1138
|
+
*/
|
|
1139
|
+
'metafields': Array<Metafield>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Variants
|
|
1142
|
+
* @type {Array<ProductVariantsInner>}
|
|
1143
|
+
* @memberof Product
|
|
1144
|
+
*/
|
|
1145
|
+
'variants': Array<ProductVariantsInner>;
|
|
1146
|
+
/**
|
|
1147
|
+
* ISO 8601 Timestamp
|
|
1148
|
+
* @type {string}
|
|
1149
|
+
* @memberof Product
|
|
1150
|
+
*/
|
|
1151
|
+
'createdAt'?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* ISO 8601 Timestamp
|
|
1154
|
+
* @type {string}
|
|
1155
|
+
* @memberof Product
|
|
1156
|
+
*/
|
|
1157
|
+
'updatedAt'?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* Images
|
|
1160
|
+
* @type {Array<Image>}
|
|
1161
|
+
* @memberof Product
|
|
1162
|
+
*/
|
|
1163
|
+
'images'?: Array<Image>;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @export
|
|
1168
|
+
* @interface ProductAttribute
|
|
1169
|
+
*/
|
|
1170
|
+
export interface ProductAttribute {
|
|
1171
|
+
/**
|
|
1172
|
+
* Attribute name
|
|
1173
|
+
* @type {string}
|
|
1174
|
+
* @memberof ProductAttribute
|
|
1175
|
+
*/
|
|
1176
|
+
'name': string;
|
|
1177
|
+
/**
|
|
1178
|
+
* Position of the attribute when ordered
|
|
1179
|
+
* @type {number}
|
|
1180
|
+
* @memberof ProductAttribute
|
|
1181
|
+
*/
|
|
1182
|
+
'sortOrder': number;
|
|
1183
|
+
/**
|
|
1184
|
+
* Attribute values
|
|
1185
|
+
* @type {Array<ProductAttributeValuesInner>}
|
|
1186
|
+
* @memberof ProductAttribute
|
|
1187
|
+
*/
|
|
1188
|
+
'values': Array<ProductAttributeValuesInner>;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @export
|
|
1193
|
+
* @interface ProductAttributeValuesInner
|
|
1194
|
+
*/
|
|
1195
|
+
export interface ProductAttributeValuesInner {
|
|
1196
|
+
/**
|
|
1197
|
+
* Position of the attribute value when ordered
|
|
1198
|
+
* @type {number}
|
|
1199
|
+
* @memberof ProductAttributeValuesInner
|
|
1200
|
+
*/
|
|
1201
|
+
'sortOrder': number;
|
|
1202
|
+
/**
|
|
1203
|
+
* Value of the attribute
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof ProductAttributeValuesInner
|
|
1206
|
+
*/
|
|
1207
|
+
'value': string;
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {ProductAttributeValuesInnerThumbnail}
|
|
1211
|
+
* @memberof ProductAttributeValuesInner
|
|
1212
|
+
*/
|
|
1213
|
+
'thumbnail'?: ProductAttributeValuesInnerThumbnail;
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
* @export
|
|
1218
|
+
* @interface ProductAttributeValuesInnerThumbnail
|
|
1219
|
+
*/
|
|
1220
|
+
export interface ProductAttributeValuesInnerThumbnail {
|
|
1221
|
+
/**
|
|
1222
|
+
*
|
|
1223
|
+
* @type {string}
|
|
1224
|
+
* @memberof ProductAttributeValuesInnerThumbnail
|
|
1225
|
+
*/
|
|
1226
|
+
'type'?: ProductAttributeValuesInnerThumbnailTypeEnum;
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @type {string}
|
|
1230
|
+
* @memberof ProductAttributeValuesInnerThumbnail
|
|
1231
|
+
*/
|
|
1232
|
+
'value'?: string;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export const ProductAttributeValuesInnerThumbnailTypeEnum = {
|
|
1236
|
+
Text: 'text',
|
|
1237
|
+
Color: 'color',
|
|
1238
|
+
Image: 'image'
|
|
1239
|
+
} as const;
|
|
1240
|
+
|
|
1241
|
+
export type ProductAttributeValuesInnerThumbnailTypeEnum = typeof ProductAttributeValuesInnerThumbnailTypeEnum[keyof typeof ProductAttributeValuesInnerThumbnailTypeEnum];
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
*
|
|
1245
|
+
* @export
|
|
1246
|
+
* @interface ProductType
|
|
1247
|
+
*/
|
|
1248
|
+
export interface ProductType {
|
|
1249
|
+
/**
|
|
1250
|
+
* Id of the product type
|
|
1251
|
+
* @type {number}
|
|
1252
|
+
* @memberof ProductType
|
|
1253
|
+
*/
|
|
1254
|
+
'id'?: number;
|
|
1255
|
+
/**
|
|
1256
|
+
* Name of the product type
|
|
1257
|
+
* @type {string}
|
|
1258
|
+
* @memberof ProductType
|
|
1259
|
+
*/
|
|
1260
|
+
'name'?: string;
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @export
|
|
1265
|
+
* @interface ProductVariantsInner
|
|
1266
|
+
*/
|
|
1267
|
+
export interface ProductVariantsInner {
|
|
1268
|
+
/**
|
|
1269
|
+
* Unique object identifier
|
|
1270
|
+
* @type {string}
|
|
1271
|
+
* @memberof ProductVariantsInner
|
|
1272
|
+
*/
|
|
1273
|
+
'id'?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* A reference to the resource location
|
|
1276
|
+
* @type {string}
|
|
1277
|
+
* @memberof ProductVariantsInner
|
|
1278
|
+
*/
|
|
1279
|
+
'ref'?: string;
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
* @export
|
|
1284
|
+
* @interface ShippingMethod
|
|
1285
|
+
*/
|
|
1286
|
+
export interface ShippingMethod {
|
|
1287
|
+
/**
|
|
1288
|
+
* Unique object identifier
|
|
1289
|
+
* @type {string}
|
|
1290
|
+
* @memberof ShippingMethod
|
|
1291
|
+
*/
|
|
1292
|
+
'id'?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
*
|
|
1295
|
+
* @type {string}
|
|
1296
|
+
* @memberof ShippingMethod
|
|
1297
|
+
*/
|
|
1298
|
+
'name'?: string;
|
|
1299
|
+
/**
|
|
1300
|
+
*
|
|
1301
|
+
* @type {string}
|
|
1302
|
+
* @memberof ShippingMethod
|
|
1303
|
+
*/
|
|
1304
|
+
'description'?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @type {DeliveryEstimates}
|
|
1308
|
+
* @memberof ShippingMethod
|
|
1309
|
+
*/
|
|
1310
|
+
'deliveryEstimates'?: DeliveryEstimates;
|
|
1311
|
+
/**
|
|
1312
|
+
*
|
|
1313
|
+
* @type {Price}
|
|
1314
|
+
* @memberof ShippingMethod
|
|
1315
|
+
*/
|
|
1316
|
+
'totalPrice'?: Price;
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @type {Price}
|
|
1320
|
+
* @memberof ShippingMethod
|
|
1321
|
+
*/
|
|
1322
|
+
'taxPrice'?: Price;
|
|
1323
|
+
/**
|
|
1324
|
+
*
|
|
1325
|
+
* @type {Price}
|
|
1326
|
+
* @memberof ShippingMethod
|
|
1327
|
+
*/
|
|
1328
|
+
'subtotalPrice'?: Price;
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @type {Price}
|
|
1332
|
+
* @memberof ShippingMethod
|
|
1333
|
+
*/
|
|
1334
|
+
'discountPrice'?: Price;
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
*
|
|
1338
|
+
* @export
|
|
1339
|
+
* @interface StatusHistoryItem
|
|
1340
|
+
*/
|
|
1341
|
+
export interface StatusHistoryItem {
|
|
1342
|
+
/**
|
|
1343
|
+
*
|
|
1344
|
+
* @type {OrderStatus}
|
|
1345
|
+
* @memberof StatusHistoryItem
|
|
1346
|
+
*/
|
|
1347
|
+
'status'?: OrderStatus;
|
|
1348
|
+
/**
|
|
1349
|
+
* ISO 8601 Timestamp
|
|
1350
|
+
* @type {string}
|
|
1351
|
+
* @memberof StatusHistoryItem
|
|
1352
|
+
*/
|
|
1353
|
+
'createdAt'?: string;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
*
|
|
1359
|
+
* @export
|
|
764
1360
|
* @interface UpdateFulfillmentRequest
|
|
765
1361
|
*/
|
|
766
1362
|
export interface UpdateFulfillmentRequest {
|
|
@@ -796,6 +1392,57 @@ export interface UpdatePlatformRequest {
|
|
|
796
1392
|
*/
|
|
797
1393
|
'clientGiftWrapAvailable'?: boolean;
|
|
798
1394
|
}
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @export
|
|
1398
|
+
* @interface UpdateProductRequest
|
|
1399
|
+
*/
|
|
1400
|
+
export interface UpdateProductRequest {
|
|
1401
|
+
/**
|
|
1402
|
+
* The warehouse variants of the product to update
|
|
1403
|
+
* @type {Array<UpdateProductRequestVariantsInner>}
|
|
1404
|
+
* @memberof UpdateProductRequest
|
|
1405
|
+
*/
|
|
1406
|
+
'variants'?: Array<UpdateProductRequestVariantsInner>;
|
|
1407
|
+
/**
|
|
1408
|
+
* Whether the platform warehouse product should be enabled or not
|
|
1409
|
+
* @type {boolean}
|
|
1410
|
+
* @memberof UpdateProductRequest
|
|
1411
|
+
*/
|
|
1412
|
+
'enabled'?: boolean;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
*
|
|
1416
|
+
* @export
|
|
1417
|
+
* @interface UpdateProductRequestVariantsInner
|
|
1418
|
+
*/
|
|
1419
|
+
export interface UpdateProductRequestVariantsInner {
|
|
1420
|
+
/**
|
|
1421
|
+
* The ID of the variant to update
|
|
1422
|
+
* @type {string}
|
|
1423
|
+
* @memberof UpdateProductRequestVariantsInner
|
|
1424
|
+
*/
|
|
1425
|
+
'id': string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Whether the warehouse variant should be enabled or not
|
|
1428
|
+
* @type {boolean}
|
|
1429
|
+
* @memberof UpdateProductRequestVariantsInner
|
|
1430
|
+
*/
|
|
1431
|
+
'enabled'?: boolean;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @export
|
|
1436
|
+
* @interface UpdateVariantRequest
|
|
1437
|
+
*/
|
|
1438
|
+
export interface UpdateVariantRequest {
|
|
1439
|
+
/**
|
|
1440
|
+
* Whether the platform warehouse variant is enabled or not
|
|
1441
|
+
* @type {boolean}
|
|
1442
|
+
* @memberof UpdateVariantRequest
|
|
1443
|
+
*/
|
|
1444
|
+
'enabled'?: boolean;
|
|
1445
|
+
}
|
|
799
1446
|
/**
|
|
800
1447
|
*
|
|
801
1448
|
* @export
|
|
@@ -815,6 +1462,572 @@ export interface ValidationError {
|
|
|
815
1462
|
*/
|
|
816
1463
|
'errors': { [key: string]: Array<string>; };
|
|
817
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
*
|
|
1467
|
+
* @export
|
|
1468
|
+
* @interface Variant
|
|
1469
|
+
*/
|
|
1470
|
+
export interface Variant {
|
|
1471
|
+
/**
|
|
1472
|
+
* Unique object identifier
|
|
1473
|
+
* @type {string}
|
|
1474
|
+
* @memberof Variant
|
|
1475
|
+
*/
|
|
1476
|
+
'id': string;
|
|
1477
|
+
/**
|
|
1478
|
+
* A reference to the resource location
|
|
1479
|
+
* @type {string}
|
|
1480
|
+
* @memberof Variant
|
|
1481
|
+
*/
|
|
1482
|
+
'ref': string;
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @type {ProductVariantsInner}
|
|
1486
|
+
* @memberof Variant
|
|
1487
|
+
*/
|
|
1488
|
+
'product'?: ProductVariantsInner;
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @type {string}
|
|
1492
|
+
* @memberof Variant
|
|
1493
|
+
*/
|
|
1494
|
+
'sku': string;
|
|
1495
|
+
/**
|
|
1496
|
+
* ISO 8601 Timestamp
|
|
1497
|
+
* @type {string}
|
|
1498
|
+
* @memberof Variant
|
|
1499
|
+
*/
|
|
1500
|
+
'createdAt'?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* ISO 8601 Timestamp
|
|
1503
|
+
* @type {string}
|
|
1504
|
+
* @memberof Variant
|
|
1505
|
+
*/
|
|
1506
|
+
'updatedAt'?: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* Images
|
|
1509
|
+
* @type {Array<Image>}
|
|
1510
|
+
* @memberof Variant
|
|
1511
|
+
*/
|
|
1512
|
+
'images'?: Array<Image>;
|
|
1513
|
+
/**
|
|
1514
|
+
* Weight in kg
|
|
1515
|
+
* @type {number}
|
|
1516
|
+
* @memberof Variant
|
|
1517
|
+
*/
|
|
1518
|
+
'weight'?: number;
|
|
1519
|
+
/**
|
|
1520
|
+
* The number of units that can be packed in a single pickface
|
|
1521
|
+
* @type {number}
|
|
1522
|
+
* @memberof Variant
|
|
1523
|
+
*/
|
|
1524
|
+
'packVolume'?: number;
|
|
1525
|
+
/**
|
|
1526
|
+
*
|
|
1527
|
+
* @type {VariantPackedDimensions}
|
|
1528
|
+
* @memberof Variant
|
|
1529
|
+
*/
|
|
1530
|
+
'packedDimensions'?: VariantPackedDimensions;
|
|
1531
|
+
/**
|
|
1532
|
+
* Whether the variant can be pre-ordered
|
|
1533
|
+
* @type {boolean}
|
|
1534
|
+
* @memberof Variant
|
|
1535
|
+
*/
|
|
1536
|
+
'preOrderable'?: boolean;
|
|
1537
|
+
/**
|
|
1538
|
+
* Whether the variant is enabled
|
|
1539
|
+
* @type {boolean}
|
|
1540
|
+
* @memberof Variant
|
|
1541
|
+
*/
|
|
1542
|
+
'enabled'?: boolean;
|
|
1543
|
+
/**
|
|
1544
|
+
* Whether the variant is discontinued
|
|
1545
|
+
* @type {boolean}
|
|
1546
|
+
* @memberof Variant
|
|
1547
|
+
*/
|
|
1548
|
+
'discontinued'?: boolean;
|
|
1549
|
+
/**
|
|
1550
|
+
*
|
|
1551
|
+
* @type {VariantManufacturerOrigin}
|
|
1552
|
+
* @memberof Variant
|
|
1553
|
+
*/
|
|
1554
|
+
'manufacturerOrigin'?: VariantManufacturerOrigin;
|
|
1555
|
+
/**
|
|
1556
|
+
* 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.
|
|
1557
|
+
* @type {Array<VariantAttribute>}
|
|
1558
|
+
* @memberof Variant
|
|
1559
|
+
*/
|
|
1560
|
+
'attributes': Array<VariantAttribute>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Applications of the variant
|
|
1563
|
+
* @type {Array<Application>}
|
|
1564
|
+
* @memberof Variant
|
|
1565
|
+
*/
|
|
1566
|
+
'applications'?: Array<Application>;
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
*
|
|
1570
|
+
* @export
|
|
1571
|
+
* @interface VariantAttribute
|
|
1572
|
+
*/
|
|
1573
|
+
export interface VariantAttribute {
|
|
1574
|
+
/**
|
|
1575
|
+
* Attribute name
|
|
1576
|
+
* @type {string}
|
|
1577
|
+
* @memberof VariantAttribute
|
|
1578
|
+
*/
|
|
1579
|
+
'name': string;
|
|
1580
|
+
/**
|
|
1581
|
+
* Attribute value
|
|
1582
|
+
* @type {string}
|
|
1583
|
+
* @memberof VariantAttribute
|
|
1584
|
+
*/
|
|
1585
|
+
'value': string;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {VariantAttributeThumbnail}
|
|
1589
|
+
* @memberof VariantAttribute
|
|
1590
|
+
*/
|
|
1591
|
+
'thumbnail'?: VariantAttributeThumbnail;
|
|
1592
|
+
/**
|
|
1593
|
+
* Attribute tags
|
|
1594
|
+
* @type {Array<string>}
|
|
1595
|
+
* @memberof VariantAttribute
|
|
1596
|
+
*/
|
|
1597
|
+
'tags'?: Array<string>;
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Attribute thumbnail
|
|
1601
|
+
* @export
|
|
1602
|
+
* @interface VariantAttributeThumbnail
|
|
1603
|
+
*/
|
|
1604
|
+
export interface VariantAttributeThumbnail {
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @type {string}
|
|
1608
|
+
* @memberof VariantAttributeThumbnail
|
|
1609
|
+
*/
|
|
1610
|
+
'type'?: VariantAttributeThumbnailTypeEnum;
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof VariantAttributeThumbnail
|
|
1615
|
+
*/
|
|
1616
|
+
'value'?: string;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
export const VariantAttributeThumbnailTypeEnum = {
|
|
1620
|
+
Text: 'text',
|
|
1621
|
+
Color: 'color',
|
|
1622
|
+
Image: 'image'
|
|
1623
|
+
} as const;
|
|
1624
|
+
|
|
1625
|
+
export type VariantAttributeThumbnailTypeEnum = typeof VariantAttributeThumbnailTypeEnum[keyof typeof VariantAttributeThumbnailTypeEnum];
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Where the product was originally produced or manufactured
|
|
1629
|
+
* @export
|
|
1630
|
+
* @interface VariantManufacturerOrigin
|
|
1631
|
+
*/
|
|
1632
|
+
export interface VariantManufacturerOrigin {
|
|
1633
|
+
/**
|
|
1634
|
+
* Country of origin (ISO 3166-1 alpha-2).
|
|
1635
|
+
* @type {string}
|
|
1636
|
+
* @memberof VariantManufacturerOrigin
|
|
1637
|
+
*/
|
|
1638
|
+
'country'?: string;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @export
|
|
1643
|
+
* @interface VariantPackedDimensions
|
|
1644
|
+
*/
|
|
1645
|
+
export interface VariantPackedDimensions {
|
|
1646
|
+
/**
|
|
1647
|
+
* Length in mm
|
|
1648
|
+
* @type {number}
|
|
1649
|
+
* @memberof VariantPackedDimensions
|
|
1650
|
+
*/
|
|
1651
|
+
'length'?: number;
|
|
1652
|
+
/**
|
|
1653
|
+
* Width in mm
|
|
1654
|
+
* @type {number}
|
|
1655
|
+
* @memberof VariantPackedDimensions
|
|
1656
|
+
*/
|
|
1657
|
+
'width'?: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* Depth in mm
|
|
1660
|
+
* @type {number}
|
|
1661
|
+
* @memberof VariantPackedDimensions
|
|
1662
|
+
*/
|
|
1663
|
+
'depth'?: number;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* CustomersApi - axios parameter creator
|
|
1668
|
+
* @export
|
|
1669
|
+
*/
|
|
1670
|
+
export const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1671
|
+
return {
|
|
1672
|
+
/**
|
|
1673
|
+
* Export customers as a CSV file
|
|
1674
|
+
* @summary Export customers
|
|
1675
|
+
* @param {string} project Project unique identifier
|
|
1676
|
+
* @param {string} platformId The platform identifier
|
|
1677
|
+
* @param {*} [options] Override http request option.
|
|
1678
|
+
* @throws {RequiredError}
|
|
1679
|
+
*/
|
|
1680
|
+
exportCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1681
|
+
// verify required parameter 'project' is not null or undefined
|
|
1682
|
+
assertParamExists('exportCustomers', 'project', project)
|
|
1683
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1684
|
+
assertParamExists('exportCustomers', 'platformId', platformId)
|
|
1685
|
+
const localVarPath = `/v1/platform/{platformId}/customers/export`
|
|
1686
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1687
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1688
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1689
|
+
let baseOptions;
|
|
1690
|
+
if (configuration) {
|
|
1691
|
+
baseOptions = configuration.baseOptions;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1695
|
+
const localVarHeaderParameter = {} as any;
|
|
1696
|
+
const localVarQueryParameter = {} as any;
|
|
1697
|
+
|
|
1698
|
+
// authentication session-oauth required
|
|
1699
|
+
// oauth required
|
|
1700
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1701
|
+
|
|
1702
|
+
// authentication api-key required
|
|
1703
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1704
|
+
|
|
1705
|
+
if (project !== undefined) {
|
|
1706
|
+
localVarQueryParameter['project'] = project;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1713
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1714
|
+
|
|
1715
|
+
return {
|
|
1716
|
+
url: toPathString(localVarUrlObj),
|
|
1717
|
+
options: localVarRequestOptions,
|
|
1718
|
+
};
|
|
1719
|
+
},
|
|
1720
|
+
/**
|
|
1721
|
+
* Get a customer for a platform by a given customer ID.
|
|
1722
|
+
* @summary Get customer
|
|
1723
|
+
* @param {string} project Project unique identifier
|
|
1724
|
+
* @param {string} platformId The platform identifier
|
|
1725
|
+
* @param {string} customerId The customer identifier
|
|
1726
|
+
* @param {*} [options] Override http request option.
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
*/
|
|
1729
|
+
getCustomer: async (project: string, platformId: string, customerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1730
|
+
// verify required parameter 'project' is not null or undefined
|
|
1731
|
+
assertParamExists('getCustomer', 'project', project)
|
|
1732
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1733
|
+
assertParamExists('getCustomer', 'platformId', platformId)
|
|
1734
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
1735
|
+
assertParamExists('getCustomer', 'customerId', customerId)
|
|
1736
|
+
const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
|
|
1737
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1738
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
1739
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1740
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1741
|
+
let baseOptions;
|
|
1742
|
+
if (configuration) {
|
|
1743
|
+
baseOptions = configuration.baseOptions;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1747
|
+
const localVarHeaderParameter = {} as any;
|
|
1748
|
+
const localVarQueryParameter = {} as any;
|
|
1749
|
+
|
|
1750
|
+
// authentication session-oauth required
|
|
1751
|
+
// oauth required
|
|
1752
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1753
|
+
|
|
1754
|
+
// authentication api-key required
|
|
1755
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1756
|
+
|
|
1757
|
+
if (project !== undefined) {
|
|
1758
|
+
localVarQueryParameter['project'] = project;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1764
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1765
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1766
|
+
|
|
1767
|
+
return {
|
|
1768
|
+
url: toPathString(localVarUrlObj),
|
|
1769
|
+
options: localVarRequestOptions,
|
|
1770
|
+
};
|
|
1771
|
+
},
|
|
1772
|
+
/**
|
|
1773
|
+
* List customers for a platform
|
|
1774
|
+
* @summary List customers
|
|
1775
|
+
* @param {string} project Project unique identifier
|
|
1776
|
+
* @param {string} platformId The platform identifier
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
*/
|
|
1780
|
+
listCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1781
|
+
// verify required parameter 'project' is not null or undefined
|
|
1782
|
+
assertParamExists('listCustomers', 'project', project)
|
|
1783
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1784
|
+
assertParamExists('listCustomers', 'platformId', platformId)
|
|
1785
|
+
const localVarPath = `/v1/platform/{platformId}/customers`
|
|
1786
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1788
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1789
|
+
let baseOptions;
|
|
1790
|
+
if (configuration) {
|
|
1791
|
+
baseOptions = configuration.baseOptions;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1795
|
+
const localVarHeaderParameter = {} as any;
|
|
1796
|
+
const localVarQueryParameter = {} as any;
|
|
1797
|
+
|
|
1798
|
+
// authentication session-oauth required
|
|
1799
|
+
// oauth required
|
|
1800
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1801
|
+
|
|
1802
|
+
// authentication api-key required
|
|
1803
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1804
|
+
|
|
1805
|
+
if (project !== undefined) {
|
|
1806
|
+
localVarQueryParameter['project'] = project;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1813
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1814
|
+
|
|
1815
|
+
return {
|
|
1816
|
+
url: toPathString(localVarUrlObj),
|
|
1817
|
+
options: localVarRequestOptions,
|
|
1818
|
+
};
|
|
1819
|
+
},
|
|
1820
|
+
}
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* CustomersApi - functional programming interface
|
|
1825
|
+
* @export
|
|
1826
|
+
*/
|
|
1827
|
+
export const CustomersApiFp = function(configuration?: Configuration) {
|
|
1828
|
+
const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
|
|
1829
|
+
return {
|
|
1830
|
+
/**
|
|
1831
|
+
* Export customers as a CSV file
|
|
1832
|
+
* @summary Export customers
|
|
1833
|
+
* @param {string} project Project unique identifier
|
|
1834
|
+
* @param {string} platformId The platform identifier
|
|
1835
|
+
* @param {*} [options] Override http request option.
|
|
1836
|
+
* @throws {RequiredError}
|
|
1837
|
+
*/
|
|
1838
|
+
async exportCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
1839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
1840
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1841
|
+
const localVarOperationServerBasePath = operationServerMap['CustomersApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
|
|
1842
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1843
|
+
},
|
|
1844
|
+
/**
|
|
1845
|
+
* Get a customer for a platform by a given customer ID.
|
|
1846
|
+
* @summary Get customer
|
|
1847
|
+
* @param {string} project Project unique identifier
|
|
1848
|
+
* @param {string} platformId The platform identifier
|
|
1849
|
+
* @param {string} customerId The customer identifier
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
async getCustomer(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>> {
|
|
1854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
|
|
1855
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1856
|
+
const localVarOperationServerBasePath = operationServerMap['CustomersApi.getCustomer']?.[localVarOperationServerIndex]?.url;
|
|
1857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1858
|
+
},
|
|
1859
|
+
/**
|
|
1860
|
+
* List customers for a platform
|
|
1861
|
+
* @summary List customers
|
|
1862
|
+
* @param {string} project Project unique identifier
|
|
1863
|
+
* @param {string} platformId The platform identifier
|
|
1864
|
+
* @param {*} [options] Override http request option.
|
|
1865
|
+
* @throws {RequiredError}
|
|
1866
|
+
*/
|
|
1867
|
+
async listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
1868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
1869
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1870
|
+
const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomers']?.[localVarOperationServerIndex]?.url;
|
|
1871
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1872
|
+
},
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* CustomersApi - factory interface
|
|
1878
|
+
* @export
|
|
1879
|
+
*/
|
|
1880
|
+
export const CustomersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1881
|
+
const localVarFp = CustomersApiFp(configuration)
|
|
1882
|
+
return {
|
|
1883
|
+
/**
|
|
1884
|
+
* Export customers as a CSV file
|
|
1885
|
+
* @summary Export customers
|
|
1886
|
+
* @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
|
|
1887
|
+
* @param {*} [options] Override http request option.
|
|
1888
|
+
* @throws {RequiredError}
|
|
1889
|
+
*/
|
|
1890
|
+
exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
1891
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1892
|
+
},
|
|
1893
|
+
/**
|
|
1894
|
+
* Get a customer for a platform by a given customer ID.
|
|
1895
|
+
* @summary Get customer
|
|
1896
|
+
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
|
|
1901
|
+
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
1902
|
+
},
|
|
1903
|
+
/**
|
|
1904
|
+
* List customers for a platform
|
|
1905
|
+
* @summary List customers
|
|
1906
|
+
* @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
|
|
1911
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1912
|
+
},
|
|
1913
|
+
};
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* Request parameters for exportCustomers operation in CustomersApi.
|
|
1918
|
+
* @export
|
|
1919
|
+
* @interface CustomersApiExportCustomersRequest
|
|
1920
|
+
*/
|
|
1921
|
+
export interface CustomersApiExportCustomersRequest {
|
|
1922
|
+
/**
|
|
1923
|
+
* Project unique identifier
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof CustomersApiExportCustomers
|
|
1926
|
+
*/
|
|
1927
|
+
readonly project: string
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* The platform identifier
|
|
1931
|
+
* @type {string}
|
|
1932
|
+
* @memberof CustomersApiExportCustomers
|
|
1933
|
+
*/
|
|
1934
|
+
readonly platformId: string
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* Request parameters for getCustomer operation in CustomersApi.
|
|
1939
|
+
* @export
|
|
1940
|
+
* @interface CustomersApiGetCustomerRequest
|
|
1941
|
+
*/
|
|
1942
|
+
export interface CustomersApiGetCustomerRequest {
|
|
1943
|
+
/**
|
|
1944
|
+
* Project unique identifier
|
|
1945
|
+
* @type {string}
|
|
1946
|
+
* @memberof CustomersApiGetCustomer
|
|
1947
|
+
*/
|
|
1948
|
+
readonly project: string
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* The platform identifier
|
|
1952
|
+
* @type {string}
|
|
1953
|
+
* @memberof CustomersApiGetCustomer
|
|
1954
|
+
*/
|
|
1955
|
+
readonly platformId: string
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* The customer identifier
|
|
1959
|
+
* @type {string}
|
|
1960
|
+
* @memberof CustomersApiGetCustomer
|
|
1961
|
+
*/
|
|
1962
|
+
readonly customerId: string
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Request parameters for listCustomers operation in CustomersApi.
|
|
1967
|
+
* @export
|
|
1968
|
+
* @interface CustomersApiListCustomersRequest
|
|
1969
|
+
*/
|
|
1970
|
+
export interface CustomersApiListCustomersRequest {
|
|
1971
|
+
/**
|
|
1972
|
+
* Project unique identifier
|
|
1973
|
+
* @type {string}
|
|
1974
|
+
* @memberof CustomersApiListCustomers
|
|
1975
|
+
*/
|
|
1976
|
+
readonly project: string
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* The platform identifier
|
|
1980
|
+
* @type {string}
|
|
1981
|
+
* @memberof CustomersApiListCustomers
|
|
1982
|
+
*/
|
|
1983
|
+
readonly platformId: string
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* CustomersApi - object-oriented interface
|
|
1988
|
+
* @export
|
|
1989
|
+
* @class CustomersApi
|
|
1990
|
+
* @extends {BaseAPI}
|
|
1991
|
+
*/
|
|
1992
|
+
export class CustomersApi extends BaseAPI {
|
|
1993
|
+
/**
|
|
1994
|
+
* Export customers as a CSV file
|
|
1995
|
+
* @summary Export customers
|
|
1996
|
+
* @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
|
|
1997
|
+
* @param {*} [options] Override http request option.
|
|
1998
|
+
* @throws {RequiredError}
|
|
1999
|
+
* @memberof CustomersApi
|
|
2000
|
+
*/
|
|
2001
|
+
public exportCustomers(requestParameters: CustomersApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
2002
|
+
return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
/**
|
|
2006
|
+
* Get a customer for a platform by a given customer ID.
|
|
2007
|
+
* @summary Get customer
|
|
2008
|
+
* @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
|
|
2009
|
+
* @param {*} [options] Override http request option.
|
|
2010
|
+
* @throws {RequiredError}
|
|
2011
|
+
* @memberof CustomersApi
|
|
2012
|
+
*/
|
|
2013
|
+
public getCustomer(requestParameters: CustomersApiGetCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
2014
|
+
return CustomersApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* List customers for a platform
|
|
2019
|
+
* @summary List customers
|
|
2020
|
+
* @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
|
|
2021
|
+
* @param {*} [options] Override http request option.
|
|
2022
|
+
* @throws {RequiredError}
|
|
2023
|
+
* @memberof CustomersApi
|
|
2024
|
+
*/
|
|
2025
|
+
public listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
2026
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
|
|
818
2031
|
|
|
819
2032
|
/**
|
|
820
2033
|
* OrdersApi - axios parameter creator
|
|
@@ -1667,6 +2880,54 @@ export class OrdersApi extends BaseAPI {
|
|
|
1667
2880
|
*/
|
|
1668
2881
|
export const PlatformApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1669
2882
|
return {
|
|
2883
|
+
/**
|
|
2884
|
+
* Export customers as a CSV file
|
|
2885
|
+
* @summary Export customers
|
|
2886
|
+
* @param {string} project Project unique identifier
|
|
2887
|
+
* @param {string} platformId The platform identifier
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
exportCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2892
|
+
// verify required parameter 'project' is not null or undefined
|
|
2893
|
+
assertParamExists('exportCustomers', 'project', project)
|
|
2894
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2895
|
+
assertParamExists('exportCustomers', 'platformId', platformId)
|
|
2896
|
+
const localVarPath = `/v1/platform/{platformId}/customers/export`
|
|
2897
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2898
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2899
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2900
|
+
let baseOptions;
|
|
2901
|
+
if (configuration) {
|
|
2902
|
+
baseOptions = configuration.baseOptions;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2906
|
+
const localVarHeaderParameter = {} as any;
|
|
2907
|
+
const localVarQueryParameter = {} as any;
|
|
2908
|
+
|
|
2909
|
+
// authentication session-oauth required
|
|
2910
|
+
// oauth required
|
|
2911
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2912
|
+
|
|
2913
|
+
// authentication api-key required
|
|
2914
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2915
|
+
|
|
2916
|
+
if (project !== undefined) {
|
|
2917
|
+
localVarQueryParameter['project'] = project;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2923
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2924
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2925
|
+
|
|
2926
|
+
return {
|
|
2927
|
+
url: toPathString(localVarUrlObj),
|
|
2928
|
+
options: localVarRequestOptions,
|
|
2929
|
+
};
|
|
2930
|
+
},
|
|
1670
2931
|
/**
|
|
1671
2932
|
* Export orders as a CSV file
|
|
1672
2933
|
* @summary Export orders
|
|
@@ -1727,6 +2988,58 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1727
2988
|
|
|
1728
2989
|
|
|
1729
2990
|
|
|
2991
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2992
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2993
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2994
|
+
|
|
2995
|
+
return {
|
|
2996
|
+
url: toPathString(localVarUrlObj),
|
|
2997
|
+
options: localVarRequestOptions,
|
|
2998
|
+
};
|
|
2999
|
+
},
|
|
3000
|
+
/**
|
|
3001
|
+
* Get a customer for a platform by a given customer ID.
|
|
3002
|
+
* @summary Get customer
|
|
3003
|
+
* @param {string} project Project unique identifier
|
|
3004
|
+
* @param {string} platformId The platform identifier
|
|
3005
|
+
* @param {string} customerId The customer identifier
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
*/
|
|
3009
|
+
getCustomer: async (project: string, platformId: string, customerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3010
|
+
// verify required parameter 'project' is not null or undefined
|
|
3011
|
+
assertParamExists('getCustomer', 'project', project)
|
|
3012
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3013
|
+
assertParamExists('getCustomer', 'platformId', platformId)
|
|
3014
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
3015
|
+
assertParamExists('getCustomer', 'customerId', customerId)
|
|
3016
|
+
const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
|
|
3017
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
3018
|
+
.replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
|
|
3019
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3020
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3021
|
+
let baseOptions;
|
|
3022
|
+
if (configuration) {
|
|
3023
|
+
baseOptions = configuration.baseOptions;
|
|
3024
|
+
}
|
|
3025
|
+
|
|
3026
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3027
|
+
const localVarHeaderParameter = {} as any;
|
|
3028
|
+
const localVarQueryParameter = {} as any;
|
|
3029
|
+
|
|
3030
|
+
// authentication session-oauth required
|
|
3031
|
+
// oauth required
|
|
3032
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3033
|
+
|
|
3034
|
+
// authentication api-key required
|
|
3035
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3036
|
+
|
|
3037
|
+
if (project !== undefined) {
|
|
3038
|
+
localVarQueryParameter['project'] = project;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
|
|
3042
|
+
|
|
1730
3043
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1731
3044
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
3045
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1927,6 +3240,54 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1927
3240
|
|
|
1928
3241
|
|
|
1929
3242
|
|
|
3243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3246
|
+
|
|
3247
|
+
return {
|
|
3248
|
+
url: toPathString(localVarUrlObj),
|
|
3249
|
+
options: localVarRequestOptions,
|
|
3250
|
+
};
|
|
3251
|
+
},
|
|
3252
|
+
/**
|
|
3253
|
+
* List customers for a platform
|
|
3254
|
+
* @summary List customers
|
|
3255
|
+
* @param {string} project Project unique identifier
|
|
3256
|
+
* @param {string} platformId The platform identifier
|
|
3257
|
+
* @param {*} [options] Override http request option.
|
|
3258
|
+
* @throws {RequiredError}
|
|
3259
|
+
*/
|
|
3260
|
+
listCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3261
|
+
// verify required parameter 'project' is not null or undefined
|
|
3262
|
+
assertParamExists('listCustomers', 'project', project)
|
|
3263
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3264
|
+
assertParamExists('listCustomers', 'platformId', platformId)
|
|
3265
|
+
const localVarPath = `/v1/platform/{platformId}/customers`
|
|
3266
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
3267
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3268
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3269
|
+
let baseOptions;
|
|
3270
|
+
if (configuration) {
|
|
3271
|
+
baseOptions = configuration.baseOptions;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3275
|
+
const localVarHeaderParameter = {} as any;
|
|
3276
|
+
const localVarQueryParameter = {} as any;
|
|
3277
|
+
|
|
3278
|
+
// authentication session-oauth required
|
|
3279
|
+
// oauth required
|
|
3280
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3281
|
+
|
|
3282
|
+
// authentication api-key required
|
|
3283
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3284
|
+
|
|
3285
|
+
if (project !== undefined) {
|
|
3286
|
+
localVarQueryParameter['project'] = project;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
|
|
3290
|
+
|
|
1930
3291
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1931
3292
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1932
3293
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1949,13 +3310,142 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1949
3310
|
* @param {*} [options] Override http request option.
|
|
1950
3311
|
* @throws {RequiredError}
|
|
1951
3312
|
*/
|
|
1952
|
-
listOrders: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3313
|
+
listOrders: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3314
|
+
// verify required parameter 'project' is not null or undefined
|
|
3315
|
+
assertParamExists('listOrders', 'project', project)
|
|
3316
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3317
|
+
assertParamExists('listOrders', 'platformId', platformId)
|
|
3318
|
+
const localVarPath = `/v1/platform/{platformId}/orders`
|
|
3319
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
3320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3321
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3322
|
+
let baseOptions;
|
|
3323
|
+
if (configuration) {
|
|
3324
|
+
baseOptions = configuration.baseOptions;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3328
|
+
const localVarHeaderParameter = {} as any;
|
|
3329
|
+
const localVarQueryParameter = {} as any;
|
|
3330
|
+
|
|
3331
|
+
// authentication session-oauth required
|
|
3332
|
+
// oauth required
|
|
3333
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3334
|
+
|
|
3335
|
+
// authentication api-key required
|
|
3336
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3337
|
+
|
|
3338
|
+
if (project !== undefined) {
|
|
3339
|
+
localVarQueryParameter['project'] = project;
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
if (pageToken !== undefined) {
|
|
3343
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
if (pageSize !== undefined) {
|
|
3347
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
if (search !== undefined) {
|
|
3351
|
+
localVarQueryParameter['search'] = search;
|
|
3352
|
+
}
|
|
3353
|
+
|
|
3354
|
+
if (start !== undefined) {
|
|
3355
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
3356
|
+
(start as any).toISOString() :
|
|
3357
|
+
start;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
if (end !== undefined) {
|
|
3361
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
3362
|
+
(end as any).toISOString() :
|
|
3363
|
+
end;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3370
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3371
|
+
|
|
3372
|
+
return {
|
|
3373
|
+
url: toPathString(localVarUrlObj),
|
|
3374
|
+
options: localVarRequestOptions,
|
|
3375
|
+
};
|
|
3376
|
+
},
|
|
3377
|
+
/**
|
|
3378
|
+
* Update a fulfillment that belongs to an order placed through the platform
|
|
3379
|
+
* @summary Update fulfillment
|
|
3380
|
+
* @param {string} project Project unique identifier
|
|
3381
|
+
* @param {string} platformId The platform identifier
|
|
3382
|
+
* @param {string} fulfillmentId The fulfillment identifier
|
|
3383
|
+
* @param {UpdateFulfillmentRequest} updateFulfillmentRequest
|
|
3384
|
+
* @param {*} [options] Override http request option.
|
|
3385
|
+
* @throws {RequiredError}
|
|
3386
|
+
*/
|
|
3387
|
+
updateFulfillment: async (project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3388
|
+
// verify required parameter 'project' is not null or undefined
|
|
3389
|
+
assertParamExists('updateFulfillment', 'project', project)
|
|
3390
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3391
|
+
assertParamExists('updateFulfillment', 'platformId', platformId)
|
|
3392
|
+
// verify required parameter 'fulfillmentId' is not null or undefined
|
|
3393
|
+
assertParamExists('updateFulfillment', 'fulfillmentId', fulfillmentId)
|
|
3394
|
+
// verify required parameter 'updateFulfillmentRequest' is not null or undefined
|
|
3395
|
+
assertParamExists('updateFulfillment', 'updateFulfillmentRequest', updateFulfillmentRequest)
|
|
3396
|
+
const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
|
|
3397
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
3398
|
+
.replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
|
|
3399
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3400
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3401
|
+
let baseOptions;
|
|
3402
|
+
if (configuration) {
|
|
3403
|
+
baseOptions = configuration.baseOptions;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3407
|
+
const localVarHeaderParameter = {} as any;
|
|
3408
|
+
const localVarQueryParameter = {} as any;
|
|
3409
|
+
|
|
3410
|
+
// authentication session-oauth required
|
|
3411
|
+
// oauth required
|
|
3412
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3413
|
+
|
|
3414
|
+
// authentication api-key required
|
|
3415
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3416
|
+
|
|
3417
|
+
if (project !== undefined) {
|
|
3418
|
+
localVarQueryParameter['project'] = project;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
|
|
3423
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3424
|
+
|
|
3425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3427
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3428
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFulfillmentRequest, localVarRequestOptions, configuration)
|
|
3429
|
+
|
|
3430
|
+
return {
|
|
3431
|
+
url: toPathString(localVarUrlObj),
|
|
3432
|
+
options: localVarRequestOptions,
|
|
3433
|
+
};
|
|
3434
|
+
},
|
|
3435
|
+
/**
|
|
3436
|
+
*
|
|
3437
|
+
* @summary Update platform
|
|
3438
|
+
* @param {string} project Project unique identifier
|
|
3439
|
+
* @param {UpdatePlatformRequest} updatePlatformRequest
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
*/
|
|
3443
|
+
updatePlatform: async (project: string, updatePlatformRequest: UpdatePlatformRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1953
3444
|
// verify required parameter 'project' is not null or undefined
|
|
1954
|
-
assertParamExists('
|
|
1955
|
-
// verify required parameter '
|
|
1956
|
-
assertParamExists('
|
|
1957
|
-
const localVarPath = `/v1/platform
|
|
1958
|
-
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
3445
|
+
assertParamExists('updatePlatform', 'project', project)
|
|
3446
|
+
// verify required parameter 'updatePlatformRequest' is not null or undefined
|
|
3447
|
+
assertParamExists('updatePlatform', 'updatePlatformRequest', updatePlatformRequest)
|
|
3448
|
+
const localVarPath = `/v1/platform`;
|
|
1959
3449
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1960
3450
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1961
3451
|
let baseOptions;
|
|
@@ -1963,7 +3453,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1963
3453
|
baseOptions = configuration.baseOptions;
|
|
1964
3454
|
}
|
|
1965
3455
|
|
|
1966
|
-
const localVarRequestOptions = { method: '
|
|
3456
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1967
3457
|
const localVarHeaderParameter = {} as any;
|
|
1968
3458
|
const localVarQueryParameter = {} as any;
|
|
1969
3459
|
|
|
@@ -1978,35 +3468,14 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
1978
3468
|
localVarQueryParameter['project'] = project;
|
|
1979
3469
|
}
|
|
1980
3470
|
|
|
1981
|
-
if (pageToken !== undefined) {
|
|
1982
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
if (pageSize !== undefined) {
|
|
1986
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
if (search !== undefined) {
|
|
1990
|
-
localVarQueryParameter['search'] = search;
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
if (start !== undefined) {
|
|
1994
|
-
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
1995
|
-
(start as any).toISOString() :
|
|
1996
|
-
start;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
if (end !== undefined) {
|
|
2000
|
-
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
2001
|
-
(end as any).toISOString() :
|
|
2002
|
-
end;
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
3471
|
|
|
2006
3472
|
|
|
3473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3474
|
+
|
|
2007
3475
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2008
3476
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2009
3477
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3478
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformRequest, localVarRequestOptions, configuration)
|
|
2010
3479
|
|
|
2011
3480
|
return {
|
|
2012
3481
|
url: toPathString(localVarUrlObj),
|
|
@@ -2014,27 +3483,27 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2014
3483
|
};
|
|
2015
3484
|
},
|
|
2016
3485
|
/**
|
|
2017
|
-
*
|
|
2018
|
-
* @summary Update
|
|
3486
|
+
* Updates the warehouse product and its variants
|
|
3487
|
+
* @summary Update warehouse product
|
|
2019
3488
|
* @param {string} project Project unique identifier
|
|
2020
3489
|
* @param {string} platformId The platform identifier
|
|
2021
|
-
* @param {string}
|
|
2022
|
-
* @param {
|
|
3490
|
+
* @param {string} productId Products unique identifier
|
|
3491
|
+
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
2023
3492
|
* @param {*} [options] Override http request option.
|
|
2024
3493
|
* @throws {RequiredError}
|
|
2025
3494
|
*/
|
|
2026
|
-
|
|
3495
|
+
updateProduct: async (project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2027
3496
|
// verify required parameter 'project' is not null or undefined
|
|
2028
|
-
assertParamExists('
|
|
3497
|
+
assertParamExists('updateProduct', 'project', project)
|
|
2029
3498
|
// verify required parameter 'platformId' is not null or undefined
|
|
2030
|
-
assertParamExists('
|
|
2031
|
-
// verify required parameter '
|
|
2032
|
-
assertParamExists('
|
|
2033
|
-
// verify required parameter '
|
|
2034
|
-
assertParamExists('
|
|
2035
|
-
const localVarPath = `/v1/platform/{platformId}/
|
|
3499
|
+
assertParamExists('updateProduct', 'platformId', platformId)
|
|
3500
|
+
// verify required parameter 'productId' is not null or undefined
|
|
3501
|
+
assertParamExists('updateProduct', 'productId', productId)
|
|
3502
|
+
// verify required parameter 'updateProductRequest' is not null or undefined
|
|
3503
|
+
assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest)
|
|
3504
|
+
const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
|
|
2036
3505
|
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2037
|
-
.replace(`{${"
|
|
3506
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2038
3507
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2039
3508
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2040
3509
|
let baseOptions;
|
|
@@ -2064,7 +3533,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2064
3533
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2065
3534
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2066
3535
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2067
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
|
|
2068
3537
|
|
|
2069
3538
|
return {
|
|
2070
3539
|
url: toPathString(localVarUrlObj),
|
|
@@ -2072,19 +3541,27 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2072
3541
|
};
|
|
2073
3542
|
},
|
|
2074
3543
|
/**
|
|
2075
|
-
*
|
|
2076
|
-
* @summary Update
|
|
3544
|
+
* Updates the warehouse variant
|
|
3545
|
+
* @summary Update warehouse variant
|
|
2077
3546
|
* @param {string} project Project unique identifier
|
|
2078
|
-
* @param {
|
|
3547
|
+
* @param {string} platformId The platform identifier
|
|
3548
|
+
* @param {string} variantId Variants unique identifier
|
|
3549
|
+
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
2079
3550
|
* @param {*} [options] Override http request option.
|
|
2080
3551
|
* @throws {RequiredError}
|
|
2081
3552
|
*/
|
|
2082
|
-
|
|
3553
|
+
updateVariant: async (project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2083
3554
|
// verify required parameter 'project' is not null or undefined
|
|
2084
|
-
assertParamExists('
|
|
2085
|
-
// verify required parameter '
|
|
2086
|
-
assertParamExists('
|
|
2087
|
-
|
|
3555
|
+
assertParamExists('updateVariant', 'project', project)
|
|
3556
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3557
|
+
assertParamExists('updateVariant', 'platformId', platformId)
|
|
3558
|
+
// verify required parameter 'variantId' is not null or undefined
|
|
3559
|
+
assertParamExists('updateVariant', 'variantId', variantId)
|
|
3560
|
+
// verify required parameter 'updateVariantRequest' is not null or undefined
|
|
3561
|
+
assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest)
|
|
3562
|
+
const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
|
|
3563
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
3564
|
+
.replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
|
|
2088
3565
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2089
3566
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2090
3567
|
let baseOptions;
|
|
@@ -2114,7 +3591,7 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2114
3591
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2115
3592
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2116
3593
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2117
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3594
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration)
|
|
2118
3595
|
|
|
2119
3596
|
return {
|
|
2120
3597
|
url: toPathString(localVarUrlObj),
|
|
@@ -2131,6 +3608,20 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2131
3608
|
export const PlatformApiFp = function(configuration?: Configuration) {
|
|
2132
3609
|
const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration)
|
|
2133
3610
|
return {
|
|
3611
|
+
/**
|
|
3612
|
+
* Export customers as a CSV file
|
|
3613
|
+
* @summary Export customers
|
|
3614
|
+
* @param {string} project Project unique identifier
|
|
3615
|
+
* @param {string} platformId The platform identifier
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
async exportCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
3620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportCustomers(project, platformId, options);
|
|
3621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3622
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.exportCustomers']?.[localVarOperationServerIndex]?.url;
|
|
3623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3624
|
+
},
|
|
2134
3625
|
/**
|
|
2135
3626
|
* Export orders as a CSV file
|
|
2136
3627
|
* @summary Export orders
|
|
@@ -2148,6 +3639,21 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
2148
3639
|
const localVarOperationServerBasePath = operationServerMap['PlatformApi.exportOrders']?.[localVarOperationServerIndex]?.url;
|
|
2149
3640
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2150
3641
|
},
|
|
3642
|
+
/**
|
|
3643
|
+
* Get a customer for a platform by a given customer ID.
|
|
3644
|
+
* @summary Get customer
|
|
3645
|
+
* @param {string} project Project unique identifier
|
|
3646
|
+
* @param {string} platformId The platform identifier
|
|
3647
|
+
* @param {string} customerId The customer identifier
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
*/
|
|
3651
|
+
async getCustomer(project: string, platformId: string, customerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Customer>> {
|
|
3652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
|
|
3653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3654
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.getCustomer']?.[localVarOperationServerIndex]?.url;
|
|
3655
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3656
|
+
},
|
|
2151
3657
|
/**
|
|
2152
3658
|
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
2153
3659
|
* @summary Get fulfillment
|
|
@@ -2206,6 +3712,20 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
2206
3712
|
const localVarOperationServerBasePath = operationServerMap['PlatformApi.listAvailableFulfillers']?.[localVarOperationServerIndex]?.url;
|
|
2207
3713
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2208
3714
|
},
|
|
3715
|
+
/**
|
|
3716
|
+
* List customers for a platform
|
|
3717
|
+
* @summary List customers
|
|
3718
|
+
* @param {string} project Project unique identifier
|
|
3719
|
+
* @param {string} platformId The platform identifier
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
*/
|
|
3723
|
+
async listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
3724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
3725
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3726
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.listCustomers']?.[localVarOperationServerIndex]?.url;
|
|
3727
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3728
|
+
},
|
|
2209
3729
|
/**
|
|
2210
3730
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2211
3731
|
* @summary List orders
|
|
@@ -2255,6 +3775,38 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
2255
3775
|
const localVarOperationServerBasePath = operationServerMap['PlatformApi.updatePlatform']?.[localVarOperationServerIndex]?.url;
|
|
2256
3776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2257
3777
|
},
|
|
3778
|
+
/**
|
|
3779
|
+
* Updates the warehouse product and its variants
|
|
3780
|
+
* @summary Update warehouse product
|
|
3781
|
+
* @param {string} project Project unique identifier
|
|
3782
|
+
* @param {string} platformId The platform identifier
|
|
3783
|
+
* @param {string} productId Products unique identifier
|
|
3784
|
+
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
3785
|
+
* @param {*} [options] Override http request option.
|
|
3786
|
+
* @throws {RequiredError}
|
|
3787
|
+
*/
|
|
3788
|
+
async updateProduct(project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
|
|
3789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
|
|
3790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3791
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateProduct']?.[localVarOperationServerIndex]?.url;
|
|
3792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3793
|
+
},
|
|
3794
|
+
/**
|
|
3795
|
+
* Updates the warehouse variant
|
|
3796
|
+
* @summary Update warehouse variant
|
|
3797
|
+
* @param {string} project Project unique identifier
|
|
3798
|
+
* @param {string} platformId The platform identifier
|
|
3799
|
+
* @param {string} variantId Variants unique identifier
|
|
3800
|
+
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
async updateVariant(project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
|
|
3805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
|
|
3806
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3807
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformApi.updateVariant']?.[localVarOperationServerIndex]?.url;
|
|
3808
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3809
|
+
},
|
|
2258
3810
|
}
|
|
2259
3811
|
};
|
|
2260
3812
|
|
|
@@ -2265,6 +3817,16 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
2265
3817
|
export const PlatformApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2266
3818
|
const localVarFp = PlatformApiFp(configuration)
|
|
2267
3819
|
return {
|
|
3820
|
+
/**
|
|
3821
|
+
* Export customers as a CSV file
|
|
3822
|
+
* @summary Export customers
|
|
3823
|
+
* @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
|
|
3824
|
+
* @param {*} [options] Override http request option.
|
|
3825
|
+
* @throws {RequiredError}
|
|
3826
|
+
*/
|
|
3827
|
+
exportCustomers(requestParameters: PlatformApiExportCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
3828
|
+
return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
3829
|
+
},
|
|
2268
3830
|
/**
|
|
2269
3831
|
* Export orders as a CSV file
|
|
2270
3832
|
* @summary Export orders
|
|
@@ -2275,6 +3837,16 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
2275
3837
|
exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
2276
3838
|
return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2277
3839
|
},
|
|
3840
|
+
/**
|
|
3841
|
+
* Get a customer for a platform by a given customer ID.
|
|
3842
|
+
* @summary Get customer
|
|
3843
|
+
* @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
|
|
3844
|
+
* @param {*} [options] Override http request option.
|
|
3845
|
+
* @throws {RequiredError}
|
|
3846
|
+
*/
|
|
3847
|
+
getCustomer(requestParameters: PlatformApiGetCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<Customer> {
|
|
3848
|
+
return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
|
|
3849
|
+
},
|
|
2278
3850
|
/**
|
|
2279
3851
|
* Get a fulfillment for a platform by a given fulfillment ID.
|
|
2280
3852
|
* @summary Get fulfillment
|
|
@@ -2315,6 +3887,16 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
2315
3887
|
listAvailableFulfillers(requestParameters: PlatformApiListAvailableFulfillersRequest, options?: RawAxiosRequestConfig): AxiosPromise<FulfillersResponse> {
|
|
2316
3888
|
return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
|
|
2317
3889
|
},
|
|
3890
|
+
/**
|
|
3891
|
+
* List customers for a platform
|
|
3892
|
+
* @summary List customers
|
|
3893
|
+
* @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
|
|
3894
|
+
* @param {*} [options] Override http request option.
|
|
3895
|
+
* @throws {RequiredError}
|
|
3896
|
+
*/
|
|
3897
|
+
listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
|
|
3898
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
3899
|
+
},
|
|
2318
3900
|
/**
|
|
2319
3901
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2320
3902
|
* @summary List orders
|
|
@@ -2345,9 +3927,50 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
2345
3927
|
updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig): AxiosPromise<Platform> {
|
|
2346
3928
|
return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
|
|
2347
3929
|
},
|
|
3930
|
+
/**
|
|
3931
|
+
* Updates the warehouse product and its variants
|
|
3932
|
+
* @summary Update warehouse product
|
|
3933
|
+
* @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
|
|
3934
|
+
* @param {*} [options] Override http request option.
|
|
3935
|
+
* @throws {RequiredError}
|
|
3936
|
+
*/
|
|
3937
|
+
updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
|
|
3938
|
+
return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
3939
|
+
},
|
|
3940
|
+
/**
|
|
3941
|
+
* Updates the warehouse variant
|
|
3942
|
+
* @summary Update warehouse variant
|
|
3943
|
+
* @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
|
|
3944
|
+
* @param {*} [options] Override http request option.
|
|
3945
|
+
* @throws {RequiredError}
|
|
3946
|
+
*/
|
|
3947
|
+
updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant> {
|
|
3948
|
+
return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
|
|
3949
|
+
},
|
|
2348
3950
|
};
|
|
2349
3951
|
};
|
|
2350
3952
|
|
|
3953
|
+
/**
|
|
3954
|
+
* Request parameters for exportCustomers operation in PlatformApi.
|
|
3955
|
+
* @export
|
|
3956
|
+
* @interface PlatformApiExportCustomersRequest
|
|
3957
|
+
*/
|
|
3958
|
+
export interface PlatformApiExportCustomersRequest {
|
|
3959
|
+
/**
|
|
3960
|
+
* Project unique identifier
|
|
3961
|
+
* @type {string}
|
|
3962
|
+
* @memberof PlatformApiExportCustomers
|
|
3963
|
+
*/
|
|
3964
|
+
readonly project: string
|
|
3965
|
+
|
|
3966
|
+
/**
|
|
3967
|
+
* The platform identifier
|
|
3968
|
+
* @type {string}
|
|
3969
|
+
* @memberof PlatformApiExportCustomers
|
|
3970
|
+
*/
|
|
3971
|
+
readonly platformId: string
|
|
3972
|
+
}
|
|
3973
|
+
|
|
2351
3974
|
/**
|
|
2352
3975
|
* Request parameters for exportOrders operation in PlatformApi.
|
|
2353
3976
|
* @export
|
|
@@ -2390,6 +4013,34 @@ export interface PlatformApiExportOrdersRequest {
|
|
|
2390
4013
|
readonly search?: string
|
|
2391
4014
|
}
|
|
2392
4015
|
|
|
4016
|
+
/**
|
|
4017
|
+
* Request parameters for getCustomer operation in PlatformApi.
|
|
4018
|
+
* @export
|
|
4019
|
+
* @interface PlatformApiGetCustomerRequest
|
|
4020
|
+
*/
|
|
4021
|
+
export interface PlatformApiGetCustomerRequest {
|
|
4022
|
+
/**
|
|
4023
|
+
* Project unique identifier
|
|
4024
|
+
* @type {string}
|
|
4025
|
+
* @memberof PlatformApiGetCustomer
|
|
4026
|
+
*/
|
|
4027
|
+
readonly project: string
|
|
4028
|
+
|
|
4029
|
+
/**
|
|
4030
|
+
* The platform identifier
|
|
4031
|
+
* @type {string}
|
|
4032
|
+
* @memberof PlatformApiGetCustomer
|
|
4033
|
+
*/
|
|
4034
|
+
readonly platformId: string
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* The customer identifier
|
|
4038
|
+
* @type {string}
|
|
4039
|
+
* @memberof PlatformApiGetCustomer
|
|
4040
|
+
*/
|
|
4041
|
+
readonly customerId: string
|
|
4042
|
+
}
|
|
4043
|
+
|
|
2393
4044
|
/**
|
|
2394
4045
|
* Request parameters for getFulfillment operation in PlatformApi.
|
|
2395
4046
|
* @export
|
|
@@ -2488,6 +4139,27 @@ export interface PlatformApiListAvailableFulfillersRequest {
|
|
|
2488
4139
|
readonly fulfillmentId: string
|
|
2489
4140
|
}
|
|
2490
4141
|
|
|
4142
|
+
/**
|
|
4143
|
+
* Request parameters for listCustomers operation in PlatformApi.
|
|
4144
|
+
* @export
|
|
4145
|
+
* @interface PlatformApiListCustomersRequest
|
|
4146
|
+
*/
|
|
4147
|
+
export interface PlatformApiListCustomersRequest {
|
|
4148
|
+
/**
|
|
4149
|
+
* Project unique identifier
|
|
4150
|
+
* @type {string}
|
|
4151
|
+
* @memberof PlatformApiListCustomers
|
|
4152
|
+
*/
|
|
4153
|
+
readonly project: string
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* The platform identifier
|
|
4157
|
+
* @type {string}
|
|
4158
|
+
* @memberof PlatformApiListCustomers
|
|
4159
|
+
*/
|
|
4160
|
+
readonly platformId: string
|
|
4161
|
+
}
|
|
4162
|
+
|
|
2491
4163
|
/**
|
|
2492
4164
|
* Request parameters for listOrders operation in PlatformApi.
|
|
2493
4165
|
* @export
|
|
@@ -2600,6 +4272,76 @@ export interface PlatformApiUpdatePlatformRequest {
|
|
|
2600
4272
|
readonly updatePlatformRequest: UpdatePlatformRequest
|
|
2601
4273
|
}
|
|
2602
4274
|
|
|
4275
|
+
/**
|
|
4276
|
+
* Request parameters for updateProduct operation in PlatformApi.
|
|
4277
|
+
* @export
|
|
4278
|
+
* @interface PlatformApiUpdateProductRequest
|
|
4279
|
+
*/
|
|
4280
|
+
export interface PlatformApiUpdateProductRequest {
|
|
4281
|
+
/**
|
|
4282
|
+
* Project unique identifier
|
|
4283
|
+
* @type {string}
|
|
4284
|
+
* @memberof PlatformApiUpdateProduct
|
|
4285
|
+
*/
|
|
4286
|
+
readonly project: string
|
|
4287
|
+
|
|
4288
|
+
/**
|
|
4289
|
+
* The platform identifier
|
|
4290
|
+
* @type {string}
|
|
4291
|
+
* @memberof PlatformApiUpdateProduct
|
|
4292
|
+
*/
|
|
4293
|
+
readonly platformId: string
|
|
4294
|
+
|
|
4295
|
+
/**
|
|
4296
|
+
* Products unique identifier
|
|
4297
|
+
* @type {string}
|
|
4298
|
+
* @memberof PlatformApiUpdateProduct
|
|
4299
|
+
*/
|
|
4300
|
+
readonly productId: string
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Update a platform warehouse product
|
|
4304
|
+
* @type {UpdateProductRequest}
|
|
4305
|
+
* @memberof PlatformApiUpdateProduct
|
|
4306
|
+
*/
|
|
4307
|
+
readonly updateProductRequest: UpdateProductRequest
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
/**
|
|
4311
|
+
* Request parameters for updateVariant operation in PlatformApi.
|
|
4312
|
+
* @export
|
|
4313
|
+
* @interface PlatformApiUpdateVariantRequest
|
|
4314
|
+
*/
|
|
4315
|
+
export interface PlatformApiUpdateVariantRequest {
|
|
4316
|
+
/**
|
|
4317
|
+
* Project unique identifier
|
|
4318
|
+
* @type {string}
|
|
4319
|
+
* @memberof PlatformApiUpdateVariant
|
|
4320
|
+
*/
|
|
4321
|
+
readonly project: string
|
|
4322
|
+
|
|
4323
|
+
/**
|
|
4324
|
+
* The platform identifier
|
|
4325
|
+
* @type {string}
|
|
4326
|
+
* @memberof PlatformApiUpdateVariant
|
|
4327
|
+
*/
|
|
4328
|
+
readonly platformId: string
|
|
4329
|
+
|
|
4330
|
+
/**
|
|
4331
|
+
* Variants unique identifier
|
|
4332
|
+
* @type {string}
|
|
4333
|
+
* @memberof PlatformApiUpdateVariant
|
|
4334
|
+
*/
|
|
4335
|
+
readonly variantId: string
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Update a platform warehouse variant
|
|
4339
|
+
* @type {UpdateVariantRequest}
|
|
4340
|
+
* @memberof PlatformApiUpdateVariant
|
|
4341
|
+
*/
|
|
4342
|
+
readonly updateVariantRequest: UpdateVariantRequest
|
|
4343
|
+
}
|
|
4344
|
+
|
|
2603
4345
|
/**
|
|
2604
4346
|
* PlatformApi - object-oriented interface
|
|
2605
4347
|
* @export
|
|
@@ -2608,15 +4350,39 @@ export interface PlatformApiUpdatePlatformRequest {
|
|
|
2608
4350
|
*/
|
|
2609
4351
|
export class PlatformApi extends BaseAPI {
|
|
2610
4352
|
/**
|
|
2611
|
-
* Export
|
|
2612
|
-
* @summary Export
|
|
2613
|
-
* @param {
|
|
4353
|
+
* Export customers as a CSV file
|
|
4354
|
+
* @summary Export customers
|
|
4355
|
+
* @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
|
|
4356
|
+
* @param {*} [options] Override http request option.
|
|
4357
|
+
* @throws {RequiredError}
|
|
4358
|
+
* @memberof PlatformApi
|
|
4359
|
+
*/
|
|
4360
|
+
public exportCustomers(requestParameters: PlatformApiExportCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
4361
|
+
return PlatformApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
4362
|
+
}
|
|
4363
|
+
|
|
4364
|
+
/**
|
|
4365
|
+
* Export orders as a CSV file
|
|
4366
|
+
* @summary Export orders
|
|
4367
|
+
* @param {PlatformApiExportOrdersRequest} requestParameters Request parameters.
|
|
4368
|
+
* @param {*} [options] Override http request option.
|
|
4369
|
+
* @throws {RequiredError}
|
|
4370
|
+
* @memberof PlatformApi
|
|
4371
|
+
*/
|
|
4372
|
+
public exportOrders(requestParameters: PlatformApiExportOrdersRequest, options?: RawAxiosRequestConfig) {
|
|
4373
|
+
return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
/**
|
|
4377
|
+
* Get a customer for a platform by a given customer ID.
|
|
4378
|
+
* @summary Get customer
|
|
4379
|
+
* @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
|
|
2614
4380
|
* @param {*} [options] Override http request option.
|
|
2615
4381
|
* @throws {RequiredError}
|
|
2616
4382
|
* @memberof PlatformApi
|
|
2617
4383
|
*/
|
|
2618
|
-
public
|
|
2619
|
-
return PlatformApiFp(this.configuration).
|
|
4384
|
+
public getCustomer(requestParameters: PlatformApiGetCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
4385
|
+
return PlatformApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
|
|
2620
4386
|
}
|
|
2621
4387
|
|
|
2622
4388
|
/**
|
|
@@ -2667,6 +4433,18 @@ export class PlatformApi extends BaseAPI {
|
|
|
2667
4433
|
return PlatformApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
|
|
2668
4434
|
}
|
|
2669
4435
|
|
|
4436
|
+
/**
|
|
4437
|
+
* List customers for a platform
|
|
4438
|
+
* @summary List customers
|
|
4439
|
+
* @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
|
|
4440
|
+
* @param {*} [options] Override http request option.
|
|
4441
|
+
* @throws {RequiredError}
|
|
4442
|
+
* @memberof PlatformApi
|
|
4443
|
+
*/
|
|
4444
|
+
public listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
4445
|
+
return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
4446
|
+
}
|
|
4447
|
+
|
|
2670
4448
|
/**
|
|
2671
4449
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2672
4450
|
* @summary List orders
|
|
@@ -2702,6 +4480,370 @@ export class PlatformApi extends BaseAPI {
|
|
|
2702
4480
|
public updatePlatform(requestParameters: PlatformApiUpdatePlatformRequest, options?: RawAxiosRequestConfig) {
|
|
2703
4481
|
return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2704
4482
|
}
|
|
4483
|
+
|
|
4484
|
+
/**
|
|
4485
|
+
* Updates the warehouse product and its variants
|
|
4486
|
+
* @summary Update warehouse product
|
|
4487
|
+
* @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
|
|
4488
|
+
* @param {*} [options] Override http request option.
|
|
4489
|
+
* @throws {RequiredError}
|
|
4490
|
+
* @memberof PlatformApi
|
|
4491
|
+
*/
|
|
4492
|
+
public updateProduct(requestParameters: PlatformApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
|
|
4493
|
+
return PlatformApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4494
|
+
}
|
|
4495
|
+
|
|
4496
|
+
/**
|
|
4497
|
+
* Updates the warehouse variant
|
|
4498
|
+
* @summary Update warehouse variant
|
|
4499
|
+
* @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
|
|
4500
|
+
* @param {*} [options] Override http request option.
|
|
4501
|
+
* @throws {RequiredError}
|
|
4502
|
+
* @memberof PlatformApi
|
|
4503
|
+
*/
|
|
4504
|
+
public updateVariant(requestParameters: PlatformApiUpdateVariantRequest, options?: RawAxiosRequestConfig) {
|
|
4505
|
+
return PlatformApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4508
|
+
|
|
4509
|
+
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* ProductsApi - axios parameter creator
|
|
4513
|
+
* @export
|
|
4514
|
+
*/
|
|
4515
|
+
export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4516
|
+
return {
|
|
4517
|
+
/**
|
|
4518
|
+
* Updates the warehouse product and its variants
|
|
4519
|
+
* @summary Update warehouse product
|
|
4520
|
+
* @param {string} project Project unique identifier
|
|
4521
|
+
* @param {string} platformId The platform identifier
|
|
4522
|
+
* @param {string} productId Products unique identifier
|
|
4523
|
+
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
4524
|
+
* @param {*} [options] Override http request option.
|
|
4525
|
+
* @throws {RequiredError}
|
|
4526
|
+
*/
|
|
4527
|
+
updateProduct: async (project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4528
|
+
// verify required parameter 'project' is not null or undefined
|
|
4529
|
+
assertParamExists('updateProduct', 'project', project)
|
|
4530
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
4531
|
+
assertParamExists('updateProduct', 'platformId', platformId)
|
|
4532
|
+
// verify required parameter 'productId' is not null or undefined
|
|
4533
|
+
assertParamExists('updateProduct', 'productId', productId)
|
|
4534
|
+
// verify required parameter 'updateProductRequest' is not null or undefined
|
|
4535
|
+
assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest)
|
|
4536
|
+
const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
|
|
4537
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
4538
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
4539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4541
|
+
let baseOptions;
|
|
4542
|
+
if (configuration) {
|
|
4543
|
+
baseOptions = configuration.baseOptions;
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4546
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4547
|
+
const localVarHeaderParameter = {} as any;
|
|
4548
|
+
const localVarQueryParameter = {} as any;
|
|
4549
|
+
|
|
4550
|
+
// authentication session-oauth required
|
|
4551
|
+
// oauth required
|
|
4552
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4553
|
+
|
|
4554
|
+
// authentication api-key required
|
|
4555
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4556
|
+
|
|
4557
|
+
if (project !== undefined) {
|
|
4558
|
+
localVarQueryParameter['project'] = project;
|
|
4559
|
+
}
|
|
4560
|
+
|
|
4561
|
+
|
|
4562
|
+
|
|
4563
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4564
|
+
|
|
4565
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4566
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4567
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4568
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration)
|
|
4569
|
+
|
|
4570
|
+
return {
|
|
4571
|
+
url: toPathString(localVarUrlObj),
|
|
4572
|
+
options: localVarRequestOptions,
|
|
4573
|
+
};
|
|
4574
|
+
},
|
|
4575
|
+
}
|
|
4576
|
+
};
|
|
4577
|
+
|
|
4578
|
+
/**
|
|
4579
|
+
* ProductsApi - functional programming interface
|
|
4580
|
+
* @export
|
|
4581
|
+
*/
|
|
4582
|
+
export const ProductsApiFp = function(configuration?: Configuration) {
|
|
4583
|
+
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
|
|
4584
|
+
return {
|
|
4585
|
+
/**
|
|
4586
|
+
* Updates the warehouse product and its variants
|
|
4587
|
+
* @summary Update warehouse product
|
|
4588
|
+
* @param {string} project Project unique identifier
|
|
4589
|
+
* @param {string} platformId The platform identifier
|
|
4590
|
+
* @param {string} productId Products unique identifier
|
|
4591
|
+
* @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
|
|
4592
|
+
* @param {*} [options] Override http request option.
|
|
4593
|
+
* @throws {RequiredError}
|
|
4594
|
+
*/
|
|
4595
|
+
async updateProduct(project: string, platformId: string, productId: string, updateProductRequest: UpdateProductRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
|
|
4596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
|
|
4597
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4598
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.updateProduct']?.[localVarOperationServerIndex]?.url;
|
|
4599
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4600
|
+
},
|
|
4601
|
+
}
|
|
4602
|
+
};
|
|
4603
|
+
|
|
4604
|
+
/**
|
|
4605
|
+
* ProductsApi - factory interface
|
|
4606
|
+
* @export
|
|
4607
|
+
*/
|
|
4608
|
+
export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4609
|
+
const localVarFp = ProductsApiFp(configuration)
|
|
4610
|
+
return {
|
|
4611
|
+
/**
|
|
4612
|
+
* Updates the warehouse product and its variants
|
|
4613
|
+
* @summary Update warehouse product
|
|
4614
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
4615
|
+
* @param {*} [options] Override http request option.
|
|
4616
|
+
* @throws {RequiredError}
|
|
4617
|
+
*/
|
|
4618
|
+
updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig): AxiosPromise<Product> {
|
|
4619
|
+
return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
|
|
4620
|
+
},
|
|
4621
|
+
};
|
|
4622
|
+
};
|
|
4623
|
+
|
|
4624
|
+
/**
|
|
4625
|
+
* Request parameters for updateProduct operation in ProductsApi.
|
|
4626
|
+
* @export
|
|
4627
|
+
* @interface ProductsApiUpdateProductRequest
|
|
4628
|
+
*/
|
|
4629
|
+
export interface ProductsApiUpdateProductRequest {
|
|
4630
|
+
/**
|
|
4631
|
+
* Project unique identifier
|
|
4632
|
+
* @type {string}
|
|
4633
|
+
* @memberof ProductsApiUpdateProduct
|
|
4634
|
+
*/
|
|
4635
|
+
readonly project: string
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* The platform identifier
|
|
4639
|
+
* @type {string}
|
|
4640
|
+
* @memberof ProductsApiUpdateProduct
|
|
4641
|
+
*/
|
|
4642
|
+
readonly platformId: string
|
|
4643
|
+
|
|
4644
|
+
/**
|
|
4645
|
+
* Products unique identifier
|
|
4646
|
+
* @type {string}
|
|
4647
|
+
* @memberof ProductsApiUpdateProduct
|
|
4648
|
+
*/
|
|
4649
|
+
readonly productId: string
|
|
4650
|
+
|
|
4651
|
+
/**
|
|
4652
|
+
* Update a platform warehouse product
|
|
4653
|
+
* @type {UpdateProductRequest}
|
|
4654
|
+
* @memberof ProductsApiUpdateProduct
|
|
4655
|
+
*/
|
|
4656
|
+
readonly updateProductRequest: UpdateProductRequest
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* ProductsApi - object-oriented interface
|
|
4661
|
+
* @export
|
|
4662
|
+
* @class ProductsApi
|
|
4663
|
+
* @extends {BaseAPI}
|
|
4664
|
+
*/
|
|
4665
|
+
export class ProductsApi extends BaseAPI {
|
|
4666
|
+
/**
|
|
4667
|
+
* Updates the warehouse product and its variants
|
|
4668
|
+
* @summary Update warehouse product
|
|
4669
|
+
* @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
|
|
4670
|
+
* @param {*} [options] Override http request option.
|
|
4671
|
+
* @throws {RequiredError}
|
|
4672
|
+
* @memberof ProductsApi
|
|
4673
|
+
*/
|
|
4674
|
+
public updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: RawAxiosRequestConfig) {
|
|
4675
|
+
return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4676
|
+
}
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
|
|
4680
|
+
|
|
4681
|
+
/**
|
|
4682
|
+
* VariantsApi - axios parameter creator
|
|
4683
|
+
* @export
|
|
4684
|
+
*/
|
|
4685
|
+
export const VariantsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4686
|
+
return {
|
|
4687
|
+
/**
|
|
4688
|
+
* Updates the warehouse variant
|
|
4689
|
+
* @summary Update warehouse variant
|
|
4690
|
+
* @param {string} project Project unique identifier
|
|
4691
|
+
* @param {string} platformId The platform identifier
|
|
4692
|
+
* @param {string} variantId Variants unique identifier
|
|
4693
|
+
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
4694
|
+
* @param {*} [options] Override http request option.
|
|
4695
|
+
* @throws {RequiredError}
|
|
4696
|
+
*/
|
|
4697
|
+
updateVariant: async (project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4698
|
+
// verify required parameter 'project' is not null or undefined
|
|
4699
|
+
assertParamExists('updateVariant', 'project', project)
|
|
4700
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
4701
|
+
assertParamExists('updateVariant', 'platformId', platformId)
|
|
4702
|
+
// verify required parameter 'variantId' is not null or undefined
|
|
4703
|
+
assertParamExists('updateVariant', 'variantId', variantId)
|
|
4704
|
+
// verify required parameter 'updateVariantRequest' is not null or undefined
|
|
4705
|
+
assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest)
|
|
4706
|
+
const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
|
|
4707
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
4708
|
+
.replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
|
|
4709
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4710
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4711
|
+
let baseOptions;
|
|
4712
|
+
if (configuration) {
|
|
4713
|
+
baseOptions = configuration.baseOptions;
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4717
|
+
const localVarHeaderParameter = {} as any;
|
|
4718
|
+
const localVarQueryParameter = {} as any;
|
|
4719
|
+
|
|
4720
|
+
// authentication session-oauth required
|
|
4721
|
+
// oauth required
|
|
4722
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4723
|
+
|
|
4724
|
+
// authentication api-key required
|
|
4725
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4726
|
+
|
|
4727
|
+
if (project !== undefined) {
|
|
4728
|
+
localVarQueryParameter['project'] = project;
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
|
|
4732
|
+
|
|
4733
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4734
|
+
|
|
4735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4737
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4738
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration)
|
|
4739
|
+
|
|
4740
|
+
return {
|
|
4741
|
+
url: toPathString(localVarUrlObj),
|
|
4742
|
+
options: localVarRequestOptions,
|
|
4743
|
+
};
|
|
4744
|
+
},
|
|
4745
|
+
}
|
|
4746
|
+
};
|
|
4747
|
+
|
|
4748
|
+
/**
|
|
4749
|
+
* VariantsApi - functional programming interface
|
|
4750
|
+
* @export
|
|
4751
|
+
*/
|
|
4752
|
+
export const VariantsApiFp = function(configuration?: Configuration) {
|
|
4753
|
+
const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration)
|
|
4754
|
+
return {
|
|
4755
|
+
/**
|
|
4756
|
+
* Updates the warehouse variant
|
|
4757
|
+
* @summary Update warehouse variant
|
|
4758
|
+
* @param {string} project Project unique identifier
|
|
4759
|
+
* @param {string} platformId The platform identifier
|
|
4760
|
+
* @param {string} variantId Variants unique identifier
|
|
4761
|
+
* @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
|
|
4762
|
+
* @param {*} [options] Override http request option.
|
|
4763
|
+
* @throws {RequiredError}
|
|
4764
|
+
*/
|
|
4765
|
+
async updateVariant(project: string, platformId: string, variantId: string, updateVariantRequest: UpdateVariantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variant>> {
|
|
4766
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
|
|
4767
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4768
|
+
const localVarOperationServerBasePath = operationServerMap['VariantsApi.updateVariant']?.[localVarOperationServerIndex]?.url;
|
|
4769
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4770
|
+
},
|
|
4771
|
+
}
|
|
4772
|
+
};
|
|
4773
|
+
|
|
4774
|
+
/**
|
|
4775
|
+
* VariantsApi - factory interface
|
|
4776
|
+
* @export
|
|
4777
|
+
*/
|
|
4778
|
+
export const VariantsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4779
|
+
const localVarFp = VariantsApiFp(configuration)
|
|
4780
|
+
return {
|
|
4781
|
+
/**
|
|
4782
|
+
* Updates the warehouse variant
|
|
4783
|
+
* @summary Update warehouse variant
|
|
4784
|
+
* @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
|
|
4785
|
+
* @param {*} [options] Override http request option.
|
|
4786
|
+
* @throws {RequiredError}
|
|
4787
|
+
*/
|
|
4788
|
+
updateVariant(requestParameters: VariantsApiUpdateVariantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Variant> {
|
|
4789
|
+
return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
|
|
4790
|
+
},
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4793
|
+
|
|
4794
|
+
/**
|
|
4795
|
+
* Request parameters for updateVariant operation in VariantsApi.
|
|
4796
|
+
* @export
|
|
4797
|
+
* @interface VariantsApiUpdateVariantRequest
|
|
4798
|
+
*/
|
|
4799
|
+
export interface VariantsApiUpdateVariantRequest {
|
|
4800
|
+
/**
|
|
4801
|
+
* Project unique identifier
|
|
4802
|
+
* @type {string}
|
|
4803
|
+
* @memberof VariantsApiUpdateVariant
|
|
4804
|
+
*/
|
|
4805
|
+
readonly project: string
|
|
4806
|
+
|
|
4807
|
+
/**
|
|
4808
|
+
* The platform identifier
|
|
4809
|
+
* @type {string}
|
|
4810
|
+
* @memberof VariantsApiUpdateVariant
|
|
4811
|
+
*/
|
|
4812
|
+
readonly platformId: string
|
|
4813
|
+
|
|
4814
|
+
/**
|
|
4815
|
+
* Variants unique identifier
|
|
4816
|
+
* @type {string}
|
|
4817
|
+
* @memberof VariantsApiUpdateVariant
|
|
4818
|
+
*/
|
|
4819
|
+
readonly variantId: string
|
|
4820
|
+
|
|
4821
|
+
/**
|
|
4822
|
+
* Update a platform warehouse variant
|
|
4823
|
+
* @type {UpdateVariantRequest}
|
|
4824
|
+
* @memberof VariantsApiUpdateVariant
|
|
4825
|
+
*/
|
|
4826
|
+
readonly updateVariantRequest: UpdateVariantRequest
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4829
|
+
/**
|
|
4830
|
+
* VariantsApi - object-oriented interface
|
|
4831
|
+
* @export
|
|
4832
|
+
* @class VariantsApi
|
|
4833
|
+
* @extends {BaseAPI}
|
|
4834
|
+
*/
|
|
4835
|
+
export class VariantsApi extends BaseAPI {
|
|
4836
|
+
/**
|
|
4837
|
+
* Updates the warehouse variant
|
|
4838
|
+
* @summary Update warehouse variant
|
|
4839
|
+
* @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
|
|
4840
|
+
* @param {*} [options] Override http request option.
|
|
4841
|
+
* @throws {RequiredError}
|
|
4842
|
+
* @memberof VariantsApi
|
|
4843
|
+
*/
|
|
4844
|
+
public updateVariant(requestParameters: VariantsApiUpdateVariantRequest, options?: RawAxiosRequestConfig) {
|
|
4845
|
+
return VariantsApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4846
|
+
}
|
|
2705
4847
|
}
|
|
2706
4848
|
|
|
2707
4849
|
|