@metronome/sdk 3.8.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 +29 -0
  2. package/package.json +1 -1
  3. package/resources/shared.d.mts +178 -22
  4. package/resources/shared.d.mts.map +1 -1
  5. package/resources/shared.d.ts +178 -22
  6. package/resources/shared.d.ts.map +1 -1
  7. package/resources/v1/contracts/contracts.d.mts +43 -15
  8. package/resources/v1/contracts/contracts.d.mts.map +1 -1
  9. package/resources/v1/contracts/contracts.d.ts +43 -15
  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 +28 -10
  34. package/resources/v2/contracts.d.mts.map +1 -1
  35. package/resources/v2/contracts.d.ts +28 -10
  36. package/resources/v2/contracts.d.ts.map +1 -1
  37. package/src/resources/shared.ts +208 -23
  38. package/src/resources/v1/contracts/contracts.ts +44 -15
  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 +30 -10
  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
@@ -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
  }
@@ -3963,7 +3967,7 @@ export namespace ContractEditParams {
3963
3967
  /**
3964
3968
  * When the billing provider update will take effect.
3965
3969
  */
3966
- effective_at: 'START_OF_CURRENT_PERIOD';
3970
+ effective_at: 'START_OF_CURRENT_PERIOD' | 'START_OF_NEXT_PERIOD';
3967
3971
  }
3968
3972
  }
3969
3973
 
@@ -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,14 +5195,14 @@ 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 {
5196
5202
  /**
5197
5203
  * When the revenue system configuration update will take effect.
5198
5204
  */
5199
- effective_at: 'START_OF_CURRENT_PERIOD';
5205
+ effective_at: 'START_OF_CURRENT_PERIOD' | 'START_OF_NEXT_PERIOD';
5200
5206
  }
5201
5207
  }
5202
5208
 
@@ -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.8.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.8.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.8.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.8.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.8.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"}