@infisale-client/api 1.2.95 → 1.2.96
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/api.d.ts +182 -18
- package/dist/api/api.js +135 -0
- package/dist/api/api.mjs +135 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5206,24 +5206,6 @@ export interface IOrderPatchRequest {
|
|
|
5206
5206
|
* @memberof IOrderPatchRequest
|
|
5207
5207
|
*/
|
|
5208
5208
|
'paymentStatus'?: OrderPaymentStatusEnum;
|
|
5209
|
-
/**
|
|
5210
|
-
*
|
|
5211
|
-
* @type {string}
|
|
5212
|
-
* @memberof IOrderPatchRequest
|
|
5213
|
-
*/
|
|
5214
|
-
'cargoCode'?: string;
|
|
5215
|
-
/**
|
|
5216
|
-
*
|
|
5217
|
-
* @type {string}
|
|
5218
|
-
* @memberof IOrderPatchRequest
|
|
5219
|
-
*/
|
|
5220
|
-
'cargoUrl'?: string;
|
|
5221
|
-
/**
|
|
5222
|
-
*
|
|
5223
|
-
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>}
|
|
5224
|
-
* @memberof IOrderPatchRequest
|
|
5225
|
-
*/
|
|
5226
|
-
'shipped'?: Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeShippedInner>;
|
|
5227
5209
|
}
|
|
5228
5210
|
/**
|
|
5229
5211
|
*
|
|
@@ -5658,6 +5640,80 @@ export interface IOrderReviewPostRequest {
|
|
|
5658
5640
|
*/
|
|
5659
5641
|
'comment': string;
|
|
5660
5642
|
}
|
|
5643
|
+
/**
|
|
5644
|
+
*
|
|
5645
|
+
* @export
|
|
5646
|
+
* @interface IOrderShippedPostRequest
|
|
5647
|
+
*/
|
|
5648
|
+
export interface IOrderShippedPostRequest {
|
|
5649
|
+
/**
|
|
5650
|
+
*
|
|
5651
|
+
* @type {Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>}
|
|
5652
|
+
* @memberof IOrderShippedPostRequest
|
|
5653
|
+
*/
|
|
5654
|
+
'products': Array<PickIOrderExcludeKeyofIOrderHtmlOrIframeReturnsInnerProductsInner>;
|
|
5655
|
+
/**
|
|
5656
|
+
*
|
|
5657
|
+
* @type {string}
|
|
5658
|
+
* @memberof IOrderShippedPostRequest
|
|
5659
|
+
*/
|
|
5660
|
+
'cargoCode'?: string;
|
|
5661
|
+
/**
|
|
5662
|
+
*
|
|
5663
|
+
* @type {string}
|
|
5664
|
+
* @memberof IOrderShippedPostRequest
|
|
5665
|
+
*/
|
|
5666
|
+
'cargoUrl'?: string;
|
|
5667
|
+
/**
|
|
5668
|
+
*
|
|
5669
|
+
* @type {string}
|
|
5670
|
+
* @memberof IOrderShippedPostRequest
|
|
5671
|
+
*/
|
|
5672
|
+
'warehouse'?: string;
|
|
5673
|
+
/**
|
|
5674
|
+
*
|
|
5675
|
+
* @type {string}
|
|
5676
|
+
* @memberof IOrderShippedPostRequest
|
|
5677
|
+
*/
|
|
5678
|
+
'note'?: string;
|
|
5679
|
+
}
|
|
5680
|
+
/**
|
|
5681
|
+
*
|
|
5682
|
+
* @export
|
|
5683
|
+
* @interface IOrderShippedUpdatePatchRequest
|
|
5684
|
+
*/
|
|
5685
|
+
export interface IOrderShippedUpdatePatchRequest {
|
|
5686
|
+
/**
|
|
5687
|
+
*
|
|
5688
|
+
* @type {string}
|
|
5689
|
+
* @memberof IOrderShippedUpdatePatchRequest
|
|
5690
|
+
*/
|
|
5691
|
+
'cargoCode'?: string;
|
|
5692
|
+
/**
|
|
5693
|
+
*
|
|
5694
|
+
* @type {string}
|
|
5695
|
+
* @memberof IOrderShippedUpdatePatchRequest
|
|
5696
|
+
*/
|
|
5697
|
+
'cargoUrl'?: string;
|
|
5698
|
+
/**
|
|
5699
|
+
*
|
|
5700
|
+
* @type {string}
|
|
5701
|
+
* @memberof IOrderShippedUpdatePatchRequest
|
|
5702
|
+
*/
|
|
5703
|
+
'warehouse'?: string;
|
|
5704
|
+
/**
|
|
5705
|
+
*
|
|
5706
|
+
* @type {string}
|
|
5707
|
+
* @memberof IOrderShippedUpdatePatchRequest
|
|
5708
|
+
*/
|
|
5709
|
+
'note'?: string;
|
|
5710
|
+
/**
|
|
5711
|
+
*
|
|
5712
|
+
* @type {OrderShippedStatusEnum}
|
|
5713
|
+
* @memberof IOrderShippedUpdatePatchRequest
|
|
5714
|
+
*/
|
|
5715
|
+
'status'?: OrderShippedStatusEnum;
|
|
5716
|
+
}
|
|
5661
5717
|
/**
|
|
5662
5718
|
*
|
|
5663
5719
|
* @export
|
|
@@ -17002,6 +17058,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
17002
17058
|
* @throws {RequiredError}
|
|
17003
17059
|
*/
|
|
17004
17060
|
createReview: (iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17061
|
+
/**
|
|
17062
|
+
*
|
|
17063
|
+
* @param {string} id
|
|
17064
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
17065
|
+
* @param {*} [options] Override http request option.
|
|
17066
|
+
* @throws {RequiredError}
|
|
17067
|
+
*/
|
|
17068
|
+
createShipped: (id: string, iOrderShippedPostRequest: IOrderShippedPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17005
17069
|
/**
|
|
17006
17070
|
*
|
|
17007
17071
|
* @param {number} [page]
|
|
@@ -17082,6 +17146,15 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
17082
17146
|
* @throws {RequiredError}
|
|
17083
17147
|
*/
|
|
17084
17148
|
updateReviewStatus: (id: string, updateReviewStatusRequest: UpdateReviewStatusRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17149
|
+
/**
|
|
17150
|
+
*
|
|
17151
|
+
* @param {string} orderId
|
|
17152
|
+
* @param {string} shippedId
|
|
17153
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
17154
|
+
* @param {*} [options] Override http request option.
|
|
17155
|
+
* @throws {RequiredError}
|
|
17156
|
+
*/
|
|
17157
|
+
updateShipped: (orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
17085
17158
|
};
|
|
17086
17159
|
/**
|
|
17087
17160
|
* OrderApi - functional programming interface
|
|
@@ -17118,6 +17191,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
17118
17191
|
* @throws {RequiredError}
|
|
17119
17192
|
*/
|
|
17120
17193
|
createReview(iOrderReviewPostRequest: IOrderReviewPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
17194
|
+
/**
|
|
17195
|
+
*
|
|
17196
|
+
* @param {string} id
|
|
17197
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
17198
|
+
* @param {*} [options] Override http request option.
|
|
17199
|
+
* @throws {RequiredError}
|
|
17200
|
+
*/
|
|
17201
|
+
createShipped(id: string, iOrderShippedPostRequest: IOrderShippedPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
17121
17202
|
/**
|
|
17122
17203
|
*
|
|
17123
17204
|
* @param {number} [page]
|
|
@@ -17198,6 +17279,15 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
17198
17279
|
* @throws {RequiredError}
|
|
17199
17280
|
*/
|
|
17200
17281
|
updateReviewStatus(id: string, updateReviewStatusRequest: UpdateReviewStatusRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IReview>>;
|
|
17282
|
+
/**
|
|
17283
|
+
*
|
|
17284
|
+
* @param {string} orderId
|
|
17285
|
+
* @param {string} shippedId
|
|
17286
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
17287
|
+
* @param {*} [options] Override http request option.
|
|
17288
|
+
* @throws {RequiredError}
|
|
17289
|
+
*/
|
|
17290
|
+
updateShipped(orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
17201
17291
|
};
|
|
17202
17292
|
/**
|
|
17203
17293
|
* OrderApi - factory interface
|
|
@@ -17232,6 +17322,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17232
17322
|
* @throws {RequiredError}
|
|
17233
17323
|
*/
|
|
17234
17324
|
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
17325
|
+
/**
|
|
17326
|
+
*
|
|
17327
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
17328
|
+
* @param {*} [options] Override http request option.
|
|
17329
|
+
* @throws {RequiredError}
|
|
17330
|
+
*/
|
|
17331
|
+
createShipped(requestParameters: OrderApiCreateShippedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
17235
17332
|
/**
|
|
17236
17333
|
*
|
|
17237
17334
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -17288,6 +17385,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
17288
17385
|
* @throws {RequiredError}
|
|
17289
17386
|
*/
|
|
17290
17387
|
updateReviewStatus(requestParameters: OrderApiUpdateReviewStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<IReview>;
|
|
17388
|
+
/**
|
|
17389
|
+
*
|
|
17390
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
17391
|
+
* @param {*} [options] Override http request option.
|
|
17392
|
+
* @throws {RequiredError}
|
|
17393
|
+
*/
|
|
17394
|
+
updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
17291
17395
|
};
|
|
17292
17396
|
/**
|
|
17293
17397
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -17353,6 +17457,25 @@ export interface OrderApiCreateReviewRequest {
|
|
|
17353
17457
|
*/
|
|
17354
17458
|
readonly iOrderReviewPostRequest: IOrderReviewPostRequest;
|
|
17355
17459
|
}
|
|
17460
|
+
/**
|
|
17461
|
+
* Request parameters for createShipped operation in OrderApi.
|
|
17462
|
+
* @export
|
|
17463
|
+
* @interface OrderApiCreateShippedRequest
|
|
17464
|
+
*/
|
|
17465
|
+
export interface OrderApiCreateShippedRequest {
|
|
17466
|
+
/**
|
|
17467
|
+
*
|
|
17468
|
+
* @type {string}
|
|
17469
|
+
* @memberof OrderApiCreateShipped
|
|
17470
|
+
*/
|
|
17471
|
+
readonly id: string;
|
|
17472
|
+
/**
|
|
17473
|
+
*
|
|
17474
|
+
* @type {IOrderShippedPostRequest}
|
|
17475
|
+
* @memberof OrderApiCreateShipped
|
|
17476
|
+
*/
|
|
17477
|
+
readonly iOrderShippedPostRequest: IOrderShippedPostRequest;
|
|
17478
|
+
}
|
|
17356
17479
|
/**
|
|
17357
17480
|
* Request parameters for getMyOrders operation in OrderApi.
|
|
17358
17481
|
* @export
|
|
@@ -17601,6 +17724,31 @@ export interface OrderApiUpdateReviewStatusRequest {
|
|
|
17601
17724
|
*/
|
|
17602
17725
|
readonly updateReviewStatusRequest: UpdateReviewStatusRequest;
|
|
17603
17726
|
}
|
|
17727
|
+
/**
|
|
17728
|
+
* Request parameters for updateShipped operation in OrderApi.
|
|
17729
|
+
* @export
|
|
17730
|
+
* @interface OrderApiUpdateShippedRequest
|
|
17731
|
+
*/
|
|
17732
|
+
export interface OrderApiUpdateShippedRequest {
|
|
17733
|
+
/**
|
|
17734
|
+
*
|
|
17735
|
+
* @type {string}
|
|
17736
|
+
* @memberof OrderApiUpdateShipped
|
|
17737
|
+
*/
|
|
17738
|
+
readonly orderId: string;
|
|
17739
|
+
/**
|
|
17740
|
+
*
|
|
17741
|
+
* @type {string}
|
|
17742
|
+
* @memberof OrderApiUpdateShipped
|
|
17743
|
+
*/
|
|
17744
|
+
readonly shippedId: string;
|
|
17745
|
+
/**
|
|
17746
|
+
*
|
|
17747
|
+
* @type {IOrderShippedUpdatePatchRequest}
|
|
17748
|
+
* @memberof OrderApiUpdateShipped
|
|
17749
|
+
*/
|
|
17750
|
+
readonly iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest;
|
|
17751
|
+
}
|
|
17604
17752
|
/**
|
|
17605
17753
|
* OrderApi - object-oriented interface
|
|
17606
17754
|
* @export
|
|
@@ -17640,6 +17788,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
17640
17788
|
* @memberof OrderApi
|
|
17641
17789
|
*/
|
|
17642
17790
|
createReview(requestParameters: OrderApiCreateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
17791
|
+
/**
|
|
17792
|
+
*
|
|
17793
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
17794
|
+
* @param {*} [options] Override http request option.
|
|
17795
|
+
* @throws {RequiredError}
|
|
17796
|
+
* @memberof OrderApi
|
|
17797
|
+
*/
|
|
17798
|
+
createShipped(requestParameters: OrderApiCreateShippedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
17643
17799
|
/**
|
|
17644
17800
|
*
|
|
17645
17801
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -17704,6 +17860,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
17704
17860
|
* @memberof OrderApi
|
|
17705
17861
|
*/
|
|
17706
17862
|
updateReviewStatus(requestParameters: OrderApiUpdateReviewStatusRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IReview, any>>;
|
|
17863
|
+
/**
|
|
17864
|
+
*
|
|
17865
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
17866
|
+
* @param {*} [options] Override http request option.
|
|
17867
|
+
* @throws {RequiredError}
|
|
17868
|
+
* @memberof OrderApi
|
|
17869
|
+
*/
|
|
17870
|
+
updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
17707
17871
|
}
|
|
17708
17872
|
/**
|
|
17709
17873
|
* @export
|
package/dist/api/api.js
CHANGED
|
@@ -7456,6 +7456,39 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7456
7456
|
options: localVarRequestOptions,
|
|
7457
7457
|
};
|
|
7458
7458
|
},
|
|
7459
|
+
/**
|
|
7460
|
+
*
|
|
7461
|
+
* @param {string} id
|
|
7462
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
7463
|
+
* @param {*} [options] Override http request option.
|
|
7464
|
+
* @throws {RequiredError}
|
|
7465
|
+
*/
|
|
7466
|
+
createShipped: async (id, iOrderShippedPostRequest, options = {}) => {
|
|
7467
|
+
// verify required parameter 'id' is not null or undefined
|
|
7468
|
+
(0, common_1.assertParamExists)('createShipped', 'id', id);
|
|
7469
|
+
// verify required parameter 'iOrderShippedPostRequest' is not null or undefined
|
|
7470
|
+
(0, common_1.assertParamExists)('createShipped', 'iOrderShippedPostRequest', iOrderShippedPostRequest);
|
|
7471
|
+
const localVarPath = `/api/orders/{id}/shipped`
|
|
7472
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7473
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7474
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7475
|
+
let baseOptions;
|
|
7476
|
+
if (configuration) {
|
|
7477
|
+
baseOptions = configuration.baseOptions;
|
|
7478
|
+
}
|
|
7479
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7480
|
+
const localVarHeaderParameter = {};
|
|
7481
|
+
const localVarQueryParameter = {};
|
|
7482
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7483
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7484
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7485
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7486
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderShippedPostRequest, localVarRequestOptions, configuration);
|
|
7487
|
+
return {
|
|
7488
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7489
|
+
options: localVarRequestOptions,
|
|
7490
|
+
};
|
|
7491
|
+
},
|
|
7459
7492
|
/**
|
|
7460
7493
|
*
|
|
7461
7494
|
* @param {number} [page]
|
|
@@ -7790,6 +7823,43 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7790
7823
|
options: localVarRequestOptions,
|
|
7791
7824
|
};
|
|
7792
7825
|
},
|
|
7826
|
+
/**
|
|
7827
|
+
*
|
|
7828
|
+
* @param {string} orderId
|
|
7829
|
+
* @param {string} shippedId
|
|
7830
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
7831
|
+
* @param {*} [options] Override http request option.
|
|
7832
|
+
* @throws {RequiredError}
|
|
7833
|
+
*/
|
|
7834
|
+
updateShipped: async (orderId, shippedId, iOrderShippedUpdatePatchRequest, options = {}) => {
|
|
7835
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
7836
|
+
(0, common_1.assertParamExists)('updateShipped', 'orderId', orderId);
|
|
7837
|
+
// verify required parameter 'shippedId' is not null or undefined
|
|
7838
|
+
(0, common_1.assertParamExists)('updateShipped', 'shippedId', shippedId);
|
|
7839
|
+
// verify required parameter 'iOrderShippedUpdatePatchRequest' is not null or undefined
|
|
7840
|
+
(0, common_1.assertParamExists)('updateShipped', 'iOrderShippedUpdatePatchRequest', iOrderShippedUpdatePatchRequest);
|
|
7841
|
+
const localVarPath = `/api/orders/{orderId}/shipped-update/{shippedId}`
|
|
7842
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7843
|
+
.replace(`{${"shippedId"}}`, encodeURIComponent(String(shippedId)));
|
|
7844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7845
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7846
|
+
let baseOptions;
|
|
7847
|
+
if (configuration) {
|
|
7848
|
+
baseOptions = configuration.baseOptions;
|
|
7849
|
+
}
|
|
7850
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7851
|
+
const localVarHeaderParameter = {};
|
|
7852
|
+
const localVarQueryParameter = {};
|
|
7853
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7854
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7856
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7857
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iOrderShippedUpdatePatchRequest, localVarRequestOptions, configuration);
|
|
7858
|
+
return {
|
|
7859
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7860
|
+
options: localVarRequestOptions,
|
|
7861
|
+
};
|
|
7862
|
+
},
|
|
7793
7863
|
};
|
|
7794
7864
|
};
|
|
7795
7865
|
exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
@@ -7850,6 +7920,19 @@ const OrderApiFp = function (configuration) {
|
|
|
7850
7920
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
7851
7921
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7852
7922
|
},
|
|
7923
|
+
/**
|
|
7924
|
+
*
|
|
7925
|
+
* @param {string} id
|
|
7926
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
7927
|
+
* @param {*} [options] Override http request option.
|
|
7928
|
+
* @throws {RequiredError}
|
|
7929
|
+
*/
|
|
7930
|
+
async createShipped(id, iOrderShippedPostRequest, options) {
|
|
7931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createShipped(id, iOrderShippedPostRequest, options);
|
|
7932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7933
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createShipped']?.[localVarOperationServerIndex]?.url;
|
|
7934
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7935
|
+
},
|
|
7853
7936
|
/**
|
|
7854
7937
|
*
|
|
7855
7938
|
* @param {number} [page]
|
|
@@ -7970,6 +8053,20 @@ const OrderApiFp = function (configuration) {
|
|
|
7970
8053
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateReviewStatus']?.[localVarOperationServerIndex]?.url;
|
|
7971
8054
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7972
8055
|
},
|
|
8056
|
+
/**
|
|
8057
|
+
*
|
|
8058
|
+
* @param {string} orderId
|
|
8059
|
+
* @param {string} shippedId
|
|
8060
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
8061
|
+
* @param {*} [options] Override http request option.
|
|
8062
|
+
* @throws {RequiredError}
|
|
8063
|
+
*/
|
|
8064
|
+
async updateShipped(orderId, shippedId, iOrderShippedUpdatePatchRequest, options) {
|
|
8065
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipped(orderId, shippedId, iOrderShippedUpdatePatchRequest, options);
|
|
8066
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8067
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
|
|
8068
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8069
|
+
},
|
|
7973
8070
|
};
|
|
7974
8071
|
};
|
|
7975
8072
|
exports.OrderApiFp = OrderApiFp;
|
|
@@ -8016,6 +8113,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8016
8113
|
createReview(requestParameters, options) {
|
|
8017
8114
|
return localVarFp.createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(axios, basePath));
|
|
8018
8115
|
},
|
|
8116
|
+
/**
|
|
8117
|
+
*
|
|
8118
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
8119
|
+
* @param {*} [options] Override http request option.
|
|
8120
|
+
* @throws {RequiredError}
|
|
8121
|
+
*/
|
|
8122
|
+
createShipped(requestParameters, options) {
|
|
8123
|
+
return localVarFp.createShipped(requestParameters.id, requestParameters.iOrderShippedPostRequest, options).then((request) => request(axios, basePath));
|
|
8124
|
+
},
|
|
8019
8125
|
/**
|
|
8020
8126
|
*
|
|
8021
8127
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -8088,6 +8194,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8088
8194
|
updateReviewStatus(requestParameters, options) {
|
|
8089
8195
|
return localVarFp.updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(axios, basePath));
|
|
8090
8196
|
},
|
|
8197
|
+
/**
|
|
8198
|
+
*
|
|
8199
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
8200
|
+
* @param {*} [options] Override http request option.
|
|
8201
|
+
* @throws {RequiredError}
|
|
8202
|
+
*/
|
|
8203
|
+
updateShipped(requestParameters, options) {
|
|
8204
|
+
return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
|
|
8205
|
+
},
|
|
8091
8206
|
};
|
|
8092
8207
|
};
|
|
8093
8208
|
exports.OrderApiFactory = OrderApiFactory;
|
|
@@ -8138,6 +8253,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
8138
8253
|
createReview(requestParameters, options) {
|
|
8139
8254
|
return (0, exports.OrderApiFp)(this.configuration).createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8140
8255
|
}
|
|
8256
|
+
/**
|
|
8257
|
+
*
|
|
8258
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
8259
|
+
* @param {*} [options] Override http request option.
|
|
8260
|
+
* @throws {RequiredError}
|
|
8261
|
+
* @memberof OrderApi
|
|
8262
|
+
*/
|
|
8263
|
+
createShipped(requestParameters, options) {
|
|
8264
|
+
return (0, exports.OrderApiFp)(this.configuration).createShipped(requestParameters.id, requestParameters.iOrderShippedPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8265
|
+
}
|
|
8141
8266
|
/**
|
|
8142
8267
|
*
|
|
8143
8268
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -8218,6 +8343,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
8218
8343
|
updateReviewStatus(requestParameters, options) {
|
|
8219
8344
|
return (0, exports.OrderApiFp)(this.configuration).updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8220
8345
|
}
|
|
8346
|
+
/**
|
|
8347
|
+
*
|
|
8348
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
8349
|
+
* @param {*} [options] Override http request option.
|
|
8350
|
+
* @throws {RequiredError}
|
|
8351
|
+
* @memberof OrderApi
|
|
8352
|
+
*/
|
|
8353
|
+
updateShipped(requestParameters, options) {
|
|
8354
|
+
return (0, exports.OrderApiFp)(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8355
|
+
}
|
|
8221
8356
|
}
|
|
8222
8357
|
exports.OrderApi = OrderApi;
|
|
8223
8358
|
/**
|
package/dist/api/api.mjs
CHANGED
|
@@ -7400,6 +7400,39 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7400
7400
|
options: localVarRequestOptions,
|
|
7401
7401
|
};
|
|
7402
7402
|
},
|
|
7403
|
+
/**
|
|
7404
|
+
*
|
|
7405
|
+
* @param {string} id
|
|
7406
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
7407
|
+
* @param {*} [options] Override http request option.
|
|
7408
|
+
* @throws {RequiredError}
|
|
7409
|
+
*/
|
|
7410
|
+
createShipped: async (id, iOrderShippedPostRequest, options = {}) => {
|
|
7411
|
+
// verify required parameter 'id' is not null or undefined
|
|
7412
|
+
assertParamExists('createShipped', 'id', id);
|
|
7413
|
+
// verify required parameter 'iOrderShippedPostRequest' is not null or undefined
|
|
7414
|
+
assertParamExists('createShipped', 'iOrderShippedPostRequest', iOrderShippedPostRequest);
|
|
7415
|
+
const localVarPath = `/api/orders/{id}/shipped`
|
|
7416
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7418
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7419
|
+
let baseOptions;
|
|
7420
|
+
if (configuration) {
|
|
7421
|
+
baseOptions = configuration.baseOptions;
|
|
7422
|
+
}
|
|
7423
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7424
|
+
const localVarHeaderParameter = {};
|
|
7425
|
+
const localVarQueryParameter = {};
|
|
7426
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7427
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7429
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7430
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderShippedPostRequest, localVarRequestOptions, configuration);
|
|
7431
|
+
return {
|
|
7432
|
+
url: toPathString(localVarUrlObj),
|
|
7433
|
+
options: localVarRequestOptions,
|
|
7434
|
+
};
|
|
7435
|
+
},
|
|
7403
7436
|
/**
|
|
7404
7437
|
*
|
|
7405
7438
|
* @param {number} [page]
|
|
@@ -7734,6 +7767,43 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
7734
7767
|
options: localVarRequestOptions,
|
|
7735
7768
|
};
|
|
7736
7769
|
},
|
|
7770
|
+
/**
|
|
7771
|
+
*
|
|
7772
|
+
* @param {string} orderId
|
|
7773
|
+
* @param {string} shippedId
|
|
7774
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
7775
|
+
* @param {*} [options] Override http request option.
|
|
7776
|
+
* @throws {RequiredError}
|
|
7777
|
+
*/
|
|
7778
|
+
updateShipped: async (orderId, shippedId, iOrderShippedUpdatePatchRequest, options = {}) => {
|
|
7779
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
7780
|
+
assertParamExists('updateShipped', 'orderId', orderId);
|
|
7781
|
+
// verify required parameter 'shippedId' is not null or undefined
|
|
7782
|
+
assertParamExists('updateShipped', 'shippedId', shippedId);
|
|
7783
|
+
// verify required parameter 'iOrderShippedUpdatePatchRequest' is not null or undefined
|
|
7784
|
+
assertParamExists('updateShipped', 'iOrderShippedUpdatePatchRequest', iOrderShippedUpdatePatchRequest);
|
|
7785
|
+
const localVarPath = `/api/orders/{orderId}/shipped-update/{shippedId}`
|
|
7786
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)))
|
|
7787
|
+
.replace(`{${"shippedId"}}`, encodeURIComponent(String(shippedId)));
|
|
7788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7790
|
+
let baseOptions;
|
|
7791
|
+
if (configuration) {
|
|
7792
|
+
baseOptions = configuration.baseOptions;
|
|
7793
|
+
}
|
|
7794
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
7795
|
+
const localVarHeaderParameter = {};
|
|
7796
|
+
const localVarQueryParameter = {};
|
|
7797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7798
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7800
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
7801
|
+
localVarRequestOptions.data = serializeDataIfNeeded(iOrderShippedUpdatePatchRequest, localVarRequestOptions, configuration);
|
|
7802
|
+
return {
|
|
7803
|
+
url: toPathString(localVarUrlObj),
|
|
7804
|
+
options: localVarRequestOptions,
|
|
7805
|
+
};
|
|
7806
|
+
},
|
|
7737
7807
|
};
|
|
7738
7808
|
};
|
|
7739
7809
|
/**
|
|
@@ -7793,6 +7863,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
7793
7863
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
7794
7864
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7795
7865
|
},
|
|
7866
|
+
/**
|
|
7867
|
+
*
|
|
7868
|
+
* @param {string} id
|
|
7869
|
+
* @param {IOrderShippedPostRequest} iOrderShippedPostRequest
|
|
7870
|
+
* @param {*} [options] Override http request option.
|
|
7871
|
+
* @throws {RequiredError}
|
|
7872
|
+
*/
|
|
7873
|
+
async createShipped(id, iOrderShippedPostRequest, options) {
|
|
7874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createShipped(id, iOrderShippedPostRequest, options);
|
|
7875
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7876
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.createShipped']?.[localVarOperationServerIndex]?.url;
|
|
7877
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7878
|
+
},
|
|
7796
7879
|
/**
|
|
7797
7880
|
*
|
|
7798
7881
|
* @param {number} [page]
|
|
@@ -7913,6 +7996,20 @@ export const OrderApiFp = function (configuration) {
|
|
|
7913
7996
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateReviewStatus']?.[localVarOperationServerIndex]?.url;
|
|
7914
7997
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7915
7998
|
},
|
|
7999
|
+
/**
|
|
8000
|
+
*
|
|
8001
|
+
* @param {string} orderId
|
|
8002
|
+
* @param {string} shippedId
|
|
8003
|
+
* @param {IOrderShippedUpdatePatchRequest} iOrderShippedUpdatePatchRequest
|
|
8004
|
+
* @param {*} [options] Override http request option.
|
|
8005
|
+
* @throws {RequiredError}
|
|
8006
|
+
*/
|
|
8007
|
+
async updateShipped(orderId, shippedId, iOrderShippedUpdatePatchRequest, options) {
|
|
8008
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateShipped(orderId, shippedId, iOrderShippedUpdatePatchRequest, options);
|
|
8009
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8010
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
|
|
8011
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8012
|
+
},
|
|
7916
8013
|
};
|
|
7917
8014
|
};
|
|
7918
8015
|
/**
|
|
@@ -7958,6 +8055,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
7958
8055
|
createReview(requestParameters, options) {
|
|
7959
8056
|
return localVarFp.createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(axios, basePath));
|
|
7960
8057
|
},
|
|
8058
|
+
/**
|
|
8059
|
+
*
|
|
8060
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
8061
|
+
* @param {*} [options] Override http request option.
|
|
8062
|
+
* @throws {RequiredError}
|
|
8063
|
+
*/
|
|
8064
|
+
createShipped(requestParameters, options) {
|
|
8065
|
+
return localVarFp.createShipped(requestParameters.id, requestParameters.iOrderShippedPostRequest, options).then((request) => request(axios, basePath));
|
|
8066
|
+
},
|
|
7961
8067
|
/**
|
|
7962
8068
|
*
|
|
7963
8069
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -8030,6 +8136,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
8030
8136
|
updateReviewStatus(requestParameters, options) {
|
|
8031
8137
|
return localVarFp.updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(axios, basePath));
|
|
8032
8138
|
},
|
|
8139
|
+
/**
|
|
8140
|
+
*
|
|
8141
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
8142
|
+
* @param {*} [options] Override http request option.
|
|
8143
|
+
* @throws {RequiredError}
|
|
8144
|
+
*/
|
|
8145
|
+
updateShipped(requestParameters, options) {
|
|
8146
|
+
return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
|
|
8147
|
+
},
|
|
8033
8148
|
};
|
|
8034
8149
|
};
|
|
8035
8150
|
/**
|
|
@@ -8079,6 +8194,16 @@ export class OrderApi extends BaseAPI {
|
|
|
8079
8194
|
createReview(requestParameters, options) {
|
|
8080
8195
|
return OrderApiFp(this.configuration).createReview(requestParameters.iOrderReviewPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8081
8196
|
}
|
|
8197
|
+
/**
|
|
8198
|
+
*
|
|
8199
|
+
* @param {OrderApiCreateShippedRequest} requestParameters Request parameters.
|
|
8200
|
+
* @param {*} [options] Override http request option.
|
|
8201
|
+
* @throws {RequiredError}
|
|
8202
|
+
* @memberof OrderApi
|
|
8203
|
+
*/
|
|
8204
|
+
createShipped(requestParameters, options) {
|
|
8205
|
+
return OrderApiFp(this.configuration).createShipped(requestParameters.id, requestParameters.iOrderShippedPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8206
|
+
}
|
|
8082
8207
|
/**
|
|
8083
8208
|
*
|
|
8084
8209
|
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
@@ -8159,6 +8284,16 @@ export class OrderApi extends BaseAPI {
|
|
|
8159
8284
|
updateReviewStatus(requestParameters, options) {
|
|
8160
8285
|
return OrderApiFp(this.configuration).updateReviewStatus(requestParameters.id, requestParameters.updateReviewStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8161
8286
|
}
|
|
8287
|
+
/**
|
|
8288
|
+
*
|
|
8289
|
+
* @param {OrderApiUpdateShippedRequest} requestParameters Request parameters.
|
|
8290
|
+
* @param {*} [options] Override http request option.
|
|
8291
|
+
* @throws {RequiredError}
|
|
8292
|
+
* @memberof OrderApi
|
|
8293
|
+
*/
|
|
8294
|
+
updateShipped(requestParameters, options) {
|
|
8295
|
+
return OrderApiFp(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8296
|
+
}
|
|
8162
8297
|
}
|
|
8163
8298
|
/**
|
|
8164
8299
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.96",
|
|
4
4
|
"description": "api-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3558c050d3c68d3111fa3856bb9d66171750c39b"
|
|
41
41
|
}
|