@emilgroup/action-sdk 1.0.1-beta.21 → 1.0.1-beta.23
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/actions-api.ts +33 -72
- package/dist/api/actions-api.d.ts +21 -48
- package/dist/api/actions-api.js +30 -48
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/action-sdk@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/action-sdk@1.0.1-beta.23 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/action-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/action-sdk@1.0.1-beta.23
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `ActionsApi`.
|
package/api/actions-api.ts
CHANGED
|
@@ -88,20 +88,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
88
88
|
/**
|
|
89
89
|
* Deletes an action configuration by its code
|
|
90
90
|
* @summary Delete the action
|
|
91
|
-
* @param {string} code
|
|
92
|
-
* @param {any} action Unique identifier for the object.
|
|
91
|
+
* @param {string} code Action code
|
|
93
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
deleteAction: async (code: string,
|
|
96
|
+
deleteAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
97
|
// verify required parameter 'code' is not null or undefined
|
|
99
98
|
assertParamExists('deleteAction', 'code', code)
|
|
100
|
-
// verify required parameter 'action' is not null or undefined
|
|
101
|
-
assertParamExists('deleteAction', 'action', action)
|
|
102
99
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
103
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
104
|
-
.replace(`{${"action"}}`, encodeURIComponent(String(action)));
|
|
100
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
103
|
let baseOptions;
|
|
@@ -137,20 +133,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
137
133
|
/**
|
|
138
134
|
* Retrieves an action configuration by its code
|
|
139
135
|
* @summary Retrieve the action
|
|
140
|
-
* @param {string} code
|
|
141
|
-
* @param {any} action Unique identifier for the object.
|
|
136
|
+
* @param {string} code Action code
|
|
142
137
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
138
|
* @param {*} [options] Override http request option.
|
|
144
139
|
* @throws {RequiredError}
|
|
145
140
|
*/
|
|
146
|
-
getAction: async (code: string,
|
|
141
|
+
getAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
142
|
// verify required parameter 'code' is not null or undefined
|
|
148
143
|
assertParamExists('getAction', 'code', code)
|
|
149
|
-
// verify required parameter 'action' is not null or undefined
|
|
150
|
-
assertParamExists('getAction', 'action', action)
|
|
151
144
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
152
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
153
|
-
.replace(`{${"action"}}`, encodeURIComponent(String(action)));
|
|
145
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
154
146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
148
|
let baseOptions;
|
|
@@ -262,23 +254,19 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
262
254
|
/**
|
|
263
255
|
* Updates an existing action configuration (patch semantics)
|
|
264
256
|
* @summary Update the action
|
|
265
|
-
* @param {string} code
|
|
266
|
-
* @param {any} action Unique identifier for the object.
|
|
257
|
+
* @param {string} code Action code
|
|
267
258
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
268
259
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
269
260
|
* @param {*} [options] Override http request option.
|
|
270
261
|
* @throws {RequiredError}
|
|
271
262
|
*/
|
|
272
|
-
updateAction: async (code: string,
|
|
263
|
+
updateAction: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
273
264
|
// verify required parameter 'code' is not null or undefined
|
|
274
265
|
assertParamExists('updateAction', 'code', code)
|
|
275
|
-
// verify required parameter 'action' is not null or undefined
|
|
276
|
-
assertParamExists('updateAction', 'action', action)
|
|
277
266
|
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
278
267
|
assertParamExists('updateAction', 'updateActionRequestDto', updateActionRequestDto)
|
|
279
268
|
const localVarPath = `/actionservice/v1/actions/{code}`
|
|
280
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
281
|
-
.replace(`{${"action"}}`, encodeURIComponent(String(action)));
|
|
269
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
282
270
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
283
271
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
284
272
|
let baseOptions;
|
|
@@ -339,27 +327,25 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
339
327
|
/**
|
|
340
328
|
* Deletes an action configuration by its code
|
|
341
329
|
* @summary Delete the action
|
|
342
|
-
* @param {string} code
|
|
343
|
-
* @param {any} action Unique identifier for the object.
|
|
330
|
+
* @param {string} code Action code
|
|
344
331
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
332
|
* @param {*} [options] Override http request option.
|
|
346
333
|
* @throws {RequiredError}
|
|
347
334
|
*/
|
|
348
|
-
async deleteAction(code: string,
|
|
349
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code,
|
|
335
|
+
async deleteAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, authorization, options);
|
|
350
337
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
351
338
|
},
|
|
352
339
|
/**
|
|
353
340
|
* Retrieves an action configuration by its code
|
|
354
341
|
* @summary Retrieve the action
|
|
355
|
-
* @param {string} code
|
|
356
|
-
* @param {any} action Unique identifier for the object.
|
|
342
|
+
* @param {string} code Action code
|
|
357
343
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
344
|
* @param {*} [options] Override http request option.
|
|
359
345
|
* @throws {RequiredError}
|
|
360
346
|
*/
|
|
361
|
-
async getAction(code: string,
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code,
|
|
347
|
+
async getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
|
|
348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, options);
|
|
363
349
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
350
|
},
|
|
365
351
|
/**
|
|
@@ -383,15 +369,14 @@ export const ActionsApiFp = function(configuration?: Configuration) {
|
|
|
383
369
|
/**
|
|
384
370
|
* Updates an existing action configuration (patch semantics)
|
|
385
371
|
* @summary Update the action
|
|
386
|
-
* @param {string} code
|
|
387
|
-
* @param {any} action Unique identifier for the object.
|
|
372
|
+
* @param {string} code Action code
|
|
388
373
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
389
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
390
375
|
* @param {*} [options] Override http request option.
|
|
391
376
|
* @throws {RequiredError}
|
|
392
377
|
*/
|
|
393
|
-
async updateAction(code: string,
|
|
394
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code,
|
|
378
|
+
async updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
|
|
395
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
396
381
|
},
|
|
397
382
|
}
|
|
@@ -418,26 +403,24 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
418
403
|
/**
|
|
419
404
|
* Deletes an action configuration by its code
|
|
420
405
|
* @summary Delete the action
|
|
421
|
-
* @param {string} code
|
|
422
|
-
* @param {any} action Unique identifier for the object.
|
|
406
|
+
* @param {string} code Action code
|
|
423
407
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
424
408
|
* @param {*} [options] Override http request option.
|
|
425
409
|
* @throws {RequiredError}
|
|
426
410
|
*/
|
|
427
|
-
deleteAction(code: string,
|
|
428
|
-
return localVarFp.deleteAction(code,
|
|
411
|
+
deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
412
|
+
return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
429
413
|
},
|
|
430
414
|
/**
|
|
431
415
|
* Retrieves an action configuration by its code
|
|
432
416
|
* @summary Retrieve the action
|
|
433
|
-
* @param {string} code
|
|
434
|
-
* @param {any} action Unique identifier for the object.
|
|
417
|
+
* @param {string} code Action code
|
|
435
418
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
436
419
|
* @param {*} [options] Override http request option.
|
|
437
420
|
* @throws {RequiredError}
|
|
438
421
|
*/
|
|
439
|
-
getAction(code: string,
|
|
440
|
-
return localVarFp.getAction(code,
|
|
422
|
+
getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
|
|
423
|
+
return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
|
|
441
424
|
},
|
|
442
425
|
/**
|
|
443
426
|
* Lists all action configurations with optional filters
|
|
@@ -459,15 +442,14 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
|
|
|
459
442
|
/**
|
|
460
443
|
* Updates an existing action configuration (patch semantics)
|
|
461
444
|
* @summary Update the action
|
|
462
|
-
* @param {string} code
|
|
463
|
-
* @param {any} action Unique identifier for the object.
|
|
445
|
+
* @param {string} code Action code
|
|
464
446
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
465
447
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
466
448
|
* @param {*} [options] Override http request option.
|
|
467
449
|
* @throws {RequiredError}
|
|
468
450
|
*/
|
|
469
|
-
updateAction(code: string,
|
|
470
|
-
return localVarFp.updateAction(code,
|
|
451
|
+
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
|
|
452
|
+
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
471
453
|
},
|
|
472
454
|
};
|
|
473
455
|
};
|
|
@@ -500,19 +482,12 @@ export interface ActionsApiCreateActionRequest {
|
|
|
500
482
|
*/
|
|
501
483
|
export interface ActionsApiDeleteActionRequest {
|
|
502
484
|
/**
|
|
503
|
-
*
|
|
485
|
+
* Action code
|
|
504
486
|
* @type {string}
|
|
505
487
|
* @memberof ActionsApiDeleteAction
|
|
506
488
|
*/
|
|
507
489
|
readonly code: string
|
|
508
490
|
|
|
509
|
-
/**
|
|
510
|
-
* Unique identifier for the object.
|
|
511
|
-
* @type {any}
|
|
512
|
-
* @memberof ActionsApiDeleteAction
|
|
513
|
-
*/
|
|
514
|
-
readonly action: any
|
|
515
|
-
|
|
516
491
|
/**
|
|
517
492
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
493
|
* @type {string}
|
|
@@ -528,19 +503,12 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
528
503
|
*/
|
|
529
504
|
export interface ActionsApiGetActionRequest {
|
|
530
505
|
/**
|
|
531
|
-
*
|
|
506
|
+
* Action code
|
|
532
507
|
* @type {string}
|
|
533
508
|
* @memberof ActionsApiGetAction
|
|
534
509
|
*/
|
|
535
510
|
readonly code: string
|
|
536
511
|
|
|
537
|
-
/**
|
|
538
|
-
* Unique identifier for the object.
|
|
539
|
-
* @type {any}
|
|
540
|
-
* @memberof ActionsApiGetAction
|
|
541
|
-
*/
|
|
542
|
-
readonly action: any
|
|
543
|
-
|
|
544
512
|
/**
|
|
545
513
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
514
|
* @type {string}
|
|
@@ -619,19 +587,12 @@ export interface ActionsApiListActionsRequest {
|
|
|
619
587
|
*/
|
|
620
588
|
export interface ActionsApiUpdateActionRequest {
|
|
621
589
|
/**
|
|
622
|
-
*
|
|
590
|
+
* Action code
|
|
623
591
|
* @type {string}
|
|
624
592
|
* @memberof ActionsApiUpdateAction
|
|
625
593
|
*/
|
|
626
594
|
readonly code: string
|
|
627
595
|
|
|
628
|
-
/**
|
|
629
|
-
* Unique identifier for the object.
|
|
630
|
-
* @type {any}
|
|
631
|
-
* @memberof ActionsApiUpdateAction
|
|
632
|
-
*/
|
|
633
|
-
readonly action: any
|
|
634
|
-
|
|
635
596
|
/**
|
|
636
597
|
*
|
|
637
598
|
* @type {UpdateActionRequestDto}
|
|
@@ -675,7 +636,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
675
636
|
* @memberof ActionsApi
|
|
676
637
|
*/
|
|
677
638
|
public deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig) {
|
|
678
|
-
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.
|
|
639
|
+
return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
679
640
|
}
|
|
680
641
|
|
|
681
642
|
/**
|
|
@@ -687,7 +648,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
687
648
|
* @memberof ActionsApi
|
|
688
649
|
*/
|
|
689
650
|
public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
|
|
690
|
-
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.
|
|
651
|
+
return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
691
652
|
}
|
|
692
653
|
|
|
693
654
|
/**
|
|
@@ -711,6 +672,6 @@ export class ActionsApi extends BaseAPI {
|
|
|
711
672
|
* @memberof ActionsApi
|
|
712
673
|
*/
|
|
713
674
|
public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
|
|
714
|
-
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.
|
|
675
|
+
return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
715
676
|
}
|
|
716
677
|
}
|
|
@@ -35,23 +35,21 @@ export declare const ActionsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
35
35
|
/**
|
|
36
36
|
* Deletes an action configuration by its code
|
|
37
37
|
* @summary Delete the action
|
|
38
|
-
* @param {string} code
|
|
39
|
-
* @param {any} action Unique identifier for the object.
|
|
38
|
+
* @param {string} code Action code
|
|
40
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
40
|
* @param {*} [options] Override http request option.
|
|
42
41
|
* @throws {RequiredError}
|
|
43
42
|
*/
|
|
44
|
-
deleteAction: (code: string,
|
|
43
|
+
deleteAction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
44
|
/**
|
|
46
45
|
* Retrieves an action configuration by its code
|
|
47
46
|
* @summary Retrieve the action
|
|
48
|
-
* @param {string} code
|
|
49
|
-
* @param {any} action Unique identifier for the object.
|
|
47
|
+
* @param {string} code Action code
|
|
50
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
49
|
* @param {*} [options] Override http request option.
|
|
52
50
|
* @throws {RequiredError}
|
|
53
51
|
*/
|
|
54
|
-
getAction: (code: string,
|
|
52
|
+
getAction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
53
|
/**
|
|
56
54
|
* Lists all action configurations with optional filters
|
|
57
55
|
* @summary List actions
|
|
@@ -70,14 +68,13 @@ export declare const ActionsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
70
68
|
/**
|
|
71
69
|
* Updates an existing action configuration (patch semantics)
|
|
72
70
|
* @summary Update the action
|
|
73
|
-
* @param {string} code
|
|
74
|
-
* @param {any} action Unique identifier for the object.
|
|
71
|
+
* @param {string} code Action code
|
|
75
72
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
76
73
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
77
74
|
* @param {*} [options] Override http request option.
|
|
78
75
|
* @throws {RequiredError}
|
|
79
76
|
*/
|
|
80
|
-
updateAction: (code: string,
|
|
77
|
+
updateAction: (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
78
|
};
|
|
82
79
|
/**
|
|
83
80
|
* ActionsApi - functional programming interface
|
|
@@ -96,23 +93,21 @@ export declare const ActionsApiFp: (configuration?: Configuration) => {
|
|
|
96
93
|
/**
|
|
97
94
|
* Deletes an action configuration by its code
|
|
98
95
|
* @summary Delete the action
|
|
99
|
-
* @param {string} code
|
|
100
|
-
* @param {any} action Unique identifier for the object.
|
|
96
|
+
* @param {string} code Action code
|
|
101
97
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
98
|
* @param {*} [options] Override http request option.
|
|
103
99
|
* @throws {RequiredError}
|
|
104
100
|
*/
|
|
105
|
-
deleteAction(code: string,
|
|
101
|
+
deleteAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
106
102
|
/**
|
|
107
103
|
* Retrieves an action configuration by its code
|
|
108
104
|
* @summary Retrieve the action
|
|
109
|
-
* @param {string} code
|
|
110
|
-
* @param {any} action Unique identifier for the object.
|
|
105
|
+
* @param {string} code Action code
|
|
111
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
112
107
|
* @param {*} [options] Override http request option.
|
|
113
108
|
* @throws {RequiredError}
|
|
114
109
|
*/
|
|
115
|
-
getAction(code: string,
|
|
110
|
+
getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>>;
|
|
116
111
|
/**
|
|
117
112
|
* Lists all action configurations with optional filters
|
|
118
113
|
* @summary List actions
|
|
@@ -131,14 +126,13 @@ export declare const ActionsApiFp: (configuration?: Configuration) => {
|
|
|
131
126
|
/**
|
|
132
127
|
* Updates an existing action configuration (patch semantics)
|
|
133
128
|
* @summary Update the action
|
|
134
|
-
* @param {string} code
|
|
135
|
-
* @param {any} action Unique identifier for the object.
|
|
129
|
+
* @param {string} code Action code
|
|
136
130
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
137
131
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
132
|
* @param {*} [options] Override http request option.
|
|
139
133
|
* @throws {RequiredError}
|
|
140
134
|
*/
|
|
141
|
-
updateAction(code: string,
|
|
135
|
+
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>>;
|
|
142
136
|
};
|
|
143
137
|
/**
|
|
144
138
|
* ActionsApi - factory interface
|
|
@@ -157,23 +151,21 @@ export declare const ActionsApiFactory: (configuration?: Configuration, basePath
|
|
|
157
151
|
/**
|
|
158
152
|
* Deletes an action configuration by its code
|
|
159
153
|
* @summary Delete the action
|
|
160
|
-
* @param {string} code
|
|
161
|
-
* @param {any} action Unique identifier for the object.
|
|
154
|
+
* @param {string} code Action code
|
|
162
155
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
156
|
* @param {*} [options] Override http request option.
|
|
164
157
|
* @throws {RequiredError}
|
|
165
158
|
*/
|
|
166
|
-
deleteAction(code: string,
|
|
159
|
+
deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
167
160
|
/**
|
|
168
161
|
* Retrieves an action configuration by its code
|
|
169
162
|
* @summary Retrieve the action
|
|
170
|
-
* @param {string} code
|
|
171
|
-
* @param {any} action Unique identifier for the object.
|
|
163
|
+
* @param {string} code Action code
|
|
172
164
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
173
165
|
* @param {*} [options] Override http request option.
|
|
174
166
|
* @throws {RequiredError}
|
|
175
167
|
*/
|
|
176
|
-
getAction(code: string,
|
|
168
|
+
getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass>;
|
|
177
169
|
/**
|
|
178
170
|
* Lists all action configurations with optional filters
|
|
179
171
|
* @summary List actions
|
|
@@ -192,14 +184,13 @@ export declare const ActionsApiFactory: (configuration?: Configuration, basePath
|
|
|
192
184
|
/**
|
|
193
185
|
* Updates an existing action configuration (patch semantics)
|
|
194
186
|
* @summary Update the action
|
|
195
|
-
* @param {string} code
|
|
196
|
-
* @param {any} action Unique identifier for the object.
|
|
187
|
+
* @param {string} code Action code
|
|
197
188
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
198
189
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
199
190
|
* @param {*} [options] Override http request option.
|
|
200
191
|
* @throws {RequiredError}
|
|
201
192
|
*/
|
|
202
|
-
updateAction(code: string,
|
|
193
|
+
updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass>;
|
|
203
194
|
};
|
|
204
195
|
/**
|
|
205
196
|
* Request parameters for createAction operation in ActionsApi.
|
|
@@ -227,17 +218,11 @@ export interface ActionsApiCreateActionRequest {
|
|
|
227
218
|
*/
|
|
228
219
|
export interface ActionsApiDeleteActionRequest {
|
|
229
220
|
/**
|
|
230
|
-
*
|
|
221
|
+
* Action code
|
|
231
222
|
* @type {string}
|
|
232
223
|
* @memberof ActionsApiDeleteAction
|
|
233
224
|
*/
|
|
234
225
|
readonly code: string;
|
|
235
|
-
/**
|
|
236
|
-
* Unique identifier for the object.
|
|
237
|
-
* @type {any}
|
|
238
|
-
* @memberof ActionsApiDeleteAction
|
|
239
|
-
*/
|
|
240
|
-
readonly action: any;
|
|
241
226
|
/**
|
|
242
227
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
243
228
|
* @type {string}
|
|
@@ -252,17 +237,11 @@ export interface ActionsApiDeleteActionRequest {
|
|
|
252
237
|
*/
|
|
253
238
|
export interface ActionsApiGetActionRequest {
|
|
254
239
|
/**
|
|
255
|
-
*
|
|
240
|
+
* Action code
|
|
256
241
|
* @type {string}
|
|
257
242
|
* @memberof ActionsApiGetAction
|
|
258
243
|
*/
|
|
259
244
|
readonly code: string;
|
|
260
|
-
/**
|
|
261
|
-
* Unique identifier for the object.
|
|
262
|
-
* @type {any}
|
|
263
|
-
* @memberof ActionsApiGetAction
|
|
264
|
-
*/
|
|
265
|
-
readonly action: any;
|
|
266
245
|
/**
|
|
267
246
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
268
247
|
* @type {string}
|
|
@@ -332,17 +311,11 @@ export interface ActionsApiListActionsRequest {
|
|
|
332
311
|
*/
|
|
333
312
|
export interface ActionsApiUpdateActionRequest {
|
|
334
313
|
/**
|
|
335
|
-
*
|
|
314
|
+
* Action code
|
|
336
315
|
* @type {string}
|
|
337
316
|
* @memberof ActionsApiUpdateAction
|
|
338
317
|
*/
|
|
339
318
|
readonly code: string;
|
|
340
|
-
/**
|
|
341
|
-
* Unique identifier for the object.
|
|
342
|
-
* @type {any}
|
|
343
|
-
* @memberof ActionsApiUpdateAction
|
|
344
|
-
*/
|
|
345
|
-
readonly action: any;
|
|
346
319
|
/**
|
|
347
320
|
*
|
|
348
321
|
* @type {UpdateActionRequestDto}
|
package/dist/api/actions-api.js
CHANGED
|
@@ -144,13 +144,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* Deletes an action configuration by its code
|
|
146
146
|
* @summary Delete the action
|
|
147
|
-
* @param {string} code
|
|
148
|
-
* @param {any} action Unique identifier for the object.
|
|
147
|
+
* @param {string} code Action code
|
|
149
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
149
|
* @param {*} [options] Override http request option.
|
|
151
150
|
* @throws {RequiredError}
|
|
152
151
|
*/
|
|
153
|
-
deleteAction: function (code,
|
|
152
|
+
deleteAction: function (code, authorization, options) {
|
|
154
153
|
if (options === void 0) { options = {}; }
|
|
155
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -159,11 +158,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
159
158
|
case 0:
|
|
160
159
|
// verify required parameter 'code' is not null or undefined
|
|
161
160
|
(0, common_1.assertParamExists)('deleteAction', 'code', code);
|
|
162
|
-
// verify required parameter 'action' is not null or undefined
|
|
163
|
-
(0, common_1.assertParamExists)('deleteAction', 'action', action);
|
|
164
161
|
localVarPath = "/actionservice/v1/actions/{code}"
|
|
165
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
166
|
-
.replace("{".concat("action", "}"), encodeURIComponent(String(action)));
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
163
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
164
|
if (configuration) {
|
|
169
165
|
baseOptions = configuration.baseOptions;
|
|
@@ -196,13 +192,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
196
192
|
/**
|
|
197
193
|
* Retrieves an action configuration by its code
|
|
198
194
|
* @summary Retrieve the action
|
|
199
|
-
* @param {string} code
|
|
200
|
-
* @param {any} action Unique identifier for the object.
|
|
195
|
+
* @param {string} code Action code
|
|
201
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
202
197
|
* @param {*} [options] Override http request option.
|
|
203
198
|
* @throws {RequiredError}
|
|
204
199
|
*/
|
|
205
|
-
getAction: function (code,
|
|
200
|
+
getAction: function (code, authorization, options) {
|
|
206
201
|
if (options === void 0) { options = {}; }
|
|
207
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
203
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -211,11 +206,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
211
206
|
case 0:
|
|
212
207
|
// verify required parameter 'code' is not null or undefined
|
|
213
208
|
(0, common_1.assertParamExists)('getAction', 'code', code);
|
|
214
|
-
// verify required parameter 'action' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getAction', 'action', action);
|
|
216
209
|
localVarPath = "/actionservice/v1/actions/{code}"
|
|
217
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
218
|
-
.replace("{".concat("action", "}"), encodeURIComponent(String(action)));
|
|
210
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
219
211
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
212
|
if (configuration) {
|
|
221
213
|
baseOptions = configuration.baseOptions;
|
|
@@ -320,14 +312,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
320
312
|
/**
|
|
321
313
|
* Updates an existing action configuration (patch semantics)
|
|
322
314
|
* @summary Update the action
|
|
323
|
-
* @param {string} code
|
|
324
|
-
* @param {any} action Unique identifier for the object.
|
|
315
|
+
* @param {string} code Action code
|
|
325
316
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
326
317
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
327
318
|
* @param {*} [options] Override http request option.
|
|
328
319
|
* @throws {RequiredError}
|
|
329
320
|
*/
|
|
330
|
-
updateAction: function (code,
|
|
321
|
+
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
331
322
|
if (options === void 0) { options = {}; }
|
|
332
323
|
return __awaiter(_this, void 0, void 0, function () {
|
|
333
324
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -336,13 +327,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
336
327
|
case 0:
|
|
337
328
|
// verify required parameter 'code' is not null or undefined
|
|
338
329
|
(0, common_1.assertParamExists)('updateAction', 'code', code);
|
|
339
|
-
// verify required parameter 'action' is not null or undefined
|
|
340
|
-
(0, common_1.assertParamExists)('updateAction', 'action', action);
|
|
341
330
|
// verify required parameter 'updateActionRequestDto' is not null or undefined
|
|
342
331
|
(0, common_1.assertParamExists)('updateAction', 'updateActionRequestDto', updateActionRequestDto);
|
|
343
332
|
localVarPath = "/actionservice/v1/actions/{code}"
|
|
344
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
345
|
-
.replace("{".concat("action", "}"), encodeURIComponent(String(action)));
|
|
333
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
346
334
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
347
335
|
if (configuration) {
|
|
348
336
|
baseOptions = configuration.baseOptions;
|
|
@@ -408,18 +396,17 @@ var ActionsApiFp = function (configuration) {
|
|
|
408
396
|
/**
|
|
409
397
|
* Deletes an action configuration by its code
|
|
410
398
|
* @summary Delete the action
|
|
411
|
-
* @param {string} code
|
|
412
|
-
* @param {any} action Unique identifier for the object.
|
|
399
|
+
* @param {string} code Action code
|
|
413
400
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
414
401
|
* @param {*} [options] Override http request option.
|
|
415
402
|
* @throws {RequiredError}
|
|
416
403
|
*/
|
|
417
|
-
deleteAction: function (code,
|
|
404
|
+
deleteAction: function (code, authorization, options) {
|
|
418
405
|
return __awaiter(this, void 0, void 0, function () {
|
|
419
406
|
var localVarAxiosArgs;
|
|
420
407
|
return __generator(this, function (_a) {
|
|
421
408
|
switch (_a.label) {
|
|
422
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code,
|
|
409
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, authorization, options)];
|
|
423
410
|
case 1:
|
|
424
411
|
localVarAxiosArgs = _a.sent();
|
|
425
412
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -430,18 +417,17 @@ var ActionsApiFp = function (configuration) {
|
|
|
430
417
|
/**
|
|
431
418
|
* Retrieves an action configuration by its code
|
|
432
419
|
* @summary Retrieve the action
|
|
433
|
-
* @param {string} code
|
|
434
|
-
* @param {any} action Unique identifier for the object.
|
|
420
|
+
* @param {string} code Action code
|
|
435
421
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
436
422
|
* @param {*} [options] Override http request option.
|
|
437
423
|
* @throws {RequiredError}
|
|
438
424
|
*/
|
|
439
|
-
getAction: function (code,
|
|
425
|
+
getAction: function (code, authorization, options) {
|
|
440
426
|
return __awaiter(this, void 0, void 0, function () {
|
|
441
427
|
var localVarAxiosArgs;
|
|
442
428
|
return __generator(this, function (_a) {
|
|
443
429
|
switch (_a.label) {
|
|
444
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code,
|
|
430
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
|
|
445
431
|
case 1:
|
|
446
432
|
localVarAxiosArgs = _a.sent();
|
|
447
433
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -479,19 +465,18 @@ var ActionsApiFp = function (configuration) {
|
|
|
479
465
|
/**
|
|
480
466
|
* Updates an existing action configuration (patch semantics)
|
|
481
467
|
* @summary Update the action
|
|
482
|
-
* @param {string} code
|
|
483
|
-
* @param {any} action Unique identifier for the object.
|
|
468
|
+
* @param {string} code Action code
|
|
484
469
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
485
470
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
486
471
|
* @param {*} [options] Override http request option.
|
|
487
472
|
* @throws {RequiredError}
|
|
488
473
|
*/
|
|
489
|
-
updateAction: function (code,
|
|
474
|
+
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
490
475
|
return __awaiter(this, void 0, void 0, function () {
|
|
491
476
|
var localVarAxiosArgs;
|
|
492
477
|
return __generator(this, function (_a) {
|
|
493
478
|
switch (_a.label) {
|
|
494
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code,
|
|
479
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
|
|
495
480
|
case 1:
|
|
496
481
|
localVarAxiosArgs = _a.sent();
|
|
497
482
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -523,26 +508,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
523
508
|
/**
|
|
524
509
|
* Deletes an action configuration by its code
|
|
525
510
|
* @summary Delete the action
|
|
526
|
-
* @param {string} code
|
|
527
|
-
* @param {any} action Unique identifier for the object.
|
|
511
|
+
* @param {string} code Action code
|
|
528
512
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
529
513
|
* @param {*} [options] Override http request option.
|
|
530
514
|
* @throws {RequiredError}
|
|
531
515
|
*/
|
|
532
|
-
deleteAction: function (code,
|
|
533
|
-
return localVarFp.deleteAction(code,
|
|
516
|
+
deleteAction: function (code, authorization, options) {
|
|
517
|
+
return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
534
518
|
},
|
|
535
519
|
/**
|
|
536
520
|
* Retrieves an action configuration by its code
|
|
537
521
|
* @summary Retrieve the action
|
|
538
|
-
* @param {string} code
|
|
539
|
-
* @param {any} action Unique identifier for the object.
|
|
522
|
+
* @param {string} code Action code
|
|
540
523
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
541
524
|
* @param {*} [options] Override http request option.
|
|
542
525
|
* @throws {RequiredError}
|
|
543
526
|
*/
|
|
544
|
-
getAction: function (code,
|
|
545
|
-
return localVarFp.getAction(code,
|
|
527
|
+
getAction: function (code, authorization, options) {
|
|
528
|
+
return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
546
529
|
},
|
|
547
530
|
/**
|
|
548
531
|
* Lists all action configurations with optional filters
|
|
@@ -564,15 +547,14 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
564
547
|
/**
|
|
565
548
|
* Updates an existing action configuration (patch semantics)
|
|
566
549
|
* @summary Update the action
|
|
567
|
-
* @param {string} code
|
|
568
|
-
* @param {any} action Unique identifier for the object.
|
|
550
|
+
* @param {string} code Action code
|
|
569
551
|
* @param {UpdateActionRequestDto} updateActionRequestDto
|
|
570
552
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
553
|
* @param {*} [options] Override http request option.
|
|
572
554
|
* @throws {RequiredError}
|
|
573
555
|
*/
|
|
574
|
-
updateAction: function (code,
|
|
575
|
-
return localVarFp.updateAction(code,
|
|
556
|
+
updateAction: function (code, updateActionRequestDto, authorization, options) {
|
|
557
|
+
return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
576
558
|
},
|
|
577
559
|
};
|
|
578
560
|
};
|
|
@@ -610,7 +592,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
610
592
|
*/
|
|
611
593
|
ActionsApi.prototype.deleteAction = function (requestParameters, options) {
|
|
612
594
|
var _this = this;
|
|
613
|
-
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.
|
|
595
|
+
return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
596
|
};
|
|
615
597
|
/**
|
|
616
598
|
* Retrieves an action configuration by its code
|
|
@@ -622,7 +604,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
622
604
|
*/
|
|
623
605
|
ActionsApi.prototype.getAction = function (requestParameters, options) {
|
|
624
606
|
var _this = this;
|
|
625
|
-
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.
|
|
607
|
+
return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
626
608
|
};
|
|
627
609
|
/**
|
|
628
610
|
* Lists all action configurations with optional filters
|
|
@@ -647,7 +629,7 @@ var ActionsApi = /** @class */ (function (_super) {
|
|
|
647
629
|
*/
|
|
648
630
|
ActionsApi.prototype.updateAction = function (requestParameters, options) {
|
|
649
631
|
var _this = this;
|
|
650
|
-
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.
|
|
632
|
+
return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
651
633
|
};
|
|
652
634
|
return ActionsApi;
|
|
653
635
|
}(base_1.BaseAPI));
|