pingram 0.1.1 → 0.1.2-alpha.728

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.
@@ -13,14 +13,17 @@ import * as runtime from '../runtime';
13
13
  import type { DeleteUserResponse, GetUsersResponse, UserSuppressionDeleteResponse } from '../models/index';
14
14
  export interface DeleteUserRequest {
15
15
  userId: string;
16
+ envId?: string;
16
17
  }
17
18
  export interface ListUsersRequest {
18
19
  limit: number;
19
20
  nextToken: string;
21
+ envId?: string;
20
22
  }
21
23
  export interface RemoveUserFromSuppressionRequest {
22
24
  userId: string;
23
25
  channel: string;
26
+ envId?: string;
24
27
  }
25
28
  /**
26
29
  * UsersApi - interface
@@ -33,6 +36,7 @@ export interface UsersApiInterface {
33
36
  *
34
37
  * @summary Delete a user and all associated data (in-app notifications, preferences, and user record)
35
38
  * @param {string} userId User ID
39
+ * @param {string} [envId] Environment ID (required when using JWT auth)
36
40
  * @param {*} [options] Override http request option.
37
41
  * @throws {RequiredError}
38
42
  * @memberof UsersApiInterface
@@ -41,12 +45,13 @@ export interface UsersApiInterface {
41
45
  /**
42
46
  * Delete a user and all associated data (in-app notifications, preferences, and user record)
43
47
  */
44
- deleteUser(userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserResponse>;
48
+ deleteUser(userId: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserResponse>;
45
49
  /**
46
50
  *
47
51
  * @summary Get all users for an environment with pagination support
48
52
  * @param {number} limit Maximum number of users to return (default
49
53
  * @param {string} nextToken Pagination token for next page
54
+ * @param {string} [envId] Environment ID (required when using JWT auth)
50
55
  * @param {*} [options] Override http request option.
51
56
  * @throws {RequiredError}
52
57
  * @memberof UsersApiInterface
@@ -55,12 +60,13 @@ export interface UsersApiInterface {
55
60
  /**
56
61
  * Get all users for an environment with pagination support
57
62
  */
58
- listUsers(limit: number, nextToken: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersResponse>;
63
+ listUsers(limit: number, nextToken: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersResponse>;
59
64
  /**
60
65
  *
61
66
  * @summary Remove user suppression status for a specific channel
62
67
  * @param {string} userId User ID
63
68
  * @param {string} channel Channel type (EMAIL)
69
+ * @param {string} [envId] Environment ID (required when using JWT auth)
64
70
  * @param {*} [options] Override http request option.
65
71
  * @throws {RequiredError}
66
72
  * @memberof UsersApiInterface
@@ -69,7 +75,7 @@ export interface UsersApiInterface {
69
75
  /**
70
76
  * Remove user suppression status for a specific channel
71
77
  */
72
- removeUserFromSuppression(userId: string, channel: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserSuppressionDeleteResponse>;
78
+ removeUserFromSuppression(userId: string, channel: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserSuppressionDeleteResponse>;
73
79
  }
74
80
  /**
75
81
  *
@@ -82,7 +88,7 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
82
88
  /**
83
89
  * Delete a user and all associated data (in-app notifications, preferences, and user record)
84
90
  */
85
- deleteUser(userId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserResponse>;
91
+ deleteUser(userId: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserResponse>;
86
92
  /**
87
93
  * Get all users for an environment with pagination support
88
94
  */
@@ -90,7 +96,7 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
90
96
  /**
91
97
  * Get all users for an environment with pagination support
92
98
  */
93
- listUsers(limit: number, nextToken: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersResponse>;
99
+ listUsers(limit: number, nextToken: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersResponse>;
94
100
  /**
95
101
  * Remove user suppression status for a specific channel
96
102
  */
@@ -98,5 +104,5 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
98
104
  /**
99
105
  * Remove user suppression status for a specific channel
100
106
  */
101
- removeUserFromSuppression(userId: string, channel: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserSuppressionDeleteResponse>;
107
+ removeUserFromSuppression(userId: string, channel: string, envId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserSuppressionDeleteResponse>;
102
108
  }
@@ -61,6 +61,9 @@ class UsersApi extends runtime.BaseAPI {
61
61
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUser().');
62
62
  }
63
63
  const queryParameters = {};
64
+ if (requestParameters['envId'] != null) {
65
+ queryParameters['envId'] = requestParameters['envId'];
66
+ }
64
67
  const headerParameters = {};
65
68
  if (this.configuration &&
66
69
  (this.configuration.username !== undefined ||
@@ -103,8 +106,8 @@ class UsersApi extends runtime.BaseAPI {
103
106
  /**
104
107
  * Delete a user and all associated data (in-app notifications, preferences, and user record)
105
108
  */
106
- async deleteUser(userId, initOverrides) {
107
- const response = await this.deleteUserRaw({ userId: userId }, initOverrides);
109
+ async deleteUser(userId, envId, initOverrides) {
110
+ const response = await this.deleteUserRaw({ userId: userId, envId: envId }, initOverrides);
108
111
  return await response.value();
109
112
  }
110
113
  /**
@@ -124,6 +127,9 @@ class UsersApi extends runtime.BaseAPI {
124
127
  if (requestParameters['nextToken'] != null) {
125
128
  queryParameters['nextToken'] = requestParameters['nextToken'];
126
129
  }
130
+ if (requestParameters['envId'] != null) {
131
+ queryParameters['envId'] = requestParameters['envId'];
132
+ }
127
133
  const headerParameters = {};
128
134
  if (this.configuration &&
129
135
  (this.configuration.username !== undefined ||
@@ -165,8 +171,8 @@ class UsersApi extends runtime.BaseAPI {
165
171
  /**
166
172
  * Get all users for an environment with pagination support
167
173
  */
168
- async listUsers(limit, nextToken, initOverrides) {
169
- const response = await this.listUsersRaw({ limit: limit, nextToken: nextToken }, initOverrides);
174
+ async listUsers(limit, nextToken, envId, initOverrides) {
175
+ const response = await this.listUsersRaw({ limit: limit, nextToken: nextToken, envId: envId }, initOverrides);
170
176
  return await response.value();
171
177
  }
172
178
  /**
@@ -180,6 +186,9 @@ class UsersApi extends runtime.BaseAPI {
180
186
  throw new runtime.RequiredError('channel', 'Required parameter "channel" was null or undefined when calling removeUserFromSuppression().');
181
187
  }
182
188
  const queryParameters = {};
189
+ if (requestParameters['envId'] != null) {
190
+ queryParameters['envId'] = requestParameters['envId'];
191
+ }
183
192
  const headerParameters = {};
184
193
  if (this.configuration &&
185
194
  (this.configuration.username !== undefined ||
@@ -223,8 +232,8 @@ class UsersApi extends runtime.BaseAPI {
223
232
  /**
224
233
  * Remove user suppression status for a specific channel
225
234
  */
226
- async removeUserFromSuppression(userId, channel, initOverrides) {
227
- const response = await this.removeUserFromSuppressionRaw({ userId: userId, channel: channel }, initOverrides);
235
+ async removeUserFromSuppression(userId, channel, envId, initOverrides) {
236
+ const response = await this.removeUserFromSuppressionRaw({ userId: userId, channel: channel, envId: envId }, initOverrides);
228
237
  return await response.value();
229
238
  }
230
239
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AccountGetResponsePendingDowngradeUsageLimit } from './AccountGetResponsePendingDowngradeUsageLimit';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -57,6 +58,30 @@ export interface AccountGetResponse {
57
58
  * @memberof AccountGetResponse
58
59
  */
59
60
  subscriptionStatus?: AccountGetResponseSubscriptionStatusEnum | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AccountGetResponse
65
+ */
66
+ anniversaryDate?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AccountGetResponse
71
+ */
72
+ pendingDowngradeEffectiveDate?: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof AccountGetResponse
77
+ */
78
+ pendingDowngradeAccountType?: AccountGetResponsePendingDowngradeAccountTypeEnum;
79
+ /**
80
+ *
81
+ * @type {AccountGetResponsePendingDowngradeUsageLimit}
82
+ * @memberof AccountGetResponse
83
+ */
84
+ pendingDowngradeUsageLimit?: AccountGetResponsePendingDowngradeUsageLimit;
60
85
  }
61
86
  /**
62
87
  * @export
@@ -76,6 +101,13 @@ export declare enum AccountGetResponseSubscriptionStatusEnum {
76
101
  PastDue = "past_due",
77
102
  Paused = "paused"
78
103
  }
104
+ /**
105
+ * @export
106
+ * @enum {string}
107
+ */
108
+ export declare enum AccountGetResponsePendingDowngradeAccountTypeEnum {
109
+ Free = "free"
110
+ }
79
111
  /**
80
112
  * Check if a given object implements the AccountGetResponse interface.
81
113
  */
@@ -13,12 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountGetResponseSubscriptionStatusEnum = exports.AccountGetResponseAccountTypeEnum = void 0;
16
+ exports.AccountGetResponsePendingDowngradeAccountTypeEnum = exports.AccountGetResponseSubscriptionStatusEnum = exports.AccountGetResponseAccountTypeEnum = void 0;
17
17
  exports.instanceOfAccountGetResponse = instanceOfAccountGetResponse;
18
18
  exports.AccountGetResponseFromJSON = AccountGetResponseFromJSON;
19
19
  exports.AccountGetResponseFromJSONTyped = AccountGetResponseFromJSONTyped;
20
20
  exports.AccountGetResponseToJSON = AccountGetResponseToJSON;
21
21
  exports.AccountGetResponseToJSONTyped = AccountGetResponseToJSONTyped;
22
+ const AccountGetResponsePendingDowngradeUsageLimit_1 = require("./AccountGetResponsePendingDowngradeUsageLimit");
22
23
  /**
23
24
  * @export
24
25
  * @enum {string}
@@ -39,6 +40,14 @@ var AccountGetResponseSubscriptionStatusEnum;
39
40
  AccountGetResponseSubscriptionStatusEnum["PastDue"] = "past_due";
40
41
  AccountGetResponseSubscriptionStatusEnum["Paused"] = "paused";
41
42
  })(AccountGetResponseSubscriptionStatusEnum || (exports.AccountGetResponseSubscriptionStatusEnum = AccountGetResponseSubscriptionStatusEnum = {}));
43
+ /**
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ var AccountGetResponsePendingDowngradeAccountTypeEnum;
48
+ (function (AccountGetResponsePendingDowngradeAccountTypeEnum) {
49
+ AccountGetResponsePendingDowngradeAccountTypeEnum["Free"] = "free";
50
+ })(AccountGetResponsePendingDowngradeAccountTypeEnum || (exports.AccountGetResponsePendingDowngradeAccountTypeEnum = AccountGetResponsePendingDowngradeAccountTypeEnum = {}));
42
51
  /**
43
52
  * Check if a given object implements the AccountGetResponse interface.
44
53
  */
@@ -71,7 +80,17 @@ function AccountGetResponseFromJSONTyped(json, ignoreDiscriminator) {
71
80
  : json['stripeSubscriptionId'],
72
81
  subscriptionStatus: json['subscriptionStatus'] == null
73
82
  ? undefined
74
- : json['subscriptionStatus']
83
+ : json['subscriptionStatus'],
84
+ anniversaryDate: json['anniversaryDate'] == null ? undefined : json['anniversaryDate'],
85
+ pendingDowngradeEffectiveDate: json['pendingDowngradeEffectiveDate'] == null
86
+ ? undefined
87
+ : json['pendingDowngradeEffectiveDate'],
88
+ pendingDowngradeAccountType: json['pendingDowngradeAccountType'] == null
89
+ ? undefined
90
+ : json['pendingDowngradeAccountType'],
91
+ pendingDowngradeUsageLimit: json['pendingDowngradeUsageLimit'] == null
92
+ ? undefined
93
+ : (0, AccountGetResponsePendingDowngradeUsageLimit_1.AccountGetResponsePendingDowngradeUsageLimitFromJSON)(json['pendingDowngradeUsageLimit'])
75
94
  };
76
95
  }
77
96
  function AccountGetResponseToJSON(json) {
@@ -88,6 +107,10 @@ function AccountGetResponseToJSONTyped(value, ignoreDiscriminator = false) {
88
107
  createdAt: value['createdAt'],
89
108
  stripeCustomerId: value['stripeCustomerId'],
90
109
  stripeSubscriptionId: value['stripeSubscriptionId'],
91
- subscriptionStatus: value['subscriptionStatus']
110
+ subscriptionStatus: value['subscriptionStatus'],
111
+ anniversaryDate: value['anniversaryDate'],
112
+ pendingDowngradeEffectiveDate: value['pendingDowngradeEffectiveDate'],
113
+ pendingDowngradeAccountType: value['pendingDowngradeAccountType'],
114
+ pendingDowngradeUsageLimit: (0, AccountGetResponsePendingDowngradeUsageLimit_1.AccountGetResponsePendingDowngradeUsageLimitToJSON)(value['pendingDowngradeUsageLimit'])
92
115
  };
93
116
  }
@@ -0,0 +1,68 @@
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
+ *
14
+ * @export
15
+ * @interface AccountGetResponsePendingDowngradeUsageLimit
16
+ */
17
+ export interface AccountGetResponsePendingDowngradeUsageLimit {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
22
+ */
23
+ eMAIL?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
28
+ */
29
+ iNAPPWEB?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
34
+ */
35
+ sMS?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
40
+ */
41
+ cALL?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
46
+ */
47
+ pUSH?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
52
+ */
53
+ wEBPUSH?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof AccountGetResponsePendingDowngradeUsageLimit
58
+ */
59
+ sLACK?: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the AccountGetResponsePendingDowngradeUsageLimit interface.
63
+ */
64
+ export declare function instanceOfAccountGetResponsePendingDowngradeUsageLimit(value: object): value is AccountGetResponsePendingDowngradeUsageLimit;
65
+ export declare function AccountGetResponsePendingDowngradeUsageLimitFromJSON(json: any): AccountGetResponsePendingDowngradeUsageLimit;
66
+ export declare function AccountGetResponsePendingDowngradeUsageLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountGetResponsePendingDowngradeUsageLimit;
67
+ export declare function AccountGetResponsePendingDowngradeUsageLimitToJSON(json: any): AccountGetResponsePendingDowngradeUsageLimit;
68
+ export declare function AccountGetResponsePendingDowngradeUsageLimitToJSONTyped(value?: AccountGetResponsePendingDowngradeUsageLimit | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfAccountGetResponsePendingDowngradeUsageLimit = instanceOfAccountGetResponsePendingDowngradeUsageLimit;
17
+ exports.AccountGetResponsePendingDowngradeUsageLimitFromJSON = AccountGetResponsePendingDowngradeUsageLimitFromJSON;
18
+ exports.AccountGetResponsePendingDowngradeUsageLimitFromJSONTyped = AccountGetResponsePendingDowngradeUsageLimitFromJSONTyped;
19
+ exports.AccountGetResponsePendingDowngradeUsageLimitToJSON = AccountGetResponsePendingDowngradeUsageLimitToJSON;
20
+ exports.AccountGetResponsePendingDowngradeUsageLimitToJSONTyped = AccountGetResponsePendingDowngradeUsageLimitToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccountGetResponsePendingDowngradeUsageLimit interface.
23
+ */
24
+ function instanceOfAccountGetResponsePendingDowngradeUsageLimit(value) {
25
+ return true;
26
+ }
27
+ function AccountGetResponsePendingDowngradeUsageLimitFromJSON(json) {
28
+ return AccountGetResponsePendingDowngradeUsageLimitFromJSONTyped(json, false);
29
+ }
30
+ function AccountGetResponsePendingDowngradeUsageLimitFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ eMAIL: json['EMAIL'] == null ? undefined : json['EMAIL'],
36
+ iNAPPWEB: json['INAPP_WEB'] == null ? undefined : json['INAPP_WEB'],
37
+ sMS: json['SMS'] == null ? undefined : json['SMS'],
38
+ cALL: json['CALL'] == null ? undefined : json['CALL'],
39
+ pUSH: json['PUSH'] == null ? undefined : json['PUSH'],
40
+ wEBPUSH: json['WEB_PUSH'] == null ? undefined : json['WEB_PUSH'],
41
+ sLACK: json['SLACK'] == null ? undefined : json['SLACK']
42
+ };
43
+ }
44
+ function AccountGetResponsePendingDowngradeUsageLimitToJSON(json) {
45
+ return AccountGetResponsePendingDowngradeUsageLimitToJSONTyped(json, false);
46
+ }
47
+ function AccountGetResponsePendingDowngradeUsageLimitToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ EMAIL: value['eMAIL'],
53
+ INAPP_WEB: value['iNAPPWEB'],
54
+ SMS: value['sMS'],
55
+ CALL: value['cALL'],
56
+ PUSH: value['pUSH'],
57
+ WEB_PUSH: value['wEBPUSH'],
58
+ SLACK: value['sLACK']
59
+ };
60
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { BillingPostResponseBodyPendingDowngradeUsageLimit } from './BillingPostResponseBodyPendingDowngradeUsageLimit';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -63,6 +64,30 @@ export interface BillingPostResponseBody {
63
64
  * @memberof BillingPostResponseBody
64
65
  */
65
66
  subscriptionStatus?: BillingPostResponseBodySubscriptionStatusEnum | null;
67
+ /**
68
+ * ISO date (YYYY-MM-DD) when the billing cycle resets. Used for anniversary-based billing.
69
+ * @type {string}
70
+ * @memberof BillingPostResponseBody
71
+ */
72
+ anniversaryDate?: string;
73
+ /**
74
+ * ISO date (YYYY-MM-DD) when the pending downgrade takes effect
75
+ * @type {string}
76
+ * @memberof BillingPostResponseBody
77
+ */
78
+ pendingDowngradeEffectiveDate?: string;
79
+ /**
80
+ * The account type to switch to when downgrade takes effect
81
+ * @type {string}
82
+ * @memberof BillingPostResponseBody
83
+ */
84
+ pendingDowngradeAccountType?: BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
85
+ /**
86
+ *
87
+ * @type {BillingPostResponseBodyPendingDowngradeUsageLimit}
88
+ * @memberof BillingPostResponseBody
89
+ */
90
+ pendingDowngradeUsageLimit?: BillingPostResponseBodyPendingDowngradeUsageLimit;
66
91
  /**
67
92
  *
68
93
  * @type {string}
@@ -94,6 +119,13 @@ export declare enum BillingPostResponseBodySubscriptionStatusEnum {
94
119
  PastDue = "past_due",
95
120
  Paused = "paused"
96
121
  }
122
+ /**
123
+ * @export
124
+ * @enum {string}
125
+ */
126
+ export declare enum BillingPostResponseBodyPendingDowngradeAccountTypeEnum {
127
+ Free = "free"
128
+ }
97
129
  /**
98
130
  * Check if a given object implements the BillingPostResponseBody interface.
99
131
  */
@@ -13,12 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BillingPostResponseBodySubscriptionStatusEnum = exports.BillingPostResponseBodyAccountTypeEnum = void 0;
16
+ exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = exports.BillingPostResponseBodySubscriptionStatusEnum = exports.BillingPostResponseBodyAccountTypeEnum = void 0;
17
17
  exports.instanceOfBillingPostResponseBody = instanceOfBillingPostResponseBody;
18
18
  exports.BillingPostResponseBodyFromJSON = BillingPostResponseBodyFromJSON;
19
19
  exports.BillingPostResponseBodyFromJSONTyped = BillingPostResponseBodyFromJSONTyped;
20
20
  exports.BillingPostResponseBodyToJSON = BillingPostResponseBodyToJSON;
21
21
  exports.BillingPostResponseBodyToJSONTyped = BillingPostResponseBodyToJSONTyped;
22
+ const BillingPostResponseBodyPendingDowngradeUsageLimit_1 = require("./BillingPostResponseBodyPendingDowngradeUsageLimit");
22
23
  /**
23
24
  * @export
24
25
  * @enum {string}
@@ -39,6 +40,14 @@ var BillingPostResponseBodySubscriptionStatusEnum;
39
40
  BillingPostResponseBodySubscriptionStatusEnum["PastDue"] = "past_due";
40
41
  BillingPostResponseBodySubscriptionStatusEnum["Paused"] = "paused";
41
42
  })(BillingPostResponseBodySubscriptionStatusEnum || (exports.BillingPostResponseBodySubscriptionStatusEnum = BillingPostResponseBodySubscriptionStatusEnum = {}));
43
+ /**
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ var BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
48
+ (function (BillingPostResponseBodyPendingDowngradeAccountTypeEnum) {
49
+ BillingPostResponseBodyPendingDowngradeAccountTypeEnum["Free"] = "free";
50
+ })(BillingPostResponseBodyPendingDowngradeAccountTypeEnum || (exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = BillingPostResponseBodyPendingDowngradeAccountTypeEnum = {}));
42
51
  /**
43
52
  * Check if a given object implements the BillingPostResponseBody interface.
44
53
  */
@@ -71,6 +80,16 @@ function BillingPostResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
71
80
  subscriptionStatus: json['subscriptionStatus'] == null
72
81
  ? undefined
73
82
  : json['subscriptionStatus'],
83
+ anniversaryDate: json['anniversaryDate'] == null ? undefined : json['anniversaryDate'],
84
+ pendingDowngradeEffectiveDate: json['pendingDowngradeEffectiveDate'] == null
85
+ ? undefined
86
+ : json['pendingDowngradeEffectiveDate'],
87
+ pendingDowngradeAccountType: json['pendingDowngradeAccountType'] == null
88
+ ? undefined
89
+ : json['pendingDowngradeAccountType'],
90
+ pendingDowngradeUsageLimit: json['pendingDowngradeUsageLimit'] == null
91
+ ? undefined
92
+ : (0, BillingPostResponseBodyPendingDowngradeUsageLimit_1.BillingPostResponseBodyPendingDowngradeUsageLimitFromJSON)(json['pendingDowngradeUsageLimit']),
74
93
  sessionId: json['sessionId'] == null ? undefined : json['sessionId'],
75
94
  url: json['url'] == null ? undefined : json['url']
76
95
  };
@@ -91,6 +110,10 @@ function BillingPostResponseBodyToJSONTyped(value, ignoreDiscriminator = false)
91
110
  stripeCustomerId: value['stripeCustomerId'],
92
111
  stripeSubscriptionId: value['stripeSubscriptionId'],
93
112
  subscriptionStatus: value['subscriptionStatus'],
113
+ anniversaryDate: value['anniversaryDate'],
114
+ pendingDowngradeEffectiveDate: value['pendingDowngradeEffectiveDate'],
115
+ pendingDowngradeAccountType: value['pendingDowngradeAccountType'],
116
+ pendingDowngradeUsageLimit: (0, BillingPostResponseBodyPendingDowngradeUsageLimit_1.BillingPostResponseBodyPendingDowngradeUsageLimitToJSON)(value['pendingDowngradeUsageLimit']),
94
117
  sessionId: value['sessionId'],
95
118
  url: value['url']
96
119
  };
@@ -0,0 +1,68 @@
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
+ * Optional new usage limits to apply when downgrade takes effect
14
+ * @export
15
+ * @interface BillingPostResponseBodyPendingDowngradeUsageLimit
16
+ */
17
+ export interface BillingPostResponseBodyPendingDowngradeUsageLimit {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
22
+ */
23
+ eMAIL?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
28
+ */
29
+ iNAPPWEB?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
34
+ */
35
+ sMS?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
40
+ */
41
+ cALL?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
46
+ */
47
+ pUSH?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
52
+ */
53
+ wEBPUSH?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof BillingPostResponseBodyPendingDowngradeUsageLimit
58
+ */
59
+ sLACK?: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the BillingPostResponseBodyPendingDowngradeUsageLimit interface.
63
+ */
64
+ export declare function instanceOfBillingPostResponseBodyPendingDowngradeUsageLimit(value: object): value is BillingPostResponseBodyPendingDowngradeUsageLimit;
65
+ export declare function BillingPostResponseBodyPendingDowngradeUsageLimitFromJSON(json: any): BillingPostResponseBodyPendingDowngradeUsageLimit;
66
+ export declare function BillingPostResponseBodyPendingDowngradeUsageLimitFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingPostResponseBodyPendingDowngradeUsageLimit;
67
+ export declare function BillingPostResponseBodyPendingDowngradeUsageLimitToJSON(json: any): BillingPostResponseBodyPendingDowngradeUsageLimit;
68
+ export declare function BillingPostResponseBodyPendingDowngradeUsageLimitToJSONTyped(value?: BillingPostResponseBodyPendingDowngradeUsageLimit | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfBillingPostResponseBodyPendingDowngradeUsageLimit = instanceOfBillingPostResponseBodyPendingDowngradeUsageLimit;
17
+ exports.BillingPostResponseBodyPendingDowngradeUsageLimitFromJSON = BillingPostResponseBodyPendingDowngradeUsageLimitFromJSON;
18
+ exports.BillingPostResponseBodyPendingDowngradeUsageLimitFromJSONTyped = BillingPostResponseBodyPendingDowngradeUsageLimitFromJSONTyped;
19
+ exports.BillingPostResponseBodyPendingDowngradeUsageLimitToJSON = BillingPostResponseBodyPendingDowngradeUsageLimitToJSON;
20
+ exports.BillingPostResponseBodyPendingDowngradeUsageLimitToJSONTyped = BillingPostResponseBodyPendingDowngradeUsageLimitToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BillingPostResponseBodyPendingDowngradeUsageLimit interface.
23
+ */
24
+ function instanceOfBillingPostResponseBodyPendingDowngradeUsageLimit(value) {
25
+ return true;
26
+ }
27
+ function BillingPostResponseBodyPendingDowngradeUsageLimitFromJSON(json) {
28
+ return BillingPostResponseBodyPendingDowngradeUsageLimitFromJSONTyped(json, false);
29
+ }
30
+ function BillingPostResponseBodyPendingDowngradeUsageLimitFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ eMAIL: json['EMAIL'] == null ? undefined : json['EMAIL'],
36
+ iNAPPWEB: json['INAPP_WEB'] == null ? undefined : json['INAPP_WEB'],
37
+ sMS: json['SMS'] == null ? undefined : json['SMS'],
38
+ cALL: json['CALL'] == null ? undefined : json['CALL'],
39
+ pUSH: json['PUSH'] == null ? undefined : json['PUSH'],
40
+ wEBPUSH: json['WEB_PUSH'] == null ? undefined : json['WEB_PUSH'],
41
+ sLACK: json['SLACK'] == null ? undefined : json['SLACK']
42
+ };
43
+ }
44
+ function BillingPostResponseBodyPendingDowngradeUsageLimitToJSON(json) {
45
+ return BillingPostResponseBodyPendingDowngradeUsageLimitToJSONTyped(json, false);
46
+ }
47
+ function BillingPostResponseBodyPendingDowngradeUsageLimitToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ EMAIL: value['eMAIL'],
53
+ INAPP_WEB: value['iNAPPWEB'],
54
+ SMS: value['sMS'],
55
+ CALL: value['cALL'],
56
+ PUSH: value['pUSH'],
57
+ WEB_PUSH: value['wEBPUSH'],
58
+ SLACK: value['sLACK']
59
+ };
60
+ }
@@ -1,10 +1,12 @@
1
1
  export * from './AccountGetResponse';
2
+ export * from './AccountGetResponsePendingDowngradeUsageLimit';
2
3
  export * from './AutoJoinGetResponse';
3
4
  export * from './AutoJoinPostResponse';
4
5
  export * from './AutoJoinRequestBody';
5
6
  export * from './BeeTokenV2';
6
7
  export * from './BillingPostRequestBody';
7
8
  export * from './BillingPostResponseBody';
9
+ export * from './BillingPostResponseBodyPendingDowngradeUsageLimit';
8
10
  export * from './ChannelsEnum';
9
11
  export * from './CreateAccountRequestBody';
10
12
  export * from './CreateAccountResponse';
@@ -17,12 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AccountGetResponse"), exports);
20
+ __exportStar(require("./AccountGetResponsePendingDowngradeUsageLimit"), exports);
20
21
  __exportStar(require("./AutoJoinGetResponse"), exports);
21
22
  __exportStar(require("./AutoJoinPostResponse"), exports);
22
23
  __exportStar(require("./AutoJoinRequestBody"), exports);
23
24
  __exportStar(require("./BeeTokenV2"), exports);
24
25
  __exportStar(require("./BillingPostRequestBody"), exports);
25
26
  __exportStar(require("./BillingPostResponseBody"), exports);
27
+ __exportStar(require("./BillingPostResponseBodyPendingDowngradeUsageLimit"), exports);
26
28
  __exportStar(require("./ChannelsEnum"), exports);
27
29
  __exportStar(require("./CreateAccountRequestBody"), exports);
28
30
  __exportStar(require("./CreateAccountResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-alpha.728",
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",