@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/README.md +9 -2
- package/api.ts +318 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +25 -2
- package/dist/api.d.ts +178 -1
- package/dist/api.js +219 -4
- 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 +178 -1
- package/dist/esm/api.js +213 -2
- 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/ModerationApi.md +71 -0
- package/docs/Order.md +2 -0
- package/docs/OrderStatus.md +2 -0
- package/docs/OrdersApi.md +70 -0
- package/docs/PrintArea.md +23 -0
- package/docs/UpdateModerationItemRequest.md +22 -0
- package/docs/UpdatePlatformFulfillmentStyleApplicationRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.45.2
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.45.2 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -62,6 +62,7 @@ Class | Method | HTTP request | Description
|
|
|
62
62
|
*EnquiriesApi* | [**listCustomerEnquiries**](docs/EnquiriesApi.md#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries
|
|
63
63
|
*EnquiriesApi* | [**listCustomerEnquiryLogs**](docs/EnquiriesApi.md#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs
|
|
64
64
|
*EnquiriesApi* | [**updateCustomerEnquiry**](docs/EnquiriesApi.md#updatecustomerenquiry) | **PATCH** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Update customer enquiry
|
|
65
|
+
*ModerationApi* | [**updateModerationItem**](docs/ModerationApi.md#updatemoderationitem) | **PATCH** /v1/platform/moderate/{moderationItemId} | Update a moderation item
|
|
65
66
|
*OrdersApi* | [**amendOrder**](docs/OrdersApi.md#amendorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/amend | Amend the contents of an order
|
|
66
67
|
*OrdersApi* | [**confirmOrder**](docs/OrdersApi.md#confirmorder) | **POST** /v1/platform/{platformId}/orders/{orderId}/confirm | Confirm order
|
|
67
68
|
*OrdersApi* | [**createOrder**](docs/OrdersApi.md#createorder) | **POST** /v1/platform/{platformId}/orders | Create order
|
|
@@ -76,6 +77,7 @@ Class | Method | HTTP request | Description
|
|
|
76
77
|
*OrdersApi* | [**returnOrder**](docs/OrdersApi.md#returnorder) | **PATCH** /v1/platform/{platformId}/orders/{orderId}/return | Return the contents of an order for a refund or exchange
|
|
77
78
|
*OrdersApi* | [**sendOrderReceipt**](docs/OrdersApi.md#sendorderreceipt) | **POST** /v1/platform/{platformId}/orders/{orderId}/receipt/send | Send order receipt
|
|
78
79
|
*OrdersApi* | [**updateFulfillment**](docs/OrdersApi.md#updatefulfillment) | **PATCH** /v1/platform/{platformId}/fulfillments/{fulfillmentId} | Update fulfillment
|
|
80
|
+
*OrdersApi* | [**updatePlatformFulfillmentStyleApplication**](docs/OrdersApi.md#updateplatformfulfillmentstyleapplication) | **PATCH** /v1/platform/{platformId}/styles/{styleId}/applications/{applicationId} | Update platform fulfillment style application
|
|
79
81
|
*PaymentApi* | [**authorizeStripe**](docs/PaymentApi.md#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe
|
|
80
82
|
*PaymentApi* | [**deauthorizeStripe**](docs/PaymentApi.md#deauthorizestripe) | **DELETE** /v1/platform/payment/stripe/deauthorize | Deauthorize Stripe
|
|
81
83
|
*PaymentApi* | [**getStripePaymentAccount**](docs/PaymentApi.md#getstripepaymentaccount) | **GET** /v1/platform/payment/stripe | Get Stripe Payment Account
|
|
@@ -109,6 +111,8 @@ Class | Method | HTTP request | Description
|
|
|
109
111
|
- [AmendOrderRequestAmendmentsInnerReason](docs/AmendOrderRequestAmendmentsInnerReason.md)
|
|
110
112
|
- [AmendmentLog](docs/AmendmentLog.md)
|
|
111
113
|
- [ApiError](docs/ApiError.md)
|
|
114
|
+
- [Application](docs/Application.md)
|
|
115
|
+
- [AttachedFile](docs/AttachedFile.md)
|
|
112
116
|
- [AuthorizeStripe200Response](docs/AuthorizeStripe200Response.md)
|
|
113
117
|
- [BulkCreateReviewPayload](docs/BulkCreateReviewPayload.md)
|
|
114
118
|
- [BulkCreatedReviews](docs/BulkCreatedReviews.md)
|
|
@@ -169,6 +173,7 @@ Class | Method | HTTP request | Description
|
|
|
169
173
|
- [Platform](docs/Platform.md)
|
|
170
174
|
- [PlatformLogo](docs/PlatformLogo.md)
|
|
171
175
|
- [Price](docs/Price.md)
|
|
176
|
+
- [PrintArea](docs/PrintArea.md)
|
|
172
177
|
- [Project](docs/Project.md)
|
|
173
178
|
- [ReturnOrderRequest](docs/ReturnOrderRequest.md)
|
|
174
179
|
- [ReturnOrderRequestReturnsInner](docs/ReturnOrderRequestReturnsInner.md)
|
|
@@ -188,6 +193,8 @@ Class | Method | HTTP request | Description
|
|
|
188
193
|
- [Terms](docs/Terms.md)
|
|
189
194
|
- [UpdateCustomerEnquiryRequest](docs/UpdateCustomerEnquiryRequest.md)
|
|
190
195
|
- [UpdateFulfillmentRequest](docs/UpdateFulfillmentRequest.md)
|
|
196
|
+
- [UpdateModerationItemRequest](docs/UpdateModerationItemRequest.md)
|
|
197
|
+
- [UpdatePlatformFulfillmentStyleApplicationRequest](docs/UpdatePlatformFulfillmentStyleApplicationRequest.md)
|
|
191
198
|
- [UpdatePlatformRequest](docs/UpdatePlatformRequest.md)
|
|
192
199
|
- [ValidationError](docs/ValidationError.md)
|
|
193
200
|
- [Variant](docs/Variant.md)
|
package/api.ts
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.45.2
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -123,6 +123,33 @@ export interface ApiError {
|
|
|
123
123
|
'code'?: string;
|
|
124
124
|
'message': string;
|
|
125
125
|
}
|
|
126
|
+
export interface Application {
|
|
127
|
+
/**
|
|
128
|
+
* Unique object identifier
|
|
129
|
+
*/
|
|
130
|
+
'id'?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Unique object identifier
|
|
133
|
+
*/
|
|
134
|
+
'styleId'?: string;
|
|
135
|
+
'placement'?: ApplicationPlacementEnum;
|
|
136
|
+
'mockup'?: string;
|
|
137
|
+
'design'?: string;
|
|
138
|
+
'printArea'?: PrintArea;
|
|
139
|
+
'files'?: Array<AttachedFile>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export const ApplicationPlacementEnum = {
|
|
143
|
+
Front: 'front',
|
|
144
|
+
Back: 'back'
|
|
145
|
+
} as const;
|
|
146
|
+
|
|
147
|
+
export type ApplicationPlacementEnum = typeof ApplicationPlacementEnum[keyof typeof ApplicationPlacementEnum];
|
|
148
|
+
|
|
149
|
+
export interface AttachedFile {
|
|
150
|
+
'url'?: string;
|
|
151
|
+
'name'?: string;
|
|
152
|
+
}
|
|
126
153
|
export interface AuthorizeStripe200Response {
|
|
127
154
|
/**
|
|
128
155
|
* The URL to redirect to
|
|
@@ -541,6 +568,7 @@ export interface Order {
|
|
|
541
568
|
*/
|
|
542
569
|
'ref'?: string;
|
|
543
570
|
'status'?: OrderStatus;
|
|
571
|
+
'approvalItemId'?: string | null;
|
|
544
572
|
'contactInformation': ContactInformation;
|
|
545
573
|
'shippingAddress': Address;
|
|
546
574
|
'billingAddress'?: Address;
|
|
@@ -638,7 +666,8 @@ export const OrderStatus = {
|
|
|
638
666
|
Paid: 'paid',
|
|
639
667
|
Processing: 'processing',
|
|
640
668
|
Complete: 'complete',
|
|
641
|
-
Refunded: 'refunded'
|
|
669
|
+
Refunded: 'refunded',
|
|
670
|
+
Moderation: 'moderation'
|
|
642
671
|
} as const;
|
|
643
672
|
|
|
644
673
|
export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
|
|
@@ -770,6 +799,13 @@ export interface Price {
|
|
|
770
799
|
*/
|
|
771
800
|
'currencyCode'?: string;
|
|
772
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Print area dimensions in mm
|
|
804
|
+
*/
|
|
805
|
+
export interface PrintArea {
|
|
806
|
+
'width'?: number;
|
|
807
|
+
'height'?: number;
|
|
808
|
+
}
|
|
773
809
|
export interface Project {
|
|
774
810
|
'id': string;
|
|
775
811
|
/**
|
|
@@ -959,6 +995,21 @@ export interface UpdateFulfillmentRequest {
|
|
|
959
995
|
*/
|
|
960
996
|
'fulfillerId'?: string;
|
|
961
997
|
}
|
|
998
|
+
export interface UpdateModerationItemRequest {
|
|
999
|
+
'judgement': UpdateModerationItemRequestJudgementEnum;
|
|
1000
|
+
'denialReason'?: string;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export const UpdateModerationItemRequestJudgementEnum = {
|
|
1004
|
+
Approved: 'approved',
|
|
1005
|
+
Denied: 'denied'
|
|
1006
|
+
} as const;
|
|
1007
|
+
|
|
1008
|
+
export type UpdateModerationItemRequestJudgementEnum = typeof UpdateModerationItemRequestJudgementEnum[keyof typeof UpdateModerationItemRequestJudgementEnum];
|
|
1009
|
+
|
|
1010
|
+
export interface UpdatePlatformFulfillmentStyleApplicationRequest {
|
|
1011
|
+
'design'?: string;
|
|
1012
|
+
}
|
|
962
1013
|
export interface UpdatePlatformRequest {
|
|
963
1014
|
'logos'?: Array<PlatformLogo>;
|
|
964
1015
|
'favicon'?: string;
|
|
@@ -2760,6 +2811,144 @@ export class EnquiriesApi extends BaseAPI {
|
|
|
2760
2811
|
|
|
2761
2812
|
|
|
2762
2813
|
|
|
2814
|
+
/**
|
|
2815
|
+
* ModerationApi - axios parameter creator
|
|
2816
|
+
*/
|
|
2817
|
+
export const ModerationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2818
|
+
return {
|
|
2819
|
+
/**
|
|
2820
|
+
* Update a moderation item
|
|
2821
|
+
* @summary Update a moderation item
|
|
2822
|
+
* @param {string} project Project unique identifier
|
|
2823
|
+
* @param {string} moderationItemId The moderation item identifier
|
|
2824
|
+
* @param {UpdateModerationItemRequest} [updateModerationItemRequest]
|
|
2825
|
+
* @param {*} [options] Override http request option.
|
|
2826
|
+
* @throws {RequiredError}
|
|
2827
|
+
*/
|
|
2828
|
+
updateModerationItem: async (project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2829
|
+
// verify required parameter 'project' is not null or undefined
|
|
2830
|
+
assertParamExists('updateModerationItem', 'project', project)
|
|
2831
|
+
// verify required parameter 'moderationItemId' is not null or undefined
|
|
2832
|
+
assertParamExists('updateModerationItem', 'moderationItemId', moderationItemId)
|
|
2833
|
+
const localVarPath = `/v1/platform/moderate/{moderationItemId}`
|
|
2834
|
+
.replace(`{${"moderationItemId"}}`, encodeURIComponent(String(moderationItemId)));
|
|
2835
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2836
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2837
|
+
let baseOptions;
|
|
2838
|
+
if (configuration) {
|
|
2839
|
+
baseOptions = configuration.baseOptions;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2843
|
+
const localVarHeaderParameter = {} as any;
|
|
2844
|
+
const localVarQueryParameter = {} as any;
|
|
2845
|
+
|
|
2846
|
+
// authentication session-oauth required
|
|
2847
|
+
// oauth required
|
|
2848
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2849
|
+
|
|
2850
|
+
// authentication api-key required
|
|
2851
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2852
|
+
|
|
2853
|
+
if (project !== undefined) {
|
|
2854
|
+
localVarQueryParameter['project'] = project;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
|
|
2859
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2860
|
+
|
|
2861
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2863
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2864
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateModerationItemRequest, localVarRequestOptions, configuration)
|
|
2865
|
+
|
|
2866
|
+
return {
|
|
2867
|
+
url: toPathString(localVarUrlObj),
|
|
2868
|
+
options: localVarRequestOptions,
|
|
2869
|
+
};
|
|
2870
|
+
},
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* ModerationApi - functional programming interface
|
|
2876
|
+
*/
|
|
2877
|
+
export const ModerationApiFp = function(configuration?: Configuration) {
|
|
2878
|
+
const localVarAxiosParamCreator = ModerationApiAxiosParamCreator(configuration)
|
|
2879
|
+
return {
|
|
2880
|
+
/**
|
|
2881
|
+
* Update a moderation item
|
|
2882
|
+
* @summary Update a moderation item
|
|
2883
|
+
* @param {string} project Project unique identifier
|
|
2884
|
+
* @param {string} moderationItemId The moderation item identifier
|
|
2885
|
+
* @param {UpdateModerationItemRequest} [updateModerationItemRequest]
|
|
2886
|
+
* @param {*} [options] Override http request option.
|
|
2887
|
+
* @throws {RequiredError}
|
|
2888
|
+
*/
|
|
2889
|
+
async updateModerationItem(project: string, moderationItemId: string, updateModerationItemRequest?: UpdateModerationItemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2890
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateModerationItem(project, moderationItemId, updateModerationItemRequest, options);
|
|
2891
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2892
|
+
const localVarOperationServerBasePath = operationServerMap['ModerationApi.updateModerationItem']?.[localVarOperationServerIndex]?.url;
|
|
2893
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2894
|
+
},
|
|
2895
|
+
}
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
/**
|
|
2899
|
+
* ModerationApi - factory interface
|
|
2900
|
+
*/
|
|
2901
|
+
export const ModerationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2902
|
+
const localVarFp = ModerationApiFp(configuration)
|
|
2903
|
+
return {
|
|
2904
|
+
/**
|
|
2905
|
+
* Update a moderation item
|
|
2906
|
+
* @summary Update a moderation item
|
|
2907
|
+
* @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
|
|
2908
|
+
* @param {*} [options] Override http request option.
|
|
2909
|
+
* @throws {RequiredError}
|
|
2910
|
+
*/
|
|
2911
|
+
updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2912
|
+
return localVarFp.updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(axios, basePath));
|
|
2913
|
+
},
|
|
2914
|
+
};
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Request parameters for updateModerationItem operation in ModerationApi.
|
|
2919
|
+
*/
|
|
2920
|
+
export interface ModerationApiUpdateModerationItemRequest {
|
|
2921
|
+
/**
|
|
2922
|
+
* Project unique identifier
|
|
2923
|
+
*/
|
|
2924
|
+
readonly project: string
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* The moderation item identifier
|
|
2928
|
+
*/
|
|
2929
|
+
readonly moderationItemId: string
|
|
2930
|
+
|
|
2931
|
+
readonly updateModerationItemRequest?: UpdateModerationItemRequest
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* ModerationApi - object-oriented interface
|
|
2936
|
+
*/
|
|
2937
|
+
export class ModerationApi extends BaseAPI {
|
|
2938
|
+
/**
|
|
2939
|
+
* Update a moderation item
|
|
2940
|
+
* @summary Update a moderation item
|
|
2941
|
+
* @param {ModerationApiUpdateModerationItemRequest} requestParameters Request parameters.
|
|
2942
|
+
* @param {*} [options] Override http request option.
|
|
2943
|
+
* @throws {RequiredError}
|
|
2944
|
+
*/
|
|
2945
|
+
public updateModerationItem(requestParameters: ModerationApiUpdateModerationItemRequest, options?: RawAxiosRequestConfig) {
|
|
2946
|
+
return ModerationApiFp(this.configuration).updateModerationItem(requestParameters.project, requestParameters.moderationItemId, requestParameters.updateModerationItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2763
2952
|
/**
|
|
2764
2953
|
* OrdersApi - axios parameter creator
|
|
2765
2954
|
*/
|
|
@@ -3576,6 +3765,68 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3576
3765
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3577
3766
|
localVarRequestOptions.data = serializeDataIfNeeded(updateFulfillmentRequest, localVarRequestOptions, configuration)
|
|
3578
3767
|
|
|
3768
|
+
return {
|
|
3769
|
+
url: toPathString(localVarUrlObj),
|
|
3770
|
+
options: localVarRequestOptions,
|
|
3771
|
+
};
|
|
3772
|
+
},
|
|
3773
|
+
/**
|
|
3774
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
3775
|
+
* @summary Update platform fulfillment style application
|
|
3776
|
+
* @param {string} project Project unique identifier
|
|
3777
|
+
* @param {string} platformId The platform identifier
|
|
3778
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
3779
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
3780
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
3781
|
+
* @param {*} [options] Override http request option.
|
|
3782
|
+
* @throws {RequiredError}
|
|
3783
|
+
*/
|
|
3784
|
+
updatePlatformFulfillmentStyleApplication: async (project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3785
|
+
// verify required parameter 'project' is not null or undefined
|
|
3786
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'project', project)
|
|
3787
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
3788
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'platformId', platformId)
|
|
3789
|
+
// verify required parameter 'styleId' is not null or undefined
|
|
3790
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'styleId', styleId)
|
|
3791
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
3792
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'applicationId', applicationId)
|
|
3793
|
+
// verify required parameter 'updatePlatformFulfillmentStyleApplicationRequest' is not null or undefined
|
|
3794
|
+
assertParamExists('updatePlatformFulfillmentStyleApplication', 'updatePlatformFulfillmentStyleApplicationRequest', updatePlatformFulfillmentStyleApplicationRequest)
|
|
3795
|
+
const localVarPath = `/v1/platform/{platformId}/styles/{styleId}/applications/{applicationId}`
|
|
3796
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
3797
|
+
.replace(`{${"styleId"}}`, encodeURIComponent(String(styleId)))
|
|
3798
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
3799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3801
|
+
let baseOptions;
|
|
3802
|
+
if (configuration) {
|
|
3803
|
+
baseOptions = configuration.baseOptions;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3807
|
+
const localVarHeaderParameter = {} as any;
|
|
3808
|
+
const localVarQueryParameter = {} as any;
|
|
3809
|
+
|
|
3810
|
+
// authentication session-oauth required
|
|
3811
|
+
// oauth required
|
|
3812
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3813
|
+
|
|
3814
|
+
// authentication api-key required
|
|
3815
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3816
|
+
|
|
3817
|
+
if (project !== undefined) {
|
|
3818
|
+
localVarQueryParameter['project'] = project;
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3824
|
+
|
|
3825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3828
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePlatformFulfillmentStyleApplicationRequest, localVarRequestOptions, configuration)
|
|
3829
|
+
|
|
3579
3830
|
return {
|
|
3580
3831
|
url: toPathString(localVarUrlObj),
|
|
3581
3832
|
options: localVarRequestOptions,
|
|
@@ -3814,6 +4065,23 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
3814
4065
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.updateFulfillment']?.[localVarOperationServerIndex]?.url;
|
|
3815
4066
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3816
4067
|
},
|
|
4068
|
+
/**
|
|
4069
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
4070
|
+
* @summary Update platform fulfillment style application
|
|
4071
|
+
* @param {string} project Project unique identifier
|
|
4072
|
+
* @param {string} platformId The platform identifier
|
|
4073
|
+
* @param {string} styleId Unique identifier of a fulfillment style
|
|
4074
|
+
* @param {string} applicationId Unique identifier of a fulfillment style application
|
|
4075
|
+
* @param {UpdatePlatformFulfillmentStyleApplicationRequest} updatePlatformFulfillmentStyleApplicationRequest
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
*/
|
|
4079
|
+
async updatePlatformFulfillmentStyleApplication(project: string, platformId: string, styleId: string, applicationId: string, updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>> {
|
|
4080
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePlatformFulfillmentStyleApplication(project, platformId, styleId, applicationId, updatePlatformFulfillmentStyleApplicationRequest, options);
|
|
4081
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4082
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.updatePlatformFulfillmentStyleApplication']?.[localVarOperationServerIndex]?.url;
|
|
4083
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4084
|
+
},
|
|
3817
4085
|
}
|
|
3818
4086
|
};
|
|
3819
4087
|
|
|
@@ -3963,6 +4231,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
3963
4231
|
updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<Fulfillment> {
|
|
3964
4232
|
return localVarFp.updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(axios, basePath));
|
|
3965
4233
|
},
|
|
4234
|
+
/**
|
|
4235
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
4236
|
+
* @summary Update platform fulfillment style application
|
|
4237
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
4238
|
+
* @param {*} [options] Override http request option.
|
|
4239
|
+
* @throws {RequiredError}
|
|
4240
|
+
*/
|
|
4241
|
+
updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Application> {
|
|
4242
|
+
return localVarFp.updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(axios, basePath));
|
|
4243
|
+
},
|
|
3966
4244
|
};
|
|
3967
4245
|
};
|
|
3968
4246
|
|
|
@@ -4313,6 +4591,33 @@ export interface OrdersApiUpdateFulfillmentRequest {
|
|
|
4313
4591
|
readonly updateFulfillmentRequest: UpdateFulfillmentRequest
|
|
4314
4592
|
}
|
|
4315
4593
|
|
|
4594
|
+
/**
|
|
4595
|
+
* Request parameters for updatePlatformFulfillmentStyleApplication operation in OrdersApi.
|
|
4596
|
+
*/
|
|
4597
|
+
export interface OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest {
|
|
4598
|
+
/**
|
|
4599
|
+
* Project unique identifier
|
|
4600
|
+
*/
|
|
4601
|
+
readonly project: string
|
|
4602
|
+
|
|
4603
|
+
/**
|
|
4604
|
+
* The platform identifier
|
|
4605
|
+
*/
|
|
4606
|
+
readonly platformId: string
|
|
4607
|
+
|
|
4608
|
+
/**
|
|
4609
|
+
* Unique identifier of a fulfillment style
|
|
4610
|
+
*/
|
|
4611
|
+
readonly styleId: string
|
|
4612
|
+
|
|
4613
|
+
/**
|
|
4614
|
+
* Unique identifier of a fulfillment style application
|
|
4615
|
+
*/
|
|
4616
|
+
readonly applicationId: string
|
|
4617
|
+
|
|
4618
|
+
readonly updatePlatformFulfillmentStyleApplicationRequest: UpdatePlatformFulfillmentStyleApplicationRequest
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4316
4621
|
/**
|
|
4317
4622
|
* OrdersApi - object-oriented interface
|
|
4318
4623
|
*/
|
|
@@ -4470,6 +4775,17 @@ export class OrdersApi extends BaseAPI {
|
|
|
4470
4775
|
public updateFulfillment(requestParameters: OrdersApiUpdateFulfillmentRequest, options?: RawAxiosRequestConfig) {
|
|
4471
4776
|
return OrdersApiFp(this.configuration).updateFulfillment(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, requestParameters.updateFulfillmentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4472
4777
|
}
|
|
4778
|
+
|
|
4779
|
+
/**
|
|
4780
|
+
* Update a fulfillment style application for a fulfillment for a platform order
|
|
4781
|
+
* @summary Update platform fulfillment style application
|
|
4782
|
+
* @param {OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest} requestParameters Request parameters.
|
|
4783
|
+
* @param {*} [options] Override http request option.
|
|
4784
|
+
* @throws {RequiredError}
|
|
4785
|
+
*/
|
|
4786
|
+
public updatePlatformFulfillmentStyleApplication(requestParameters: OrdersApiUpdatePlatformFulfillmentStyleApplicationRequest, options?: RawAxiosRequestConfig) {
|
|
4787
|
+
return OrdersApiFp(this.configuration).updatePlatformFulfillmentStyleApplication(requestParameters.project, requestParameters.platformId, requestParameters.styleId, requestParameters.applicationId, requestParameters.updatePlatformFulfillmentStyleApplicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4788
|
+
}
|
|
4473
4789
|
}
|
|
4474
4790
|
|
|
4475
4791
|
export const ExportOrdersDateFilterTypeEnum = {
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Platform API
|
|
5
4
|
* Manage Your podOS platform
|
|
6
5
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
6
|
+
* The version of the OpenAPI document: 0.45.2
|
|
8
7
|
*
|
|
9
8
|
*
|
|
10
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,12 +11,24 @@
|
|
|
12
11
|
* Do not edit the class manually.
|
|
13
12
|
*/
|
|
14
13
|
|
|
14
|
+
interface AWSv4Configuration {
|
|
15
|
+
options?: {
|
|
16
|
+
region?: string
|
|
17
|
+
service?: string
|
|
18
|
+
}
|
|
19
|
+
credentials?: {
|
|
20
|
+
accessKeyId?: string
|
|
21
|
+
secretAccessKey?: string,
|
|
22
|
+
sessionToken?: string
|
|
23
|
+
}
|
|
24
|
+
}
|
|
15
25
|
|
|
16
26
|
export interface ConfigurationParameters {
|
|
17
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
28
|
username?: string;
|
|
19
29
|
password?: string;
|
|
20
30
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
31
|
+
awsv4?: AWSv4Configuration;
|
|
21
32
|
basePath?: string;
|
|
22
33
|
serverIndex?: number;
|
|
23
34
|
baseOptions?: any;
|
|
@@ -44,6 +55,17 @@ export class Configuration {
|
|
|
44
55
|
* @param scopes oauth2 scope
|
|
45
56
|
*/
|
|
46
57
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
47
69
|
/**
|
|
48
70
|
* override base path
|
|
49
71
|
*/
|
|
@@ -70,6 +92,7 @@ export class Configuration {
|
|
|
70
92
|
this.username = param.username;
|
|
71
93
|
this.password = param.password;
|
|
72
94
|
this.accessToken = param.accessToken;
|
|
95
|
+
this.awsv4 = param.awsv4;
|
|
73
96
|
this.basePath = param.basePath;
|
|
74
97
|
this.serverIndex = param.serverIndex;
|
|
75
98
|
this.baseOptions = {
|