flexinet-api 0.0.400-prerelease0 → 0.0.413-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 +134 -0
- package/dist/api.d.ts +71 -0
- package/dist/api.js +105 -0
- package/dist/esm/api.d.ts +71 -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.413-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.413-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -476,6 +476,12 @@ export interface Client {
|
|
|
476
476
|
* @memberof Client
|
|
477
477
|
*/
|
|
478
478
|
'updatedAt': string;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {User}
|
|
482
|
+
* @memberof Client
|
|
483
|
+
*/
|
|
484
|
+
'manager'?: User;
|
|
479
485
|
}
|
|
480
486
|
/**
|
|
481
487
|
*
|
|
@@ -501,6 +507,12 @@ export interface ClientCreationRequest {
|
|
|
501
507
|
* @memberof ClientCreationRequest
|
|
502
508
|
*/
|
|
503
509
|
'additionalProperties': { [key: string]: string; };
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof ClientCreationRequest
|
|
514
|
+
*/
|
|
515
|
+
'managerId'?: string;
|
|
504
516
|
}
|
|
505
517
|
/**
|
|
506
518
|
*
|
|
@@ -995,6 +1007,12 @@ export interface Order {
|
|
|
995
1007
|
* @memberof Order
|
|
996
1008
|
*/
|
|
997
1009
|
'source'?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @type {string}
|
|
1013
|
+
* @memberof Order
|
|
1014
|
+
*/
|
|
1015
|
+
'userID'?: string;
|
|
998
1016
|
}
|
|
999
1017
|
|
|
1000
1018
|
export const OrderKindEnum = {
|
|
@@ -5217,6 +5235,74 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5217
5235
|
* @throws {RequiredError}
|
|
5218
5236
|
*/
|
|
5219
5237
|
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5238
|
+
const localVarPath = `/admins/orders`;
|
|
5239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5241
|
+
let baseOptions;
|
|
5242
|
+
if (configuration) {
|
|
5243
|
+
baseOptions = configuration.baseOptions;
|
|
5244
|
+
}
|
|
5245
|
+
|
|
5246
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5247
|
+
const localVarHeaderParameter = {} as any;
|
|
5248
|
+
const localVarQueryParameter = {} as any;
|
|
5249
|
+
|
|
5250
|
+
// authentication jwt required
|
|
5251
|
+
// http bearer authentication required
|
|
5252
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5253
|
+
|
|
5254
|
+
if (paginationToken !== undefined) {
|
|
5255
|
+
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
5256
|
+
}
|
|
5257
|
+
|
|
5258
|
+
if (search !== undefined) {
|
|
5259
|
+
localVarQueryParameter['search'] = search;
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
if (productId !== undefined) {
|
|
5263
|
+
localVarQueryParameter['productId'] = productId;
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
if (balanceId !== undefined) {
|
|
5267
|
+
localVarQueryParameter['balanceId'] = balanceId;
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5270
|
+
if (createdAfter !== undefined) {
|
|
5271
|
+
localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
|
|
5272
|
+
(createdAfter as any).toISOString() :
|
|
5273
|
+
createdAfter;
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
if (createdBefore !== undefined) {
|
|
5277
|
+
localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
|
|
5278
|
+
(createdBefore as any).toISOString() :
|
|
5279
|
+
createdBefore;
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
|
|
5283
|
+
|
|
5284
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5285
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5286
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5287
|
+
|
|
5288
|
+
return {
|
|
5289
|
+
url: toPathString(localVarUrlObj),
|
|
5290
|
+
options: localVarRequestOptions,
|
|
5291
|
+
};
|
|
5292
|
+
},
|
|
5293
|
+
/**
|
|
5294
|
+
* List existing orders
|
|
5295
|
+
* @summary List existing orders
|
|
5296
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5297
|
+
* @param {string} [search] Search for product or order
|
|
5298
|
+
* @param {string} [productId] Filter by token
|
|
5299
|
+
* @param {string} [balanceId] Filter by balance
|
|
5300
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5301
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5302
|
+
* @param {*} [options] Override http request option.
|
|
5303
|
+
* @throws {RequiredError}
|
|
5304
|
+
*/
|
|
5305
|
+
listOrdersUser: async (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5220
5306
|
const localVarPath = `/users/orders`;
|
|
5221
5307
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5222
5308
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5316,6 +5402,22 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5316
5402
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
5317
5403
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5318
5404
|
},
|
|
5405
|
+
/**
|
|
5406
|
+
* List existing orders
|
|
5407
|
+
* @summary List existing orders
|
|
5408
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5409
|
+
* @param {string} [search] Search for product or order
|
|
5410
|
+
* @param {string} [productId] Filter by token
|
|
5411
|
+
* @param {string} [balanceId] Filter by balance
|
|
5412
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5413
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5414
|
+
* @param {*} [options] Override http request option.
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
async listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
|
5418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options);
|
|
5419
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5420
|
+
},
|
|
5319
5421
|
}
|
|
5320
5422
|
};
|
|
5321
5423
|
|
|
@@ -5361,6 +5463,21 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
|
5361
5463
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5362
5464
|
return localVarFp.listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5363
5465
|
},
|
|
5466
|
+
/**
|
|
5467
|
+
* List existing orders
|
|
5468
|
+
* @summary List existing orders
|
|
5469
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5470
|
+
* @param {string} [search] Search for product or order
|
|
5471
|
+
* @param {string} [productId] Filter by token
|
|
5472
|
+
* @param {string} [balanceId] Filter by balance
|
|
5473
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5474
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5475
|
+
* @param {*} [options] Override http request option.
|
|
5476
|
+
* @throws {RequiredError}
|
|
5477
|
+
*/
|
|
5478
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5479
|
+
return localVarFp.listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5480
|
+
},
|
|
5364
5481
|
};
|
|
5365
5482
|
};
|
|
5366
5483
|
|
|
@@ -5411,6 +5528,23 @@ export class OrderApi extends BaseAPI {
|
|
|
5411
5528
|
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5412
5529
|
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5413
5530
|
}
|
|
5531
|
+
|
|
5532
|
+
/**
|
|
5533
|
+
* List existing orders
|
|
5534
|
+
* @summary List existing orders
|
|
5535
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
5536
|
+
* @param {string} [search] Search for product or order
|
|
5537
|
+
* @param {string} [productId] Filter by token
|
|
5538
|
+
* @param {string} [balanceId] Filter by balance
|
|
5539
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5540
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5541
|
+
* @param {*} [options] Override http request option.
|
|
5542
|
+
* @throws {RequiredError}
|
|
5543
|
+
* @memberof OrderApi
|
|
5544
|
+
*/
|
|
5545
|
+
public listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5546
|
+
return OrderApiFp(this.configuration).listOrdersUser(paginationToken, search, productId, balanceId, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5547
|
+
}
|
|
5414
5548
|
}
|
|
5415
5549
|
|
|
5416
5550
|
|
package/dist/api.d.ts
CHANGED
|
@@ -444,6 +444,12 @@ export interface Client {
|
|
|
444
444
|
* @memberof Client
|
|
445
445
|
*/
|
|
446
446
|
'updatedAt': string;
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {User}
|
|
450
|
+
* @memberof Client
|
|
451
|
+
*/
|
|
452
|
+
'manager'?: User;
|
|
447
453
|
}
|
|
448
454
|
/**
|
|
449
455
|
*
|
|
@@ -471,6 +477,12 @@ export interface ClientCreationRequest {
|
|
|
471
477
|
'additionalProperties': {
|
|
472
478
|
[key: string]: string;
|
|
473
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof ClientCreationRequest
|
|
484
|
+
*/
|
|
485
|
+
'managerId'?: string;
|
|
474
486
|
}
|
|
475
487
|
/**
|
|
476
488
|
*
|
|
@@ -943,6 +955,12 @@ export interface Order {
|
|
|
943
955
|
* @memberof Order
|
|
944
956
|
*/
|
|
945
957
|
'source'?: string;
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @type {string}
|
|
961
|
+
* @memberof Order
|
|
962
|
+
*/
|
|
963
|
+
'userID'?: string;
|
|
946
964
|
}
|
|
947
965
|
export declare const OrderKindEnum: {
|
|
948
966
|
readonly Webshop: "webshop";
|
|
@@ -4010,6 +4028,19 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4010
4028
|
* @throws {RequiredError}
|
|
4011
4029
|
*/
|
|
4012
4030
|
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4031
|
+
/**
|
|
4032
|
+
* List existing orders
|
|
4033
|
+
* @summary List existing orders
|
|
4034
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4035
|
+
* @param {string} [search] Search for product or order
|
|
4036
|
+
* @param {string} [productId] Filter by token
|
|
4037
|
+
* @param {string} [balanceId] Filter by balance
|
|
4038
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4039
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4040
|
+
* @param {*} [options] Override http request option.
|
|
4041
|
+
* @throws {RequiredError}
|
|
4042
|
+
*/
|
|
4043
|
+
listOrdersUser: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4013
4044
|
};
|
|
4014
4045
|
/**
|
|
4015
4046
|
* OrderApi - functional programming interface
|
|
@@ -4045,6 +4076,19 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4045
4076
|
* @throws {RequiredError}
|
|
4046
4077
|
*/
|
|
4047
4078
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4079
|
+
/**
|
|
4080
|
+
* List existing orders
|
|
4081
|
+
* @summary List existing orders
|
|
4082
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4083
|
+
* @param {string} [search] Search for product or order
|
|
4084
|
+
* @param {string} [productId] Filter by token
|
|
4085
|
+
* @param {string} [balanceId] Filter by balance
|
|
4086
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4087
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4088
|
+
* @param {*} [options] Override http request option.
|
|
4089
|
+
* @throws {RequiredError}
|
|
4090
|
+
*/
|
|
4091
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4048
4092
|
};
|
|
4049
4093
|
/**
|
|
4050
4094
|
* OrderApi - factory interface
|
|
@@ -4080,6 +4124,19 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4080
4124
|
* @throws {RequiredError}
|
|
4081
4125
|
*/
|
|
4082
4126
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4127
|
+
/**
|
|
4128
|
+
* List existing orders
|
|
4129
|
+
* @summary List existing orders
|
|
4130
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4131
|
+
* @param {string} [search] Search for product or order
|
|
4132
|
+
* @param {string} [productId] Filter by token
|
|
4133
|
+
* @param {string} [balanceId] Filter by balance
|
|
4134
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4135
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4136
|
+
* @param {*} [options] Override http request option.
|
|
4137
|
+
* @throws {RequiredError}
|
|
4138
|
+
*/
|
|
4139
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4083
4140
|
};
|
|
4084
4141
|
/**
|
|
4085
4142
|
* OrderApi - object-oriented interface
|
|
@@ -4120,6 +4177,20 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4120
4177
|
* @memberof OrderApi
|
|
4121
4178
|
*/
|
|
4122
4179
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4180
|
+
/**
|
|
4181
|
+
* List existing orders
|
|
4182
|
+
* @summary List existing orders
|
|
4183
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4184
|
+
* @param {string} [search] Search for product or order
|
|
4185
|
+
* @param {string} [productId] Filter by token
|
|
4186
|
+
* @param {string} [balanceId] Filter by balance
|
|
4187
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4188
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
* @memberof OrderApi
|
|
4192
|
+
*/
|
|
4193
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4123
4194
|
}
|
|
4124
4195
|
/**
|
|
4125
4196
|
* 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
|
@@ -444,6 +444,12 @@ export interface Client {
|
|
|
444
444
|
* @memberof Client
|
|
445
445
|
*/
|
|
446
446
|
'updatedAt': string;
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @type {User}
|
|
450
|
+
* @memberof Client
|
|
451
|
+
*/
|
|
452
|
+
'manager'?: User;
|
|
447
453
|
}
|
|
448
454
|
/**
|
|
449
455
|
*
|
|
@@ -471,6 +477,12 @@ export interface ClientCreationRequest {
|
|
|
471
477
|
'additionalProperties': {
|
|
472
478
|
[key: string]: string;
|
|
473
479
|
};
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof ClientCreationRequest
|
|
484
|
+
*/
|
|
485
|
+
'managerId'?: string;
|
|
474
486
|
}
|
|
475
487
|
/**
|
|
476
488
|
*
|
|
@@ -943,6 +955,12 @@ export interface Order {
|
|
|
943
955
|
* @memberof Order
|
|
944
956
|
*/
|
|
945
957
|
'source'?: string;
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @type {string}
|
|
961
|
+
* @memberof Order
|
|
962
|
+
*/
|
|
963
|
+
'userID'?: string;
|
|
946
964
|
}
|
|
947
965
|
export declare const OrderKindEnum: {
|
|
948
966
|
readonly Webshop: "webshop";
|
|
@@ -4010,6 +4028,19 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4010
4028
|
* @throws {RequiredError}
|
|
4011
4029
|
*/
|
|
4012
4030
|
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4031
|
+
/**
|
|
4032
|
+
* List existing orders
|
|
4033
|
+
* @summary List existing orders
|
|
4034
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4035
|
+
* @param {string} [search] Search for product or order
|
|
4036
|
+
* @param {string} [productId] Filter by token
|
|
4037
|
+
* @param {string} [balanceId] Filter by balance
|
|
4038
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4039
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4040
|
+
* @param {*} [options] Override http request option.
|
|
4041
|
+
* @throws {RequiredError}
|
|
4042
|
+
*/
|
|
4043
|
+
listOrdersUser: (paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4013
4044
|
};
|
|
4014
4045
|
/**
|
|
4015
4046
|
* OrderApi - functional programming interface
|
|
@@ -4045,6 +4076,19 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
|
4045
4076
|
* @throws {RequiredError}
|
|
4046
4077
|
*/
|
|
4047
4078
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4079
|
+
/**
|
|
4080
|
+
* List existing orders
|
|
4081
|
+
* @summary List existing orders
|
|
4082
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4083
|
+
* @param {string} [search] Search for product or order
|
|
4084
|
+
* @param {string} [productId] Filter by token
|
|
4085
|
+
* @param {string} [balanceId] Filter by balance
|
|
4086
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4087
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4088
|
+
* @param {*} [options] Override http request option.
|
|
4089
|
+
* @throws {RequiredError}
|
|
4090
|
+
*/
|
|
4091
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
|
4048
4092
|
};
|
|
4049
4093
|
/**
|
|
4050
4094
|
* OrderApi - factory interface
|
|
@@ -4080,6 +4124,19 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4080
4124
|
* @throws {RequiredError}
|
|
4081
4125
|
*/
|
|
4082
4126
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4127
|
+
/**
|
|
4128
|
+
* List existing orders
|
|
4129
|
+
* @summary List existing orders
|
|
4130
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4131
|
+
* @param {string} [search] Search for product or order
|
|
4132
|
+
* @param {string} [productId] Filter by token
|
|
4133
|
+
* @param {string} [balanceId] Filter by balance
|
|
4134
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4135
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4136
|
+
* @param {*} [options] Override http request option.
|
|
4137
|
+
* @throws {RequiredError}
|
|
4138
|
+
*/
|
|
4139
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse>;
|
|
4083
4140
|
};
|
|
4084
4141
|
/**
|
|
4085
4142
|
* OrderApi - object-oriented interface
|
|
@@ -4120,6 +4177,20 @@ export declare class OrderApi extends BaseAPI {
|
|
|
4120
4177
|
* @memberof OrderApi
|
|
4121
4178
|
*/
|
|
4122
4179
|
listOrders(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4180
|
+
/**
|
|
4181
|
+
* List existing orders
|
|
4182
|
+
* @summary List existing orders
|
|
4183
|
+
* @param {string} [paginationToken] This is the pagination token
|
|
4184
|
+
* @param {string} [search] Search for product or order
|
|
4185
|
+
* @param {string} [productId] Filter by token
|
|
4186
|
+
* @param {string} [balanceId] Filter by balance
|
|
4187
|
+
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
4188
|
+
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
* @memberof OrderApi
|
|
4192
|
+
*/
|
|
4193
|
+
listOrdersUser(paginationToken?: string, search?: string, productId?: string, balanceId?: string, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
|
4123
4194
|
}
|
|
4124
4195
|
/**
|
|
4125
4196
|
* 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
|