@teemill/website 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0
7
+ * The version of the OpenAPI document: 0.5.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -42,6 +42,158 @@ export interface ApiError {
42
42
  */
43
43
  'message': string;
44
44
  }
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface Application
49
+ */
50
+ export interface Application {
51
+ /**
52
+ * Unique object identifier
53
+ * @type {string}
54
+ * @memberof Application
55
+ */
56
+ 'id'?: string;
57
+ /**
58
+ * Technology to use for the application.
59
+ * @type {string}
60
+ * @memberof Application
61
+ */
62
+ 'technology': ApplicationTechnologyEnum;
63
+ /**
64
+ * Placement of the application. Available placements depend on the chosen product and technology.
65
+ * @type {string}
66
+ * @memberof Application
67
+ */
68
+ 'placement': ApplicationPlacementEnum;
69
+ /**
70
+ * Publicly available design file URL. This will fill the design area of the warehouse product. It will be centered horizontally and aligned to the top of the design area. Accepts PNG and JPEG files.
71
+ * @type {string}
72
+ * @memberof Application
73
+ */
74
+ 'src': string;
75
+ /**
76
+ *
77
+ * @type {ApplicationMockup}
78
+ * @memberof Application
79
+ */
80
+ 'mockup'?: ApplicationMockup | null;
81
+ }
82
+
83
+ export const ApplicationTechnologyEnum = {
84
+ Dtg: 'dtg',
85
+ Embroidery: 'embroidery',
86
+ Dtf: 'dtf',
87
+ Pretreat: 'pretreat',
88
+ MugSublimation: 'mug_sublimation',
89
+ ManualPrint: 'manual_print',
90
+ AdditionalApplication: 'additional_application',
91
+ NotebookSublimation: 'notebook_sublimation',
92
+ DuplexPrint: 'duplex_print'
93
+ } as const;
94
+
95
+ export type ApplicationTechnologyEnum = typeof ApplicationTechnologyEnum[keyof typeof ApplicationTechnologyEnum];
96
+ export const ApplicationPlacementEnum = {
97
+ Front: 'front',
98
+ Back: 'back',
99
+ Left: 'left',
100
+ Right: 'right',
101
+ Neck: 'neck'
102
+ } as const;
103
+
104
+ export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
105
+
106
+ /**
107
+ *
108
+ * @export
109
+ * @interface ApplicationMockup
110
+ */
111
+ export interface ApplicationMockup {
112
+ /**
113
+ * Drive image URL. If provided, this will be used as the mockup image for the variant application rather than generating a new one.
114
+ * @type {string}
115
+ * @memberof ApplicationMockup
116
+ */
117
+ 'file': string;
118
+ /**
119
+ * Publicly available mockup image URL. This is a preview of the mockup image for the given application.
120
+ * @type {string}
121
+ * @memberof ApplicationMockup
122
+ */
123
+ 'preview'?: string;
124
+ }
125
+ /**
126
+ *
127
+ * @export
128
+ * @interface AttachCrossSellProductsRequest
129
+ */
130
+ export interface AttachCrossSellProductsRequest {
131
+ /**
132
+ * A list of product IDs to attach as cross-sell products. The order in which they are sent is the order they will be saved in.
133
+ * @type {Array<string>}
134
+ * @memberof AttachCrossSellProductsRequest
135
+ */
136
+ 'products'?: Array<string>;
137
+ }
138
+ /**
139
+ *
140
+ * @export
141
+ * @interface Attribute
142
+ */
143
+ export interface Attribute {
144
+ /**
145
+ * Attribute name
146
+ * @type {string}
147
+ * @memberof Attribute
148
+ */
149
+ 'name': string;
150
+ /**
151
+ * Attribute value
152
+ * @type {string}
153
+ * @memberof Attribute
154
+ */
155
+ 'value': string;
156
+ /**
157
+ *
158
+ * @type {AttributeThumbnail}
159
+ * @memberof Attribute
160
+ */
161
+ 'thumbnail'?: AttributeThumbnail;
162
+ /**
163
+ * Attribute tags
164
+ * @type {Array<string>}
165
+ * @memberof Attribute
166
+ */
167
+ 'tags'?: Array<string>;
168
+ }
169
+ /**
170
+ * Attribute thumbnail, intended for interfaces like storefront colour selector.
171
+ * @export
172
+ * @interface AttributeThumbnail
173
+ */
174
+ export interface AttributeThumbnail {
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof AttributeThumbnail
179
+ */
180
+ 'type'?: AttributeThumbnailTypeEnum;
181
+ /**
182
+ *
183
+ * @type {string}
184
+ * @memberof AttributeThumbnail
185
+ */
186
+ 'value'?: string;
187
+ }
188
+
189
+ export const AttributeThumbnailTypeEnum = {
190
+ Text: 'text',
191
+ Color: 'color',
192
+ Image: 'image'
193
+ } as const;
194
+
195
+ export type AttributeThumbnailTypeEnum = typeof AttributeThumbnailTypeEnum[keyof typeof AttributeThumbnailTypeEnum];
196
+
45
197
  /**
46
198
  *
47
199
  * @export
@@ -55,6 +207,61 @@ export interface AuthorizeStripe200Response {
55
207
  */
56
208
  'redirect_url': string;
57
209
  }
210
+ /**
211
+ * Image description
212
+ * @export
213
+ * @interface Image
214
+ */
215
+ export interface Image {
216
+ /**
217
+ * Unique object identifier
218
+ * @type {string}
219
+ * @memberof Image
220
+ */
221
+ 'id'?: string;
222
+ /**
223
+ *
224
+ * @type {string}
225
+ * @memberof Image
226
+ */
227
+ 'src'?: string;
228
+ /**
229
+ *
230
+ * @type {string}
231
+ * @memberof Image
232
+ */
233
+ 'type'?: string | null;
234
+ /**
235
+ *
236
+ * @type {string}
237
+ * @memberof Image
238
+ */
239
+ 'alt'?: string;
240
+ /**
241
+ * List of variant Ids
242
+ * @type {Array<string>}
243
+ * @memberof Image
244
+ */
245
+ 'variantIds'?: Array<string>;
246
+ /**
247
+ *
248
+ * @type {number}
249
+ * @memberof Image
250
+ */
251
+ 'sortOrder'?: number;
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof Image
256
+ */
257
+ 'createdAt'?: string;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof Image
262
+ */
263
+ 'updatedAt'?: string;
264
+ }
58
265
  /**
59
266
  *
60
267
  * @export
@@ -105,6 +312,25 @@ export interface MenuItem {
105
312
  */
106
313
  'submenu': Array<SubmenuInner>;
107
314
  }
315
+ /**
316
+ * Key/value pairs that can be used to store additional information on the product
317
+ * @export
318
+ * @interface MetaField
319
+ */
320
+ export interface MetaField {
321
+ /**
322
+ * The name or key of the property
323
+ * @type {string}
324
+ * @memberof MetaField
325
+ */
326
+ 'name'?: string;
327
+ /**
328
+ * The string value of the property
329
+ * @type {string}
330
+ * @memberof MetaField
331
+ */
332
+ 'value'?: string;
333
+ }
108
334
  /**
109
335
  *
110
336
  * @export
@@ -138,6 +364,278 @@ export const PaymentAccountMethodEnum = {
138
364
 
139
365
  export type PaymentAccountMethodEnum = typeof PaymentAccountMethodEnum[keyof typeof PaymentAccountMethodEnum];
140
366
 
367
+ /**
368
+ * Standard price definition that defines the amount, tax rate and currency.
369
+ * @export
370
+ * @interface Price
371
+ */
372
+ export interface Price {
373
+ /**
374
+ * Price including tax in the specified currency.
375
+ * @type {number}
376
+ * @memberof Price
377
+ */
378
+ 'amount'?: number;
379
+ /**
380
+ * Currency code for the currency the price is valued in.
381
+ * @type {string}
382
+ * @memberof Price
383
+ */
384
+ 'currencyCode'?: PriceCurrencyCodeEnum;
385
+ }
386
+
387
+ export const PriceCurrencyCodeEnum = {
388
+ Gbp: 'GBP'
389
+ } as const;
390
+
391
+ export type PriceCurrencyCodeEnum = typeof PriceCurrencyCodeEnum[keyof typeof PriceCurrencyCodeEnum];
392
+
393
+ /**
394
+ *
395
+ * @export
396
+ * @interface Product
397
+ */
398
+ export interface Product {
399
+ /**
400
+ * Unique object identifier
401
+ * @type {string}
402
+ * @memberof Product
403
+ */
404
+ 'id'?: string;
405
+ /**
406
+ * A reference to the resource location
407
+ * @type {string}
408
+ * @memberof Product
409
+ */
410
+ 'ref'?: string;
411
+ /**
412
+ *
413
+ * @type {string}
414
+ * @memberof Product
415
+ */
416
+ 'title': string;
417
+ /**
418
+ *
419
+ * @type {string}
420
+ * @memberof Product
421
+ */
422
+ 'description': string;
423
+ /**
424
+ *
425
+ * @type {string}
426
+ * @memberof Product
427
+ */
428
+ 'slug'?: string;
429
+ /**
430
+ *
431
+ * @type {boolean}
432
+ * @memberof Product
433
+ */
434
+ 'enabled'?: boolean;
435
+ /**
436
+ *
437
+ * @type {SeoMetadata}
438
+ * @memberof Product
439
+ */
440
+ 'seoMetadata'?: SeoMetadata;
441
+ /**
442
+ *
443
+ * @type {Array<string>}
444
+ * @memberof Product
445
+ */
446
+ 'tags'?: Array<string>;
447
+ /**
448
+ *
449
+ * @type {Array<string>}
450
+ * @memberof Product
451
+ */
452
+ 'internalTags'?: Array<string>;
453
+ /**
454
+ *
455
+ * @type {string}
456
+ * @memberof Product
457
+ */
458
+ 'createdAt'?: string;
459
+ /**
460
+ *
461
+ * @type {string}
462
+ * @memberof Product
463
+ */
464
+ 'updatedAt'?: string;
465
+ /**
466
+ *
467
+ * @type {string}
468
+ * @memberof Product
469
+ */
470
+ 'publishedAt'?: string;
471
+ /**
472
+ * Images
473
+ * @type {Array<Image>}
474
+ * @memberof Product
475
+ */
476
+ 'images'?: Array<Image>;
477
+ /**
478
+ * Videos
479
+ * @type {Array<Video>}
480
+ * @memberof Product
481
+ */
482
+ 'videos'?: Array<Video>;
483
+ /**
484
+ * Variants
485
+ * @type {Array<Variant>}
486
+ * @memberof Product
487
+ */
488
+ 'variants'?: Array<Variant>;
489
+ /**
490
+ * Additional files attached to the product.
491
+ * @type {Array<ProductAdditionalFilesInner>}
492
+ * @memberof Product
493
+ */
494
+ 'additionalFiles'?: Array<ProductAdditionalFilesInner>;
495
+ /**
496
+ * List of application sets associated with this product
497
+ * @type {Array<ProductApplicationSetsInner>}
498
+ * @memberof Product
499
+ */
500
+ 'applicationSets'?: Array<ProductApplicationSetsInner>;
501
+ /**
502
+ * The average review rating. This field is only present if included in the fields query parameter
503
+ * @type {number}
504
+ * @memberof Product
505
+ */
506
+ 'reviewScore'?: number | null;
507
+ /**
508
+ * A count of reviews. This field is only present if included in the fields query parameter
509
+ * @type {number}
510
+ * @memberof Product
511
+ */
512
+ 'reviewCount'?: number;
513
+ /**
514
+ *
515
+ * @type {string}
516
+ * @memberof Product
517
+ */
518
+ 'sku'?: string;
519
+ /**
520
+ * A count of sales. This field is only present if included in the fields query parameter
521
+ * @type {number}
522
+ * @memberof Product
523
+ */
524
+ 'sales'?: number;
525
+ /**
526
+ *
527
+ * @type {boolean}
528
+ * @memberof Product
529
+ */
530
+ 'includeInDataFeeds'?: boolean;
531
+ /**
532
+ *
533
+ * @type {ProductWarehouseProduct}
534
+ * @memberof Product
535
+ */
536
+ 'warehouseProduct'?: ProductWarehouseProduct;
537
+ /**
538
+ *
539
+ * @type {Array<MetaField>}
540
+ * @memberof Product
541
+ */
542
+ 'metafields'?: Array<MetaField>;
543
+ }
544
+ /**
545
+ *
546
+ * @export
547
+ * @interface ProductAdditionalFilesInner
548
+ */
549
+ export interface ProductAdditionalFilesInner {
550
+ /**
551
+ * Unique object identifier
552
+ * @type {string}
553
+ * @memberof ProductAdditionalFilesInner
554
+ */
555
+ 'id'?: string;
556
+ /**
557
+ * File URL
558
+ * @type {string}
559
+ * @memberof ProductAdditionalFilesInner
560
+ */
561
+ 'src'?: string;
562
+ }
563
+ /**
564
+ *
565
+ * @export
566
+ * @interface ProductApplicationSetsInner
567
+ */
568
+ export interface ProductApplicationSetsInner {
569
+ /**
570
+ * Unique object identifier
571
+ * @type {string}
572
+ * @memberof ProductApplicationSetsInner
573
+ */
574
+ 'id'?: string;
575
+ /**
576
+ * A reference to the resource location
577
+ * @type {string}
578
+ * @memberof ProductApplicationSetsInner
579
+ */
580
+ 'ref'?: string;
581
+ /**
582
+ * Name of the application set
583
+ * @type {string}
584
+ * @memberof ProductApplicationSetsInner
585
+ */
586
+ 'name'?: string;
587
+ }
588
+ /**
589
+ *
590
+ * @export
591
+ * @interface ProductWarehouseProduct
592
+ */
593
+ export interface ProductWarehouseProduct {
594
+ /**
595
+ * Unique object identifier
596
+ * @type {string}
597
+ * @memberof ProductWarehouseProduct
598
+ */
599
+ 'id'?: string;
600
+ /**
601
+ * Reference to the product in the Global Fulfillment Network (GFN) catalog that will be used as a base for this product. A list of available products for the given project can be obtained from the GFN Catalog API.
602
+ * @type {string}
603
+ * @memberof ProductWarehouseProduct
604
+ */
605
+ 'gfnProductRef'?: string;
606
+ }
607
+ /**
608
+ * SEO metadata for the product
609
+ * @export
610
+ * @interface SeoMetadata
611
+ */
612
+ export interface SeoMetadata {
613
+ /**
614
+ * Meta title for the product. This appears in search engine results and social shares. If not provided, the product title will be used.
615
+ * @type {string}
616
+ * @memberof SeoMetadata
617
+ */
618
+ 'title'?: string;
619
+ /**
620
+ * Meta description for the product. This appears in search engine results and social shares. If not provided, the product description will be used.
621
+ * @type {string}
622
+ * @memberof SeoMetadata
623
+ */
624
+ 'description'?: string | null;
625
+ }
626
+ /**
627
+ *
628
+ * @export
629
+ * @interface Stock
630
+ */
631
+ export interface Stock {
632
+ /**
633
+ *
634
+ * @type {number}
635
+ * @memberof Stock
636
+ */
637
+ 'level'?: number;
638
+ }
141
639
  /**
142
640
  *
143
641
  * @export
@@ -324,6 +822,177 @@ export interface UpdateMenuRequestSubmenuItem {
324
822
  */
325
823
  'order': number;
326
824
  }
825
+ /**
826
+ *
827
+ * @export
828
+ * @interface Variant
829
+ */
830
+ export interface Variant {
831
+ /**
832
+ * Unique object identifier
833
+ * @type {string}
834
+ * @memberof Variant
835
+ */
836
+ 'id'?: string;
837
+ /**
838
+ * 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.
839
+ * @type {Array<Attribute>}
840
+ * @memberof Variant
841
+ */
842
+ 'attributes': Array<Attribute>;
843
+ /**
844
+ *
845
+ * @type {string}
846
+ * @memberof Variant
847
+ */
848
+ 'sku': string;
849
+ /**
850
+ * A reference to the resource location
851
+ * @type {string}
852
+ * @memberof Variant
853
+ */
854
+ 'ref'?: string;
855
+ /**
856
+ *
857
+ * @type {VariantProduct}
858
+ * @memberof Variant
859
+ */
860
+ 'product'?: VariantProduct;
861
+ /**
862
+ *
863
+ * @type {number}
864
+ * @memberof Variant
865
+ */
866
+ 'sortOrder'?: number;
867
+ /**
868
+ *
869
+ * @type {Price}
870
+ * @memberof Variant
871
+ */
872
+ 'retailPrice'?: Price;
873
+ /**
874
+ *
875
+ * @type {Price}
876
+ * @memberof Variant
877
+ */
878
+ 'salePrice'?: Price;
879
+ /**
880
+ *
881
+ * @type {Price}
882
+ * @memberof Variant
883
+ */
884
+ 'price'?: Price;
885
+ /**
886
+ *
887
+ * @type {Stock}
888
+ * @memberof Variant
889
+ */
890
+ 'stock'?: Stock;
891
+ /**
892
+ *
893
+ * @type {string}
894
+ * @memberof Variant
895
+ */
896
+ 'createdAt'?: string;
897
+ /**
898
+ *
899
+ * @type {string}
900
+ * @memberof Variant
901
+ */
902
+ 'updatedAt'?: string;
903
+ /**
904
+ *
905
+ * @type {string}
906
+ * @memberof Variant
907
+ */
908
+ 'publishedAt'?: string;
909
+ /**
910
+ * Images
911
+ * @type {Array<Image>}
912
+ * @memberof Variant
913
+ */
914
+ 'images'?: Array<Image>;
915
+ /**
916
+ * Design applications. If not provided, the product will be blank.
917
+ * @type {Array<Application>}
918
+ * @memberof Variant
919
+ */
920
+ 'applications'?: Array<Application>;
921
+ /**
922
+ * Global Trade Item Number
923
+ * @type {string}
924
+ * @memberof Variant
925
+ */
926
+ 'gtin'?: string | null;
927
+ /**
928
+ *
929
+ * @type {Array<MetaField>}
930
+ * @memberof Variant
931
+ */
932
+ 'metafields'?: Array<MetaField>;
933
+ }
934
+ /**
935
+ *
936
+ * @export
937
+ * @interface VariantProduct
938
+ */
939
+ export interface VariantProduct {
940
+ /**
941
+ * Unique object identifier
942
+ * @type {string}
943
+ * @memberof VariantProduct
944
+ */
945
+ 'id'?: string;
946
+ /**
947
+ * A reference to the resource location
948
+ * @type {string}
949
+ * @memberof VariantProduct
950
+ */
951
+ 'ref'?: string;
952
+ }
953
+ /**
954
+ * Video object
955
+ * @export
956
+ * @interface Video
957
+ */
958
+ export interface Video {
959
+ /**
960
+ * Unique object identifier
961
+ * @type {string}
962
+ * @memberof Video
963
+ */
964
+ 'id'?: string;
965
+ /**
966
+ *
967
+ * @type {string}
968
+ * @memberof Video
969
+ */
970
+ 'src'?: string;
971
+ /**
972
+ *
973
+ * @type {string}
974
+ * @memberof Video
975
+ */
976
+ 'alt'?: string;
977
+ /**
978
+ *
979
+ * @type {number}
980
+ * @memberof Video
981
+ */
982
+ 'sortOrder'?: number;
983
+ /**
984
+ *
985
+ * @type {string}
986
+ * @memberof Video
987
+ */
988
+ 'createdAt'?: string;
989
+ /**
990
+ *
991
+ * @type {string}
992
+ * @memberof Video
993
+ */
994
+ 'updatedAt'?: string;
995
+ }
327
996
 
328
997
  /**
329
998
  * CrossSellApi - axios parameter creator
@@ -336,11 +1005,11 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
336
1005
  * @summary Attach cross-sell products
337
1006
  * @param {string} project What project it is
338
1007
  * @param {string} productId Product\&#39;s unique identifier
339
- * @param {Array<string>} [requestBody]
1008
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
340
1009
  * @param {*} [options] Override http request option.
341
1010
  * @throws {RequiredError}
342
1011
  */
343
- attachCrossSellProducts: async (project: string, productId: string, requestBody?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1012
+ attachCrossSellProducts: async (project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
344
1013
  // verify required parameter 'project' is not null or undefined
345
1014
  assertParamExists('attachCrossSellProducts', 'project', project)
346
1015
  // verify required parameter 'productId' is not null or undefined
@@ -354,7 +1023,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
354
1023
  baseOptions = configuration.baseOptions;
355
1024
  }
356
1025
 
357
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1026
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
358
1027
  const localVarHeaderParameter = {} as any;
359
1028
  const localVarQueryParameter = {} as any;
360
1029
 
@@ -376,7 +1045,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration?: Configura
376
1045
  setSearchParams(localVarUrlObj, localVarQueryParameter);
377
1046
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
378
1047
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
379
- localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
1048
+ localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration)
380
1049
 
381
1050
  return {
382
1051
  url: toPathString(localVarUrlObj),
@@ -446,12 +1115,12 @@ export const CrossSellApiFp = function(configuration?: Configuration) {
446
1115
  * @summary Attach cross-sell products
447
1116
  * @param {string} project What project it is
448
1117
  * @param {string} productId Product\&#39;s unique identifier
449
- * @param {Array<string>} [requestBody]
1118
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
450
1119
  * @param {*} [options] Override http request option.
451
1120
  * @throws {RequiredError}
452
1121
  */
453
- async attachCrossSellProducts(project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
454
- const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, requestBody, options);
1122
+ async attachCrossSellProducts(project: string, productId: string, attachCrossSellProductsRequest?: AttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
1123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
455
1124
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
456
1125
  const localVarOperationServerBasePath = operationServerMap['CrossSellApi.attachCrossSellProducts']?.[localVarOperationServerIndex]?.url;
457
1126
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -464,7 +1133,7 @@ export const CrossSellApiFp = function(configuration?: Configuration) {
464
1133
  * @param {*} [options] Override http request option.
465
1134
  * @throws {RequiredError}
466
1135
  */
467
- async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
1136
+ async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
468
1137
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
469
1138
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
470
1139
  const localVarOperationServerBasePath = operationServerMap['CrossSellApi.getCrossSellProducts']?.[localVarOperationServerIndex]?.url;
@@ -487,8 +1156,8 @@ export const CrossSellApiFactory = function (configuration?: Configuration, base
487
1156
  * @param {*} [options] Override http request option.
488
1157
  * @throws {RequiredError}
489
1158
  */
490
- attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
491
- return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(axios, basePath));
1159
+ attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
1160
+ return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
492
1161
  },
493
1162
  /**
494
1163
  *
@@ -497,7 +1166,7 @@ export const CrossSellApiFactory = function (configuration?: Configuration, base
497
1166
  * @param {*} [options] Override http request option.
498
1167
  * @throws {RequiredError}
499
1168
  */
500
- getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
1169
+ getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Product>> {
501
1170
  return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
502
1171
  },
503
1172
  };
@@ -525,10 +1194,10 @@ export interface CrossSellApiAttachCrossSellProductsRequest {
525
1194
 
526
1195
  /**
527
1196
  *
528
- * @type {Array<string>}
1197
+ * @type {AttachCrossSellProductsRequest}
529
1198
  * @memberof CrossSellApiAttachCrossSellProducts
530
1199
  */
531
- readonly requestBody?: Array<string>
1200
+ readonly attachCrossSellProductsRequest?: AttachCrossSellProductsRequest
532
1201
  }
533
1202
 
534
1203
  /**
@@ -568,7 +1237,7 @@ export class CrossSellApi extends BaseAPI {
568
1237
  * @memberof CrossSellApi
569
1238
  */
570
1239
  public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
571
- return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
1240
+ return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
572
1241
  }
573
1242
 
574
1243
  /**