@infisale-client/api 1.2.20 → 1.2.21
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 +142 -81
- package/dist/api/api.js +72 -10
- package/dist/api/api.mjs +72 -10
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -1887,11 +1887,11 @@ export interface ICompany {
|
|
|
1887
1887
|
'users': Array<PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesUsersInner>;
|
|
1888
1888
|
/**
|
|
1889
1889
|
*
|
|
1890
|
-
* @type {{ [key: string]:
|
|
1890
|
+
* @type {{ [key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean; }}
|
|
1891
1891
|
* @memberof ICompany
|
|
1892
1892
|
*/
|
|
1893
1893
|
'roles': {
|
|
1894
|
-
[key: string]:
|
|
1894
|
+
[key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean;
|
|
1895
1895
|
};
|
|
1896
1896
|
/**
|
|
1897
1897
|
*
|
|
@@ -2256,11 +2256,11 @@ export interface ICompanyAdminResponse {
|
|
|
2256
2256
|
'users': Array<ICompanyAdminResponseUsersInner>;
|
|
2257
2257
|
/**
|
|
2258
2258
|
*
|
|
2259
|
-
* @type {{ [key: string]:
|
|
2259
|
+
* @type {{ [key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean; }}
|
|
2260
2260
|
* @memberof ICompanyAdminResponse
|
|
2261
2261
|
*/
|
|
2262
2262
|
'roles': {
|
|
2263
|
-
[key: string]:
|
|
2263
|
+
[key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean;
|
|
2264
2264
|
};
|
|
2265
2265
|
/**
|
|
2266
2266
|
*
|
|
@@ -2647,11 +2647,11 @@ export interface ICompanyPatchRequest {
|
|
|
2647
2647
|
'email'?: string;
|
|
2648
2648
|
/**
|
|
2649
2649
|
*
|
|
2650
|
-
* @type {{ [key: string]:
|
|
2650
|
+
* @type {{ [key: string]: object; }}
|
|
2651
2651
|
* @memberof ICompanyPatchRequest
|
|
2652
2652
|
*/
|
|
2653
2653
|
'roles'?: {
|
|
2654
|
-
[key: string]:
|
|
2654
|
+
[key: string]: object;
|
|
2655
2655
|
};
|
|
2656
2656
|
/**
|
|
2657
2657
|
*
|
|
@@ -4908,7 +4908,7 @@ export interface IOrderCollectionQueryParams {
|
|
|
4908
4908
|
* @type {string}
|
|
4909
4909
|
* @memberof IOrderCollectionQueryParams
|
|
4910
4910
|
*/
|
|
4911
|
-
'company'
|
|
4911
|
+
'company': string;
|
|
4912
4912
|
/**
|
|
4913
4913
|
*
|
|
4914
4914
|
* @type {string}
|
|
@@ -5042,7 +5042,7 @@ export interface IOrderResponse {
|
|
|
5042
5042
|
* @type {number}
|
|
5043
5043
|
* @memberof IOrderResponse
|
|
5044
5044
|
*/
|
|
5045
|
-
'number'
|
|
5045
|
+
'number': number;
|
|
5046
5046
|
/**
|
|
5047
5047
|
*
|
|
5048
5048
|
* @type {Array<IOrderResponseProductsInner>}
|
|
@@ -5146,24 +5146,36 @@ export interface IOrderResponseProductsInner {
|
|
|
5146
5146
|
* @memberof IOrderResponseProductsInner
|
|
5147
5147
|
*/
|
|
5148
5148
|
'amount': number;
|
|
5149
|
+
/**
|
|
5150
|
+
*
|
|
5151
|
+
* @type {string}
|
|
5152
|
+
* @memberof IOrderResponseProductsInner
|
|
5153
|
+
*/
|
|
5154
|
+
'subVariantId'?: string;
|
|
5155
|
+
/**
|
|
5156
|
+
*
|
|
5157
|
+
* @type {string}
|
|
5158
|
+
* @memberof IOrderResponseProductsInner
|
|
5159
|
+
*/
|
|
5160
|
+
'mainVariantId'?: string;
|
|
5149
5161
|
/**
|
|
5150
5162
|
*
|
|
5151
5163
|
* @type {PartialRecordLanguageEnumString}
|
|
5152
5164
|
* @memberof IOrderResponseProductsInner
|
|
5153
5165
|
*/
|
|
5154
|
-
'subVariantTitle'
|
|
5166
|
+
'subVariantTitle': PartialRecordLanguageEnumString;
|
|
5155
5167
|
/**
|
|
5156
5168
|
*
|
|
5157
5169
|
* @type {PartialRecordLanguageEnumString}
|
|
5158
5170
|
* @memberof IOrderResponseProductsInner
|
|
5159
5171
|
*/
|
|
5160
|
-
'mainVariantTitle'
|
|
5172
|
+
'mainVariantTitle': PartialRecordLanguageEnumString;
|
|
5161
5173
|
/**
|
|
5162
5174
|
*
|
|
5163
5175
|
* @type {PartialRecordLanguageEnumString}
|
|
5164
5176
|
* @memberof IOrderResponseProductsInner
|
|
5165
5177
|
*/
|
|
5166
|
-
'productSlug'
|
|
5178
|
+
'productSlug': PartialRecordLanguageEnumString;
|
|
5167
5179
|
/**
|
|
5168
5180
|
*
|
|
5169
5181
|
* @type {string}
|
|
@@ -7621,6 +7633,7 @@ export declare const OrderStatusEnum: {
|
|
|
7621
7633
|
readonly READY_TO_SHIP: "ready_to_ship";
|
|
7622
7634
|
readonly SHIPPED: "shipped";
|
|
7623
7635
|
readonly COMPLETED: "completed";
|
|
7636
|
+
readonly FAILED: "failed";
|
|
7624
7637
|
};
|
|
7625
7638
|
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
7626
7639
|
/**
|
|
@@ -8249,11 +8262,11 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles {
|
|
|
8249
8262
|
'name': string;
|
|
8250
8263
|
/**
|
|
8251
8264
|
*
|
|
8252
|
-
* @type {{ [key: string]:
|
|
8265
|
+
* @type {{ [key: string]: object; }}
|
|
8253
8266
|
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
8254
8267
|
*/
|
|
8255
8268
|
'roles': {
|
|
8256
|
-
[key: string]:
|
|
8269
|
+
[key: string]: object;
|
|
8257
8270
|
};
|
|
8258
8271
|
/**
|
|
8259
8272
|
*
|
|
@@ -8286,62 +8299,6 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles {
|
|
|
8286
8299
|
*/
|
|
8287
8300
|
'domains': Array<string>;
|
|
8288
8301
|
}
|
|
8289
|
-
/**
|
|
8290
|
-
*
|
|
8291
|
-
* @export
|
|
8292
|
-
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8293
|
-
*/
|
|
8294
|
-
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue {
|
|
8295
|
-
/**
|
|
8296
|
-
*
|
|
8297
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8298
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8299
|
-
*/
|
|
8300
|
-
'config': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8301
|
-
/**
|
|
8302
|
-
*
|
|
8303
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8304
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8305
|
-
*/
|
|
8306
|
-
'navigation': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8307
|
-
/**
|
|
8308
|
-
*
|
|
8309
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8310
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8311
|
-
*/
|
|
8312
|
-
'company': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8313
|
-
/**
|
|
8314
|
-
*
|
|
8315
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8316
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8317
|
-
*/
|
|
8318
|
-
'page': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8319
|
-
/**
|
|
8320
|
-
*
|
|
8321
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8322
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8323
|
-
*/
|
|
8324
|
-
'product': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8325
|
-
}
|
|
8326
|
-
/**
|
|
8327
|
-
*
|
|
8328
|
-
* @export
|
|
8329
|
-
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8330
|
-
*/
|
|
8331
|
-
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig {
|
|
8332
|
-
/**
|
|
8333
|
-
*
|
|
8334
|
-
* @type {boolean}
|
|
8335
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8336
|
-
*/
|
|
8337
|
-
'd': boolean;
|
|
8338
|
-
/**
|
|
8339
|
-
*
|
|
8340
|
-
* @type {boolean}
|
|
8341
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8342
|
-
*/
|
|
8343
|
-
'm': boolean;
|
|
8344
|
-
}
|
|
8345
8302
|
/**
|
|
8346
8303
|
*
|
|
8347
8304
|
* @export
|
|
@@ -9119,6 +9076,68 @@ export interface RecordCurrencyEnumNumber {
|
|
|
9119
9076
|
*/
|
|
9120
9077
|
'jpy': number;
|
|
9121
9078
|
}
|
|
9079
|
+
/**
|
|
9080
|
+
* Construct a type with a set of properties K of type T
|
|
9081
|
+
* @export
|
|
9082
|
+
* @interface RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9083
|
+
*/
|
|
9084
|
+
export interface RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean {
|
|
9085
|
+
/**
|
|
9086
|
+
*
|
|
9087
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9088
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9089
|
+
*/
|
|
9090
|
+
'company': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9091
|
+
/**
|
|
9092
|
+
*
|
|
9093
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9094
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9095
|
+
*/
|
|
9096
|
+
'config': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9097
|
+
/**
|
|
9098
|
+
*
|
|
9099
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9100
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9101
|
+
*/
|
|
9102
|
+
'product': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9103
|
+
/**
|
|
9104
|
+
*
|
|
9105
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9106
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9107
|
+
*/
|
|
9108
|
+
'page': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9109
|
+
/**
|
|
9110
|
+
*
|
|
9111
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9112
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9113
|
+
*/
|
|
9114
|
+
'navigation': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9115
|
+
/**
|
|
9116
|
+
*
|
|
9117
|
+
* @type {RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany}
|
|
9118
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean
|
|
9119
|
+
*/
|
|
9120
|
+
'order': RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany;
|
|
9121
|
+
}
|
|
9122
|
+
/**
|
|
9123
|
+
*
|
|
9124
|
+
* @export
|
|
9125
|
+
* @interface RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany
|
|
9126
|
+
*/
|
|
9127
|
+
export interface RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany {
|
|
9128
|
+
/**
|
|
9129
|
+
*
|
|
9130
|
+
* @type {boolean}
|
|
9131
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany
|
|
9132
|
+
*/
|
|
9133
|
+
'd': boolean;
|
|
9134
|
+
/**
|
|
9135
|
+
*
|
|
9136
|
+
* @type {boolean}
|
|
9137
|
+
* @memberof RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBooleanCompany
|
|
9138
|
+
*/
|
|
9139
|
+
'm': boolean;
|
|
9140
|
+
}
|
|
9122
9141
|
/**
|
|
9123
9142
|
*
|
|
9124
9143
|
* @export
|
|
@@ -13716,6 +13735,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13716
13735
|
* @throws {RequiredError}
|
|
13717
13736
|
*/
|
|
13718
13737
|
createOrder: (iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13738
|
+
/**
|
|
13739
|
+
*
|
|
13740
|
+
* @param {OrderStatusEnum} [status]
|
|
13741
|
+
* @param {*} [options] Override http request option.
|
|
13742
|
+
* @throws {RequiredError}
|
|
13743
|
+
*/
|
|
13744
|
+
getMyOrders: (status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13719
13745
|
/**
|
|
13720
13746
|
*
|
|
13721
13747
|
* @param {string} id
|
|
@@ -13725,6 +13751,7 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13725
13751
|
getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13726
13752
|
/**
|
|
13727
13753
|
*
|
|
13754
|
+
* @param {string} company
|
|
13728
13755
|
* @param {number} [page]
|
|
13729
13756
|
* @param {number} [itemsPerPage]
|
|
13730
13757
|
* @param {string} [search]
|
|
@@ -13733,13 +13760,12 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13733
13760
|
* @param {string} [dateField]
|
|
13734
13761
|
* @param {OrderEnum} [order]
|
|
13735
13762
|
* @param {string} [sort]
|
|
13736
|
-
* @param {string} [company]
|
|
13737
13763
|
* @param {string} [user]
|
|
13738
13764
|
* @param {OrderStatusEnum} [status]
|
|
13739
13765
|
* @param {*} [options] Override http request option.
|
|
13740
13766
|
* @throws {RequiredError}
|
|
13741
13767
|
*/
|
|
13742
|
-
getOrders: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
13768
|
+
getOrders: (company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13743
13769
|
};
|
|
13744
13770
|
/**
|
|
13745
13771
|
* OrderApi - functional programming interface
|
|
@@ -13753,6 +13779,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13753
13779
|
* @throws {RequiredError}
|
|
13754
13780
|
*/
|
|
13755
13781
|
createOrder(iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
13782
|
+
/**
|
|
13783
|
+
*
|
|
13784
|
+
* @param {OrderStatusEnum} [status]
|
|
13785
|
+
* @param {*} [options] Override http request option.
|
|
13786
|
+
* @throws {RequiredError}
|
|
13787
|
+
*/
|
|
13788
|
+
getMyOrders(status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
|
|
13756
13789
|
/**
|
|
13757
13790
|
*
|
|
13758
13791
|
* @param {string} id
|
|
@@ -13762,6 +13795,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13762
13795
|
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
13763
13796
|
/**
|
|
13764
13797
|
*
|
|
13798
|
+
* @param {string} company
|
|
13765
13799
|
* @param {number} [page]
|
|
13766
13800
|
* @param {number} [itemsPerPage]
|
|
13767
13801
|
* @param {string} [search]
|
|
@@ -13770,13 +13804,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13770
13804
|
* @param {string} [dateField]
|
|
13771
13805
|
* @param {OrderEnum} [order]
|
|
13772
13806
|
* @param {string} [sort]
|
|
13773
|
-
* @param {string} [company]
|
|
13774
13807
|
* @param {string} [user]
|
|
13775
13808
|
* @param {OrderStatusEnum} [status]
|
|
13776
13809
|
* @param {*} [options] Override http request option.
|
|
13777
13810
|
* @throws {RequiredError}
|
|
13778
13811
|
*/
|
|
13779
|
-
getOrders(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
13812
|
+
getOrders(company: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, user?: string, status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
|
|
13780
13813
|
};
|
|
13781
13814
|
/**
|
|
13782
13815
|
* OrderApi - factory interface
|
|
@@ -13790,6 +13823,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
13790
13823
|
* @throws {RequiredError}
|
|
13791
13824
|
*/
|
|
13792
13825
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderResponse>;
|
|
13826
|
+
/**
|
|
13827
|
+
*
|
|
13828
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
13829
|
+
* @param {*} [options] Override http request option.
|
|
13830
|
+
* @throws {RequiredError}
|
|
13831
|
+
*/
|
|
13832
|
+
getMyOrders(requestParameters?: OrderApiGetMyOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
13793
13833
|
/**
|
|
13794
13834
|
*
|
|
13795
13835
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -13803,7 +13843,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
13803
13843
|
* @param {*} [options] Override http request option.
|
|
13804
13844
|
* @throws {RequiredError}
|
|
13805
13845
|
*/
|
|
13806
|
-
getOrders(requestParameters
|
|
13846
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
13807
13847
|
};
|
|
13808
13848
|
/**
|
|
13809
13849
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -13818,6 +13858,19 @@ export interface OrderApiCreateOrderRequest {
|
|
|
13818
13858
|
*/
|
|
13819
13859
|
readonly iOrderPostRequest: IOrderPostRequest;
|
|
13820
13860
|
}
|
|
13861
|
+
/**
|
|
13862
|
+
* Request parameters for getMyOrders operation in OrderApi.
|
|
13863
|
+
* @export
|
|
13864
|
+
* @interface OrderApiGetMyOrdersRequest
|
|
13865
|
+
*/
|
|
13866
|
+
export interface OrderApiGetMyOrdersRequest {
|
|
13867
|
+
/**
|
|
13868
|
+
*
|
|
13869
|
+
* @type {OrderStatusEnum}
|
|
13870
|
+
* @memberof OrderApiGetMyOrders
|
|
13871
|
+
*/
|
|
13872
|
+
readonly status?: OrderStatusEnum;
|
|
13873
|
+
}
|
|
13821
13874
|
/**
|
|
13822
13875
|
* Request parameters for getOrderById operation in OrderApi.
|
|
13823
13876
|
* @export
|
|
@@ -13837,6 +13890,12 @@ export interface OrderApiGetOrderByIdRequest {
|
|
|
13837
13890
|
* @interface OrderApiGetOrdersRequest
|
|
13838
13891
|
*/
|
|
13839
13892
|
export interface OrderApiGetOrdersRequest {
|
|
13893
|
+
/**
|
|
13894
|
+
*
|
|
13895
|
+
* @type {string}
|
|
13896
|
+
* @memberof OrderApiGetOrders
|
|
13897
|
+
*/
|
|
13898
|
+
readonly company: string;
|
|
13840
13899
|
/**
|
|
13841
13900
|
*
|
|
13842
13901
|
* @type {number}
|
|
@@ -13885,12 +13944,6 @@ export interface OrderApiGetOrdersRequest {
|
|
|
13885
13944
|
* @memberof OrderApiGetOrders
|
|
13886
13945
|
*/
|
|
13887
13946
|
readonly sort?: string;
|
|
13888
|
-
/**
|
|
13889
|
-
*
|
|
13890
|
-
* @type {string}
|
|
13891
|
-
* @memberof OrderApiGetOrders
|
|
13892
|
-
*/
|
|
13893
|
-
readonly company?: string;
|
|
13894
13947
|
/**
|
|
13895
13948
|
*
|
|
13896
13949
|
* @type {string}
|
|
@@ -13919,6 +13972,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
13919
13972
|
* @memberof OrderApi
|
|
13920
13973
|
*/
|
|
13921
13974
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderResponse, any>>;
|
|
13975
|
+
/**
|
|
13976
|
+
*
|
|
13977
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
13978
|
+
* @param {*} [options] Override http request option.
|
|
13979
|
+
* @throws {RequiredError}
|
|
13980
|
+
* @memberof OrderApi
|
|
13981
|
+
*/
|
|
13982
|
+
getMyOrders(requestParameters?: OrderApiGetMyOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
13922
13983
|
/**
|
|
13923
13984
|
*
|
|
13924
13985
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -13934,7 +13995,7 @@ export declare class OrderApi extends BaseAPI {
|
|
|
13934
13995
|
* @throws {RequiredError}
|
|
13935
13996
|
* @memberof OrderApi
|
|
13936
13997
|
*/
|
|
13937
|
-
getOrders(requestParameters
|
|
13998
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
13938
13999
|
}
|
|
13939
14000
|
/**
|
|
13940
14001
|
* PageApi - axios parameter creator
|
package/dist/api/api.js
CHANGED
|
@@ -544,7 +544,8 @@ exports.OrderStatusEnum = {
|
|
|
544
544
|
CANCELED: 'canceled',
|
|
545
545
|
READY_TO_SHIP: 'ready_to_ship',
|
|
546
546
|
SHIPPED: 'shipped',
|
|
547
|
-
COMPLETED: 'completed'
|
|
547
|
+
COMPLETED: 'completed',
|
|
548
|
+
FAILED: 'failed'
|
|
548
549
|
};
|
|
549
550
|
/**
|
|
550
551
|
*
|
|
@@ -6412,6 +6413,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6412
6413
|
options: localVarRequestOptions,
|
|
6413
6414
|
};
|
|
6414
6415
|
},
|
|
6416
|
+
/**
|
|
6417
|
+
*
|
|
6418
|
+
* @param {OrderStatusEnum} [status]
|
|
6419
|
+
* @param {*} [options] Override http request option.
|
|
6420
|
+
* @throws {RequiredError}
|
|
6421
|
+
*/
|
|
6422
|
+
getMyOrders: async (status, options = {}) => {
|
|
6423
|
+
const localVarPath = `/api/orders/my`;
|
|
6424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6425
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6426
|
+
let baseOptions;
|
|
6427
|
+
if (configuration) {
|
|
6428
|
+
baseOptions = configuration.baseOptions;
|
|
6429
|
+
}
|
|
6430
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6431
|
+
const localVarHeaderParameter = {};
|
|
6432
|
+
const localVarQueryParameter = {};
|
|
6433
|
+
if (status !== undefined) {
|
|
6434
|
+
localVarQueryParameter['status'] = status;
|
|
6435
|
+
}
|
|
6436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6438
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6439
|
+
return {
|
|
6440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6441
|
+
options: localVarRequestOptions,
|
|
6442
|
+
};
|
|
6443
|
+
},
|
|
6415
6444
|
/**
|
|
6416
6445
|
*
|
|
6417
6446
|
* @param {string} id
|
|
@@ -6442,6 +6471,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6442
6471
|
},
|
|
6443
6472
|
/**
|
|
6444
6473
|
*
|
|
6474
|
+
* @param {string} company
|
|
6445
6475
|
* @param {number} [page]
|
|
6446
6476
|
* @param {number} [itemsPerPage]
|
|
6447
6477
|
* @param {string} [search]
|
|
@@ -6450,13 +6480,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6450
6480
|
* @param {string} [dateField]
|
|
6451
6481
|
* @param {OrderEnum} [order]
|
|
6452
6482
|
* @param {string} [sort]
|
|
6453
|
-
* @param {string} [company]
|
|
6454
6483
|
* @param {string} [user]
|
|
6455
6484
|
* @param {OrderStatusEnum} [status]
|
|
6456
6485
|
* @param {*} [options] Override http request option.
|
|
6457
6486
|
* @throws {RequiredError}
|
|
6458
6487
|
*/
|
|
6459
|
-
getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6488
|
+
getOrders: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options = {}) => {
|
|
6489
|
+
// verify required parameter 'company' is not null or undefined
|
|
6490
|
+
(0, common_1.assertParamExists)('getOrders', 'company', company);
|
|
6460
6491
|
const localVarPath = `/api/orders`;
|
|
6461
6492
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6462
6493
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6534,6 +6565,18 @@ const OrderApiFp = function (configuration) {
|
|
|
6534
6565
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
6535
6566
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6536
6567
|
},
|
|
6568
|
+
/**
|
|
6569
|
+
*
|
|
6570
|
+
* @param {OrderStatusEnum} [status]
|
|
6571
|
+
* @param {*} [options] Override http request option.
|
|
6572
|
+
* @throws {RequiredError}
|
|
6573
|
+
*/
|
|
6574
|
+
async getMyOrders(status, options) {
|
|
6575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
|
|
6576
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
|
|
6578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6579
|
+
},
|
|
6537
6580
|
/**
|
|
6538
6581
|
*
|
|
6539
6582
|
* @param {string} id
|
|
@@ -6548,6 +6591,7 @@ const OrderApiFp = function (configuration) {
|
|
|
6548
6591
|
},
|
|
6549
6592
|
/**
|
|
6550
6593
|
*
|
|
6594
|
+
* @param {string} company
|
|
6551
6595
|
* @param {number} [page]
|
|
6552
6596
|
* @param {number} [itemsPerPage]
|
|
6553
6597
|
* @param {string} [search]
|
|
@@ -6556,14 +6600,13 @@ const OrderApiFp = function (configuration) {
|
|
|
6556
6600
|
* @param {string} [dateField]
|
|
6557
6601
|
* @param {OrderEnum} [order]
|
|
6558
6602
|
* @param {string} [sort]
|
|
6559
|
-
* @param {string} [company]
|
|
6560
6603
|
* @param {string} [user]
|
|
6561
6604
|
* @param {OrderStatusEnum} [status]
|
|
6562
6605
|
* @param {*} [options] Override http request option.
|
|
6563
6606
|
* @throws {RequiredError}
|
|
6564
6607
|
*/
|
|
6565
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6566
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6608
|
+
async getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options) {
|
|
6609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options);
|
|
6567
6610
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6568
6611
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
6569
6612
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6587,6 +6630,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6587
6630
|
createOrder(requestParameters, options) {
|
|
6588
6631
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
6589
6632
|
},
|
|
6633
|
+
/**
|
|
6634
|
+
*
|
|
6635
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6636
|
+
* @param {*} [options] Override http request option.
|
|
6637
|
+
* @throws {RequiredError}
|
|
6638
|
+
*/
|
|
6639
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6640
|
+
return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6641
|
+
},
|
|
6590
6642
|
/**
|
|
6591
6643
|
*
|
|
6592
6644
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6602,8 +6654,8 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6602
6654
|
* @param {*} [options] Override http request option.
|
|
6603
6655
|
* @throws {RequiredError}
|
|
6604
6656
|
*/
|
|
6605
|
-
getOrders(requestParameters
|
|
6606
|
-
return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6657
|
+
getOrders(requestParameters, options) {
|
|
6658
|
+
return localVarFp.getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6607
6659
|
},
|
|
6608
6660
|
};
|
|
6609
6661
|
};
|
|
@@ -6625,6 +6677,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6625
6677
|
createOrder(requestParameters, options) {
|
|
6626
6678
|
return (0, exports.OrderApiFp)(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6627
6679
|
}
|
|
6680
|
+
/**
|
|
6681
|
+
*
|
|
6682
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6683
|
+
* @param {*} [options] Override http request option.
|
|
6684
|
+
* @throws {RequiredError}
|
|
6685
|
+
* @memberof OrderApi
|
|
6686
|
+
*/
|
|
6687
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6688
|
+
return (0, exports.OrderApiFp)(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6689
|
+
}
|
|
6628
6690
|
/**
|
|
6629
6691
|
*
|
|
6630
6692
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6642,8 +6704,8 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6642
6704
|
* @throws {RequiredError}
|
|
6643
6705
|
* @memberof OrderApi
|
|
6644
6706
|
*/
|
|
6645
|
-
getOrders(requestParameters
|
|
6646
|
-
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6707
|
+
getOrders(requestParameters, options) {
|
|
6708
|
+
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6647
6709
|
}
|
|
6648
6710
|
}
|
|
6649
6711
|
exports.OrderApi = OrderApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -533,7 +533,8 @@ export const OrderStatusEnum = {
|
|
|
533
533
|
CANCELED: 'canceled',
|
|
534
534
|
READY_TO_SHIP: 'ready_to_ship',
|
|
535
535
|
SHIPPED: 'shipped',
|
|
536
|
-
COMPLETED: 'completed'
|
|
536
|
+
COMPLETED: 'completed',
|
|
537
|
+
FAILED: 'failed'
|
|
537
538
|
};
|
|
538
539
|
/**
|
|
539
540
|
*
|
|
@@ -6357,6 +6358,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6357
6358
|
options: localVarRequestOptions,
|
|
6358
6359
|
};
|
|
6359
6360
|
},
|
|
6361
|
+
/**
|
|
6362
|
+
*
|
|
6363
|
+
* @param {OrderStatusEnum} [status]
|
|
6364
|
+
* @param {*} [options] Override http request option.
|
|
6365
|
+
* @throws {RequiredError}
|
|
6366
|
+
*/
|
|
6367
|
+
getMyOrders: async (status, options = {}) => {
|
|
6368
|
+
const localVarPath = `/api/orders/my`;
|
|
6369
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6370
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6371
|
+
let baseOptions;
|
|
6372
|
+
if (configuration) {
|
|
6373
|
+
baseOptions = configuration.baseOptions;
|
|
6374
|
+
}
|
|
6375
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6376
|
+
const localVarHeaderParameter = {};
|
|
6377
|
+
const localVarQueryParameter = {};
|
|
6378
|
+
if (status !== undefined) {
|
|
6379
|
+
localVarQueryParameter['status'] = status;
|
|
6380
|
+
}
|
|
6381
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6383
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6384
|
+
return {
|
|
6385
|
+
url: toPathString(localVarUrlObj),
|
|
6386
|
+
options: localVarRequestOptions,
|
|
6387
|
+
};
|
|
6388
|
+
},
|
|
6360
6389
|
/**
|
|
6361
6390
|
*
|
|
6362
6391
|
* @param {string} id
|
|
@@ -6387,6 +6416,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6387
6416
|
},
|
|
6388
6417
|
/**
|
|
6389
6418
|
*
|
|
6419
|
+
* @param {string} company
|
|
6390
6420
|
* @param {number} [page]
|
|
6391
6421
|
* @param {number} [itemsPerPage]
|
|
6392
6422
|
* @param {string} [search]
|
|
@@ -6395,13 +6425,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6395
6425
|
* @param {string} [dateField]
|
|
6396
6426
|
* @param {OrderEnum} [order]
|
|
6397
6427
|
* @param {string} [sort]
|
|
6398
|
-
* @param {string} [company]
|
|
6399
6428
|
* @param {string} [user]
|
|
6400
6429
|
* @param {OrderStatusEnum} [status]
|
|
6401
6430
|
* @param {*} [options] Override http request option.
|
|
6402
6431
|
* @throws {RequiredError}
|
|
6403
6432
|
*/
|
|
6404
|
-
getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6433
|
+
getOrders: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options = {}) => {
|
|
6434
|
+
// verify required parameter 'company' is not null or undefined
|
|
6435
|
+
assertParamExists('getOrders', 'company', company);
|
|
6405
6436
|
const localVarPath = `/api/orders`;
|
|
6406
6437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6407
6438
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6478,6 +6509,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
6478
6509
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
6479
6510
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6480
6511
|
},
|
|
6512
|
+
/**
|
|
6513
|
+
*
|
|
6514
|
+
* @param {OrderStatusEnum} [status]
|
|
6515
|
+
* @param {*} [options] Override http request option.
|
|
6516
|
+
* @throws {RequiredError}
|
|
6517
|
+
*/
|
|
6518
|
+
async getMyOrders(status, options) {
|
|
6519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
|
|
6520
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6521
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
|
|
6522
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6523
|
+
},
|
|
6481
6524
|
/**
|
|
6482
6525
|
*
|
|
6483
6526
|
* @param {string} id
|
|
@@ -6492,6 +6535,7 @@ export const OrderApiFp = function (configuration) {
|
|
|
6492
6535
|
},
|
|
6493
6536
|
/**
|
|
6494
6537
|
*
|
|
6538
|
+
* @param {string} company
|
|
6495
6539
|
* @param {number} [page]
|
|
6496
6540
|
* @param {number} [itemsPerPage]
|
|
6497
6541
|
* @param {string} [search]
|
|
@@ -6500,14 +6544,13 @@ export const OrderApiFp = function (configuration) {
|
|
|
6500
6544
|
* @param {string} [dateField]
|
|
6501
6545
|
* @param {OrderEnum} [order]
|
|
6502
6546
|
* @param {string} [sort]
|
|
6503
|
-
* @param {string} [company]
|
|
6504
6547
|
* @param {string} [user]
|
|
6505
6548
|
* @param {OrderStatusEnum} [status]
|
|
6506
6549
|
* @param {*} [options] Override http request option.
|
|
6507
6550
|
* @throws {RequiredError}
|
|
6508
6551
|
*/
|
|
6509
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6510
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6552
|
+
async getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options) {
|
|
6553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options);
|
|
6511
6554
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6512
6555
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
6513
6556
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6530,6 +6573,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6530
6573
|
createOrder(requestParameters, options) {
|
|
6531
6574
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
6532
6575
|
},
|
|
6576
|
+
/**
|
|
6577
|
+
*
|
|
6578
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6579
|
+
* @param {*} [options] Override http request option.
|
|
6580
|
+
* @throws {RequiredError}
|
|
6581
|
+
*/
|
|
6582
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6583
|
+
return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6584
|
+
},
|
|
6533
6585
|
/**
|
|
6534
6586
|
*
|
|
6535
6587
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6545,8 +6597,8 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6545
6597
|
* @param {*} [options] Override http request option.
|
|
6546
6598
|
* @throws {RequiredError}
|
|
6547
6599
|
*/
|
|
6548
|
-
getOrders(requestParameters
|
|
6549
|
-
return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6600
|
+
getOrders(requestParameters, options) {
|
|
6601
|
+
return localVarFp.getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
6550
6602
|
},
|
|
6551
6603
|
};
|
|
6552
6604
|
};
|
|
@@ -6567,6 +6619,16 @@ export class OrderApi extends BaseAPI {
|
|
|
6567
6619
|
createOrder(requestParameters, options) {
|
|
6568
6620
|
return OrderApiFp(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6569
6621
|
}
|
|
6622
|
+
/**
|
|
6623
|
+
*
|
|
6624
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
6625
|
+
* @param {*} [options] Override http request option.
|
|
6626
|
+
* @throws {RequiredError}
|
|
6627
|
+
* @memberof OrderApi
|
|
6628
|
+
*/
|
|
6629
|
+
getMyOrders(requestParameters = {}, options) {
|
|
6630
|
+
return OrderApiFp(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6631
|
+
}
|
|
6570
6632
|
/**
|
|
6571
6633
|
*
|
|
6572
6634
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6584,8 +6646,8 @@ export class OrderApi extends BaseAPI {
|
|
|
6584
6646
|
* @throws {RequiredError}
|
|
6585
6647
|
* @memberof OrderApi
|
|
6586
6648
|
*/
|
|
6587
|
-
getOrders(requestParameters
|
|
6588
|
-
return OrderApiFp(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
6649
|
+
getOrders(requestParameters, options) {
|
|
6650
|
+
return OrderApiFp(this.configuration).getOrders(requestParameters.company, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.user, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
6589
6651
|
}
|
|
6590
6652
|
}
|
|
6591
6653
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
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": "f9e34f389e5f7f98b7cd930fa2e782b5f8b340e4"
|
|
41
41
|
}
|