pingram 1.0.24 → 1.0.25-alpha.1387

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.
@@ -18,6 +18,7 @@ import { LogsApi } from '../generated/src';
18
18
  import { MembersApi } from '../generated/src';
19
19
  import { NumbersApi } from '../generated/src';
20
20
  import { ProfileApi } from '../generated/src';
21
+ import { RegistrationsApi } from '../generated/src';
21
22
  import { SenderApi } from '../generated/src';
22
23
  import { SmsApi } from '../generated/src';
23
24
  import { TemplatesApi } from '../generated/src';
@@ -122,6 +123,7 @@ export declare class Pingram {
122
123
  members: MembersApi;
123
124
  numbers: NumbersApi;
124
125
  profile: ProfileApi;
126
+ registrations: RegistrationsApi;
125
127
  sender: SenderApi;
126
128
  sms: SmsApi;
127
129
  templates: TemplatesApi;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.24';
11
+ const SDK_VERSION = '1.0.25';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
@@ -34,6 +34,7 @@ const src_22 = require("../generated/src");
34
34
  const src_23 = require("../generated/src");
35
35
  const src_24 = require("../generated/src");
36
36
  const src_25 = require("../generated/src");
37
+ const src_26 = require("../generated/src");
37
38
  const testing_1 = require("./testing");
38
39
  /**
39
40
  * Get the base URL for a given region
@@ -129,15 +130,16 @@ class Pingram {
129
130
  this.members = new src_14.MembersApi(this.config);
130
131
  this.numbers = new src_15.NumbersApi(this.config);
131
132
  this.profile = new src_16.ProfileApi(this.config);
132
- this.sender = new src_17.SenderApi(this.config);
133
- this.sms = new src_18.SmsApi(this.config);
134
- this.templates = new src_19.TemplatesApi(this.config);
135
- this.types = new src_20.TypesApi(this.config);
136
- this.user = new src_21.UserApi(this.config);
137
- this.users = new src_22.UsersApi(this.config);
138
- this.voice = new src_23.VoiceApi(this.config);
139
- this.webhooks = new src_24.WebhooksApi(this.config);
140
- this.defaultApi = new src_25.DefaultApi(this.config);
133
+ this.registrations = new src_17.RegistrationsApi(this.config);
134
+ this.sender = new src_18.SenderApi(this.config);
135
+ this.sms = new src_19.SmsApi(this.config);
136
+ this.templates = new src_20.TemplatesApi(this.config);
137
+ this.types = new src_21.TypesApi(this.config);
138
+ this.user = new src_22.UserApi(this.config);
139
+ this.users = new src_23.UsersApi(this.config);
140
+ this.voice = new src_24.VoiceApi(this.config);
141
+ this.webhooks = new src_25.WebhooksApi(this.config);
142
+ this.defaultApi = new src_26.DefaultApi(this.config);
141
143
  }
142
144
  /**
143
145
  * Update the base URL (overrides region)
@@ -163,15 +165,16 @@ class Pingram {
163
165
  this.members = new src_14.MembersApi(this.config);
164
166
  this.numbers = new src_15.NumbersApi(this.config);
165
167
  this.profile = new src_16.ProfileApi(this.config);
166
- this.sender = new src_17.SenderApi(this.config);
167
- this.sms = new src_18.SmsApi(this.config);
168
- this.templates = new src_19.TemplatesApi(this.config);
169
- this.types = new src_20.TypesApi(this.config);
170
- this.user = new src_21.UserApi(this.config);
171
- this.users = new src_22.UsersApi(this.config);
172
- this.voice = new src_23.VoiceApi(this.config);
173
- this.webhooks = new src_24.WebhooksApi(this.config);
174
- this.defaultApi = new src_25.DefaultApi(this.config);
168
+ this.registrations = new src_17.RegistrationsApi(this.config);
169
+ this.sender = new src_18.SenderApi(this.config);
170
+ this.sms = new src_19.SmsApi(this.config);
171
+ this.templates = new src_20.TemplatesApi(this.config);
172
+ this.types = new src_21.TypesApi(this.config);
173
+ this.user = new src_22.UserApi(this.config);
174
+ this.users = new src_23.UsersApi(this.config);
175
+ this.voice = new src_24.VoiceApi(this.config);
176
+ this.webhooks = new src_25.WebhooksApi(this.config);
177
+ this.defaultApi = new src_26.DefaultApi(this.config);
175
178
  }
176
179
  /**
177
180
  * send
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.24",
3
+ "version": "1.0.25-alpha.1387",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -1,38 +0,0 @@
1
- /**
2
- * Pingram
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
- *
14
- * @export
15
- * @interface DeleteEmailSuppressionsResponse
16
- */
17
- export interface DeleteEmailSuppressionsResponse {
18
- /**
19
- * Number of users whose email suppression was removed.
20
- * @type {number}
21
- * @memberof DeleteEmailSuppressionsResponse
22
- */
23
- removed: number;
24
- /**
25
- * Number of suppressed users that did not match the requested reason.
26
- * @type {number}
27
- * @memberof DeleteEmailSuppressionsResponse
28
- */
29
- skipped: number;
30
- }
31
- /**
32
- * Check if a given object implements the DeleteEmailSuppressionsResponse interface.
33
- */
34
- export declare function instanceOfDeleteEmailSuppressionsResponse(value: object): value is DeleteEmailSuppressionsResponse;
35
- export declare function DeleteEmailSuppressionsResponseFromJSON(json: any): DeleteEmailSuppressionsResponse;
36
- export declare function DeleteEmailSuppressionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteEmailSuppressionsResponse;
37
- export declare function DeleteEmailSuppressionsResponseToJSON(json: any): DeleteEmailSuppressionsResponse;
38
- export declare function DeleteEmailSuppressionsResponseToJSONTyped(value?: DeleteEmailSuppressionsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Pingram
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.instanceOfDeleteEmailSuppressionsResponse = instanceOfDeleteEmailSuppressionsResponse;
17
- exports.DeleteEmailSuppressionsResponseFromJSON = DeleteEmailSuppressionsResponseFromJSON;
18
- exports.DeleteEmailSuppressionsResponseFromJSONTyped = DeleteEmailSuppressionsResponseFromJSONTyped;
19
- exports.DeleteEmailSuppressionsResponseToJSON = DeleteEmailSuppressionsResponseToJSON;
20
- exports.DeleteEmailSuppressionsResponseToJSONTyped = DeleteEmailSuppressionsResponseToJSONTyped;
21
- /**
22
- * Check if a given object implements the DeleteEmailSuppressionsResponse interface.
23
- */
24
- function instanceOfDeleteEmailSuppressionsResponse(value) {
25
- if (!('removed' in value) || value['removed'] === undefined)
26
- return false;
27
- if (!('skipped' in value) || value['skipped'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function DeleteEmailSuppressionsResponseFromJSON(json) {
32
- return DeleteEmailSuppressionsResponseFromJSONTyped(json, false);
33
- }
34
- function DeleteEmailSuppressionsResponseFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- removed: json['removed'],
40
- skipped: json['skipped']
41
- };
42
- }
43
- function DeleteEmailSuppressionsResponseToJSON(json) {
44
- return DeleteEmailSuppressionsResponseToJSONTyped(json, false);
45
- }
46
- function DeleteEmailSuppressionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- removed: value['removed'],
52
- skipped: value['skipped']
53
- };
54
- }