pingram 1.0.32 → 1.0.33-alpha.1524

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.
@@ -173,7 +173,7 @@ export interface AccountApiInterface {
173
173
  supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
174
174
  /**
175
175
  *
176
- * @summary Update account billing preferences. Only account owners can change these settings.
176
+ * @summary Update account billing preferences such as auto upgrade.
177
177
  * @param {AccountPatchRequest} accountPatchRequest
178
178
  * @param {*} [options] Override http request option.
179
179
  * @throws {RequiredError}
@@ -181,7 +181,7 @@ export interface AccountApiInterface {
181
181
  */
182
182
  updateAccountSettingsRaw(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
183
183
  /**
184
- * Update account billing preferences. Only account owners can change these settings.
184
+ * Update account billing preferences such as auto upgrade.
185
185
  */
186
186
  updateAccountSettings(accountPatchRequest: AccountPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
187
187
  }
@@ -270,11 +270,11 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
270
270
  */
271
271
  supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
272
272
  /**
273
- * Update account billing preferences. Only account owners can change these settings.
273
+ * Update account billing preferences such as auto upgrade.
274
274
  */
275
275
  updateAccountSettingsRaw(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountGetResponse>>;
276
276
  /**
277
- * Update account billing preferences. Only account owners can change these settings.
277
+ * Update account billing preferences such as auto upgrade.
278
278
  */
279
279
  updateAccountSettings(accountPatchRequest: AccountPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountGetResponse>;
280
280
  }
@@ -602,7 +602,7 @@ class AccountApi extends runtime.BaseAPI {
602
602
  return await response.value();
603
603
  }
604
604
  /**
605
- * Update account billing preferences. Only account owners can change these settings.
605
+ * Update account billing preferences such as auto upgrade.
606
606
  */
607
607
  async updateAccountSettingsRaw(requestParameters, initOverrides) {
608
608
  if (requestParameters['accountPatchRequest'] == null) {
@@ -650,7 +650,7 @@ class AccountApi extends runtime.BaseAPI {
650
650
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountGetResponseFromJSON)(jsonValue));
651
651
  }
652
652
  /**
653
- * Update account billing preferences. Only account owners can change these settings.
653
+ * Update account billing preferences such as auto upgrade.
654
654
  */
655
655
  async updateAccountSettings(accountPatchRequest, initOverrides) {
656
656
  const response = await this.updateAccountSettingsRaw({ accountPatchRequest: accountPatchRequest }, initOverrides);
@@ -0,0 +1,80 @@
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
+ import * as runtime from '../runtime';
13
+ import type { SubNotification, SubNotificationPUTRequest } from '../models/index';
14
+ export interface DeleteSubNotificationRequest {
15
+ notificationId: string;
16
+ subNotificationId: string;
17
+ }
18
+ export interface PutSubNotificationRequest {
19
+ notificationId: string;
20
+ subNotificationId: string;
21
+ subNotificationPUTRequest: SubNotificationPUTRequest;
22
+ }
23
+ /**
24
+ * SubNotificationsApi - interface
25
+ *
26
+ * @export
27
+ * @interface SubNotificationsApiInterface
28
+ */
29
+ export interface SubNotificationsApiInterface {
30
+ /**
31
+ *
32
+ * @summary This endpoint is no longer maintained and should not be used.
33
+ * @param {string} notificationId The notification ID
34
+ * @param {string} subNotificationId The sub-notification ID
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ * @memberof SubNotificationsApiInterface
38
+ */
39
+ deleteSubNotificationRaw(requestParameters: DeleteSubNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
40
+ /**
41
+ * This endpoint is no longer maintained and should not be used.
42
+ */
43
+ deleteSubNotification(notificationId: string, subNotificationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
44
+ /**
45
+ *
46
+ * @summary This endpoint is no longer maintained and should not be used.
47
+ * @param {string} notificationId The notification ID
48
+ * @param {string} subNotificationId The sub-notification ID
49
+ * @param {SubNotificationPUTRequest} subNotificationPUTRequest
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof SubNotificationsApiInterface
53
+ */
54
+ putSubNotificationRaw(requestParameters: PutSubNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubNotification>>;
55
+ /**
56
+ * This endpoint is no longer maintained and should not be used.
57
+ */
58
+ putSubNotification(notificationId: string, subNotificationId: string, subNotificationPUTRequest: SubNotificationPUTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubNotification>;
59
+ }
60
+ /**
61
+ *
62
+ */
63
+ export declare class SubNotificationsApi extends runtime.BaseAPI implements SubNotificationsApiInterface {
64
+ /**
65
+ * This endpoint is no longer maintained and should not be used.
66
+ */
67
+ deleteSubNotificationRaw(requestParameters: DeleteSubNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
68
+ /**
69
+ * This endpoint is no longer maintained and should not be used.
70
+ */
71
+ deleteSubNotification(notificationId: string, subNotificationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
72
+ /**
73
+ * This endpoint is no longer maintained and should not be used.
74
+ */
75
+ putSubNotificationRaw(requestParameters: PutSubNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubNotification>>;
76
+ /**
77
+ * This endpoint is no longer maintained and should not be used.
78
+ */
79
+ putSubNotification(notificationId: string, subNotificationId: string, subNotificationPUTRequest: SubNotificationPUTRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubNotification>;
80
+ }
@@ -0,0 +1,181 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.SubNotificationsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class SubNotificationsApi extends runtime.BaseAPI {
56
+ /**
57
+ * This endpoint is no longer maintained and should not be used.
58
+ */
59
+ async deleteSubNotificationRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['notificationId'] == null) {
61
+ throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling deleteSubNotification().');
62
+ }
63
+ if (requestParameters['subNotificationId'] == null) {
64
+ throw new runtime.RequiredError('subNotificationId', 'Required parameter "subNotificationId" was null or undefined when calling deleteSubNotification().');
65
+ }
66
+ const queryParameters = {};
67
+ const headerParameters = {};
68
+ if (this.configuration &&
69
+ (this.configuration.username !== undefined ||
70
+ this.configuration.password !== undefined)) {
71
+ headerParameters['Authorization'] =
72
+ 'Basic ' +
73
+ btoa(this.configuration.username + ':' + this.configuration.password);
74
+ }
75
+ if (this.configuration &&
76
+ (this.configuration.username !== undefined ||
77
+ this.configuration.password !== undefined)) {
78
+ headerParameters['Authorization'] =
79
+ 'Basic ' +
80
+ btoa(this.configuration.username + ':' + this.configuration.password);
81
+ }
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = await token('apiKey', []);
85
+ if (tokenString) {
86
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
87
+ }
88
+ }
89
+ if (this.configuration &&
90
+ (this.configuration.username !== undefined ||
91
+ this.configuration.password !== undefined)) {
92
+ headerParameters['Authorization'] =
93
+ 'Basic ' +
94
+ btoa(this.configuration.username + ':' + this.configuration.password);
95
+ }
96
+ let urlPath = `/notifications/{notificationId}/subNotifications/{subNotificationId}`;
97
+ urlPath = urlPath.replace(`{${'notificationId'}}`, encodeURIComponent(String(requestParameters['notificationId'])));
98
+ urlPath = urlPath.replace(`{${'subNotificationId'}}`, encodeURIComponent(String(requestParameters['subNotificationId'])));
99
+ const response = await this.request({
100
+ path: urlPath,
101
+ method: 'DELETE',
102
+ headers: headerParameters,
103
+ query: queryParameters
104
+ }, initOverrides);
105
+ return new runtime.VoidApiResponse(response);
106
+ }
107
+ /**
108
+ * This endpoint is no longer maintained and should not be used.
109
+ */
110
+ async deleteSubNotification(notificationId, subNotificationId, initOverrides) {
111
+ await this.deleteSubNotificationRaw({ notificationId: notificationId, subNotificationId: subNotificationId }, initOverrides);
112
+ }
113
+ /**
114
+ * This endpoint is no longer maintained and should not be used.
115
+ */
116
+ async putSubNotificationRaw(requestParameters, initOverrides) {
117
+ if (requestParameters['notificationId'] == null) {
118
+ throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling putSubNotification().');
119
+ }
120
+ if (requestParameters['subNotificationId'] == null) {
121
+ throw new runtime.RequiredError('subNotificationId', 'Required parameter "subNotificationId" was null or undefined when calling putSubNotification().');
122
+ }
123
+ if (requestParameters['subNotificationPUTRequest'] == null) {
124
+ throw new runtime.RequiredError('subNotificationPUTRequest', 'Required parameter "subNotificationPUTRequest" was null or undefined when calling putSubNotification().');
125
+ }
126
+ const queryParameters = {};
127
+ const headerParameters = {};
128
+ headerParameters['Content-Type'] = 'application/json';
129
+ if (this.configuration &&
130
+ (this.configuration.username !== undefined ||
131
+ this.configuration.password !== undefined)) {
132
+ headerParameters['Authorization'] =
133
+ 'Basic ' +
134
+ btoa(this.configuration.username + ':' + this.configuration.password);
135
+ }
136
+ if (this.configuration &&
137
+ (this.configuration.username !== undefined ||
138
+ this.configuration.password !== undefined)) {
139
+ headerParameters['Authorization'] =
140
+ 'Basic ' +
141
+ btoa(this.configuration.username + ':' + this.configuration.password);
142
+ }
143
+ if (this.configuration && this.configuration.accessToken) {
144
+ const token = this.configuration.accessToken;
145
+ const tokenString = await token('apiKey', []);
146
+ if (tokenString) {
147
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
148
+ }
149
+ }
150
+ if (this.configuration &&
151
+ (this.configuration.username !== undefined ||
152
+ this.configuration.password !== undefined)) {
153
+ headerParameters['Authorization'] =
154
+ 'Basic ' +
155
+ btoa(this.configuration.username + ':' + this.configuration.password);
156
+ }
157
+ let urlPath = `/notifications/{notificationId}/subNotifications/{subNotificationId}`;
158
+ urlPath = urlPath.replace(`{${'notificationId'}}`, encodeURIComponent(String(requestParameters['notificationId'])));
159
+ urlPath = urlPath.replace(`{${'subNotificationId'}}`, encodeURIComponent(String(requestParameters['subNotificationId'])));
160
+ const response = await this.request({
161
+ path: urlPath,
162
+ method: 'PUT',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ body: (0, index_1.SubNotificationPUTRequestToJSON)(requestParameters['subNotificationPUTRequest'])
166
+ }, initOverrides);
167
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SubNotificationFromJSON)(jsonValue));
168
+ }
169
+ /**
170
+ * This endpoint is no longer maintained and should not be used.
171
+ */
172
+ async putSubNotification(notificationId, subNotificationId, subNotificationPUTRequest, initOverrides) {
173
+ const response = await this.putSubNotificationRaw({
174
+ notificationId: notificationId,
175
+ subNotificationId: subNotificationId,
176
+ subNotificationPUTRequest: subNotificationPUTRequest
177
+ }, initOverrides);
178
+ return await response.value();
179
+ }
180
+ }
181
+ exports.SubNotificationsApi = SubNotificationsApi;
@@ -44,6 +44,8 @@ export type { DeleteScheduleRequest, TestEmailRequest, UpdateScheduleRequest, Se
44
44
  export { SenderApi } from './SenderApi';
45
45
  export type { SendRequest as SmsApiSendRequest, SmsApiInterface } from './SmsApi';
46
46
  export { SmsApi } from './SmsApi';
47
+ export type { DeleteSubNotificationRequest, PutSubNotificationRequest, SubNotificationsApiInterface } from './SubNotificationsApi';
48
+ export { SubNotificationsApi } from './SubNotificationsApi';
47
49
  export type { CreateTemplateRequest, DeleteTemplateRequest, GetTemplateRequest, ListTemplatesRequest, SetDefaultTemplateOperationRequest, UpdateTemplateRequest, TemplatesApiInterface } from './TemplatesApi';
48
50
  export { TemplatesApi } from './TemplatesApi';
49
51
  export type { CreateNotificationTypeRequest, DeleteNotificationTypeRequest, GetNotificationTypeRequest, UpdateNotificationTypeRequest, TypesApiInterface } from './TypesApi';
@@ -6,7 +6,7 @@
6
6
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.RegistrationsApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.LibraryApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.BroadcastsApi = exports.AddressesApi = exports.AccountsApi = exports.AccountApi = void 0;
9
+ exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SubNotificationsApi = exports.SmsApi = exports.SenderApi = exports.RegistrationsApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.LibraryApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.BroadcastsApi = exports.AddressesApi = exports.AccountsApi = exports.AccountApi = void 0;
10
10
  var AccountApi_1 = require("./AccountApi");
11
11
  Object.defineProperty(exports, "AccountApi", { enumerable: true, get: function () { return AccountApi_1.AccountApi; } });
12
12
  var AccountsApi_1 = require("./AccountsApi");
@@ -49,6 +49,8 @@ var SenderApi_1 = require("./SenderApi");
49
49
  Object.defineProperty(exports, "SenderApi", { enumerable: true, get: function () { return SenderApi_1.SenderApi; } });
50
50
  var SmsApi_1 = require("./SmsApi");
51
51
  Object.defineProperty(exports, "SmsApi", { enumerable: true, get: function () { return SmsApi_1.SmsApi; } });
52
+ var SubNotificationsApi_1 = require("./SubNotificationsApi");
53
+ Object.defineProperty(exports, "SubNotificationsApi", { enumerable: true, get: function () { return SubNotificationsApi_1.SubNotificationsApi; } });
52
54
  var TemplatesApi_1 = require("./TemplatesApi");
53
55
  Object.defineProperty(exports, "TemplatesApi", { enumerable: true, get: function () { return TemplatesApi_1.TemplatesApi; } });
54
56
  var TypesApi_1 = require("./TypesApi");
@@ -0,0 +1,50 @@
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 SubNotification
16
+ */
17
+ export interface SubNotification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SubNotification
22
+ */
23
+ accountId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubNotification
28
+ */
29
+ notificationId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SubNotification
34
+ */
35
+ subNotificationId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SubNotification
40
+ */
41
+ title: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the SubNotification interface.
45
+ */
46
+ export declare function instanceOfSubNotification(value: object): value is SubNotification;
47
+ export declare function SubNotificationFromJSON(json: any): SubNotification;
48
+ export declare function SubNotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubNotification;
49
+ export declare function SubNotificationToJSON(json: any): SubNotification;
50
+ export declare function SubNotificationToJSONTyped(value?: SubNotification | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfSubNotification = instanceOfSubNotification;
17
+ exports.SubNotificationFromJSON = SubNotificationFromJSON;
18
+ exports.SubNotificationFromJSONTyped = SubNotificationFromJSONTyped;
19
+ exports.SubNotificationToJSON = SubNotificationToJSON;
20
+ exports.SubNotificationToJSONTyped = SubNotificationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubNotification interface.
23
+ */
24
+ function instanceOfSubNotification(value) {
25
+ if (!('accountId' in value) || value['accountId'] === undefined)
26
+ return false;
27
+ if (!('notificationId' in value) || value['notificationId'] === undefined)
28
+ return false;
29
+ if (!('subNotificationId' in value) ||
30
+ value['subNotificationId'] === undefined)
31
+ return false;
32
+ if (!('title' in value) || value['title'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function SubNotificationFromJSON(json) {
37
+ return SubNotificationFromJSONTyped(json, false);
38
+ }
39
+ function SubNotificationFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ accountId: json['accountId'],
45
+ notificationId: json['notificationId'],
46
+ subNotificationId: json['subNotificationId'],
47
+ title: json['title']
48
+ };
49
+ }
50
+ function SubNotificationToJSON(json) {
51
+ return SubNotificationToJSONTyped(json, false);
52
+ }
53
+ function SubNotificationToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ accountId: value['accountId'],
59
+ notificationId: value['notificationId'],
60
+ subNotificationId: value['subNotificationId'],
61
+ title: value['title']
62
+ };
63
+ }
@@ -0,0 +1,32 @@
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 SubNotificationPUTRequest
16
+ */
17
+ export interface SubNotificationPUTRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SubNotificationPUTRequest
22
+ */
23
+ title: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SubNotificationPUTRequest interface.
27
+ */
28
+ export declare function instanceOfSubNotificationPUTRequest(value: object): value is SubNotificationPUTRequest;
29
+ export declare function SubNotificationPUTRequestFromJSON(json: any): SubNotificationPUTRequest;
30
+ export declare function SubNotificationPUTRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubNotificationPUTRequest;
31
+ export declare function SubNotificationPUTRequestToJSON(json: any): SubNotificationPUTRequest;
32
+ export declare function SubNotificationPUTRequestToJSONTyped(value?: SubNotificationPUTRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfSubNotificationPUTRequest = instanceOfSubNotificationPUTRequest;
17
+ exports.SubNotificationPUTRequestFromJSON = SubNotificationPUTRequestFromJSON;
18
+ exports.SubNotificationPUTRequestFromJSONTyped = SubNotificationPUTRequestFromJSONTyped;
19
+ exports.SubNotificationPUTRequestToJSON = SubNotificationPUTRequestToJSON;
20
+ exports.SubNotificationPUTRequestToJSONTyped = SubNotificationPUTRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SubNotificationPUTRequest interface.
23
+ */
24
+ function instanceOfSubNotificationPUTRequest(value) {
25
+ if (!('title' in value) || value['title'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SubNotificationPUTRequestFromJSON(json) {
30
+ return SubNotificationPUTRequestFromJSONTyped(json, false);
31
+ }
32
+ function SubNotificationPUTRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ title: json['title']
38
+ };
39
+ }
40
+ function SubNotificationPUTRequestToJSON(json) {
41
+ return SubNotificationPUTRequestToJSONTyped(json, false);
42
+ }
43
+ function SubNotificationPUTRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ title: value['title']
49
+ };
50
+ }
@@ -247,6 +247,8 @@ export * from './SenderPostBodyWebPush';
247
247
  export * from './SenderPostResponse';
248
248
  export * from './SetDefaultTemplateRequest';
249
249
  export * from './SlackInteractivityResponse';
250
+ export * from './SubNotification';
251
+ export * from './SubNotificationPUTRequest';
250
252
  export * from './SuccessResponse';
251
253
  export * from './SupabaseConfigureRequest';
252
254
  export * from './SupabaseConfigureResponse';
@@ -265,6 +265,8 @@ __exportStar(require("./SenderPostBodyWebPush"), exports);
265
265
  __exportStar(require("./SenderPostResponse"), exports);
266
266
  __exportStar(require("./SetDefaultTemplateRequest"), exports);
267
267
  __exportStar(require("./SlackInteractivityResponse"), exports);
268
+ __exportStar(require("./SubNotification"), exports);
269
+ __exportStar(require("./SubNotificationPUTRequest"), exports);
268
270
  __exportStar(require("./SuccessResponse"), exports);
269
271
  __exportStar(require("./SupabaseConfigureRequest"), exports);
270
272
  __exportStar(require("./SupabaseConfigureResponse"), exports);
@@ -23,6 +23,7 @@ import { ProfileApi } from '../generated/src';
23
23
  import { RegistrationsApi } from '../generated/src';
24
24
  import { SenderApi } from '../generated/src';
25
25
  import { SmsApi } from '../generated/src';
26
+ import { SubNotificationsApi } from '../generated/src';
26
27
  import { TemplatesApi } from '../generated/src';
27
28
  import { TypesApi } from '../generated/src';
28
29
  import { UserApi } from '../generated/src';
@@ -130,6 +131,7 @@ export declare class Pingram {
130
131
  registrations: RegistrationsApi;
131
132
  sender: SenderApi;
132
133
  sms: SmsApi;
134
+ subNotifications: SubNotificationsApi;
133
135
  templates: TemplatesApi;
134
136
  types: TypesApi;
135
137
  user: UserApi;
@@ -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.32';
11
+ const SDK_VERSION = '1.0.33';
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");
@@ -37,6 +37,7 @@ const src_25 = require("../generated/src");
37
37
  const src_26 = require("../generated/src");
38
38
  const src_27 = require("../generated/src");
39
39
  const src_28 = require("../generated/src");
40
+ const src_29 = require("../generated/src");
40
41
  const testing_1 = require("./testing");
41
42
  /**
42
43
  * Get the base URL for a given region
@@ -137,13 +138,14 @@ class Pingram {
137
138
  this.registrations = new src_19.RegistrationsApi(this.config);
138
139
  this.sender = new src_20.SenderApi(this.config);
139
140
  this.sms = new src_21.SmsApi(this.config);
140
- this.templates = new src_22.TemplatesApi(this.config);
141
- this.types = new src_23.TypesApi(this.config);
142
- this.user = new src_24.UserApi(this.config);
143
- this.users = new src_25.UsersApi(this.config);
144
- this.voice = new src_26.VoiceApi(this.config);
145
- this.webhooks = new src_27.WebhooksApi(this.config);
146
- this.defaultApi = new src_28.DefaultApi(this.config);
141
+ this.subNotifications = new src_22.SubNotificationsApi(this.config);
142
+ this.templates = new src_23.TemplatesApi(this.config);
143
+ this.types = new src_24.TypesApi(this.config);
144
+ this.user = new src_25.UserApi(this.config);
145
+ this.users = new src_26.UsersApi(this.config);
146
+ this.voice = new src_27.VoiceApi(this.config);
147
+ this.webhooks = new src_28.WebhooksApi(this.config);
148
+ this.defaultApi = new src_29.DefaultApi(this.config);
147
149
  }
148
150
  /**
149
151
  * Update the base URL (overrides region)
@@ -174,13 +176,14 @@ class Pingram {
174
176
  this.registrations = new src_19.RegistrationsApi(this.config);
175
177
  this.sender = new src_20.SenderApi(this.config);
176
178
  this.sms = new src_21.SmsApi(this.config);
177
- this.templates = new src_22.TemplatesApi(this.config);
178
- this.types = new src_23.TypesApi(this.config);
179
- this.user = new src_24.UserApi(this.config);
180
- this.users = new src_25.UsersApi(this.config);
181
- this.voice = new src_26.VoiceApi(this.config);
182
- this.webhooks = new src_27.WebhooksApi(this.config);
183
- this.defaultApi = new src_28.DefaultApi(this.config);
179
+ this.subNotifications = new src_22.SubNotificationsApi(this.config);
180
+ this.templates = new src_23.TemplatesApi(this.config);
181
+ this.types = new src_24.TypesApi(this.config);
182
+ this.user = new src_25.UserApi(this.config);
183
+ this.users = new src_26.UsersApi(this.config);
184
+ this.voice = new src_27.VoiceApi(this.config);
185
+ this.webhooks = new src_28.WebhooksApi(this.config);
186
+ this.defaultApi = new src_29.DefaultApi(this.config);
184
187
  }
185
188
  /**
186
189
  * send
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.32",
3
+ "version": "1.0.33-alpha.1524",
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",