@metronome/sdk 3.9.0 → 3.10.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 (51) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/resources/shared.d.mts +20 -8
  4. package/resources/shared.d.mts.map +1 -1
  5. package/resources/shared.d.ts +20 -8
  6. package/resources/shared.d.ts.map +1 -1
  7. package/resources/v1/contracts/contracts.d.mts +10 -6
  8. package/resources/v1/contracts/contracts.d.mts.map +1 -1
  9. package/resources/v1/contracts/contracts.d.ts +10 -6
  10. package/resources/v1/contracts/contracts.d.ts.map +1 -1
  11. package/resources/v1/contracts/contracts.js.map +1 -1
  12. package/resources/v1/contracts/contracts.mjs.map +1 -1
  13. package/resources/v1/contracts/rate-cards/rate-cards.d.mts +17 -13
  14. package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -1
  15. package/resources/v1/contracts/rate-cards/rate-cards.d.ts +17 -13
  16. package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
  17. package/resources/v1/contracts/rate-cards/rate-cards.js +8 -13
  18. package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
  19. package/resources/v1/contracts/rate-cards/rate-cards.mjs +8 -13
  20. package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
  21. package/resources/v1/dashboards.d.mts +13 -22
  22. package/resources/v1/dashboards.d.mts.map +1 -1
  23. package/resources/v1/dashboards.d.ts +13 -22
  24. package/resources/v1/dashboards.d.ts.map +1 -1
  25. package/resources/v1/dashboards.js +7 -20
  26. package/resources/v1/dashboards.js.map +1 -1
  27. package/resources/v1/dashboards.mjs +7 -20
  28. package/resources/v1/dashboards.mjs.map +1 -1
  29. package/resources/v1/packages.d.mts +12 -6
  30. package/resources/v1/packages.d.mts.map +1 -1
  31. package/resources/v1/packages.d.ts +12 -6
  32. package/resources/v1/packages.d.ts.map +1 -1
  33. package/resources/v2/contracts.d.mts +26 -8
  34. package/resources/v2/contracts.d.mts.map +1 -1
  35. package/resources/v2/contracts.d.ts +26 -8
  36. package/resources/v2/contracts.d.ts.map +1 -1
  37. package/src/resources/shared.ts +22 -8
  38. package/src/resources/v1/contracts/contracts.ts +10 -6
  39. package/src/resources/v1/contracts/rate-cards/rate-cards.ts +20 -13
  40. package/src/resources/v1/dashboards.ts +21 -22
  41. package/src/resources/v1/packages.ts +12 -6
  42. package/src/resources/v2/contracts.ts +28 -8
  43. package/src/version.ts +1 -1
  44. package/version.d.mts +1 -1
  45. package/version.d.mts.map +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.d.ts.map +1 -1
  48. package/version.js +1 -1
  49. package/version.js.map +1 -1
  50. package/version.mjs +1 -1
  51. package/version.mjs.map +1 -1
@@ -31,16 +31,13 @@ export class Dashboards extends APIResource {
31
31
  *
32
32
  * - Dashboard types: Choose from `invoices`, `usage`, or `commits_and_credits`
33
33
  * - Customization options:
34
- * - `dashboard_options`: Configure dashboard behavior. For the invoices
35
- * dashboard, supported keys include: `show_zero_usage_line_items`
36
- * ("true"/"false"), `hide_voided_invoices` ("true"/"false"), `contract_id`
37
- * (UUID, filters invoices by contract), `invoice_type` ("USAGE" or
38
- * "SCHEDULED", filters by invoice type), `invoice_status_filter` ("VOID",
39
- * "FINALIZED", "DRAFT", "FINALIZED_AND_DRAFT", or "ALL"), and
40
- * `billable_status_filter` ("BILLABLE", "UNBILLABLE", or "ALL")
34
+ * - `dashboard_options`: Configure dashboard behavior. Supported for the
35
+ * invoices dashboard only. Available keys include:
36
+ * `show_zero_usage_line_items` ("true"/"false"), `contract_id` (UUID, filters
37
+ * invoices by contract), `invoice_type` ("USAGE" or "SCHEDULED", filters by
38
+ * invoice type), and `invoice_status_filter` ("VOID", "FINALIZED", "DRAFT",
39
+ * "FINALIZED_AND_DRAFT", or "ALL")
41
40
  * - `color_overrides`: Match your brand's color palette
42
- * - `bm_group_key_overrides`: Customize how dimensions are displayed (for the
43
- * usage embeddable dashboard)
44
41
  * - Iframe implementation: Embed the returned URL directly in an iframe element
45
42
  * - Responsive design: Dashboards automatically adapt to container dimensions
46
43
  *
@@ -50,22 +47,12 @@ export class Dashboards extends APIResource {
50
47
  * await client.v1.dashboards.getEmbeddableURL({
51
48
  * customer_id: '4db51251-61de-4bfe-b9ce-495e244f3491',
52
49
  * dashboard: 'invoices',
53
- * bm_group_key_overrides: [
54
- * {
55
- * group_key_name: 'tenant_id',
56
- * display_name: 'Org ID',
57
- * value_display_names: {
58
- * '48ecb18f358f': 'Cluster EU',
59
- * e358f3ce242d: 'Cluster APAC',
60
- * },
61
- * },
62
- * ],
63
50
  * color_overrides: [
64
51
  * { name: 'Gray_dark', value: '#ff0000' },
65
52
  * ],
66
53
  * dashboard_options: [
67
54
  * { key: 'show_zero_usage_line_items', value: 'false' },
68
- * { key: 'hide_voided_invoices', value: 'true' },
55
+ * { key: 'invoice_status_filter', value: 'FINALIZED' },
69
56
  * ],
70
57
  * });
71
58
  * ```
@@ -170,10 +157,22 @@ export namespace DashboardGetEmbeddableURLParams {
170
157
  /**
171
158
  * The option key name
172
159
  */
173
- key: string;
160
+ key:
161
+ | 'show_zero_usage_line_items'
162
+ | 'contract_id'
163
+ | 'invoice_type'
164
+ | 'invoice_status_filter'
165
+ | 'hide_voided_invoices'
166
+ | 'billable_status_filter'
167
+ | 'hide_grant_name'
168
+ | 'credit_ledger_credit_type_id';
174
169
 
175
170
  /**
176
- * The option value
171
+ * The option value. For show_zero_usage_line_items: "true" or "false" (default
172
+ * "false"). For contract_id: a UUID filtering invoices to a specific contract. For
173
+ * invoice_type: "USAGE" or "SCHEDULED". For invoice_status_filter: "VOID",
174
+ * "FINALIZED", "DRAFT", "FINALIZED_AND_DRAFT", or "ALL". For hide_voided_invoices
175
+ * (deprecated): "true" or "false".
177
176
  */
178
177
  value: string;
179
178
  }
@@ -678,7 +678,8 @@ export namespace PackageRetrieveResponse {
678
678
  * The commits will be created on the usage invoice frequency. If provided: - The
679
679
  * period defined in the duration will correspond to this frequency. - Commits will
680
680
  * be created aligned with the recurring commit's starting_at rather than the usage
681
- * invoice dates.
681
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
682
+ * are unable to be created with seat-based subscriptions
682
683
  */
683
684
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
684
685
 
@@ -880,7 +881,8 @@ export namespace PackageRetrieveResponse {
880
881
  * The commits will be created on the usage invoice frequency. If provided: - The
881
882
  * period defined in the duration will correspond to this frequency. - Commits will
882
883
  * be created aligned with the recurring commit's starting_at rather than the usage
883
- * invoice dates.
884
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
885
+ * are unable to be created with seat-based subscriptions
884
886
  */
885
887
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
886
888
 
@@ -1620,7 +1622,8 @@ export namespace PackageListResponse {
1620
1622
  * The commits will be created on the usage invoice frequency. If provided: - The
1621
1623
  * period defined in the duration will correspond to this frequency. - Commits will
1622
1624
  * be created aligned with the recurring commit's starting_at rather than the usage
1623
- * invoice dates.
1625
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
1626
+ * are unable to be created with seat-based subscriptions
1624
1627
  */
1625
1628
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
1626
1629
 
@@ -1822,7 +1825,8 @@ export namespace PackageListResponse {
1822
1825
  * The commits will be created on the usage invoice frequency. If provided: - The
1823
1826
  * period defined in the duration will correspond to this frequency. - Commits will
1824
1827
  * be created aligned with the recurring commit's starting_at rather than the usage
1825
- * invoice dates.
1828
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
1829
+ * are unable to be created with seat-based subscriptions
1826
1830
  */
1827
1831
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
1828
1832
 
@@ -2725,7 +2729,8 @@ export namespace PackageCreateParams {
2725
2729
  * The commits will be created on the usage invoice frequency. If provided: - The
2726
2730
  * period defined in the duration will correspond to this frequency. - Commits will
2727
2731
  * be created aligned with the recurring commit's starting_at rather than the usage
2728
- * invoice dates.
2732
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
2733
+ * are unable to be created with seat-based subscriptions
2729
2734
  */
2730
2735
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
2731
2736
 
@@ -2950,7 +2955,8 @@ export namespace PackageCreateParams {
2950
2955
  * The commits will be created on the usage invoice frequency. If provided: - The
2951
2956
  * period defined in the duration will correspond to this frequency. - Commits will
2952
2957
  * be created aligned with the recurring commit's starting_at rather than the usage
2953
- * invoice dates.
2958
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
2959
+ * are unable to be created with seat-based subscriptions
2954
2960
  */
2955
2961
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
2956
2962
 
@@ -682,7 +682,8 @@ export namespace ContractEditResponse {
682
682
  * The commits will be created on the usage invoice frequency. If provided: - The
683
683
  * period defined in the duration will correspond to this frequency. - Commits will
684
684
  * be created aligned with the recurring commit's starting_at rather than the usage
685
- * invoice dates.
685
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
686
+ * are unable to be created with seat-based subscriptions
686
687
  */
687
688
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
688
689
 
@@ -865,7 +866,8 @@ export namespace ContractEditResponse {
865
866
  * The commits will be created on the usage invoice frequency. If provided: - The
866
867
  * period defined in the duration will correspond to this frequency. - Commits will
867
868
  * be created aligned with the recurring commit's starting_at rather than the usage
868
- * invoice dates.
869
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
870
+ * are unable to be created with seat-based subscriptions
869
871
  */
870
872
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
871
873
 
@@ -2419,7 +2421,8 @@ export namespace ContractGetEditHistoryResponse {
2419
2421
  * The commits will be created on the usage invoice frequency. If provided: - The
2420
2422
  * period defined in the duration will correspond to this frequency. - Commits will
2421
2423
  * be created aligned with the recurring commit's starting_at rather than the usage
2422
- * invoice dates.
2424
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
2425
+ * are unable to be created with seat-based subscriptions
2423
2426
  */
2424
2427
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
2425
2428
 
@@ -2602,7 +2605,8 @@ export namespace ContractGetEditHistoryResponse {
2602
2605
  * The commits will be created on the usage invoice frequency. If provided: - The
2603
2606
  * period defined in the duration will correspond to this frequency. - Commits will
2604
2607
  * be created aligned with the recurring commit's starting_at rather than the usage
2605
- * invoice dates.
2608
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
2609
+ * are unable to be created with seat-based subscriptions
2606
2610
  */
2607
2611
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
2608
2612
 
@@ -3950,7 +3954,7 @@ export namespace ContractEditParams {
3950
3954
  | 'gcp_marketplace'
3951
3955
  | 'metronome';
3952
3956
 
3953
- billing_provider_configuration_id?: string;
3957
+ billing_provider_configuration_id?: string | null;
3954
3958
 
3955
3959
  delivery_method?: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
3956
3960
  }
@@ -4801,7 +4805,8 @@ export namespace ContractEditParams {
4801
4805
  * The commits will be created on the usage invoice frequency. If provided: - The
4802
4806
  * period defined in the duration will correspond to this frequency. - Commits will
4803
4807
  * be created aligned with the recurring commit's starting_at rather than the usage
4804
- * invoice dates.
4808
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
4809
+ * are unable to be created with seat-based subscriptions
4805
4810
  */
4806
4811
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
4807
4812
 
@@ -5014,7 +5019,8 @@ export namespace ContractEditParams {
5014
5019
  * The commits will be created on the usage invoice frequency. If provided: - The
5015
5020
  * period defined in the duration will correspond to this frequency. - Commits will
5016
5021
  * be created aligned with the recurring commit's starting_at rather than the usage
5017
- * invoice dates.
5022
+ * invoice dates. - Daily recurring commits have a limit of one per contract, and
5023
+ * are unable to be created with seat-based subscriptions
5018
5024
  */
5019
5025
  recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
5020
5026
 
@@ -5189,7 +5195,7 @@ export namespace ContractEditParams {
5189
5195
  */
5190
5196
  provider?: 'netsuite';
5191
5197
 
5192
- revenue_system_configuration_id?: string;
5198
+ revenue_system_configuration_id?: string | null;
5193
5199
  }
5194
5200
 
5195
5201
  export interface Schedule {
@@ -6195,6 +6201,13 @@ export interface ContractEditCommitParams {
6195
6201
 
6196
6202
  access_schedule?: ContractEditCommitParams.AccessSchedule;
6197
6203
 
6204
+ /**
6205
+ * Which contracts the customer-level commit applies to. If set to null, the commit
6206
+ * applies to all of the customer's contracts. This field cannot be edited for
6207
+ * POSTPAID commits or contract-level commits.
6208
+ */
6209
+ applicable_contract_ids?: Array<string> | null;
6210
+
6198
6211
  /**
6199
6212
  * Which products the commit applies to. If applicable_product_ids,
6200
6213
  * applicable_product_tags or specifiers are not provided, the commit applies to
@@ -6340,6 +6353,13 @@ export interface ContractEditCreditParams {
6340
6353
 
6341
6354
  access_schedule?: ContractEditCreditParams.AccessSchedule;
6342
6355
 
6356
+ /**
6357
+ * Which contracts the customer-level credit applies to. If set to null, the credit
6358
+ * applies to all of the customer's contracts. This field cannot be set on a
6359
+ * contract-level credit.
6360
+ */
6361
+ applicable_contract_ids?: Array<string> | null;
6362
+
6343
6363
  /**
6344
6364
  * Which products the credit applies to. If both applicable_product_ids and
6345
6365
  * applicable_product_tags are not provided, the credit applies to all products.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.9.0'; // x-release-please-version
1
+ export const VERSION = '3.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.9.0";
1
+ export declare const VERSION = "3.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.9.0";
1
+ export declare const VERSION = "3.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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 = '3.9.0'; // x-release-please-version
4
+ exports.VERSION = '3.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.9.0'; // x-release-please-version
1
+ export const VERSION = '3.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}