@teemill/platform 0.43.0 → 0.44.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 +7 -2
- package/api.ts +165 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +25 -2
- package/dist/api.d.ts +97 -1
- package/dist/api.js +100 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +25 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +97 -1
- package/dist/esm/api.js +98 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +25 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Application.md +32 -0
- package/docs/AttachedFile.md +22 -0
- package/docs/OrdersApi.md +70 -0
- package/docs/PrintArea.md +23 -0
- package/docs/UpdatePlatformFulfillmentStyleApplicationRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.44.0
|
|
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.
|
|
26
|
-
exports.TermsApi = void 0;
|
|
25
|
+
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.ApplicationPlacementEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
26
|
+
exports.TermsApi = exports.TermsApiFactory = 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
|
};
|
|
@@ -1998,6 +2002,59 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1998
2002
|
options: localVarRequestOptions,
|
|
1999
2003
|
};
|
|
2000
2004
|
}),
|
|
2005
|
+
/**
|
|
2006
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2007
|
+
* @summary Update platform fulfillment style application
|
|
2008
|
+
* @param {string} project Project unique identifier
|
|
2009
|
+
* @param {string} platformId The platform identifier
|
|
2010
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
2011
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
2012
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
*/
|
|
2016
|
+
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 = {}) {
|
|
2017
|
+
// verify required parameter 'project' is not null or undefined
|
|
2018
|
+
(0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'project', project);
|
|
2019
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2020
|
+
(0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'platformId', platformId);
|
|
2021
|
+
// verify required parameter 'styleId' is not null or undefined
|
|
2022
|
+
(0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'styleId', styleId);
|
|
2023
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
2024
|
+
(0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'applicationId', applicationId);
|
|
2025
|
+
// verify required parameter 'updatePlatformFulfillmentStyleApplicationRequest' is not null or undefined
|
|
2026
|
+
(0, common_1.assertParamExists)('updatePlatformFulfillmentStyleApplication', 'updatePlatformFulfillmentStyleApplicationRequest', updatePlatformFulfillmentStyleApplicationRequest);
|
|
2027
|
+
const localVarPath = `/v1/platform/{platformId}/styles/{styleId}/applications/{applicationId}`
|
|
2028
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2029
|
+
.replace(`{${"styleId"}}`, encodeURIComponent(String(styleId)))
|
|
2030
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
2031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2032
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2033
|
+
let baseOptions;
|
|
2034
|
+
if (configuration) {
|
|
2035
|
+
baseOptions = configuration.baseOptions;
|
|
2036
|
+
}
|
|
2037
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2038
|
+
const localVarHeaderParameter = {};
|
|
2039
|
+
const localVarQueryParameter = {};
|
|
2040
|
+
// authentication session-oauth required
|
|
2041
|
+
// oauth required
|
|
2042
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2043
|
+
// authentication api-key required
|
|
2044
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2045
|
+
if (project !== undefined) {
|
|
2046
|
+
localVarQueryParameter['project'] = project;
|
|
2047
|
+
}
|
|
2048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2049
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2050
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2051
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2052
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePlatformFulfillmentStyleApplicationRequest, localVarRequestOptions, configuration);
|
|
2053
|
+
return {
|
|
2054
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2055
|
+
options: localVarRequestOptions,
|
|
2056
|
+
};
|
|
2057
|
+
}),
|
|
2001
2058
|
};
|
|
2002
2059
|
};
|
|
2003
2060
|
exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
|
|
@@ -2273,6 +2330,26 @@ const OrdersApiFp = function (configuration) {
|
|
|
2273
2330
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2274
2331
|
});
|
|
2275
2332
|
},
|
|
2333
|
+
/**
|
|
2334
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2335
|
+
* @summary Update platform fulfillment style application
|
|
2336
|
+
* @param {string} project Project unique identifier
|
|
2337
|
+
* @param {string} platformId The platform identifier
|
|
2338
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
2339
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
2340
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
2341
|
+
* @param {*} [options] Override http request option.
|
|
2342
|
+
* @throws {RequiredError}
|
|
2343
|
+
*/
|
|
2344
|
+
updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options) {
|
|
2345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2346
|
+
var _a, _b, _c;
|
|
2347
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options);
|
|
2348
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2349
|
+
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;
|
|
2350
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2351
|
+
});
|
|
2352
|
+
},
|
|
2276
2353
|
};
|
|
2277
2354
|
};
|
|
2278
2355
|
exports.OrdersApiFp = OrdersApiFp;
|
|
@@ -2422,6 +2499,16 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2422
2499
|
updateFulfillment(requestParameters, options) {
|
|
2423
2500
|
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
2424
2501
|
},
|
|
2502
|
+
/**
|
|
2503
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2504
|
+
* @summary Update platform fulfillment style application
|
|
2505
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2506
|
+
* @param {*} [options] Override http request option.
|
|
2507
|
+
* @throws {RequiredError}
|
|
2508
|
+
*/
|
|
2509
|
+
updatePlatformFulfillmentStyleApplication(requestParameters, options) {
|
|
2510
|
+
return localVarFp.updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(axios, basePath));
|
|
2511
|
+
},
|
|
2425
2512
|
};
|
|
2426
2513
|
};
|
|
2427
2514
|
exports.OrdersApiFactory = OrdersApiFactory;
|
|
@@ -2569,6 +2656,16 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
2569
2656
|
updateFulfillment(requestParameters, options) {
|
|
2570
2657
|
return (0, exports.OrdersApiFp)(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2571
2658
|
}
|
|
2659
|
+
/**
|
|
2660
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2661
|
+
* @summary Update platform fulfillment style application
|
|
2662
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2663
|
+
* @param {*} [options] Override http request option.
|
|
2664
|
+
* @throws {RequiredError}
|
|
2665
|
+
*/
|
|
2666
|
+
updatePlatformFulfillmentStyleApplication(requestParameters, options) {
|
|
2667
|
+
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));
|
|
2668
|
+
}
|
|
2572
2669
|
}
|
|
2573
2670
|
exports.OrdersApi = OrdersApi;
|
|
2574
2671
|
exports.ExportOrdersDateFilterTypeEnum = {
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
|
@@ -2,18 +2,30 @@
|
|
|
2
2
|
* Platform API
|
|
3
3
|
* Manage Your podOS platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.44.0
|
|
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 {};
|
package/dist/configuration.js
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.44.0
|
|
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) });
|
package/dist/esm/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.
|
|
5
|
+
* The version of the OpenAPI document: 0.44.0
|
|
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
|
|
@@ -736,6 +760,13 @@ export interface Price {
|
|
|
736
760
|
*/
|
|
737
761
|
'currencyCode'?: string;
|
|
738
762
|
}
|
|
763
|
+
/**
|
|
764
|
+
* Print area dimensions in mm
|
|
765
|
+
*/
|
|
766
|
+
export interface PrintArea {
|
|
767
|
+
'width'?: number;
|
|
768
|
+
'height'?: number;
|
|
769
|
+
}
|
|
739
770
|
export interface Project {
|
|
740
771
|
'id': string;
|
|
741
772
|
/**
|
|
@@ -920,6 +951,9 @@ export interface UpdateFulfillmentRequest {
|
|
|
920
951
|
*/
|
|
921
952
|
'fulfillerId'?: string;
|
|
922
953
|
}
|
|
954
|
+
export interface UpdatePlatformFulfillmentStyleApplicationRequest {
|
|
955
|
+
'design'?: string;
|
|
956
|
+
}
|
|
923
957
|
export interface UpdatePlatformRequest {
|
|
924
958
|
'logos'?: Array<PlatformLogo>;
|
|
925
959
|
'favicon'?: string;
|
|
@@ -2023,6 +2057,18 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2023
2057
|
* @throws {RequiredError}
|
|
2024
2058
|
*/
|
|
2025
2059
|
updateFulfillment: (project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2060
|
+
/**
|
|
2061
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2062
|
+
* @summary Update platform fulfillment style application
|
|
2063
|
+
* @param {string} project Project unique identifier
|
|
2064
|
+
* @param {string} platformId The platform identifier
|
|
2065
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
2066
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
2067
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
2068
|
+
* @param {*} [options] Override http request option.
|
|
2069
|
+
* @throws {RequiredError}
|
|
2070
|
+
*/
|
|
2071
|
+
updatePlatformFulfillmentStyleApplication: (project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2026
2072
|
};
|
|
2027
2073
|
/**
|
|
2028
2074
|
* OrdersApi - functional programming interface
|
|
@@ -2182,6 +2228,18 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
2182
2228
|
* @throws {RequiredError}
|
|
2183
2229
|
*/
|
|
2184
2230
|
updateFulfillment(project: string, platformId: string, fulfillmentId: string, updateFulfillmentRequest: UpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Fulfillment>>;
|
|
2231
|
+
/**
|
|
2232
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2233
|
+
* @summary Update platform fulfillment style application
|
|
2234
|
+
* @param {string} project Project unique identifier
|
|
2235
|
+
* @param {string} platformId The platform identifier
|
|
2236
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
2237
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
2238
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
2239
|
+
* @param {*} [options] Override http request option.
|
|
2240
|
+
* @throws {RequiredError}
|
|
2241
|
+
*/
|
|
2242
|
+
updatePlatformFulfillmentStyleApplication(project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
2185
2243
|
};
|
|
2186
2244
|
/**
|
|
2187
2245
|
* OrdersApi - factory interface
|
|
@@ -2299,6 +2357,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
2299
2357
|
* @throws {RequiredError}
|
|
2300
2358
|
*/
|
|
2301
2359
|
updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment>;
|
|
2360
|
+
/**
|
|
2361
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2362
|
+
* @summary Update platform fulfillment style application
|
|
2363
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2364
|
+
* @param {*} [options] Override http request option.
|
|
2365
|
+
* @throws {RequiredError}
|
|
2366
|
+
*/
|
|
2367
|
+
updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
|
|
2302
2368
|
};
|
|
2303
2369
|
/**
|
|
2304
2370
|
* Request parameters for amendOrder operation in OrdersApi.
|
|
@@ -2591,6 +2657,28 @@ export interface OrdersApiUpdateFulfillmentRequest {
|
|
|
2591
2657
|
readonly fulfillmentId: string;
|
|
2592
2658
|
readonly updateFulfillmentRequest: UpdateFulfillmentRequest;
|
|
2593
2659
|
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Request parameters for updatePlatformFulfillmentStyleApplication operation in OrdersApi.
|
|
2662
|
+
*/
|
|
2663
|
+
export interface OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest {
|
|
2664
|
+
/**
|
|
2665
|
+
* Project unique identifier
|
|
2666
|
+
*/
|
|
2667
|
+
readonly project: string;
|
|
2668
|
+
/**
|
|
2669
|
+
* The platform identifier
|
|
2670
|
+
*/
|
|
2671
|
+
readonly platformId: string;
|
|
2672
|
+
/**
|
|
2673
|
+
* Unique identifier of a fulfillment style
|
|
2674
|
+
*/
|
|
2675
|
+
readonly styleId: string;
|
|
2676
|
+
/**
|
|
2677
|
+
* Unique identifier of a fulfillment style application
|
|
2678
|
+
*/
|
|
2679
|
+
readonly applicationId: string;
|
|
2680
|
+
readonly updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest;
|
|
2681
|
+
}
|
|
2594
2682
|
/**
|
|
2595
2683
|
* OrdersApi - object-oriented interface
|
|
2596
2684
|
*/
|
|
@@ -2707,6 +2795,14 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
2707
2795
|
* @throws {RequiredError}
|
|
2708
2796
|
*/
|
|
2709
2797
|
updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Fulfillment, any, {}>>;
|
|
2798
|
+
/**
|
|
2799
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2800
|
+
* @summary Update platform fulfillment style application
|
|
2801
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2802
|
+
* @param {*} [options] Override http request option.
|
|
2803
|
+
* @throws {RequiredError}
|
|
2804
|
+
*/
|
|
2805
|
+
updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any, {}>>;
|
|
2710
2806
|
}
|
|
2711
2807
|
export declare const ExportOrdersDateFilterTypeEnum: {
|
|
2712
2808
|
readonly CreatedAt: "createdAt";
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.44.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,6 +34,10 @@ export const AmendmentLogAmendmentTypeEnum = {
|
|
|
34
34
|
Refund: 'refund',
|
|
35
35
|
Exchange: 'exchange'
|
|
36
36
|
};
|
|
37
|
+
export const ApplicationPlacementEnum = {
|
|
38
|
+
Front: 'front',
|
|
39
|
+
Back: 'back'
|
|
40
|
+
};
|
|
37
41
|
export const CustomsInformationPreRegistrationTypeEnum = {
|
|
38
42
|
Ioss: 'IOSS'
|
|
39
43
|
};
|
|
@@ -1982,6 +1986,59 @@ export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1982
1986
|
options: localVarRequestOptions,
|
|
1983
1987
|
};
|
|
1984
1988
|
}),
|
|
1989
|
+
/**
|
|
1990
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
1991
|
+
* @summary Update platform fulfillment style application
|
|
1992
|
+
* @param {string} project Project unique identifier
|
|
1993
|
+
* @param {string} platformId The platform identifier
|
|
1994
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
1995
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
1996
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
1997
|
+
* @param {*} [options] Override http request option.
|
|
1998
|
+
* @throws {RequiredError}
|
|
1999
|
+
*/
|
|
2000
|
+
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 = {}) {
|
|
2001
|
+
// verify required parameter 'project' is not null or undefined
|
|
2002
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'project', project);
|
|
2003
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2004
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'platformId', platformId);
|
|
2005
|
+
// verify required parameter 'styleId' is not null or undefined
|
|
2006
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'styleId', styleId);
|
|
2007
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
2008
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'applicationId', applicationId);
|
|
2009
|
+
// verify required parameter 'updatePlatformFulfillmentStyleApplicationRequest' is not null or undefined
|
|
2010
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'updatePlatformFulfillmentStyleApplicationRequest', updatePlatformFulfillmentStyleApplicationRequest);
|
|
2011
|
+
const localVarPath = `/v1/platform/{platformId}/styles/{styleId}/applications/{applicationId}`
|
|
2012
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2013
|
+
.replace(`{${"styleId"}}`, encodeURIComponent(String(styleId)))
|
|
2014
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
2015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2016
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2017
|
+
let baseOptions;
|
|
2018
|
+
if (configuration) {
|
|
2019
|
+
baseOptions = configuration.baseOptions;
|
|
2020
|
+
}
|
|
2021
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2022
|
+
const localVarHeaderParameter = {};
|
|
2023
|
+
const localVarQueryParameter = {};
|
|
2024
|
+
// authentication session-oauth required
|
|
2025
|
+
// oauth required
|
|
2026
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2027
|
+
// authentication api-key required
|
|
2028
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2029
|
+
if (project !== undefined) {
|
|
2030
|
+
localVarQueryParameter['project'] = project;
|
|
2031
|
+
}
|
|
2032
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2035
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2036
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformFulfillmentStyleApplicationRequest, localVarRequestOptions, configuration);
|
|
2037
|
+
return {
|
|
2038
|
+
url: toPathString(localVarUrlObj),
|
|
2039
|
+
options: localVarRequestOptions,
|
|
2040
|
+
};
|
|
2041
|
+
}),
|
|
1985
2042
|
};
|
|
1986
2043
|
};
|
|
1987
2044
|
/**
|
|
@@ -2256,6 +2313,26 @@ export const OrdersApiFp = function (configuration) {
|
|
|
2256
2313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2257
2314
|
});
|
|
2258
2315
|
},
|
|
2316
|
+
/**
|
|
2317
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2318
|
+
* @summary Update platform fulfillment style application
|
|
2319
|
+
* @param {string} project Project unique identifier
|
|
2320
|
+
* @param {string} platformId The platform identifier
|
|
2321
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
2322
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
2323
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
*/
|
|
2327
|
+
updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options) {
|
|
2328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2329
|
+
var _a, _b, _c;
|
|
2330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options);
|
|
2331
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2332
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.updatePlatformFulfillmentStyleApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2333
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2334
|
+
});
|
|
2335
|
+
},
|
|
2259
2336
|
};
|
|
2260
2337
|
};
|
|
2261
2338
|
/**
|
|
@@ -2404,6 +2481,16 @@ export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2404
2481
|
updateFulfillment(requestParameters, options) {
|
|
2405
2482
|
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
2406
2483
|
},
|
|
2484
|
+
/**
|
|
2485
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2486
|
+
* @summary Update platform fulfillment style application
|
|
2487
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2488
|
+
* @param {*} [options] Override http request option.
|
|
2489
|
+
* @throws {RequiredError}
|
|
2490
|
+
*/
|
|
2491
|
+
updatePlatformFulfillmentStyleApplication(requestParameters, options) {
|
|
2492
|
+
return localVarFp.updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(axios, basePath));
|
|
2493
|
+
},
|
|
2407
2494
|
};
|
|
2408
2495
|
};
|
|
2409
2496
|
/**
|
|
@@ -2550,6 +2637,16 @@ export class OrdersApi extends BaseAPI {
|
|
|
2550
2637
|
updateFulfillment(requestParameters, options) {
|
|
2551
2638
|
return OrdersApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2552
2639
|
}
|
|
2640
|
+
/**
|
|
2641
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
2642
|
+
* @summary Update platform fulfillment style application
|
|
2643
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
2644
|
+
* @param {*} [options] Override http request option.
|
|
2645
|
+
* @throws {RequiredError}
|
|
2646
|
+
*/
|
|
2647
|
+
updatePlatformFulfillmentStyleApplication(requestParameters, options) {
|
|
2648
|
+
return OrdersApiFp(this.configuration).updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2649
|
+
}
|
|
2553
2650
|
}
|
|
2554
2651
|
export const ExportOrdersDateFilterTypeEnum = {
|
|
2555
2652
|
CreatedAt: 'createdAt',
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED