pingram 1.0.18 → 1.0.19-alpha.1318
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/dist/generated/src/apis/AccountApi.d.ts +33 -1
- package/dist/generated/src/apis/AccountApi.js +71 -0
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/ListInvoicesResponse.d.ts +39 -0
- package/dist/generated/src/models/ListInvoicesResponse.js +55 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +109 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.js +95 -0
- package/dist/generated/src/models/SenderPostBody.d.ts +0 -9
- package/dist/generated/src/models/SenderPostBody.js +0 -2
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -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, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
|
|
13
|
+
import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, GetUsageHistoryResponse, GetUsageResponse, ListInvoicesResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
|
|
14
14
|
export interface ConfigureSupabaseSMTPRequest {
|
|
15
15
|
supabaseConfigureRequest: SupabaseConfigureRequest;
|
|
16
16
|
}
|
|
@@ -18,6 +18,13 @@ 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
|
+
}
|
|
21
28
|
export interface PrepareCheckoutSessionRequest {
|
|
22
29
|
billingPostRequestBody: BillingPostRequestBody;
|
|
23
30
|
}
|
|
@@ -97,6 +104,23 @@ export interface AccountApiInterface {
|
|
|
97
104
|
* Get historical usage for the authenticated account over a date range.
|
|
98
105
|
*/
|
|
99
106
|
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>;
|
|
100
124
|
/**
|
|
101
125
|
*
|
|
102
126
|
* @summary List Supabase projects for the connected account
|
|
@@ -205,6 +229,14 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
205
229
|
* Get historical usage for the authenticated account over a date range.
|
|
206
230
|
*/
|
|
207
231
|
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>;
|
|
208
240
|
/**
|
|
209
241
|
* List Supabase projects for the connected account
|
|
210
242
|
*/
|
|
@@ -320,6 +320,77 @@ 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
|
+
}
|
|
323
394
|
/**
|
|
324
395
|
* List Supabase projects for the connected account
|
|
325
396
|
*/
|
|
@@ -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, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
|
|
5
|
+
export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, ListInvoicesRequest, 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';
|
|
@@ -0,0 +1,39 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
}
|
|
@@ -47,15 +47,6 @@ export interface SenderPostBody {
|
|
|
47
47
|
* @deprecated
|
|
48
48
|
*/
|
|
49
49
|
mergeTags?: object;
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Use parameters instead
|
|
52
|
-
* @type {{ [key: string]: string; }}
|
|
53
|
-
* @memberof SenderPostBody
|
|
54
|
-
* @deprecated
|
|
55
|
-
*/
|
|
56
|
-
replace?: {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
};
|
|
59
50
|
/**
|
|
60
51
|
* ID of the notification type (e.g. "welcome_email"). Creates a new notification if it does not exist.
|
|
61
52
|
* @type {string}
|
|
@@ -48,7 +48,6 @@ function SenderPostBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
? undefined
|
|
49
49
|
: (0, SenderPostBodyUser_1.SenderPostBodyUserFromJSON)(json['user']),
|
|
50
50
|
mergeTags: json['mergeTags'] == null ? undefined : json['mergeTags'],
|
|
51
|
-
replace: json['replace'] == null ? undefined : json['replace'],
|
|
52
51
|
type: json['type'] == null ? undefined : json['type'],
|
|
53
52
|
to: json['to'] == null ? undefined : (0, SenderPostBodyTo_1.SenderPostBodyToFromJSON)(json['to']),
|
|
54
53
|
forceChannels: json['forceChannels'] == null
|
|
@@ -94,7 +93,6 @@ function SenderPostBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
94
93
|
notificationId: value['notificationId'],
|
|
95
94
|
user: (0, SenderPostBodyUser_1.SenderPostBodyUserToJSON)(value['user']),
|
|
96
95
|
mergeTags: value['mergeTags'],
|
|
97
|
-
replace: value['replace'],
|
|
98
96
|
type: value['type'],
|
|
99
97
|
to: (0, SenderPostBodyTo_1.SenderPostBodyToToJSON)(value['to']),
|
|
100
98
|
forceChannels: value['forceChannels'] == null
|
|
@@ -150,6 +150,8 @@ 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';
|
|
153
155
|
export * from './ListPhoneNumbersResponse';
|
|
154
156
|
export * from './ListPhoneNumbersResponseNumbersInner';
|
|
155
157
|
export * from './ListReleasedPhoneNumbersResponse';
|
|
@@ -168,6 +168,8 @@ __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);
|
|
171
173
|
__exportStar(require("./ListPhoneNumbersResponse"), exports);
|
|
172
174
|
__exportStar(require("./ListPhoneNumbersResponseNumbersInner"), exports);
|
|
173
175
|
__exportStar(require("./ListReleasedPhoneNumbersResponse"), exports);
|
package/dist/src/client.js
CHANGED
|
@@ -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.
|
|
11
|
+
const SDK_VERSION = '1.0.19';
|
|
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");
|
package/package.json
CHANGED