@metronome/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4
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/CHANGELOG.md +51 -0
- package/README.md +19 -25
- package/_shims/node-runtime.d.ts.map +1 -1
- package/_shims/node-runtime.js +2 -3
- package/_shims/node-runtime.js.map +1 -1
- package/_shims/node-runtime.mjs +1 -1
- package/_shims/node-runtime.mjs.map +1 -1
- package/index.d.mts +8 -5
- package/index.d.ts +8 -5
- package/index.d.ts.map +1 -1
- package/index.js +7 -4
- package/index.js.map +1 -1
- package/index.mjs +7 -4
- package/index.mjs.map +1 -1
- package/package.json +2 -3
- package/resources/alerts.d.ts +11 -5
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/audit-logs.d.ts +4 -4
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs.js +4 -4
- package/resources/audit-logs.js.map +1 -1
- package/resources/audit-logs.mjs +4 -4
- package/resources/audit-logs.mjs.map +1 -1
- package/resources/billable-metrics.d.ts +95 -8
- package/resources/billable-metrics.d.ts.map +1 -1
- package/resources/billable-metrics.js +6 -6
- package/resources/billable-metrics.js.map +1 -1
- package/resources/billable-metrics.mjs +6 -6
- package/resources/billable-metrics.mjs.map +1 -1
- package/resources/credit-grants.d.ts +9 -5
- package/resources/credit-grants.d.ts.map +1 -1
- package/resources/credit-grants.js +4 -4
- package/resources/credit-grants.js.map +1 -1
- package/resources/credit-grants.mjs +4 -4
- package/resources/credit-grants.mjs.map +1 -1
- package/resources/custom-fields.d.ts +3 -3
- package/resources/custom-fields.d.ts.map +1 -1
- package/resources/custom-fields.js +2 -2
- package/resources/custom-fields.js.map +1 -1
- package/resources/custom-fields.mjs +2 -2
- package/resources/custom-fields.mjs.map +1 -1
- package/resources/customers/alerts.d.ts +11 -5
- package/resources/customers/alerts.d.ts.map +1 -1
- package/resources/customers/alerts.js +1 -1
- package/resources/customers/alerts.js.map +1 -1
- package/resources/customers/alerts.mjs +1 -1
- package/resources/customers/alerts.mjs.map +1 -1
- package/resources/customers/billing-config.d.ts +3 -3
- package/resources/customers/billing-config.d.ts.map +1 -1
- package/resources/customers/billing-config.js +1 -1
- package/resources/customers/billing-config.js.map +1 -1
- package/resources/customers/billing-config.mjs +1 -1
- package/resources/customers/billing-config.mjs.map +1 -1
- package/resources/customers/customers.d.ts +113 -16
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +8 -8
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +8 -8
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/invoices.d.ts +29 -6
- package/resources/customers/invoices.d.ts.map +1 -1
- package/resources/customers/invoices.js +4 -4
- package/resources/customers/invoices.js.map +1 -1
- package/resources/customers/invoices.mjs +4 -4
- package/resources/customers/invoices.mjs.map +1 -1
- package/resources/customers/plans.d.ts +5 -5
- package/resources/customers/plans.d.ts.map +1 -1
- package/resources/customers/plans.js +4 -4
- package/resources/customers/plans.js.map +1 -1
- package/resources/customers/plans.mjs +4 -4
- package/resources/customers/plans.mjs.map +1 -1
- package/resources/dashboards.d.ts +3 -3
- package/resources/dashboards.d.ts.map +1 -1
- package/resources/dashboards.js +1 -1
- package/resources/dashboards.js.map +1 -1
- package/resources/dashboards.mjs +1 -1
- package/resources/dashboards.mjs.map +1 -1
- package/resources/plans.d.ts +11 -6
- package/resources/plans.d.ts.map +1 -1
- package/resources/plans.js +4 -4
- package/resources/plans.js.map +1 -1
- package/resources/plans.mjs +4 -4
- package/resources/plans.mjs.map +1 -1
- package/resources/services.d.ts +3 -3
- package/resources/services.d.ts.map +1 -1
- package/resources/services.js +1 -1
- package/resources/services.js.map +1 -1
- package/resources/services.mjs +1 -1
- package/resources/services.mjs.map +1 -1
- package/resources/shared.d.ts +5 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/usage.d.ts +4 -4
- package/resources/usage.d.ts.map +1 -1
- package/resources/usage.js +3 -3
- package/resources/usage.js.map +1 -1
- package/resources/usage.mjs +3 -3
- package/resources/usage.mjs.map +1 -1
- package/src/_shims/node-runtime.ts +1 -3
- package/src/index.ts +9 -5
- package/src/resources/alerts.ts +12 -4
- package/src/resources/audit-logs.ts +5 -5
- package/src/resources/billable-metrics.ts +126 -9
- package/src/resources/credit-grants.ts +11 -6
- package/src/resources/custom-fields.ts +4 -4
- package/src/resources/customers/alerts.ts +12 -4
- package/src/resources/customers/billing-config.ts +3 -3
- package/src/resources/customers/customers.ts +147 -20
- package/src/resources/customers/invoices.ts +37 -8
- package/src/resources/customers/plans.ts +6 -6
- package/src/resources/dashboards.ts +3 -3
- package/src/resources/plans.ts +13 -7
- package/src/resources/services.ts +3 -3
- package/src/resources/shared.ts +6 -1
- package/src/resources/usage.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as CustomFieldsAPI from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
import * as CustomFieldsAPI from './custom-fields';
|
|
7
7
|
|
|
8
8
|
export class CustomFields extends APIResource {
|
|
9
9
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as AlertsAPI from
|
|
6
|
-
import * as Shared from
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as AlertsAPI from './alerts';
|
|
6
|
+
import * as Shared from '../shared';
|
|
7
7
|
|
|
8
8
|
export class Alerts extends APIResource {
|
|
9
9
|
/**
|
|
@@ -87,6 +87,7 @@ export namespace CustomerAlert {
|
|
|
87
87
|
| 'low_remaining_days_for_contract_credit_segment_reached'
|
|
88
88
|
| 'low_remaining_contract_credit_balance_reached'
|
|
89
89
|
| 'low_remaining_contract_credit_percentage_reached'
|
|
90
|
+
| 'low_remaining_contract_credit_and_commit_balance_reached'
|
|
90
91
|
| 'invoice_total_reached';
|
|
91
92
|
|
|
92
93
|
/**
|
|
@@ -94,6 +95,13 @@ export namespace CustomerAlert {
|
|
|
94
95
|
*/
|
|
95
96
|
updated_at: string;
|
|
96
97
|
|
|
98
|
+
/**
|
|
99
|
+
* An array of strings, representing a way to filter the credit grant this alert
|
|
100
|
+
* applies to, by looking at the credit_grant_type field on the credit grant. This
|
|
101
|
+
* field is only defined for CreditPercentage and CreditBalance alerts
|
|
102
|
+
*/
|
|
103
|
+
credit_grant_type_filters?: Array<string>;
|
|
104
|
+
|
|
97
105
|
credit_type?: Shared.CreditType | null;
|
|
98
106
|
|
|
99
107
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as BillingConfigAPI from
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as BillingConfigAPI from './billing-config';
|
|
6
6
|
|
|
7
7
|
export class BillingConfig extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as CustomersAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as AlertsAPI from
|
|
9
|
-
import * as BillingConfigAPI from
|
|
10
|
-
import * as InvoicesAPI from
|
|
11
|
-
import * as PlansAPI from
|
|
12
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as CustomersAPI from './customers';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import * as AlertsAPI from './alerts';
|
|
9
|
+
import * as BillingConfigAPI from './billing-config';
|
|
10
|
+
import * as InvoicesAPI from './invoices';
|
|
11
|
+
import * as PlansAPI from './plans';
|
|
12
|
+
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
13
13
|
|
|
14
14
|
export class Customers extends APIResource {
|
|
15
15
|
alerts: AlertsAPI.Alerts = new AlertsAPI.Alerts(this._client);
|
|
@@ -60,7 +60,7 @@ export class Customers extends APIResource {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Get all billable metrics for a given customer.
|
|
64
64
|
*/
|
|
65
65
|
listBillableMetrics(
|
|
66
66
|
customerId: string,
|
|
@@ -190,8 +190,6 @@ export interface CustomerDetail {
|
|
|
190
190
|
*/
|
|
191
191
|
id: string;
|
|
192
192
|
|
|
193
|
-
current_billable_status: CustomerDetail.CurrentBillableStatus;
|
|
194
|
-
|
|
195
193
|
custom_fields: Record<string, string>;
|
|
196
194
|
|
|
197
195
|
customer_config: CustomerDetail.CustomerConfig;
|
|
@@ -209,21 +207,29 @@ export interface CustomerDetail {
|
|
|
209
207
|
ingest_aliases: Array<string>;
|
|
210
208
|
|
|
211
209
|
name: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* This field's availability is dependent on your client's configuration.
|
|
213
|
+
*/
|
|
214
|
+
current_billable_status?: CustomerDetail.CurrentBillableStatus;
|
|
212
215
|
}
|
|
213
216
|
|
|
214
217
|
export namespace CustomerDetail {
|
|
215
|
-
export interface CurrentBillableStatus {
|
|
216
|
-
value: 'billable' | 'unbillable';
|
|
217
|
-
|
|
218
|
-
effective_at?: string | null;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
218
|
export interface CustomerConfig {
|
|
222
219
|
/**
|
|
223
220
|
* The Salesforce account ID for the customer
|
|
224
221
|
*/
|
|
225
222
|
salesforce_account_id: string | null;
|
|
226
223
|
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* This field's availability is dependent on your client's configuration.
|
|
227
|
+
*/
|
|
228
|
+
export interface CurrentBillableStatus {
|
|
229
|
+
value: 'billable' | 'unbillable';
|
|
230
|
+
|
|
231
|
+
effective_at?: string | null;
|
|
232
|
+
}
|
|
227
233
|
}
|
|
228
234
|
|
|
229
235
|
export interface CustomerCreateResponse {
|
|
@@ -243,7 +249,124 @@ export interface CustomerListBillableMetricsResponse {
|
|
|
243
249
|
|
|
244
250
|
name: string;
|
|
245
251
|
|
|
252
|
+
/**
|
|
253
|
+
* (DEPRECATED) use aggregation_type instead
|
|
254
|
+
*/
|
|
255
|
+
aggregate?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* (DEPRECATED) use aggregation_key instead
|
|
259
|
+
*/
|
|
260
|
+
aggregate_keys?: Array<string>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* A key that specifies which property of the event is used to aggregate data. This
|
|
264
|
+
* key must be one of the property filter names and is not applicable when the
|
|
265
|
+
* aggregation type is 'count'.
|
|
266
|
+
*/
|
|
267
|
+
aggregation_key?: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Specifies the type of aggregation performed on matching events.
|
|
271
|
+
*/
|
|
272
|
+
aggregation_type?:
|
|
273
|
+
| 'count'
|
|
274
|
+
| 'Count'
|
|
275
|
+
| 'COUNT'
|
|
276
|
+
| 'latest'
|
|
277
|
+
| 'Latest'
|
|
278
|
+
| 'LATEST'
|
|
279
|
+
| 'max'
|
|
280
|
+
| 'Max'
|
|
281
|
+
| 'MAX'
|
|
282
|
+
| 'sum'
|
|
283
|
+
| 'Sum'
|
|
284
|
+
| 'SUM'
|
|
285
|
+
| 'unique'
|
|
286
|
+
| 'Unique'
|
|
287
|
+
| 'UNIQUE';
|
|
288
|
+
|
|
289
|
+
custom_fields?: Record<string, string>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* An optional filtering rule to match the 'event_type' property of an event.
|
|
293
|
+
*/
|
|
294
|
+
event_type_filter?: CustomerListBillableMetricsResponse.EventTypeFilter;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* (DEPRECATED) use property_filters & event_type_filter instead
|
|
298
|
+
*/
|
|
299
|
+
filter?: Record<string, unknown>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* (DEPRECATED) use group_keys instead
|
|
303
|
+
*/
|
|
246
304
|
group_by?: Array<string>;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Property names that are used to group usage costs on an invoice. Each entry
|
|
308
|
+
* represents a set of properties used to slice events into distinct buckets.
|
|
309
|
+
*/
|
|
310
|
+
group_keys?: Array<Array<string>>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* A list of filters to match events to this billable metric. Each filter defines a
|
|
314
|
+
* rule on an event property. All rules must pass for the event to match the
|
|
315
|
+
* billable metric.
|
|
316
|
+
*/
|
|
317
|
+
property_filters?: Array<CustomerListBillableMetricsResponse.PropertyFilter>;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export namespace CustomerListBillableMetricsResponse {
|
|
321
|
+
/**
|
|
322
|
+
* An optional filtering rule to match the 'event_type' property of an event.
|
|
323
|
+
*/
|
|
324
|
+
export interface EventTypeFilter {
|
|
325
|
+
/**
|
|
326
|
+
* A list of event types that are explicitly included in the billable metric. If
|
|
327
|
+
* specified, only events of these types will match the billable metric. Must be
|
|
328
|
+
* non-empty if present.
|
|
329
|
+
*/
|
|
330
|
+
in_values?: Array<string>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A list of event types that are explicitly excluded from the billable metric. If
|
|
334
|
+
* specified, events of these types will not match the billable metric. Must be
|
|
335
|
+
* non-empty if present.
|
|
336
|
+
*/
|
|
337
|
+
not_in_values?: Array<string>;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface PropertyFilter {
|
|
341
|
+
/**
|
|
342
|
+
* The name of the event property.
|
|
343
|
+
*/
|
|
344
|
+
name: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Determines whether the property must exist in the event. If true, only events
|
|
348
|
+
* with this property will pass the filter. If false, only events without this
|
|
349
|
+
* property will pass the filter. If null or omitted, the existence of the property
|
|
350
|
+
* is optional.
|
|
351
|
+
*/
|
|
352
|
+
exists?: boolean;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Specifies the allowed values for the property to match an event. An event will
|
|
356
|
+
* pass the filter only if its property value is included in this list. If
|
|
357
|
+
* undefined, all property values will pass the filter. Must be non-empty if
|
|
358
|
+
* present.
|
|
359
|
+
*/
|
|
360
|
+
in_values?: Array<string>;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Specifies the values that prevent an event from matching the filter. An event
|
|
364
|
+
* will not pass the filter if its property value is included in this list. If null
|
|
365
|
+
* or empty, all property values will pass the filter. Must be non-empty if
|
|
366
|
+
* present.
|
|
367
|
+
*/
|
|
368
|
+
not_in_values?: Array<string>;
|
|
369
|
+
}
|
|
247
370
|
}
|
|
248
371
|
|
|
249
372
|
export interface CustomerListCostsResponse {
|
|
@@ -281,6 +404,9 @@ export interface CustomerSetNameResponse {
|
|
|
281
404
|
}
|
|
282
405
|
|
|
283
406
|
export interface CustomerCreateParams {
|
|
407
|
+
/**
|
|
408
|
+
* This will be truncated to 160 characters if the provided name is longer.
|
|
409
|
+
*/
|
|
284
410
|
name: string;
|
|
285
411
|
|
|
286
412
|
billing_config?: CustomerCreateParams.BillingConfig;
|
|
@@ -399,7 +525,8 @@ export interface CustomerSetIngestAliasesParams {
|
|
|
399
525
|
|
|
400
526
|
export interface CustomerSetNameParams {
|
|
401
527
|
/**
|
|
402
|
-
* The new name for the customer
|
|
528
|
+
* The new name for the customer. This will be truncated to 160 characters if the
|
|
529
|
+
* provided name is longer.
|
|
403
530
|
*/
|
|
404
531
|
name: string;
|
|
405
532
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as InvoicesAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as InvoicesAPI from './invoices';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
9
9
|
|
|
10
10
|
export class Invoices extends APIResource {
|
|
11
11
|
/**
|
|
@@ -75,8 +75,6 @@ export class InvoicesCursorPage extends CursorPage<Invoice> {}
|
|
|
75
75
|
export interface Invoice {
|
|
76
76
|
id: string;
|
|
77
77
|
|
|
78
|
-
billable_status: 'billable' | 'unbillable';
|
|
79
|
-
|
|
80
78
|
credit_type: Shared.CreditType;
|
|
81
79
|
|
|
82
80
|
customer_id: string;
|
|
@@ -91,6 +89,11 @@ export interface Invoice {
|
|
|
91
89
|
|
|
92
90
|
amendment_id?: string;
|
|
93
91
|
|
|
92
|
+
/**
|
|
93
|
+
* This field's availability is dependent on your client's configuration.
|
|
94
|
+
*/
|
|
95
|
+
billable_status?: 'billable' | 'unbillable';
|
|
96
|
+
|
|
94
97
|
contract_custom_fields?: Record<string, string>;
|
|
95
98
|
|
|
96
99
|
contract_id?: string;
|
|
@@ -298,16 +301,40 @@ export namespace Invoice {
|
|
|
298
301
|
|
|
299
302
|
credit_grant_id?: string;
|
|
300
303
|
|
|
304
|
+
/**
|
|
305
|
+
* The end date for the charge (for seats charges only).
|
|
306
|
+
*/
|
|
307
|
+
end_date?: string;
|
|
308
|
+
|
|
301
309
|
/**
|
|
302
310
|
* the unit price for this charge, present only if the charge is not tiered and the
|
|
303
311
|
* quantity is nonzero
|
|
304
312
|
*/
|
|
305
313
|
price?: number;
|
|
306
314
|
|
|
315
|
+
/**
|
|
316
|
+
* The start date for the charge (for seats charges only).
|
|
317
|
+
*/
|
|
318
|
+
start_date?: string;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* when the current tier started and ends (for tiered charges only)
|
|
322
|
+
*/
|
|
323
|
+
tier_period?: SubLineItem.TierPeriod;
|
|
324
|
+
|
|
307
325
|
tiers?: Array<SubLineItem.Tier>;
|
|
308
326
|
}
|
|
309
327
|
|
|
310
328
|
export namespace SubLineItem {
|
|
329
|
+
/**
|
|
330
|
+
* when the current tier started and ends (for tiered charges only)
|
|
331
|
+
*/
|
|
332
|
+
export interface TierPeriod {
|
|
333
|
+
starting_at: string;
|
|
334
|
+
|
|
335
|
+
ending_before?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
311
338
|
export interface Tier {
|
|
312
339
|
price: number;
|
|
313
340
|
|
|
@@ -400,6 +427,8 @@ export namespace Invoice {
|
|
|
400
427
|
|
|
401
428
|
total: number;
|
|
402
429
|
|
|
430
|
+
credit_grant_custom_fields?: Record<string, string>;
|
|
431
|
+
|
|
403
432
|
credit_grant_id?: string;
|
|
404
433
|
}
|
|
405
434
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as PlansAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as PlansAPI from './plans';
|
|
7
|
+
import * as Shared from '../shared';
|
|
8
|
+
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
9
9
|
|
|
10
10
|
export class Plans extends APIResource {
|
|
11
11
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as DashboardsAPI from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
import * as DashboardsAPI from './dashboards';
|
|
6
6
|
|
|
7
7
|
export class Dashboards extends APIResource {
|
|
8
8
|
/**
|
package/src/resources/plans.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as PlansAPI from
|
|
7
|
-
import * as Shared from
|
|
8
|
-
import * as CustomersAPI from
|
|
9
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
import * as PlansAPI from './plans';
|
|
7
|
+
import * as Shared from './shared';
|
|
8
|
+
import * as CustomersAPI from './customers/customers';
|
|
9
|
+
import { CursorPage, type CursorPageParams } from '../pagination';
|
|
10
10
|
|
|
11
11
|
export class Plans extends APIResource {
|
|
12
12
|
/**
|
|
@@ -203,6 +203,12 @@ export interface PlanListChargesResponse {
|
|
|
203
203
|
*/
|
|
204
204
|
start_period?: number;
|
|
205
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the
|
|
208
|
+
* tier count resets every billing period.
|
|
209
|
+
*/
|
|
210
|
+
tier_reset_frequency?: number;
|
|
211
|
+
|
|
206
212
|
/**
|
|
207
213
|
* Specifies how quantities for usage based charges will be converted.
|
|
208
214
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as ServicesAPI from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
import * as ServicesAPI from './services';
|
|
6
6
|
|
|
7
7
|
export class Services extends APIResource {
|
|
8
8
|
/**
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Shared from
|
|
3
|
+
import * as Shared from './shared';
|
|
4
4
|
|
|
5
5
|
export interface Commit {
|
|
6
6
|
id: string;
|
|
@@ -348,6 +348,9 @@ export interface ContractWithoutAmendments {
|
|
|
348
348
|
*/
|
|
349
349
|
salesforce_opportunity_id?: string;
|
|
350
350
|
|
|
351
|
+
/**
|
|
352
|
+
* This field's availability is dependent on your client's configuration.
|
|
353
|
+
*/
|
|
351
354
|
total_contract_value?: number;
|
|
352
355
|
|
|
353
356
|
usage_filter?: ContractWithoutAmendments.UsageFilter;
|
|
@@ -751,6 +754,8 @@ export interface Rate {
|
|
|
751
754
|
| 'TIERED'
|
|
752
755
|
| 'tiered';
|
|
753
756
|
|
|
757
|
+
credit_type?: CreditType;
|
|
758
|
+
|
|
754
759
|
/**
|
|
755
760
|
* Only set for CUSTOM rate_type. This field is interpreted by custom rate
|
|
756
761
|
* processors.
|
package/src/resources/usage.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import * as UsageAPI from
|
|
6
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
import * as UsageAPI from './usage';
|
|
6
|
+
import { CursorPage, type CursorPageParams } from '../pagination';
|
|
7
7
|
|
|
8
8
|
export class Usage extends APIResource {
|
|
9
9
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.4'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.4'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.4'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|