@emilgroup/notification-sdk-node 1.4.1-beta.22 → 1.4.1-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/email-messages-api.ts +19 -19
- package/dist/api/email-messages-api.d.ts +16 -16
- package/dist/api/email-messages-api.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/notification-sdk-node@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/notification-sdk-node@1.4.1-beta.23 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/notification-sdk-node@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/notification-sdk-node@1.4.1-beta.23
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `LayoutApi`.
|
|
@@ -187,7 +187,7 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
|
190
|
-
|
|
190
|
+
listEmailMessages: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
191
|
const localVarPath = `/notificationservice/v1/email-messages`;
|
|
192
192
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
193
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -306,8 +306,8 @@ export const EmailMessagesApiFp = function(configuration?: Configuration) {
|
|
|
306
306
|
* @param {*} [options] Override http request option.
|
|
307
307
|
* @throws {RequiredError}
|
|
308
308
|
*/
|
|
309
|
-
async
|
|
310
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
309
|
+
async listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMessagesResponseClass>> {
|
|
310
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
311
311
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
312
312
|
},
|
|
313
313
|
}
|
|
@@ -364,8 +364,8 @@ export const EmailMessagesApiFactory = function (configuration?: Configuration,
|
|
|
364
364
|
* @param {*} [options] Override http request option.
|
|
365
365
|
* @throws {RequiredError}
|
|
366
366
|
*/
|
|
367
|
-
|
|
368
|
-
return localVarFp.
|
|
367
|
+
listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailMessagesResponseClass> {
|
|
368
|
+
return localVarFp.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
369
369
|
},
|
|
370
370
|
};
|
|
371
371
|
};
|
|
@@ -441,64 +441,64 @@ export interface EmailMessagesApiListAttachmentsRequest {
|
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
|
-
* Request parameters for
|
|
444
|
+
* Request parameters for listEmailMessages operation in EmailMessagesApi.
|
|
445
445
|
* @export
|
|
446
|
-
* @interface
|
|
446
|
+
* @interface EmailMessagesApiListEmailMessagesRequest
|
|
447
447
|
*/
|
|
448
|
-
export interface
|
|
448
|
+
export interface EmailMessagesApiListEmailMessagesRequest {
|
|
449
449
|
/**
|
|
450
450
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
451
|
* @type {string}
|
|
452
|
-
* @memberof
|
|
452
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
453
453
|
*/
|
|
454
454
|
readonly authorization?: string
|
|
455
455
|
|
|
456
456
|
/**
|
|
457
457
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
458
458
|
* @type {number}
|
|
459
|
-
* @memberof
|
|
459
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
460
460
|
*/
|
|
461
461
|
readonly pageSize?: number
|
|
462
462
|
|
|
463
463
|
/**
|
|
464
464
|
* 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.
|
|
465
465
|
* @type {string}
|
|
466
|
-
* @memberof
|
|
466
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
467
467
|
*/
|
|
468
468
|
readonly pageToken?: string
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
471
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
472
472
|
* @type {string}
|
|
473
|
-
* @memberof
|
|
473
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
474
474
|
*/
|
|
475
475
|
readonly filter?: string
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
479
479
|
* @type {string}
|
|
480
|
-
* @memberof
|
|
480
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
481
481
|
*/
|
|
482
482
|
readonly search?: string
|
|
483
483
|
|
|
484
484
|
/**
|
|
485
485
|
* 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.
|
|
486
486
|
* @type {string}
|
|
487
|
-
* @memberof
|
|
487
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
488
488
|
*/
|
|
489
489
|
readonly order?: string
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
492
|
* 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.
|
|
493
493
|
* @type {string}
|
|
494
|
-
* @memberof
|
|
494
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
495
495
|
*/
|
|
496
496
|
readonly expand?: string
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* 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.
|
|
500
500
|
* @type {string}
|
|
501
|
-
* @memberof
|
|
501
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
502
502
|
*/
|
|
503
503
|
readonly filters?: string
|
|
504
504
|
}
|
|
@@ -545,12 +545,12 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
547
|
* undefined **Required Permissions** none
|
|
548
|
-
* @param {
|
|
548
|
+
* @param {EmailMessagesApiListEmailMessagesRequest} requestParameters Request parameters.
|
|
549
549
|
* @param {*} [options] Override http request option.
|
|
550
550
|
* @throws {RequiredError}
|
|
551
551
|
* @memberof EmailMessagesApi
|
|
552
552
|
*/
|
|
553
|
-
public
|
|
554
|
-
return EmailMessagesApiFp(this.configuration).
|
|
553
|
+
public listEmailMessages(requestParameters: EmailMessagesApiListEmailMessagesRequest = {}, options?: AxiosRequestConfig) {
|
|
554
|
+
return EmailMessagesApiFp(this.configuration).listEmailMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -59,7 +59,7 @@ export declare const EmailMessagesApiAxiosParamCreator: (configuration?: Configu
|
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
listEmailMessages: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* EmailMessagesApi - functional programming interface
|
|
@@ -104,7 +104,7 @@ export declare const EmailMessagesApiFp: (configuration?: Configuration) => {
|
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMessagesResponseClass>>;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
110
|
* EmailMessagesApi - factory interface
|
|
@@ -149,7 +149,7 @@ export declare const EmailMessagesApiFactory: (configuration?: Configuration, ba
|
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
listEmailMessages(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailMessagesResponseClass>;
|
|
153
153
|
};
|
|
154
154
|
/**
|
|
155
155
|
* Request parameters for downloadAttachment operation in EmailMessagesApi.
|
|
@@ -215,57 +215,57 @@ export interface EmailMessagesApiListAttachmentsRequest {
|
|
|
215
215
|
readonly authorization?: string;
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Request parameters for
|
|
218
|
+
* Request parameters for listEmailMessages operation in EmailMessagesApi.
|
|
219
219
|
* @export
|
|
220
|
-
* @interface
|
|
220
|
+
* @interface EmailMessagesApiListEmailMessagesRequest
|
|
221
221
|
*/
|
|
222
|
-
export interface
|
|
222
|
+
export interface EmailMessagesApiListEmailMessagesRequest {
|
|
223
223
|
/**
|
|
224
224
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
225
225
|
* @type {string}
|
|
226
|
-
* @memberof
|
|
226
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
227
227
|
*/
|
|
228
228
|
readonly authorization?: string;
|
|
229
229
|
/**
|
|
230
230
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
231
231
|
* @type {number}
|
|
232
|
-
* @memberof
|
|
232
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
233
233
|
*/
|
|
234
234
|
readonly pageSize?: number;
|
|
235
235
|
/**
|
|
236
236
|
* 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.
|
|
237
237
|
* @type {string}
|
|
238
|
-
* @memberof
|
|
238
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
239
239
|
*/
|
|
240
240
|
readonly pageToken?: string;
|
|
241
241
|
/**
|
|
242
242
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
243
243
|
* @type {string}
|
|
244
|
-
* @memberof
|
|
244
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
245
245
|
*/
|
|
246
246
|
readonly filter?: string;
|
|
247
247
|
/**
|
|
248
248
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
249
249
|
* @type {string}
|
|
250
|
-
* @memberof
|
|
250
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
251
251
|
*/
|
|
252
252
|
readonly search?: string;
|
|
253
253
|
/**
|
|
254
254
|
* 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.
|
|
255
255
|
* @type {string}
|
|
256
|
-
* @memberof
|
|
256
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
257
257
|
*/
|
|
258
258
|
readonly order?: string;
|
|
259
259
|
/**
|
|
260
260
|
* 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.
|
|
261
261
|
* @type {string}
|
|
262
|
-
* @memberof
|
|
262
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
263
263
|
*/
|
|
264
264
|
readonly expand?: string;
|
|
265
265
|
/**
|
|
266
266
|
* 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.
|
|
267
267
|
* @type {string}
|
|
268
|
-
* @memberof
|
|
268
|
+
* @memberof EmailMessagesApiListEmailMessages
|
|
269
269
|
*/
|
|
270
270
|
readonly filters?: string;
|
|
271
271
|
}
|
|
@@ -302,10 +302,10 @@ export declare class EmailMessagesApi extends BaseAPI {
|
|
|
302
302
|
listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailAttachmentsResponseClass, any, {}>>;
|
|
303
303
|
/**
|
|
304
304
|
* undefined **Required Permissions** none
|
|
305
|
-
* @param {
|
|
305
|
+
* @param {EmailMessagesApiListEmailMessagesRequest} requestParameters Request parameters.
|
|
306
306
|
* @param {*} [options] Override http request option.
|
|
307
307
|
* @throws {RequiredError}
|
|
308
308
|
* @memberof EmailMessagesApi
|
|
309
309
|
*/
|
|
310
|
-
|
|
310
|
+
listEmailMessages(requestParameters?: EmailMessagesApiListEmailMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
|
|
311
311
|
}
|
|
@@ -254,7 +254,7 @@ var EmailMessagesApiAxiosParamCreator = function (configuration) {
|
|
|
254
254
|
* @param {*} [options] Override http request option.
|
|
255
255
|
* @throws {RequiredError}
|
|
256
256
|
*/
|
|
257
|
-
|
|
257
|
+
listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
258
|
if (options === void 0) { options = {}; }
|
|
259
259
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
260
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -396,12 +396,12 @@ var EmailMessagesApiFp = function (configuration) {
|
|
|
396
396
|
* @param {*} [options] Override http request option.
|
|
397
397
|
* @throws {RequiredError}
|
|
398
398
|
*/
|
|
399
|
-
|
|
399
|
+
listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
400
400
|
return __awaiter(this, void 0, void 0, function () {
|
|
401
401
|
var localVarAxiosArgs;
|
|
402
402
|
return __generator(this, function (_a) {
|
|
403
403
|
switch (_a.label) {
|
|
404
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
404
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
405
405
|
case 1:
|
|
406
406
|
localVarAxiosArgs = _a.sent();
|
|
407
407
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -463,8 +463,8 @@ var EmailMessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
463
463
|
* @param {*} [options] Override http request option.
|
|
464
464
|
* @throws {RequiredError}
|
|
465
465
|
*/
|
|
466
|
-
|
|
467
|
-
return localVarFp.
|
|
466
|
+
listEmailMessages: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
467
|
+
return localVarFp.listEmailMessages(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
468
468
|
},
|
|
469
469
|
};
|
|
470
470
|
};
|
|
@@ -515,15 +515,15 @@ var EmailMessagesApi = /** @class */ (function (_super) {
|
|
|
515
515
|
};
|
|
516
516
|
/**
|
|
517
517
|
* undefined **Required Permissions** none
|
|
518
|
-
* @param {
|
|
518
|
+
* @param {EmailMessagesApiListEmailMessagesRequest} requestParameters Request parameters.
|
|
519
519
|
* @param {*} [options] Override http request option.
|
|
520
520
|
* @throws {RequiredError}
|
|
521
521
|
* @memberof EmailMessagesApi
|
|
522
522
|
*/
|
|
523
|
-
EmailMessagesApi.prototype.
|
|
523
|
+
EmailMessagesApi.prototype.listEmailMessages = function (requestParameters, options) {
|
|
524
524
|
var _this = this;
|
|
525
525
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
526
|
-
return (0, exports.EmailMessagesApiFp)(this.configuration).
|
|
526
|
+
return (0, exports.EmailMessagesApiFp)(this.configuration).listEmailMessages(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); });
|
|
527
527
|
};
|
|
528
528
|
return EmailMessagesApi;
|
|
529
529
|
}(base_1.BaseAPI));
|
package/package.json
CHANGED