@teemill/platform 0.43.0 → 0.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.43.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -107,6 +107,30 @@ export interface ApiError {
107
107
  'code'?: string;
108
108
  'message': string;
109
109
  }
110
+ export interface Application {
111
+ /**
112
+ * Unique object identifier
113
+ */
114
+ 'id'?: string;
115
+ /**
116
+ * Unique object identifier
117
+ */
118
+ 'styleId'?: string;
119
+ 'placement'?: ApplicationPlacementEnum;
120
+ 'mockup'?: string;
121
+ 'design'?: string;
122
+ 'printArea'?: PrintArea;
123
+ 'files'?: Array<AttachedFile>;
124
+ }
125
+ export declare const ApplicationPlacementEnum: {
126
+ readonly Front: "front";
127
+ readonly Back: "back";
128
+ };
129
+ export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
130
+ export interface AttachedFile {
131
+ 'url'?: string;
132
+ 'name'?: string;
133
+ }
110
134
  export interface AuthorizeStripe200Response {
111
135
  /**
112
136
  * The URL to redirect to
@@ -516,6 +540,7 @@ export interface Order {
516
540
  */
517
541
  'ref'?: string;
518
542
  'status'?: OrderStatus;
543
+ 'approvalItemId'?: string | null;
519
544
  'contactInformation': ContactInformation;
520
545
  'shippingAddress': Address;
521
546
  'billingAddress'?: Address;
@@ -611,6 +636,7 @@ export declare const OrderStatus: {
611
636
  readonly Processing: "processing";
612
637
  readonly Complete: "complete";
613
638
  readonly Refunded: "refunded";
639
+ readonly Moderation: "moderation";
614
640
  };
615
641
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
616
642
  export interface OrderTracking {
@@ -736,6 +762,13 @@ export interface Price {
736
762
  */
737
763
  'currencyCode'?: string;
738
764
  }
765
+ /**
766
+ * Print area dimensions in mm
767
+ */
768
+ export interface PrintArea {
769
+ 'width'?: number;
770
+ 'height'?: number;
771
+ }
739
772
  export interface Project {
740
773
  'id': string;
741
774
  /**
@@ -920,6 +953,18 @@ export interface UpdateFulfillmentRequest {
920
953
  */
921
954
  'fulfillerId'?: string;
922
955
  }
956
+ export interface UpdateModerationItemRequest {
957
+ 'judgement': UpdateModerationItemRequestJudgementEnum;
958
+ 'denialReason'?: string;
959
+ }
960
+ export declare const UpdateModerationItemRequestJudgementEnum: {
961
+ readonly Approved: "approved";
962
+ readonly Denied: "denied";
963
+ };
964
+ export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
965
+ export interface UpdatePlatformFulfillmentStyleApplicationRequest {
966
+ 'design'?: string;
967
+ }
923
968
  export interface UpdatePlatformRequest {
924
969
  'logos'?: Array<PlatformLogo>;
925
970
  'favicon'?: string;
@@ -1865,6 +1910,76 @@ export declare class EnquiriesApi extends BaseAPI {
1865
1910
  */
1866
1911
  updateCustomerEnquiry(requestParameters: EnquiriesApiUpdateCustomerEnquiryRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Enquiry, any, {}>>;
1867
1912
  }
1913
+ /**
1914
+ * ModerationApi - axios parameter creator
1915
+ */
1916
+ export declare const ModerationApiAxiosParamCreator: (configuration?: Configuration) => {
1917
+ /**
1918
+ * Update a moderation item
1919
+ * @summary Update a moderation item
1920
+ * @param {string} project Project unique identifier
1921
+ * @param {string} moderationItemId The moderation item identifier
1922
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ */
1926
+ updateModerationItem: (project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1927
+ };
1928
+ /**
1929
+ * ModerationApi - functional programming interface
1930
+ */
1931
+ export declare const ModerationApiFp: (configuration?: Configuration) => {
1932
+ /**
1933
+ * Update a moderation item
1934
+ * @summary Update a moderation item
1935
+ * @param {string} project Project unique identifier
1936
+ * @param {string} moderationItemId The moderation item identifier
1937
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ */
1941
+ updateModerationItem(project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1942
+ };
1943
+ /**
1944
+ * ModerationApi - factory interface
1945
+ */
1946
+ export declare const ModerationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1947
+ /**
1948
+ * Update a moderation item
1949
+ * @summary Update a moderation item
1950
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1955
+ };
1956
+ /**
1957
+ * Request parameters for updateModerationItem operation in ModerationApi.
1958
+ */
1959
+ export interface ModerationApiUpdateModerationItemRequest {
1960
+ /**
1961
+ * Project unique identifier
1962
+ */
1963
+ readonly project: string;
1964
+ /**
1965
+ * The moderation item identifier
1966
+ */
1967
+ readonly moderationItemId: string;
1968
+ readonly updateModerationItemRequest?: UpdateModerationItemRequest;
1969
+ }
1970
+ /**
1971
+ * ModerationApi - object-oriented interface
1972
+ */
1973
+ export declare class ModerationApi extends BaseAPI {
1974
+ /**
1975
+ * Update a moderation item
1976
+ * @summary Update a moderation item
1977
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1982
+ }
1868
1983
  /**
1869
1984
  * OrdersApi - axios parameter creator
1870
1985
  */
@@ -2023,6 +2138,18 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
2023
2138
  * @throws {RequiredError}
2024
2139
  */
2025
2140
  updateFulfillment: (project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2141
+ /**
2142
+ * Update a fulfillment style application for a fulfillment for a platform order
2143
+ * @summary Update platform fulfillment style application
2144
+ * @param {string} project Project unique identifier
2145
+ * @param {string} platformId The platform identifier
2146
+ * @param {string} styleId Unique identifier of a fulfillment style
2147
+ * @param {string} applicationId Unique identifier of a fulfillment style application
2148
+ * @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ */
2152
+ updatePlatformFulfillmentStyleApplication: (project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2026
2153
  };
2027
2154
  /**
2028
2155
  * OrdersApi - functional programming interface
@@ -2182,6 +2309,18 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
2182
2309
  * @throws {RequiredError}
2183
2310
  */
2184
2311
  updateFulfillment(project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Fulfillment>>;
2312
+ /**
2313
+ * Update a fulfillment style application for a fulfillment for a platform order
2314
+ * @summary Update platform fulfillment style application
2315
+ * @param {string} project Project unique identifier
2316
+ * @param {string} platformId The platform identifier
2317
+ * @param {string} styleId Unique identifier of a fulfillment style
2318
+ * @param {string} applicationId Unique identifier of a fulfillment style application
2319
+ * @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
2320
+ * @param {*} [options] Override http request option.
2321
+ * @throws {RequiredError}
2322
+ */
2323
+ updatePlatformFulfillmentStyleApplication(project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
2185
2324
  };
2186
2325
  /**
2187
2326
  * OrdersApi - factory interface
@@ -2299,6 +2438,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
2299
2438
  * @throws {RequiredError}
2300
2439
  */
2301
2440
  updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment>;
2441
+ /**
2442
+ * Update a fulfillment style application for a fulfillment for a platform order
2443
+ * @summary Update platform fulfillment style application
2444
+ * @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
2302
2449
  };
2303
2450
  /**
2304
2451
  * Request parameters for amendOrder operation in OrdersApi.
@@ -2591,6 +2738,28 @@ export interface OrdersApiUpdateFulfillmentRequest {
2591
2738
  readonly fulfillmentId: string;
2592
2739
  readonly updateFulfillmentRequest: UpdateFulfillmentRequest;
2593
2740
  }
2741
+ /**
2742
+ * Request parameters for updatePlatformFulfillmentStyleApplication operation in OrdersApi.
2743
+ */
2744
+ export interface OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest {
2745
+ /**
2746
+ * Project unique identifier
2747
+ */
2748
+ readonly project: string;
2749
+ /**
2750
+ * The platform identifier
2751
+ */
2752
+ readonly platformId: string;
2753
+ /**
2754
+ * Unique identifier of a fulfillment style
2755
+ */
2756
+ readonly styleId: string;
2757
+ /**
2758
+ * Unique identifier of a fulfillment style application
2759
+ */
2760
+ readonly applicationId: string;
2761
+ readonly updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest;
2762
+ }
2594
2763
  /**
2595
2764
  * OrdersApi - object-oriented interface
2596
2765
  */
@@ -2707,6 +2876,14 @@ export declare class OrdersApi extends BaseAPI {
2707
2876
  * @throws {RequiredError}
2708
2877
  */
2709
2878
  updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Fulfillment, any, {}>>;
2879
+ /**
2880
+ * Update a fulfillment style application for a fulfillment for a platform order
2881
+ * @summary Update platform fulfillment style application
2882
+ * @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
2883
+ * @param {*} [options] Override http request option.
2884
+ * @throws {RequiredError}
2885
+ */
2886
+ updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any, {}>>;
2710
2887
  }
2711
2888
  export declare const ExportOrdersDateFilterTypeEnum: {
2712
2889
  readonly CreatedAt: "createdAt";
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.43.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
26
- exports.TermsApi = void 0;
25
+ exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ModerationApi = exports.ModerationApiFactory = exports.ModerationApiFp = exports.ModerationApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.UpdateModerationItemRequestJudgementEnum = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.ApplicationPlacementEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
26
+ exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -38,6 +38,10 @@ exports.AmendmentLogAmendmentTypeEnum = {
38
38
  Refund: 'refund',
39
39
  Exchange: 'exchange'
40
40
  };
41
+ exports.ApplicationPlacementEnum = {
42
+ Front: 'front',
43
+ Back: 'back'
44
+ };
41
45
  exports.CustomsInformationPreRegistrationTypeEnum = {
42
46
  Ioss: 'IOSS'
43
47
  };
@@ -51,7 +55,8 @@ exports.OrderStatus = {
51
55
  Paid: 'paid',
52
56
  Processing: 'processing',
53
57
  Complete: 'complete',
54
- Refunded: 'refunded'
58
+ Refunded: 'refunded',
59
+ Moderation: 'moderation'
55
60
  };
56
61
  exports.PaymentAccountMethodEnum = {
57
62
  Stripe: 'stripe'
@@ -71,6 +76,10 @@ exports.ReturnOrderRequestReturnsInnerActionEnum = {
71
76
  Refund: 'refund',
72
77
  Exchange: 'exchange'
73
78
  };
79
+ exports.UpdateModerationItemRequestJudgementEnum = {
80
+ Approved: 'approved',
81
+ Denied: 'denied'
82
+ };
74
83
  /**
75
84
  * CustomersApi - axios parameter creator
76
85
  */
@@ -1306,6 +1315,119 @@ class EnquiriesApi extends base_1.BaseAPI {
1306
1315
  }
1307
1316
  }
1308
1317
  exports.EnquiriesApi = EnquiriesApi;
1318
+ /**
1319
+ * ModerationApi - axios parameter creator
1320
+ */
1321
+ const ModerationApiAxiosParamCreator = function (configuration) {
1322
+ return {
1323
+ /**
1324
+ * Update a moderation item
1325
+ * @summary Update a moderation item
1326
+ * @param {string} project Project unique identifier
1327
+ * @param {string} moderationItemId The moderation item identifier
1328
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1329
+ * @param {*} [options] Override http request option.
1330
+ * @throws {RequiredError}
1331
+ */
1332
+ updateModerationItem: (project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1) => __awaiter(this, [project_1, moderationItemId_1, updateModerationItemRequest_1, ...args_1], void 0, function* (project, moderationItemId, updateModerationItemRequest, options = {}) {
1333
+ // verify required parameter 'project' is not null or undefined
1334
+ (0, common_1.assertParamExists)('updateModerationItem', 'project', project);
1335
+ // verify required parameter 'moderationItemId' is not null or undefined
1336
+ (0, common_1.assertParamExists)('updateModerationItem', 'moderationItemId', moderationItemId);
1337
+ const localVarPath = `/v1/platform/moderate/{moderationItemId}`
1338
+ .replace(`{${"moderationItemId"}}`, encodeURIComponent(String(moderationItemId)));
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1346
+ const localVarHeaderParameter = {};
1347
+ const localVarQueryParameter = {};
1348
+ // authentication session-oauth required
1349
+ // oauth required
1350
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1351
+ // authentication api-key required
1352
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1353
+ if (project !== undefined) {
1354
+ localVarQueryParameter['project'] = project;
1355
+ }
1356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1357
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1359
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateModerationItemRequest, localVarRequestOptions, configuration);
1361
+ return {
1362
+ url: (0, common_1.toPathString)(localVarUrlObj),
1363
+ options: localVarRequestOptions,
1364
+ };
1365
+ }),
1366
+ };
1367
+ };
1368
+ exports.ModerationApiAxiosParamCreator = ModerationApiAxiosParamCreator;
1369
+ /**
1370
+ * ModerationApi - functional programming interface
1371
+ */
1372
+ const ModerationApiFp = function (configuration) {
1373
+ const localVarAxiosParamCreator = (0, exports.ModerationApiAxiosParamCreator)(configuration);
1374
+ return {
1375
+ /**
1376
+ * Update a moderation item
1377
+ * @summary Update a moderation item
1378
+ * @param {string} project Project unique identifier
1379
+ * @param {string} moderationItemId The moderation item identifier
1380
+ * @param {UpdateModerationItemRequest} [updateModerationItemRequest]
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ */
1384
+ updateModerationItem(project, moderationItemId, updateModerationItemRequest, options) {
1385
+ return __awaiter(this, void 0, void 0, function* () {
1386
+ var _a, _b, _c;
1387
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateModerationItem(project, moderationItemId, updateModerationItemRequest, options);
1388
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1389
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModerationApi.updateModerationItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1390
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1391
+ });
1392
+ },
1393
+ };
1394
+ };
1395
+ exports.ModerationApiFp = ModerationApiFp;
1396
+ /**
1397
+ * ModerationApi - factory interface
1398
+ */
1399
+ const ModerationApiFactory = function (configuration, basePath, axios) {
1400
+ const localVarFp = (0, exports.ModerationApiFp)(configuration);
1401
+ return {
1402
+ /**
1403
+ * Update a moderation item
1404
+ * @summary Update a moderation item
1405
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ updateModerationItem(requestParameters, options) {
1410
+ return localVarFp.updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(axios, basePath));
1411
+ },
1412
+ };
1413
+ };
1414
+ exports.ModerationApiFactory = ModerationApiFactory;
1415
+ /**
1416
+ * ModerationApi - object-oriented interface
1417
+ */
1418
+ class ModerationApi extends base_1.BaseAPI {
1419
+ /**
1420
+ * Update a moderation item
1421
+ * @summary Update a moderation item
1422
+ * @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ updateModerationItem(requestParameters, options) {
1427
+ return (0, exports.ModerationApiFp)(this.configuration).updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(this.axios, this.basePath));
1428
+ }
1429
+ }
1430
+ exports.ModerationApi = ModerationApi;
1309
1431
  /**
1310
1432
  * OrdersApi - axios parameter creator
1311
1433
  */
@@ -1998,6 +2120,59 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1998
2120
  options: localVarRequestOptions,
1999
2121
  };
2000
2122
  }),
2123
+ /**
2124
+ * Update a fulfillment style application for a fulfillment for a platform order
2125
+ * @summary Update platform fulfillment style application
2126
+ * @param {string} project Project unique identifier
2127
+ * @param {string} platformId The platform identifier
2128
+ * @param {string} styleId Unique identifier of a fulfillment style
2129
+ * @param {string} applicationId Unique identifier of a fulfillment style application
2130
+ * @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ updatePlatformFulfillmentStyleApplication: (project_1, platformId_1, styleId_1, applicationId_1, updatePlatformFulfillmentStyleApplicationRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, styleId_1, applicationId_1, updatePlatformFulfillmentStyleApplicationRequest_1, ...args_1], void 0, function* (project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options = {}) {
2135
+ // verify required parameter 'project' is not null or undefined
2136
+ (0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'project', project);
2137
+ // verify required parameter 'platformId' is not null or undefined
2138
+ (0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'platformId', platformId);
2139
+ // verify required parameter 'styleId' is not null or undefined
2140
+ (0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'styleId', styleId);
2141
+ // verify required parameter 'applicationId' is not null or undefined
2142
+ (0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'applicationId', applicationId);
2143
+ // verify required parameter 'updatePlatformFulfillmentStyleApplicationRequest' is not null or undefined
2144
+ (0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'updatePlatformFulfillmentStyleApplicationRequest', updatePlatformFulfillmentStyleApplicationRequest);
2145
+ const localVarPath = `/v1/platform/{platformId}/styles/{styleId}/applications/{applicationId}`
2146
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
2147
+ .replace(`{${"styleId"}}`, encodeURIComponent(String(styleId)))
2148
+ .replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
2149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2150
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2151
+ let baseOptions;
2152
+ if (configuration) {
2153
+ baseOptions = configuration.baseOptions;
2154
+ }
2155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2156
+ const localVarHeaderParameter = {};
2157
+ const localVarQueryParameter = {};
2158
+ // authentication session-oauth required
2159
+ // oauth required
2160
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2161
+ // authentication api-key required
2162
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2163
+ if (project !== undefined) {
2164
+ localVarQueryParameter['project'] = project;
2165
+ }
2166
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2167
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2169
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2170
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlatformFulfillmentStyleApplicationRequest, localVarRequestOptions, configuration);
2171
+ return {
2172
+ url: (0, common_1.toPathString)(localVarUrlObj),
2173
+ options: localVarRequestOptions,
2174
+ };
2175
+ }),
2001
2176
  };
2002
2177
  };
2003
2178
  exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
@@ -2273,6 +2448,26 @@ const OrdersApiFp = function (configuration) {
2273
2448
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2274
2449
  });
2275
2450
  },
2451
+ /**
2452
+ * Update a fulfillment style application for a fulfillment for a platform order
2453
+ * @summary Update platform fulfillment style application
2454
+ * @param {string} project Project unique identifier
2455
+ * @param {string} platformId The platform identifier
2456
+ * @param {string} styleId Unique identifier of a fulfillment style
2457
+ * @param {string} applicationId Unique identifier of a fulfillment style application
2458
+ * @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
2459
+ * @param {*} [options] Override http request option.
2460
+ * @throws {RequiredError}
2461
+ */
2462
+ updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options) {
2463
+ return __awaiter(this, void 0, void 0, function* () {
2464
+ var _a, _b, _c;
2465
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options);
2466
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2467
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.updatePlatformFulfillmentStyleApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2468
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2469
+ });
2470
+ },
2276
2471
  };
2277
2472
  };
2278
2473
  exports.OrdersApiFp = OrdersApiFp;
@@ -2422,6 +2617,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2422
2617
  updateFulfillment(requestParameters, options) {
2423
2618
  return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
2424
2619
  },
2620
+ /**
2621
+ * Update a fulfillment style application for a fulfillment for a platform order
2622
+ * @summary Update platform fulfillment style application
2623
+ * @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
2624
+ * @param {*} [options] Override http request option.
2625
+ * @throws {RequiredError}
2626
+ */
2627
+ updatePlatformFulfillmentStyleApplication(requestParameters, options) {
2628
+ return localVarFp.updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(axios, basePath));
2629
+ },
2425
2630
  };
2426
2631
  };
2427
2632
  exports.OrdersApiFactory = OrdersApiFactory;
@@ -2569,6 +2774,16 @@ class OrdersApi extends base_1.BaseAPI {
2569
2774
  updateFulfillment(requestParameters, options) {
2570
2775
  return (0, exports.OrdersApiFp)(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
2571
2776
  }
2777
+ /**
2778
+ * Update a fulfillment style application for a fulfillment for a platform order
2779
+ * @summary Update platform fulfillment style application
2780
+ * @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
2781
+ * @param {*} [options] Override http request option.
2782
+ * @throws {RequiredError}
2783
+ */
2784
+ updatePlatformFulfillmentStyleApplication(requestParameters, options) {
2785
+ return (0, exports.OrdersApiFp)(this.configuration).updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(this.axios, this.basePath));
2786
+ }
2572
2787
  }
2573
2788
  exports.OrdersApi = OrdersApi;
2574
2789
  exports.ExportOrdersDateFilterTypeEnum = {
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.43.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.43.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.43.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.43.0
8
+ * The version of the OpenAPI document: 0.45.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,18 +2,30 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.43.0
5
+ * The version of the OpenAPI document: 0.45.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -39,6 +51,17 @@ export declare class Configuration {
39
51
  * @param scopes oauth2 scope
40
52
  */
41
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
+ /**
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
62
+ * @memberof Configuration
63
+ */
64
+ awsv4?: AWSv4Configuration;
42
65
  /**
43
66
  * override base path
44
67
  */
@@ -72,3 +95,4 @@ export declare class Configuration {
72
95
  */
73
96
  isJsonMime(mime: string): boolean;
74
97
  }
98
+ export {};
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
- /* eslint-disable */
4
3
  /**
5
4
  * Platform API
6
5
  * Manage Your podOS platform
7
6
  *
8
- * The version of the OpenAPI document: 0.43.0
7
+ * The version of the OpenAPI document: 0.45.2
9
8
  *
10
9
  *
11
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +20,7 @@ class Configuration {
21
20
  this.username = param.username;
22
21
  this.password = param.password;
23
22
  this.accessToken = param.accessToken;
23
+ this.awsv4 = param.awsv4;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
26
  this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });