pingram 1.0.19-alpha.1318 → 1.0.19

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, GetUsageHistoryResponse, GetUsageResponse, ListInvoicesResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
13
+ import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, GetUsageHistoryResponse, GetUsageResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
14
14
  export interface ConfigureSupabaseSMTPRequest {
15
15
  supabaseConfigureRequest: SupabaseConfigureRequest;
16
16
  }
@@ -18,13 +18,6 @@ export interface GetUsageHistoryRequest {
18
18
  startDate: string;
19
19
  endDate: string;
20
20
  }
21
- export interface ListInvoicesRequest {
22
- limit?: number;
23
- startingAfter?: string;
24
- status?: string;
25
- createdAfter?: string;
26
- createdBefore?: string;
27
- }
28
21
  export interface PrepareCheckoutSessionRequest {
29
22
  billingPostRequestBody: BillingPostRequestBody;
30
23
  }
@@ -104,23 +97,6 @@ export interface AccountApiInterface {
104
97
  * Get historical usage for the authenticated account over a date range.
105
98
  */
106
99
  getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
107
- /**
108
- *
109
- * @summary List Stripe invoices for the authenticated account, newest first.
110
- * @param {number} [limit] Max invoices to return (1-100, default 10)
111
- * @param {string} [startingAfter] Pagination cursor (invoice id from a previous response)
112
- * @param {string} [status] Filter by status
113
- * @param {string} [createdAfter] Inclusive lower bound (YYYY-MM-DD or unix seconds)
114
- * @param {string} [createdBefore] Inclusive upper bound (YYYY-MM-DD or unix seconds)
115
- * @param {*} [options] Override http request option.
116
- * @throws {RequiredError}
117
- * @memberof AccountApiInterface
118
- */
119
- listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
120
- /**
121
- * List Stripe invoices for the authenticated account, newest first.
122
- */
123
- listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
124
100
  /**
125
101
  *
126
102
  * @summary List Supabase projects for the connected account
@@ -229,14 +205,6 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
229
205
  * Get historical usage for the authenticated account over a date range.
230
206
  */
231
207
  getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
232
- /**
233
- * List Stripe invoices for the authenticated account, newest first.
234
- */
235
- listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
236
- /**
237
- * List Stripe invoices for the authenticated account, newest first.
238
- */
239
- listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
240
208
  /**
241
209
  * List Supabase projects for the connected account
242
210
  */
@@ -320,77 +320,6 @@ class AccountApi extends runtime.BaseAPI {
320
320
  const response = await this.getUsageHistoryRaw({ startDate: startDate, endDate: endDate }, initOverrides);
321
321
  return await response.value();
322
322
  }
323
- /**
324
- * List Stripe invoices for the authenticated account, newest first.
325
- */
326
- async listInvoicesRaw(requestParameters, initOverrides) {
327
- const queryParameters = {};
328
- if (requestParameters['limit'] != null) {
329
- queryParameters['limit'] = requestParameters['limit'];
330
- }
331
- if (requestParameters['startingAfter'] != null) {
332
- queryParameters['startingAfter'] = requestParameters['startingAfter'];
333
- }
334
- if (requestParameters['status'] != null) {
335
- queryParameters['status'] = requestParameters['status'];
336
- }
337
- if (requestParameters['createdAfter'] != null) {
338
- queryParameters['createdAfter'] = requestParameters['createdAfter'];
339
- }
340
- if (requestParameters['createdBefore'] != null) {
341
- queryParameters['createdBefore'] = requestParameters['createdBefore'];
342
- }
343
- const headerParameters = {};
344
- if (this.configuration &&
345
- (this.configuration.username !== undefined ||
346
- this.configuration.password !== undefined)) {
347
- headerParameters['Authorization'] =
348
- 'Basic ' +
349
- btoa(this.configuration.username + ':' + this.configuration.password);
350
- }
351
- if (this.configuration &&
352
- (this.configuration.username !== undefined ||
353
- this.configuration.password !== undefined)) {
354
- headerParameters['Authorization'] =
355
- 'Basic ' +
356
- btoa(this.configuration.username + ':' + this.configuration.password);
357
- }
358
- if (this.configuration && this.configuration.accessToken) {
359
- const token = this.configuration.accessToken;
360
- const tokenString = await token('apiKey', []);
361
- if (tokenString) {
362
- headerParameters['Authorization'] = `Bearer ${tokenString}`;
363
- }
364
- }
365
- if (this.configuration &&
366
- (this.configuration.username !== undefined ||
367
- this.configuration.password !== undefined)) {
368
- headerParameters['Authorization'] =
369
- 'Basic ' +
370
- btoa(this.configuration.username + ':' + this.configuration.password);
371
- }
372
- let urlPath = `/account/invoices`;
373
- const response = await this.request({
374
- path: urlPath,
375
- method: 'GET',
376
- headers: headerParameters,
377
- query: queryParameters
378
- }, initOverrides);
379
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListInvoicesResponseFromJSON)(jsonValue));
380
- }
381
- /**
382
- * List Stripe invoices for the authenticated account, newest first.
383
- */
384
- async listInvoices(limit, startingAfter, status, createdAfter, createdBefore, initOverrides) {
385
- const response = await this.listInvoicesRaw({
386
- limit: limit,
387
- startingAfter: startingAfter,
388
- status: status,
389
- createdAfter: createdAfter,
390
- createdBefore: createdBefore
391
- }, initOverrides);
392
- return await response.value();
393
- }
394
323
  /**
395
324
  * List Supabase projects for the connected account
396
325
  */
@@ -2,7 +2,7 @@
2
2
  * Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
3
3
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
4
4
  */
5
- export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, ListInvoicesRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
5
+ export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
6
6
  export { AccountApi } from './AccountApi';
7
7
  export type { CreateAddressOperationRequest, DeleteAddressRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
8
8
  export { AddressesApi } from './AddressesApi';
@@ -150,8 +150,6 @@ export * from './IntercomWebhookDataItemAnyOfSourceAuthor';
150
150
  export * from './InvitePostResponse';
151
151
  export * from './Knowledge';
152
152
  export * from './KnowledgeDocumentsInner';
153
- export * from './ListInvoicesResponse';
154
- export * from './ListInvoicesResponseInvoicesInner';
155
153
  export * from './ListPhoneNumbersResponse';
156
154
  export * from './ListPhoneNumbersResponseNumbersInner';
157
155
  export * from './ListReleasedPhoneNumbersResponse';
@@ -168,8 +168,6 @@ __exportStar(require("./IntercomWebhookDataItemAnyOfSourceAuthor"), exports);
168
168
  __exportStar(require("./InvitePostResponse"), exports);
169
169
  __exportStar(require("./Knowledge"), exports);
170
170
  __exportStar(require("./KnowledgeDocumentsInner"), exports);
171
- __exportStar(require("./ListInvoicesResponse"), exports);
172
- __exportStar(require("./ListInvoicesResponseInvoicesInner"), exports);
173
171
  __exportStar(require("./ListPhoneNumbersResponse"), exports);
174
172
  __exportStar(require("./ListPhoneNumbersResponseNumbersInner"), exports);
175
173
  __exportStar(require("./ListReleasedPhoneNumbersResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.19-alpha.1318",
3
+ "version": "1.0.19",
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,39 +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
- import type { ListInvoicesResponseInvoicesInner } from './ListInvoicesResponseInvoicesInner';
13
- /**
14
- * GET /account/invoices response.
15
- * @export
16
- * @interface ListInvoicesResponse
17
- */
18
- export interface ListInvoicesResponse {
19
- /**
20
- *
21
- * @type {Array<ListInvoicesResponseInvoicesInner>}
22
- * @memberof ListInvoicesResponse
23
- */
24
- invoices: Array<ListInvoicesResponseInvoicesInner>;
25
- /**
26
- * True when more invoices exist; pass the last invoice `id` as `startingAfter`.
27
- * @type {boolean}
28
- * @memberof ListInvoicesResponse
29
- */
30
- hasMore: boolean;
31
- }
32
- /**
33
- * Check if a given object implements the ListInvoicesResponse interface.
34
- */
35
- export declare function instanceOfListInvoicesResponse(value: object): value is ListInvoicesResponse;
36
- export declare function ListInvoicesResponseFromJSON(json: any): ListInvoicesResponse;
37
- export declare function ListInvoicesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponse;
38
- export declare function ListInvoicesResponseToJSON(json: any): ListInvoicesResponse;
39
- export declare function ListInvoicesResponseToJSONTyped(value?: ListInvoicesResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfListInvoicesResponse = instanceOfListInvoicesResponse;
17
- exports.ListInvoicesResponseFromJSON = ListInvoicesResponseFromJSON;
18
- exports.ListInvoicesResponseFromJSONTyped = ListInvoicesResponseFromJSONTyped;
19
- exports.ListInvoicesResponseToJSON = ListInvoicesResponseToJSON;
20
- exports.ListInvoicesResponseToJSONTyped = ListInvoicesResponseToJSONTyped;
21
- const ListInvoicesResponseInvoicesInner_1 = require("./ListInvoicesResponseInvoicesInner");
22
- /**
23
- * Check if a given object implements the ListInvoicesResponse interface.
24
- */
25
- function instanceOfListInvoicesResponse(value) {
26
- if (!('invoices' in value) || value['invoices'] === undefined)
27
- return false;
28
- if (!('hasMore' in value) || value['hasMore'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- function ListInvoicesResponseFromJSON(json) {
33
- return ListInvoicesResponseFromJSONTyped(json, false);
34
- }
35
- function ListInvoicesResponseFromJSONTyped(json, ignoreDiscriminator) {
36
- if (json == null) {
37
- return json;
38
- }
39
- return {
40
- invoices: json['invoices'].map(ListInvoicesResponseInvoicesInner_1.ListInvoicesResponseInvoicesInnerFromJSON),
41
- hasMore: json['hasMore']
42
- };
43
- }
44
- function ListInvoicesResponseToJSON(json) {
45
- return ListInvoicesResponseToJSONTyped(json, false);
46
- }
47
- function ListInvoicesResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- invoices: (value['invoices'] ?? []).map(ListInvoicesResponseInvoicesInner_1.ListInvoicesResponseInvoicesInnerToJSON),
53
- hasMore: value['hasMore']
54
- };
55
- }
@@ -1,109 +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 ListInvoicesResponseInvoicesInner
16
- */
17
- export interface ListInvoicesResponseInvoicesInner {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ListInvoicesResponseInvoicesInner
22
- */
23
- id: string;
24
- /**
25
- * Human-readable invoice number, when assigned.
26
- * @type {string}
27
- * @memberof ListInvoicesResponseInvoicesInner
28
- */
29
- number?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ListInvoicesResponseInvoicesInner
34
- */
35
- status?: ListInvoicesResponseInvoicesInnerStatusEnum;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof ListInvoicesResponseInvoicesInner
40
- */
41
- currency: string;
42
- /**
43
- * Total amount due on the invoice (cents).
44
- * @type {number}
45
- * @memberof ListInvoicesResponseInvoicesInner
46
- */
47
- total: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof ListInvoicesResponseInvoicesInner
52
- */
53
- amountDue: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof ListInvoicesResponseInvoicesInner
58
- */
59
- amountPaid: number;
60
- /**
61
- * Unix timestamp (seconds) when the invoice was created.
62
- * @type {number}
63
- * @memberof ListInvoicesResponseInvoicesInner
64
- */
65
- created: number;
66
- /**
67
- * Stripe-hosted invoice page (receipt / pay).
68
- * @type {string}
69
- * @memberof ListInvoicesResponseInvoicesInner
70
- */
71
- hostedInvoiceUrl?: string;
72
- /**
73
- * Direct PDF download URL.
74
- * @type {string}
75
- * @memberof ListInvoicesResponseInvoicesInner
76
- */
77
- invoicePdf?: string;
78
- /**
79
- * Billing period start (unix seconds), when applicable.
80
- * @type {number}
81
- * @memberof ListInvoicesResponseInvoicesInner
82
- */
83
- periodStart?: number;
84
- /**
85
- * Billing period end (unix seconds), when applicable.
86
- * @type {number}
87
- * @memberof ListInvoicesResponseInvoicesInner
88
- */
89
- periodEnd?: number;
90
- }
91
- /**
92
- * @export
93
- * @enum {string}
94
- */
95
- export declare enum ListInvoicesResponseInvoicesInnerStatusEnum {
96
- DRAFT = "draft",
97
- OPEN = "open",
98
- PAID = "paid",
99
- UNCOLLECTIBLE = "uncollectible",
100
- VOID = "void"
101
- }
102
- /**
103
- * Check if a given object implements the ListInvoicesResponseInvoicesInner interface.
104
- */
105
- export declare function instanceOfListInvoicesResponseInvoicesInner(value: object): value is ListInvoicesResponseInvoicesInner;
106
- export declare function ListInvoicesResponseInvoicesInnerFromJSON(json: any): ListInvoicesResponseInvoicesInner;
107
- export declare function ListInvoicesResponseInvoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseInvoicesInner;
108
- export declare function ListInvoicesResponseInvoicesInnerToJSON(json: any): ListInvoicesResponseInvoicesInner;
109
- export declare function ListInvoicesResponseInvoicesInnerToJSONTyped(value?: ListInvoicesResponseInvoicesInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,95 +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.ListInvoicesResponseInvoicesInnerStatusEnum = void 0;
17
- exports.instanceOfListInvoicesResponseInvoicesInner = instanceOfListInvoicesResponseInvoicesInner;
18
- exports.ListInvoicesResponseInvoicesInnerFromJSON = ListInvoicesResponseInvoicesInnerFromJSON;
19
- exports.ListInvoicesResponseInvoicesInnerFromJSONTyped = ListInvoicesResponseInvoicesInnerFromJSONTyped;
20
- exports.ListInvoicesResponseInvoicesInnerToJSON = ListInvoicesResponseInvoicesInnerToJSON;
21
- exports.ListInvoicesResponseInvoicesInnerToJSONTyped = ListInvoicesResponseInvoicesInnerToJSONTyped;
22
- /**
23
- * @export
24
- * @enum {string}
25
- */
26
- var ListInvoicesResponseInvoicesInnerStatusEnum;
27
- (function (ListInvoicesResponseInvoicesInnerStatusEnum) {
28
- ListInvoicesResponseInvoicesInnerStatusEnum["DRAFT"] = "draft";
29
- ListInvoicesResponseInvoicesInnerStatusEnum["OPEN"] = "open";
30
- ListInvoicesResponseInvoicesInnerStatusEnum["PAID"] = "paid";
31
- ListInvoicesResponseInvoicesInnerStatusEnum["UNCOLLECTIBLE"] = "uncollectible";
32
- ListInvoicesResponseInvoicesInnerStatusEnum["VOID"] = "void";
33
- })(ListInvoicesResponseInvoicesInnerStatusEnum || (exports.ListInvoicesResponseInvoicesInnerStatusEnum = ListInvoicesResponseInvoicesInnerStatusEnum = {}));
34
- /**
35
- * Check if a given object implements the ListInvoicesResponseInvoicesInner interface.
36
- */
37
- function instanceOfListInvoicesResponseInvoicesInner(value) {
38
- if (!('id' in value) || value['id'] === undefined)
39
- return false;
40
- if (!('currency' in value) || value['currency'] === undefined)
41
- return false;
42
- if (!('total' in value) || value['total'] === undefined)
43
- return false;
44
- if (!('amountDue' in value) || value['amountDue'] === undefined)
45
- return false;
46
- if (!('amountPaid' in value) || value['amountPaid'] === undefined)
47
- return false;
48
- if (!('created' in value) || value['created'] === undefined)
49
- return false;
50
- return true;
51
- }
52
- function ListInvoicesResponseInvoicesInnerFromJSON(json) {
53
- return ListInvoicesResponseInvoicesInnerFromJSONTyped(json, false);
54
- }
55
- function ListInvoicesResponseInvoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
56
- if (json == null) {
57
- return json;
58
- }
59
- return {
60
- id: json['id'],
61
- number: json['number'] == null ? undefined : json['number'],
62
- status: json['status'] == null ? undefined : json['status'],
63
- currency: json['currency'],
64
- total: json['total'],
65
- amountDue: json['amountDue'],
66
- amountPaid: json['amountPaid'],
67
- created: json['created'],
68
- hostedInvoiceUrl: json['hostedInvoiceUrl'] == null ? undefined : json['hostedInvoiceUrl'],
69
- invoicePdf: json['invoicePdf'] == null ? undefined : json['invoicePdf'],
70
- periodStart: json['periodStart'] == null ? undefined : json['periodStart'],
71
- periodEnd: json['periodEnd'] == null ? undefined : json['periodEnd']
72
- };
73
- }
74
- function ListInvoicesResponseInvoicesInnerToJSON(json) {
75
- return ListInvoicesResponseInvoicesInnerToJSONTyped(json, false);
76
- }
77
- function ListInvoicesResponseInvoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
78
- if (value == null) {
79
- return value;
80
- }
81
- return {
82
- id: value['id'],
83
- number: value['number'],
84
- status: value['status'],
85
- currency: value['currency'],
86
- total: value['total'],
87
- amountDue: value['amountDue'],
88
- amountPaid: value['amountPaid'],
89
- created: value['created'],
90
- hostedInvoiceUrl: value['hostedInvoiceUrl'],
91
- invoicePdf: value['invoicePdf'],
92
- periodStart: value['periodStart'],
93
- periodEnd: value['periodEnd']
94
- };
95
- }