flexinet-api 0.0.397-prerelease0 → 0.0.401-prerelease0
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/README.md +2 -2
- package/api.ts +122 -0
- package/dist/api.d.ts +59 -0
- package/dist/api.js +105 -0
- package/dist/esm/api.d.ts +59 -0
- package/dist/esm/api.js +105 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.401-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.401-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -995,6 +995,12 @@ export interface Order {
|
|
|
995
995
|
* @memberof Order
|
|
996
996
|
*/
|
|
997
997
|
'source'?: string;
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @type {string}
|
|
1001
|
+
* @memberof Order
|
|
1002
|
+
*/
|
|
1003
|
+
'userID'?: string;
|
|
998
1004
|
}
|
|
999
1005
|
|
|
1000
1006
|
export const OrderKindEnum = {
|
|
@@ -5217,6 +5223,74 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5217
5223
|
* @throws {RequiredError}
|
|
5218
5224
|
*/
|
|
5219
5225
|
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5226
|
+
const localVarPath = `/admins/orders`;
|
|
5227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5229
|
+
let baseOptions;
|
|
5230
|
+
if (configuration) {
|
|
5231
|
+
baseOptions = configuration.baseOptions;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5235
|
+
const localVarHeaderParameter = {} as any;
|
|
5236
|
+
const localVarQueryParameter = {} as any;
|
|
5237
|
+
|
|
5238
|
+
// authentication jwt required
|
|
5239
|
+
// http bearer authentication required
|
|
5240
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5241
|
+
|
|
5242
|
+
if (paginationToken !== undefined) {
|
|
5243
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
if (search !== undefined) {
|
|
5247
|
+
localVarQueryParameter['search'] = search;
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
if (productId !== undefined) {
|
|
5251
|
+
localVarQueryParameter['productId'] = productId;
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5254
|
+
if (balanceId !== undefined) {
|
|
5255
|
+
localVarQueryParameter['balanceId'] = balanceId;
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5258
|
+
if (createdAfter !== undefined) {
|
|
5259
|
+
localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
|
|
5260
|
+
(createdAfter as any).toISOString() :
|
|
5261
|
+
createdAfter;
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
if (createdBefore !== undefined) {
|
|
5265
|
+
localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
|
|
5266
|
+
(createdBefore as any).toISOString() :
|
|
5267
|
+
createdBefore;
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5275
|
+
|
|
5276
|
+
return {
|
|
5277
|
+
url: toPathString(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
};
|
|
5280
|
+
},
|
|
5281
|
+
/**
|
|
5282
|
+
* List existing orders
|
|
5283
|
+
* @summary List existing orders
|
|
5284
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5285
|
+
* @param {string} [search] Search for product or order
|
|
5286
|
+
* @param {string} [productId] Filter by token
|
|
5287
|
+
* @param {string} [balanceId] Filter by balance
|
|
5288
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5289
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5290
|
+
* @param {*} [options] Override http request option.
|
|
5291
|
+
* @throws {RequiredError}
|
|
5292
|
+
*/
|
|
5293
|
+
listOrdersUser: async (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5220
5294
|
const localVarPath = `/users/orders`;
|
|
5221
5295
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5222
5296
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5316,6 +5390,22 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5316
5390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
5317
5391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5318
5392
|
},
|
|
5393
|
+
/**
|
|
5394
|
+
* List existing orders
|
|
5395
|
+
* @summary List existing orders
|
|
5396
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5397
|
+
* @param {string} [search] Search for product or order
|
|
5398
|
+
* @param {string} [productId] Filter by token
|
|
5399
|
+
* @param {string} [balanceId] Filter by balance
|
|
5400
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5401
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5402
|
+
* @param {*} [options] Override http request option.
|
|
5403
|
+
* @throws {RequiredError}
|
|
5404
|
+
*/
|
|
5405
|
+
async listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
|
5406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
5407
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5408
|
+
},
|
|
5319
5409
|
}
|
|
5320
5410
|
};
|
|
5321
5411
|
|
|
@@ -5361,6 +5451,21 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
|
5361
5451
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5362
5452
|
return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5363
5453
|
},
|
|
5454
|
+
/**
|
|
5455
|
+
* List existing orders
|
|
5456
|
+
* @summary List existing orders
|
|
5457
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5458
|
+
* @param {string} [search] Search for product or order
|
|
5459
|
+
* @param {string} [productId] Filter by token
|
|
5460
|
+
* @param {string} [balanceId] Filter by balance
|
|
5461
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5462
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5463
|
+
* @param {*} [options] Override http request option.
|
|
5464
|
+
* @throws {RequiredError}
|
|
5465
|
+
*/
|
|
5466
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5467
|
+
return localVarFp.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5468
|
+
},
|
|
5364
5469
|
};
|
|
5365
5470
|
};
|
|
5366
5471
|
|
|
@@ -5411,6 +5516,23 @@ export class OrderApi extends BaseAPI {
|
|
|
5411
5516
|
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5412
5517
|
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5413
5518
|
}
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* List existing orders
|
|
5522
|
+
* @summary List existing orders
|
|
5523
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5524
|
+
* @param {string} [search] Search for product or order
|
|
5525
|
+
* @param {string} [productId] Filter by token
|
|
5526
|
+
* @param {string} [balanceId] Filter by balance
|
|
5527
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5528
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5529
|
+
* @param {*} [options] Override http request option.
|
|
5530
|
+
* @throws {RequiredError}
|
|
5531
|
+
* @memberof OrderApi
|
|
5532
|
+
*/
|
|
5533
|
+
public listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5534
|
+
return OrderApiFp(this.configuration).listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5535
|
+
}
|
|
5414
5536
|
}
|
|
5415
5537
|
|
|
5416
5538
|
|
package/dist/api.d.ts
CHANGED
|
@@ -943,6 +943,12 @@ export interface Order {
|
|
|
943
943
|
* @memberof Order
|
|
944
944
|
*/
|
|
945
945
|
'source'?: string;
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @type {string}
|
|
949
|
+
* @memberof Order
|
|
950
|
+
*/
|
|
951
|
+
'userID'?: string;
|
|
946
952
|
}
|
|
947
953
|
export declare const OrderKindEnum: {
|
|
948
954
|
readonly Webshop: "webshop";
|
|
@@ -4010,6 +4016,19 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4010
4016
|
* @throws {RequiredError}
|
|
4011
4017
|
*/
|
|
4012
4018
|
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4019
|
+
/**
|
|
4020
|
+
* List existing orders
|
|
4021
|
+
* @summary List existing orders
|
|
4022
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4023
|
+
* @param {string} [search] Search for product or order
|
|
4024
|
+
* @param {string} [productId] Filter by token
|
|
4025
|
+
* @param {string} [balanceId] Filter by balance
|
|
4026
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4027
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4028
|
+
* @param {*} [options] Override http request option.
|
|
4029
|
+
* @throws {RequiredError}
|
|
4030
|
+
*/
|
|
4031
|
+
listOrdersUser: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4013
4032
|
};
|
|
4014
4033
|
/**
|
|
4015
4034
|
* OrderApi - functional programming interface
|
|
@@ -4045,6 +4064,19 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4045
4064
|
* @throws {RequiredError}
|
|
4046
4065
|
*/
|
|
4047
4066
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4067
|
+
/**
|
|
4068
|
+
* List existing orders
|
|
4069
|
+
* @summary List existing orders
|
|
4070
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4071
|
+
* @param {string} [search] Search for product or order
|
|
4072
|
+
* @param {string} [productId] Filter by token
|
|
4073
|
+
* @param {string} [balanceId] Filter by balance
|
|
4074
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4075
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
*/
|
|
4079
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4048
4080
|
};
|
|
4049
4081
|
/**
|
|
4050
4082
|
* OrderApi - factory interface
|
|
@@ -4080,6 +4112,19 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4080
4112
|
* @throws {RequiredError}
|
|
4081
4113
|
*/
|
|
4082
4114
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4115
|
+
/**
|
|
4116
|
+
* List existing orders
|
|
4117
|
+
* @summary List existing orders
|
|
4118
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4119
|
+
* @param {string} [search] Search for product or order
|
|
4120
|
+
* @param {string} [productId] Filter by token
|
|
4121
|
+
* @param {string} [balanceId] Filter by balance
|
|
4122
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4123
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4124
|
+
* @param {*} [options] Override http request option.
|
|
4125
|
+
* @throws {RequiredError}
|
|
4126
|
+
*/
|
|
4127
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4083
4128
|
};
|
|
4084
4129
|
/**
|
|
4085
4130
|
* OrderApi - object-oriented interface
|
|
@@ -4120,6 +4165,20 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4120
4165
|
* @memberof OrderApi
|
|
4121
4166
|
*/
|
|
4122
4167
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4168
|
+
/**
|
|
4169
|
+
* List existing orders
|
|
4170
|
+
* @summary List existing orders
|
|
4171
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4172
|
+
* @param {string} [search] Search for product or order
|
|
4173
|
+
* @param {string} [productId] Filter by token
|
|
4174
|
+
* @param {string} [balanceId] Filter by balance
|
|
4175
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4176
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4177
|
+
* @param {*} [options] Override http request option.
|
|
4178
|
+
* @throws {RequiredError}
|
|
4179
|
+
* @memberof OrderApi
|
|
4180
|
+
*/
|
|
4181
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4123
4182
|
}
|
|
4124
4183
|
/**
|
|
4125
4184
|
* ProductApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -2236,6 +2236,62 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2236
2236
|
* @throws {RequiredError}
|
|
2237
2237
|
*/
|
|
2238
2238
|
listOrders: (paginationToken, search, productId, balanceId, createdAfter, createdBefore, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2239
|
+
const localVarPath = `/admins/orders`;
|
|
2240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2241
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2242
|
+
let baseOptions;
|
|
2243
|
+
if (configuration) {
|
|
2244
|
+
baseOptions = configuration.baseOptions;
|
|
2245
|
+
}
|
|
2246
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2247
|
+
const localVarHeaderParameter = {};
|
|
2248
|
+
const localVarQueryParameter = {};
|
|
2249
|
+
// authentication jwt required
|
|
2250
|
+
// http bearer authentication required
|
|
2251
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2252
|
+
if (paginationToken !== undefined) {
|
|
2253
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
2254
|
+
}
|
|
2255
|
+
if (search !== undefined) {
|
|
2256
|
+
localVarQueryParameter['search'] = search;
|
|
2257
|
+
}
|
|
2258
|
+
if (productId !== undefined) {
|
|
2259
|
+
localVarQueryParameter['productId'] = productId;
|
|
2260
|
+
}
|
|
2261
|
+
if (balanceId !== undefined) {
|
|
2262
|
+
localVarQueryParameter['balanceId'] = balanceId;
|
|
2263
|
+
}
|
|
2264
|
+
if (createdAfter !== undefined) {
|
|
2265
|
+
localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
|
|
2266
|
+
createdAfter.toISOString() :
|
|
2267
|
+
createdAfter;
|
|
2268
|
+
}
|
|
2269
|
+
if (createdBefore !== undefined) {
|
|
2270
|
+
localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
|
|
2271
|
+
createdBefore.toISOString() :
|
|
2272
|
+
createdBefore;
|
|
2273
|
+
}
|
|
2274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2277
|
+
return {
|
|
2278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2279
|
+
options: localVarRequestOptions,
|
|
2280
|
+
};
|
|
2281
|
+
}),
|
|
2282
|
+
/**
|
|
2283
|
+
* List existing orders
|
|
2284
|
+
* @summary List existing orders
|
|
2285
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2286
|
+
* @param {string} [search] Search for product or order
|
|
2287
|
+
* @param {string} [productId] Filter by token
|
|
2288
|
+
* @param {string} [balanceId] Filter by balance
|
|
2289
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2290
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2291
|
+
* @param {*} [options] Override http request option.
|
|
2292
|
+
* @throws {RequiredError}
|
|
2293
|
+
*/
|
|
2294
|
+
listOrdersUser: (paginationToken, search, productId, balanceId, createdAfter, createdBefore, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2239
2295
|
const localVarPath = `/users/orders`;
|
|
2240
2296
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2241
2297
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2330,6 +2386,24 @@ const OrderApiFp = function (configuration) {
|
|
|
2330
2386
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2331
2387
|
});
|
|
2332
2388
|
},
|
|
2389
|
+
/**
|
|
2390
|
+
* List existing orders
|
|
2391
|
+
* @summary List existing orders
|
|
2392
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2393
|
+
* @param {string} [search] Search for product or order
|
|
2394
|
+
* @param {string} [productId] Filter by token
|
|
2395
|
+
* @param {string} [balanceId] Filter by balance
|
|
2396
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2397
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2403
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
2404
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2405
|
+
});
|
|
2406
|
+
},
|
|
2333
2407
|
};
|
|
2334
2408
|
};
|
|
2335
2409
|
exports.OrderApiFp = OrderApiFp;
|
|
@@ -2375,6 +2449,21 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2375
2449
|
listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2376
2450
|
return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
2377
2451
|
},
|
|
2452
|
+
/**
|
|
2453
|
+
* List existing orders
|
|
2454
|
+
* @summary List existing orders
|
|
2455
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2456
|
+
* @param {string} [search] Search for product or order
|
|
2457
|
+
* @param {string} [productId] Filter by token
|
|
2458
|
+
* @param {string} [balanceId] Filter by balance
|
|
2459
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2460
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2461
|
+
* @param {*} [options] Override http request option.
|
|
2462
|
+
* @throws {RequiredError}
|
|
2463
|
+
*/
|
|
2464
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2465
|
+
return localVarFp.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
2466
|
+
},
|
|
2378
2467
|
};
|
|
2379
2468
|
};
|
|
2380
2469
|
exports.OrderApiFactory = OrderApiFactory;
|
|
@@ -2423,6 +2512,22 @@ class OrderApi extends base_1.BaseAPI {
|
|
|
2423
2512
|
listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2424
2513
|
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2425
2514
|
}
|
|
2515
|
+
/**
|
|
2516
|
+
* List existing orders
|
|
2517
|
+
* @summary List existing orders
|
|
2518
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2519
|
+
* @param {string} [search] Search for product or order
|
|
2520
|
+
* @param {string} [productId] Filter by token
|
|
2521
|
+
* @param {string} [balanceId] Filter by balance
|
|
2522
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2523
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
* @memberof OrderApi
|
|
2527
|
+
*/
|
|
2528
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2529
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2530
|
+
}
|
|
2426
2531
|
}
|
|
2427
2532
|
exports.OrderApi = OrderApi;
|
|
2428
2533
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -943,6 +943,12 @@ export interface Order {
|
|
|
943
943
|
* @memberof Order
|
|
944
944
|
*/
|
|
945
945
|
'source'?: string;
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @type {string}
|
|
949
|
+
* @memberof Order
|
|
950
|
+
*/
|
|
951
|
+
'userID'?: string;
|
|
946
952
|
}
|
|
947
953
|
export declare const OrderKindEnum: {
|
|
948
954
|
readonly Webshop: "webshop";
|
|
@@ -4010,6 +4016,19 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4010
4016
|
* @throws {RequiredError}
|
|
4011
4017
|
*/
|
|
4012
4018
|
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4019
|
+
/**
|
|
4020
|
+
* List existing orders
|
|
4021
|
+
* @summary List existing orders
|
|
4022
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4023
|
+
* @param {string} [search] Search for product or order
|
|
4024
|
+
* @param {string} [productId] Filter by token
|
|
4025
|
+
* @param {string} [balanceId] Filter by balance
|
|
4026
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4027
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4028
|
+
* @param {*} [options] Override http request option.
|
|
4029
|
+
* @throws {RequiredError}
|
|
4030
|
+
*/
|
|
4031
|
+
listOrdersUser: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4013
4032
|
};
|
|
4014
4033
|
/**
|
|
4015
4034
|
* OrderApi - functional programming interface
|
|
@@ -4045,6 +4064,19 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4045
4064
|
* @throws {RequiredError}
|
|
4046
4065
|
*/
|
|
4047
4066
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4067
|
+
/**
|
|
4068
|
+
* List existing orders
|
|
4069
|
+
* @summary List existing orders
|
|
4070
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4071
|
+
* @param {string} [search] Search for product or order
|
|
4072
|
+
* @param {string} [productId] Filter by token
|
|
4073
|
+
* @param {string} [balanceId] Filter by balance
|
|
4074
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4075
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
*/
|
|
4079
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4048
4080
|
};
|
|
4049
4081
|
/**
|
|
4050
4082
|
* OrderApi - factory interface
|
|
@@ -4080,6 +4112,19 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4080
4112
|
* @throws {RequiredError}
|
|
4081
4113
|
*/
|
|
4082
4114
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4115
|
+
/**
|
|
4116
|
+
* List existing orders
|
|
4117
|
+
* @summary List existing orders
|
|
4118
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4119
|
+
* @param {string} [search] Search for product or order
|
|
4120
|
+
* @param {string} [productId] Filter by token
|
|
4121
|
+
* @param {string} [balanceId] Filter by balance
|
|
4122
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4123
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4124
|
+
* @param {*} [options] Override http request option.
|
|
4125
|
+
* @throws {RequiredError}
|
|
4126
|
+
*/
|
|
4127
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4083
4128
|
};
|
|
4084
4129
|
/**
|
|
4085
4130
|
* OrderApi - object-oriented interface
|
|
@@ -4120,6 +4165,20 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4120
4165
|
* @memberof OrderApi
|
|
4121
4166
|
*/
|
|
4122
4167
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4168
|
+
/**
|
|
4169
|
+
* List existing orders
|
|
4170
|
+
* @summary List existing orders
|
|
4171
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4172
|
+
* @param {string} [search] Search for product or order
|
|
4173
|
+
* @param {string} [productId] Filter by token
|
|
4174
|
+
* @param {string} [balanceId] Filter by balance
|
|
4175
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4176
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4177
|
+
* @param {*} [options] Override http request option.
|
|
4178
|
+
* @throws {RequiredError}
|
|
4179
|
+
* @memberof OrderApi
|
|
4180
|
+
*/
|
|
4181
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4123
4182
|
}
|
|
4124
4183
|
/**
|
|
4125
4184
|
* ProductApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -2195,6 +2195,62 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
|
2195
2195
|
* @throws {RequiredError}
|
|
2196
2196
|
*/
|
|
2197
2197
|
listOrders: (paginationToken, search, productId, balanceId, createdAfter, createdBefore, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2198
|
+
const localVarPath = `/admins/orders`;
|
|
2199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2201
|
+
let baseOptions;
|
|
2202
|
+
if (configuration) {
|
|
2203
|
+
baseOptions = configuration.baseOptions;
|
|
2204
|
+
}
|
|
2205
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2206
|
+
const localVarHeaderParameter = {};
|
|
2207
|
+
const localVarQueryParameter = {};
|
|
2208
|
+
// authentication jwt required
|
|
2209
|
+
// http bearer authentication required
|
|
2210
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2211
|
+
if (paginationToken !== undefined) {
|
|
2212
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
2213
|
+
}
|
|
2214
|
+
if (search !== undefined) {
|
|
2215
|
+
localVarQueryParameter['search'] = search;
|
|
2216
|
+
}
|
|
2217
|
+
if (productId !== undefined) {
|
|
2218
|
+
localVarQueryParameter['productId'] = productId;
|
|
2219
|
+
}
|
|
2220
|
+
if (balanceId !== undefined) {
|
|
2221
|
+
localVarQueryParameter['balanceId'] = balanceId;
|
|
2222
|
+
}
|
|
2223
|
+
if (createdAfter !== undefined) {
|
|
2224
|
+
localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
|
|
2225
|
+
createdAfter.toISOString() :
|
|
2226
|
+
createdAfter;
|
|
2227
|
+
}
|
|
2228
|
+
if (createdBefore !== undefined) {
|
|
2229
|
+
localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
|
|
2230
|
+
createdBefore.toISOString() :
|
|
2231
|
+
createdBefore;
|
|
2232
|
+
}
|
|
2233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2236
|
+
return {
|
|
2237
|
+
url: toPathString(localVarUrlObj),
|
|
2238
|
+
options: localVarRequestOptions,
|
|
2239
|
+
};
|
|
2240
|
+
}),
|
|
2241
|
+
/**
|
|
2242
|
+
* List existing orders
|
|
2243
|
+
* @summary List existing orders
|
|
2244
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2245
|
+
* @param {string} [search] Search for product or order
|
|
2246
|
+
* @param {string} [productId] Filter by token
|
|
2247
|
+
* @param {string} [balanceId] Filter by balance
|
|
2248
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2249
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2250
|
+
* @param {*} [options] Override http request option.
|
|
2251
|
+
* @throws {RequiredError}
|
|
2252
|
+
*/
|
|
2253
|
+
listOrdersUser: (paginationToken, search, productId, balanceId, createdAfter, createdBefore, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2198
2254
|
const localVarPath = `/users/orders`;
|
|
2199
2255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2200
2256
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2288,6 +2344,24 @@ export const OrderApiFp = function (configuration) {
|
|
|
2288
2344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2289
2345
|
});
|
|
2290
2346
|
},
|
|
2347
|
+
/**
|
|
2348
|
+
* List existing orders
|
|
2349
|
+
* @summary List existing orders
|
|
2350
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2351
|
+
* @param {string} [search] Search for product or order
|
|
2352
|
+
* @param {string} [productId] Filter by token
|
|
2353
|
+
* @param {string} [balanceId] Filter by balance
|
|
2354
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2355
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2356
|
+
* @param {*} [options] Override http request option.
|
|
2357
|
+
* @throws {RequiredError}
|
|
2358
|
+
*/
|
|
2359
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2361
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
2362
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2363
|
+
});
|
|
2364
|
+
},
|
|
2291
2365
|
};
|
|
2292
2366
|
};
|
|
2293
2367
|
/**
|
|
@@ -2332,6 +2406,21 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
|
2332
2406
|
listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2333
2407
|
return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
2334
2408
|
},
|
|
2409
|
+
/**
|
|
2410
|
+
* List existing orders
|
|
2411
|
+
* @summary List existing orders
|
|
2412
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2413
|
+
* @param {string} [search] Search for product or order
|
|
2414
|
+
* @param {string} [productId] Filter by token
|
|
2415
|
+
* @param {string} [balanceId] Filter by balance
|
|
2416
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2417
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2418
|
+
* @param {*} [options] Override http request option.
|
|
2419
|
+
* @throws {RequiredError}
|
|
2420
|
+
*/
|
|
2421
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2422
|
+
return localVarFp.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
2423
|
+
},
|
|
2335
2424
|
};
|
|
2336
2425
|
};
|
|
2337
2426
|
/**
|
|
@@ -2379,6 +2468,22 @@ export class OrderApi extends BaseAPI {
|
|
|
2379
2468
|
listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2380
2469
|
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2381
2470
|
}
|
|
2471
|
+
/**
|
|
2472
|
+
* List existing orders
|
|
2473
|
+
* @summary List existing orders
|
|
2474
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
2475
|
+
* @param {string} [search] Search for product or order
|
|
2476
|
+
* @param {string} [productId] Filter by token
|
|
2477
|
+
* @param {string} [balanceId] Filter by balance
|
|
2478
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
2479
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
2480
|
+
* @param {*} [options] Override http request option.
|
|
2481
|
+
* @throws {RequiredError}
|
|
2482
|
+
* @memberof OrderApi
|
|
2483
|
+
*/
|
|
2484
|
+
listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options) {
|
|
2485
|
+
return OrderApiFp(this.configuration).listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
2486
|
+
}
|
|
2382
2487
|
}
|
|
2383
2488
|
/**
|
|
2384
2489
|
* ProductApi - axios parameter creator
|