@infisale-client/api-client 1.2.20 → 1.2.22
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
|
|
@@ -10332,6 +10351,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
10332
10351
|
* @throws {RequiredError}
|
|
10333
10352
|
*/
|
|
10334
10353
|
createOrder: (iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10354
|
+
/**
|
|
10355
|
+
*
|
|
10356
|
+
* @param {OrderStatusEnum} [status]
|
|
10357
|
+
* @param {*} [options] Override http request option.
|
|
10358
|
+
* @throws {RequiredError}
|
|
10359
|
+
*/
|
|
10360
|
+
getMyOrders: (status?: OrderStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10335
10361
|
/**
|
|
10336
10362
|
*
|
|
10337
10363
|
* @param {string} id
|
|
@@ -10341,6 +10367,7 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
10341
10367
|
getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10342
10368
|
/**
|
|
10343
10369
|
*
|
|
10370
|
+
* @param {string} company
|
|
10344
10371
|
* @param {number} [page]
|
|
10345
10372
|
* @param {number} [itemsPerPage]
|
|
10346
10373
|
* @param {string} [search]
|
|
@@ -10349,13 +10376,12 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
10349
10376
|
* @param {string} [dateField]
|
|
10350
10377
|
* @param {OrderEnum} [order]
|
|
10351
10378
|
* @param {string} [sort]
|
|
10352
|
-
* @param {string} [company]
|
|
10353
10379
|
* @param {string} [user]
|
|
10354
10380
|
* @param {OrderStatusEnum} [status]
|
|
10355
10381
|
* @param {*} [options] Override http request option.
|
|
10356
10382
|
* @throws {RequiredError}
|
|
10357
10383
|
*/
|
|
10358
|
-
getOrders: (page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
10384
|
+
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>;
|
|
10359
10385
|
};
|
|
10360
10386
|
/**
|
|
10361
10387
|
* OrderApi - functional programming interface
|
|
@@ -10369,6 +10395,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
10369
10395
|
* @throws {RequiredError}
|
|
10370
10396
|
*/
|
|
10371
10397
|
createOrder(iOrderPostRequest: IOrderPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
10398
|
+
/**
|
|
10399
|
+
*
|
|
10400
|
+
* @param {OrderStatusEnum} [status]
|
|
10401
|
+
* @param {*} [options] Override http request option.
|
|
10402
|
+
* @throws {RequiredError}
|
|
10403
|
+
*/
|
|
10404
|
+
getMyOrders(status?: OrderStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrdersResponse>>;
|
|
10372
10405
|
/**
|
|
10373
10406
|
*
|
|
10374
10407
|
* @param {string} id
|
|
@@ -10378,6 +10411,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
10378
10411
|
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
10379
10412
|
/**
|
|
10380
10413
|
*
|
|
10414
|
+
* @param {string} company
|
|
10381
10415
|
* @param {number} [page]
|
|
10382
10416
|
* @param {number} [itemsPerPage]
|
|
10383
10417
|
* @param {string} [search]
|
|
@@ -10386,13 +10420,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
10386
10420
|
* @param {string} [dateField]
|
|
10387
10421
|
* @param {OrderEnum} [order]
|
|
10388
10422
|
* @param {string} [sort]
|
|
10389
|
-
* @param {string} [company]
|
|
10390
10423
|
* @param {string} [user]
|
|
10391
10424
|
* @param {OrderStatusEnum} [status]
|
|
10392
10425
|
* @param {*} [options] Override http request option.
|
|
10393
10426
|
* @throws {RequiredError}
|
|
10394
10427
|
*/
|
|
10395
|
-
getOrders(page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string,
|
|
10428
|
+
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>>;
|
|
10396
10429
|
};
|
|
10397
10430
|
/**
|
|
10398
10431
|
* OrderApi - factory interface
|
|
@@ -10406,6 +10439,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
10406
10439
|
* @throws {RequiredError}
|
|
10407
10440
|
*/
|
|
10408
10441
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderResponse>;
|
|
10442
|
+
/**
|
|
10443
|
+
*
|
|
10444
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
10445
|
+
* @param {*} [options] Override http request option.
|
|
10446
|
+
* @throws {RequiredError}
|
|
10447
|
+
*/
|
|
10448
|
+
getMyOrders(requestParameters?: OrderApiGetMyOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
10409
10449
|
/**
|
|
10410
10450
|
*
|
|
10411
10451
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -10419,7 +10459,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
10419
10459
|
* @param {*} [options] Override http request option.
|
|
10420
10460
|
* @throws {RequiredError}
|
|
10421
10461
|
*/
|
|
10422
|
-
getOrders(requestParameters
|
|
10462
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
10423
10463
|
};
|
|
10424
10464
|
/**
|
|
10425
10465
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -10434,6 +10474,19 @@ export interface OrderApiCreateOrderRequest {
|
|
|
10434
10474
|
*/
|
|
10435
10475
|
readonly iOrderPostRequest: IOrderPostRequest;
|
|
10436
10476
|
}
|
|
10477
|
+
/**
|
|
10478
|
+
* Request parameters for getMyOrders operation in OrderApi.
|
|
10479
|
+
* @export
|
|
10480
|
+
* @interface OrderApiGetMyOrdersRequest
|
|
10481
|
+
*/
|
|
10482
|
+
export interface OrderApiGetMyOrdersRequest {
|
|
10483
|
+
/**
|
|
10484
|
+
*
|
|
10485
|
+
* @type {OrderStatusEnum}
|
|
10486
|
+
* @memberof OrderApiGetMyOrders
|
|
10487
|
+
*/
|
|
10488
|
+
readonly status?: OrderStatusEnum;
|
|
10489
|
+
}
|
|
10437
10490
|
/**
|
|
10438
10491
|
* Request parameters for getOrderById operation in OrderApi.
|
|
10439
10492
|
* @export
|
|
@@ -10453,6 +10506,12 @@ export interface OrderApiGetOrderByIdRequest {
|
|
|
10453
10506
|
* @interface OrderApiGetOrdersRequest
|
|
10454
10507
|
*/
|
|
10455
10508
|
export interface OrderApiGetOrdersRequest {
|
|
10509
|
+
/**
|
|
10510
|
+
*
|
|
10511
|
+
* @type {string}
|
|
10512
|
+
* @memberof OrderApiGetOrders
|
|
10513
|
+
*/
|
|
10514
|
+
readonly company: string;
|
|
10456
10515
|
/**
|
|
10457
10516
|
*
|
|
10458
10517
|
* @type {number}
|
|
@@ -10501,12 +10560,6 @@ export interface OrderApiGetOrdersRequest {
|
|
|
10501
10560
|
* @memberof OrderApiGetOrders
|
|
10502
10561
|
*/
|
|
10503
10562
|
readonly sort?: string;
|
|
10504
|
-
/**
|
|
10505
|
-
*
|
|
10506
|
-
* @type {string}
|
|
10507
|
-
* @memberof OrderApiGetOrders
|
|
10508
|
-
*/
|
|
10509
|
-
readonly company?: string;
|
|
10510
10563
|
/**
|
|
10511
10564
|
*
|
|
10512
10565
|
* @type {string}
|
|
@@ -10535,6 +10588,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
10535
10588
|
* @memberof OrderApi
|
|
10536
10589
|
*/
|
|
10537
10590
|
createOrder(requestParameters: OrderApiCreateOrderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderResponse, any>>;
|
|
10591
|
+
/**
|
|
10592
|
+
*
|
|
10593
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
10594
|
+
* @param {*} [options] Override http request option.
|
|
10595
|
+
* @throws {RequiredError}
|
|
10596
|
+
* @memberof OrderApi
|
|
10597
|
+
*/
|
|
10598
|
+
getMyOrders(requestParameters?: OrderApiGetMyOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
10538
10599
|
/**
|
|
10539
10600
|
*
|
|
10540
10601
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -10550,7 +10611,7 @@ export declare class OrderApi extends BaseAPI {
|
|
|
10550
10611
|
* @throws {RequiredError}
|
|
10551
10612
|
* @memberof OrderApi
|
|
10552
10613
|
*/
|
|
10553
|
-
getOrders(requestParameters
|
|
10614
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
10554
10615
|
}
|
|
10555
10616
|
/**
|
|
10556
10617
|
* PageApi - axios parameter creator
|
package/dist/api/api.js
CHANGED
|
@@ -543,7 +543,8 @@ exports.OrderStatusEnum = {
|
|
|
543
543
|
CANCELED: 'canceled',
|
|
544
544
|
READY_TO_SHIP: 'ready_to_ship',
|
|
545
545
|
SHIPPED: 'shipped',
|
|
546
|
-
COMPLETED: 'completed'
|
|
546
|
+
COMPLETED: 'completed',
|
|
547
|
+
FAILED: 'failed'
|
|
547
548
|
};
|
|
548
549
|
/**
|
|
549
550
|
*
|
|
@@ -2223,6 +2224,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2223
2224
|
options: localVarRequestOptions,
|
|
2224
2225
|
};
|
|
2225
2226
|
},
|
|
2227
|
+
/**
|
|
2228
|
+
*
|
|
2229
|
+
* @param {OrderStatusEnum} [status]
|
|
2230
|
+
* @param {*} [options] Override http request option.
|
|
2231
|
+
* @throws {RequiredError}
|
|
2232
|
+
*/
|
|
2233
|
+
getMyOrders: async (status, options = {}) => {
|
|
2234
|
+
const localVarPath = `/api/orders/my`;
|
|
2235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2236
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2237
|
+
let baseOptions;
|
|
2238
|
+
if (configuration) {
|
|
2239
|
+
baseOptions = configuration.baseOptions;
|
|
2240
|
+
}
|
|
2241
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2242
|
+
const localVarHeaderParameter = {};
|
|
2243
|
+
const localVarQueryParameter = {};
|
|
2244
|
+
if (status !== undefined) {
|
|
2245
|
+
localVarQueryParameter['status'] = status;
|
|
2246
|
+
}
|
|
2247
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2249
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2250
|
+
return {
|
|
2251
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2252
|
+
options: localVarRequestOptions,
|
|
2253
|
+
};
|
|
2254
|
+
},
|
|
2226
2255
|
/**
|
|
2227
2256
|
*
|
|
2228
2257
|
* @param {string} id
|
|
@@ -2253,6 +2282,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2253
2282
|
},
|
|
2254
2283
|
/**
|
|
2255
2284
|
*
|
|
2285
|
+
* @param {string} company
|
|
2256
2286
|
* @param {number} [page]
|
|
2257
2287
|
* @param {number} [itemsPerPage]
|
|
2258
2288
|
* @param {string} [search]
|
|
@@ -2261,13 +2291,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2261
2291
|
* @param {string} [dateField]
|
|
2262
2292
|
* @param {OrderEnum} [order]
|
|
2263
2293
|
* @param {string} [sort]
|
|
2264
|
-
* @param {string} [company]
|
|
2265
2294
|
* @param {string} [user]
|
|
2266
2295
|
* @param {OrderStatusEnum} [status]
|
|
2267
2296
|
* @param {*} [options] Override http request option.
|
|
2268
2297
|
* @throws {RequiredError}
|
|
2269
2298
|
*/
|
|
2270
|
-
getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2299
|
+
getOrders: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options = {}) => {
|
|
2300
|
+
// verify required parameter 'company' is not null or undefined
|
|
2301
|
+
(0, common_1.assertParamExists)('getOrders', 'company', company);
|
|
2271
2302
|
const localVarPath = `/api/orders`;
|
|
2272
2303
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2273
2304
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2345,6 +2376,18 @@ const OrderApiFp = function (configuration) {
|
|
|
2345
2376
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
2346
2377
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2347
2378
|
},
|
|
2379
|
+
/**
|
|
2380
|
+
*
|
|
2381
|
+
* @param {OrderStatusEnum} [status]
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
async getMyOrders(status, options) {
|
|
2386
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
|
|
2387
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2388
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
|
|
2389
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2390
|
+
},
|
|
2348
2391
|
/**
|
|
2349
2392
|
*
|
|
2350
2393
|
* @param {string} id
|
|
@@ -2359,6 +2402,7 @@ const OrderApiFp = function (configuration) {
|
|
|
2359
2402
|
},
|
|
2360
2403
|
/**
|
|
2361
2404
|
*
|
|
2405
|
+
* @param {string} company
|
|
2362
2406
|
* @param {number} [page]
|
|
2363
2407
|
* @param {number} [itemsPerPage]
|
|
2364
2408
|
* @param {string} [search]
|
|
@@ -2367,14 +2411,13 @@ const OrderApiFp = function (configuration) {
|
|
|
2367
2411
|
* @param {string} [dateField]
|
|
2368
2412
|
* @param {OrderEnum} [order]
|
|
2369
2413
|
* @param {string} [sort]
|
|
2370
|
-
* @param {string} [company]
|
|
2371
2414
|
* @param {string} [user]
|
|
2372
2415
|
* @param {OrderStatusEnum} [status]
|
|
2373
2416
|
* @param {*} [options] Override http request option.
|
|
2374
2417
|
* @throws {RequiredError}
|
|
2375
2418
|
*/
|
|
2376
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2377
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2419
|
+
async getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options) {
|
|
2420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options);
|
|
2378
2421
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2379
2422
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
2380
2423
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2398,6 +2441,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2398
2441
|
createOrder(requestParameters, options) {
|
|
2399
2442
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
2400
2443
|
},
|
|
2444
|
+
/**
|
|
2445
|
+
*
|
|
2446
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
*/
|
|
2450
|
+
getMyOrders(requestParameters = {}, options) {
|
|
2451
|
+
return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2452
|
+
},
|
|
2401
2453
|
/**
|
|
2402
2454
|
*
|
|
2403
2455
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -2413,8 +2465,8 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2413
2465
|
* @param {*} [options] Override http request option.
|
|
2414
2466
|
* @throws {RequiredError}
|
|
2415
2467
|
*/
|
|
2416
|
-
getOrders(requestParameters
|
|
2417
|
-
return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2468
|
+
getOrders(requestParameters, options) {
|
|
2469
|
+
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));
|
|
2418
2470
|
},
|
|
2419
2471
|
};
|
|
2420
2472
|
};
|
|
@@ -2436,6 +2488,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2436
2488
|
createOrder(requestParameters, options) {
|
|
2437
2489
|
return (0, exports.OrderApiFp)(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2438
2490
|
}
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
2494
|
+
* @param {*} [options] Override http request option.
|
|
2495
|
+
* @throws {RequiredError}
|
|
2496
|
+
* @memberof OrderApi
|
|
2497
|
+
*/
|
|
2498
|
+
getMyOrders(requestParameters = {}, options) {
|
|
2499
|
+
return (0, exports.OrderApiFp)(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2500
|
+
}
|
|
2439
2501
|
/**
|
|
2440
2502
|
*
|
|
2441
2503
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -2453,8 +2515,8 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2453
2515
|
* @throws {RequiredError}
|
|
2454
2516
|
* @memberof OrderApi
|
|
2455
2517
|
*/
|
|
2456
|
-
getOrders(requestParameters
|
|
2457
|
-
return (0, exports.OrderApiFp)(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2518
|
+
getOrders(requestParameters, options) {
|
|
2519
|
+
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));
|
|
2458
2520
|
}
|
|
2459
2521
|
}
|
|
2460
2522
|
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
|
*
|
|
@@ -2189,6 +2190,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2189
2190
|
options: localVarRequestOptions,
|
|
2190
2191
|
};
|
|
2191
2192
|
},
|
|
2193
|
+
/**
|
|
2194
|
+
*
|
|
2195
|
+
* @param {OrderStatusEnum} [status]
|
|
2196
|
+
* @param {*} [options] Override http request option.
|
|
2197
|
+
* @throws {RequiredError}
|
|
2198
|
+
*/
|
|
2199
|
+
getMyOrders: async (status, options = {}) => {
|
|
2200
|
+
const localVarPath = `/api/orders/my`;
|
|
2201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2203
|
+
let baseOptions;
|
|
2204
|
+
if (configuration) {
|
|
2205
|
+
baseOptions = configuration.baseOptions;
|
|
2206
|
+
}
|
|
2207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2208
|
+
const localVarHeaderParameter = {};
|
|
2209
|
+
const localVarQueryParameter = {};
|
|
2210
|
+
if (status !== undefined) {
|
|
2211
|
+
localVarQueryParameter['status'] = status;
|
|
2212
|
+
}
|
|
2213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2215
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2216
|
+
return {
|
|
2217
|
+
url: toPathString(localVarUrlObj),
|
|
2218
|
+
options: localVarRequestOptions,
|
|
2219
|
+
};
|
|
2220
|
+
},
|
|
2192
2221
|
/**
|
|
2193
2222
|
*
|
|
2194
2223
|
* @param {string} id
|
|
@@ -2219,6 +2248,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2219
2248
|
},
|
|
2220
2249
|
/**
|
|
2221
2250
|
*
|
|
2251
|
+
* @param {string} company
|
|
2222
2252
|
* @param {number} [page]
|
|
2223
2253
|
* @param {number} [itemsPerPage]
|
|
2224
2254
|
* @param {string} [search]
|
|
@@ -2227,13 +2257,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2227
2257
|
* @param {string} [dateField]
|
|
2228
2258
|
* @param {OrderEnum} [order]
|
|
2229
2259
|
* @param {string} [sort]
|
|
2230
|
-
* @param {string} [company]
|
|
2231
2260
|
* @param {string} [user]
|
|
2232
2261
|
* @param {OrderStatusEnum} [status]
|
|
2233
2262
|
* @param {*} [options] Override http request option.
|
|
2234
2263
|
* @throws {RequiredError}
|
|
2235
2264
|
*/
|
|
2236
|
-
getOrders: async (page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2265
|
+
getOrders: async (company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options = {}) => {
|
|
2266
|
+
// verify required parameter 'company' is not null or undefined
|
|
2267
|
+
assertParamExists('getOrders', 'company', company);
|
|
2237
2268
|
const localVarPath = `/api/orders`;
|
|
2238
2269
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2239
2270
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2310,6 +2341,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
2310
2341
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
2311
2342
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2312
2343
|
},
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @param {OrderStatusEnum} [status]
|
|
2347
|
+
* @param {*} [options] Override http request option.
|
|
2348
|
+
* @throws {RequiredError}
|
|
2349
|
+
*/
|
|
2350
|
+
async getMyOrders(status, options) {
|
|
2351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMyOrders(status, options);
|
|
2352
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2353
|
+
const localVarOperationServerBasePath = operationServerMap['OrderApi.getMyOrders']?.[localVarOperationServerIndex]?.url;
|
|
2354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2355
|
+
},
|
|
2313
2356
|
/**
|
|
2314
2357
|
*
|
|
2315
2358
|
* @param {string} id
|
|
@@ -2324,6 +2367,7 @@ export const OrderApiFp = function (configuration) {
|
|
|
2324
2367
|
},
|
|
2325
2368
|
/**
|
|
2326
2369
|
*
|
|
2370
|
+
* @param {string} company
|
|
2327
2371
|
* @param {number} [page]
|
|
2328
2372
|
* @param {number} [itemsPerPage]
|
|
2329
2373
|
* @param {string} [search]
|
|
@@ -2332,14 +2376,13 @@ export const OrderApiFp = function (configuration) {
|
|
|
2332
2376
|
* @param {string} [dateField]
|
|
2333
2377
|
* @param {OrderEnum} [order]
|
|
2334
2378
|
* @param {string} [sort]
|
|
2335
|
-
* @param {string} [company]
|
|
2336
2379
|
* @param {string} [user]
|
|
2337
2380
|
* @param {OrderStatusEnum} [status]
|
|
2338
2381
|
* @param {*} [options] Override http request option.
|
|
2339
2382
|
* @throws {RequiredError}
|
|
2340
2383
|
*/
|
|
2341
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2342
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
2384
|
+
async getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options) {
|
|
2385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(company, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, user, status, options);
|
|
2343
2386
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2344
2387
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
2345
2388
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2362,6 +2405,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2362
2405
|
createOrder(requestParameters, options) {
|
|
2363
2406
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
2364
2407
|
},
|
|
2408
|
+
/**
|
|
2409
|
+
*
|
|
2410
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
getMyOrders(requestParameters = {}, options) {
|
|
2415
|
+
return localVarFp.getMyOrders(requestParameters.status, options).then((request) => request(axios, basePath));
|
|
2416
|
+
},
|
|
2365
2417
|
/**
|
|
2366
2418
|
*
|
|
2367
2419
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -2377,8 +2429,8 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2377
2429
|
* @param {*} [options] Override http request option.
|
|
2378
2430
|
* @throws {RequiredError}
|
|
2379
2431
|
*/
|
|
2380
|
-
getOrders(requestParameters
|
|
2381
|
-
return localVarFp.getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2432
|
+
getOrders(requestParameters, options) {
|
|
2433
|
+
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));
|
|
2382
2434
|
},
|
|
2383
2435
|
};
|
|
2384
2436
|
};
|
|
@@ -2399,6 +2451,16 @@ export class OrderApi extends BaseAPI {
|
|
|
2399
2451
|
createOrder(requestParameters, options) {
|
|
2400
2452
|
return OrderApiFp(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2401
2453
|
}
|
|
2454
|
+
/**
|
|
2455
|
+
*
|
|
2456
|
+
* @param {OrderApiGetMyOrdersRequest} requestParameters Request parameters.
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
* @memberof OrderApi
|
|
2460
|
+
*/
|
|
2461
|
+
getMyOrders(requestParameters = {}, options) {
|
|
2462
|
+
return OrderApiFp(this.configuration).getMyOrders(requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
2463
|
+
}
|
|
2402
2464
|
/**
|
|
2403
2465
|
*
|
|
2404
2466
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -2416,8 +2478,8 @@ export class OrderApi extends BaseAPI {
|
|
|
2416
2478
|
* @throws {RequiredError}
|
|
2417
2479
|
* @memberof OrderApi
|
|
2418
2480
|
*/
|
|
2419
|
-
getOrders(requestParameters
|
|
2420
|
-
return OrderApiFp(this.configuration).getOrders(requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.
|
|
2481
|
+
getOrders(requestParameters, options) {
|
|
2482
|
+
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));
|
|
2421
2483
|
}
|
|
2422
2484
|
}
|
|
2423
2485
|
/**
|
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.22",
|
|
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": "f5d2cde07236eb6740ad932b30e7d3eb4aa346d1"
|
|
41
41
|
}
|