orb-billing 4.32.0 → 4.47.1
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 +184 -0
- package/LICENSE +1 -1
- package/README.md +12 -3
- package/core.d.ts +4 -5
- package/core.d.ts.map +1 -1
- package/core.js +16 -11
- package/core.js.map +1 -1
- package/core.mjs +16 -11
- package/core.mjs.map +1 -1
- package/error.d.ts +30 -36
- package/error.d.ts.map +1 -1
- package/error.js +24 -43
- package/error.js.map +1 -1
- package/error.mjs +24 -43
- package/error.mjs.map +1 -1
- package/index.d.mts +43 -109
- package/index.d.ts +43 -109
- package/index.d.ts.map +1 -1
- package/index.js +71 -33
- package/index.js.map +1 -1
- package/index.mjs +43 -32
- package/index.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/alerts.d.ts +58 -19
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +19 -37
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +19 -14
- package/resources/alerts.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +3 -7
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +3 -5
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +3 -5
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/index.d.ts +2 -2
- package/resources/coupons/index.d.ts.map +1 -1
- package/resources/coupons/index.js.map +1 -1
- package/resources/coupons/index.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +1 -2
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +0 -2
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +0 -2
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.d.ts +29 -4
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +8 -27
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +8 -4
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +1 -6
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +1 -27
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +1 -4
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +1 -5
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +0 -2
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +0 -2
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +15 -31
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +10 -11
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +10 -11
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/index.d.ts +3 -3
- package/resources/customers/credits/index.d.ts.map +1 -1
- package/resources/customers/credits/index.js.map +1 -1
- package/resources/customers/credits/index.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +15 -23
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +12 -36
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +12 -13
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +1 -11
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +2 -28
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +2 -5
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +9 -29
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +25 -18
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +25 -18
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.ts +4 -4
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +90 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.js +73 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +45 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +10 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +15 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +11 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -0
- package/resources/dimensional-price-groups/index.d.ts +3 -0
- package/resources/dimensional-price-groups/index.d.ts.map +1 -0
- package/resources/dimensional-price-groups/index.js +9 -0
- package/resources/dimensional-price-groups/index.js.map +1 -0
- package/resources/dimensional-price-groups/index.mjs +4 -0
- package/resources/dimensional-price-groups/index.mjs.map +1 -0
- package/resources/events/backfills.d.ts +5 -11
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +5 -29
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -6
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +7 -22
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +7 -7
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +7 -7
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/index.d.ts +3 -3
- package/resources/events/index.d.ts.map +1 -1
- package/resources/events/index.js.map +1 -1
- package/resources/events/index.mjs.map +1 -1
- package/resources/events/volume.d.ts +9 -12
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +16 -7
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +16 -7
- package/resources/events/volume.mjs.map +1 -1
- package/resources/index.d.ts +14 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -7
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +8 -7
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +1 -3
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +0 -2
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +0 -2
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +81 -18
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +22 -35
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +22 -12
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +2 -8
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +5 -31
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +5 -8
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +2 -8
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +7 -31
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +7 -8
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +2 -4
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +7 -7
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +7 -7
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/index.d.ts +2 -2
- package/resources/plans/index.d.ts.map +1 -1
- package/resources/plans/index.js.map +1 -1
- package/resources/plans/index.mjs +1 -1
- package/resources/plans/index.mjs.map +1 -1
- package/resources/plans/plans.d.ts +332 -11
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +10 -9
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +10 -9
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +2 -4
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +6 -7
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +6 -7
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/index.d.ts +2 -2
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +3 -3
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +340 -15
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +9 -9
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +9 -9
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +7636 -200
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +348 -47
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +348 -24
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.d.ts +1 -2
- package/resources/top-level.d.ts.map +1 -1
- package/resources/top-level.js +0 -2
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +0 -2
- package/resources/top-level.mjs.map +1 -1
- package/src/core.ts +23 -19
- package/src/error.ts +82 -125
- package/src/index.ts +334 -130
- package/src/resources/alerts.ts +117 -24
- package/src/resources/coupons/coupons.ts +13 -8
- package/src/resources/coupons/index.ts +2 -2
- package/src/resources/coupons/subscriptions.ts +2 -3
- package/src/resources/credit-notes.ts +45 -5
- package/src/resources/customers/balance-transactions.ts +10 -7
- package/src/resources/customers/costs.ts +7 -6
- package/src/resources/customers/credits/credits.ts +82 -32
- package/src/resources/customers/credits/index.ts +20 -20
- package/src/resources/customers/credits/ledger.ts +30 -24
- package/src/resources/customers/credits/top-ups.ts +16 -12
- package/src/resources/customers/customers.ts +70 -46
- package/src/resources/customers/index.ts +17 -17
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +146 -0
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +20 -0
- package/src/resources/dimensional-price-groups/index.ts +10 -0
- package/src/resources/events/backfills.ts +17 -12
- package/src/resources/events/events.ts +42 -23
- package/src/resources/events/index.ts +15 -15
- package/src/resources/events/volume.ts +11 -22
- package/src/resources/index.ts +113 -67
- package/src/resources/invoice-line-items.ts +5 -4
- package/src/resources/invoices.ts +111 -34
- package/src/resources/items.ts +11 -17
- package/src/resources/metrics.ts +11 -17
- package/src/resources/plans/external-plan-id.ts +3 -14
- package/src/resources/plans/index.ts +9 -2
- package/src/resources/plans/plans.ts +425 -19
- package/src/resources/prices/external-price-id.ts +3 -14
- package/src/resources/prices/index.ts +8 -8
- package/src/resources/prices/prices.ts +471 -24
- package/src/resources/subscriptions.ts +9238 -440
- package/src/resources/top-level.ts +2 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,K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ACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,eAAe,GAAG,CAAC"}
|
package/index.js
CHANGED
|
@@ -25,13 +25,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
};
|
|
26
26
|
var _a;
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
const Errors = __importStar(require("./error.js"));
|
|
30
|
-
const Uploads = __importStar(require("./uploads.js"));
|
|
28
|
+
exports.DuplicateResourceCreation = exports.UnprocessableEntityError = exports.OrbInternalServerError = exports.OrbAuthenticationError = exports.RequestValidationError = exports.PermissionDeniedError = exports.FeatureNotAvailable = exports.ConstraintViolation = exports.InternalServerError = exports.AuthenticationError = exports.ResourceTooLarge = exports.ResourceConflict = exports.ResourceNotFound = exports.TooManyRequests = exports.RequestTooLarge = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.URLNotFound = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.OrbError = exports.fileFromPath = exports.toFile = exports.Orb = void 0;
|
|
31
29
|
const qs = __importStar(require("./internal/qs/index.js"));
|
|
32
30
|
const Core = __importStar(require("./core.js"));
|
|
31
|
+
const Errors = __importStar(require("./error.js"));
|
|
33
32
|
const Pagination = __importStar(require("./pagination.js"));
|
|
33
|
+
const Uploads = __importStar(require("./uploads.js"));
|
|
34
34
|
const API = __importStar(require("./resources/index.js"));
|
|
35
|
+
const alerts_1 = require("./resources/alerts.js");
|
|
36
|
+
const credit_notes_1 = require("./resources/credit-notes.js");
|
|
37
|
+
const invoice_line_items_1 = require("./resources/invoice-line-items.js");
|
|
38
|
+
const invoices_1 = require("./resources/invoices.js");
|
|
39
|
+
const items_1 = require("./resources/items.js");
|
|
40
|
+
const metrics_1 = require("./resources/metrics.js");
|
|
41
|
+
const subscriptions_1 = require("./resources/subscriptions.js");
|
|
42
|
+
const top_level_1 = require("./resources/top-level.js");
|
|
43
|
+
const coupons_1 = require("./resources/coupons/coupons.js");
|
|
44
|
+
const customers_1 = require("./resources/customers/customers.js");
|
|
45
|
+
const dimensional_price_groups_1 = require("./resources/dimensional-price-groups/dimensional-price-groups.js");
|
|
46
|
+
const events_1 = require("./resources/events/events.js");
|
|
47
|
+
const plans_1 = require("./resources/plans/plans.js");
|
|
48
|
+
const prices_1 = require("./resources/prices/prices.js");
|
|
35
49
|
/**
|
|
36
50
|
* API Client for interfacing with the Orb API.
|
|
37
51
|
*/
|
|
@@ -80,6 +94,7 @@ class Orb extends Core.APIClient {
|
|
|
80
94
|
this.subscriptions = new API.Subscriptions(this);
|
|
81
95
|
this.webhooks = new API.Webhooks(this);
|
|
82
96
|
this.alerts = new API.Alerts(this);
|
|
97
|
+
this.dimensionalPriceGroups = new API.DimensionalPriceGroups(this);
|
|
83
98
|
this._options = options;
|
|
84
99
|
this.idempotencyHeader = 'Idempotency-Key';
|
|
85
100
|
this.apiKey = apiKey;
|
|
@@ -132,36 +147,59 @@ Orb.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
|
132
147
|
Orb.DuplicateResourceCreation = Errors.DuplicateResourceCreation;
|
|
133
148
|
Orb.toFile = Uploads.toFile;
|
|
134
149
|
Orb.fileFromPath = Uploads.fileFromPath;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
150
|
+
Orb.TopLevel = top_level_1.TopLevel;
|
|
151
|
+
Orb.Coupons = coupons_1.Coupons;
|
|
152
|
+
Orb.CouponsPage = coupons_1.CouponsPage;
|
|
153
|
+
Orb.CreditNotes = credit_notes_1.CreditNotes;
|
|
154
|
+
Orb.CreditNotesPage = credit_notes_1.CreditNotesPage;
|
|
155
|
+
Orb.Customers = customers_1.Customers;
|
|
156
|
+
Orb.CustomersPage = customers_1.CustomersPage;
|
|
157
|
+
Orb.Events = events_1.Events;
|
|
158
|
+
Orb.InvoiceLineItems = invoice_line_items_1.InvoiceLineItems;
|
|
159
|
+
Orb.Invoices = invoices_1.Invoices;
|
|
160
|
+
Orb.InvoicesPage = invoices_1.InvoicesPage;
|
|
161
|
+
Orb.Items = items_1.Items;
|
|
162
|
+
Orb.ItemsPage = items_1.ItemsPage;
|
|
163
|
+
Orb.Metrics = metrics_1.Metrics;
|
|
164
|
+
Orb.BillableMetricsPage = metrics_1.BillableMetricsPage;
|
|
165
|
+
Orb.Plans = plans_1.Plans;
|
|
166
|
+
Orb.PlansPage = plans_1.PlansPage;
|
|
167
|
+
Orb.Prices = prices_1.Prices;
|
|
168
|
+
Orb.PricesPage = prices_1.PricesPage;
|
|
169
|
+
Orb.SubscriptionsPage = subscriptions_1.SubscriptionsPage;
|
|
170
|
+
Orb.SubscriptionFetchScheduleResponsesPage = subscriptions_1.SubscriptionFetchScheduleResponsesPage;
|
|
171
|
+
Orb.Alerts = alerts_1.Alerts;
|
|
172
|
+
Orb.AlertsPage = alerts_1.AlertsPage;
|
|
173
|
+
Orb.DimensionalPriceGroupsPage = dimensional_price_groups_1.DimensionalPriceGroupsPage;
|
|
174
|
+
var uploads_1 = require("./uploads.js");
|
|
175
|
+
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
176
|
+
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
|
177
|
+
var error_1 = require("./error.js");
|
|
178
|
+
Object.defineProperty(exports, "OrbError", { enumerable: true, get: function () { return error_1.OrbError; } });
|
|
179
|
+
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
|
|
180
|
+
Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_1.APIConnectionError; } });
|
|
181
|
+
Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_1.APIConnectionTimeoutError; } });
|
|
182
|
+
Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_1.APIUserAbortError; } });
|
|
183
|
+
Object.defineProperty(exports, "URLNotFound", { enumerable: true, get: function () { return error_1.URLNotFound; } });
|
|
184
|
+
Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_1.NotFoundError; } });
|
|
185
|
+
Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_1.ConflictError; } });
|
|
186
|
+
Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_1.RateLimitError; } });
|
|
187
|
+
Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_1.BadRequestError; } });
|
|
188
|
+
Object.defineProperty(exports, "RequestTooLarge", { enumerable: true, get: function () { return error_1.RequestTooLarge; } });
|
|
189
|
+
Object.defineProperty(exports, "TooManyRequests", { enumerable: true, get: function () { return error_1.TooManyRequests; } });
|
|
190
|
+
Object.defineProperty(exports, "ResourceNotFound", { enumerable: true, get: function () { return error_1.ResourceNotFound; } });
|
|
191
|
+
Object.defineProperty(exports, "ResourceConflict", { enumerable: true, get: function () { return error_1.ResourceConflict; } });
|
|
192
|
+
Object.defineProperty(exports, "ResourceTooLarge", { enumerable: true, get: function () { return error_1.ResourceTooLarge; } });
|
|
193
|
+
Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_1.AuthenticationError; } });
|
|
194
|
+
Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_1.InternalServerError; } });
|
|
195
|
+
Object.defineProperty(exports, "ConstraintViolation", { enumerable: true, get: function () { return error_1.ConstraintViolation; } });
|
|
196
|
+
Object.defineProperty(exports, "FeatureNotAvailable", { enumerable: true, get: function () { return error_1.FeatureNotAvailable; } });
|
|
197
|
+
Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_1.PermissionDeniedError; } });
|
|
198
|
+
Object.defineProperty(exports, "RequestValidationError", { enumerable: true, get: function () { return error_1.RequestValidationError; } });
|
|
199
|
+
Object.defineProperty(exports, "OrbAuthenticationError", { enumerable: true, get: function () { return error_1.OrbAuthenticationError; } });
|
|
200
|
+
Object.defineProperty(exports, "OrbInternalServerError", { enumerable: true, get: function () { return error_1.OrbInternalServerError; } });
|
|
201
|
+
Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
|
|
202
|
+
Object.defineProperty(exports, "DuplicateResourceCreation", { enumerable: true, get: function () { return error_1.DuplicateResourceCreation; } });
|
|
165
203
|
exports = module.exports = Orb;
|
|
166
204
|
exports.default = Orb;
|
|
167
205
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,kDAW4B;AAC5B,8DAMkC;AAClC,0EAIwC;AACxC,sDAW8B;AAC9B,gDAO2B;AAC3B,oDAO6B;AAC7B,gEA+BmC;AACnC,wDAAuE;AACvE,4DAMqC;AACrC,kEAQy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wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCA0BiB;AAzBf,iGAAA,QAAQ,OAAA;AACR,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,oGAAA,WAAW,OAAA;AACX,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AACf,wGAAA,eAAe,OAAA;AACf,yGAAA,gBAAgB,OAAA;AAChB,yGAAA,gBAAgB,OAAA;AAChB,yGAAA,gBAAgB,OAAA;AAChB,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,+GAAA,sBAAsB,OAAA;AACtB,+GAAA,sBAAsB,OAAA;AACtB,+GAAA,sBAAsB,OAAA;AACtB,iHAAA,wBAAwB,OAAA;AACxB,kHAAA,yBAAyB,OAAA;AAG3B,kBAAe,GAAG,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
var _a;
|
|
3
|
-
import * as Errors from "./error.mjs";
|
|
4
|
-
import * as Uploads from "./uploads.mjs";
|
|
5
3
|
import * as qs from "./internal/qs/index.mjs";
|
|
6
4
|
import * as Core from "./core.mjs";
|
|
5
|
+
import * as Errors from "./error.mjs";
|
|
7
6
|
import * as Pagination from "./pagination.mjs";
|
|
7
|
+
import * as Uploads from "./uploads.mjs";
|
|
8
8
|
import * as API from "./resources/index.mjs";
|
|
9
|
+
import { Alerts, AlertsPage, } from "./resources/alerts.mjs";
|
|
10
|
+
import { CreditNotes, CreditNotesPage, } from "./resources/credit-notes.mjs";
|
|
11
|
+
import { InvoiceLineItems, } from "./resources/invoice-line-items.mjs";
|
|
12
|
+
import { Invoices, InvoicesPage, } from "./resources/invoices.mjs";
|
|
13
|
+
import { Items, ItemsPage, } from "./resources/items.mjs";
|
|
14
|
+
import { BillableMetricsPage, Metrics, } from "./resources/metrics.mjs";
|
|
15
|
+
import { SubscriptionFetchScheduleResponsesPage, SubscriptionsPage, } from "./resources/subscriptions.mjs";
|
|
16
|
+
import { TopLevel } from "./resources/top-level.mjs";
|
|
17
|
+
import { Coupons, CouponsPage, } from "./resources/coupons/coupons.mjs";
|
|
18
|
+
import { Customers, CustomersPage, } from "./resources/customers/customers.mjs";
|
|
19
|
+
import { DimensionalPriceGroupsPage, } from "./resources/dimensional-price-groups/dimensional-price-groups.mjs";
|
|
20
|
+
import { Events, } from "./resources/events/events.mjs";
|
|
21
|
+
import { Plans, PlansPage, } from "./resources/plans/plans.mjs";
|
|
22
|
+
import { Prices, PricesPage, } from "./resources/prices/prices.mjs";
|
|
9
23
|
/**
|
|
10
24
|
* API Client for interfacing with the Orb API.
|
|
11
25
|
*/
|
|
@@ -54,6 +68,7 @@ export class Orb extends Core.APIClient {
|
|
|
54
68
|
this.subscriptions = new API.Subscriptions(this);
|
|
55
69
|
this.webhooks = new API.Webhooks(this);
|
|
56
70
|
this.alerts = new API.Alerts(this);
|
|
71
|
+
this.dimensionalPriceGroups = new API.DimensionalPriceGroups(this);
|
|
57
72
|
this._options = options;
|
|
58
73
|
this.idempotencyHeader = 'Idempotency-Key';
|
|
59
74
|
this.apiKey = apiKey;
|
|
@@ -105,35 +120,31 @@ Orb.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
|
105
120
|
Orb.DuplicateResourceCreation = Errors.DuplicateResourceCreation;
|
|
106
121
|
Orb.toFile = Uploads.toFile;
|
|
107
122
|
Orb.fileFromPath = Uploads.fileFromPath;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Orb.SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
135
|
-
Orb.Alerts = API.Alerts;
|
|
136
|
-
Orb.AlertsPage = API.AlertsPage;
|
|
137
|
-
})(Orb || (Orb = {}));
|
|
123
|
+
Orb.TopLevel = TopLevel;
|
|
124
|
+
Orb.Coupons = Coupons;
|
|
125
|
+
Orb.CouponsPage = CouponsPage;
|
|
126
|
+
Orb.CreditNotes = CreditNotes;
|
|
127
|
+
Orb.CreditNotesPage = CreditNotesPage;
|
|
128
|
+
Orb.Customers = Customers;
|
|
129
|
+
Orb.CustomersPage = CustomersPage;
|
|
130
|
+
Orb.Events = Events;
|
|
131
|
+
Orb.InvoiceLineItems = InvoiceLineItems;
|
|
132
|
+
Orb.Invoices = Invoices;
|
|
133
|
+
Orb.InvoicesPage = InvoicesPage;
|
|
134
|
+
Orb.Items = Items;
|
|
135
|
+
Orb.ItemsPage = ItemsPage;
|
|
136
|
+
Orb.Metrics = Metrics;
|
|
137
|
+
Orb.BillableMetricsPage = BillableMetricsPage;
|
|
138
|
+
Orb.Plans = Plans;
|
|
139
|
+
Orb.PlansPage = PlansPage;
|
|
140
|
+
Orb.Prices = Prices;
|
|
141
|
+
Orb.PricesPage = PricesPage;
|
|
142
|
+
Orb.SubscriptionsPage = SubscriptionsPage;
|
|
143
|
+
Orb.SubscriptionFetchScheduleResponsesPage = SubscriptionFetchScheduleResponsesPage;
|
|
144
|
+
Orb.Alerts = Alerts;
|
|
145
|
+
Orb.AlertsPage = AlertsPage;
|
|
146
|
+
Orb.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
|
|
147
|
+
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
148
|
+
export { OrbError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, URLNotFound, NotFoundError, ConflictError, RateLimitError, BadRequestError, RequestTooLarge, TooManyRequests, ResourceNotFound, ResourceConflict, ResourceTooLarge, AuthenticationError, InternalServerError, ConstraintViolation, FeatureNotAvailable, PermissionDeniedError, RequestValidationError, OrbAuthenticationError, OrbInternalServerError, UnprocessableEntityError, DuplicateResourceCreation, } from "./error.mjs";
|
|
138
149
|
export default Orb;
|
|
139
150
|
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EASL,MAAM,EACN,UAAU,GACX;OACM,EAIL,WAAW,EACX,eAAe,GAChB;OACM,EAGL,gBAAgB,GACjB;OACM,EASL,QAAQ,EACR,YAAY,GACb;OACM,EAKL,KAAK,EACL,SAAS,GACV;OACM,EAEL,mBAAmB,EAInB,OAAO,GACR;OACM,EAUL,sCAAsC,EAoBtC,iBAAiB,GAClB;OACM,EAAE,QAAQ,EAAwB;OAClC,EAIL,OAAO,EACP,WAAW,GACZ;OACM,EAML,SAAS,EACT,aAAa,GACd;OACM,EAKL,0BAA0B,GAC3B;OACM,EAQL,MAAM,GACP;OACM,EAKL,KAAK,EACL,SAAS,GACV;OACM,EAQL,MAAM,EACN,UAAU,GACX;AAsED;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,IA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EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B;AAED,eAAe,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orb-billing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.47.1",
|
|
4
4
|
"description": "The official TypeScript library for the Orb API",
|
|
5
5
|
"author": "Orb <team@withorb.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"packageManager": "yarn@1.22.22",
|
|
12
12
|
"files": [
|
|
13
|
-
"
|
|
13
|
+
"**/*"
|
|
14
14
|
],
|
|
15
15
|
"private": false,
|
|
16
16
|
"scripts": {
|
package/resources/alerts.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
|
-
import * as AlertsAPI from "./alerts.js";
|
|
4
3
|
import { Page, type PageParams } from "../pagination.js";
|
|
5
4
|
export declare class Alerts extends APIResource {
|
|
6
5
|
/**
|
|
@@ -65,12 +64,18 @@ export declare class Alerts extends APIResource {
|
|
|
65
64
|
*/
|
|
66
65
|
createForSubscription(subscriptionId: string, body: AlertCreateForSubscriptionParams, options?: Core.RequestOptions): Core.APIPromise<Alert>;
|
|
67
66
|
/**
|
|
68
|
-
* This endpoint
|
|
67
|
+
* This endpoint allows you to disable an alert. To disable a plan-level alert for
|
|
68
|
+
* a specific subscription, you must include the `subscription_id`. The
|
|
69
|
+
* `subscription_id` is not required for customer or subscription level alerts.
|
|
69
70
|
*/
|
|
71
|
+
disable(alertConfigurationId: string, params?: AlertDisableParams, options?: Core.RequestOptions): Core.APIPromise<Alert>;
|
|
70
72
|
disable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise<Alert>;
|
|
71
73
|
/**
|
|
72
|
-
* This endpoint
|
|
74
|
+
* This endpoint allows you to enable an alert. To enable a plan-level alert for a
|
|
75
|
+
* specific subscription, you must include the `subscription_id`. The
|
|
76
|
+
* `subscription_id` is not required for customer or subscription level alerts.
|
|
73
77
|
*/
|
|
78
|
+
enable(alertConfigurationId: string, params?: AlertEnableParams, options?: Core.RequestOptions): Core.APIPromise<Alert>;
|
|
74
79
|
enable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise<Alert>;
|
|
75
80
|
}
|
|
76
81
|
export declare class AlertsPage extends Page<Alert> {
|
|
@@ -82,11 +87,6 @@ export declare class AlertsPage extends Page<Alert> {
|
|
|
82
87
|
*
|
|
83
88
|
* Alerts created through the API can be scoped to either customers or
|
|
84
89
|
* subscriptions.
|
|
85
|
-
*
|
|
86
|
-
* | Scope | Monitors | Vaild Alert Types |
|
|
87
|
-
* | ------------ | ------------------------------ | ----------------------------------------------------------------------------------- |
|
|
88
|
-
* | Customer | A customer's credit balance | `credit_balance_depleted`, `credit_balance_recovered`, and `credit_balance_dropped` |
|
|
89
|
-
* | Subscription | A subscription's usage or cost | `usage_exceeded` and `cost_exceeded` |
|
|
90
90
|
*/
|
|
91
91
|
export interface Alert {
|
|
92
92
|
/**
|
|
@@ -104,7 +104,7 @@ export interface Alert {
|
|
|
104
104
|
/**
|
|
105
105
|
* The customer the alert applies to.
|
|
106
106
|
*/
|
|
107
|
-
customer:
|
|
107
|
+
customer: Alert.Customer | null;
|
|
108
108
|
/**
|
|
109
109
|
* Whether the alert is enabled or disabled.
|
|
110
110
|
*/
|
|
@@ -112,15 +112,15 @@ export interface Alert {
|
|
|
112
112
|
/**
|
|
113
113
|
* The metric the alert applies to.
|
|
114
114
|
*/
|
|
115
|
-
metric:
|
|
115
|
+
metric: Alert.Metric | null;
|
|
116
116
|
/**
|
|
117
117
|
* The plan the alert applies to.
|
|
118
118
|
*/
|
|
119
|
-
plan:
|
|
119
|
+
plan: Alert.Plan | null;
|
|
120
120
|
/**
|
|
121
121
|
* The subscription the alert applies to.
|
|
122
122
|
*/
|
|
123
|
-
subscription:
|
|
123
|
+
subscription: Alert.Subscription | null;
|
|
124
124
|
/**
|
|
125
125
|
* The thresholds that define the conditions under which the alert will be
|
|
126
126
|
* triggered.
|
|
@@ -132,6 +132,39 @@ export interface Alert {
|
|
|
132
132
|
type: 'usage_exceeded' | 'cost_exceeded' | 'credit_balance_depleted' | 'credit_balance_dropped' | 'credit_balance_recovered';
|
|
133
133
|
}
|
|
134
134
|
export declare namespace Alert {
|
|
135
|
+
/**
|
|
136
|
+
* The customer the alert applies to.
|
|
137
|
+
*/
|
|
138
|
+
interface Customer {
|
|
139
|
+
id: string;
|
|
140
|
+
external_customer_id: string | null;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The metric the alert applies to.
|
|
144
|
+
*/
|
|
145
|
+
interface Metric {
|
|
146
|
+
id: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* The plan the alert applies to.
|
|
150
|
+
*/
|
|
151
|
+
interface Plan {
|
|
152
|
+
id: string | null;
|
|
153
|
+
/**
|
|
154
|
+
* An optional user-defined ID for this plan resource, used throughout the system
|
|
155
|
+
* as an alias for this Plan. Use this field to identify a plan by an existing
|
|
156
|
+
* identifier in your system.
|
|
157
|
+
*/
|
|
158
|
+
external_plan_id: string | null;
|
|
159
|
+
name: string | null;
|
|
160
|
+
plan_version: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The subscription the alert applies to.
|
|
164
|
+
*/
|
|
165
|
+
interface Subscription {
|
|
166
|
+
id: string;
|
|
167
|
+
}
|
|
135
168
|
/**
|
|
136
169
|
* Thresholds are used to define the conditions under which an alert will be
|
|
137
170
|
* triggered.
|
|
@@ -267,13 +300,19 @@ export declare namespace AlertCreateForSubscriptionParams {
|
|
|
267
300
|
value: number;
|
|
268
301
|
}
|
|
269
302
|
}
|
|
303
|
+
export interface AlertDisableParams {
|
|
304
|
+
/**
|
|
305
|
+
* Used to update the status of a plan alert scoped to this subscription_id
|
|
306
|
+
*/
|
|
307
|
+
subscription_id?: string | null;
|
|
308
|
+
}
|
|
309
|
+
export interface AlertEnableParams {
|
|
310
|
+
/**
|
|
311
|
+
* Used to update the status of a plan alert scoped to this subscription_id
|
|
312
|
+
*/
|
|
313
|
+
subscription_id?: string | null;
|
|
314
|
+
}
|
|
270
315
|
export declare namespace Alerts {
|
|
271
|
-
export
|
|
272
|
-
export import AlertsPage = AlertsAPI.AlertsPage;
|
|
273
|
-
export import AlertUpdateParams = AlertsAPI.AlertUpdateParams;
|
|
274
|
-
export import AlertListParams = AlertsAPI.AlertListParams;
|
|
275
|
-
export import AlertCreateForCustomerParams = AlertsAPI.AlertCreateForCustomerParams;
|
|
276
|
-
export import AlertCreateForExternalCustomerParams = AlertsAPI.AlertCreateForExternalCustomerParams;
|
|
277
|
-
export import AlertCreateForSubscriptionParams = AlertsAPI.AlertCreateForSubscriptionParams;
|
|
316
|
+
export { type Alert as Alert, AlertsPage as AlertsPage, type AlertUpdateParams as AlertUpdateParams, type AlertListParams as AlertListParams, type AlertCreateForCustomerParams as AlertCreateForCustomerParams, type AlertCreateForExternalCustomerParams as AlertCreateForExternalCustomerParams, type AlertCreateForSubscriptionParams as AlertCreateForSubscriptionParams, type AlertDisableParams as AlertDisableParams, type AlertEnableParams as AlertEnableParams, };
|
|
278
317
|
}
|
|
279
318
|
//# sourceMappingURL=alerts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../src/resources/alerts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,M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