@metronome/sdk 0.1.0-beta.9 → 0.2.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.
Files changed (286) hide show
  1. package/CHANGELOG.md +194 -0
  2. package/README.md +30 -46
  3. package/_shims/index.d.ts +2 -0
  4. package/_shims/index.js +5 -1
  5. package/_shims/index.mjs +5 -1
  6. package/core.d.ts +19 -5
  7. package/core.d.ts.map +1 -1
  8. package/core.js +23 -14
  9. package/core.js.map +1 -1
  10. package/core.mjs +24 -15
  11. package/core.mjs.map +1 -1
  12. package/index.d.mts +3 -2
  13. package/index.d.ts +3 -2
  14. package/index.d.ts.map +1 -1
  15. package/index.js +6 -3
  16. package/index.js.map +1 -1
  17. package/index.mjs +6 -3
  18. package/index.mjs.map +1 -1
  19. package/package.json +1 -5
  20. package/pagination.d.ts +1 -0
  21. package/pagination.d.ts.map +1 -1
  22. package/pagination.js +3 -0
  23. package/pagination.js.map +1 -1
  24. package/pagination.mjs +3 -0
  25. package/pagination.mjs.map +1 -1
  26. package/resource.d.ts +1 -1
  27. package/resource.d.ts.map +1 -1
  28. package/resource.js.map +1 -1
  29. package/resource.mjs.map +1 -1
  30. package/resources/shared.d.ts +521 -37
  31. package/resources/shared.d.ts.map +1 -1
  32. package/resources/v1/alerts.d.ts +30 -10
  33. package/resources/v1/alerts.d.ts.map +1 -1
  34. package/resources/v1/alerts.js +19 -0
  35. package/resources/v1/alerts.js.map +1 -1
  36. package/resources/v1/alerts.mjs +19 -0
  37. package/resources/v1/alerts.mjs.map +1 -1
  38. package/resources/v1/audit-logs.d.ts +8 -0
  39. package/resources/v1/audit-logs.d.ts.map +1 -1
  40. package/resources/v1/audit-logs.js.map +1 -1
  41. package/resources/v1/audit-logs.mjs.map +1 -1
  42. package/resources/v1/billable-metrics.d.ts +58 -3
  43. package/resources/v1/billable-metrics.d.ts.map +1 -1
  44. package/resources/v1/billable-metrics.js +41 -0
  45. package/resources/v1/billable-metrics.js.map +1 -1
  46. package/resources/v1/billable-metrics.mjs +41 -0
  47. package/resources/v1/billable-metrics.mjs.map +1 -1
  48. package/resources/v1/contracts/contracts.d.ts +1556 -122
  49. package/resources/v1/contracts/contracts.d.ts.map +1 -1
  50. package/resources/v1/contracts/contracts.js +180 -3
  51. package/resources/v1/contracts/contracts.js.map +1 -1
  52. package/resources/v1/contracts/contracts.mjs +180 -3
  53. package/resources/v1/contracts/contracts.mjs.map +1 -1
  54. package/resources/v1/contracts/index.d.ts +2 -2
  55. package/resources/v1/contracts/index.d.ts.map +1 -1
  56. package/resources/v1/contracts/index.js.map +1 -1
  57. package/resources/v1/contracts/index.mjs.map +1 -1
  58. package/resources/v1/contracts/named-schedules.d.ts +21 -0
  59. package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
  60. package/resources/v1/contracts/named-schedules.js +21 -0
  61. package/resources/v1/contracts/named-schedules.js.map +1 -1
  62. package/resources/v1/contracts/named-schedules.mjs +21 -0
  63. package/resources/v1/contracts/named-schedules.mjs.map +1 -1
  64. package/resources/v1/contracts/products.d.ts +51 -3
  65. package/resources/v1/contracts/products.d.ts.map +1 -1
  66. package/resources/v1/contracts/products.js +33 -0
  67. package/resources/v1/contracts/products.js.map +1 -1
  68. package/resources/v1/contracts/products.mjs +33 -0
  69. package/resources/v1/contracts/products.mjs.map +1 -1
  70. package/resources/v1/contracts/rate-cards/index.d.ts +1 -1
  71. package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -1
  72. package/resources/v1/contracts/rate-cards/index.js.map +1 -1
  73. package/resources/v1/contracts/rate-cards/index.mjs.map +1 -1
  74. package/resources/v1/contracts/rate-cards/named-schedules.d.ts +25 -0
  75. package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
  76. package/resources/v1/contracts/rate-cards/named-schedules.js +25 -0
  77. package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
  78. package/resources/v1/contracts/rate-cards/named-schedules.mjs +25 -0
  79. package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
  80. package/resources/v1/contracts/rate-cards/product-orders.d.ts +30 -0
  81. package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
  82. package/resources/v1/contracts/rate-cards/product-orders.js +30 -0
  83. package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
  84. package/resources/v1/contracts/rate-cards/product-orders.mjs +30 -0
  85. package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
  86. package/resources/v1/contracts/rate-cards/rate-cards.d.ts +107 -10
  87. package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
  88. package/resources/v1/contracts/rate-cards/rate-cards.js +71 -0
  89. package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
  90. package/resources/v1/contracts/rate-cards/rate-cards.mjs +71 -0
  91. package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
  92. package/resources/v1/contracts/rate-cards/rates.d.ts +102 -14
  93. package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
  94. package/resources/v1/contracts/rate-cards/rates.js +68 -0
  95. package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
  96. package/resources/v1/contracts/rate-cards/rates.mjs +68 -0
  97. package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
  98. package/resources/v1/credit-grants.d.ts +77 -2
  99. package/resources/v1/credit-grants.d.ts.map +1 -1
  100. package/resources/v1/credit-grants.js +39 -2
  101. package/resources/v1/credit-grants.js.map +1 -1
  102. package/resources/v1/credit-grants.mjs +39 -2
  103. package/resources/v1/credit-grants.mjs.map +1 -1
  104. package/resources/v1/custom-fields.d.ts +51 -7
  105. package/resources/v1/custom-fields.d.ts.map +1 -1
  106. package/resources/v1/custom-fields.js +35 -0
  107. package/resources/v1/custom-fields.js.map +1 -1
  108. package/resources/v1/custom-fields.mjs +35 -0
  109. package/resources/v1/custom-fields.mjs.map +1 -1
  110. package/resources/v1/customers/alerts.d.ts +37 -0
  111. package/resources/v1/customers/alerts.d.ts.map +1 -1
  112. package/resources/v1/customers/alerts.js +23 -0
  113. package/resources/v1/customers/alerts.js.map +1 -1
  114. package/resources/v1/customers/alerts.mjs +23 -0
  115. package/resources/v1/customers/alerts.mjs.map +1 -1
  116. package/resources/v1/customers/billing-config.d.ts +31 -0
  117. package/resources/v1/customers/billing-config.d.ts.map +1 -1
  118. package/resources/v1/customers/billing-config.js +27 -0
  119. package/resources/v1/customers/billing-config.js.map +1 -1
  120. package/resources/v1/customers/billing-config.mjs +27 -0
  121. package/resources/v1/customers/billing-config.mjs.map +1 -1
  122. package/resources/v1/customers/commits.d.ts +94 -7
  123. package/resources/v1/customers/commits.d.ts.map +1 -1
  124. package/resources/v1/customers/commits.js +56 -1
  125. package/resources/v1/customers/commits.js.map +1 -1
  126. package/resources/v1/customers/commits.mjs +56 -1
  127. package/resources/v1/customers/commits.mjs.map +1 -1
  128. package/resources/v1/customers/credits.d.ts +73 -3
  129. package/resources/v1/customers/credits.d.ts.map +1 -1
  130. package/resources/v1/customers/credits.js +41 -1
  131. package/resources/v1/customers/credits.js.map +1 -1
  132. package/resources/v1/customers/credits.mjs +41 -1
  133. package/resources/v1/customers/credits.mjs.map +1 -1
  134. package/resources/v1/customers/customers.d.ts +186 -9
  135. package/resources/v1/customers/customers.d.ts.map +1 -1
  136. package/resources/v1/customers/customers.js +106 -1
  137. package/resources/v1/customers/customers.js.map +1 -1
  138. package/resources/v1/customers/customers.mjs +106 -1
  139. package/resources/v1/customers/customers.mjs.map +1 -1
  140. package/resources/v1/customers/index.d.ts +1 -1
  141. package/resources/v1/customers/index.d.ts.map +1 -1
  142. package/resources/v1/customers/index.js.map +1 -1
  143. package/resources/v1/customers/index.mjs.map +1 -1
  144. package/resources/v1/customers/invoices.d.ts +144 -52
  145. package/resources/v1/customers/invoices.d.ts.map +1 -1
  146. package/resources/v1/customers/invoices.js +49 -0
  147. package/resources/v1/customers/invoices.js.map +1 -1
  148. package/resources/v1/customers/invoices.mjs +49 -0
  149. package/resources/v1/customers/invoices.mjs.map +1 -1
  150. package/resources/v1/customers/named-schedules.d.ts +21 -0
  151. package/resources/v1/customers/named-schedules.d.ts.map +1 -1
  152. package/resources/v1/customers/named-schedules.js +21 -0
  153. package/resources/v1/customers/named-schedules.js.map +1 -1
  154. package/resources/v1/customers/named-schedules.mjs +21 -0
  155. package/resources/v1/customers/named-schedules.mjs.map +1 -1
  156. package/resources/v1/customers/plans.d.ts +46 -1
  157. package/resources/v1/customers/plans.d.ts.map +1 -1
  158. package/resources/v1/customers/plans.js +43 -0
  159. package/resources/v1/customers/plans.js.map +1 -1
  160. package/resources/v1/customers/plans.mjs +43 -0
  161. package/resources/v1/customers/plans.mjs.map +1 -1
  162. package/resources/v1/dashboards.d.ts +31 -3
  163. package/resources/v1/dashboards.d.ts.map +1 -1
  164. package/resources/v1/dashboards.js +26 -0
  165. package/resources/v1/dashboards.js.map +1 -1
  166. package/resources/v1/dashboards.mjs +26 -0
  167. package/resources/v1/dashboards.mjs.map +1 -1
  168. package/resources/v1/index.d.ts +3 -3
  169. package/resources/v1/index.d.ts.map +1 -1
  170. package/resources/v1/index.js.map +1 -1
  171. package/resources/v1/index.mjs.map +1 -1
  172. package/resources/v1/invoices.d.ts +14 -0
  173. package/resources/v1/invoices.d.ts.map +1 -1
  174. package/resources/v1/invoices.js +14 -0
  175. package/resources/v1/invoices.js.map +1 -1
  176. package/resources/v1/invoices.mjs +14 -0
  177. package/resources/v1/invoices.mjs.map +1 -1
  178. package/resources/v1/plans.d.ts +47 -4
  179. package/resources/v1/plans.d.ts.map +1 -1
  180. package/resources/v1/plans.js +27 -0
  181. package/resources/v1/plans.js.map +1 -1
  182. package/resources/v1/plans.mjs +27 -0
  183. package/resources/v1/plans.mjs.map +1 -1
  184. package/resources/v1/pricing-units.d.ts +8 -0
  185. package/resources/v1/pricing-units.d.ts.map +1 -1
  186. package/resources/v1/pricing-units.js.map +1 -1
  187. package/resources/v1/pricing-units.mjs.map +1 -1
  188. package/resources/v1/services.d.ts +5 -0
  189. package/resources/v1/services.d.ts.map +1 -1
  190. package/resources/v1/services.js +5 -0
  191. package/resources/v1/services.js.map +1 -1
  192. package/resources/v1/services.mjs +5 -0
  193. package/resources/v1/services.mjs.map +1 -1
  194. package/resources/v1/usage.d.ts +161 -3
  195. package/resources/v1/usage.d.ts.map +1 -1
  196. package/resources/v1/usage.js +46 -0
  197. package/resources/v1/usage.js.map +1 -1
  198. package/resources/v1/usage.mjs +46 -0
  199. package/resources/v1/usage.mjs.map +1 -1
  200. package/resources/v1/v1.d.ts +6 -6
  201. package/resources/v1/v1.d.ts.map +1 -1
  202. package/resources/v1/v1.js.map +1 -1
  203. package/resources/v1/v1.mjs.map +1 -1
  204. package/resources/v2/contracts.d.ts +3241 -205
  205. package/resources/v2/contracts.d.ts.map +1 -1
  206. package/resources/v2/contracts.js +90 -2
  207. package/resources/v2/contracts.js.map +1 -1
  208. package/resources/v2/contracts.mjs +90 -2
  209. package/resources/v2/contracts.mjs.map +1 -1
  210. package/resources/webhooks.js +5 -5
  211. package/resources/webhooks.js.map +1 -1
  212. package/resources/webhooks.mjs +5 -5
  213. package/resources/webhooks.mjs.map +1 -1
  214. package/src/_shims/auto/runtime-bun.ts +1 -1
  215. package/src/_shims/auto/runtime-node.ts +1 -1
  216. package/src/_shims/auto/runtime.ts +1 -1
  217. package/src/_shims/auto/types-node.ts +1 -1
  218. package/src/_shims/bun-runtime.ts +2 -2
  219. package/src/_shims/index.d.ts +5 -3
  220. package/src/_shims/index.js +5 -1
  221. package/src/_shims/index.mjs +6 -2
  222. package/src/_shims/node-runtime.ts +3 -3
  223. package/src/_shims/registry.ts +1 -1
  224. package/src/_shims/web-runtime.ts +3 -3
  225. package/src/core.ts +46 -18
  226. package/src/error.ts +1 -1
  227. package/src/index.ts +22 -16
  228. package/src/internal/qs/formats.ts +1 -1
  229. package/src/internal/qs/index.ts +3 -3
  230. package/src/internal/qs/stringify.ts +3 -3
  231. package/src/internal/qs/utils.ts +2 -2
  232. package/src/pagination.ts +5 -1
  233. package/src/resource.ts +2 -2
  234. package/src/resources/index.ts +4 -4
  235. package/src/resources/shared.ts +605 -40
  236. package/src/resources/v1/alerts.ts +33 -13
  237. package/src/resources/v1/audit-logs.ts +12 -4
  238. package/src/resources/v1/billable-metrics.ts +57 -8
  239. package/src/resources/v1/contracts/contracts.ts +1723 -135
  240. package/src/resources/v1/contracts/index.ts +8 -4
  241. package/src/resources/v1/contracts/named-schedules.ts +23 -2
  242. package/src/resources/v1/contracts/products.ts +53 -9
  243. package/src/resources/v1/contracts/rate-cards/index.ts +6 -4
  244. package/src/resources/v1/contracts/rate-cards/named-schedules.ts +27 -2
  245. package/src/resources/v1/contracts/rate-cards/product-orders.ts +33 -3
  246. package/src/resources/v1/contracts/rate-cards/rate-cards.ts +113 -20
  247. package/src/resources/v1/contracts/rate-cards/rates.ts +86 -18
  248. package/src/resources/v1/contracts/rate-cards.ts +1 -1
  249. package/src/resources/v1/contracts.ts +1 -1
  250. package/src/resources/v1/credit-grants.ts +82 -10
  251. package/src/resources/v1/custom-fields.ts +57 -9
  252. package/src/resources/v1/customers/alerts.ts +44 -3
  253. package/src/resources/v1/customers/billing-config.ts +34 -2
  254. package/src/resources/v1/customers/commits.ts +97 -10
  255. package/src/resources/v1/customers/credits.ts +76 -6
  256. package/src/resources/v1/customers/customers.ts +208 -27
  257. package/src/resources/v1/customers/index.ts +10 -8
  258. package/src/resources/v1/customers/invoices.ts +123 -57
  259. package/src/resources/v1/customers/named-schedules.ts +23 -2
  260. package/src/resources/v1/customers/plans.ts +48 -5
  261. package/src/resources/v1/customers.ts +1 -1
  262. package/src/resources/v1/dashboards.ts +33 -5
  263. package/src/resources/v1/index.ts +20 -14
  264. package/src/resources/v1/invoices.ts +16 -2
  265. package/src/resources/v1/plans.ts +45 -10
  266. package/src/resources/v1/pricing-units.ts +12 -4
  267. package/src/resources/v1/services.ts +7 -2
  268. package/src/resources/v1/usage.ts +187 -6
  269. package/src/resources/v1/v1.ts +39 -27
  270. package/src/resources/v1.ts +1 -1
  271. package/src/resources/v2/contracts.ts +3838 -261
  272. package/src/resources/v2/index.ts +2 -2
  273. package/src/resources/v2/v2.ts +3 -3
  274. package/src/resources/v2.ts +1 -1
  275. package/src/resources/webhooks.ts +7 -7
  276. package/src/resources.ts +1 -1
  277. package/src/shims/node.ts +3 -3
  278. package/src/shims/web.ts +3 -3
  279. package/src/uploads.ts +4 -4
  280. package/src/version.ts +1 -1
  281. package/version.d.ts +1 -1
  282. package/version.d.ts.map +1 -1
  283. package/version.js +1 -1
  284. package/version.js.map +1 -1
  285. package/version.mjs +1 -1
  286. package/version.mjs.map +1 -1
@@ -55,12 +55,37 @@ class Customers extends resource_1.APIResource {
55
55
  }
56
56
  /**
57
57
  * Create a new customer
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const customer = await client.v1.customers.create({
62
+ * name: 'Example, Inc.',
63
+ * customer_billing_provider_configurations: [
64
+ * {
65
+ * billing_provider: 'stripe',
66
+ * delivery_method: 'direct_to_billing_provider',
67
+ * configuration: {
68
+ * stripe_customer_id: 'cus_123',
69
+ * stripe_collection_method: 'charge_automatically',
70
+ * },
71
+ * },
72
+ * ],
73
+ * ingest_aliases: ['team@example.com'],
74
+ * });
75
+ * ```
58
76
  */
59
77
  create(body, options) {
60
78
  return this._client.post('/v1/customers', { body, ...options });
61
79
  }
62
80
  /**
63
81
  * Get a customer by Metronome ID.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const customer = await client.v1.customers.retrieve({
86
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
87
+ * });
88
+ * ```
64
89
  */
65
90
  retrieve(params, options) {
66
91
  const { customer_id } = params;
@@ -73,13 +98,31 @@ class Customers extends resource_1.APIResource {
73
98
  return this._client.getAPIList('/v1/customers', CustomerDetailsCursorPage, { query, ...options });
74
99
  }
75
100
  /**
76
- * Archive a customer
101
+ * Archive a customer Note: any alerts associated with the customer will not be
102
+ * triggered.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const response = await client.v1.customers.archive({
107
+ * id: '8deed800-1b7a-495d-a207-6c52bac54dc9',
108
+ * });
109
+ * ```
77
110
  */
78
111
  archive(body, options) {
79
112
  return this._client.post('/v1/customers/archive', { body, ...options });
80
113
  }
81
114
  /**
82
115
  * Get all billable metrics for a given customer.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * // Automatically fetches more pages as needed.
120
+ * for await (const customerListBillableMetricsResponse of client.v1.customers.listBillableMetrics(
121
+ * { customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc' },
122
+ * )) {
123
+ * // ...
124
+ * }
125
+ * ```
83
126
  */
84
127
  listBillableMetrics(params, options) {
85
128
  const { customer_id, ...query } = params;
@@ -89,15 +132,61 @@ class Customers extends resource_1.APIResource {
89
132
  * Fetch daily pending costs for the specified customer, broken down by credit type
90
133
  * and line items. Note: this is not supported for customers whose plan includes a
91
134
  * UNIQUE-type billable metric.
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * // Automatically fetches more pages as needed.
139
+ * for await (const customerListCostsResponse of client.v1.customers.listCosts(
140
+ * {
141
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
142
+ * ending_before: '2019-12-27T18:11:19.117Z',
143
+ * starting_on: '2019-12-27T18:11:19.117Z',
144
+ * },
145
+ * )) {
146
+ * // ...
147
+ * }
148
+ * ```
92
149
  */
93
150
  listCosts(params, options) {
94
151
  const { customer_id, ...query } = params;
95
152
  return this._client.getAPIList(`/v1/customers/${customer_id}/costs`, CustomerListCostsResponsesCursorPage, { query, ...options });
96
153
  }
154
+ /**
155
+ * Preview how a set of events will affect a customer's invoice. Generates a draft
156
+ * invoice for a customer using their current contract configuration and the
157
+ * provided events. This is useful for testing how new events will affect the
158
+ * customer's invoice before they are actually processed.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const response = await client.v1.customers.previewEvents({
163
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
164
+ * events: [
165
+ * {
166
+ * event_type: 'heartbeat',
167
+ * timestamp: '2021-01-01T00:00:00Z',
168
+ * properties: { cpu_hours: 100, memory_gb_hours: 200 },
169
+ * },
170
+ * ],
171
+ * });
172
+ * ```
173
+ */
174
+ previewEvents(params, options) {
175
+ const { customer_id, ...body } = params;
176
+ return this._client.post(`/v1/customers/${customer_id}/previewEvents`, { body, ...options });
177
+ }
97
178
  /**
98
179
  * Sets the ingest aliases for a customer. Ingest aliases can be used in the
99
180
  * `customer_id` field when sending usage events to Metronome. This call is
100
181
  * idempotent. It fully replaces the set of ingest aliases for the given customer.
182
+ *
183
+ * @example
184
+ * ```ts
185
+ * await client.v1.customers.setIngestAliases({
186
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
187
+ * ingest_aliases: ['team@example.com'],
188
+ * });
189
+ * ```
101
190
  */
102
191
  setIngestAliases(params, options) {
103
192
  const { customer_id, ...body } = params;
@@ -109,6 +198,14 @@ class Customers extends resource_1.APIResource {
109
198
  }
110
199
  /**
111
200
  * Updates the specified customer's name.
201
+ *
202
+ * @example
203
+ * ```ts
204
+ * const response = await client.v1.customers.setName({
205
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
206
+ * name: 'Example, Inc.',
207
+ * });
208
+ * ```
112
209
  */
113
210
  setName(params, options) {
114
211
  const { customer_id, ...body } = params;
@@ -116,6 +213,14 @@ class Customers extends resource_1.APIResource {
116
213
  }
117
214
  /**
118
215
  * Updates the specified customer's config.
216
+ *
217
+ * @example
218
+ * ```ts
219
+ * await client.v1.customers.updateConfig({
220
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
221
+ * salesforce_account_id: '0015500001WO1ZiABL',
222
+ * });
223
+ * ```
119
224
  */
120
225
  updateConfig(params, options) {
121
226
  const { customer_id, ...body } = params;
@@ -1 +1 @@
1
- {"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts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 @@ export class Customers extends APIResource {
29
29
  }
30
30
  /**
31
31
  * Create a new customer
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const customer = await client.v1.customers.create({
36
+ * name: 'Example, Inc.',
37
+ * customer_billing_provider_configurations: [
38
+ * {
39
+ * billing_provider: 'stripe',
40
+ * delivery_method: 'direct_to_billing_provider',
41
+ * configuration: {
42
+ * stripe_customer_id: 'cus_123',
43
+ * stripe_collection_method: 'charge_automatically',
44
+ * },
45
+ * },
46
+ * ],
47
+ * ingest_aliases: ['team@example.com'],
48
+ * });
49
+ * ```
32
50
  */
33
51
  create(body, options) {
34
52
  return this._client.post('/v1/customers', { body, ...options });
35
53
  }
36
54
  /**
37
55
  * Get a customer by Metronome ID.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const customer = await client.v1.customers.retrieve({
60
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
61
+ * });
62
+ * ```
38
63
  */
39
64
  retrieve(params, options) {
40
65
  const { customer_id } = params;
@@ -47,13 +72,31 @@ export class Customers extends APIResource {
47
72
  return this._client.getAPIList('/v1/customers', CustomerDetailsCursorPage, { query, ...options });
48
73
  }
49
74
  /**
50
- * Archive a customer
75
+ * Archive a customer Note: any alerts associated with the customer will not be
76
+ * triggered.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const response = await client.v1.customers.archive({
81
+ * id: '8deed800-1b7a-495d-a207-6c52bac54dc9',
82
+ * });
83
+ * ```
51
84
  */
52
85
  archive(body, options) {
53
86
  return this._client.post('/v1/customers/archive', { body, ...options });
54
87
  }
55
88
  /**
56
89
  * Get all billable metrics for a given customer.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * // Automatically fetches more pages as needed.
94
+ * for await (const customerListBillableMetricsResponse of client.v1.customers.listBillableMetrics(
95
+ * { customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc' },
96
+ * )) {
97
+ * // ...
98
+ * }
99
+ * ```
57
100
  */
58
101
  listBillableMetrics(params, options) {
59
102
  const { customer_id, ...query } = params;
@@ -63,15 +106,61 @@ export class Customers extends APIResource {
63
106
  * Fetch daily pending costs for the specified customer, broken down by credit type
64
107
  * and line items. Note: this is not supported for customers whose plan includes a
65
108
  * UNIQUE-type billable metric.
109
+ *
110
+ * @example
111
+ * ```ts
112
+ * // Automatically fetches more pages as needed.
113
+ * for await (const customerListCostsResponse of client.v1.customers.listCosts(
114
+ * {
115
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
116
+ * ending_before: '2019-12-27T18:11:19.117Z',
117
+ * starting_on: '2019-12-27T18:11:19.117Z',
118
+ * },
119
+ * )) {
120
+ * // ...
121
+ * }
122
+ * ```
66
123
  */
67
124
  listCosts(params, options) {
68
125
  const { customer_id, ...query } = params;
69
126
  return this._client.getAPIList(`/v1/customers/${customer_id}/costs`, CustomerListCostsResponsesCursorPage, { query, ...options });
70
127
  }
128
+ /**
129
+ * Preview how a set of events will affect a customer's invoice. Generates a draft
130
+ * invoice for a customer using their current contract configuration and the
131
+ * provided events. This is useful for testing how new events will affect the
132
+ * customer's invoice before they are actually processed.
133
+ *
134
+ * @example
135
+ * ```ts
136
+ * const response = await client.v1.customers.previewEvents({
137
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
138
+ * events: [
139
+ * {
140
+ * event_type: 'heartbeat',
141
+ * timestamp: '2021-01-01T00:00:00Z',
142
+ * properties: { cpu_hours: 100, memory_gb_hours: 200 },
143
+ * },
144
+ * ],
145
+ * });
146
+ * ```
147
+ */
148
+ previewEvents(params, options) {
149
+ const { customer_id, ...body } = params;
150
+ return this._client.post(`/v1/customers/${customer_id}/previewEvents`, { body, ...options });
151
+ }
71
152
  /**
72
153
  * Sets the ingest aliases for a customer. Ingest aliases can be used in the
73
154
  * `customer_id` field when sending usage events to Metronome. This call is
74
155
  * idempotent. It fully replaces the set of ingest aliases for the given customer.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * await client.v1.customers.setIngestAliases({
160
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
161
+ * ingest_aliases: ['team@example.com'],
162
+ * });
163
+ * ```
75
164
  */
76
165
  setIngestAliases(params, options) {
77
166
  const { customer_id, ...body } = params;
@@ -83,6 +172,14 @@ export class Customers extends APIResource {
83
172
  }
84
173
  /**
85
174
  * Updates the specified customer's name.
175
+ *
176
+ * @example
177
+ * ```ts
178
+ * const response = await client.v1.customers.setName({
179
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
180
+ * name: 'Example, Inc.',
181
+ * });
182
+ * ```
86
183
  */
87
184
  setName(params, options) {
88
185
  const { customer_id, ...body } = params;
@@ -90,6 +187,14 @@ export class Customers extends APIResource {
90
187
  }
91
188
  /**
92
189
  * Updates the specified customer's config.
190
+ *
191
+ * @example
192
+ * ```ts
193
+ * await client.v1.customers.updateConfig({
194
+ * customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
195
+ * salesforce_account_id: '0015500001WO1ZiABL',
196
+ * });
197
+ * ```
93
198
  */
94
199
  updateConfig(params, options) {
95
200
  const { customer_id, ...body } = params;
@@ -1 +1 @@
1
- {"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,SAAS;OACd,EAML,MAAM,GAEP;OACM,KAAK,gBAAgB;OACrB,EACL,aAAa,IAAI,6BAA6B,GAK/C;OACM,KAAK,UAAU;OACf,EAOL,OAAO,GACR;OACM,KAAK,UAAU;OACf,EAOL,OAAO,GACR;OACM,KAAK,WAAW;OAChB,EAML,wCAAwC,EAIxC,QAAQ,EACR,kBAAkB,GACnB;OACM,KAAK,iBAAiB;OACtB,EAIL,cAAc,GACf;OACM,KAAK,QAAQ;OACb,EAQL,2CAA2C,EAE3C,2BAA2B,EAC3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OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,WAAW,eAAe,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,UAA0B;CAAG;AAE5E,MAAM,OAAO,8CAA+C,SAAQ,UAA+C;CAAG;AAEtH,MAAM,OAAO,oCAAqC,SAAQ,UAAqC;CAAG;AAqdlG,SAAS,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;AAChE,SAAS,CAAC,8CAA8C,GAAG,8CAA8C,CAAC;AAC1G,SAAS,CAAC,oCAAoC,GAAG,oCAAoC,CAAC;AACtF,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,SAAS,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AACpE,SAAS,CAAC,2CAA2C,GAAG,2CAA2C,CAAC;AACpG,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAClD,SAAS,CAAC,wCAAwC,GAAG,wCAAwC,CAAC;AAC9F,SAAS,CAAC,aAAa,GAAG,6BAA6B,CAAC;AACxD,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;AAC5B,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;AAC5B,SAAS,CAAC,cAAc,GAAG,cAAc,CAAC"}
@@ -2,7 +2,7 @@ export { Alerts, type CustomerAlert, type AlertRetrieveResponse, type AlertListR
2
2
  export { BillingConfig, type BillingConfigRetrieveResponse, type BillingConfigCreateParams, type BillingConfigRetrieveParams, type BillingConfigDeleteParams, } from "./billing-config.js";
3
3
  export { Commits, type CommitCreateResponse, type CommitListResponse, type CommitUpdateEndDateResponse, type CommitCreateParams, type CommitListParams, type CommitUpdateEndDateParams, } from "./commits.js";
4
4
  export { Credits, type CreditCreateResponse, type CreditListResponse, type CreditUpdateEndDateResponse, type CreditCreateParams, type CreditListParams, type CreditUpdateEndDateParams, } from "./credits.js";
5
- export { CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage, Customers, type Customer, type CustomerDetail, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerArchiveResponse, type CustomerListBillableMetricsResponse, type CustomerListCostsResponse, type CustomerSetNameResponse, type CustomerCreateParams, type CustomerRetrieveParams, type CustomerListParams, type CustomerArchiveParams, type CustomerListBillableMetricsParams, type CustomerListCostsParams, type CustomerSetIngestAliasesParams, type CustomerSetNameParams, type CustomerUpdateConfigParams, } from "./customers.js";
5
+ export { CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage, Customers, type Customer, type CustomerDetail, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerArchiveResponse, type CustomerListBillableMetricsResponse, type CustomerListCostsResponse, type CustomerPreviewEventsResponse, type CustomerSetNameResponse, type CustomerCreateParams, type CustomerRetrieveParams, type CustomerListParams, type CustomerArchiveParams, type CustomerListBillableMetricsParams, type CustomerListCostsParams, type CustomerPreviewEventsParams, type CustomerSetIngestAliasesParams, type CustomerSetNameParams, type CustomerUpdateConfigParams, } from "./customers.js";
6
6
  export { InvoicesCursorPage, InvoiceListBreakdownsResponsesCursorPage, Invoices, type Invoice, type InvoiceRetrieveResponse, type InvoiceAddChargeResponse, type InvoiceListBreakdownsResponse, type InvoiceRetrieveParams, type InvoiceListParams, type InvoiceAddChargeParams, type InvoiceListBreakdownsParams, } from "./invoices.js";
7
7
  export { NamedSchedules, type NamedScheduleRetrieveResponse, type NamedScheduleRetrieveParams, type NamedScheduleUpdateParams, } from "./named-schedules.js";
8
8
  export { PlanListResponsesCursorPage, PlanListPriceAdjustmentsResponsesCursorPage, Plans, type PlanListResponse, type PlanAddResponse, type PlanEndResponse, type PlanListPriceAdjustmentsResponse, type PlanListParams, type PlanAddParams, type PlanEndParams, type PlanListPriceAdjustmentsParams, } from "./plans.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,aAAa,EACb,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EACzB,8CAA8C,EAC9C,oCAAoC,EACpC,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,wCAAwC,EACxC,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,GACjC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,EACrC,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,8BAA8B,GACpC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,aAAa,EACb,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kB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["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,sDAM0B;AALxB,+GAAA,aAAa,OAAA;AAMf,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,4CAsBqB;AArBnB,sHAAA,yBAAyB,OAAA;AACzB,2IAAA,8CAA8C,OAAA;AAC9C,iIAAA,oCAAoC,OAAA;AACpC,sGAAA,SAAS,OAAA;AAmBX,0CAYoB;AAXlB,8GAAA,kBAAkB,OAAA;AAClB,oIAAA,wCAAwC,OAAA;AACxC,oGAAA,QAAQ,OAAA;AAUV,wDAK2B;AAJzB,iHAAA,cAAc,OAAA;AAKhB,oCAYiB;AAXf,oHAAA,2BAA2B,OAAA;AAC3B,oIAAA,2CAA2C,OAAA;AAC3C,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,sDAM0B;AALxB,+GAAA,aAAa,OAAA;AAMf,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,4CAwBqB;AAvBnB,sHAAA,yBAAyB,OAAA;AACzB,2IAAA,8CAA8C,OAAA;AAC9C,iIAAA,oCAAoC,OAAA;AACpC,sGAAA,SAAS,OAAA;AAqBX,0CAYoB;AAXlB,8GAAA,kBAAkB,OAAA;AAClB,oIAAA,wCAAwC,OAAA;AACxC,oGAAA,QAAQ,OAAA;AAUV,wDAK2B;AAJzB,iHAAA,cAAc,OAAA;AAKhB,oCAYiB;AAXf,oHAAA,2BAA2B,OAAA;AAC3B,oIAAA,2CAA2C,OAAA;AAC3C,8FAAA,KAAK,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,aAAa,GAKd;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAOR;OACM,EACL,yBAAyB,EACzB,8CAA8C,EAC9C,oCAAoC,EACpC,SAAS,GAkBV;OACM,EACL,kBAAkB,EAClB,wCAAwC,EACxC,QAAQ,GAST;OACM,EACL,cAAc,GAIf;OACM,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,KAAK,GASN"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,aAAa,GAKd;OACM,EACL,OAAO,GAOR;OACM,EACL,OAAO,GAOR;OACM,EACL,yBAAyB,EACzB,8CAA8C,EAC9C,oCAAoC,EACpC,SAAS,GAoBV;OACM,EACL,kBAAkB,EAClB,wCAAwC,EACxC,QAAQ,GAST;OACM,EACL,cAAc,GAIf;OACM,EACL,2BAA2B,EAC3B,2CAA2C,EAC3C,KAAK,GASN"}