@metronome/sdk 0.1.0-alpha.0
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 +24 -0
- package/LICENSE +201 -0
- package/README.md +313 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +90 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +237 -0
- package/core.d.ts.map +1 -0
- package/core.js +868 -0
- package/core.js.map +1 -0
- package/core.mjs +837 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +53 -0
- package/error.d.ts.map +1 -0
- package/error.js +143 -0
- package/error.js.map +1 -0
- package/error.mjs +127 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +210 -0
- package/index.d.ts +210 -0
- package/index.d.ts.map +1 -0
- package/index.js +133 -0
- package/index.js.map +1 -0
- package/index.mjs +105 -0
- package/index.mjs.map +1 -0
- package/package.json +106 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/alerts.d.ts +103 -0
- package/resources/alerts.d.ts.map +1 -0
- package/resources/alerts.js +23 -0
- package/resources/alerts.js.map +1 -0
- package/resources/alerts.mjs +19 -0
- package/resources/alerts.mjs.map +1 -0
- package/resources/audit-logs.d.ts +83 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +18 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +14 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/billable-metrics.d.ts +236 -0
- package/resources/billable-metrics.d.ts.map +1 -0
- package/resources/billable-metrics.js +36 -0
- package/resources/billable-metrics.js.map +1 -0
- package/resources/billable-metrics.mjs +32 -0
- package/resources/billable-metrics.mjs.map +1 -0
- package/resources/credit-grants.d.ts +469 -0
- package/resources/credit-grants.d.ts.map +1 -0
- package/resources/credit-grants.js +50 -0
- package/resources/credit-grants.js.map +1 -0
- package/resources/credit-grants.mjs +46 -0
- package/resources/credit-grants.mjs.map +1 -0
- package/resources/custom-fields.d.ts +82 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +66 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +62 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/customers/alerts.d.ts +146 -0
- package/resources/customers/alerts.d.ts.map +1 -0
- package/resources/customers/alerts.js +35 -0
- package/resources/customers/alerts.js.map +1 -0
- package/resources/customers/alerts.mjs +31 -0
- package/resources/customers/alerts.mjs.map +1 -0
- package/resources/customers/billing-config.d.ts +64 -0
- package/resources/customers/billing-config.d.ts.map +1 -0
- package/resources/customers/billing-config.js +37 -0
- package/resources/customers/billing-config.js.map +1 -0
- package/resources/customers/billing-config.mjs +33 -0
- package/resources/customers/billing-config.mjs.map +1 -0
- package/resources/customers/customers.d.ts +313 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +116 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +89 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/index.d.ts +6 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +15 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +7 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers/invoices.d.ts +331 -0
- package/resources/customers/invoices.d.ts.map +1 -0
- package/resources/customers/invoices.js +30 -0
- package/resources/customers/invoices.js.map +1 -0
- package/resources/customers/invoices.mjs +26 -0
- package/resources/customers/invoices.mjs.map +1 -0
- package/resources/customers/plans.d.ts +239 -0
- package/resources/customers/plans.d.ts.map +1 -0
- package/resources/customers/plans.js +41 -0
- package/resources/customers/plans.js.map +1 -0
- package/resources/customers/plans.mjs +37 -0
- package/resources/customers/plans.mjs.map +1 -0
- package/resources/dashboards.d.ts +61 -0
- package/resources/dashboards.d.ts.map +1 -0
- package/resources/dashboards.js +19 -0
- package/resources/dashboards.js.map +1 -0
- package/resources/dashboards.mjs +15 -0
- package/resources/dashboards.mjs.map +1 -0
- package/resources/index.d.ts +13 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +42 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +14 -0
- package/resources/index.mjs.map +1 -0
- package/resources/plans.d.ts +217 -0
- package/resources/plans.d.ts.map +1 -0
- package/resources/plans.js +36 -0
- package/resources/plans.js.map +1 -0
- package/resources/plans.mjs +32 -0
- package/resources/plans.mjs.map +1 -0
- package/resources/services.d.ts +26 -0
- package/resources/services.d.ts.map +1 -0
- package/resources/services.js +20 -0
- package/resources/services.js.map +1 -0
- package/resources/services.mjs +16 -0
- package/resources/services.mjs.map +1 -0
- package/resources/shared.d.ts +540 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/usage.d.ts +182 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +41 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +37 -0
- package/resources/usage.mjs.map +1 -0
- package/resources/webhooks.d.ts +22 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +91 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +87 -0
- package/resources/webhooks.mjs.map +1 -0
- package/shims/node.d.ts +29 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +83 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1146 -0
- package/src/error.ts +146 -0
- package/src/index.ts +303 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +11 -0
- package/src/resources/alerts.ts +144 -0
- package/src/resources/audit-logs.ts +116 -0
- package/src/resources/billable-metrics.ts +341 -0
- package/src/resources/credit-grants.ts +627 -0
- package/src/resources/custom-fields.ts +242 -0
- package/src/resources/customers/alerts.ts +214 -0
- package/src/resources/customers/billing-config.ts +183 -0
- package/src/resources/customers/customers.ts +500 -0
- package/src/resources/customers/index.ts +53 -0
- package/src/resources/customers/invoices.ts +533 -0
- package/src/resources/customers/plans.ts +363 -0
- package/src/resources/dashboards.ts +98 -0
- package/src/resources/index.ts +90 -0
- package/src/resources/plans.ts +333 -0
- package/src/resources/services.ts +35 -0
- package/src/resources/shared.ts +849 -0
- package/src/resources/usage.ts +245 -0
- package/src/resources/webhooks.ts +120 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +248 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +165 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +152 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import * as Core from '@metronome/sdk/core';
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
import * as CustomersAPI from '@metronome/sdk/resources/customers/customers';
|
|
4
|
+
import * as Shared from '@metronome/sdk/resources/shared';
|
|
5
|
+
import * as AlertsAPI from '@metronome/sdk/resources/customers/alerts';
|
|
6
|
+
import * as BillingConfigAPI from '@metronome/sdk/resources/customers/billing-config';
|
|
7
|
+
import * as InvoicesAPI from '@metronome/sdk/resources/customers/invoices';
|
|
8
|
+
import * as PlansAPI from '@metronome/sdk/resources/customers/plans';
|
|
9
|
+
export declare class Customers extends APIResource {
|
|
10
|
+
alerts: AlertsAPI.Alerts;
|
|
11
|
+
plans: PlansAPI.Plans;
|
|
12
|
+
invoices: InvoicesAPI.Invoices;
|
|
13
|
+
billingConfig: BillingConfigAPI.BillingConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Create a new customer
|
|
16
|
+
*/
|
|
17
|
+
create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a customer by Metronome ID.
|
|
20
|
+
*/
|
|
21
|
+
retrieve(customerId: string, options?: Core.RequestOptions): Core.APIPromise<CustomerRetrieveResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* List all customers.
|
|
24
|
+
*/
|
|
25
|
+
list(query?: CustomerListParams, options?: Core.RequestOptions): Core.APIPromise<CustomerListResponse>;
|
|
26
|
+
list(options?: Core.RequestOptions): Core.APIPromise<CustomerListResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Archive a customer
|
|
29
|
+
*/
|
|
30
|
+
archive(body: CustomerArchiveParams, options?: Core.RequestOptions): Core.APIPromise<CustomerArchiveResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List all billable metrics.
|
|
33
|
+
*/
|
|
34
|
+
listBillableMetrics(customerId: string, query?: CustomerListBillableMetricsParams, options?: Core.RequestOptions): Core.APIPromise<CustomerListBillableMetricsResponse>;
|
|
35
|
+
listBillableMetrics(customerId: string, options?: Core.RequestOptions): Core.APIPromise<CustomerListBillableMetricsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Fetch daily pending costs for the specified customer, broken down by credit type
|
|
38
|
+
* and line items. Note: this is not supported for customers whose plan includes a
|
|
39
|
+
* UNIQUE-type billable metric.
|
|
40
|
+
*/
|
|
41
|
+
listCosts(customerId: string, query: CustomerListCostsParams, options?: Core.RequestOptions): Core.APIPromise<CustomerListCostsResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the ingest aliases for a customer. Ingest aliases can be used in the
|
|
44
|
+
* `customer_id` field when sending usage events to Metronome. This call is
|
|
45
|
+
* idempotent. It fully replaces the set of ingest aliases for the given customer.
|
|
46
|
+
*/
|
|
47
|
+
setIngestAliases(customerId: string, body: CustomerSetIngestAliasesParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Updates the specified customer's name.
|
|
50
|
+
*/
|
|
51
|
+
setName(customerId: string, body: CustomerSetNameParams, options?: Core.RequestOptions): Core.APIPromise<CustomerSetNameResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Updates the specified customer's config.
|
|
54
|
+
*/
|
|
55
|
+
updateConfig(customerId: string, body?: CustomerUpdateConfigParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
56
|
+
updateConfig(customerId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
57
|
+
}
|
|
58
|
+
export interface Customer {
|
|
59
|
+
/**
|
|
60
|
+
* the Metronome ID of the customer
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* (deprecated, use ingest_aliases instead) the first ID (Metronome or ingest
|
|
65
|
+
* alias) that can be used in usage events
|
|
66
|
+
*/
|
|
67
|
+
external_id: string;
|
|
68
|
+
/**
|
|
69
|
+
* aliases for this customer that can be used instead of the Metronome customer ID
|
|
70
|
+
* in usage events
|
|
71
|
+
*/
|
|
72
|
+
ingest_aliases: Array<string>;
|
|
73
|
+
name: string;
|
|
74
|
+
custom_fields?: Record<string, string>;
|
|
75
|
+
}
|
|
76
|
+
export interface CustomerDetail {
|
|
77
|
+
/**
|
|
78
|
+
* the Metronome ID of the customer
|
|
79
|
+
*/
|
|
80
|
+
id: string;
|
|
81
|
+
current_billable_status: CustomerDetail.CurrentBillableStatus;
|
|
82
|
+
custom_fields: Record<string, string>;
|
|
83
|
+
customer_config: CustomerDetail.CustomerConfig;
|
|
84
|
+
/**
|
|
85
|
+
* (deprecated, use ingest_aliases instead) the first ID (Metronome or ingest
|
|
86
|
+
* alias) that can be used in usage events
|
|
87
|
+
*/
|
|
88
|
+
external_id: string;
|
|
89
|
+
/**
|
|
90
|
+
* aliases for this customer that can be used instead of the Metronome customer ID
|
|
91
|
+
* in usage events
|
|
92
|
+
*/
|
|
93
|
+
ingest_aliases: Array<string>;
|
|
94
|
+
name: string;
|
|
95
|
+
}
|
|
96
|
+
export declare namespace CustomerDetail {
|
|
97
|
+
interface CurrentBillableStatus {
|
|
98
|
+
value: 'billable' | 'unbillable';
|
|
99
|
+
effective_at?: string | null;
|
|
100
|
+
}
|
|
101
|
+
interface CustomerConfig {
|
|
102
|
+
/**
|
|
103
|
+
* The Salesforce account ID for the customer
|
|
104
|
+
*/
|
|
105
|
+
salesforce_account_id: string | null;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export interface CustomerCreateResponse {
|
|
109
|
+
data: Customer;
|
|
110
|
+
}
|
|
111
|
+
export interface CustomerRetrieveResponse {
|
|
112
|
+
data: CustomerDetail;
|
|
113
|
+
}
|
|
114
|
+
export interface CustomerListResponse {
|
|
115
|
+
data: Array<CustomerDetail>;
|
|
116
|
+
next_page: string | null;
|
|
117
|
+
}
|
|
118
|
+
export interface CustomerArchiveResponse {
|
|
119
|
+
data: Shared.ID;
|
|
120
|
+
}
|
|
121
|
+
export interface CustomerListBillableMetricsResponse {
|
|
122
|
+
data: Array<CustomerListBillableMetricsResponse.Data>;
|
|
123
|
+
next_page: string | null;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace CustomerListBillableMetricsResponse {
|
|
126
|
+
interface Data {
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
group_by?: Array<string>;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface CustomerListCostsResponse {
|
|
133
|
+
data: Array<CustomerListCostsResponse.Data>;
|
|
134
|
+
next_page: string | null;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace CustomerListCostsResponse {
|
|
137
|
+
interface Data {
|
|
138
|
+
credit_types: Record<string, Data.CreditTypes>;
|
|
139
|
+
end_timestamp: string;
|
|
140
|
+
start_timestamp: string;
|
|
141
|
+
}
|
|
142
|
+
namespace Data {
|
|
143
|
+
interface CreditTypes {
|
|
144
|
+
cost?: number;
|
|
145
|
+
line_item_breakdown?: Array<CreditTypes.LineItemBreakdown>;
|
|
146
|
+
name?: string;
|
|
147
|
+
}
|
|
148
|
+
namespace CreditTypes {
|
|
149
|
+
interface LineItemBreakdown {
|
|
150
|
+
cost: number;
|
|
151
|
+
name: string;
|
|
152
|
+
group_key?: string;
|
|
153
|
+
group_value?: string | null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export interface CustomerSetNameResponse {
|
|
159
|
+
data: Customer;
|
|
160
|
+
}
|
|
161
|
+
export interface CustomerCreateParams {
|
|
162
|
+
name: string;
|
|
163
|
+
billing_config?: CustomerCreateParams.BillingConfig;
|
|
164
|
+
custom_fields?: Record<string, string>;
|
|
165
|
+
/**
|
|
166
|
+
* (deprecated, use ingest_aliases instead) the first ID (Metronome ID or ingest
|
|
167
|
+
* alias) that can be used in usage events
|
|
168
|
+
*/
|
|
169
|
+
external_id?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Aliases that can be used to refer to this customer in usage events
|
|
172
|
+
*/
|
|
173
|
+
ingest_aliases?: Array<string>;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace CustomerCreateParams {
|
|
176
|
+
interface BillingConfig {
|
|
177
|
+
billing_provider_customer_id: string;
|
|
178
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
179
|
+
aws_product_code?: string;
|
|
180
|
+
aws_region?: 'af-south-1' | 'ap-east-1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-north-1' | 'eu-south-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'me-south-1' | 'sa-east-1' | 'us-east-1' | 'us-east-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'us-west-1' | 'us-west-2';
|
|
181
|
+
stripe_collection_method?: 'charge_automatically' | 'send_invoice';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export interface CustomerListParams {
|
|
185
|
+
/**
|
|
186
|
+
* Filter the customer list by customer_id. Up to 100 ids can be provided.
|
|
187
|
+
*/
|
|
188
|
+
customer_ids?: Array<string>;
|
|
189
|
+
/**
|
|
190
|
+
* Filter the customer list by ingest_alias
|
|
191
|
+
*/
|
|
192
|
+
ingest_alias?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Max number of results that should be returned
|
|
195
|
+
*/
|
|
196
|
+
limit?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Cursor that indicates where the next page of results should start.
|
|
199
|
+
*/
|
|
200
|
+
next_page?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Filter the customer list by only archived customers.
|
|
203
|
+
*/
|
|
204
|
+
only_archived?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Filter the customer list by salesforce_account_id. Up to 100 ids can be
|
|
207
|
+
* provided.
|
|
208
|
+
*/
|
|
209
|
+
salesforce_account_ids?: Array<string>;
|
|
210
|
+
}
|
|
211
|
+
export interface CustomerArchiveParams {
|
|
212
|
+
id: string;
|
|
213
|
+
}
|
|
214
|
+
export interface CustomerListBillableMetricsParams {
|
|
215
|
+
/**
|
|
216
|
+
* Max number of results that should be returned
|
|
217
|
+
*/
|
|
218
|
+
limit?: number;
|
|
219
|
+
/**
|
|
220
|
+
* Cursor that indicates where the next page of results should start.
|
|
221
|
+
*/
|
|
222
|
+
next_page?: string;
|
|
223
|
+
/**
|
|
224
|
+
* If true, the list of metrics will be filtered to just ones that are on the
|
|
225
|
+
* customer's current plan
|
|
226
|
+
*/
|
|
227
|
+
on_current_plan?: boolean;
|
|
228
|
+
}
|
|
229
|
+
export interface CustomerListCostsParams {
|
|
230
|
+
/**
|
|
231
|
+
* RFC 3339 timestamp (exclusive)
|
|
232
|
+
*/
|
|
233
|
+
ending_before: string;
|
|
234
|
+
/**
|
|
235
|
+
* RFC 3339 timestamp (inclusive)
|
|
236
|
+
*/
|
|
237
|
+
starting_on: string;
|
|
238
|
+
/**
|
|
239
|
+
* Max number of results that should be returned
|
|
240
|
+
*/
|
|
241
|
+
limit?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Cursor that indicates where the next page of results should start.
|
|
244
|
+
*/
|
|
245
|
+
next_page?: string;
|
|
246
|
+
}
|
|
247
|
+
export interface CustomerSetIngestAliasesParams {
|
|
248
|
+
ingest_aliases: Array<string>;
|
|
249
|
+
}
|
|
250
|
+
export interface CustomerSetNameParams {
|
|
251
|
+
/**
|
|
252
|
+
* The new name for the customer
|
|
253
|
+
*/
|
|
254
|
+
name: string;
|
|
255
|
+
}
|
|
256
|
+
export interface CustomerUpdateConfigParams {
|
|
257
|
+
/**
|
|
258
|
+
* Leave in draft or set to auto-advance on invoices sent to Stripe. Falls back to
|
|
259
|
+
* the client-level config if unset, which defaults to true if unset.
|
|
260
|
+
*/
|
|
261
|
+
leave_stripe_invoices_in_draft?: boolean | null;
|
|
262
|
+
/**
|
|
263
|
+
* The Salesforce account ID for the customer
|
|
264
|
+
*/
|
|
265
|
+
salesforce_account_id?: string | null;
|
|
266
|
+
}
|
|
267
|
+
export declare namespace Customers {
|
|
268
|
+
export import Customer = CustomersAPI.Customer;
|
|
269
|
+
export import CustomerDetail = CustomersAPI.CustomerDetail;
|
|
270
|
+
export import CustomerCreateResponse = CustomersAPI.CustomerCreateResponse;
|
|
271
|
+
export import CustomerRetrieveResponse = CustomersAPI.CustomerRetrieveResponse;
|
|
272
|
+
export import CustomerListResponse = CustomersAPI.CustomerListResponse;
|
|
273
|
+
export import CustomerArchiveResponse = CustomersAPI.CustomerArchiveResponse;
|
|
274
|
+
export import CustomerListBillableMetricsResponse = CustomersAPI.CustomerListBillableMetricsResponse;
|
|
275
|
+
export import CustomerListCostsResponse = CustomersAPI.CustomerListCostsResponse;
|
|
276
|
+
export import CustomerSetNameResponse = CustomersAPI.CustomerSetNameResponse;
|
|
277
|
+
export import CustomerCreateParams = CustomersAPI.CustomerCreateParams;
|
|
278
|
+
export import CustomerListParams = CustomersAPI.CustomerListParams;
|
|
279
|
+
export import CustomerArchiveParams = CustomersAPI.CustomerArchiveParams;
|
|
280
|
+
export import CustomerListBillableMetricsParams = CustomersAPI.CustomerListBillableMetricsParams;
|
|
281
|
+
export import CustomerListCostsParams = CustomersAPI.CustomerListCostsParams;
|
|
282
|
+
export import CustomerSetIngestAliasesParams = CustomersAPI.CustomerSetIngestAliasesParams;
|
|
283
|
+
export import CustomerSetNameParams = CustomersAPI.CustomerSetNameParams;
|
|
284
|
+
export import CustomerUpdateConfigParams = CustomersAPI.CustomerUpdateConfigParams;
|
|
285
|
+
export import Alerts = AlertsAPI.Alerts;
|
|
286
|
+
export import CustomerAlert = AlertsAPI.CustomerAlert;
|
|
287
|
+
export import AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse;
|
|
288
|
+
export import AlertListResponse = AlertsAPI.AlertListResponse;
|
|
289
|
+
export import AlertRetrieveParams = AlertsAPI.AlertRetrieveParams;
|
|
290
|
+
export import AlertListParams = AlertsAPI.AlertListParams;
|
|
291
|
+
export import AlertResetParams = AlertsAPI.AlertResetParams;
|
|
292
|
+
export import Plans = PlansAPI.Plans;
|
|
293
|
+
export import PlanListResponse = PlansAPI.PlanListResponse;
|
|
294
|
+
export import PlanAddResponse = PlansAPI.PlanAddResponse;
|
|
295
|
+
export import PlanEndResponse = PlansAPI.PlanEndResponse;
|
|
296
|
+
export import PlanListPriceAdjustmentsResponse = PlansAPI.PlanListPriceAdjustmentsResponse;
|
|
297
|
+
export import PlanListParams = PlansAPI.PlanListParams;
|
|
298
|
+
export import PlanAddParams = PlansAPI.PlanAddParams;
|
|
299
|
+
export import PlanEndParams = PlansAPI.PlanEndParams;
|
|
300
|
+
export import PlanListPriceAdjustmentsParams = PlansAPI.PlanListPriceAdjustmentsParams;
|
|
301
|
+
export import Invoices = InvoicesAPI.Invoices;
|
|
302
|
+
export import Invoice = InvoicesAPI.Invoice;
|
|
303
|
+
export import InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse;
|
|
304
|
+
export import InvoiceListResponse = InvoicesAPI.InvoiceListResponse;
|
|
305
|
+
export import InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse;
|
|
306
|
+
export import InvoiceRetrieveParams = InvoicesAPI.InvoiceRetrieveParams;
|
|
307
|
+
export import InvoiceListParams = InvoicesAPI.InvoiceListParams;
|
|
308
|
+
export import InvoiceAddChargeParams = InvoicesAPI.InvoiceAddChargeParams;
|
|
309
|
+
export import BillingConfig = BillingConfigAPI.BillingConfig;
|
|
310
|
+
export import BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse;
|
|
311
|
+
export import BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams;
|
|
312
|
+
}
|
|
313
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/resources/customers/customers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,YAAY,MAAM,8CAA8C,CAAC;AAC7E,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAC1D,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,gBAAgB,MAAM,mDAAmD,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,6C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BAAwB,GAAG,WAAW,CAAC,wBAAwB,CAAC;IAC9E,MAAM,QAAQ,qBAAqB,GAAG,WAAW,CAAC,qBAAqB,CAAC;IACxE,MAAM,QAAQ,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;IAChE,MAAM,QAAQ,sBAAsB,GAAG,WAAW,CAAC,sBAAsB,CAAC;IAC1E,MAAM,QAAQ,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IAC7D,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Customers = void 0;
|
|
28
|
+
const resource_1 = require("@metronome/sdk/resource");
|
|
29
|
+
const core_1 = require("@metronome/sdk/core");
|
|
30
|
+
const AlertsAPI = __importStar(require("@metronome/sdk/resources/customers/alerts"));
|
|
31
|
+
const BillingConfigAPI = __importStar(require("@metronome/sdk/resources/customers/billing-config"));
|
|
32
|
+
const InvoicesAPI = __importStar(require("@metronome/sdk/resources/customers/invoices"));
|
|
33
|
+
const PlansAPI = __importStar(require("@metronome/sdk/resources/customers/plans"));
|
|
34
|
+
class Customers extends resource_1.APIResource {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.alerts = new AlertsAPI.Alerts(this._client);
|
|
38
|
+
this.plans = new PlansAPI.Plans(this._client);
|
|
39
|
+
this.invoices = new InvoicesAPI.Invoices(this._client);
|
|
40
|
+
this.billingConfig = new BillingConfigAPI.BillingConfig(this._client);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Create a new customer
|
|
44
|
+
*/
|
|
45
|
+
create(body, options) {
|
|
46
|
+
return this._client.post('/customers', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get a customer by Metronome ID.
|
|
50
|
+
*/
|
|
51
|
+
retrieve(customerId, options) {
|
|
52
|
+
return this._client.get(`/customers/${customerId}`, options);
|
|
53
|
+
}
|
|
54
|
+
list(query = {}, options) {
|
|
55
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
56
|
+
return this.list({}, query);
|
|
57
|
+
}
|
|
58
|
+
return this._client.get('/customers', { query, ...options });
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Archive a customer
|
|
62
|
+
*/
|
|
63
|
+
archive(body, options) {
|
|
64
|
+
return this._client.post('/customers/archive', { body, ...options });
|
|
65
|
+
}
|
|
66
|
+
listBillableMetrics(customerId, query = {}, options) {
|
|
67
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
68
|
+
return this.listBillableMetrics(customerId, {}, query);
|
|
69
|
+
}
|
|
70
|
+
return this._client.get(`/customers/${customerId}/billable-metrics`, { query, ...options });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Fetch daily pending costs for the specified customer, broken down by credit type
|
|
74
|
+
* and line items. Note: this is not supported for customers whose plan includes a
|
|
75
|
+
* UNIQUE-type billable metric.
|
|
76
|
+
*/
|
|
77
|
+
listCosts(customerId, query, options) {
|
|
78
|
+
return this._client.get(`/customers/${customerId}/costs`, { query, ...options });
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Sets the ingest aliases for a customer. Ingest aliases can be used in the
|
|
82
|
+
* `customer_id` field when sending usage events to Metronome. This call is
|
|
83
|
+
* idempotent. It fully replaces the set of ingest aliases for the given customer.
|
|
84
|
+
*/
|
|
85
|
+
setIngestAliases(customerId, body, options) {
|
|
86
|
+
return this._client.post(`/customers/${customerId}/setIngestAliases`, {
|
|
87
|
+
body,
|
|
88
|
+
...options,
|
|
89
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Updates the specified customer's name.
|
|
94
|
+
*/
|
|
95
|
+
setName(customerId, body, options) {
|
|
96
|
+
return this._client.post(`/customers/${customerId}/setName`, { body, ...options });
|
|
97
|
+
}
|
|
98
|
+
updateConfig(customerId, body = {}, options) {
|
|
99
|
+
if ((0, core_1.isRequestOptions)(body)) {
|
|
100
|
+
return this.updateConfig(customerId, {}, body);
|
|
101
|
+
}
|
|
102
|
+
return this._client.post(`/customers/${customerId}/updateConfig`, {
|
|
103
|
+
body,
|
|
104
|
+
...options,
|
|
105
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.Customers = Customers;
|
|
110
|
+
(function (Customers) {
|
|
111
|
+
Customers.Alerts = AlertsAPI.Alerts;
|
|
112
|
+
Customers.Plans = PlansAPI.Plans;
|
|
113
|
+
Customers.Invoices = InvoicesAPI.Invoices;
|
|
114
|
+
Customers.BillingConfig = BillingConfigAPI.BillingConfig;
|
|
115
|
+
})(Customers = exports.Customers || (exports.Customers = {}));
|
|
116
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../src/resources/customers/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,sDAAsD;AACtD,8CAAuD;AAGvD,qFAAuE;AACvE,oGAAsF;AACtF,yFAA2E;AAC3E,mFAAqE;AAErE,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgInG,CAAC;IA9HC;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,C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E,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,OAAO,CACL,UAAkB,EAClB,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAWD,YAAY,CACV,UAAkB,EAClB,OAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAChD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,eAAe,EAAE;YAChE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AApID,8BAoIC;AAsTD,WAAiB,SAAS;IAkBV,gBAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAO1B,eAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IASvB,kBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAQhC,uBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAG/D,CAAC,EA7CgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA6CzB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
import { isRequestOptions } from '@metronome/sdk/core';
|
|
4
|
+
import * as AlertsAPI from '@metronome/sdk/resources/customers/alerts';
|
|
5
|
+
import * as BillingConfigAPI from '@metronome/sdk/resources/customers/billing-config';
|
|
6
|
+
import * as InvoicesAPI from '@metronome/sdk/resources/customers/invoices';
|
|
7
|
+
import * as PlansAPI from '@metronome/sdk/resources/customers/plans';
|
|
8
|
+
export class Customers extends APIResource {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.alerts = new AlertsAPI.Alerts(this._client);
|
|
12
|
+
this.plans = new PlansAPI.Plans(this._client);
|
|
13
|
+
this.invoices = new InvoicesAPI.Invoices(this._client);
|
|
14
|
+
this.billingConfig = new BillingConfigAPI.BillingConfig(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Create a new customer
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/customers', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get a customer by Metronome ID.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(customerId, options) {
|
|
26
|
+
return this._client.get(`/customers/${customerId}`, options);
|
|
27
|
+
}
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
if (isRequestOptions(query)) {
|
|
30
|
+
return this.list({}, query);
|
|
31
|
+
}
|
|
32
|
+
return this._client.get('/customers', { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Archive a customer
|
|
36
|
+
*/
|
|
37
|
+
archive(body, options) {
|
|
38
|
+
return this._client.post('/customers/archive', { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
listBillableMetrics(customerId, query = {}, options) {
|
|
41
|
+
if (isRequestOptions(query)) {
|
|
42
|
+
return this.listBillableMetrics(customerId, {}, query);
|
|
43
|
+
}
|
|
44
|
+
return this._client.get(`/customers/${customerId}/billable-metrics`, { query, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Fetch daily pending costs for the specified customer, broken down by credit type
|
|
48
|
+
* and line items. Note: this is not supported for customers whose plan includes a
|
|
49
|
+
* UNIQUE-type billable metric.
|
|
50
|
+
*/
|
|
51
|
+
listCosts(customerId, query, options) {
|
|
52
|
+
return this._client.get(`/customers/${customerId}/costs`, { query, ...options });
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Sets the ingest aliases for a customer. Ingest aliases can be used in the
|
|
56
|
+
* `customer_id` field when sending usage events to Metronome. This call is
|
|
57
|
+
* idempotent. It fully replaces the set of ingest aliases for the given customer.
|
|
58
|
+
*/
|
|
59
|
+
setIngestAliases(customerId, body, options) {
|
|
60
|
+
return this._client.post(`/customers/${customerId}/setIngestAliases`, {
|
|
61
|
+
body,
|
|
62
|
+
...options,
|
|
63
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Updates the specified customer's name.
|
|
68
|
+
*/
|
|
69
|
+
setName(customerId, body, options) {
|
|
70
|
+
return this._client.post(`/customers/${customerId}/setName`, { body, ...options });
|
|
71
|
+
}
|
|
72
|
+
updateConfig(customerId, body = {}, options) {
|
|
73
|
+
if (isRequestOptions(body)) {
|
|
74
|
+
return this.updateConfig(customerId, {}, body);
|
|
75
|
+
}
|
|
76
|
+
return this._client.post(`/customers/${customerId}/updateConfig`, {
|
|
77
|
+
body,
|
|
78
|
+
...options,
|
|
79
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
(function (Customers) {
|
|
84
|
+
Customers.Alerts = AlertsAPI.Alerts;
|
|
85
|
+
Customers.Plans = PlansAPI.Plans;
|
|
86
|
+
Customers.Invoices = InvoicesAPI.Invoices;
|
|
87
|
+
Customers.BillingConfig = BillingConfigAPI.BillingConfig;
|
|
88
|
+
})(Customers || (Customers = {}));
|
|
89
|
+
//# sourceMappingURL=customers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../src/resources/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE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,EAAE;YAC1B,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAChD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,eAAe,EAAE;YAChE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAsTD,WAAiB,SAAS;IAkBV,gBAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAO1B,eAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IASvB,kBAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAQhC,uBAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;AAG/D,CAAC,EA7CgB,SAAS,KAAT,SAAS,QA6CzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BillingConfigRetrieveResponse, BillingConfigCreateParams, BillingConfig } from "./billing-config.js";
|
|
2
|
+
export { Customer, CustomerDetail, CustomerCreateResponse, CustomerRetrieveResponse, CustomerListResponse, CustomerArchiveResponse, CustomerListBillableMetricsResponse, CustomerListCostsResponse, CustomerSetNameResponse, CustomerCreateParams, CustomerListParams, CustomerArchiveParams, CustomerListBillableMetricsParams, CustomerListCostsParams, CustomerSetIngestAliasesParams, CustomerSetNameParams, CustomerUpdateConfigParams, Customers, } from "./customers.js";
|
|
3
|
+
export { CustomerAlert, AlertRetrieveResponse, AlertListResponse, AlertRetrieveParams, AlertListParams, AlertResetParams, Alerts, } from "./alerts.js";
|
|
4
|
+
export { Invoice, InvoiceRetrieveResponse, InvoiceListResponse, InvoiceAddChargeResponse, InvoiceRetrieveParams, InvoiceListParams, InvoiceAddChargeParams, Invoices, } from "./invoices.js";
|
|
5
|
+
export { PlanListResponse, PlanAddResponse, PlanEndResponse, PlanListPriceAdjustmentsResponse, PlanListParams, PlanAddParams, PlanEndParams, PlanListPriceAdjustmentsParams, Plans, } from "./plans.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3G,OAAO,EACL,QAAQ,EACR,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,EACvB,mCAAmC,EACnC,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,iCAAiC,EACjC,uBAAuB,EACvB,8BAA8B,EAC9B,qBAAqB,EACrB,0BAA0B,EAC1B,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,QAAQ,GACT,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gCAAgC,EAChC,cAAc,EACd,aAAa,EACb,aAAa,EACb,8BAA8B,EAC9B,KAAK,GACN,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Plans = exports.Invoices = exports.Alerts = exports.Customers = exports.BillingConfig = void 0;
|
|
5
|
+
var billing_config_1 = require("./billing-config.js");
|
|
6
|
+
Object.defineProperty(exports, "BillingConfig", { enumerable: true, get: function () { return billing_config_1.BillingConfig; } });
|
|
7
|
+
var customers_1 = require("./customers.js");
|
|
8
|
+
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
9
|
+
var alerts_1 = require("./alerts.js");
|
|
10
|
+
Object.defineProperty(exports, "Alerts", { enumerable: true, get: function () { return alerts_1.Alerts; } });
|
|
11
|
+
var invoices_1 = require("./invoices.js");
|
|
12
|
+
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return invoices_1.Invoices; } });
|
|
13
|
+
var plans_1 = require("./plans.js");
|
|
14
|
+
Object.defineProperty(exports, "Plans", { enumerable: true, get: function () { return plans_1.Plans; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2G;AAAxC,+GAAA,aAAa,OAAA;AAChF,4CAmBqB;AADnB,sGAAA,SAAS,OAAA;AAEX,sCAQkB;AADhB,gGAAA,MAAM,OAAA;AAER,0CASoB;AADlB,oGAAA,QAAQ,OAAA;AAEV,oCAUiB;AADf,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { BillingConfig } from "./billing-config.mjs";
|
|
3
|
+
export { Customers, } from "./customers.mjs";
|
|
4
|
+
export { Alerts, } from "./alerts.mjs";
|
|
5
|
+
export { Invoices, } from "./invoices.mjs";
|
|
6
|
+
export { Plans, } from "./plans.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAA4D,aAAa,EAAE;OAC3E,EAkBL,SAAS,GACV;OACM,EAOL,MAAM,GACP;OACM,EAQL,QAAQ,GACT;OACM,EASL,KAAK,GACN"}
|