flexinet-api 0.0.660-prerelease0 → 0.0.661-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 +89 -1
- package/dist/api.d.ts +47 -0
- package/dist/api.js +69 -1
- package/dist/esm/api.d.ts +47 -0
- package/dist/esm/api.js +69 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.661-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.661-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -628,6 +628,19 @@ export interface ClientListResponse {
|
|
|
628
628
|
*/
|
|
629
629
|
'hasMore': boolean;
|
|
630
630
|
}
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @export
|
|
634
|
+
* @interface ClientsBulkCreationRequest
|
|
635
|
+
*/
|
|
636
|
+
export interface ClientsBulkCreationRequest {
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @type {Array<ClientCreationRequest>}
|
|
640
|
+
* @memberof ClientsBulkCreationRequest
|
|
641
|
+
*/
|
|
642
|
+
'clients': Array<ClientCreationRequest>;
|
|
643
|
+
}
|
|
631
644
|
/**
|
|
632
645
|
*
|
|
633
646
|
* @export
|
|
@@ -1772,7 +1785,8 @@ export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
|
1772
1785
|
|
|
1773
1786
|
export const ProductUsage = {
|
|
1774
1787
|
Webshop: 'webshop',
|
|
1775
|
-
Promotion: 'promotion'
|
|
1788
|
+
Promotion: 'promotion',
|
|
1789
|
+
SalesBudget: 'sales_budget'
|
|
1776
1790
|
} as const;
|
|
1777
1791
|
|
|
1778
1792
|
export type ProductUsage = typeof ProductUsage[keyof typeof ProductUsage];
|
|
@@ -4191,6 +4205,47 @@ export class CategoryApi extends BaseAPI {
|
|
|
4191
4205
|
*/
|
|
4192
4206
|
export const ClientApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4193
4207
|
return {
|
|
4208
|
+
/**
|
|
4209
|
+
* Create multiple clients
|
|
4210
|
+
* @summary Create multiple clients
|
|
4211
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4212
|
+
* @param {*} [options] Override http request option.
|
|
4213
|
+
* @throws {RequiredError}
|
|
4214
|
+
*/
|
|
4215
|
+
bulkCreateClients: async (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4216
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
4217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4219
|
+
let baseOptions;
|
|
4220
|
+
if (configuration) {
|
|
4221
|
+
baseOptions = configuration.baseOptions;
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4225
|
+
const localVarHeaderParameter = {} as any;
|
|
4226
|
+
const localVarQueryParameter = {} as any;
|
|
4227
|
+
|
|
4228
|
+
// authentication systemJWT required
|
|
4229
|
+
// http bearer authentication required
|
|
4230
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4231
|
+
|
|
4232
|
+
// authentication ApiKeyAuth required
|
|
4233
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
4234
|
+
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4238
|
+
|
|
4239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4241
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4242
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkCreationRequest, localVarRequestOptions, configuration)
|
|
4243
|
+
|
|
4244
|
+
return {
|
|
4245
|
+
url: toPathString(localVarUrlObj),
|
|
4246
|
+
options: localVarRequestOptions,
|
|
4247
|
+
};
|
|
4248
|
+
},
|
|
4194
4249
|
/**
|
|
4195
4250
|
* Create a new client
|
|
4196
4251
|
* @summary Create client
|
|
@@ -4385,6 +4440,17 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4385
4440
|
export const ClientApiFp = function(configuration?: Configuration) {
|
|
4386
4441
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration)
|
|
4387
4442
|
return {
|
|
4443
|
+
/**
|
|
4444
|
+
* Create multiple clients
|
|
4445
|
+
* @summary Create multiple clients
|
|
4446
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4447
|
+
* @param {*} [options] Override http request option.
|
|
4448
|
+
* @throws {RequiredError}
|
|
4449
|
+
*/
|
|
4450
|
+
async bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
|
4451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
4452
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4453
|
+
},
|
|
4388
4454
|
/**
|
|
4389
4455
|
* Create a new client
|
|
4390
4456
|
* @summary Create client
|
|
@@ -4444,6 +4510,16 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
|
4444
4510
|
export const ClientApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4445
4511
|
const localVarFp = ClientApiFp(configuration)
|
|
4446
4512
|
return {
|
|
4513
|
+
/**
|
|
4514
|
+
* Create multiple clients
|
|
4515
|
+
* @summary Create multiple clients
|
|
4516
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4517
|
+
* @param {*} [options] Override http request option.
|
|
4518
|
+
* @throws {RequiredError}
|
|
4519
|
+
*/
|
|
4520
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>> {
|
|
4521
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
4522
|
+
},
|
|
4447
4523
|
/**
|
|
4448
4524
|
* Create a new client
|
|
4449
4525
|
* @summary Create client
|
|
@@ -4499,6 +4575,18 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
|
4499
4575
|
* @extends {BaseAPI}
|
|
4500
4576
|
*/
|
|
4501
4577
|
export class ClientApi extends BaseAPI {
|
|
4578
|
+
/**
|
|
4579
|
+
* Create multiple clients
|
|
4580
|
+
* @summary Create multiple clients
|
|
4581
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
4582
|
+
* @param {*} [options] Override http request option.
|
|
4583
|
+
* @throws {RequiredError}
|
|
4584
|
+
* @memberof ClientApi
|
|
4585
|
+
*/
|
|
4586
|
+
public bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) {
|
|
4587
|
+
return ClientApiFp(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4502
4590
|
/**
|
|
4503
4591
|
* Create a new client
|
|
4504
4592
|
* @summary Create client
|
package/dist/api.d.ts
CHANGED
|
@@ -595,6 +595,19 @@ export interface ClientListResponse {
|
|
|
595
595
|
*/
|
|
596
596
|
'hasMore': boolean;
|
|
597
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @export
|
|
601
|
+
* @interface ClientsBulkCreationRequest
|
|
602
|
+
*/
|
|
603
|
+
export interface ClientsBulkCreationRequest {
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @type {Array<ClientCreationRequest>}
|
|
607
|
+
* @memberof ClientsBulkCreationRequest
|
|
608
|
+
*/
|
|
609
|
+
'clients': Array<ClientCreationRequest>;
|
|
610
|
+
}
|
|
598
611
|
/**
|
|
599
612
|
*
|
|
600
613
|
* @export
|
|
@@ -1679,6 +1692,7 @@ export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
|
1679
1692
|
export declare const ProductUsage: {
|
|
1680
1693
|
readonly Webshop: "webshop";
|
|
1681
1694
|
readonly Promotion: "promotion";
|
|
1695
|
+
readonly SalesBudget: "sales_budget";
|
|
1682
1696
|
};
|
|
1683
1697
|
export type ProductUsage = typeof ProductUsage[keyof typeof ProductUsage];
|
|
1684
1698
|
/**
|
|
@@ -3683,6 +3697,14 @@ export declare class CategoryApi extends BaseAPI {
|
|
|
3683
3697
|
* @export
|
|
3684
3698
|
*/
|
|
3685
3699
|
export declare const ClientApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3700
|
+
/**
|
|
3701
|
+
* Create multiple clients
|
|
3702
|
+
* @summary Create multiple clients
|
|
3703
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3704
|
+
* @param {*} [options] Override http request option.
|
|
3705
|
+
* @throws {RequiredError}
|
|
3706
|
+
*/
|
|
3707
|
+
bulkCreateClients: (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3686
3708
|
/**
|
|
3687
3709
|
* Create a new client
|
|
3688
3710
|
* @summary Create client
|
|
@@ -3726,6 +3748,14 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3726
3748
|
* @export
|
|
3727
3749
|
*/
|
|
3728
3750
|
export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
3751
|
+
/**
|
|
3752
|
+
* Create multiple clients
|
|
3753
|
+
* @summary Create multiple clients
|
|
3754
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
|
|
3729
3759
|
/**
|
|
3730
3760
|
* Create a new client
|
|
3731
3761
|
* @summary Create client
|
|
@@ -3769,6 +3799,14 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3769
3799
|
* @export
|
|
3770
3800
|
*/
|
|
3771
3801
|
export declare const ClientApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3802
|
+
/**
|
|
3803
|
+
* Create multiple clients
|
|
3804
|
+
* @summary Create multiple clients
|
|
3805
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>>;
|
|
3772
3810
|
/**
|
|
3773
3811
|
* Create a new client
|
|
3774
3812
|
* @summary Create client
|
|
@@ -3814,6 +3852,15 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3814
3852
|
* @extends {BaseAPI}
|
|
3815
3853
|
*/
|
|
3816
3854
|
export declare class ClientApi extends BaseAPI {
|
|
3855
|
+
/**
|
|
3856
|
+
* Create multiple clients
|
|
3857
|
+
* @summary Create multiple clients
|
|
3858
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof ClientApi
|
|
3862
|
+
*/
|
|
3863
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
|
|
3817
3864
|
/**
|
|
3818
3865
|
* Create a new client
|
|
3819
3866
|
* @summary Create client
|
package/dist/api.js
CHANGED
|
@@ -178,7 +178,8 @@ exports.ProductStatus = {
|
|
|
178
178
|
*/
|
|
179
179
|
exports.ProductUsage = {
|
|
180
180
|
Webshop: 'webshop',
|
|
181
|
-
Promotion: 'promotion'
|
|
181
|
+
Promotion: 'promotion',
|
|
182
|
+
SalesBudget: 'sales_budget'
|
|
182
183
|
};
|
|
183
184
|
/**
|
|
184
185
|
*
|
|
@@ -955,6 +956,39 @@ exports.CategoryApi = CategoryApi;
|
|
|
955
956
|
*/
|
|
956
957
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
957
958
|
return {
|
|
959
|
+
/**
|
|
960
|
+
* Create multiple clients
|
|
961
|
+
* @summary Create multiple clients
|
|
962
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
*/
|
|
966
|
+
bulkCreateClients: (clientsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
967
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
968
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
969
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
970
|
+
let baseOptions;
|
|
971
|
+
if (configuration) {
|
|
972
|
+
baseOptions = configuration.baseOptions;
|
|
973
|
+
}
|
|
974
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
975
|
+
const localVarHeaderParameter = {};
|
|
976
|
+
const localVarQueryParameter = {};
|
|
977
|
+
// authentication systemJWT required
|
|
978
|
+
// http bearer authentication required
|
|
979
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
980
|
+
// authentication ApiKeyAuth required
|
|
981
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
982
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
983
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
984
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
985
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
986
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
987
|
+
return {
|
|
988
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
989
|
+
options: localVarRequestOptions,
|
|
990
|
+
};
|
|
991
|
+
}),
|
|
958
992
|
/**
|
|
959
993
|
* Create a new client
|
|
960
994
|
* @summary Create client
|
|
@@ -1117,6 +1151,19 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
|
1117
1151
|
const ClientApiFp = function (configuration) {
|
|
1118
1152
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1119
1153
|
return {
|
|
1154
|
+
/**
|
|
1155
|
+
* Create multiple clients
|
|
1156
|
+
* @summary Create multiple clients
|
|
1157
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
*/
|
|
1161
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
1164
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1165
|
+
});
|
|
1166
|
+
},
|
|
1120
1167
|
/**
|
|
1121
1168
|
* Create a new client
|
|
1122
1169
|
* @summary Create client
|
|
@@ -1184,6 +1231,16 @@ exports.ClientApiFp = ClientApiFp;
|
|
|
1184
1231
|
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1185
1232
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1186
1233
|
return {
|
|
1234
|
+
/**
|
|
1235
|
+
* Create multiple clients
|
|
1236
|
+
* @summary Create multiple clients
|
|
1237
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1242
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1243
|
+
},
|
|
1187
1244
|
/**
|
|
1188
1245
|
* Create a new client
|
|
1189
1246
|
* @summary Create client
|
|
@@ -1239,6 +1296,17 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1239
1296
|
* @extends {BaseAPI}
|
|
1240
1297
|
*/
|
|
1241
1298
|
class ClientApi extends base_1.BaseAPI {
|
|
1299
|
+
/**
|
|
1300
|
+
* Create multiple clients
|
|
1301
|
+
* @summary Create multiple clients
|
|
1302
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
* @memberof ClientApi
|
|
1306
|
+
*/
|
|
1307
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1308
|
+
return (0, exports.ClientApiFp)(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1309
|
+
}
|
|
1242
1310
|
/**
|
|
1243
1311
|
* Create a new client
|
|
1244
1312
|
* @summary Create client
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -595,6 +595,19 @@ export interface ClientListResponse {
|
|
|
595
595
|
*/
|
|
596
596
|
'hasMore': boolean;
|
|
597
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @export
|
|
601
|
+
* @interface ClientsBulkCreationRequest
|
|
602
|
+
*/
|
|
603
|
+
export interface ClientsBulkCreationRequest {
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @type {Array<ClientCreationRequest>}
|
|
607
|
+
* @memberof ClientsBulkCreationRequest
|
|
608
|
+
*/
|
|
609
|
+
'clients': Array<ClientCreationRequest>;
|
|
610
|
+
}
|
|
598
611
|
/**
|
|
599
612
|
*
|
|
600
613
|
* @export
|
|
@@ -1679,6 +1692,7 @@ export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
|
1679
1692
|
export declare const ProductUsage: {
|
|
1680
1693
|
readonly Webshop: "webshop";
|
|
1681
1694
|
readonly Promotion: "promotion";
|
|
1695
|
+
readonly SalesBudget: "sales_budget";
|
|
1682
1696
|
};
|
|
1683
1697
|
export type ProductUsage = typeof ProductUsage[keyof typeof ProductUsage];
|
|
1684
1698
|
/**
|
|
@@ -3683,6 +3697,14 @@ export declare class CategoryApi extends BaseAPI {
|
|
|
3683
3697
|
* @export
|
|
3684
3698
|
*/
|
|
3685
3699
|
export declare const ClientApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3700
|
+
/**
|
|
3701
|
+
* Create multiple clients
|
|
3702
|
+
* @summary Create multiple clients
|
|
3703
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3704
|
+
* @param {*} [options] Override http request option.
|
|
3705
|
+
* @throws {RequiredError}
|
|
3706
|
+
*/
|
|
3707
|
+
bulkCreateClients: (clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3686
3708
|
/**
|
|
3687
3709
|
* Create a new client
|
|
3688
3710
|
* @summary Create client
|
|
@@ -3726,6 +3748,14 @@ export declare const ClientApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3726
3748
|
* @export
|
|
3727
3749
|
*/
|
|
3728
3750
|
export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
3751
|
+
/**
|
|
3752
|
+
* Create multiple clients
|
|
3753
|
+
* @summary Create multiple clients
|
|
3754
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
|
|
3729
3759
|
/**
|
|
3730
3760
|
* Create a new client
|
|
3731
3761
|
* @summary Create client
|
|
@@ -3769,6 +3799,14 @@ export declare const ClientApiFp: (configuration?: Configuration) => {
|
|
|
3769
3799
|
* @export
|
|
3770
3800
|
*/
|
|
3771
3801
|
export declare const ClientApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3802
|
+
/**
|
|
3803
|
+
* Create multiple clients
|
|
3804
|
+
* @summary Create multiple clients
|
|
3805
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: any): AxiosPromise<Array<Client>>;
|
|
3772
3810
|
/**
|
|
3773
3811
|
* Create a new client
|
|
3774
3812
|
* @summary Create client
|
|
@@ -3814,6 +3852,15 @@ export declare const ClientApiFactory: (configuration?: Configuration, basePath?
|
|
|
3814
3852
|
* @extends {BaseAPI}
|
|
3815
3853
|
*/
|
|
3816
3854
|
export declare class ClientApi extends BaseAPI {
|
|
3855
|
+
/**
|
|
3856
|
+
* Create multiple clients
|
|
3857
|
+
* @summary Create multiple clients
|
|
3858
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof ClientApi
|
|
3862
|
+
*/
|
|
3863
|
+
bulkCreateClients(clientsBulkCreationRequest?: ClientsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
|
|
3817
3864
|
/**
|
|
3818
3865
|
* Create a new client
|
|
3819
3866
|
* @summary Create client
|
package/dist/esm/api.js
CHANGED
|
@@ -173,7 +173,8 @@ export const ProductStatus = {
|
|
|
173
173
|
*/
|
|
174
174
|
export const ProductUsage = {
|
|
175
175
|
Webshop: 'webshop',
|
|
176
|
-
Promotion: 'promotion'
|
|
176
|
+
Promotion: 'promotion',
|
|
177
|
+
SalesBudget: 'sales_budget'
|
|
177
178
|
};
|
|
178
179
|
/**
|
|
179
180
|
*
|
|
@@ -938,6 +939,39 @@ export class CategoryApi extends BaseAPI {
|
|
|
938
939
|
*/
|
|
939
940
|
export const ClientApiAxiosParamCreator = function (configuration) {
|
|
940
941
|
return {
|
|
942
|
+
/**
|
|
943
|
+
* Create multiple clients
|
|
944
|
+
* @summary Create multiple clients
|
|
945
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
bulkCreateClients: (clientsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
950
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
951
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
952
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
953
|
+
let baseOptions;
|
|
954
|
+
if (configuration) {
|
|
955
|
+
baseOptions = configuration.baseOptions;
|
|
956
|
+
}
|
|
957
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
958
|
+
const localVarHeaderParameter = {};
|
|
959
|
+
const localVarQueryParameter = {};
|
|
960
|
+
// authentication systemJWT required
|
|
961
|
+
// http bearer authentication required
|
|
962
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
963
|
+
// authentication ApiKeyAuth required
|
|
964
|
+
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
965
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
968
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
969
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
970
|
+
return {
|
|
971
|
+
url: toPathString(localVarUrlObj),
|
|
972
|
+
options: localVarRequestOptions,
|
|
973
|
+
};
|
|
974
|
+
}),
|
|
941
975
|
/**
|
|
942
976
|
* Create a new client
|
|
943
977
|
* @summary Create client
|
|
@@ -1099,6 +1133,19 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1099
1133
|
export const ClientApiFp = function (configuration) {
|
|
1100
1134
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
|
|
1101
1135
|
return {
|
|
1136
|
+
/**
|
|
1137
|
+
* Create multiple clients
|
|
1138
|
+
* @summary Create multiple clients
|
|
1139
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1145
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
1146
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1147
|
+
});
|
|
1148
|
+
},
|
|
1102
1149
|
/**
|
|
1103
1150
|
* Create a new client
|
|
1104
1151
|
* @summary Create client
|
|
@@ -1165,6 +1212,16 @@ export const ClientApiFp = function (configuration) {
|
|
|
1165
1212
|
export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1166
1213
|
const localVarFp = ClientApiFp(configuration);
|
|
1167
1214
|
return {
|
|
1215
|
+
/**
|
|
1216
|
+
* Create multiple clients
|
|
1217
|
+
* @summary Create multiple clients
|
|
1218
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1223
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1224
|
+
},
|
|
1168
1225
|
/**
|
|
1169
1226
|
* Create a new client
|
|
1170
1227
|
* @summary Create client
|
|
@@ -1219,6 +1276,17 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1219
1276
|
* @extends {BaseAPI}
|
|
1220
1277
|
*/
|
|
1221
1278
|
export class ClientApi extends BaseAPI {
|
|
1279
|
+
/**
|
|
1280
|
+
* Create multiple clients
|
|
1281
|
+
* @summary Create multiple clients
|
|
1282
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1283
|
+
* @param {*} [options] Override http request option.
|
|
1284
|
+
* @throws {RequiredError}
|
|
1285
|
+
* @memberof ClientApi
|
|
1286
|
+
*/
|
|
1287
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1288
|
+
return ClientApiFp(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1289
|
+
}
|
|
1222
1290
|
/**
|
|
1223
1291
|
* Create a new client
|
|
1224
1292
|
* @summary Create client
|