@notificationapi/node 0.0.2-alpha.3 → 0.0.2-alpha.4
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 +1 -1
- package/dist/generated/src/models/BillingPostResponseBody.d.ts +6 -0
- package/dist/generated/src/models/BillingPostResponseBody.js +2 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +1 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +1 -0
- package/dist/generated/src/models/SlackInteractivityResponse.d.ts +32 -0
- package/dist/generated/src/models/SlackInteractivityResponse.js +50 -0
- package/dist/generated/src/models/index.d.ts +1 -0
- package/dist/generated/src/models/index.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install @notificationapi/node
|
|
|
20
20
|
Import and initialize the client:
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import { NotificationAPIClient } from '@notificationapi/
|
|
23
|
+
import { NotificationAPIClient } from '@notificationapi/node';
|
|
24
24
|
|
|
25
25
|
// Server-side: Secret Key (Bearer token)
|
|
26
26
|
const apiClient = new NotificationAPIClient({
|
|
@@ -63,6 +63,7 @@ function BillingPostResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
name: json['name'] == null ? undefined : json['name'],
|
|
64
64
|
accountType: json['accountType'],
|
|
65
65
|
createdAt: json['createdAt'],
|
|
66
|
+
creator: json['creator'] == null ? undefined : json['creator'],
|
|
66
67
|
stripeCustomerId: json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
|
|
67
68
|
stripeSubscriptionId: json['stripeSubscriptionId'] == null
|
|
68
69
|
? undefined
|
|
@@ -86,6 +87,7 @@ function BillingPostResponseBodyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
86
87
|
name: value['name'],
|
|
87
88
|
accountType: value['accountType'],
|
|
88
89
|
createdAt: value['createdAt'],
|
|
90
|
+
creator: value['creator'],
|
|
89
91
|
stripeCustomerId: value['stripeCustomerId'],
|
|
90
92
|
stripeSubscriptionId: value['stripeSubscriptionId'],
|
|
91
93
|
subscriptionStatus: value['subscriptionStatus'],
|
|
@@ -782,6 +782,7 @@ export declare enum LogsGetResponseLogsInnerMobilePushFailedCodeEnum {
|
|
|
782
782
|
* @enum {string}
|
|
783
783
|
*/
|
|
784
784
|
export declare enum LogsGetResponseLogsInnerEmailFailedCodeEnum {
|
|
785
|
+
UnverifiedSender = "UNVERIFIED_SENDER",
|
|
785
786
|
PermanentGeneralBounce = "PERMANENT_GENERAL_BOUNCE",
|
|
786
787
|
PermanentNoEmailBounce = "PERMANENT_NO_EMAIL_BOUNCE",
|
|
787
788
|
PermanentSuppressedBounce = "PERMANENT_SUPPRESSED_BOUNCE",
|
|
@@ -57,6 +57,7 @@ var LogsGetResponseLogsInnerMobilePushFailedCodeEnum;
|
|
|
57
57
|
*/
|
|
58
58
|
var LogsGetResponseLogsInnerEmailFailedCodeEnum;
|
|
59
59
|
(function (LogsGetResponseLogsInnerEmailFailedCodeEnum) {
|
|
60
|
+
LogsGetResponseLogsInnerEmailFailedCodeEnum["UnverifiedSender"] = "UNVERIFIED_SENDER";
|
|
60
61
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["PermanentGeneralBounce"] = "PERMANENT_GENERAL_BOUNCE";
|
|
61
62
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["PermanentNoEmailBounce"] = "PERMANENT_NO_EMAIL_BOUNCE";
|
|
62
63
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["PermanentSuppressedBounce"] = "PERMANENT_SUPPRESSED_BOUNCE";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationAPI
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Response body type for Slack interactivity webhook acknowledgment
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SlackInteractivityResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SlackInteractivityResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SlackInteractivityResponse
|
|
22
|
+
*/
|
|
23
|
+
received: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SlackInteractivityResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSlackInteractivityResponse(value: object): value is SlackInteractivityResponse;
|
|
29
|
+
export declare function SlackInteractivityResponseFromJSON(json: any): SlackInteractivityResponse;
|
|
30
|
+
export declare function SlackInteractivityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackInteractivityResponse;
|
|
31
|
+
export declare function SlackInteractivityResponseToJSON(json: any): SlackInteractivityResponse;
|
|
32
|
+
export declare function SlackInteractivityResponseToJSONTyped(value?: SlackInteractivityResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* NotificationAPI
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSlackInteractivityResponse = instanceOfSlackInteractivityResponse;
|
|
17
|
+
exports.SlackInteractivityResponseFromJSON = SlackInteractivityResponseFromJSON;
|
|
18
|
+
exports.SlackInteractivityResponseFromJSONTyped = SlackInteractivityResponseFromJSONTyped;
|
|
19
|
+
exports.SlackInteractivityResponseToJSON = SlackInteractivityResponseToJSON;
|
|
20
|
+
exports.SlackInteractivityResponseToJSONTyped = SlackInteractivityResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SlackInteractivityResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSlackInteractivityResponse(value) {
|
|
25
|
+
if (!('received' in value) || value['received'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SlackInteractivityResponseFromJSON(json) {
|
|
30
|
+
return SlackInteractivityResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SlackInteractivityResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
received: json['received']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SlackInteractivityResponseToJSON(json) {
|
|
41
|
+
return SlackInteractivityResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SlackInteractivityResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
received: value['received']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -115,6 +115,7 @@ export * from './SenderPostBodyTo';
|
|
|
115
115
|
export * from './SenderPostBodyWebPush';
|
|
116
116
|
export * from './SenderPostResponse';
|
|
117
117
|
export * from './SetDefaultTemplateRequest';
|
|
118
|
+
export * from './SlackInteractivityResponse';
|
|
118
119
|
export * from './SlackOauthRequest';
|
|
119
120
|
export * from './SuccessResponse';
|
|
120
121
|
export * from './Template';
|
|
@@ -133,6 +133,7 @@ __exportStar(require("./SenderPostBodyTo"), exports);
|
|
|
133
133
|
__exportStar(require("./SenderPostBodyWebPush"), exports);
|
|
134
134
|
__exportStar(require("./SenderPostResponse"), exports);
|
|
135
135
|
__exportStar(require("./SetDefaultTemplateRequest"), exports);
|
|
136
|
+
__exportStar(require("./SlackInteractivityResponse"), exports);
|
|
136
137
|
__exportStar(require("./SlackOauthRequest"), exports);
|
|
137
138
|
__exportStar(require("./SuccessResponse"), exports);
|
|
138
139
|
__exportStar(require("./Template"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notificationapi/node",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.4",
|
|
4
4
|
"description": "Official Node.js SDK for NotificationAPI - Send notifications via Email, SMS, Push, In-App, and more",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "https://github.com/notificationapi-com/
|
|
29
|
+
"url": "git+https://github.com/notificationapi-com/serverless.git",
|
|
30
30
|
"directory": "sdks/node"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|