@emilgroup/notification-sdk-node 1.0.0-beta.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 +38 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/layouts-api.ts +663 -0
- package/api/notification-templates-api.ts +677 -0
- package/api/notifications-api.ts +165 -0
- package/api.ts +35 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/layouts-api.d.ts +364 -0
- package/dist/api/layouts-api.js +622 -0
- package/dist/api/notification-templates-api.d.ts +373 -0
- package/dist/api/notification-templates-api.js +628 -0
- package/dist/api/notifications-api.d.ts +93 -0
- package/dist/api/notifications-api.js +224 -0
- package/dist/api.d.ts +14 -0
- package/dist/api.js +32 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-layout-request-dto.d.ts +48 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-notification-template-request-dto.d.ts +66 -0
- package/dist/models/create-notification-template-request-dto.js +15 -0
- package/dist/models/create-notification-template-response-class.d.ts +25 -0
- package/dist/models/create-notification-template-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-notification-template-request-dto.d.ts +24 -0
- package/dist/models/delete-notification-template-request-dto.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/get-notification-template-request-dto.d.ts +30 -0
- package/dist/models/get-notification-template-request-dto.js +15 -0
- package/dist/models/get-notification-template-response-class.d.ts +25 -0
- package/dist/models/get-notification-template-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +60 -0
- package/dist/models/html-template-class.js +15 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +38 -0
- package/dist/models/layout-class.d.ts +73 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +30 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-notification-templates-response-class.d.ts +30 -0
- package/dist/models/list-notification-templates-response-class.js +15 -0
- package/dist/models/notification-template-class.d.ts +98 -0
- package/dist/models/notification-template-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +66 -0
- package/dist/models/send-notification-request-dto.js +15 -0
- package/dist/models/send-notification-response-class.d.ts +24 -0
- package/dist/models/send-notification-response-class.js +15 -0
- package/dist/models/update-html-template-request-dto.d.ts +42 -0
- package/dist/models/update-html-template-request-dto.js +21 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/dist/models/update-notification-template-request-dto.d.ts +73 -0
- package/dist/models/update-notification-template-request-dto.js +15 -0
- package/dist/models/update-notification-template-response-class.d.ts +25 -0
- package/dist/models/update-notification-template-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-layout-request-dto.ts +54 -0
- package/models/create-layout-response-class.ts +31 -0
- package/models/create-notification-template-request-dto.ts +72 -0
- package/models/create-notification-template-response-class.ts +31 -0
- package/models/delete-layout-request-dto.ts +30 -0
- package/models/delete-notification-template-request-dto.ts +30 -0
- package/models/get-layout-request-dto.ts +30 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/get-notification-template-request-dto.ts +36 -0
- package/models/get-notification-template-response-class.ts +31 -0
- package/models/html-template-class.ts +66 -0
- package/models/index.ts +22 -0
- package/models/layout-class.ts +79 -0
- package/models/list-layouts-response-class.ts +36 -0
- package/models/list-notification-templates-response-class.ts +36 -0
- package/models/notification-template-class.ts +104 -0
- package/models/send-notification-request-dto.ts +72 -0
- package/models/send-notification-response-class.ts +30 -0
- package/models/update-html-template-request-dto.ts +51 -0
- package/models/update-layout-request-dto.ts +61 -0
- package/models/update-layout-response-class.ts +31 -0
- package/models/update-notification-template-request-dto.ts +79 -0
- package/models/update-notification-template-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,677 @@
|
|
|
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
|
+
*
|
|
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
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateNotificationTemplateRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateNotificationTemplateResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetNotificationTemplateResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListNotificationTemplatesResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateNotificationTemplateRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateNotificationTemplateResponseClass } from '../models';
|
|
35
|
+
// URLSearchParams not necessarily used
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import { URL, URLSearchParams } from 'url';
|
|
38
|
+
const FormData = require('form-data');
|
|
39
|
+
/**
|
|
40
|
+
* NotificationTemplatesApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const NotificationTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
createNotificationTemplate: async (createNotificationTemplateRequestDto: CreateNotificationTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'createNotificationTemplateRequestDto' is not null or undefined
|
|
54
|
+
assertParamExists('createNotificationTemplate', 'createNotificationTemplateRequestDto', createNotificationTemplateRequestDto)
|
|
55
|
+
const localVarPath = `/notificationservice/v1/notification-templates`;
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
let baseAccessToken;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
baseAccessToken = configuration.accessToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication bearer required
|
|
70
|
+
// http bearer authentication required
|
|
71
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72
|
+
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createNotificationTemplateRequestDto, localVarRequestOptions, configuration)
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @param {number} id
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
deleteNotificationTemplate: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'id' is not null or undefined
|
|
100
|
+
assertParamExists('deleteNotificationTemplate', 'id', id)
|
|
101
|
+
const localVarPath = `/notificationservice/v1/notification-templates/{id}`
|
|
102
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
let baseAccessToken;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
baseAccessToken = configuration.accessToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication bearer required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
+
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @param {number} id
|
|
138
|
+
* @param {number} id2
|
|
139
|
+
* @param {string} [authorization] Bearer Token
|
|
140
|
+
* @param {string} [expand]
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getNotificationTemplate: async (id: number, id2: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
// verify required parameter 'id' is not null or undefined
|
|
146
|
+
assertParamExists('getNotificationTemplate', 'id', id)
|
|
147
|
+
// verify required parameter 'id2' is not null or undefined
|
|
148
|
+
assertParamExists('getNotificationTemplate', 'id2', id2)
|
|
149
|
+
const localVarPath = `/notificationservice/v1/notification-templates/{id}`
|
|
150
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
let baseAccessToken;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
baseAccessToken = configuration.accessToken;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
161
|
+
const localVarHeaderParameter = {} as any;
|
|
162
|
+
const localVarQueryParameter = {} as any;
|
|
163
|
+
|
|
164
|
+
// authentication bearer required
|
|
165
|
+
// http bearer authentication required
|
|
166
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
|
+
|
|
168
|
+
if (id2 !== undefined) {
|
|
169
|
+
localVarQueryParameter['id'] = id2;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (expand !== undefined) {
|
|
173
|
+
localVarQueryParameter['expand'] = expand;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
185
|
+
|
|
186
|
+
return {
|
|
187
|
+
url: toPathString(localVarUrlObj),
|
|
188
|
+
options: localVarRequestOptions,
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
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.
|
|
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
|
+
* @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} [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.
|
|
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.
|
|
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 {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
listNotificationTemplates: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
|
+
const localVarPath = `/notificationservice/v1/notification-templates`;
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
let baseAccessToken;
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
baseAccessToken = configuration.accessToken;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
215
|
+
const localVarHeaderParameter = {} as any;
|
|
216
|
+
const localVarQueryParameter = {} as any;
|
|
217
|
+
|
|
218
|
+
// authentication bearer required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
221
|
+
|
|
222
|
+
if (pageSize !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (pageToken !== undefined) {
|
|
227
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (filter !== undefined) {
|
|
231
|
+
localVarQueryParameter['filter'] = filter;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (search !== undefined) {
|
|
235
|
+
localVarQueryParameter['search'] = search;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (order !== undefined) {
|
|
239
|
+
localVarQueryParameter['order'] = order;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (expand !== undefined) {
|
|
243
|
+
localVarQueryParameter['expand'] = expand;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
255
|
+
|
|
256
|
+
return {
|
|
257
|
+
url: toPathString(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
};
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @param {number} id
|
|
264
|
+
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
265
|
+
* @param {string} [authorization] Bearer Token
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
updateNotificationTemplate: async (id: number, updateNotificationTemplateRequestDto: UpdateNotificationTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
|
+
// verify required parameter 'id' is not null or undefined
|
|
271
|
+
assertParamExists('updateNotificationTemplate', 'id', id)
|
|
272
|
+
// verify required parameter 'updateNotificationTemplateRequestDto' is not null or undefined
|
|
273
|
+
assertParamExists('updateNotificationTemplate', 'updateNotificationTemplateRequestDto', updateNotificationTemplateRequestDto)
|
|
274
|
+
const localVarPath = `/notificationservice/v1/notification-templates/{id}`
|
|
275
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
277
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
278
|
+
let baseOptions;
|
|
279
|
+
let baseAccessToken;
|
|
280
|
+
if (configuration) {
|
|
281
|
+
baseOptions = configuration.baseOptions;
|
|
282
|
+
baseAccessToken = configuration.accessToken;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
286
|
+
const localVarHeaderParameter = {} as any;
|
|
287
|
+
const localVarQueryParameter = {} as any;
|
|
288
|
+
|
|
289
|
+
// authentication bearer required
|
|
290
|
+
// http bearer authentication required
|
|
291
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
|
+
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
300
|
+
|
|
301
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
304
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateNotificationTemplateRequestDto, localVarRequestOptions, configuration)
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* NotificationTemplatesApi - functional programming interface
|
|
316
|
+
* @export
|
|
317
|
+
*/
|
|
318
|
+
export const NotificationTemplatesApiFp = function(configuration?: Configuration) {
|
|
319
|
+
const localVarAxiosParamCreator = NotificationTemplatesApiAxiosParamCreator(configuration)
|
|
320
|
+
return {
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
324
|
+
* @param {string} [authorization] Bearer Token
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
async createNotificationTemplate(createNotificationTemplateRequestDto: CreateNotificationTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNotificationTemplateResponseClass>> {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options);
|
|
330
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @param {number} id
|
|
335
|
+
* @param {string} [authorization] Bearer Token
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
async deleteNotificationTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotificationTemplate(id, authorization, options);
|
|
341
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @param {number} id
|
|
346
|
+
* @param {number} id2
|
|
347
|
+
* @param {string} [authorization] Bearer Token
|
|
348
|
+
* @param {string} [expand]
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
async getNotificationTemplate(id: number, id2: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNotificationTemplateResponseClass>> {
|
|
353
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNotificationTemplate(id, id2, authorization, expand, options);
|
|
354
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @param {string} [authorization] Bearer Token
|
|
359
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
360
|
+
* @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.
|
|
361
|
+
* @param {any} [filter] 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=xxx in order to fetch the result.
|
|
363
|
+
* @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
|
+
* @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.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
async listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNotificationTemplatesResponseClass>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
370
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @param {number} id
|
|
375
|
+
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
376
|
+
* @param {string} [authorization] Bearer Token
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async updateNotificationTemplate(id: number, updateNotificationTemplateRequestDto: UpdateNotificationTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateNotificationTemplateResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNotificationTemplate(id, updateNotificationTemplateRequestDto, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* NotificationTemplatesApi - factory interface
|
|
389
|
+
* @export
|
|
390
|
+
*/
|
|
391
|
+
export const NotificationTemplatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
392
|
+
const localVarFp = NotificationTemplatesApiFp(configuration)
|
|
393
|
+
return {
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @param {CreateNotificationTemplateRequestDto} createNotificationTemplateRequestDto
|
|
397
|
+
* @param {string} [authorization] Bearer Token
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
createNotificationTemplate(createNotificationTemplateRequestDto: CreateNotificationTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreateNotificationTemplateResponseClass> {
|
|
402
|
+
return localVarFp.createNotificationTemplate(createNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @param {number} id
|
|
407
|
+
* @param {string} [authorization] Bearer Token
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
deleteNotificationTemplate(id: number, authorization?: string, options?: any): AxiosPromise<object> {
|
|
412
|
+
return localVarFp.deleteNotificationTemplate(id, authorization, options).then((request) => request(axios, basePath));
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @param {number} id
|
|
417
|
+
* @param {number} id2
|
|
418
|
+
* @param {string} [authorization] Bearer Token
|
|
419
|
+
* @param {string} [expand]
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
getNotificationTemplate(id: number, id2: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetNotificationTemplateResponseClass> {
|
|
424
|
+
return localVarFp.getNotificationTemplate(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @param {string} [authorization] Bearer Token
|
|
429
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
430
|
+
* @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.
|
|
431
|
+
* @param {any} [filter] 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=xxx in order to fetch the result.
|
|
433
|
+
* @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
|
+
* @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.
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
listNotificationTemplates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListNotificationTemplatesResponseClass> {
|
|
439
|
+
return localVarFp.listNotificationTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @param {number} id
|
|
444
|
+
* @param {UpdateNotificationTemplateRequestDto} updateNotificationTemplateRequestDto
|
|
445
|
+
* @param {string} [authorization] Bearer Token
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
updateNotificationTemplate(id: number, updateNotificationTemplateRequestDto: UpdateNotificationTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateNotificationTemplateResponseClass> {
|
|
450
|
+
return localVarFp.updateNotificationTemplate(id, updateNotificationTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
451
|
+
},
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Request parameters for createNotificationTemplate operation in NotificationTemplatesApi.
|
|
457
|
+
* @export
|
|
458
|
+
* @interface NotificationTemplatesApiCreateNotificationTemplateRequest
|
|
459
|
+
*/
|
|
460
|
+
export interface NotificationTemplatesApiCreateNotificationTemplateRequest {
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @type {CreateNotificationTemplateRequestDto}
|
|
464
|
+
* @memberof NotificationTemplatesApiCreateNotificationTemplate
|
|
465
|
+
*/
|
|
466
|
+
readonly createNotificationTemplateRequestDto: CreateNotificationTemplateRequestDto
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Bearer Token
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof NotificationTemplatesApiCreateNotificationTemplate
|
|
472
|
+
*/
|
|
473
|
+
readonly authorization?: string
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Request parameters for deleteNotificationTemplate operation in NotificationTemplatesApi.
|
|
478
|
+
* @export
|
|
479
|
+
* @interface NotificationTemplatesApiDeleteNotificationTemplateRequest
|
|
480
|
+
*/
|
|
481
|
+
export interface NotificationTemplatesApiDeleteNotificationTemplateRequest {
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @type {number}
|
|
485
|
+
* @memberof NotificationTemplatesApiDeleteNotificationTemplate
|
|
486
|
+
*/
|
|
487
|
+
readonly id: number
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Bearer Token
|
|
491
|
+
* @type {string}
|
|
492
|
+
* @memberof NotificationTemplatesApiDeleteNotificationTemplate
|
|
493
|
+
*/
|
|
494
|
+
readonly authorization?: string
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Request parameters for getNotificationTemplate operation in NotificationTemplatesApi.
|
|
499
|
+
* @export
|
|
500
|
+
* @interface NotificationTemplatesApiGetNotificationTemplateRequest
|
|
501
|
+
*/
|
|
502
|
+
export interface NotificationTemplatesApiGetNotificationTemplateRequest {
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @type {number}
|
|
506
|
+
* @memberof NotificationTemplatesApiGetNotificationTemplate
|
|
507
|
+
*/
|
|
508
|
+
readonly id: number
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {number}
|
|
513
|
+
* @memberof NotificationTemplatesApiGetNotificationTemplate
|
|
514
|
+
*/
|
|
515
|
+
readonly id2: number
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Bearer Token
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof NotificationTemplatesApiGetNotificationTemplate
|
|
521
|
+
*/
|
|
522
|
+
readonly authorization?: string
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof NotificationTemplatesApiGetNotificationTemplate
|
|
528
|
+
*/
|
|
529
|
+
readonly expand?: string
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Request parameters for listNotificationTemplates operation in NotificationTemplatesApi.
|
|
534
|
+
* @export
|
|
535
|
+
* @interface NotificationTemplatesApiListNotificationTemplatesRequest
|
|
536
|
+
*/
|
|
537
|
+
export interface NotificationTemplatesApiListNotificationTemplatesRequest {
|
|
538
|
+
/**
|
|
539
|
+
* Bearer Token
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
542
|
+
*/
|
|
543
|
+
readonly authorization?: string
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
547
|
+
* @type {any}
|
|
548
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
549
|
+
*/
|
|
550
|
+
readonly pageSize?: any
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* 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.
|
|
554
|
+
* @type {any}
|
|
555
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
556
|
+
*/
|
|
557
|
+
readonly pageToken?: any
|
|
558
|
+
|
|
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 NotificationTemplatesApiListNotificationTemplates
|
|
563
|
+
*/
|
|
564
|
+
readonly filter?: 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.
|
|
568
|
+
* @type {any}
|
|
569
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
570
|
+
*/
|
|
571
|
+
readonly search?: any
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* 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.
|
|
575
|
+
* @type {any}
|
|
576
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
577
|
+
*/
|
|
578
|
+
readonly order?: any
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* 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.
|
|
582
|
+
* @type {any}
|
|
583
|
+
* @memberof NotificationTemplatesApiListNotificationTemplates
|
|
584
|
+
*/
|
|
585
|
+
readonly expand?: any
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Request parameters for updateNotificationTemplate operation in NotificationTemplatesApi.
|
|
590
|
+
* @export
|
|
591
|
+
* @interface NotificationTemplatesApiUpdateNotificationTemplateRequest
|
|
592
|
+
*/
|
|
593
|
+
export interface NotificationTemplatesApiUpdateNotificationTemplateRequest {
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @type {number}
|
|
597
|
+
* @memberof NotificationTemplatesApiUpdateNotificationTemplate
|
|
598
|
+
*/
|
|
599
|
+
readonly id: number
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @type {UpdateNotificationTemplateRequestDto}
|
|
604
|
+
* @memberof NotificationTemplatesApiUpdateNotificationTemplate
|
|
605
|
+
*/
|
|
606
|
+
readonly updateNotificationTemplateRequestDto: UpdateNotificationTemplateRequestDto
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Bearer Token
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof NotificationTemplatesApiUpdateNotificationTemplate
|
|
612
|
+
*/
|
|
613
|
+
readonly authorization?: string
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* NotificationTemplatesApi - object-oriented interface
|
|
618
|
+
* @export
|
|
619
|
+
* @class NotificationTemplatesApi
|
|
620
|
+
* @extends {BaseAPI}
|
|
621
|
+
*/
|
|
622
|
+
export class NotificationTemplatesApi extends BaseAPI {
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @param {NotificationTemplatesApiCreateNotificationTemplateRequest} requestParameters Request parameters.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
* @memberof NotificationTemplatesApi
|
|
629
|
+
*/
|
|
630
|
+
public createNotificationTemplate(requestParameters: NotificationTemplatesApiCreateNotificationTemplateRequest, options?: AxiosRequestConfig) {
|
|
631
|
+
return NotificationTemplatesApiFp(this.configuration).createNotificationTemplate(requestParameters.createNotificationTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @param {NotificationTemplatesApiDeleteNotificationTemplateRequest} requestParameters Request parameters.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof NotificationTemplatesApi
|
|
640
|
+
*/
|
|
641
|
+
public deleteNotificationTemplate(requestParameters: NotificationTemplatesApiDeleteNotificationTemplateRequest, options?: AxiosRequestConfig) {
|
|
642
|
+
return NotificationTemplatesApiFp(this.configuration).deleteNotificationTemplate(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @param {NotificationTemplatesApiGetNotificationTemplateRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof NotificationTemplatesApi
|
|
651
|
+
*/
|
|
652
|
+
public getNotificationTemplate(requestParameters: NotificationTemplatesApiGetNotificationTemplateRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return NotificationTemplatesApiFp(this.configuration).getNotificationTemplate(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @param {NotificationTemplatesApiListNotificationTemplatesRequest} requestParameters Request parameters.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
* @memberof NotificationTemplatesApi
|
|
662
|
+
*/
|
|
663
|
+
public listNotificationTemplates(requestParameters: NotificationTemplatesApiListNotificationTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
664
|
+
return NotificationTemplatesApiFp(this.configuration).listNotificationTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @param {NotificationTemplatesApiUpdateNotificationTemplateRequest} requestParameters Request parameters.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
* @memberof NotificationTemplatesApi
|
|
673
|
+
*/
|
|
674
|
+
public updateNotificationTemplate(requestParameters: NotificationTemplatesApiUpdateNotificationTemplateRequest, options?: AxiosRequestConfig) {
|
|
675
|
+
return NotificationTemplatesApiFp(this.configuration).updateNotificationTemplate(requestParameters.id, requestParameters.updateNotificationTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
676
|
+
}
|
|
677
|
+
}
|