@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 @@
|
|
|
1
|
+
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../src/resources/custom-fields.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,eAAe,MAAM,wCAAwC,CAAC;AAE1E,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,IAA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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtC,MAAM,EACF,OAAO,GACP,iBAAiB,GACjB,QAAQ,GACR,QAAQ,GACR,iBAAiB,GACjB,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,eAAe,GACf,UAAU,GACV,SAAS,GACT,MAAM,GACN,sBAAsB,GACtB,SAAS,GACT,WAAW,GACX,kBAAkB,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yBAAiB,YAAY,CAAC;IAC5B,MAAM,QAAQ,2BAA2B,GAAG,eAAe,CAAC,2BAA2B,CAAC;IACxF,MAAM,QAAQ,uBAAuB,GAAG,eAAe,CAAC,uBAAuB,CAAC;IAChF,MAAM,QAAQ,6BAA6B,GAAG,eAAe,CAAC,6BAA6B,CAAC;IAC5F,MAAM,QAAQ,yBAAyB,GAAG,eAAe,CAAC,yBAAyB,CAAC;IACpF,MAAM,QAAQ,0BAA0B,GAAG,eAAe,CAAC,0BAA0B,CAAC;IACtF,MAAM,QAAQ,0BAA0B,GAAG,eAAe,CAAC,0BAA0B,CAAC;CACvF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.CustomFields = void 0;
|
|
5
|
+
const resource_1 = require("@metronome/sdk/resource");
|
|
6
|
+
const core_1 = require("@metronome/sdk/core");
|
|
7
|
+
class CustomFields extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Add a key to the allow list for a given entity. There is a 100 character limit
|
|
10
|
+
* on custom field keys.
|
|
11
|
+
*/
|
|
12
|
+
addKey(body, options) {
|
|
13
|
+
return this._client.post('/customFields/addKey', {
|
|
14
|
+
body,
|
|
15
|
+
...options,
|
|
16
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Deletes one or more custom fields on an instance of a Metronome entity.
|
|
21
|
+
*/
|
|
22
|
+
deleteValues(body, options) {
|
|
23
|
+
return this._client.post('/customFields/deleteValues', {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
listKeys(params = {}, options) {
|
|
30
|
+
if ((0, core_1.isRequestOptions)(params)) {
|
|
31
|
+
return this.listKeys({}, params);
|
|
32
|
+
}
|
|
33
|
+
const { next_page, ...body } = params;
|
|
34
|
+
return this._client.post('/customFields/listKeys', { query: { next_page }, body, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Remove a key from the allow list for a given entity.
|
|
38
|
+
*/
|
|
39
|
+
removeKey(body, options) {
|
|
40
|
+
return this._client.post('/customFields/removeKey', {
|
|
41
|
+
body,
|
|
42
|
+
...options,
|
|
43
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Sets one or more custom fields on an instance of a Metronome entity. If a
|
|
48
|
+
* key/value pair passed in this request matches one already set on the entity, its
|
|
49
|
+
* value will be overwritten. Any key/value pairs that exist on the entity that do
|
|
50
|
+
* not match those passed in this request will remain untouched. This endpoint is
|
|
51
|
+
* transactional and will update all key/value pairs or no key/value pairs. Partial
|
|
52
|
+
* updates are not supported. There is a 200 character limit on custom field
|
|
53
|
+
* values.
|
|
54
|
+
*/
|
|
55
|
+
setValues(body, options) {
|
|
56
|
+
return this._client.post('/customFields/setValues', {
|
|
57
|
+
body,
|
|
58
|
+
...options,
|
|
59
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.CustomFields = CustomFields;
|
|
64
|
+
(function (CustomFields) {
|
|
65
|
+
})(CustomFields = exports.CustomFields || (exports.CustomFields = {}));
|
|
66
|
+
//# sourceMappingURL=custom-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-fields.js","sourceRoot":"","sources":["../src/resources/custom-fields.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,sDAAsD;AACtD,8CAAuD;AAGvD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA6B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,IAAmC,EAAE,OAA6B;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAUD,QAAQ,CACN,SAA0D,EAAE,EAC5D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;SAClC;QACD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,IAAgC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,IAAgC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAtED,oCAsEC;AA6JD,WAAiB,YAAY;AAO7B,CAAC,EAPgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAO5B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
export class CustomFields extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Add a key to the allow list for a given entity. There is a 100 character limit
|
|
7
|
+
* on custom field keys.
|
|
8
|
+
*/
|
|
9
|
+
addKey(body, options) {
|
|
10
|
+
return this._client.post('/customFields/addKey', {
|
|
11
|
+
body,
|
|
12
|
+
...options,
|
|
13
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Deletes one or more custom fields on an instance of a Metronome entity.
|
|
18
|
+
*/
|
|
19
|
+
deleteValues(body, options) {
|
|
20
|
+
return this._client.post('/customFields/deleteValues', {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
listKeys(params = {}, options) {
|
|
27
|
+
if (isRequestOptions(params)) {
|
|
28
|
+
return this.listKeys({}, params);
|
|
29
|
+
}
|
|
30
|
+
const { next_page, ...body } = params;
|
|
31
|
+
return this._client.post('/customFields/listKeys', { query: { next_page }, body, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Remove a key from the allow list for a given entity.
|
|
35
|
+
*/
|
|
36
|
+
removeKey(body, options) {
|
|
37
|
+
return this._client.post('/customFields/removeKey', {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Sets one or more custom fields on an instance of a Metronome entity. If a
|
|
45
|
+
* key/value pair passed in this request matches one already set on the entity, its
|
|
46
|
+
* value will be overwritten. Any key/value pairs that exist on the entity that do
|
|
47
|
+
* not match those passed in this request will remain untouched. This endpoint is
|
|
48
|
+
* transactional and will update all key/value pairs or no key/value pairs. Partial
|
|
49
|
+
* updates are not supported. There is a 200 character limit on custom field
|
|
50
|
+
* values.
|
|
51
|
+
*/
|
|
52
|
+
setValues(body, options) {
|
|
53
|
+
return this._client.post('/customFields/setValues', {
|
|
54
|
+
body,
|
|
55
|
+
...options,
|
|
56
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
(function (CustomFields) {
|
|
61
|
+
})(CustomFields || (CustomFields = {}));
|
|
62
|
+
//# sourceMappingURL=custom-fields.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-fields.mjs","sourceRoot":"","sources":["../src/resources/custom-fields.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,yBAAyB;OAC9C,EAAE,gBAAgB,EAAE,MAAM,qBAAqB;AAGtD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA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I;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA6JD,WAAiB,YAAY;AAO7B,CAAC,EAPgB,YAAY,KAAZ,YAAY,QAO5B"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import * as Core from '@metronome/sdk/core';
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
import * as AlertsAPI from '@metronome/sdk/resources/customers/alerts';
|
|
4
|
+
import * as Shared from '@metronome/sdk/resources/shared';
|
|
5
|
+
export declare class Alerts extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the customer alert status and alert information for the specified customer
|
|
8
|
+
* and alert
|
|
9
|
+
*/
|
|
10
|
+
retrieve(body: AlertRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<AlertRetrieveResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Fetch all customer alert statuses and alert information for a customer
|
|
13
|
+
*/
|
|
14
|
+
list(params: AlertListParams, options?: Core.RequestOptions): Core.APIPromise<AlertListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Reset state for an alert by customer id and force re-evaluation
|
|
17
|
+
*/
|
|
18
|
+
reset(body: AlertResetParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
19
|
+
}
|
|
20
|
+
export interface CustomerAlert {
|
|
21
|
+
alert: CustomerAlert.Alert;
|
|
22
|
+
/**
|
|
23
|
+
* The status of the customer alert. If the alert is archived, null will be
|
|
24
|
+
* returned.
|
|
25
|
+
*/
|
|
26
|
+
customer_status: 'ok' | 'in_alarm' | 'evaluating' | null;
|
|
27
|
+
/**
|
|
28
|
+
* If present, indicates the reason the alert was triggered.
|
|
29
|
+
*/
|
|
30
|
+
triggered_by?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace CustomerAlert {
|
|
33
|
+
interface Alert {
|
|
34
|
+
/**
|
|
35
|
+
* the Metronome ID of the alert
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the alert
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Status of the alert
|
|
44
|
+
*/
|
|
45
|
+
status: 'enabled' | 'archived' | 'disabled';
|
|
46
|
+
/**
|
|
47
|
+
* Threshold value of the alert policy
|
|
48
|
+
*/
|
|
49
|
+
threshold: number;
|
|
50
|
+
/**
|
|
51
|
+
* Type of the alert
|
|
52
|
+
*/
|
|
53
|
+
type: 'low_credit_balance_reached' | 'spend_threshold_reached' | 'monthly_invoice_total_spend_threshold_reached' | 'low_remaining_days_in_plan_reached' | 'low_remaining_credit_percentage_reached' | 'usage_threshold_reached' | 'low_remaining_days_for_commit_segment_reached' | 'low_remaining_commit_balance_reached' | 'low_remaining_commit_percentage_reached' | 'low_remaining_days_for_contract_credit_segment_reached' | 'low_remaining_contract_credit_balance_reached' | 'low_remaining_contract_credit_percentage_reached' | 'invoice_total_reached';
|
|
54
|
+
/**
|
|
55
|
+
* Timestamp for when the alert was last updated
|
|
56
|
+
*/
|
|
57
|
+
updated_at: string;
|
|
58
|
+
credit_type?: Shared.CreditType | null;
|
|
59
|
+
/**
|
|
60
|
+
* A list of custom field filters for alert types that support advanced filtering
|
|
61
|
+
*/
|
|
62
|
+
custom_field_filters?: Array<Alert.CustomFieldFilter>;
|
|
63
|
+
/**
|
|
64
|
+
* Scopes alert evaluation to a specific presentation group key on individual line
|
|
65
|
+
* items. Only present for spend alerts.
|
|
66
|
+
*/
|
|
67
|
+
group_key_filter?: Alert.GroupKeyFilter;
|
|
68
|
+
/**
|
|
69
|
+
* Only supported for invoice_total_reached alerts. A list of invoice types to
|
|
70
|
+
* evaluate.
|
|
71
|
+
*/
|
|
72
|
+
invoice_types_filter?: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Prevents the creation of duplicates. If a request to create a record is made
|
|
75
|
+
* with a previously used uniqueness key, a new record will not be created and the
|
|
76
|
+
* request will fail with a 409 error.
|
|
77
|
+
*/
|
|
78
|
+
uniqueness_key?: string;
|
|
79
|
+
}
|
|
80
|
+
namespace Alert {
|
|
81
|
+
interface CustomFieldFilter {
|
|
82
|
+
entity: 'Contract' | 'Commit' | 'ContractCredit';
|
|
83
|
+
key: string;
|
|
84
|
+
value: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Scopes alert evaluation to a specific presentation group key on individual line
|
|
88
|
+
* items. Only present for spend alerts.
|
|
89
|
+
*/
|
|
90
|
+
interface GroupKeyFilter {
|
|
91
|
+
key: string;
|
|
92
|
+
value: string;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface AlertRetrieveResponse {
|
|
97
|
+
data: CustomerAlert;
|
|
98
|
+
}
|
|
99
|
+
export interface AlertListResponse {
|
|
100
|
+
data: Array<CustomerAlert>;
|
|
101
|
+
next_page: string | null;
|
|
102
|
+
}
|
|
103
|
+
export interface AlertRetrieveParams {
|
|
104
|
+
/**
|
|
105
|
+
* The Metronome ID of the alert
|
|
106
|
+
*/
|
|
107
|
+
alert_id: string;
|
|
108
|
+
/**
|
|
109
|
+
* The Metronome ID of the customer
|
|
110
|
+
*/
|
|
111
|
+
customer_id: string;
|
|
112
|
+
}
|
|
113
|
+
export interface AlertListParams {
|
|
114
|
+
/**
|
|
115
|
+
* Body param: The Metronome ID of the customer
|
|
116
|
+
*/
|
|
117
|
+
customer_id: string;
|
|
118
|
+
/**
|
|
119
|
+
* Query param: Cursor that indicates where the next page of results should start.
|
|
120
|
+
*/
|
|
121
|
+
next_page?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Body param: Optionally filter by alert status. If absent, only enabled alerts
|
|
124
|
+
* will be returned.
|
|
125
|
+
*/
|
|
126
|
+
alert_statuses?: Array<'enabled' | 'disabled' | 'archived' | 'ENABLED' | 'DISABLED' | 'ARCHIVED' | 'Enabled' | 'Disabled' | 'Archived'>;
|
|
127
|
+
}
|
|
128
|
+
export interface AlertResetParams {
|
|
129
|
+
/**
|
|
130
|
+
* The Metronome ID of the alert
|
|
131
|
+
*/
|
|
132
|
+
alert_id: string;
|
|
133
|
+
/**
|
|
134
|
+
* The Metronome ID of the customer
|
|
135
|
+
*/
|
|
136
|
+
customer_id: string;
|
|
137
|
+
}
|
|
138
|
+
export declare namespace Alerts {
|
|
139
|
+
export import CustomerAlert = AlertsAPI.CustomerAlert;
|
|
140
|
+
export import AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse;
|
|
141
|
+
export import AlertListResponse = AlertsAPI.AlertListResponse;
|
|
142
|
+
export import AlertRetrieveParams = AlertsAPI.AlertRetrieveParams;
|
|
143
|
+
export import AlertListParams = AlertsAPI.AlertListParams;
|
|
144
|
+
export import AlertResetParams = AlertsAPI.AlertResetParams;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=alerts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../src/resources/customers/alerts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAE1D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAI1G;;OAEG;IACH,IAAI,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAKhG;;OAEG;IACH,KAAK,CAAC,IA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D,MAAM,QAAQ,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC;CAC7D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.Alerts = void 0;
|
|
5
|
+
const resource_1 = require("@metronome/sdk/resource");
|
|
6
|
+
class Alerts extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the customer alert status and alert information for the specified customer
|
|
9
|
+
* and alert
|
|
10
|
+
*/
|
|
11
|
+
retrieve(body, options) {
|
|
12
|
+
return this._client.post('/customer-alerts/get', { body, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Fetch all customer alert statuses and alert information for a customer
|
|
16
|
+
*/
|
|
17
|
+
list(params, options) {
|
|
18
|
+
const { next_page, ...body } = params;
|
|
19
|
+
return this._client.post('/customer-alerts/list', { query: { next_page }, body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Reset state for an alert by customer id and force re-evaluation
|
|
23
|
+
*/
|
|
24
|
+
reset(body, options) {
|
|
25
|
+
return this._client.post('/customer-alerts/reset', {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Alerts = Alerts;
|
|
33
|
+
(function (Alerts) {
|
|
34
|
+
})(Alerts = exports.Alerts || (exports.Alerts = {}));
|
|
35
|
+
//# sourceMappingURL=alerts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../src/resources/customers/alerts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,sDAAsD;AAItD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAuB,EAAE,OAA6B;QACzD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,wBA2BC;AA4KD,WAAiB,MAAM;AAOvB,CAAC,EAPgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAOtB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
export class Alerts extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get the customer alert status and alert information for the specified customer
|
|
6
|
+
* and alert
|
|
7
|
+
*/
|
|
8
|
+
retrieve(body, options) {
|
|
9
|
+
return this._client.post('/customer-alerts/get', { body, ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fetch all customer alert statuses and alert information for a customer
|
|
13
|
+
*/
|
|
14
|
+
list(params, options) {
|
|
15
|
+
const { next_page, ...body } = params;
|
|
16
|
+
return this._client.post('/customer-alerts/list', { query: { next_page }, body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reset state for an alert by customer id and force re-evaluation
|
|
20
|
+
*/
|
|
21
|
+
reset(body, options) {
|
|
22
|
+
return this._client.post('/customer-alerts/reset', {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
(function (Alerts) {
|
|
30
|
+
})(Alerts || (Alerts = {}));
|
|
31
|
+
//# sourceMappingURL=alerts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alerts.mjs","sourceRoot":"","sources":["../../src/resources/customers/alerts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,yBAAyB;AAIrD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,IAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAuB,EAAE,OAA6B;QACzD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA4KD,WAAiB,MAAM;AAOvB,CAAC,EAPgB,MAAM,KAAN,MAAM,QAOtB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as Core from '@metronome/sdk/core';
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
import * as BillingConfigAPI from '@metronome/sdk/resources/customers/billing-config';
|
|
4
|
+
export declare class BillingConfig extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Set the billing configuration for a given customer.
|
|
7
|
+
*/
|
|
8
|
+
create(customerId: string, billingProviderType: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace', body: BillingConfigCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Fetch the billing configuration for the given customer.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(customerId: string, billingProviderType: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace', options?: Core.RequestOptions): Core.APIPromise<BillingConfigRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
15
|
+
* for Azure and AWS Marketplace customers.
|
|
16
|
+
*/
|
|
17
|
+
delete(customerId: string, billingProviderType: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace', options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface BillingConfigRetrieveResponse {
|
|
20
|
+
data: BillingConfigRetrieveResponse.Data;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace BillingConfigRetrieveResponse {
|
|
23
|
+
interface Data {
|
|
24
|
+
/**
|
|
25
|
+
* Contract expiration date for the customer. The expected format is RFC 3339 and
|
|
26
|
+
* can be retrieved from AWS's GetEntitlements API. (See
|
|
27
|
+
* https://docs.aws.amazon.com/marketplaceentitlement/latest/APIReference/API_GetEntitlements.html.)
|
|
28
|
+
*/
|
|
29
|
+
aws_expiration_date?: string;
|
|
30
|
+
aws_product_code?: string;
|
|
31
|
+
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';
|
|
32
|
+
/**
|
|
33
|
+
* Subscription term start/end date for the customer. The expected format is RFC
|
|
34
|
+
* 3339 and can be retrieved from Azure's Get Subscription API. (See
|
|
35
|
+
* https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription.)
|
|
36
|
+
*/
|
|
37
|
+
azure_expiration_date?: string;
|
|
38
|
+
azure_plan_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Subscription term start/end date for the customer. The expected format is RFC
|
|
41
|
+
* 3339 and can be retrieved from Azure's Get Subscription API. (See
|
|
42
|
+
* https://learn.microsoft.com/en-us/partner-center/marketplace/partner-center-portal/pc-saas-fulfillment-subscription-api#get-subscription.)
|
|
43
|
+
*/
|
|
44
|
+
azure_start_date?: string;
|
|
45
|
+
azure_subscription_status?: 'Subscribed' | 'Unsubscribed' | 'Suspended' | 'PendingFulfillmentStart';
|
|
46
|
+
billing_provider_customer_id?: string;
|
|
47
|
+
stripe_collection_method?: 'charge_automatically' | 'send_invoice';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export interface BillingConfigCreateParams {
|
|
51
|
+
/**
|
|
52
|
+
* The customer ID in the billing provider's system. For Azure, this is the
|
|
53
|
+
* subscription ID.
|
|
54
|
+
*/
|
|
55
|
+
billing_provider_customer_id: string;
|
|
56
|
+
aws_product_code?: string;
|
|
57
|
+
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';
|
|
58
|
+
stripe_collection_method?: 'charge_automatically' | 'send_invoice';
|
|
59
|
+
}
|
|
60
|
+
export declare namespace BillingConfig {
|
|
61
|
+
export import BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse;
|
|
62
|
+
export import BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=billing-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-config.d.ts","sourceRoot":"","sources":["../../src/resources/customers/billing-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,gBAAgB,MAAM,mDAAmD,CAAC;AAEtF,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,mBAAmB,EACf,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,EACrB,IAAI,EAAE,yBAAyB,EAC/B,OAAO,C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WAIG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B,yBAAyB,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,WAAW,GAAG,yBAAyB,CAAC;QAEpG,4BAA4B,CAAC,EAAE,MAAM,CAAC;QAEtC,wBAAwB,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAAC;KACpE;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EACP,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,eAAe,GACf,WAAW,GACX,WAAW,CAAC;IAEhB,wBAAwB,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAAC;CACpE;AAED,yBAAiB,aAAa,CAAC;IAC7B,MAAM,QAAQ,6BAA6B,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;IAC7F,MAAM,QAAQ,yBAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;CACtF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.BillingConfig = void 0;
|
|
5
|
+
const resource_1 = require("@metronome/sdk/resource");
|
|
6
|
+
class BillingConfig extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Set the billing configuration for a given customer.
|
|
9
|
+
*/
|
|
10
|
+
create(customerId, billingProviderType, body, options) {
|
|
11
|
+
return this._client.post(`/customers/${customerId}/billing-config/${billingProviderType}`, {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetch the billing configuration for the given customer.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(customerId, billingProviderType, options) {
|
|
21
|
+
return this._client.get(`/customers/${customerId}/billing-config/${billingProviderType}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
25
|
+
* for Azure and AWS Marketplace customers.
|
|
26
|
+
*/
|
|
27
|
+
delete(customerId, billingProviderType, options) {
|
|
28
|
+
return this._client.delete(`/customers/${customerId}/billing-config/${billingProviderType}`, {
|
|
29
|
+
...options,
|
|
30
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.BillingConfig = BillingConfig;
|
|
35
|
+
(function (BillingConfig) {
|
|
36
|
+
})(BillingConfig = exports.BillingConfig || (exports.BillingConfig = {}));
|
|
37
|
+
//# sourceMappingURL=billing-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-config.js","sourceRoot":"","sources":["../../src/resources/customers/billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,sDAAsD;AAGtD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,UAAkB,EAClB,mBAQqB,EACrB,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,UAAkB,EAClB,mBAQqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,UAAkB,EAClB,mBAQqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAlED,sCAkEC;AA2GD,WAAiB,aAAa;AAG9B,CAAC,EAHgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAG7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '@metronome/sdk/resource';
|
|
3
|
+
export class BillingConfig extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Set the billing configuration for a given customer.
|
|
6
|
+
*/
|
|
7
|
+
create(customerId, billingProviderType, body, options) {
|
|
8
|
+
return this._client.post(`/customers/${customerId}/billing-config/${billingProviderType}`, {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Fetch the billing configuration for the given customer.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(customerId, billingProviderType, options) {
|
|
18
|
+
return this._client.get(`/customers/${customerId}/billing-config/${billingProviderType}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
22
|
+
* for Azure and AWS Marketplace customers.
|
|
23
|
+
*/
|
|
24
|
+
delete(customerId, billingProviderType, options) {
|
|
25
|
+
return this._client.delete(`/customers/${customerId}/billing-config/${billingProviderType}`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
(function (BillingConfig) {
|
|
32
|
+
})(BillingConfig || (BillingConfig = {}));
|
|
33
|
+
//# sourceMappingURL=billing-config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-config.mjs","sourceRoot":"","sources":["../../src/resources/customers/billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,yBAAyB;AAGrD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CACJ,UAAkB,EAClB,mBAQqB,EACrB,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE;YACzF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,UAAkB,EAClB,mBAQqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,UAAkB,EAClB,mBAQqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,UAAU,mBAAmB,mBAAmB,EAAE,EAAE;YAC3F,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA2GD,WAAiB,aAAa;AAG9B,CAAC,EAHgB,aAAa,KAAb,aAAa,QAG7B"}
|