@emilgroup/notification-sdk-node 1.2.0 → 1.4.0

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.
@@ -35,6 +35,7 @@ models/layout-class.ts
35
35
  models/list-layouts-response-class.ts
36
36
  models/list-notification-templates-response-class.ts
37
37
  models/notification-template-class.ts
38
+ models/s3-document-dto.ts
38
39
  models/send-notification-request-dto.ts
39
40
  models/send-notification-response-class.ts
40
41
  models/update-html-template-request-dto.ts
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/notification-sdk-node@1.2.0 --save
20
+ npm install @emilgroup/notification-sdk-node@1.4.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/notification-sdk-node@1.2.0
24
+ yarn add @emilgroup/notification-sdk-node@1.4.0
25
25
  ```
26
26
 
27
27
  And then you can import `LayoutApi`.
@@ -47,6 +47,22 @@ export EMIL_USERNAME=XXXXX@XXXX.XXX
47
47
  export EMIL_PASSWORD=XXXXXXXXXXXXXX
48
48
  ```
49
49
 
50
+ ## Base path
51
+
52
+ To select the basic path for using the API, we can use two approaches. The first is to use one of the predefined environments, and the second is to specify the domain as a string.
53
+
54
+ ```ts
55
+ import { LayoutApi, Environment } from '@emilgroup/notification-sdk-node'
56
+
57
+ const LayoutsApi = new LayoutApi();
58
+
59
+ // Allows you to simply choose environment. It will usually be Environment.Production.
60
+ LayoutsApi.selectEnvironment(Environment.Production);
61
+
62
+ // For advanced users, use the custom baseUrl of the website you need to connect to.
63
+ LayoutsApi.selectBasePath('https://my-custom-domain.com');
64
+ ```
65
+
50
66
  ## Example
51
67
 
52
68
  Here is a basic functionning example:
@@ -186,17 +186,17 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
186
186
  /**
187
187
  *
188
188
  * @param {string} [authorization] Bearer Token
189
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
189
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
190
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
191
191
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
192
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
193
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
192
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
194
193
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
195
194
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
195
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
196
196
  * @param {*} [options] Override http request option.
197
197
  * @throws {RequiredError}
198
198
  */
199
- listLayouts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ listLayouts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
200
  const localVarPath = `/notificationservice/v1/layouts`;
201
201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -227,10 +227,6 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
227
227
  localVarQueryParameter['filter'] = filter;
228
228
  }
229
229
 
230
- if (filters !== undefined) {
231
- localVarQueryParameter['filters'] = filters;
232
- }
233
-
234
230
  if (search !== undefined) {
235
231
  localVarQueryParameter['search'] = search;
236
232
  }
@@ -243,6 +239,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
243
239
  localVarQueryParameter['expand'] = expand;
244
240
  }
245
241
 
242
+ if (filters !== undefined) {
243
+ localVarQueryParameter['filters'] = filters;
244
+ }
245
+
246
246
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
247
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
248
  }
@@ -355,18 +355,18 @@ export const LayoutsApiFp = function(configuration?: Configuration) {
355
355
  /**
356
356
  *
357
357
  * @param {string} [authorization] Bearer Token
358
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
358
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
359
359
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
360
360
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
361
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
362
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
361
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
363
362
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
364
363
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
364
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
365
365
  * @param {*} [options] Override http request option.
366
366
  * @throws {RequiredError}
367
367
  */
368
- async listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>> {
369
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
368
+ async listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>> {
369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
370
370
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
371
371
  },
372
372
  /**
@@ -425,18 +425,18 @@ export const LayoutsApiFactory = function (configuration?: Configuration, basePa
425
425
  /**
426
426
  *
427
427
  * @param {string} [authorization] Bearer Token
428
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
428
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
429
429
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
430
430
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
431
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
432
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
431
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
433
432
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
434
433
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
434
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
435
435
  * @param {*} [options] Override http request option.
436
436
  * @throws {RequiredError}
437
437
  */
438
- listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLayoutsResponseClass> {
439
- return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
438
+ listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLayoutsResponseClass> {
439
+ return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
440
440
  },
441
441
  /**
442
442
  *
@@ -536,7 +536,7 @@ export interface LayoutsApiListLayoutsRequest {
536
536
  readonly authorization?: string
537
537
 
538
538
  /**
539
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
539
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
540
540
  * @type {any}
541
541
  * @memberof LayoutsApiListLayouts
542
542
  */
@@ -557,14 +557,7 @@ export interface LayoutsApiListLayoutsRequest {
557
557
  readonly filter?: any
558
558
 
559
559
  /**
560
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
561
- * @type {any}
562
- * @memberof LayoutsApiListLayouts
563
- */
564
- readonly filters?: any
565
-
566
- /**
567
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
560
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
568
561
  * @type {any}
569
562
  * @memberof LayoutsApiListLayouts
570
563
  */
@@ -583,6 +576,13 @@ export interface LayoutsApiListLayoutsRequest {
583
576
  * @memberof LayoutsApiListLayouts
584
577
  */
585
578
  readonly expand?: any
579
+
580
+ /**
581
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
582
+ * @type {any}
583
+ * @memberof LayoutsApiListLayouts
584
+ */
585
+ readonly filters?: any
586
586
  }
587
587
 
588
588
  /**
@@ -661,7 +661,7 @@ export class LayoutsApi extends BaseAPI {
661
661
  * @memberof LayoutsApi
662
662
  */
663
663
  public listLayouts(requestParameters: LayoutsApiListLayoutsRequest = {}, options?: AxiosRequestConfig) {
664
- return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
664
+ return LayoutsApiFp(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
665
665
  }
666
666
 
667
667
  /**
@@ -191,17 +191,17 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
191
191
  /**
192
192
  *
193
193
  * @param {string} [authorization] Bearer Token
194
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
194
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
195
195
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
196
196
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
197
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
198
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
197
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
199
198
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
200
199
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
200
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
201
201
  * @param {*} [options] Override http request option.
202
202
  * @throws {RequiredError}
203
203
  */
204
- listNotificationTemplates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ listNotificationTemplates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
205
  const localVarPath = `/notificationservice/v1/notification-templates`;
206
206
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
207
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -232,10 +232,6 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
232
232
  localVarQueryParameter['filter'] = filter;
233
233
  }
234
234
 
235
- if (filters !== undefined) {
236
- localVarQueryParameter['filters'] = filters;
237
- }
238
-
239
235
  if (search !== undefined) {
240
236
  localVarQueryParameter['search'] = search;
241
237
  }
@@ -248,6 +244,10 @@ export const NotificationTemplatesApiAxiosParamCreator = function (configuration
248
244
  localVarQueryParameter['expand'] = expand;
249
245
  }
250
246
 
247
+ if (filters !== undefined) {
248
+ localVarQueryParameter['filters'] = filters;
249
+ }
250
+
251
251
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
252
252
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
253
253
  }
@@ -361,18 +361,18 @@ export const NotificationTemplatesApiFp = function(configuration?: Configuration
361
361
  /**
362
362
  *
363
363
  * @param {string} [authorization] Bearer Token
364
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
364
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
365
365
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
366
366
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
367
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
368
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
367
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
368
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
370
369
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
370
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
373
  */
374
- async listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNotificationTemplatesResponseClass>> {
375
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter, filters, search, order, expand, options);
374
+ async listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNotificationTemplatesResponseClass>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
376
376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
377
  },
378
378
  /**
@@ -432,18 +432,18 @@ export const NotificationTemplatesApiFactory = function (configuration?: Configu
432
432
  /**
433
433
  *
434
434
  * @param {string} [authorization] Bearer Token
435
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
435
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
436
436
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
437
437
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
438
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
439
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
438
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
440
439
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
441
440
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
441
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
442
442
  * @param {*} [options] Override http request option.
443
443
  * @throws {RequiredError}
444
444
  */
445
- listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListNotificationTemplatesResponseClass> {
446
- return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
445
+ listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListNotificationTemplatesResponseClass> {
446
+ return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
447
447
  },
448
448
  /**
449
449
  *
@@ -550,7 +550,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
550
550
  readonly authorization?: string
551
551
 
552
552
  /**
553
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
553
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
554
554
  * @type {any}
555
555
  * @memberof NotificationTemplatesApiListNotificationTemplates
556
556
  */
@@ -571,14 +571,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
571
571
  readonly filter?: any
572
572
 
573
573
  /**
574
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
575
- * @type {any}
576
- * @memberof NotificationTemplatesApiListNotificationTemplates
577
- */
578
- readonly filters?: any
579
-
580
- /**
581
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
574
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
582
575
  * @type {any}
583
576
  * @memberof NotificationTemplatesApiListNotificationTemplates
584
577
  */
@@ -597,6 +590,13 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
597
590
  * @memberof NotificationTemplatesApiListNotificationTemplates
598
591
  */
599
592
  readonly expand?: any
593
+
594
+ /**
595
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
596
+ * @type {any}
597
+ * @memberof NotificationTemplatesApiListNotificationTemplates
598
+ */
599
+ readonly filters?: any
600
600
  }
601
601
 
602
602
  /**
@@ -675,7 +675,7 @@ export class NotificationTemplatesApi extends BaseAPI {
675
675
  * @memberof NotificationTemplatesApi
676
676
  */
677
677
  public listNotificationTemplates(requestParameters: NotificationTemplatesApiListNotificationTemplatesRequest = {}, options?: AxiosRequestConfig) {
678
- return NotificationTemplatesApiFp(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
678
+ return NotificationTemplatesApiFp(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
679
679
  }
680
680
 
681
681
  /**
package/base.ts CHANGED
@@ -41,12 +41,13 @@ export const COLLECTION_FORMATS = {
41
41
 
42
42
  export interface LoginClass {
43
43
  accessToken: string;
44
- permissions: Array<string>;
44
+ permissions: string;
45
45
  }
46
46
 
47
47
  export enum Environment {
48
48
  Production = 'https://apiv2.emil.de',
49
49
  Test = 'https://apiv2-test.emil.de',
50
+ Staging = 'https://apiv2-staging.emil.de',
50
51
  Development = 'https://apiv2-dev.emil.de',
51
52
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
52
53
  }
@@ -51,17 +51,17 @@ export declare const LayoutsApiAxiosParamCreator: (configuration?: Configuration
51
51
  /**
52
52
  *
53
53
  * @param {string} [authorization] Bearer Token
54
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
54
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
55
55
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
56
56
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
57
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
57
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
59
58
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
60
59
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
60
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
61
61
  * @param {*} [options] Override http request option.
62
62
  * @throws {RequiredError}
63
63
  */
64
- listLayouts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ listLayouts: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
65
  /**
66
66
  *
67
67
  * @param {number} id
@@ -105,17 +105,17 @@ export declare const LayoutsApiFp: (configuration?: Configuration) => {
105
105
  /**
106
106
  *
107
107
  * @param {string} [authorization] Bearer Token
108
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
108
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
109
109
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
110
110
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
111
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
112
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
111
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
113
112
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
114
113
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
114
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
115
115
  * @param {*} [options] Override http request option.
116
116
  * @throws {RequiredError}
117
117
  */
118
- listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>>;
118
+ listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLayoutsResponseClass>>;
119
119
  /**
120
120
  *
121
121
  * @param {number} id
@@ -159,17 +159,17 @@ export declare const LayoutsApiFactory: (configuration?: Configuration, basePath
159
159
  /**
160
160
  *
161
161
  * @param {string} [authorization] Bearer Token
162
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
162
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
163
163
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
164
164
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
165
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
166
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
165
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
167
166
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
168
167
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
168
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
169
169
  * @param {*} [options] Override http request option.
170
170
  * @throws {RequiredError}
171
171
  */
172
- listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLayoutsResponseClass>;
172
+ listLayouts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListLayoutsResponseClass>;
173
173
  /**
174
174
  *
175
175
  * @param {number} id
@@ -256,7 +256,7 @@ export interface LayoutsApiListLayoutsRequest {
256
256
  */
257
257
  readonly authorization?: string;
258
258
  /**
259
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
259
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
260
260
  * @type {any}
261
261
  * @memberof LayoutsApiListLayouts
262
262
  */
@@ -274,13 +274,7 @@ export interface LayoutsApiListLayoutsRequest {
274
274
  */
275
275
  readonly filter?: any;
276
276
  /**
277
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
278
- * @type {any}
279
- * @memberof LayoutsApiListLayouts
280
- */
281
- readonly filters?: any;
282
- /**
283
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
277
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
284
278
  * @type {any}
285
279
  * @memberof LayoutsApiListLayouts
286
280
  */
@@ -297,6 +291,12 @@ export interface LayoutsApiListLayoutsRequest {
297
291
  * @memberof LayoutsApiListLayouts
298
292
  */
299
293
  readonly expand?: any;
294
+ /**
295
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
296
+ * @type {any}
297
+ * @memberof LayoutsApiListLayouts
298
+ */
299
+ readonly filters?: any;
300
300
  }
301
301
  /**
302
302
  * Request parameters for updateLayout operation in LayoutsApi.
@@ -247,17 +247,17 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
247
247
  /**
248
248
  *
249
249
  * @param {string} [authorization] Bearer Token
250
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
250
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
251
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
252
252
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
253
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
253
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
255
254
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
256
255
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
256
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
260
- listLayouts: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
260
+ listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
261
  if (options === void 0) { options = {}; }
262
262
  return __awaiter(_this, void 0, void 0, function () {
263
263
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -289,9 +289,6 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
289
289
  if (filter !== undefined) {
290
290
  localVarQueryParameter['filter'] = filter;
291
291
  }
292
- if (filters !== undefined) {
293
- localVarQueryParameter['filters'] = filters;
294
- }
295
292
  if (search !== undefined) {
296
293
  localVarQueryParameter['search'] = search;
297
294
  }
@@ -301,6 +298,9 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
301
298
  if (expand !== undefined) {
302
299
  localVarQueryParameter['expand'] = expand;
303
300
  }
301
+ if (filters !== undefined) {
302
+ localVarQueryParameter['filters'] = filters;
303
+ }
304
304
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
305
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
306
  }
@@ -441,22 +441,22 @@ var LayoutsApiFp = function (configuration) {
441
441
  /**
442
442
  *
443
443
  * @param {string} [authorization] Bearer Token
444
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
444
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
445
445
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
446
446
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
447
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
448
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
447
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
449
448
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
450
449
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
450
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
451
451
  * @param {*} [options] Override http request option.
452
452
  * @throws {RequiredError}
453
453
  */
454
- listLayouts: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
454
+ listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
455
455
  return __awaiter(this, void 0, void 0, function () {
456
456
  var localVarAxiosArgs;
457
457
  return __generator(this, function (_a) {
458
458
  switch (_a.label) {
459
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, filters, search, order, expand, options)];
459
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
460
460
  case 1:
461
461
  localVarAxiosArgs = _a.sent();
462
462
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -529,18 +529,18 @@ var LayoutsApiFactory = function (configuration, basePath, axios) {
529
529
  /**
530
530
  *
531
531
  * @param {string} [authorization] Bearer Token
532
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
532
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
533
533
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
534
534
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
535
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
536
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
535
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
537
536
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
538
537
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
538
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
539
539
  * @param {*} [options] Override http request option.
540
540
  * @throws {RequiredError}
541
541
  */
542
- listLayouts: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
543
- return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
542
+ listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
543
+ return localVarFp.listLayouts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
544
544
  },
545
545
  /**
546
546
  *
@@ -610,7 +610,7 @@ var LayoutsApi = /** @class */ (function (_super) {
610
610
  LayoutsApi.prototype.listLayouts = function (requestParameters, options) {
611
611
  var _this = this;
612
612
  if (requestParameters === void 0) { requestParameters = {}; }
613
- return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
613
+ return (0, exports.LayoutsApiFp)(this.configuration).listLayouts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
614
  };
615
615
  /**
616
616
  *
@@ -52,17 +52,17 @@ export declare const NotificationTemplatesApiAxiosParamCreator: (configuration?:
52
52
  /**
53
53
  *
54
54
  * @param {string} [authorization] Bearer Token
55
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
55
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
56
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
57
57
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
59
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
58
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
60
59
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
61
60
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
61
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
62
62
  * @param {*} [options] Override http request option.
63
63
  * @throws {RequiredError}
64
64
  */
65
- listNotificationTemplates: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ listNotificationTemplates: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
66
  /**
67
67
  *
68
68
  * @param {number} id
@@ -107,17 +107,17 @@ export declare const NotificationTemplatesApiFp: (configuration?: Configuration)
107
107
  /**
108
108
  *
109
109
  * @param {string} [authorization] Bearer Token
110
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
110
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
111
111
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
112
112
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
113
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
114
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
113
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
115
114
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
116
115
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
116
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
119
  */
120
- listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNotificationTemplatesResponseClass>>;
120
+ listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNotificationTemplatesResponseClass>>;
121
121
  /**
122
122
  *
123
123
  * @param {number} id
@@ -162,17 +162,17 @@ export declare const NotificationTemplatesApiFactory: (configuration?: Configura
162
162
  /**
163
163
  *
164
164
  * @param {string} [authorization] Bearer Token
165
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
165
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
166
166
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
167
167
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
168
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
169
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
168
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
170
169
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
171
170
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
171
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
172
172
  * @param {*} [options] Override http request option.
173
173
  * @throws {RequiredError}
174
174
  */
175
- listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListNotificationTemplatesResponseClass>;
175
+ listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListNotificationTemplatesResponseClass>;
176
176
  /**
177
177
  *
178
178
  * @param {number} id
@@ -265,7 +265,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
265
265
  */
266
266
  readonly authorization?: string;
267
267
  /**
268
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
268
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
269
269
  * @type {any}
270
270
  * @memberof NotificationTemplatesApiListNotificationTemplates
271
271
  */
@@ -283,13 +283,7 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
283
283
  */
284
284
  readonly filter?: any;
285
285
  /**
286
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
287
- * @type {any}
288
- * @memberof NotificationTemplatesApiListNotificationTemplates
289
- */
290
- readonly filters?: any;
291
- /**
292
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
286
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
293
287
  * @type {any}
294
288
  * @memberof NotificationTemplatesApiListNotificationTemplates
295
289
  */
@@ -306,6 +300,12 @@ export interface NotificationTemplatesApiListNotificationTemplatesRequest {
306
300
  * @memberof NotificationTemplatesApiListNotificationTemplates
307
301
  */
308
302
  readonly expand?: any;
303
+ /**
304
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
305
+ * @type {any}
306
+ * @memberof NotificationTemplatesApiListNotificationTemplates
307
+ */
308
+ readonly filters?: any;
309
309
  }
310
310
  /**
311
311
  * Request parameters for updateNotificationTemplate operation in NotificationTemplatesApi.
@@ -251,17 +251,17 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
251
251
  /**
252
252
  *
253
253
  * @param {string} [authorization] Bearer Token
254
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
254
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
255
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
256
256
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
257
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
258
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
257
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
259
258
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
260
259
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
260
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
261
261
  * @param {*} [options] Override http request option.
262
262
  * @throws {RequiredError}
263
263
  */
264
- listNotificationTemplates: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
264
+ listNotificationTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
265
  if (options === void 0) { options = {}; }
266
266
  return __awaiter(_this, void 0, void 0, function () {
267
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -293,9 +293,6 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
293
293
  if (filter !== undefined) {
294
294
  localVarQueryParameter['filter'] = filter;
295
295
  }
296
- if (filters !== undefined) {
297
- localVarQueryParameter['filters'] = filters;
298
- }
299
296
  if (search !== undefined) {
300
297
  localVarQueryParameter['search'] = search;
301
298
  }
@@ -305,6 +302,9 @@ var NotificationTemplatesApiAxiosParamCreator = function (configuration) {
305
302
  if (expand !== undefined) {
306
303
  localVarQueryParameter['expand'] = expand;
307
304
  }
305
+ if (filters !== undefined) {
306
+ localVarQueryParameter['filters'] = filters;
307
+ }
308
308
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
309
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
310
  }
@@ -446,22 +446,22 @@ var NotificationTemplatesApiFp = function (configuration) {
446
446
  /**
447
447
  *
448
448
  * @param {string} [authorization] Bearer Token
449
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
449
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
450
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
451
451
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
452
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
453
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
452
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
454
453
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
455
454
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
455
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
456
456
  * @param {*} [options] Override http request option.
457
457
  * @throws {RequiredError}
458
458
  */
459
- listNotificationTemplates: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
459
+ listNotificationTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
460
460
  return __awaiter(this, void 0, void 0, function () {
461
461
  var localVarAxiosArgs;
462
462
  return __generator(this, function (_a) {
463
463
  switch (_a.label) {
464
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter, filters, search, order, expand, options)];
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
465
465
  case 1:
466
466
  localVarAxiosArgs = _a.sent();
467
467
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -535,18 +535,18 @@ var NotificationTemplatesApiFactory = function (configuration, basePath, axios)
535
535
  /**
536
536
  *
537
537
  * @param {string} [authorization] Bearer Token
538
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
538
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
539
539
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
540
540
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
541
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
542
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
541
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
543
542
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
544
543
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
544
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
545
545
  * @param {*} [options] Override http request option.
546
546
  * @throws {RequiredError}
547
547
  */
548
- listNotificationTemplates: function (authorization, pageSize, pageToken, filter, filters, search, order, expand, options) {
549
- return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
548
+ listNotificationTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
549
+ return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
550
550
  },
551
551
  /**
552
552
  *
@@ -616,7 +616,7 @@ var NotificationTemplatesApi = /** @class */ (function (_super) {
616
616
  NotificationTemplatesApi.prototype.listNotificationTemplates = function (requestParameters, options) {
617
617
  var _this = this;
618
618
  if (requestParameters === void 0) { requestParameters = {}; }
619
- return (0, exports.NotificationTemplatesApiFp)(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
+ return (0, exports.NotificationTemplatesApiFp)(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
620
  };
621
621
  /**
622
622
  *
package/dist/base.d.ts CHANGED
@@ -24,11 +24,12 @@ export declare const COLLECTION_FORMATS: {
24
24
  };
25
25
  export interface LoginClass {
26
26
  accessToken: string;
27
- permissions: Array<string>;
27
+ permissions: string;
28
28
  }
29
29
  export declare enum Environment {
30
30
  Production = "https://apiv2.emil.de",
31
31
  Test = "https://apiv2-test.emil.de",
32
+ Staging = "https://apiv2-staging.emil.de",
32
33
  Development = "https://apiv2-dev.emil.de",
33
34
  ProductionZurich = "https://eu-central-2.apiv2.emil.de"
34
35
  }
package/dist/base.js CHANGED
@@ -129,6 +129,7 @@ var Environment;
129
129
  (function (Environment) {
130
130
  Environment["Production"] = "https://apiv2.emil.de";
131
131
  Environment["Test"] = "https://apiv2-test.emil.de";
132
+ Environment["Staging"] = "https://apiv2-staging.emil.de";
132
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
133
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
134
135
  })(Environment = exports.Environment || (exports.Environment = {}));
@@ -51,10 +51,4 @@ export interface HtmlTemplateClass {
51
51
  * @memberof HtmlTemplateClass
52
52
  */
53
53
  'updatedAt': string;
54
- /**
55
- * Html template deleted at
56
- * @type {string}
57
- * @memberof HtmlTemplateClass
58
- */
59
- 'deletedAt': string;
60
54
  }
@@ -19,6 +19,7 @@ export * from './layout-class';
19
19
  export * from './list-layouts-response-class';
20
20
  export * from './list-notification-templates-response-class';
21
21
  export * from './notification-template-class';
22
+ export * from './s3-document-dto';
22
23
  export * from './send-notification-request-dto';
23
24
  export * from './send-notification-response-class';
24
25
  export * from './update-html-template-request-dto';
@@ -35,6 +35,7 @@ __exportStar(require("./layout-class"), exports);
35
35
  __exportStar(require("./list-layouts-response-class"), exports);
36
36
  __exportStar(require("./list-notification-templates-response-class"), exports);
37
37
  __exportStar(require("./notification-template-class"), exports);
38
+ __exportStar(require("./s3-document-dto"), exports);
38
39
  __exportStar(require("./send-notification-request-dto"), exports);
39
40
  __exportStar(require("./send-notification-response-class"), exports);
40
41
  __exportStar(require("./update-html-template-request-dto"), exports);
@@ -22,7 +22,7 @@ export interface InitiateEmailVerificationDto {
22
22
  */
23
23
  'email': string;
24
24
  /**
25
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
26
  * @type {string}
27
27
  * @memberof InitiateEmailVerificationDto
28
28
  */
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface S3DocumentDto
16
+ */
17
+ export interface S3DocumentDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof S3DocumentDto
22
+ */
23
+ 'bucket'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof S3DocumentDto
28
+ */
29
+ 'key': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof S3DocumentDto
34
+ */
35
+ 'filename'?: string;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { S3DocumentDto } from './s3-document-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -53,10 +54,16 @@ export interface SendNotificationRequestDto {
53
54
  'emailBcc': Array<string>;
54
55
  /**
55
56
  * Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
56
- * @type {Array<string>}
57
+ * @type {Array<S3DocumentDto>}
58
+ * @memberof SendNotificationRequestDto
59
+ */
60
+ 'attachments': Array<S3DocumentDto>;
61
+ /**
62
+ * It is possible to use the product slug to fetch a different senderEmail from the tenant settings. It should be in the form of productSlug_sender-email
63
+ * @type {string}
57
64
  * @memberof SendNotificationRequestDto
58
65
  */
59
- 'attachments': Array<string>;
66
+ 'productSlug'?: string;
60
67
  /**
61
68
  * Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
62
69
  * @type {object}
@@ -56,11 +56,5 @@ export interface HtmlTemplateClass {
56
56
  * @memberof HtmlTemplateClass
57
57
  */
58
58
  'updatedAt': string;
59
- /**
60
- * Html template deleted at
61
- * @type {string}
62
- * @memberof HtmlTemplateClass
63
- */
64
- 'deletedAt': string;
65
59
  }
66
60
 
package/models/index.ts CHANGED
@@ -19,6 +19,7 @@ export * from './layout-class';
19
19
  export * from './list-layouts-response-class';
20
20
  export * from './list-notification-templates-response-class';
21
21
  export * from './notification-template-class';
22
+ export * from './s3-document-dto';
22
23
  export * from './send-notification-request-dto';
23
24
  export * from './send-notification-response-class';
24
25
  export * from './update-html-template-request-dto';
@@ -27,7 +27,7 @@ export interface InitiateEmailVerificationDto {
27
27
  */
28
28
  'email': string;
29
29
  /**
30
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
30
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
31
  * @type {string}
32
32
  * @memberof InitiateEmailVerificationDto
33
33
  */
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse200
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse200
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse200
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface S3DocumentDto
21
+ */
22
+ export interface S3DocumentDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof S3DocumentDto
27
+ */
28
+ 'bucket'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof S3DocumentDto
33
+ */
34
+ 'key': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof S3DocumentDto
39
+ */
40
+ 'filename'?: string;
41
+ }
42
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { S3DocumentDto } from './s3-document-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -58,10 +59,16 @@ export interface SendNotificationRequestDto {
58
59
  'emailBcc': Array<string>;
59
60
  /**
60
61
  * Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
61
- * @type {Array<string>}
62
+ * @type {Array<S3DocumentDto>}
63
+ * @memberof SendNotificationRequestDto
64
+ */
65
+ 'attachments': Array<S3DocumentDto>;
66
+ /**
67
+ * It is possible to use the product slug to fetch a different senderEmail from the tenant settings. It should be in the form of productSlug_sender-email
68
+ * @type {string}
62
69
  * @memberof SendNotificationRequestDto
63
70
  */
64
- 'attachments': Array<string>;
71
+ 'productSlug'?: string;
65
72
  /**
66
73
  * Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
67
74
  * @type {object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk-node",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [