@emilgroup/action-sdk-node 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 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-node@1.0.1-beta.21 --save
20
+ npm install @emilgroup/action-sdk-node@1.0.1-beta.23 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/action-sdk-node@1.0.1-beta.21
24
+ yarn add @emilgroup/action-sdk-node@1.0.1-beta.23
25
25
  ```
26
26
 
27
27
  And then you can import `ActionsApi`.
@@ -92,20 +92,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
92
92
  /**
93
93
  * Deletes an action configuration by its code
94
94
  * @summary Delete the action
95
- * @param {string} code
96
- * @param {any} action Unique identifier for the object.
95
+ * @param {string} code Action code
97
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
98
97
  * @param {*} [options] Override http request option.
99
98
  * @throws {RequiredError}
100
99
  */
101
- deleteAction: async (code: string, action: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ deleteAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
102
101
  // verify required parameter 'code' is not null or undefined
103
102
  assertParamExists('deleteAction', 'code', code)
104
- // verify required parameter 'action' is not null or undefined
105
- assertParamExists('deleteAction', 'action', action)
106
103
  const localVarPath = `/actionservice/v1/actions/{code}`
107
- .replace(`{${"code"}}`, encodeURIComponent(String(code)))
108
- .replace(`{${"action"}}`, encodeURIComponent(String(action)));
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
109
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
107
  let baseOptions;
@@ -141,20 +137,16 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
141
137
  /**
142
138
  * Retrieves an action configuration by its code
143
139
  * @summary Retrieve the action
144
- * @param {string} code
145
- * @param {any} action Unique identifier for the object.
140
+ * @param {string} code Action code
146
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
142
  * @param {*} [options] Override http request option.
148
143
  * @throws {RequiredError}
149
144
  */
150
- getAction: async (code: string, action: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ getAction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
146
  // verify required parameter 'code' is not null or undefined
152
147
  assertParamExists('getAction', 'code', code)
153
- // verify required parameter 'action' is not null or undefined
154
- assertParamExists('getAction', 'action', action)
155
148
  const localVarPath = `/actionservice/v1/actions/{code}`
156
- .replace(`{${"code"}}`, encodeURIComponent(String(code)))
157
- .replace(`{${"action"}}`, encodeURIComponent(String(action)));
149
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
158
150
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
159
151
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
160
152
  let baseOptions;
@@ -266,23 +258,19 @@ export const ActionsApiAxiosParamCreator = function (configuration?: Configurati
266
258
  /**
267
259
  * Updates an existing action configuration (patch semantics)
268
260
  * @summary Update the action
269
- * @param {string} code
270
- * @param {any} action Unique identifier for the object.
261
+ * @param {string} code Action code
271
262
  * @param {UpdateActionRequestDto} updateActionRequestDto
272
263
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
273
264
  * @param {*} [options] Override http request option.
274
265
  * @throws {RequiredError}
275
266
  */
276
- updateAction: async (code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
267
+ updateAction: async (code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
277
268
  // verify required parameter 'code' is not null or undefined
278
269
  assertParamExists('updateAction', 'code', code)
279
- // verify required parameter 'action' is not null or undefined
280
- assertParamExists('updateAction', 'action', action)
281
270
  // verify required parameter 'updateActionRequestDto' is not null or undefined
282
271
  assertParamExists('updateAction', 'updateActionRequestDto', updateActionRequestDto)
283
272
  const localVarPath = `/actionservice/v1/actions/{code}`
284
- .replace(`{${"code"}}`, encodeURIComponent(String(code)))
285
- .replace(`{${"action"}}`, encodeURIComponent(String(action)));
273
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
286
274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
288
276
  let baseOptions;
@@ -343,27 +331,25 @@ export const ActionsApiFp = function(configuration?: Configuration) {
343
331
  /**
344
332
  * Deletes an action configuration by its code
345
333
  * @summary Delete the action
346
- * @param {string} code
347
- * @param {any} action Unique identifier for the object.
334
+ * @param {string} code Action code
348
335
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
336
  * @param {*} [options] Override http request option.
350
337
  * @throws {RequiredError}
351
338
  */
352
- async deleteAction(code: string, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
353
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, action, authorization, options);
339
+ async deleteAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAction(code, authorization, options);
354
341
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
355
342
  },
356
343
  /**
357
344
  * Retrieves an action configuration by its code
358
345
  * @summary Retrieve the action
359
- * @param {string} code
360
- * @param {any} action Unique identifier for the object.
346
+ * @param {string} code Action code
361
347
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
362
348
  * @param {*} [options] Override http request option.
363
349
  * @throws {RequiredError}
364
350
  */
365
- async getAction(code: string, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, action, authorization, options);
351
+ async getAction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAction(code, authorization, options);
367
353
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
354
  },
369
355
  /**
@@ -387,15 +373,14 @@ export const ActionsApiFp = function(configuration?: Configuration) {
387
373
  /**
388
374
  * Updates an existing action configuration (patch semantics)
389
375
  * @summary Update the action
390
- * @param {string} code
391
- * @param {any} action Unique identifier for the object.
376
+ * @param {string} code Action code
392
377
  * @param {UpdateActionRequestDto} updateActionRequestDto
393
378
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
379
  * @param {*} [options] Override http request option.
395
380
  * @throws {RequiredError}
396
381
  */
397
- async updateAction(code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
398
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, action, updateActionRequestDto, authorization, options);
382
+ async updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options);
399
384
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
400
385
  },
401
386
  }
@@ -422,26 +407,24 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
422
407
  /**
423
408
  * Deletes an action configuration by its code
424
409
  * @summary Delete the action
425
- * @param {string} code
426
- * @param {any} action Unique identifier for the object.
410
+ * @param {string} code Action code
427
411
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
412
  * @param {*} [options] Override http request option.
429
413
  * @throws {RequiredError}
430
414
  */
431
- deleteAction(code: string, action: any, authorization?: string, options?: any): AxiosPromise<void> {
432
- return localVarFp.deleteAction(code, action, authorization, options).then((request) => request(axios, basePath));
415
+ deleteAction(code: string, authorization?: string, options?: any): AxiosPromise<void> {
416
+ return localVarFp.deleteAction(code, authorization, options).then((request) => request(axios, basePath));
433
417
  },
434
418
  /**
435
419
  * Retrieves an action configuration by its code
436
420
  * @summary Retrieve the action
437
- * @param {string} code
438
- * @param {any} action Unique identifier for the object.
421
+ * @param {string} code Action code
439
422
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
423
  * @param {*} [options] Override http request option.
441
424
  * @throws {RequiredError}
442
425
  */
443
- getAction(code: string, action: any, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
444
- return localVarFp.getAction(code, action, authorization, options).then((request) => request(axios, basePath));
426
+ getAction(code: string, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass> {
427
+ return localVarFp.getAction(code, authorization, options).then((request) => request(axios, basePath));
445
428
  },
446
429
  /**
447
430
  * Lists all action configurations with optional filters
@@ -463,15 +446,14 @@ export const ActionsApiFactory = function (configuration?: Configuration, basePa
463
446
  /**
464
447
  * Updates an existing action configuration (patch semantics)
465
448
  * @summary Update the action
466
- * @param {string} code
467
- * @param {any} action Unique identifier for the object.
449
+ * @param {string} code Action code
468
450
  * @param {UpdateActionRequestDto} updateActionRequestDto
469
451
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
452
  * @param {*} [options] Override http request option.
471
453
  * @throws {RequiredError}
472
454
  */
473
- updateAction(code: string, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
474
- return localVarFp.updateAction(code, action, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
455
+ updateAction(code: string, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass> {
456
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then((request) => request(axios, basePath));
475
457
  },
476
458
  };
477
459
  };
@@ -504,19 +486,12 @@ export interface ActionsApiCreateActionRequest {
504
486
  */
505
487
  export interface ActionsApiDeleteActionRequest {
506
488
  /**
507
- *
489
+ * Action code
508
490
  * @type {string}
509
491
  * @memberof ActionsApiDeleteAction
510
492
  */
511
493
  readonly code: string
512
494
 
513
- /**
514
- * Unique identifier for the object.
515
- * @type {any}
516
- * @memberof ActionsApiDeleteAction
517
- */
518
- readonly action: any
519
-
520
495
  /**
521
496
  * Bearer Token: provided by the login endpoint under the name accessToken.
522
497
  * @type {string}
@@ -532,19 +507,12 @@ export interface ActionsApiDeleteActionRequest {
532
507
  */
533
508
  export interface ActionsApiGetActionRequest {
534
509
  /**
535
- *
510
+ * Action code
536
511
  * @type {string}
537
512
  * @memberof ActionsApiGetAction
538
513
  */
539
514
  readonly code: string
540
515
 
541
- /**
542
- * Unique identifier for the object.
543
- * @type {any}
544
- * @memberof ActionsApiGetAction
545
- */
546
- readonly action: any
547
-
548
516
  /**
549
517
  * Bearer Token: provided by the login endpoint under the name accessToken.
550
518
  * @type {string}
@@ -623,19 +591,12 @@ export interface ActionsApiListActionsRequest {
623
591
  */
624
592
  export interface ActionsApiUpdateActionRequest {
625
593
  /**
626
- *
594
+ * Action code
627
595
  * @type {string}
628
596
  * @memberof ActionsApiUpdateAction
629
597
  */
630
598
  readonly code: string
631
599
 
632
- /**
633
- * Unique identifier for the object.
634
- * @type {any}
635
- * @memberof ActionsApiUpdateAction
636
- */
637
- readonly action: any
638
-
639
600
  /**
640
601
  *
641
602
  * @type {UpdateActionRequestDto}
@@ -679,7 +640,7 @@ export class ActionsApi extends BaseAPI {
679
640
  * @memberof ActionsApi
680
641
  */
681
642
  public deleteAction(requestParameters: ActionsApiDeleteActionRequest, options?: AxiosRequestConfig) {
682
- return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
643
+ return ActionsApiFp(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
683
644
  }
684
645
 
685
646
  /**
@@ -691,7 +652,7 @@ export class ActionsApi extends BaseAPI {
691
652
  * @memberof ActionsApi
692
653
  */
693
654
  public getAction(requestParameters: ActionsApiGetActionRequest, options?: AxiosRequestConfig) {
694
- return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
655
+ return ActionsApiFp(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
656
  }
696
657
 
697
658
  /**
@@ -715,6 +676,6 @@ export class ActionsApi extends BaseAPI {
715
676
  * @memberof ActionsApi
716
677
  */
717
678
  public updateAction(requestParameters: ActionsApiUpdateActionRequest, options?: AxiosRequestConfig) {
718
- return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.action, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
+ return ActionsApiFp(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
719
680
  }
720
681
  }
@@ -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, action: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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, action: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
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, action: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActionResponseClass>>;
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, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateActionResponseClass>>;
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, action: any, authorization?: string, options?: any): AxiosPromise<void>;
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, action: any, authorization?: string, options?: any): AxiosPromise<GetActionResponseClass>;
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, action: any, updateActionRequestDto: UpdateActionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateActionResponseClass>;
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}
@@ -148,13 +148,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
148
148
  /**
149
149
  * Deletes an action configuration by its code
150
150
  * @summary Delete the action
151
- * @param {string} code
152
- * @param {any} action Unique identifier for the object.
151
+ * @param {string} code Action code
153
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
153
  * @param {*} [options] Override http request option.
155
154
  * @throws {RequiredError}
156
155
  */
157
- deleteAction: function (code, action, authorization, options) {
156
+ deleteAction: function (code, authorization, options) {
158
157
  if (options === void 0) { options = {}; }
159
158
  return __awaiter(_this, void 0, void 0, function () {
160
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -163,11 +162,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
163
162
  case 0:
164
163
  // verify required parameter 'code' is not null or undefined
165
164
  (0, common_1.assertParamExists)('deleteAction', 'code', code);
166
- // verify required parameter 'action' is not null or undefined
167
- (0, common_1.assertParamExists)('deleteAction', 'action', action);
168
165
  localVarPath = "/actionservice/v1/actions/{code}"
169
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
170
- .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
168
  if (configuration) {
173
169
  baseOptions = configuration.baseOptions;
@@ -200,13 +196,12 @@ var ActionsApiAxiosParamCreator = function (configuration) {
200
196
  /**
201
197
  * Retrieves an action configuration by its code
202
198
  * @summary Retrieve the action
203
- * @param {string} code
204
- * @param {any} action Unique identifier for the object.
199
+ * @param {string} code Action code
205
200
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
201
  * @param {*} [options] Override http request option.
207
202
  * @throws {RequiredError}
208
203
  */
209
- getAction: function (code, action, authorization, options) {
204
+ getAction: function (code, authorization, options) {
210
205
  if (options === void 0) { options = {}; }
211
206
  return __awaiter(_this, void 0, void 0, function () {
212
207
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -215,11 +210,8 @@ var ActionsApiAxiosParamCreator = function (configuration) {
215
210
  case 0:
216
211
  // verify required parameter 'code' is not null or undefined
217
212
  (0, common_1.assertParamExists)('getAction', 'code', code);
218
- // verify required parameter 'action' is not null or undefined
219
- (0, common_1.assertParamExists)('getAction', 'action', action);
220
213
  localVarPath = "/actionservice/v1/actions/{code}"
221
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
222
- .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
214
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
223
215
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
224
216
  if (configuration) {
225
217
  baseOptions = configuration.baseOptions;
@@ -324,14 +316,13 @@ var ActionsApiAxiosParamCreator = function (configuration) {
324
316
  /**
325
317
  * Updates an existing action configuration (patch semantics)
326
318
  * @summary Update the action
327
- * @param {string} code
328
- * @param {any} action Unique identifier for the object.
319
+ * @param {string} code Action code
329
320
  * @param {UpdateActionRequestDto} updateActionRequestDto
330
321
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
322
  * @param {*} [options] Override http request option.
332
323
  * @throws {RequiredError}
333
324
  */
334
- updateAction: function (code, action, updateActionRequestDto, authorization, options) {
325
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
335
326
  if (options === void 0) { options = {}; }
336
327
  return __awaiter(_this, void 0, void 0, function () {
337
328
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -340,13 +331,10 @@ var ActionsApiAxiosParamCreator = function (configuration) {
340
331
  case 0:
341
332
  // verify required parameter 'code' is not null or undefined
342
333
  (0, common_1.assertParamExists)('updateAction', 'code', code);
343
- // verify required parameter 'action' is not null or undefined
344
- (0, common_1.assertParamExists)('updateAction', 'action', action);
345
334
  // verify required parameter 'updateActionRequestDto' is not null or undefined
346
335
  (0, common_1.assertParamExists)('updateAction', 'updateActionRequestDto', updateActionRequestDto);
347
336
  localVarPath = "/actionservice/v1/actions/{code}"
348
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
349
- .replace("{".concat("action", "}"), encodeURIComponent(String(action)));
337
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
350
338
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
351
339
  if (configuration) {
352
340
  baseOptions = configuration.baseOptions;
@@ -412,18 +400,17 @@ var ActionsApiFp = function (configuration) {
412
400
  /**
413
401
  * Deletes an action configuration by its code
414
402
  * @summary Delete the action
415
- * @param {string} code
416
- * @param {any} action Unique identifier for the object.
403
+ * @param {string} code Action code
417
404
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
418
405
  * @param {*} [options] Override http request option.
419
406
  * @throws {RequiredError}
420
407
  */
421
- deleteAction: function (code, action, authorization, options) {
408
+ deleteAction: function (code, authorization, options) {
422
409
  return __awaiter(this, void 0, void 0, function () {
423
410
  var localVarAxiosArgs;
424
411
  return __generator(this, function (_a) {
425
412
  switch (_a.label) {
426
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, action, authorization, options)];
413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAction(code, authorization, options)];
427
414
  case 1:
428
415
  localVarAxiosArgs = _a.sent();
429
416
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -434,18 +421,17 @@ var ActionsApiFp = function (configuration) {
434
421
  /**
435
422
  * Retrieves an action configuration by its code
436
423
  * @summary Retrieve the action
437
- * @param {string} code
438
- * @param {any} action Unique identifier for the object.
424
+ * @param {string} code Action code
439
425
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
426
  * @param {*} [options] Override http request option.
441
427
  * @throws {RequiredError}
442
428
  */
443
- getAction: function (code, action, authorization, options) {
429
+ getAction: function (code, authorization, options) {
444
430
  return __awaiter(this, void 0, void 0, function () {
445
431
  var localVarAxiosArgs;
446
432
  return __generator(this, function (_a) {
447
433
  switch (_a.label) {
448
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, action, authorization, options)];
434
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAction(code, authorization, options)];
449
435
  case 1:
450
436
  localVarAxiosArgs = _a.sent();
451
437
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -483,19 +469,18 @@ var ActionsApiFp = function (configuration) {
483
469
  /**
484
470
  * Updates an existing action configuration (patch semantics)
485
471
  * @summary Update the action
486
- * @param {string} code
487
- * @param {any} action Unique identifier for the object.
472
+ * @param {string} code Action code
488
473
  * @param {UpdateActionRequestDto} updateActionRequestDto
489
474
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
490
475
  * @param {*} [options] Override http request option.
491
476
  * @throws {RequiredError}
492
477
  */
493
- updateAction: function (code, action, updateActionRequestDto, authorization, options) {
478
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
494
479
  return __awaiter(this, void 0, void 0, function () {
495
480
  var localVarAxiosArgs;
496
481
  return __generator(this, function (_a) {
497
482
  switch (_a.label) {
498
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, action, updateActionRequestDto, authorization, options)];
483
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAction(code, updateActionRequestDto, authorization, options)];
499
484
  case 1:
500
485
  localVarAxiosArgs = _a.sent();
501
486
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -527,26 +512,24 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
527
512
  /**
528
513
  * Deletes an action configuration by its code
529
514
  * @summary Delete the action
530
- * @param {string} code
531
- * @param {any} action Unique identifier for the object.
515
+ * @param {string} code Action code
532
516
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
533
517
  * @param {*} [options] Override http request option.
534
518
  * @throws {RequiredError}
535
519
  */
536
- deleteAction: function (code, action, authorization, options) {
537
- return localVarFp.deleteAction(code, action, authorization, options).then(function (request) { return request(axios, basePath); });
520
+ deleteAction: function (code, authorization, options) {
521
+ return localVarFp.deleteAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
538
522
  },
539
523
  /**
540
524
  * Retrieves an action configuration by its code
541
525
  * @summary Retrieve the action
542
- * @param {string} code
543
- * @param {any} action Unique identifier for the object.
526
+ * @param {string} code Action code
544
527
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
528
  * @param {*} [options] Override http request option.
546
529
  * @throws {RequiredError}
547
530
  */
548
- getAction: function (code, action, authorization, options) {
549
- return localVarFp.getAction(code, action, authorization, options).then(function (request) { return request(axios, basePath); });
531
+ getAction: function (code, authorization, options) {
532
+ return localVarFp.getAction(code, authorization, options).then(function (request) { return request(axios, basePath); });
550
533
  },
551
534
  /**
552
535
  * Lists all action configurations with optional filters
@@ -568,15 +551,14 @@ var ActionsApiFactory = function (configuration, basePath, axios) {
568
551
  /**
569
552
  * Updates an existing action configuration (patch semantics)
570
553
  * @summary Update the action
571
- * @param {string} code
572
- * @param {any} action Unique identifier for the object.
554
+ * @param {string} code Action code
573
555
  * @param {UpdateActionRequestDto} updateActionRequestDto
574
556
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
557
  * @param {*} [options] Override http request option.
576
558
  * @throws {RequiredError}
577
559
  */
578
- updateAction: function (code, action, updateActionRequestDto, authorization, options) {
579
- return localVarFp.updateAction(code, action, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
560
+ updateAction: function (code, updateActionRequestDto, authorization, options) {
561
+ return localVarFp.updateAction(code, updateActionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
580
562
  },
581
563
  };
582
564
  };
@@ -614,7 +596,7 @@ var ActionsApi = /** @class */ (function (_super) {
614
596
  */
615
597
  ActionsApi.prototype.deleteAction = function (requestParameters, options) {
616
598
  var _this = this;
617
- return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
+ return (0, exports.ActionsApiFp)(this.configuration).deleteAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
600
  };
619
601
  /**
620
602
  * Retrieves an action configuration by its code
@@ -626,7 +608,7 @@ var ActionsApi = /** @class */ (function (_super) {
626
608
  */
627
609
  ActionsApi.prototype.getAction = function (requestParameters, options) {
628
610
  var _this = this;
629
- return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.action, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
+ return (0, exports.ActionsApiFp)(this.configuration).getAction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
612
  };
631
613
  /**
632
614
  * Lists all action configurations with optional filters
@@ -651,7 +633,7 @@ var ActionsApi = /** @class */ (function (_super) {
651
633
  */
652
634
  ActionsApi.prototype.updateAction = function (requestParameters, options) {
653
635
  var _this = this;
654
- return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.action, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
636
+ return (0, exports.ActionsApiFp)(this.configuration).updateAction(requestParameters.code, requestParameters.updateActionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
655
637
  };
656
638
  return ActionsApi;
657
639
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/action-sdk-node",
3
- "version": "1.0.1-beta.21",
3
+ "version": "1.0.1-beta.23",
4
4
  "description": "OpenAPI client for @emilgroup/action-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [