@infisale-client/api-client 1.2.79 → 1.2.81
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 +56 -6
- package/dist/api/api.js +64 -0
- package/dist/api/api.mjs +64 -0
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -6451,7 +6451,7 @@ export interface IProductPatchRequest {
|
|
|
6451
6451
|
* @type {boolean}
|
|
6452
6452
|
* @memberof IProductPatchRequest
|
|
6453
6453
|
*/
|
|
6454
|
-
'
|
|
6454
|
+
'unlimitedStock'?: boolean;
|
|
6455
6455
|
/**
|
|
6456
6456
|
*
|
|
6457
6457
|
* @type {PriceType}
|
|
@@ -6542,7 +6542,7 @@ export interface IProductPostRequest {
|
|
|
6542
6542
|
* @type {boolean}
|
|
6543
6543
|
* @memberof IProductPostRequest
|
|
6544
6544
|
*/
|
|
6545
|
-
'
|
|
6545
|
+
'unlimitedStock'?: boolean;
|
|
6546
6546
|
/**
|
|
6547
6547
|
*
|
|
6548
6548
|
* @type {PriceType}
|
|
@@ -6701,7 +6701,7 @@ export interface IProductResponse {
|
|
|
6701
6701
|
* @type {boolean}
|
|
6702
6702
|
* @memberof IProductResponse
|
|
6703
6703
|
*/
|
|
6704
|
-
'
|
|
6704
|
+
'unlimitedStock'?: boolean;
|
|
6705
6705
|
/**
|
|
6706
6706
|
*
|
|
6707
6707
|
* @type {PriceType}
|
|
@@ -10215,7 +10215,7 @@ export interface PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttr
|
|
|
10215
10215
|
* @type {boolean}
|
|
10216
10216
|
* @memberof PickIProductExcludeKeyofIProductCategoryOrBrandOrTemplateOrAttributesFieldsOrSearchFields
|
|
10217
10217
|
*/
|
|
10218
|
-
'
|
|
10218
|
+
'unlimitedStock'?: boolean;
|
|
10219
10219
|
/**
|
|
10220
10220
|
*
|
|
10221
10221
|
* @type {PriceType}
|
|
@@ -10349,7 +10349,7 @@ export interface PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPo
|
|
|
10349
10349
|
* @type {boolean}
|
|
10350
10350
|
* @memberof PickIProductResponseExcludeKeyofIProductResponseKeyofICompanyPostRequestOmitFields
|
|
10351
10351
|
*/
|
|
10352
|
-
'
|
|
10352
|
+
'unlimitedStock'?: boolean;
|
|
10353
10353
|
/**
|
|
10354
10354
|
*
|
|
10355
10355
|
* @type {PriceType}
|
|
@@ -11543,7 +11543,7 @@ export interface VariantType {
|
|
|
11543
11543
|
* @type {boolean}
|
|
11544
11544
|
* @memberof VariantType
|
|
11545
11545
|
*/
|
|
11546
|
-
'
|
|
11546
|
+
'unlimitedStock'?: boolean;
|
|
11547
11547
|
/**
|
|
11548
11548
|
*
|
|
11549
11549
|
* @type {PriceType}
|
|
@@ -12743,6 +12743,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
12743
12743
|
* @throws {RequiredError}
|
|
12744
12744
|
*/
|
|
12745
12745
|
getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12746
|
+
/**
|
|
12747
|
+
*
|
|
12748
|
+
* @param {string} id
|
|
12749
|
+
* @param {string} productId
|
|
12750
|
+
* @param {*} [options] Override http request option.
|
|
12751
|
+
* @throws {RequiredError}
|
|
12752
|
+
*/
|
|
12753
|
+
getOrderProductReview: (id: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12746
12754
|
/**
|
|
12747
12755
|
*
|
|
12748
12756
|
* @param {string} company
|
|
@@ -12818,6 +12826,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
12818
12826
|
* @throws {RequiredError}
|
|
12819
12827
|
*/
|
|
12820
12828
|
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
12829
|
+
/**
|
|
12830
|
+
*
|
|
12831
|
+
* @param {string} id
|
|
12832
|
+
* @param {string} productId
|
|
12833
|
+
* @param {*} [options] Override http request option.
|
|
12834
|
+
* @throws {RequiredError}
|
|
12835
|
+
*/
|
|
12836
|
+
getOrderProductReview(id: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IReview>>;
|
|
12821
12837
|
/**
|
|
12822
12838
|
*
|
|
12823
12839
|
* @param {string} company
|
|
@@ -12884,6 +12900,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
12884
12900
|
* @throws {RequiredError}
|
|
12885
12901
|
*/
|
|
12886
12902
|
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderResponse>;
|
|
12903
|
+
/**
|
|
12904
|
+
*
|
|
12905
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
12906
|
+
* @param {*} [options] Override http request option.
|
|
12907
|
+
* @throws {RequiredError}
|
|
12908
|
+
*/
|
|
12909
|
+
getOrderProductReview(requestParameters: OrderApiGetOrderProductReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<IReview>;
|
|
12887
12910
|
/**
|
|
12888
12911
|
*
|
|
12889
12912
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -13018,6 +13041,25 @@ export interface OrderApiGetOrderByIdRequest {
|
|
|
13018
13041
|
*/
|
|
13019
13042
|
readonly id: string;
|
|
13020
13043
|
}
|
|
13044
|
+
/**
|
|
13045
|
+
* Request parameters for getOrderProductReview operation in OrderApi.
|
|
13046
|
+
* @export
|
|
13047
|
+
* @interface OrderApiGetOrderProductReviewRequest
|
|
13048
|
+
*/
|
|
13049
|
+
export interface OrderApiGetOrderProductReviewRequest {
|
|
13050
|
+
/**
|
|
13051
|
+
*
|
|
13052
|
+
* @type {string}
|
|
13053
|
+
* @memberof OrderApiGetOrderProductReview
|
|
13054
|
+
*/
|
|
13055
|
+
readonly id: string;
|
|
13056
|
+
/**
|
|
13057
|
+
*
|
|
13058
|
+
* @type {string}
|
|
13059
|
+
* @memberof OrderApiGetOrderProductReview
|
|
13060
|
+
*/
|
|
13061
|
+
readonly productId: string;
|
|
13062
|
+
}
|
|
13021
13063
|
/**
|
|
13022
13064
|
* Request parameters for getOrders operation in OrderApi.
|
|
13023
13065
|
* @export
|
|
@@ -13157,6 +13199,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
13157
13199
|
* @memberof OrderApi
|
|
13158
13200
|
*/
|
|
13159
13201
|
getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderResponse, any>>;
|
|
13202
|
+
/**
|
|
13203
|
+
*
|
|
13204
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
13205
|
+
* @param {*} [options] Override http request option.
|
|
13206
|
+
* @throws {RequiredError}
|
|
13207
|
+
* @memberof OrderApi
|
|
13208
|
+
*/
|
|
13209
|
+
getOrderProductReview(requestParameters: OrderApiGetOrderProductReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IReview, any>>;
|
|
13160
13210
|
/**
|
|
13161
13211
|
*
|
|
13162
13212
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -2610,6 +2610,38 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2610
2610
|
options: localVarRequestOptions,
|
|
2611
2611
|
};
|
|
2612
2612
|
},
|
|
2613
|
+
/**
|
|
2614
|
+
*
|
|
2615
|
+
* @param {string} id
|
|
2616
|
+
* @param {string} productId
|
|
2617
|
+
* @param {*} [options] Override http request option.
|
|
2618
|
+
* @throws {RequiredError}
|
|
2619
|
+
*/
|
|
2620
|
+
getOrderProductReview: async (id, productId, options = {}) => {
|
|
2621
|
+
// verify required parameter 'id' is not null or undefined
|
|
2622
|
+
(0, common_1.assertParamExists)('getOrderProductReview', 'id', id);
|
|
2623
|
+
// verify required parameter 'productId' is not null or undefined
|
|
2624
|
+
(0, common_1.assertParamExists)('getOrderProductReview', 'productId', productId);
|
|
2625
|
+
const localVarPath = `/api/orders/{id}/product/{productId}/review`
|
|
2626
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
2627
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2629
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2630
|
+
let baseOptions;
|
|
2631
|
+
if (configuration) {
|
|
2632
|
+
baseOptions = configuration.baseOptions;
|
|
2633
|
+
}
|
|
2634
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2635
|
+
const localVarHeaderParameter = {};
|
|
2636
|
+
const localVarQueryParameter = {};
|
|
2637
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2638
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2639
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2640
|
+
return {
|
|
2641
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2642
|
+
options: localVarRequestOptions,
|
|
2643
|
+
};
|
|
2644
|
+
},
|
|
2613
2645
|
/**
|
|
2614
2646
|
*
|
|
2615
2647
|
* @param {string} company
|
|
@@ -2796,6 +2828,19 @@ const OrderApiFp = function (configuration) {
|
|
|
2796
2828
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
|
|
2797
2829
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2798
2830
|
},
|
|
2831
|
+
/**
|
|
2832
|
+
*
|
|
2833
|
+
* @param {string} id
|
|
2834
|
+
* @param {string} productId
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
async getOrderProductReview(id, productId, options) {
|
|
2839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderProductReview(id, productId, options);
|
|
2840
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2841
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderProductReview']?.[localVarOperationServerIndex]?.url;
|
|
2842
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2843
|
+
},
|
|
2799
2844
|
/**
|
|
2800
2845
|
*
|
|
2801
2846
|
* @param {string} company
|
|
@@ -2886,6 +2931,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2886
2931
|
getOrderById(requestParameters, options) {
|
|
2887
2932
|
return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2888
2933
|
},
|
|
2934
|
+
/**
|
|
2935
|
+
*
|
|
2936
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
2937
|
+
* @param {*} [options] Override http request option.
|
|
2938
|
+
* @throws {RequiredError}
|
|
2939
|
+
*/
|
|
2940
|
+
getOrderProductReview(requestParameters, options) {
|
|
2941
|
+
return localVarFp.getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
2942
|
+
},
|
|
2889
2943
|
/**
|
|
2890
2944
|
*
|
|
2891
2945
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -2964,6 +3018,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2964
3018
|
getOrderById(requestParameters, options) {
|
|
2965
3019
|
return (0, exports.OrderApiFp)(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2966
3020
|
}
|
|
3021
|
+
/**
|
|
3022
|
+
*
|
|
3023
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
3024
|
+
* @param {*} [options] Override http request option.
|
|
3025
|
+
* @throws {RequiredError}
|
|
3026
|
+
* @memberof OrderApi
|
|
3027
|
+
*/
|
|
3028
|
+
getOrderProductReview(requestParameters, options) {
|
|
3029
|
+
return (0, exports.OrderApiFp)(this.configuration).getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
3030
|
+
}
|
|
2967
3031
|
/**
|
|
2968
3032
|
*
|
|
2969
3033
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -2575,6 +2575,38 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2575
2575
|
options: localVarRequestOptions,
|
|
2576
2576
|
};
|
|
2577
2577
|
},
|
|
2578
|
+
/**
|
|
2579
|
+
*
|
|
2580
|
+
* @param {string} id
|
|
2581
|
+
* @param {string} productId
|
|
2582
|
+
* @param {*} [options] Override http request option.
|
|
2583
|
+
* @throws {RequiredError}
|
|
2584
|
+
*/
|
|
2585
|
+
getOrderProductReview: async (id, productId, options = {}) => {
|
|
2586
|
+
// verify required parameter 'id' is not null or undefined
|
|
2587
|
+
assertParamExists('getOrderProductReview', 'id', id);
|
|
2588
|
+
// verify required parameter 'productId' is not null or undefined
|
|
2589
|
+
assertParamExists('getOrderProductReview', 'productId', productId);
|
|
2590
|
+
const localVarPath = `/api/orders/{id}/product/{productId}/review`
|
|
2591
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
2592
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
2593
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2594
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2595
|
+
let baseOptions;
|
|
2596
|
+
if (configuration) {
|
|
2597
|
+
baseOptions = configuration.baseOptions;
|
|
2598
|
+
}
|
|
2599
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2600
|
+
const localVarHeaderParameter = {};
|
|
2601
|
+
const localVarQueryParameter = {};
|
|
2602
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2603
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2604
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2605
|
+
return {
|
|
2606
|
+
url: toPathString(localVarUrlObj),
|
|
2607
|
+
options: localVarRequestOptions,
|
|
2608
|
+
};
|
|
2609
|
+
},
|
|
2578
2610
|
/**
|
|
2579
2611
|
*
|
|
2580
2612
|
* @param {string} company
|
|
@@ -2760,6 +2792,19 @@ export const OrderApiFp = function (configuration) {
|
|
|
2760
2792
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
|
|
2761
2793
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2762
2794
|
},
|
|
2795
|
+
/**
|
|
2796
|
+
*
|
|
2797
|
+
* @param {string} id
|
|
2798
|
+
* @param {string} productId
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
async getOrderProductReview(id, productId, options) {
|
|
2803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderProductReview(id, productId, options);
|
|
2804
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2805
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderProductReview']?.[localVarOperationServerIndex]?.url;
|
|
2806
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2807
|
+
},
|
|
2763
2808
|
/**
|
|
2764
2809
|
*
|
|
2765
2810
|
* @param {string} company
|
|
@@ -2849,6 +2894,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2849
2894
|
getOrderById(requestParameters, options) {
|
|
2850
2895
|
return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2851
2896
|
},
|
|
2897
|
+
/**
|
|
2898
|
+
*
|
|
2899
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
getOrderProductReview(requestParameters, options) {
|
|
2904
|
+
return localVarFp.getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
2905
|
+
},
|
|
2852
2906
|
/**
|
|
2853
2907
|
*
|
|
2854
2908
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -2926,6 +2980,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2926
2980
|
getOrderById(requestParameters, options) {
|
|
2927
2981
|
return OrderApiFp(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2928
2982
|
}
|
|
2983
|
+
/**
|
|
2984
|
+
*
|
|
2985
|
+
* @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
|
|
2986
|
+
* @param {*} [options] Override http request option.
|
|
2987
|
+
* @throws {RequiredError}
|
|
2988
|
+
* @memberof OrderApi
|
|
2989
|
+
*/
|
|
2990
|
+
getOrderProductReview(requestParameters, options) {
|
|
2991
|
+
return OrderApiFp(this.configuration).getOrderProductReview(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
2992
|
+
}
|
|
2929
2993
|
/**
|
|
2930
2994
|
*
|
|
2931
2995
|
* @param {OrderApiGetOrdersRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.81",
|
|
4
4
|
"description": "api-client-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": "80cc0e0a67046f49370c3f8e1613c417ff655f0d"
|
|
41
41
|
}
|