@infisale-client/api 1.2.19 → 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 +214 -80
- package/dist/api/api.js +74 -11
- package/dist/api/api.mjs +74 -11
- 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
|
*
|
|
@@ -1907,6 +1907,18 @@ export interface ICompany {
|
|
|
1907
1907
|
* @memberof ICompany
|
|
1908
1908
|
*/
|
|
1909
1909
|
'description'?: string;
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @type {string}
|
|
1913
|
+
* @memberof ICompany
|
|
1914
|
+
*/
|
|
1915
|
+
'orderNoPrefix'?: string;
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {string}
|
|
1919
|
+
* @memberof ICompany
|
|
1920
|
+
*/
|
|
1921
|
+
'orderNoSuffix'?: string;
|
|
1910
1922
|
/**
|
|
1911
1923
|
*
|
|
1912
1924
|
* @type {ICompanyConfig}
|
|
@@ -2152,6 +2164,18 @@ export interface ICompanyAdminResponse {
|
|
|
2152
2164
|
* @memberof ICompanyAdminResponse
|
|
2153
2165
|
*/
|
|
2154
2166
|
'description'?: string;
|
|
2167
|
+
/**
|
|
2168
|
+
*
|
|
2169
|
+
* @type {string}
|
|
2170
|
+
* @memberof ICompanyAdminResponse
|
|
2171
|
+
*/
|
|
2172
|
+
'orderNoPrefix'?: string;
|
|
2173
|
+
/**
|
|
2174
|
+
*
|
|
2175
|
+
* @type {string}
|
|
2176
|
+
* @memberof ICompanyAdminResponse
|
|
2177
|
+
*/
|
|
2178
|
+
'orderNoSuffix'?: string;
|
|
2155
2179
|
/**
|
|
2156
2180
|
*
|
|
2157
2181
|
* @type {IImage}
|
|
@@ -2232,11 +2256,11 @@ export interface ICompanyAdminResponse {
|
|
|
2232
2256
|
'users': Array<ICompanyAdminResponseUsersInner>;
|
|
2233
2257
|
/**
|
|
2234
2258
|
*
|
|
2235
|
-
* @type {{ [key: string]:
|
|
2259
|
+
* @type {{ [key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean; }}
|
|
2236
2260
|
* @memberof ICompanyAdminResponse
|
|
2237
2261
|
*/
|
|
2238
2262
|
'roles': {
|
|
2239
|
-
[key: string]:
|
|
2263
|
+
[key: string]: RecordProductOrPageOrCompanyOrNavigationOrConfigOrOrderMBooleanDBoolean;
|
|
2240
2264
|
};
|
|
2241
2265
|
/**
|
|
2242
2266
|
*
|
|
@@ -2623,11 +2647,11 @@ export interface ICompanyPatchRequest {
|
|
|
2623
2647
|
'email'?: string;
|
|
2624
2648
|
/**
|
|
2625
2649
|
*
|
|
2626
|
-
* @type {{ [key: string]:
|
|
2650
|
+
* @type {{ [key: string]: object; }}
|
|
2627
2651
|
* @memberof ICompanyPatchRequest
|
|
2628
2652
|
*/
|
|
2629
2653
|
'roles'?: {
|
|
2630
|
-
[key: string]:
|
|
2654
|
+
[key: string]: object;
|
|
2631
2655
|
};
|
|
2632
2656
|
/**
|
|
2633
2657
|
*
|
|
@@ -2703,6 +2727,18 @@ export interface ICompanyPatchRequest {
|
|
|
2703
2727
|
* @memberof ICompanyPatchRequest
|
|
2704
2728
|
*/
|
|
2705
2729
|
'description'?: string;
|
|
2730
|
+
/**
|
|
2731
|
+
*
|
|
2732
|
+
* @type {string}
|
|
2733
|
+
* @memberof ICompanyPatchRequest
|
|
2734
|
+
*/
|
|
2735
|
+
'orderNoPrefix'?: string;
|
|
2736
|
+
/**
|
|
2737
|
+
*
|
|
2738
|
+
* @type {string}
|
|
2739
|
+
* @memberof ICompanyPatchRequest
|
|
2740
|
+
*/
|
|
2741
|
+
'orderNoSuffix'?: string;
|
|
2706
2742
|
/**
|
|
2707
2743
|
*
|
|
2708
2744
|
* @type {IImage}
|
|
@@ -2905,6 +2941,18 @@ export interface ICompanyResponse {
|
|
|
2905
2941
|
* @memberof ICompanyResponse
|
|
2906
2942
|
*/
|
|
2907
2943
|
'description'?: string;
|
|
2944
|
+
/**
|
|
2945
|
+
*
|
|
2946
|
+
* @type {string}
|
|
2947
|
+
* @memberof ICompanyResponse
|
|
2948
|
+
*/
|
|
2949
|
+
'orderNoPrefix'?: string;
|
|
2950
|
+
/**
|
|
2951
|
+
*
|
|
2952
|
+
* @type {string}
|
|
2953
|
+
* @memberof ICompanyResponse
|
|
2954
|
+
*/
|
|
2955
|
+
'orderNoSuffix'?: string;
|
|
2908
2956
|
/**
|
|
2909
2957
|
*
|
|
2910
2958
|
* @type {IImage}
|
|
@@ -4860,7 +4908,7 @@ export interface IOrderCollectionQueryParams {
|
|
|
4860
4908
|
* @type {string}
|
|
4861
4909
|
* @memberof IOrderCollectionQueryParams
|
|
4862
4910
|
*/
|
|
4863
|
-
'company'
|
|
4911
|
+
'company': string;
|
|
4864
4912
|
/**
|
|
4865
4913
|
*
|
|
4866
4914
|
* @type {string}
|
|
@@ -4989,6 +5037,12 @@ export interface IOrderResponse {
|
|
|
4989
5037
|
* @memberof IOrderResponse
|
|
4990
5038
|
*/
|
|
4991
5039
|
'email'?: string;
|
|
5040
|
+
/**
|
|
5041
|
+
*
|
|
5042
|
+
* @type {number}
|
|
5043
|
+
* @memberof IOrderResponse
|
|
5044
|
+
*/
|
|
5045
|
+
'number': number;
|
|
4992
5046
|
/**
|
|
4993
5047
|
*
|
|
4994
5048
|
* @type {Array<IOrderResponseProductsInner>}
|
|
@@ -5092,18 +5146,36 @@ export interface IOrderResponseProductsInner {
|
|
|
5092
5146
|
* @memberof IOrderResponseProductsInner
|
|
5093
5147
|
*/
|
|
5094
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;
|
|
5161
|
+
/**
|
|
5162
|
+
*
|
|
5163
|
+
* @type {PartialRecordLanguageEnumString}
|
|
5164
|
+
* @memberof IOrderResponseProductsInner
|
|
5165
|
+
*/
|
|
5166
|
+
'subVariantTitle': PartialRecordLanguageEnumString;
|
|
5095
5167
|
/**
|
|
5096
5168
|
*
|
|
5097
5169
|
* @type {PartialRecordLanguageEnumString}
|
|
5098
5170
|
* @memberof IOrderResponseProductsInner
|
|
5099
5171
|
*/
|
|
5100
|
-
'
|
|
5172
|
+
'mainVariantTitle': PartialRecordLanguageEnumString;
|
|
5101
5173
|
/**
|
|
5102
5174
|
*
|
|
5103
5175
|
* @type {PartialRecordLanguageEnumString}
|
|
5104
5176
|
* @memberof IOrderResponseProductsInner
|
|
5105
5177
|
*/
|
|
5106
|
-
'
|
|
5178
|
+
'productSlug': PartialRecordLanguageEnumString;
|
|
5107
5179
|
/**
|
|
5108
5180
|
*
|
|
5109
5181
|
* @type {string}
|
|
@@ -7558,8 +7630,10 @@ export declare const OrderStatusEnum: {
|
|
|
7558
7630
|
readonly WAITING_PAYMENT: "waiting_payment";
|
|
7559
7631
|
readonly PAID: "paid";
|
|
7560
7632
|
readonly CANCELED: "canceled";
|
|
7561
|
-
readonly
|
|
7633
|
+
readonly READY_TO_SHIP: "ready_to_ship";
|
|
7634
|
+
readonly SHIPPED: "shipped";
|
|
7562
7635
|
readonly COMPLETED: "completed";
|
|
7636
|
+
readonly FAILED: "failed";
|
|
7563
7637
|
};
|
|
7564
7638
|
export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
7565
7639
|
/**
|
|
@@ -8026,6 +8100,18 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
|
|
|
8026
8100
|
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
8027
8101
|
*/
|
|
8028
8102
|
'description'?: string;
|
|
8103
|
+
/**
|
|
8104
|
+
*
|
|
8105
|
+
* @type {string}
|
|
8106
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
8107
|
+
*/
|
|
8108
|
+
'orderNoPrefix'?: string;
|
|
8109
|
+
/**
|
|
8110
|
+
*
|
|
8111
|
+
* @type {string}
|
|
8112
|
+
* @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
|
|
8113
|
+
*/
|
|
8114
|
+
'orderNoSuffix'?: string;
|
|
8029
8115
|
/**
|
|
8030
8116
|
*
|
|
8031
8117
|
* @type {IImage}
|
|
@@ -8176,11 +8262,11 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles {
|
|
|
8176
8262
|
'name': string;
|
|
8177
8263
|
/**
|
|
8178
8264
|
*
|
|
8179
|
-
* @type {{ [key: string]:
|
|
8265
|
+
* @type {{ [key: string]: object; }}
|
|
8180
8266
|
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles
|
|
8181
8267
|
*/
|
|
8182
8268
|
'roles': {
|
|
8183
|
-
[key: string]:
|
|
8269
|
+
[key: string]: object;
|
|
8184
8270
|
};
|
|
8185
8271
|
/**
|
|
8186
8272
|
*
|
|
@@ -8213,62 +8299,6 @@ export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRoles {
|
|
|
8213
8299
|
*/
|
|
8214
8300
|
'domains': Array<string>;
|
|
8215
8301
|
}
|
|
8216
|
-
/**
|
|
8217
|
-
*
|
|
8218
|
-
* @export
|
|
8219
|
-
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8220
|
-
*/
|
|
8221
|
-
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue {
|
|
8222
|
-
/**
|
|
8223
|
-
*
|
|
8224
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8225
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8226
|
-
*/
|
|
8227
|
-
'config': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8228
|
-
/**
|
|
8229
|
-
*
|
|
8230
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8231
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8232
|
-
*/
|
|
8233
|
-
'navigation': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8234
|
-
/**
|
|
8235
|
-
*
|
|
8236
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8237
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8238
|
-
*/
|
|
8239
|
-
'company': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8240
|
-
/**
|
|
8241
|
-
*
|
|
8242
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8243
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8244
|
-
*/
|
|
8245
|
-
'page': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8246
|
-
/**
|
|
8247
|
-
*
|
|
8248
|
-
* @type {PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig}
|
|
8249
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValue
|
|
8250
|
-
*/
|
|
8251
|
-
'product': PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig;
|
|
8252
|
-
}
|
|
8253
|
-
/**
|
|
8254
|
-
*
|
|
8255
|
-
* @export
|
|
8256
|
-
* @interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8257
|
-
*/
|
|
8258
|
-
export interface PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig {
|
|
8259
|
-
/**
|
|
8260
|
-
*
|
|
8261
|
-
* @type {boolean}
|
|
8262
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8263
|
-
*/
|
|
8264
|
-
'd': boolean;
|
|
8265
|
-
/**
|
|
8266
|
-
*
|
|
8267
|
-
* @type {boolean}
|
|
8268
|
-
* @memberof PickICompanyNameOrDomainsOrIdOrUsersOrLanguageOrOwnerOrRolesRolesValueConfig
|
|
8269
|
-
*/
|
|
8270
|
-
'm': boolean;
|
|
8271
|
-
}
|
|
8272
8302
|
/**
|
|
8273
8303
|
*
|
|
8274
8304
|
* @export
|
|
@@ -9046,6 +9076,68 @@ export interface RecordCurrencyEnumNumber {
|
|
|
9046
9076
|
*/
|
|
9047
9077
|
'jpy': number;
|
|
9048
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
|
+
}
|
|
9049
9141
|
/**
|
|
9050
9142
|
*
|
|
9051
9143
|
* @export
|
|
@@ -13643,6 +13735,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13643
13735
|
* @throws {RequiredError}
|
|
13644
13736
|
*/
|
|
13645
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>;
|
|
13646
13745
|
/**
|
|
13647
13746
|
*
|
|
13648
13747
|
* @param {string} id
|
|
@@ -13652,6 +13751,7 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13652
13751
|
getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13653
13752
|
/**
|
|
13654
13753
|
*
|
|
13754
|
+
* @param {string} company
|
|
13655
13755
|
* @param {number} [page]
|
|
13656
13756
|
* @param {number} [itemsPerPage]
|
|
13657
13757
|
* @param {string} [search]
|
|
@@ -13660,13 +13760,12 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13660
13760
|
* @param {string} [dateField]
|
|
13661
13761
|
* @param {OrderEnum} [order]
|
|
13662
13762
|
* @param {string} [sort]
|
|
13663
|
-
* @param {string} [company]
|
|
13664
13763
|
* @param {string} [user]
|
|
13665
13764
|
* @param {OrderStatusEnum} [status]
|
|
13666
13765
|
* @param {*} [options] Override http request option.
|
|
13667
13766
|
* @throws {RequiredError}
|
|
13668
13767
|
*/
|
|
13669
|
-
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>;
|
|
13670
13769
|
};
|
|
13671
13770
|
/**
|
|
13672
13771
|
* OrderApi - functional programming interface
|
|
@@ -13680,6 +13779,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13680
13779
|
* @throws {RequiredError}
|
|
13681
13780
|
*/
|
|
13682
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>>;
|
|
13683
13789
|
/**
|
|
13684
13790
|
*
|
|
13685
13791
|
* @param {string} id
|
|
@@ -13689,6 +13795,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13689
13795
|
getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
|
|
13690
13796
|
/**
|
|
13691
13797
|
*
|
|
13798
|
+
* @param {string} company
|
|
13692
13799
|
* @param {number} [page]
|
|
13693
13800
|
* @param {number} [itemsPerPage]
|
|
13694
13801
|
* @param {string} [search]
|
|
@@ -13697,13 +13804,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
13697
13804
|
* @param {string} [dateField]
|
|
13698
13805
|
* @param {OrderEnum} [order]
|
|
13699
13806
|
* @param {string} [sort]
|
|
13700
|
-
* @param {string} [company]
|
|
13701
13807
|
* @param {string} [user]
|
|
13702
13808
|
* @param {OrderStatusEnum} [status]
|
|
13703
13809
|
* @param {*} [options] Override http request option.
|
|
13704
13810
|
* @throws {RequiredError}
|
|
13705
13811
|
*/
|
|
13706
|
-
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>>;
|
|
13707
13813
|
};
|
|
13708
13814
|
/**
|
|
13709
13815
|
* OrderApi - factory interface
|
|
@@ -13717,6 +13823,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
13717
13823
|
* @throws {RequiredError}
|
|
13718
13824
|
*/
|
|
13719
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>;
|
|
13720
13833
|
/**
|
|
13721
13834
|
*
|
|
13722
13835
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -13730,7 +13843,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
13730
13843
|
* @param {*} [options] Override http request option.
|
|
13731
13844
|
* @throws {RequiredError}
|
|
13732
13845
|
*/
|
|
13733
|
-
getOrders(requestParameters
|
|
13846
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrdersResponse>;
|
|
13734
13847
|
};
|
|
13735
13848
|
/**
|
|
13736
13849
|
* Request parameters for createOrder operation in OrderApi.
|
|
@@ -13745,6 +13858,19 @@ export interface OrderApiCreateOrderRequest {
|
|
|
13745
13858
|
*/
|
|
13746
13859
|
readonly iOrderPostRequest: IOrderPostRequest;
|
|
13747
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
|
+
}
|
|
13748
13874
|
/**
|
|
13749
13875
|
* Request parameters for getOrderById operation in OrderApi.
|
|
13750
13876
|
* @export
|
|
@@ -13764,6 +13890,12 @@ export interface OrderApiGetOrderByIdRequest {
|
|
|
13764
13890
|
* @interface OrderApiGetOrdersRequest
|
|
13765
13891
|
*/
|
|
13766
13892
|
export interface OrderApiGetOrdersRequest {
|
|
13893
|
+
/**
|
|
13894
|
+
*
|
|
13895
|
+
* @type {string}
|
|
13896
|
+
* @memberof OrderApiGetOrders
|
|
13897
|
+
*/
|
|
13898
|
+
readonly company: string;
|
|
13767
13899
|
/**
|
|
13768
13900
|
*
|
|
13769
13901
|
* @type {number}
|
|
@@ -13812,12 +13944,6 @@ export interface OrderApiGetOrdersRequest {
|
|
|
13812
13944
|
* @memberof OrderApiGetOrders
|
|
13813
13945
|
*/
|
|
13814
13946
|
readonly sort?: string;
|
|
13815
|
-
/**
|
|
13816
|
-
*
|
|
13817
|
-
* @type {string}
|
|
13818
|
-
* @memberof OrderApiGetOrders
|
|
13819
|
-
*/
|
|
13820
|
-
readonly company?: string;
|
|
13821
13947
|
/**
|
|
13822
13948
|
*
|
|
13823
13949
|
* @type {string}
|
|
@@ -13846,6 +13972,14 @@ export declare class OrderApi extends BaseAPI {
|
|
|
13846
13972
|
* @memberof OrderApi
|
|
13847
13973
|
*/
|
|
13848
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>>;
|
|
13849
13983
|
/**
|
|
13850
13984
|
*
|
|
13851
13985
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -13861,7 +13995,7 @@ export declare class OrderApi extends BaseAPI {
|
|
|
13861
13995
|
* @throws {RequiredError}
|
|
13862
13996
|
* @memberof OrderApi
|
|
13863
13997
|
*/
|
|
13864
|
-
getOrders(requestParameters
|
|
13998
|
+
getOrders(requestParameters: OrderApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrdersResponse, any>>;
|
|
13865
13999
|
}
|
|
13866
14000
|
/**
|
|
13867
14001
|
* PageApi - axios parameter creator
|
package/dist/api/api.js
CHANGED
|
@@ -542,8 +542,10 @@ exports.OrderStatusEnum = {
|
|
|
542
542
|
WAITING_PAYMENT: 'waiting_payment',
|
|
543
543
|
PAID: 'paid',
|
|
544
544
|
CANCELED: 'canceled',
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
READY_TO_SHIP: 'ready_to_ship',
|
|
546
|
+
SHIPPED: 'shipped',
|
|
547
|
+
COMPLETED: 'completed',
|
|
548
|
+
FAILED: 'failed'
|
|
547
549
|
};
|
|
548
550
|
/**
|
|
549
551
|
*
|
|
@@ -6411,6 +6413,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6411
6413
|
options: localVarRequestOptions,
|
|
6412
6414
|
};
|
|
6413
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
|
+
},
|
|
6414
6444
|
/**
|
|
6415
6445
|
*
|
|
6416
6446
|
* @param {string} id
|
|
@@ -6441,6 +6471,7 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6441
6471
|
},
|
|
6442
6472
|
/**
|
|
6443
6473
|
*
|
|
6474
|
+
* @param {string} company
|
|
6444
6475
|
* @param {number} [page]
|
|
6445
6476
|
* @param {number} [itemsPerPage]
|
|
6446
6477
|
* @param {string} [search]
|
|
@@ -6449,13 +6480,14 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6449
6480
|
* @param {string} [dateField]
|
|
6450
6481
|
* @param {OrderEnum} [order]
|
|
6451
6482
|
* @param {string} [sort]
|
|
6452
|
-
* @param {string} [company]
|
|
6453
6483
|
* @param {string} [user]
|
|
6454
6484
|
* @param {OrderStatusEnum} [status]
|
|
6455
6485
|
* @param {*} [options] Override http request option.
|
|
6456
6486
|
* @throws {RequiredError}
|
|
6457
6487
|
*/
|
|
6458
|
-
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);
|
|
6459
6491
|
const localVarPath = `/api/orders`;
|
|
6460
6492
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6461
6493
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6533,6 +6565,18 @@ const OrderApiFp = function (configuration) {
|
|
|
6533
6565
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
6534
6566
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6535
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
|
+
},
|
|
6536
6580
|
/**
|
|
6537
6581
|
*
|
|
6538
6582
|
* @param {string} id
|
|
@@ -6547,6 +6591,7 @@ const OrderApiFp = function (configuration) {
|
|
|
6547
6591
|
},
|
|
6548
6592
|
/**
|
|
6549
6593
|
*
|
|
6594
|
+
* @param {string} company
|
|
6550
6595
|
* @param {number} [page]
|
|
6551
6596
|
* @param {number} [itemsPerPage]
|
|
6552
6597
|
* @param {string} [search]
|
|
@@ -6555,14 +6600,13 @@ const OrderApiFp = function (configuration) {
|
|
|
6555
6600
|
* @param {string} [dateField]
|
|
6556
6601
|
* @param {OrderEnum} [order]
|
|
6557
6602
|
* @param {string} [sort]
|
|
6558
|
-
* @param {string} [company]
|
|
6559
6603
|
* @param {string} [user]
|
|
6560
6604
|
* @param {OrderStatusEnum} [status]
|
|
6561
6605
|
* @param {*} [options] Override http request option.
|
|
6562
6606
|
* @throws {RequiredError}
|
|
6563
6607
|
*/
|
|
6564
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6565
|
-
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);
|
|
6566
6610
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6567
6611
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
6568
6612
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6586,6 +6630,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6586
6630
|
createOrder(requestParameters, options) {
|
|
6587
6631
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
6588
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
|
+
},
|
|
6589
6642
|
/**
|
|
6590
6643
|
*
|
|
6591
6644
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6601,8 +6654,8 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6601
6654
|
* @param {*} [options] Override http request option.
|
|
6602
6655
|
* @throws {RequiredError}
|
|
6603
6656
|
*/
|
|
6604
|
-
getOrders(requestParameters
|
|
6605
|
-
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));
|
|
6606
6659
|
},
|
|
6607
6660
|
};
|
|
6608
6661
|
};
|
|
@@ -6624,6 +6677,16 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6624
6677
|
createOrder(requestParameters, options) {
|
|
6625
6678
|
return (0, exports.OrderApiFp)(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6626
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
|
+
}
|
|
6627
6690
|
/**
|
|
6628
6691
|
*
|
|
6629
6692
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6641,8 +6704,8 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
6641
6704
|
* @throws {RequiredError}
|
|
6642
6705
|
* @memberof OrderApi
|
|
6643
6706
|
*/
|
|
6644
|
-
getOrders(requestParameters
|
|
6645
|
-
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));
|
|
6646
6709
|
}
|
|
6647
6710
|
}
|
|
6648
6711
|
exports.OrderApi = OrderApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -531,8 +531,10 @@ export const OrderStatusEnum = {
|
|
|
531
531
|
WAITING_PAYMENT: 'waiting_payment',
|
|
532
532
|
PAID: 'paid',
|
|
533
533
|
CANCELED: 'canceled',
|
|
534
|
-
|
|
535
|
-
|
|
534
|
+
READY_TO_SHIP: 'ready_to_ship',
|
|
535
|
+
SHIPPED: 'shipped',
|
|
536
|
+
COMPLETED: 'completed',
|
|
537
|
+
FAILED: 'failed'
|
|
536
538
|
};
|
|
537
539
|
/**
|
|
538
540
|
*
|
|
@@ -6356,6 +6358,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6356
6358
|
options: localVarRequestOptions,
|
|
6357
6359
|
};
|
|
6358
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
|
+
},
|
|
6359
6389
|
/**
|
|
6360
6390
|
*
|
|
6361
6391
|
* @param {string} id
|
|
@@ -6386,6 +6416,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6386
6416
|
},
|
|
6387
6417
|
/**
|
|
6388
6418
|
*
|
|
6419
|
+
* @param {string} company
|
|
6389
6420
|
* @param {number} [page]
|
|
6390
6421
|
* @param {number} [itemsPerPage]
|
|
6391
6422
|
* @param {string} [search]
|
|
@@ -6394,13 +6425,14 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
6394
6425
|
* @param {string} [dateField]
|
|
6395
6426
|
* @param {OrderEnum} [order]
|
|
6396
6427
|
* @param {string} [sort]
|
|
6397
|
-
* @param {string} [company]
|
|
6398
6428
|
* @param {string} [user]
|
|
6399
6429
|
* @param {OrderStatusEnum} [status]
|
|
6400
6430
|
* @param {*} [options] Override http request option.
|
|
6401
6431
|
* @throws {RequiredError}
|
|
6402
6432
|
*/
|
|
6403
|
-
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);
|
|
6404
6436
|
const localVarPath = `/api/orders`;
|
|
6405
6437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6406
6438
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6477,6 +6509,18 @@ export const OrderApiFp = function (configuration) {
|
|
|
6477
6509
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.createOrder']?.[localVarOperationServerIndex]?.url;
|
|
6478
6510
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6479
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
|
+
},
|
|
6480
6524
|
/**
|
|
6481
6525
|
*
|
|
6482
6526
|
* @param {string} id
|
|
@@ -6491,6 +6535,7 @@ export const OrderApiFp = function (configuration) {
|
|
|
6491
6535
|
},
|
|
6492
6536
|
/**
|
|
6493
6537
|
*
|
|
6538
|
+
* @param {string} company
|
|
6494
6539
|
* @param {number} [page]
|
|
6495
6540
|
* @param {number} [itemsPerPage]
|
|
6496
6541
|
* @param {string} [search]
|
|
@@ -6499,14 +6544,13 @@ export const OrderApiFp = function (configuration) {
|
|
|
6499
6544
|
* @param {string} [dateField]
|
|
6500
6545
|
* @param {OrderEnum} [order]
|
|
6501
6546
|
* @param {string} [sort]
|
|
6502
|
-
* @param {string} [company]
|
|
6503
6547
|
* @param {string} [user]
|
|
6504
6548
|
* @param {OrderStatusEnum} [status]
|
|
6505
6549
|
* @param {*} [options] Override http request option.
|
|
6506
6550
|
* @throws {RequiredError}
|
|
6507
6551
|
*/
|
|
6508
|
-
async getOrders(page, itemsPerPage, search, startDate, endDate, dateField, order, sort,
|
|
6509
|
-
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);
|
|
6510
6554
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6511
6555
|
const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
6512
6556
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6529,6 +6573,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6529
6573
|
createOrder(requestParameters, options) {
|
|
6530
6574
|
return localVarFp.createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(axios, basePath));
|
|
6531
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
|
+
},
|
|
6532
6585
|
/**
|
|
6533
6586
|
*
|
|
6534
6587
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6544,8 +6597,8 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
6544
6597
|
* @param {*} [options] Override http request option.
|
|
6545
6598
|
* @throws {RequiredError}
|
|
6546
6599
|
*/
|
|
6547
|
-
getOrders(requestParameters
|
|
6548
|
-
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));
|
|
6549
6602
|
},
|
|
6550
6603
|
};
|
|
6551
6604
|
};
|
|
@@ -6566,6 +6619,16 @@ export class OrderApi extends BaseAPI {
|
|
|
6566
6619
|
createOrder(requestParameters, options) {
|
|
6567
6620
|
return OrderApiFp(this.configuration).createOrder(requestParameters.iOrderPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6568
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
|
+
}
|
|
6569
6632
|
/**
|
|
6570
6633
|
*
|
|
6571
6634
|
* @param {OrderApiGetOrderByIdRequest} requestParameters Request parameters.
|
|
@@ -6583,8 +6646,8 @@ export class OrderApi extends BaseAPI {
|
|
|
6583
6646
|
* @throws {RequiredError}
|
|
6584
6647
|
* @memberof OrderApi
|
|
6585
6648
|
*/
|
|
6586
|
-
getOrders(requestParameters
|
|
6587
|
-
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));
|
|
6588
6651
|
}
|
|
6589
6652
|
}
|
|
6590
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
|
}
|