@emilgroup/notification-sdk-node 1.3.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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/layouts-api.ts +28 -28
- package/api/notification-templates-api.ts +28 -28
- package/base.ts +8 -15
- package/dist/api/layouts-api.d.ts +20 -20
- package/dist/api/layouts-api.js +18 -18
- package/dist/api/notification-templates-api.d.ts +20 -20
- package/dist/api/notification-templates-api.js +18 -18
- package/dist/base.d.ts +2 -3
- package/dist/base.js +21 -26
- package/dist/models/html-template-class.d.ts +0 -6
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/initiate-email-verification-dto.d.ts +1 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/s3-document-dto.d.ts +36 -0
- package/dist/models/s3-document-dto.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +3 -2
- package/models/html-template-class.ts +0 -6
- package/models/index.ts +1 -0
- package/models/initiate-email-verification-dto.ts +1 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/s3-document-dto.ts +42 -0
- package/models/send-notification-request-dto.ts +3 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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.
|
|
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.
|
|
24
|
+
yarn add @emilgroup/notification-sdk-node@1.4.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `LayoutApi`.
|
package/api/layouts-api.ts
CHANGED
|
@@ -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
|
|
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} [
|
|
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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
362
|
-
* @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.
|
|
361
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
369
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listLayouts(authorization, pageSize, pageToken, filter,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
432
|
-
* @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.
|
|
431
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
439
|
-
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter,
|
|
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
|
|
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
|
-
*
|
|
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=xxx in order to fetch the result.
|
|
560
|
+
* To search the list by any field, pass search=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.
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
198
|
-
* @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.
|
|
197
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
368
|
-
* @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.
|
|
367
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
439
|
-
* @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.
|
|
438
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
446
|
-
return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter,
|
|
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
|
|
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
|
-
*
|
|
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=xxx in order to fetch the result.
|
|
574
|
+
* To search the list by any field, pass search=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.
|
|
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
|
@@ -47,6 +47,7 @@ export interface LoginClass {
|
|
|
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
|
}
|
|
@@ -79,7 +80,6 @@ export class BaseAPI {
|
|
|
79
80
|
protected configuration: Configuration;
|
|
80
81
|
private username?: string;
|
|
81
82
|
private password?: string;
|
|
82
|
-
private permissions?: string;
|
|
83
83
|
|
|
84
84
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
85
85
|
if (configuration) {
|
|
@@ -150,10 +150,6 @@ export class BaseAPI {
|
|
|
150
150
|
this.configuration.basePath = env;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
getPermissions(): Array<string> {
|
|
154
|
-
return this.permissions.split(',');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
153
|
async authorize(username: string, password: string): Promise<void> {
|
|
158
154
|
const options: AxiosRequestConfig = {
|
|
159
155
|
method: 'POST',
|
|
@@ -168,21 +164,20 @@ export class BaseAPI {
|
|
|
168
164
|
|
|
169
165
|
const response = await globalAxios.request<LoginClass>(options);
|
|
170
166
|
|
|
171
|
-
const { data: { accessToken
|
|
167
|
+
const { data: { accessToken } } = response;
|
|
172
168
|
this.configuration.username = username;
|
|
173
169
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
174
|
-
this.permissions = permissions;
|
|
175
170
|
|
|
176
171
|
const refreshToken = this.extractRefreshToken(response)
|
|
177
172
|
this.configuration.refreshToken = refreshToken;
|
|
178
173
|
}
|
|
179
174
|
|
|
180
|
-
async refreshTokenInternal(): Promise<
|
|
175
|
+
async refreshTokenInternal(): Promise<string> {
|
|
181
176
|
const { username, refreshToken } = this.configuration;
|
|
182
177
|
|
|
183
178
|
|
|
184
179
|
if (!username || !refreshToken) {
|
|
185
|
-
|
|
180
|
+
return '';
|
|
186
181
|
}
|
|
187
182
|
|
|
188
183
|
const options: AxiosRequestConfig = {
|
|
@@ -196,9 +191,9 @@ export class BaseAPI {
|
|
|
196
191
|
withCredentials: true,
|
|
197
192
|
};
|
|
198
193
|
|
|
199
|
-
const
|
|
194
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
200
195
|
|
|
201
|
-
return
|
|
196
|
+
return accessToken;
|
|
202
197
|
}
|
|
203
198
|
|
|
204
199
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -227,9 +222,8 @@ export class BaseAPI {
|
|
|
227
222
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
228
223
|
originalConfig._retry = true;
|
|
229
224
|
try {
|
|
230
|
-
const
|
|
225
|
+
const tokenString = await this.refreshTokenInternal();
|
|
231
226
|
const accessToken = `Bearer ${tokenString}`;
|
|
232
|
-
this.permissions = permissions;
|
|
233
227
|
|
|
234
228
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
235
229
|
|
|
@@ -253,9 +247,8 @@ export class BaseAPI {
|
|
|
253
247
|
){
|
|
254
248
|
_retry_count++;
|
|
255
249
|
try {
|
|
256
|
-
const
|
|
250
|
+
const tokenString = await this.refreshTokenInternal();
|
|
257
251
|
const accessToken = `Bearer ${tokenString}`;
|
|
258
|
-
this.permissions = permissions;
|
|
259
252
|
|
|
260
253
|
_retry = true;
|
|
261
254
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
58
|
-
* @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.
|
|
57
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
112
|
-
* @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.
|
|
111
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
166
|
-
* @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.
|
|
165
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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
|
|
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
|
-
*
|
|
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=xxx in order to fetch the result.
|
|
277
|
+
* To search the list by any field, pass search=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.
|
package/dist/api/layouts-api.js
CHANGED
|
@@ -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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
254
|
-
* @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.
|
|
253
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
448
|
-
* @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.
|
|
447
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
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,
|
|
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
|
|
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=1, your subsequent call can include pageToken=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} [
|
|
536
|
-
* @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.
|
|
535
|
+
* @param {any} [search] To search the list by any field, pass search=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,
|
|
543
|
-
return localVarFp.listLayouts(authorization, pageSize, pageToken, filter,
|
|
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.
|
|
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
|
*
|