flexinet-api 0.0.1421-prerelease0 → 0.0.1439-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 +109 -0
- package/dist/api.d.ts +71 -0
- package/dist/api.js +65 -0
- package/dist/esm/api.d.ts +71 -0
- package/dist/esm/api.js +65 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1439-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.1439-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -644,6 +644,12 @@ export interface Client {
|
|
644
644
|
* @memberof Client
|
645
645
|
*/
|
646
646
|
'isSuspended'?: boolean;
|
647
|
+
/**
|
648
|
+
*
|
649
|
+
* @type {boolean}
|
650
|
+
* @memberof Client
|
651
|
+
*/
|
652
|
+
'isExcluded'?: boolean;
|
647
653
|
}
|
648
654
|
/**
|
649
655
|
*
|
@@ -707,6 +713,25 @@ export interface ClientListResponse {
|
|
707
713
|
*/
|
708
714
|
'hasMore': boolean;
|
709
715
|
}
|
716
|
+
/**
|
717
|
+
*
|
718
|
+
* @export
|
719
|
+
* @interface ClientUpdateRequest
|
720
|
+
*/
|
721
|
+
export interface ClientUpdateRequest {
|
722
|
+
/**
|
723
|
+
*
|
724
|
+
* @type {string}
|
725
|
+
* @memberof ClientUpdateRequest
|
726
|
+
*/
|
727
|
+
'referenceId': string;
|
728
|
+
/**
|
729
|
+
*
|
730
|
+
* @type {boolean}
|
731
|
+
* @memberof ClientUpdateRequest
|
732
|
+
*/
|
733
|
+
'isExcluded': boolean;
|
734
|
+
}
|
710
735
|
/**
|
711
736
|
*
|
712
737
|
* @export
|
@@ -720,6 +745,19 @@ export interface ClientsBulkCreationRequest {
|
|
720
745
|
*/
|
721
746
|
'clients': Array<ClientCreationRequest>;
|
722
747
|
}
|
748
|
+
/**
|
749
|
+
*
|
750
|
+
* @export
|
751
|
+
* @interface ClientsBulkUpdateRequest
|
752
|
+
*/
|
753
|
+
export interface ClientsBulkUpdateRequest {
|
754
|
+
/**
|
755
|
+
*
|
756
|
+
* @type {Array<ClientUpdateRequest>}
|
757
|
+
* @memberof ClientsBulkUpdateRequest
|
758
|
+
*/
|
759
|
+
'clients': Array<ClientUpdateRequest>;
|
760
|
+
}
|
723
761
|
/**
|
724
762
|
*
|
725
763
|
* @export
|
@@ -5175,6 +5213,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
|
|
5175
5213
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5176
5214
|
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
5177
5215
|
|
5216
|
+
return {
|
5217
|
+
url: toPathString(localVarUrlObj),
|
5218
|
+
options: localVarRequestOptions,
|
5219
|
+
};
|
5220
|
+
},
|
5221
|
+
/**
|
5222
|
+
* Update multiple clients
|
5223
|
+
* @summary Update multiple clients
|
5224
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5225
|
+
* @param {*} [options] Override http request option.
|
5226
|
+
* @throws {RequiredError}
|
5227
|
+
*/
|
5228
|
+
bulkUpdateClients: async (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5229
|
+
const localVarPath = `/admins/clients/bulk`;
|
5230
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5231
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
5232
|
+
let baseOptions;
|
5233
|
+
if (configuration) {
|
5234
|
+
baseOptions = configuration.baseOptions;
|
5235
|
+
}
|
5236
|
+
|
5237
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
5238
|
+
const localVarHeaderParameter = {} as any;
|
5239
|
+
const localVarQueryParameter = {} as any;
|
5240
|
+
|
5241
|
+
// authentication systemJWT required
|
5242
|
+
// http bearer authentication required
|
5243
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
5244
|
+
|
5245
|
+
|
5246
|
+
|
5247
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
5248
|
+
|
5249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5251
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5252
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration)
|
5253
|
+
|
5178
5254
|
return {
|
5179
5255
|
url: toPathString(localVarUrlObj),
|
5180
5256
|
options: localVarRequestOptions,
|
@@ -5223,6 +5299,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
|
|
5223
5299
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
5224
5300
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5225
5301
|
},
|
5302
|
+
/**
|
5303
|
+
* Update multiple clients
|
5304
|
+
* @summary Update multiple clients
|
5305
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5306
|
+
* @param {*} [options] Override http request option.
|
5307
|
+
* @throws {RequiredError}
|
5308
|
+
*/
|
5309
|
+
async bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
5310
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
5311
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5312
|
+
},
|
5226
5313
|
}
|
5227
5314
|
};
|
5228
5315
|
|
@@ -5263,6 +5350,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
|
|
5263
5350
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
5264
5351
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
5265
5352
|
},
|
5353
|
+
/**
|
5354
|
+
* Update multiple clients
|
5355
|
+
* @summary Update multiple clients
|
5356
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5357
|
+
* @param {*} [options] Override http request option.
|
5358
|
+
* @throws {RequiredError}
|
5359
|
+
*/
|
5360
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>> {
|
5361
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
5362
|
+
},
|
5266
5363
|
};
|
5267
5364
|
};
|
5268
5365
|
|
@@ -5308,6 +5405,18 @@ export class BulkApi extends BaseAPI {
|
|
5308
5405
|
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
5309
5406
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
5310
5407
|
}
|
5408
|
+
|
5409
|
+
/**
|
5410
|
+
* Update multiple clients
|
5411
|
+
* @summary Update multiple clients
|
5412
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5413
|
+
* @param {*} [options] Override http request option.
|
5414
|
+
* @throws {RequiredError}
|
5415
|
+
* @memberof BulkApi
|
5416
|
+
*/
|
5417
|
+
public bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) {
|
5418
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
5419
|
+
}
|
5311
5420
|
}
|
5312
5421
|
|
5313
5422
|
|
package/dist/api.d.ts
CHANGED
@@ -597,6 +597,12 @@ export interface Client {
|
|
597
597
|
* @memberof Client
|
598
598
|
*/
|
599
599
|
'isSuspended'?: boolean;
|
600
|
+
/**
|
601
|
+
*
|
602
|
+
* @type {boolean}
|
603
|
+
* @memberof Client
|
604
|
+
*/
|
605
|
+
'isExcluded'?: boolean;
|
600
606
|
}
|
601
607
|
/**
|
602
608
|
*
|
@@ -662,6 +668,25 @@ export interface ClientListResponse {
|
|
662
668
|
*/
|
663
669
|
'hasMore': boolean;
|
664
670
|
}
|
671
|
+
/**
|
672
|
+
*
|
673
|
+
* @export
|
674
|
+
* @interface ClientUpdateRequest
|
675
|
+
*/
|
676
|
+
export interface ClientUpdateRequest {
|
677
|
+
/**
|
678
|
+
*
|
679
|
+
* @type {string}
|
680
|
+
* @memberof ClientUpdateRequest
|
681
|
+
*/
|
682
|
+
'referenceId': string;
|
683
|
+
/**
|
684
|
+
*
|
685
|
+
* @type {boolean}
|
686
|
+
* @memberof ClientUpdateRequest
|
687
|
+
*/
|
688
|
+
'isExcluded': boolean;
|
689
|
+
}
|
665
690
|
/**
|
666
691
|
*
|
667
692
|
* @export
|
@@ -675,6 +700,19 @@ export interface ClientsBulkCreationRequest {
|
|
675
700
|
*/
|
676
701
|
'clients': Array<ClientCreationRequest>;
|
677
702
|
}
|
703
|
+
/**
|
704
|
+
*
|
705
|
+
* @export
|
706
|
+
* @interface ClientsBulkUpdateRequest
|
707
|
+
*/
|
708
|
+
export interface ClientsBulkUpdateRequest {
|
709
|
+
/**
|
710
|
+
*
|
711
|
+
* @type {Array<ClientUpdateRequest>}
|
712
|
+
* @memberof ClientsBulkUpdateRequest
|
713
|
+
*/
|
714
|
+
'clients': Array<ClientUpdateRequest>;
|
715
|
+
}
|
678
716
|
/**
|
679
717
|
*
|
680
718
|
* @export
|
@@ -4548,6 +4586,14 @@ export declare const BulkApiAxiosParamCreator: (configuration?: Configuration) =
|
|
4548
4586
|
* @throws {RequiredError}
|
4549
4587
|
*/
|
4550
4588
|
bulkCreateTags: (tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4589
|
+
/**
|
4590
|
+
* Update multiple clients
|
4591
|
+
* @summary Update multiple clients
|
4592
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4593
|
+
* @param {*} [options] Override http request option.
|
4594
|
+
* @throws {RequiredError}
|
4595
|
+
*/
|
4596
|
+
bulkUpdateClients: (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4551
4597
|
};
|
4552
4598
|
/**
|
4553
4599
|
* BulkApi - functional programming interface
|
@@ -4578,6 +4624,14 @@ export declare const BulkApiFp: (configuration?: Configuration) => {
|
|
4578
4624
|
* @throws {RequiredError}
|
4579
4625
|
*/
|
4580
4626
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>>;
|
4627
|
+
/**
|
4628
|
+
* Update multiple clients
|
4629
|
+
* @summary Update multiple clients
|
4630
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4631
|
+
* @param {*} [options] Override http request option.
|
4632
|
+
* @throws {RequiredError}
|
4633
|
+
*/
|
4634
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
|
4581
4635
|
};
|
4582
4636
|
/**
|
4583
4637
|
* BulkApi - factory interface
|
@@ -4608,6 +4662,14 @@ export declare const BulkApiFactory: (configuration?: Configuration, basePath?:
|
|
4608
4662
|
* @throws {RequiredError}
|
4609
4663
|
*/
|
4610
4664
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>>;
|
4665
|
+
/**
|
4666
|
+
* Update multiple clients
|
4667
|
+
* @summary Update multiple clients
|
4668
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4669
|
+
* @param {*} [options] Override http request option.
|
4670
|
+
* @throws {RequiredError}
|
4671
|
+
*/
|
4672
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>>;
|
4611
4673
|
};
|
4612
4674
|
/**
|
4613
4675
|
* BulkApi - object-oriented interface
|
@@ -4643,6 +4705,15 @@ export declare class BulkApi extends BaseAPI {
|
|
4643
4705
|
* @memberof BulkApi
|
4644
4706
|
*/
|
4645
4707
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed[], any>>;
|
4708
|
+
/**
|
4709
|
+
* Update multiple clients
|
4710
|
+
* @summary Update multiple clients
|
4711
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4712
|
+
* @param {*} [options] Override http request option.
|
4713
|
+
* @throws {RequiredError}
|
4714
|
+
* @memberof BulkApi
|
4715
|
+
*/
|
4716
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
|
4646
4717
|
}
|
4647
4718
|
/**
|
4648
4719
|
* CategoryApi - axios parameter creator
|
package/dist/api.js
CHANGED
@@ -1123,6 +1123,37 @@ const BulkApiAxiosParamCreator = function (configuration) {
|
|
1123
1123
|
options: localVarRequestOptions,
|
1124
1124
|
};
|
1125
1125
|
}),
|
1126
|
+
/**
|
1127
|
+
* Update multiple clients
|
1128
|
+
* @summary Update multiple clients
|
1129
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1130
|
+
* @param {*} [options] Override http request option.
|
1131
|
+
* @throws {RequiredError}
|
1132
|
+
*/
|
1133
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1134
|
+
const localVarPath = `/admins/clients/bulk`;
|
1135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1136
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1137
|
+
let baseOptions;
|
1138
|
+
if (configuration) {
|
1139
|
+
baseOptions = configuration.baseOptions;
|
1140
|
+
}
|
1141
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1142
|
+
const localVarHeaderParameter = {};
|
1143
|
+
const localVarQueryParameter = {};
|
1144
|
+
// authentication systemJWT required
|
1145
|
+
// http bearer authentication required
|
1146
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1147
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1150
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1151
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1152
|
+
return {
|
1153
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1154
|
+
options: localVarRequestOptions,
|
1155
|
+
};
|
1156
|
+
}),
|
1126
1157
|
};
|
1127
1158
|
};
|
1128
1159
|
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
@@ -1172,6 +1203,19 @@ const BulkApiFp = function (configuration) {
|
|
1172
1203
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1173
1204
|
});
|
1174
1205
|
},
|
1206
|
+
/**
|
1207
|
+
* Update multiple clients
|
1208
|
+
* @summary Update multiple clients
|
1209
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1210
|
+
* @param {*} [options] Override http request option.
|
1211
|
+
* @throws {RequiredError}
|
1212
|
+
*/
|
1213
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1215
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1216
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1217
|
+
});
|
1218
|
+
},
|
1175
1219
|
};
|
1176
1220
|
};
|
1177
1221
|
exports.BulkApiFp = BulkApiFp;
|
@@ -1212,6 +1256,16 @@ const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1212
1256
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1213
1257
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1214
1258
|
},
|
1259
|
+
/**
|
1260
|
+
* Update multiple clients
|
1261
|
+
* @summary Update multiple clients
|
1262
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1263
|
+
* @param {*} [options] Override http request option.
|
1264
|
+
* @throws {RequiredError}
|
1265
|
+
*/
|
1266
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1267
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1268
|
+
},
|
1215
1269
|
};
|
1216
1270
|
};
|
1217
1271
|
exports.BulkApiFactory = BulkApiFactory;
|
@@ -1255,6 +1309,17 @@ class BulkApi extends base_1.BaseAPI {
|
|
1255
1309
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1256
1310
|
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1257
1311
|
}
|
1312
|
+
/**
|
1313
|
+
* Update multiple clients
|
1314
|
+
* @summary Update multiple clients
|
1315
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1316
|
+
* @param {*} [options] Override http request option.
|
1317
|
+
* @throws {RequiredError}
|
1318
|
+
* @memberof BulkApi
|
1319
|
+
*/
|
1320
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1321
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1322
|
+
}
|
1258
1323
|
}
|
1259
1324
|
exports.BulkApi = BulkApi;
|
1260
1325
|
/**
|
package/dist/esm/api.d.ts
CHANGED
@@ -597,6 +597,12 @@ export interface Client {
|
|
597
597
|
* @memberof Client
|
598
598
|
*/
|
599
599
|
'isSuspended'?: boolean;
|
600
|
+
/**
|
601
|
+
*
|
602
|
+
* @type {boolean}
|
603
|
+
* @memberof Client
|
604
|
+
*/
|
605
|
+
'isExcluded'?: boolean;
|
600
606
|
}
|
601
607
|
/**
|
602
608
|
*
|
@@ -662,6 +668,25 @@ export interface ClientListResponse {
|
|
662
668
|
*/
|
663
669
|
'hasMore': boolean;
|
664
670
|
}
|
671
|
+
/**
|
672
|
+
*
|
673
|
+
* @export
|
674
|
+
* @interface ClientUpdateRequest
|
675
|
+
*/
|
676
|
+
export interface ClientUpdateRequest {
|
677
|
+
/**
|
678
|
+
*
|
679
|
+
* @type {string}
|
680
|
+
* @memberof ClientUpdateRequest
|
681
|
+
*/
|
682
|
+
'referenceId': string;
|
683
|
+
/**
|
684
|
+
*
|
685
|
+
* @type {boolean}
|
686
|
+
* @memberof ClientUpdateRequest
|
687
|
+
*/
|
688
|
+
'isExcluded': boolean;
|
689
|
+
}
|
665
690
|
/**
|
666
691
|
*
|
667
692
|
* @export
|
@@ -675,6 +700,19 @@ export interface ClientsBulkCreationRequest {
|
|
675
700
|
*/
|
676
701
|
'clients': Array<ClientCreationRequest>;
|
677
702
|
}
|
703
|
+
/**
|
704
|
+
*
|
705
|
+
* @export
|
706
|
+
* @interface ClientsBulkUpdateRequest
|
707
|
+
*/
|
708
|
+
export interface ClientsBulkUpdateRequest {
|
709
|
+
/**
|
710
|
+
*
|
711
|
+
* @type {Array<ClientUpdateRequest>}
|
712
|
+
* @memberof ClientsBulkUpdateRequest
|
713
|
+
*/
|
714
|
+
'clients': Array<ClientUpdateRequest>;
|
715
|
+
}
|
678
716
|
/**
|
679
717
|
*
|
680
718
|
* @export
|
@@ -4548,6 +4586,14 @@ export declare const BulkApiAxiosParamCreator: (configuration?: Configuration) =
|
|
4548
4586
|
* @throws {RequiredError}
|
4549
4587
|
*/
|
4550
4588
|
bulkCreateTags: (tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4589
|
+
/**
|
4590
|
+
* Update multiple clients
|
4591
|
+
* @summary Update multiple clients
|
4592
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4593
|
+
* @param {*} [options] Override http request option.
|
4594
|
+
* @throws {RequiredError}
|
4595
|
+
*/
|
4596
|
+
bulkUpdateClients: (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4551
4597
|
};
|
4552
4598
|
/**
|
4553
4599
|
* BulkApi - functional programming interface
|
@@ -4578,6 +4624,14 @@ export declare const BulkApiFp: (configuration?: Configuration) => {
|
|
4578
4624
|
* @throws {RequiredError}
|
4579
4625
|
*/
|
4580
4626
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagDetailed>>>;
|
4627
|
+
/**
|
4628
|
+
* Update multiple clients
|
4629
|
+
* @summary Update multiple clients
|
4630
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4631
|
+
* @param {*} [options] Override http request option.
|
4632
|
+
* @throws {RequiredError}
|
4633
|
+
*/
|
4634
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>>;
|
4581
4635
|
};
|
4582
4636
|
/**
|
4583
4637
|
* BulkApi - factory interface
|
@@ -4608,6 +4662,14 @@ export declare const BulkApiFactory: (configuration?: Configuration, basePath?:
|
|
4608
4662
|
* @throws {RequiredError}
|
4609
4663
|
*/
|
4610
4664
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>>;
|
4665
|
+
/**
|
4666
|
+
* Update multiple clients
|
4667
|
+
* @summary Update multiple clients
|
4668
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4669
|
+
* @param {*} [options] Override http request option.
|
4670
|
+
* @throws {RequiredError}
|
4671
|
+
*/
|
4672
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>>;
|
4611
4673
|
};
|
4612
4674
|
/**
|
4613
4675
|
* BulkApi - object-oriented interface
|
@@ -4643,6 +4705,15 @@ export declare class BulkApi extends BaseAPI {
|
|
4643
4705
|
* @memberof BulkApi
|
4644
4706
|
*/
|
4645
4707
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed[], any>>;
|
4708
|
+
/**
|
4709
|
+
* Update multiple clients
|
4710
|
+
* @summary Update multiple clients
|
4711
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
4712
|
+
* @param {*} [options] Override http request option.
|
4713
|
+
* @throws {RequiredError}
|
4714
|
+
* @memberof BulkApi
|
4715
|
+
*/
|
4716
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Client[], any>>;
|
4646
4717
|
}
|
4647
4718
|
/**
|
4648
4719
|
* CategoryApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
@@ -1110,6 +1110,37 @@ export const BulkApiAxiosParamCreator = function (configuration) {
|
|
1110
1110
|
options: localVarRequestOptions,
|
1111
1111
|
};
|
1112
1112
|
}),
|
1113
|
+
/**
|
1114
|
+
* Update multiple clients
|
1115
|
+
* @summary Update multiple clients
|
1116
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1117
|
+
* @param {*} [options] Override http request option.
|
1118
|
+
* @throws {RequiredError}
|
1119
|
+
*/
|
1120
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1121
|
+
const localVarPath = `/admins/clients/bulk`;
|
1122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1124
|
+
let baseOptions;
|
1125
|
+
if (configuration) {
|
1126
|
+
baseOptions = configuration.baseOptions;
|
1127
|
+
}
|
1128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1129
|
+
const localVarHeaderParameter = {};
|
1130
|
+
const localVarQueryParameter = {};
|
1131
|
+
// authentication systemJWT required
|
1132
|
+
// http bearer authentication required
|
1133
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
1134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1139
|
+
return {
|
1140
|
+
url: toPathString(localVarUrlObj),
|
1141
|
+
options: localVarRequestOptions,
|
1142
|
+
};
|
1143
|
+
}),
|
1113
1144
|
};
|
1114
1145
|
};
|
1115
1146
|
/**
|
@@ -1158,6 +1189,19 @@ export const BulkApiFp = function (configuration) {
|
|
1158
1189
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1159
1190
|
});
|
1160
1191
|
},
|
1192
|
+
/**
|
1193
|
+
* Update multiple clients
|
1194
|
+
* @summary Update multiple clients
|
1195
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1196
|
+
* @param {*} [options] Override http request option.
|
1197
|
+
* @throws {RequiredError}
|
1198
|
+
*/
|
1199
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1201
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1202
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1203
|
+
});
|
1204
|
+
},
|
1161
1205
|
};
|
1162
1206
|
};
|
1163
1207
|
/**
|
@@ -1197,6 +1241,16 @@ export const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1197
1241
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1198
1242
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1199
1243
|
},
|
1244
|
+
/**
|
1245
|
+
* Update multiple clients
|
1246
|
+
* @summary Update multiple clients
|
1247
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1248
|
+
* @param {*} [options] Override http request option.
|
1249
|
+
* @throws {RequiredError}
|
1250
|
+
*/
|
1251
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1252
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1253
|
+
},
|
1200
1254
|
};
|
1201
1255
|
};
|
1202
1256
|
/**
|
@@ -1239,6 +1293,17 @@ export class BulkApi extends BaseAPI {
|
|
1239
1293
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1240
1294
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1241
1295
|
}
|
1296
|
+
/**
|
1297
|
+
* Update multiple clients
|
1298
|
+
* @summary Update multiple clients
|
1299
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1300
|
+
* @param {*} [options] Override http request option.
|
1301
|
+
* @throws {RequiredError}
|
1302
|
+
* @memberof BulkApi
|
1303
|
+
*/
|
1304
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1305
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1306
|
+
}
|
1242
1307
|
}
|
1243
1308
|
/**
|
1244
1309
|
* CategoryApi - axios parameter creator
|