orb-billing 4.33.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 +175 -0
- package/LICENSE +1 -1
- package/README.md +10 -1
- 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 +1 -1
- 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 +7 -25
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +10 -10
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +10 -10
- 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 +1 -3
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +0 -2
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +0 -2
- 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 +78 -13
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +8 -27
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +8 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +1 -6
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +1 -27
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +1 -4
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +1 -6
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +1 -27
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +1 -4
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +1 -2
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +0 -2
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +0 -2
- 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 +331 -9
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +3 -5
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +3 -5
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +1 -2
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +0 -2
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +0 -2
- 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 +339 -13
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +3 -5
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +3 -5
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +7629 -191
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +2 -29
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +2 -6
- 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 +68 -26
- 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 +2 -4
- package/src/resources/index.ts +113 -67
- package/src/resources/invoice-line-items.ts +5 -4
- package/src/resources/invoices.ts +108 -14
- package/src/resources/items.ts +10 -7
- package/src/resources/metrics.ts +10 -7
- package/src/resources/plans/external-plan-id.ts +2 -3
- package/src/resources/plans/index.ts +9 -2
- package/src/resources/plans/plans.ts +424 -9
- package/src/resources/prices/external-price-id.ts +2 -3
- package/src/resources/prices/index.ts +8 -8
- package/src/resources/prices/prices.ts +470 -14
- package/src/resources/subscriptions.ts +9231 -400
- 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/error.mjs
CHANGED
|
@@ -28,45 +28,56 @@ export class APIError extends OrbError {
|
|
|
28
28
|
return '(no status code or body)';
|
|
29
29
|
}
|
|
30
30
|
static generate(status, errorResponse, message, headers) {
|
|
31
|
-
if (!status) {
|
|
31
|
+
if (!status || !headers) {
|
|
32
32
|
return new APIConnectionError({ message, cause: castToError(errorResponse) });
|
|
33
33
|
}
|
|
34
34
|
const error = errorResponse;
|
|
35
35
|
const type = error?.['type'];
|
|
36
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#400-constraint-violation'
|
|
36
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#400-constraint-violation' &&
|
|
37
|
+
status === 400) {
|
|
37
38
|
return new ConstraintViolation(status, error, message, headers);
|
|
38
39
|
}
|
|
39
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation'
|
|
40
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#400-duplicate-resource-creation' &&
|
|
41
|
+
status === 400) {
|
|
40
42
|
return new DuplicateResourceCreation(status, error, message, headers);
|
|
41
43
|
}
|
|
42
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#404-feature-not-available'
|
|
44
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#404-feature-not-available' &&
|
|
45
|
+
status === 400) {
|
|
43
46
|
return new FeatureNotAvailable(status, error, message, headers);
|
|
44
47
|
}
|
|
45
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#400-request-validation-errors'
|
|
48
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#400-request-validation-errors' &&
|
|
49
|
+
status === 400) {
|
|
46
50
|
return new RequestValidationError(status, error, message, headers);
|
|
47
51
|
}
|
|
48
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#401-authentication-error'
|
|
52
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#401-authentication-error' &&
|
|
53
|
+
status === 401) {
|
|
49
54
|
return new OrbAuthenticationError(status, error, message, headers);
|
|
50
55
|
}
|
|
51
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#404-resource-not-found'
|
|
56
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#404-resource-not-found' &&
|
|
57
|
+
status === 404) {
|
|
52
58
|
return new ResourceNotFound(status, error, message, headers);
|
|
53
59
|
}
|
|
54
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#404-url-not-found') {
|
|
60
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#404-url-not-found' && status === 404) {
|
|
55
61
|
return new URLNotFound(status, error, message, headers);
|
|
56
62
|
}
|
|
57
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#409-resource-conflict'
|
|
63
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#409-resource-conflict' &&
|
|
64
|
+
status === 409) {
|
|
58
65
|
return new ResourceConflict(status, error, message, headers);
|
|
59
66
|
}
|
|
60
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#413-request-too-large'
|
|
67
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#413-request-too-large' &&
|
|
68
|
+
status === 413) {
|
|
61
69
|
return new RequestTooLarge(status, error, message, headers);
|
|
62
70
|
}
|
|
63
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#413-resource-too-large'
|
|
71
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#413-resource-too-large' &&
|
|
72
|
+
status === 413) {
|
|
64
73
|
return new ResourceTooLarge(status, error, message, headers);
|
|
65
74
|
}
|
|
66
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#429-too-many-requests'
|
|
75
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#429-too-many-requests' &&
|
|
76
|
+
status === 429) {
|
|
67
77
|
return new TooManyRequests(status, error, message, headers);
|
|
68
78
|
}
|
|
69
|
-
if (type === 'https://docs.withorb.com/reference/error-responses#500-internal-server-error'
|
|
79
|
+
if (type === 'https://docs.withorb.com/reference/error-responses#500-internal-server-error' &&
|
|
80
|
+
status === 500) {
|
|
70
81
|
return new OrbInternalServerError(status, error, message, headers);
|
|
71
82
|
}
|
|
72
83
|
if (status === 400) {
|
|
@@ -99,13 +110,11 @@ export class APIError extends OrbError {
|
|
|
99
110
|
export class APIUserAbortError extends APIError {
|
|
100
111
|
constructor({ message } = {}) {
|
|
101
112
|
super(undefined, undefined, message || 'Request was aborted.', undefined);
|
|
102
|
-
this.status = undefined;
|
|
103
113
|
}
|
|
104
114
|
}
|
|
105
115
|
export class APIConnectionError extends APIError {
|
|
106
116
|
constructor({ message, cause }) {
|
|
107
117
|
super(undefined, undefined, message || 'Connection error.', undefined);
|
|
108
|
-
this.status = undefined;
|
|
109
118
|
// in some environments the 'cause' property is already declared
|
|
110
119
|
// @ts-ignore
|
|
111
120
|
if (cause)
|
|
@@ -118,46 +127,18 @@ export class APIConnectionTimeoutError extends APIConnectionError {
|
|
|
118
127
|
}
|
|
119
128
|
}
|
|
120
129
|
export class BadRequestError extends APIError {
|
|
121
|
-
constructor() {
|
|
122
|
-
super(...arguments);
|
|
123
|
-
this.status = 400;
|
|
124
|
-
}
|
|
125
130
|
}
|
|
126
131
|
export class AuthenticationError extends APIError {
|
|
127
|
-
constructor() {
|
|
128
|
-
super(...arguments);
|
|
129
|
-
this.status = 401;
|
|
130
|
-
}
|
|
131
132
|
}
|
|
132
133
|
export class PermissionDeniedError extends APIError {
|
|
133
|
-
constructor() {
|
|
134
|
-
super(...arguments);
|
|
135
|
-
this.status = 403;
|
|
136
|
-
}
|
|
137
134
|
}
|
|
138
135
|
export class NotFoundError extends APIError {
|
|
139
|
-
constructor() {
|
|
140
|
-
super(...arguments);
|
|
141
|
-
this.status = 404;
|
|
142
|
-
}
|
|
143
136
|
}
|
|
144
137
|
export class ConflictError extends APIError {
|
|
145
|
-
constructor() {
|
|
146
|
-
super(...arguments);
|
|
147
|
-
this.status = 409;
|
|
148
|
-
}
|
|
149
138
|
}
|
|
150
139
|
export class UnprocessableEntityError extends APIError {
|
|
151
|
-
constructor() {
|
|
152
|
-
super(...arguments);
|
|
153
|
-
this.status = 422;
|
|
154
|
-
}
|
|
155
140
|
}
|
|
156
141
|
export class RateLimitError extends APIError {
|
|
157
|
-
constructor() {
|
|
158
|
-
super(...arguments);
|
|
159
|
-
this.status = 429;
|
|
160
|
-
}
|
|
161
142
|
}
|
|
162
143
|
export class InternalServerError extends APIError {
|
|
163
144
|
}
|
package/error.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAW;AAE/B,MAAM,OAAO,QAAS,SAAQ,KAAK;CAAG;AAEtC,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAW;AAE/B,MAAM,OAAO,QAAS,SAAQ,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AG,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
package/index.d.mts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import * as Errors from "./error.js";
|
|
2
|
-
import * as Uploads from "./uploads.js";
|
|
3
1
|
import { type Agent } from "./_shims/index.js";
|
|
4
2
|
import * as Core from "./core.js";
|
|
3
|
+
import * as Errors from "./error.js";
|
|
5
4
|
import * as Pagination from "./pagination.js";
|
|
5
|
+
import { type PageParams, PageResponse } from "./pagination.js";
|
|
6
|
+
import * as Uploads from "./uploads.js";
|
|
6
7
|
import * as API from "./resources/index.js";
|
|
8
|
+
import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage } from "./resources/alerts.js";
|
|
9
|
+
import { CreditNote, CreditNoteCreateParams, CreditNoteListParams, CreditNotes, CreditNotesPage } from "./resources/credit-notes.js";
|
|
10
|
+
import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
|
|
11
|
+
import { Invoice, InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices, InvoicesPage } from "./resources/invoices.js";
|
|
12
|
+
import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
|
|
13
|
+
import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
|
|
14
|
+
import { Subscription, SubscriptionCancelParams, SubscriptionCancelResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionPriceIntervalsResponse, SubscriptionSchedulePlanChangeParams, SubscriptionSchedulePlanChangeResponse, SubscriptionTriggerPhaseParams, SubscriptionTriggerPhaseResponse, SubscriptionUnscheduleCancellationResponse, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, SubscriptionUnschedulePendingPlanChangesResponse, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateFixedFeeQuantityResponse, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUpdateTrialResponse, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
|
|
15
|
+
import { TopLevel, TopLevelPingResponse } from "./resources/top-level.js";
|
|
16
|
+
import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } from "./resources/coupons/coupons.js";
|
|
17
|
+
import { Customer, CustomerCreateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage } from "./resources/customers/customers.js";
|
|
18
|
+
import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
|
|
19
|
+
import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
|
|
20
|
+
import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
|
|
21
|
+
import { EvaluatePriceGroup, Price, PriceCreateParams, PriceEvaluateParams, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices, PricesPage } from "./resources/prices/prices.js";
|
|
7
22
|
export interface ClientOptions {
|
|
8
23
|
/**
|
|
9
24
|
* Defaults to process.env['ORB_API_KEY'].
|
|
@@ -98,6 +113,7 @@ export declare class Orb extends Core.APIClient {
|
|
|
98
113
|
subscriptions: API.Subscriptions;
|
|
99
114
|
webhooks: API.Webhooks;
|
|
100
115
|
alerts: API.Alerts;
|
|
116
|
+
dimensionalPriceGroups: API.DimensionalPriceGroups;
|
|
101
117
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
102
118
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
103
119
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -132,115 +148,33 @@ export declare class Orb extends Core.APIClient {
|
|
|
132
148
|
static toFile: typeof Uploads.toFile;
|
|
133
149
|
static fileFromPath: typeof Uploads.fileFromPath;
|
|
134
150
|
}
|
|
135
|
-
export declare const OrbError: typeof Errors.OrbError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, URLNotFound: typeof Errors.URLNotFound, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, RequestTooLarge: typeof Errors.RequestTooLarge, TooManyRequests: typeof Errors.TooManyRequests, ResourceNotFound: typeof Errors.ResourceNotFound, ResourceConflict: typeof Errors.ResourceConflict, ResourceTooLarge: typeof Errors.ResourceTooLarge, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, ConstraintViolation: typeof Errors.ConstraintViolation, FeatureNotAvailable: typeof Errors.FeatureNotAvailable, PermissionDeniedError: typeof Errors.PermissionDeniedError, RequestValidationError: typeof Errors.RequestValidationError, OrbAuthenticationError: typeof Errors.OrbAuthenticationError, OrbInternalServerError: typeof Errors.OrbInternalServerError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError, DuplicateResourceCreation: typeof Errors.DuplicateResourceCreation;
|
|
136
|
-
export import toFile = Uploads.toFile;
|
|
137
|
-
export import fileFromPath = Uploads.fileFromPath;
|
|
138
151
|
export declare namespace Orb {
|
|
139
|
-
export
|
|
152
|
+
export type RequestOptions = Core.RequestOptions;
|
|
140
153
|
export import Page = Pagination.Page;
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
144
|
-
export
|
|
145
|
-
export
|
|
146
|
-
export
|
|
147
|
-
export
|
|
148
|
-
export
|
|
149
|
-
export
|
|
150
|
-
export
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
export
|
|
154
|
-
export
|
|
155
|
-
export
|
|
156
|
-
export
|
|
157
|
-
export
|
|
158
|
-
export
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
162
|
-
export
|
|
163
|
-
export import EventDeprecateResponse = API.EventDeprecateResponse;
|
|
164
|
-
export import EventIngestResponse = API.EventIngestResponse;
|
|
165
|
-
export import EventSearchResponse = API.EventSearchResponse;
|
|
166
|
-
export import EventUpdateParams = API.EventUpdateParams;
|
|
167
|
-
export import EventIngestParams = API.EventIngestParams;
|
|
168
|
-
export import EventSearchParams = API.EventSearchParams;
|
|
169
|
-
export import InvoiceLineItems = API.InvoiceLineItems;
|
|
170
|
-
export import InvoiceLineItemCreateResponse = API.InvoiceLineItemCreateResponse;
|
|
171
|
-
export import InvoiceLineItemCreateParams = API.InvoiceLineItemCreateParams;
|
|
172
|
-
export import Invoices = API.Invoices;
|
|
173
|
-
export import Invoice = API.Invoice;
|
|
174
|
-
export import InvoiceFetchUpcomingResponse = API.InvoiceFetchUpcomingResponse;
|
|
175
|
-
export import InvoicesPage = API.InvoicesPage;
|
|
176
|
-
export import InvoiceCreateParams = API.InvoiceCreateParams;
|
|
177
|
-
export import InvoiceUpdateParams = API.InvoiceUpdateParams;
|
|
178
|
-
export import InvoiceListParams = API.InvoiceListParams;
|
|
179
|
-
export import InvoiceFetchUpcomingParams = API.InvoiceFetchUpcomingParams;
|
|
180
|
-
export import InvoiceIssueParams = API.InvoiceIssueParams;
|
|
181
|
-
export import InvoiceMarkPaidParams = API.InvoiceMarkPaidParams;
|
|
182
|
-
export import Items = API.Items;
|
|
183
|
-
export import Item = API.Item;
|
|
184
|
-
export import ItemsPage = API.ItemsPage;
|
|
185
|
-
export import ItemCreateParams = API.ItemCreateParams;
|
|
186
|
-
export import ItemUpdateParams = API.ItemUpdateParams;
|
|
187
|
-
export import ItemListParams = API.ItemListParams;
|
|
188
|
-
export import Metrics = API.Metrics;
|
|
189
|
-
export import BillableMetric = API.BillableMetric;
|
|
190
|
-
export import BillableMetricsPage = API.BillableMetricsPage;
|
|
191
|
-
export import MetricCreateParams = API.MetricCreateParams;
|
|
192
|
-
export import MetricUpdateParams = API.MetricUpdateParams;
|
|
193
|
-
export import MetricListParams = API.MetricListParams;
|
|
194
|
-
export import Plans = API.Plans;
|
|
195
|
-
export import Plan = API.Plan;
|
|
196
|
-
export import PlansPage = API.PlansPage;
|
|
197
|
-
export import PlanCreateParams = API.PlanCreateParams;
|
|
198
|
-
export import PlanUpdateParams = API.PlanUpdateParams;
|
|
199
|
-
export import PlanListParams = API.PlanListParams;
|
|
200
|
-
export import Prices = API.Prices;
|
|
201
|
-
export import EvaluatePriceGroup = API.EvaluatePriceGroup;
|
|
202
|
-
export import Price = API.Price;
|
|
203
|
-
export import PriceEvaluateResponse = API.PriceEvaluateResponse;
|
|
204
|
-
export import PricesPage = API.PricesPage;
|
|
205
|
-
export import PriceCreateParams = API.PriceCreateParams;
|
|
206
|
-
export import PriceUpdateParams = API.PriceUpdateParams;
|
|
207
|
-
export import PriceListParams = API.PriceListParams;
|
|
208
|
-
export import PriceEvaluateParams = API.PriceEvaluateParams;
|
|
209
|
-
export import Subscriptions = API.Subscriptions;
|
|
210
|
-
export import Subscription = API.Subscription;
|
|
211
|
-
export import SubscriptionUsage = API.SubscriptionUsage;
|
|
212
|
-
export import SubscriptionFetchCostsResponse = API.SubscriptionFetchCostsResponse;
|
|
213
|
-
export import SubscriptionFetchScheduleResponse = API.SubscriptionFetchScheduleResponse;
|
|
214
|
-
export import SubscriptionsPage = API.SubscriptionsPage;
|
|
215
|
-
export import SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
216
|
-
export import SubscriptionCreateParams = API.SubscriptionCreateParams;
|
|
217
|
-
export import SubscriptionUpdateParams = API.SubscriptionUpdateParams;
|
|
218
|
-
export import SubscriptionListParams = API.SubscriptionListParams;
|
|
219
|
-
export import SubscriptionCancelParams = API.SubscriptionCancelParams;
|
|
220
|
-
export import SubscriptionFetchCostsParams = API.SubscriptionFetchCostsParams;
|
|
221
|
-
export import SubscriptionFetchScheduleParams = API.SubscriptionFetchScheduleParams;
|
|
222
|
-
export import SubscriptionFetchUsageParams = API.SubscriptionFetchUsageParams;
|
|
223
|
-
export import SubscriptionPriceIntervalsParams = API.SubscriptionPriceIntervalsParams;
|
|
224
|
-
export import SubscriptionSchedulePlanChangeParams = API.SubscriptionSchedulePlanChangeParams;
|
|
225
|
-
export import SubscriptionTriggerPhaseParams = API.SubscriptionTriggerPhaseParams;
|
|
226
|
-
export import SubscriptionUnscheduleFixedFeeQuantityUpdatesParams = API.SubscriptionUnscheduleFixedFeeQuantityUpdatesParams;
|
|
227
|
-
export import SubscriptionUpdateFixedFeeQuantityParams = API.SubscriptionUpdateFixedFeeQuantityParams;
|
|
228
|
-
export import SubscriptionUpdateTrialParams = API.SubscriptionUpdateTrialParams;
|
|
229
|
-
export import Alerts = API.Alerts;
|
|
230
|
-
export import Alert = API.Alert;
|
|
231
|
-
export import AlertsPage = API.AlertsPage;
|
|
232
|
-
export import AlertUpdateParams = API.AlertUpdateParams;
|
|
233
|
-
export import AlertListParams = API.AlertListParams;
|
|
234
|
-
export import AlertCreateForCustomerParams = API.AlertCreateForCustomerParams;
|
|
235
|
-
export import AlertCreateForExternalCustomerParams = API.AlertCreateForExternalCustomerParams;
|
|
236
|
-
export import AlertCreateForSubscriptionParams = API.AlertCreateForSubscriptionParams;
|
|
237
|
-
export import AmountDiscount = API.AmountDiscount;
|
|
238
|
-
export import BillingCycleRelativeDate = API.BillingCycleRelativeDate;
|
|
239
|
-
export import Discount = API.Discount;
|
|
240
|
-
export import InvoiceLevelDiscount = API.InvoiceLevelDiscount;
|
|
241
|
-
export import PaginationMetadata = API.PaginationMetadata;
|
|
242
|
-
export import PercentageDiscount = API.PercentageDiscount;
|
|
243
|
-
export import TrialDiscount = API.TrialDiscount;
|
|
154
|
+
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
155
|
+
export { TopLevel as TopLevel, type TopLevelPingResponse as TopLevelPingResponse };
|
|
156
|
+
export { Coupons as Coupons, type Coupon as Coupon, CouponsPage as CouponsPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
157
|
+
export { CreditNotes as CreditNotes, type CreditNote as CreditNote, CreditNotesPage as CreditNotesPage, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
|
|
158
|
+
export { Customers as Customers, type Customer as Customer, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
|
|
159
|
+
export { Events as Events, type EventUpdateResponse as EventUpdateResponse, type EventDeprecateResponse as EventDeprecateResponse, type EventIngestResponse as EventIngestResponse, type EventSearchResponse as EventSearchResponse, type EventUpdateParams as EventUpdateParams, type EventIngestParams as EventIngestParams, type EventSearchParams as EventSearchParams, };
|
|
160
|
+
export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
|
|
161
|
+
export { Invoices as Invoices, type Invoice as Invoice, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, InvoicesPage as InvoicesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
162
|
+
export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
|
|
163
|
+
export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
|
|
164
|
+
export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
|
|
165
|
+
export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type Price as Price, type PriceEvaluateResponse as PriceEvaluateResponse, PricesPage as PricesPage, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, };
|
|
166
|
+
export { type Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionCancelResponse as SubscriptionCancelResponse, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse, type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse, type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse, type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse, type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse as SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, type SubscriptionUnschedulePendingPlanChangesResponse as SubscriptionUnschedulePendingPlanChangesResponse, type SubscriptionUpdateFixedFeeQuantityResponse as SubscriptionUpdateFixedFeeQuantityResponse, type SubscriptionUpdateTrialResponse as SubscriptionUpdateTrialResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
|
|
167
|
+
export { Alerts as Alerts, 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, };
|
|
168
|
+
export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
|
|
169
|
+
export type AmountDiscount = API.AmountDiscount;
|
|
170
|
+
export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
|
|
171
|
+
export type Discount = API.Discount;
|
|
172
|
+
export type InvoiceLevelDiscount = API.InvoiceLevelDiscount;
|
|
173
|
+
export type PaginationMetadata = API.PaginationMetadata;
|
|
174
|
+
export type PercentageDiscount = API.PercentageDiscount;
|
|
175
|
+
export type TrialDiscount = API.TrialDiscount;
|
|
244
176
|
}
|
|
177
|
+
export { toFile, fileFromPath } from "./uploads.js";
|
|
178
|
+
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.js";
|
|
245
179
|
export default Orb;
|
|
246
180
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import * as Errors from "./error.js";
|
|
2
|
-
import * as Uploads from "./uploads.js";
|
|
3
1
|
import { type Agent } from "./_shims/index.js";
|
|
4
2
|
import * as Core from "./core.js";
|
|
3
|
+
import * as Errors from "./error.js";
|
|
5
4
|
import * as Pagination from "./pagination.js";
|
|
5
|
+
import { type PageParams, PageResponse } from "./pagination.js";
|
|
6
|
+
import * as Uploads from "./uploads.js";
|
|
6
7
|
import * as API from "./resources/index.js";
|
|
8
|
+
import { Alert, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, AlertCreateForSubscriptionParams, AlertDisableParams, AlertEnableParams, AlertListParams, AlertUpdateParams, Alerts, AlertsPage } from "./resources/alerts.js";
|
|
9
|
+
import { CreditNote, CreditNoteCreateParams, CreditNoteListParams, CreditNotes, CreditNotesPage } from "./resources/credit-notes.js";
|
|
10
|
+
import { InvoiceLineItemCreateParams, InvoiceLineItemCreateResponse, InvoiceLineItems } from "./resources/invoice-line-items.js";
|
|
11
|
+
import { Invoice, InvoiceCreateParams, InvoiceFetchUpcomingParams, InvoiceFetchUpcomingResponse, InvoiceIssueParams, InvoiceListParams, InvoiceMarkPaidParams, InvoiceUpdateParams, Invoices, InvoicesPage } from "./resources/invoices.js";
|
|
12
|
+
import { Item, ItemCreateParams, ItemListParams, ItemUpdateParams, Items, ItemsPage } from "./resources/items.js";
|
|
13
|
+
import { BillableMetric, BillableMetricsPage, MetricCreateParams, MetricListParams, MetricUpdateParams, Metrics } from "./resources/metrics.js";
|
|
14
|
+
import { Subscription, SubscriptionCancelParams, SubscriptionCancelResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionFetchCostsParams, SubscriptionFetchCostsResponse, SubscriptionFetchScheduleParams, SubscriptionFetchScheduleResponse, SubscriptionFetchScheduleResponsesPage, SubscriptionFetchUsageParams, SubscriptionListParams, SubscriptionPriceIntervalsParams, SubscriptionPriceIntervalsResponse, SubscriptionSchedulePlanChangeParams, SubscriptionSchedulePlanChangeResponse, SubscriptionTriggerPhaseParams, SubscriptionTriggerPhaseResponse, SubscriptionUnscheduleCancellationResponse, SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, SubscriptionUnschedulePendingPlanChangesResponse, SubscriptionUpdateFixedFeeQuantityParams, SubscriptionUpdateFixedFeeQuantityResponse, SubscriptionUpdateParams, SubscriptionUpdateTrialParams, SubscriptionUpdateTrialResponse, SubscriptionUsage, Subscriptions, SubscriptionsPage } from "./resources/subscriptions.js";
|
|
15
|
+
import { TopLevel, TopLevelPingResponse } from "./resources/top-level.js";
|
|
16
|
+
import { Coupon, CouponCreateParams, CouponListParams, Coupons, CouponsPage } from "./resources/coupons/coupons.js";
|
|
17
|
+
import { Customer, CustomerCreateParams, CustomerListParams, CustomerUpdateByExternalIDParams, CustomerUpdateParams, Customers, CustomersPage } from "./resources/customers/customers.js";
|
|
18
|
+
import { DimensionalPriceGroup, DimensionalPriceGroupCreateParams, DimensionalPriceGroupListParams, DimensionalPriceGroups, DimensionalPriceGroupsPage } from "./resources/dimensional-price-groups/dimensional-price-groups.js";
|
|
19
|
+
import { EventDeprecateResponse, EventIngestParams, EventIngestResponse, EventSearchParams, EventSearchResponse, EventUpdateParams, EventUpdateResponse, Events } from "./resources/events/events.js";
|
|
20
|
+
import { Plan, PlanCreateParams, PlanListParams, PlanUpdateParams, Plans, PlansPage } from "./resources/plans/plans.js";
|
|
21
|
+
import { EvaluatePriceGroup, Price, PriceCreateParams, PriceEvaluateParams, PriceEvaluateResponse, PriceListParams, PriceUpdateParams, Prices, PricesPage } from "./resources/prices/prices.js";
|
|
7
22
|
export interface ClientOptions {
|
|
8
23
|
/**
|
|
9
24
|
* Defaults to process.env['ORB_API_KEY'].
|
|
@@ -98,6 +113,7 @@ export declare class Orb extends Core.APIClient {
|
|
|
98
113
|
subscriptions: API.Subscriptions;
|
|
99
114
|
webhooks: API.Webhooks;
|
|
100
115
|
alerts: API.Alerts;
|
|
116
|
+
dimensionalPriceGroups: API.DimensionalPriceGroups;
|
|
101
117
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
102
118
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
103
119
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -132,115 +148,33 @@ export declare class Orb extends Core.APIClient {
|
|
|
132
148
|
static toFile: typeof Uploads.toFile;
|
|
133
149
|
static fileFromPath: typeof Uploads.fileFromPath;
|
|
134
150
|
}
|
|
135
|
-
export declare const OrbError: typeof Errors.OrbError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, URLNotFound: typeof Errors.URLNotFound, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, RequestTooLarge: typeof Errors.RequestTooLarge, TooManyRequests: typeof Errors.TooManyRequests, ResourceNotFound: typeof Errors.ResourceNotFound, ResourceConflict: typeof Errors.ResourceConflict, ResourceTooLarge: typeof Errors.ResourceTooLarge, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, ConstraintViolation: typeof Errors.ConstraintViolation, FeatureNotAvailable: typeof Errors.FeatureNotAvailable, PermissionDeniedError: typeof Errors.PermissionDeniedError, RequestValidationError: typeof Errors.RequestValidationError, OrbAuthenticationError: typeof Errors.OrbAuthenticationError, OrbInternalServerError: typeof Errors.OrbInternalServerError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError, DuplicateResourceCreation: typeof Errors.DuplicateResourceCreation;
|
|
136
|
-
export import toFile = Uploads.toFile;
|
|
137
|
-
export import fileFromPath = Uploads.fileFromPath;
|
|
138
151
|
export declare namespace Orb {
|
|
139
|
-
export
|
|
152
|
+
export type RequestOptions = Core.RequestOptions;
|
|
140
153
|
export import Page = Pagination.Page;
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
144
|
-
export
|
|
145
|
-
export
|
|
146
|
-
export
|
|
147
|
-
export
|
|
148
|
-
export
|
|
149
|
-
export
|
|
150
|
-
export
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
export
|
|
154
|
-
export
|
|
155
|
-
export
|
|
156
|
-
export
|
|
157
|
-
export
|
|
158
|
-
export
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
162
|
-
export
|
|
163
|
-
export import EventDeprecateResponse = API.EventDeprecateResponse;
|
|
164
|
-
export import EventIngestResponse = API.EventIngestResponse;
|
|
165
|
-
export import EventSearchResponse = API.EventSearchResponse;
|
|
166
|
-
export import EventUpdateParams = API.EventUpdateParams;
|
|
167
|
-
export import EventIngestParams = API.EventIngestParams;
|
|
168
|
-
export import EventSearchParams = API.EventSearchParams;
|
|
169
|
-
export import InvoiceLineItems = API.InvoiceLineItems;
|
|
170
|
-
export import InvoiceLineItemCreateResponse = API.InvoiceLineItemCreateResponse;
|
|
171
|
-
export import InvoiceLineItemCreateParams = API.InvoiceLineItemCreateParams;
|
|
172
|
-
export import Invoices = API.Invoices;
|
|
173
|
-
export import Invoice = API.Invoice;
|
|
174
|
-
export import InvoiceFetchUpcomingResponse = API.InvoiceFetchUpcomingResponse;
|
|
175
|
-
export import InvoicesPage = API.InvoicesPage;
|
|
176
|
-
export import InvoiceCreateParams = API.InvoiceCreateParams;
|
|
177
|
-
export import InvoiceUpdateParams = API.InvoiceUpdateParams;
|
|
178
|
-
export import InvoiceListParams = API.InvoiceListParams;
|
|
179
|
-
export import InvoiceFetchUpcomingParams = API.InvoiceFetchUpcomingParams;
|
|
180
|
-
export import InvoiceIssueParams = API.InvoiceIssueParams;
|
|
181
|
-
export import InvoiceMarkPaidParams = API.InvoiceMarkPaidParams;
|
|
182
|
-
export import Items = API.Items;
|
|
183
|
-
export import Item = API.Item;
|
|
184
|
-
export import ItemsPage = API.ItemsPage;
|
|
185
|
-
export import ItemCreateParams = API.ItemCreateParams;
|
|
186
|
-
export import ItemUpdateParams = API.ItemUpdateParams;
|
|
187
|
-
export import ItemListParams = API.ItemListParams;
|
|
188
|
-
export import Metrics = API.Metrics;
|
|
189
|
-
export import BillableMetric = API.BillableMetric;
|
|
190
|
-
export import BillableMetricsPage = API.BillableMetricsPage;
|
|
191
|
-
export import MetricCreateParams = API.MetricCreateParams;
|
|
192
|
-
export import MetricUpdateParams = API.MetricUpdateParams;
|
|
193
|
-
export import MetricListParams = API.MetricListParams;
|
|
194
|
-
export import Plans = API.Plans;
|
|
195
|
-
export import Plan = API.Plan;
|
|
196
|
-
export import PlansPage = API.PlansPage;
|
|
197
|
-
export import PlanCreateParams = API.PlanCreateParams;
|
|
198
|
-
export import PlanUpdateParams = API.PlanUpdateParams;
|
|
199
|
-
export import PlanListParams = API.PlanListParams;
|
|
200
|
-
export import Prices = API.Prices;
|
|
201
|
-
export import EvaluatePriceGroup = API.EvaluatePriceGroup;
|
|
202
|
-
export import Price = API.Price;
|
|
203
|
-
export import PriceEvaluateResponse = API.PriceEvaluateResponse;
|
|
204
|
-
export import PricesPage = API.PricesPage;
|
|
205
|
-
export import PriceCreateParams = API.PriceCreateParams;
|
|
206
|
-
export import PriceUpdateParams = API.PriceUpdateParams;
|
|
207
|
-
export import PriceListParams = API.PriceListParams;
|
|
208
|
-
export import PriceEvaluateParams = API.PriceEvaluateParams;
|
|
209
|
-
export import Subscriptions = API.Subscriptions;
|
|
210
|
-
export import Subscription = API.Subscription;
|
|
211
|
-
export import SubscriptionUsage = API.SubscriptionUsage;
|
|
212
|
-
export import SubscriptionFetchCostsResponse = API.SubscriptionFetchCostsResponse;
|
|
213
|
-
export import SubscriptionFetchScheduleResponse = API.SubscriptionFetchScheduleResponse;
|
|
214
|
-
export import SubscriptionsPage = API.SubscriptionsPage;
|
|
215
|
-
export import SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
216
|
-
export import SubscriptionCreateParams = API.SubscriptionCreateParams;
|
|
217
|
-
export import SubscriptionUpdateParams = API.SubscriptionUpdateParams;
|
|
218
|
-
export import SubscriptionListParams = API.SubscriptionListParams;
|
|
219
|
-
export import SubscriptionCancelParams = API.SubscriptionCancelParams;
|
|
220
|
-
export import SubscriptionFetchCostsParams = API.SubscriptionFetchCostsParams;
|
|
221
|
-
export import SubscriptionFetchScheduleParams = API.SubscriptionFetchScheduleParams;
|
|
222
|
-
export import SubscriptionFetchUsageParams = API.SubscriptionFetchUsageParams;
|
|
223
|
-
export import SubscriptionPriceIntervalsParams = API.SubscriptionPriceIntervalsParams;
|
|
224
|
-
export import SubscriptionSchedulePlanChangeParams = API.SubscriptionSchedulePlanChangeParams;
|
|
225
|
-
export import SubscriptionTriggerPhaseParams = API.SubscriptionTriggerPhaseParams;
|
|
226
|
-
export import SubscriptionUnscheduleFixedFeeQuantityUpdatesParams = API.SubscriptionUnscheduleFixedFeeQuantityUpdatesParams;
|
|
227
|
-
export import SubscriptionUpdateFixedFeeQuantityParams = API.SubscriptionUpdateFixedFeeQuantityParams;
|
|
228
|
-
export import SubscriptionUpdateTrialParams = API.SubscriptionUpdateTrialParams;
|
|
229
|
-
export import Alerts = API.Alerts;
|
|
230
|
-
export import Alert = API.Alert;
|
|
231
|
-
export import AlertsPage = API.AlertsPage;
|
|
232
|
-
export import AlertUpdateParams = API.AlertUpdateParams;
|
|
233
|
-
export import AlertListParams = API.AlertListParams;
|
|
234
|
-
export import AlertCreateForCustomerParams = API.AlertCreateForCustomerParams;
|
|
235
|
-
export import AlertCreateForExternalCustomerParams = API.AlertCreateForExternalCustomerParams;
|
|
236
|
-
export import AlertCreateForSubscriptionParams = API.AlertCreateForSubscriptionParams;
|
|
237
|
-
export import AmountDiscount = API.AmountDiscount;
|
|
238
|
-
export import BillingCycleRelativeDate = API.BillingCycleRelativeDate;
|
|
239
|
-
export import Discount = API.Discount;
|
|
240
|
-
export import InvoiceLevelDiscount = API.InvoiceLevelDiscount;
|
|
241
|
-
export import PaginationMetadata = API.PaginationMetadata;
|
|
242
|
-
export import PercentageDiscount = API.PercentageDiscount;
|
|
243
|
-
export import TrialDiscount = API.TrialDiscount;
|
|
154
|
+
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
155
|
+
export { TopLevel as TopLevel, type TopLevelPingResponse as TopLevelPingResponse };
|
|
156
|
+
export { Coupons as Coupons, type Coupon as Coupon, CouponsPage as CouponsPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, };
|
|
157
|
+
export { CreditNotes as CreditNotes, type CreditNote as CreditNote, CreditNotesPage as CreditNotesPage, type CreditNoteCreateParams as CreditNoteCreateParams, type CreditNoteListParams as CreditNoteListParams, };
|
|
158
|
+
export { Customers as Customers, type Customer as Customer, CustomersPage as CustomersPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerUpdateByExternalIDParams as CustomerUpdateByExternalIDParams, };
|
|
159
|
+
export { Events as Events, type EventUpdateResponse as EventUpdateResponse, type EventDeprecateResponse as EventDeprecateResponse, type EventIngestResponse as EventIngestResponse, type EventSearchResponse as EventSearchResponse, type EventUpdateParams as EventUpdateParams, type EventIngestParams as EventIngestParams, type EventSearchParams as EventSearchParams, };
|
|
160
|
+
export { InvoiceLineItems as InvoiceLineItems, type InvoiceLineItemCreateResponse as InvoiceLineItemCreateResponse, type InvoiceLineItemCreateParams as InvoiceLineItemCreateParams, };
|
|
161
|
+
export { Invoices as Invoices, type Invoice as Invoice, type InvoiceFetchUpcomingResponse as InvoiceFetchUpcomingResponse, InvoicesPage as InvoicesPage, type InvoiceCreateParams as InvoiceCreateParams, type InvoiceUpdateParams as InvoiceUpdateParams, type InvoiceListParams as InvoiceListParams, type InvoiceFetchUpcomingParams as InvoiceFetchUpcomingParams, type InvoiceIssueParams as InvoiceIssueParams, type InvoiceMarkPaidParams as InvoiceMarkPaidParams, };
|
|
162
|
+
export { Items as Items, type Item as Item, ItemsPage as ItemsPage, type ItemCreateParams as ItemCreateParams, type ItemUpdateParams as ItemUpdateParams, type ItemListParams as ItemListParams, };
|
|
163
|
+
export { Metrics as Metrics, type BillableMetric as BillableMetric, BillableMetricsPage as BillableMetricsPage, type MetricCreateParams as MetricCreateParams, type MetricUpdateParams as MetricUpdateParams, type MetricListParams as MetricListParams, };
|
|
164
|
+
export { Plans as Plans, type Plan as Plan, PlansPage as PlansPage, type PlanCreateParams as PlanCreateParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, };
|
|
165
|
+
export { Prices as Prices, type EvaluatePriceGroup as EvaluatePriceGroup, type Price as Price, type PriceEvaluateResponse as PriceEvaluateResponse, PricesPage as PricesPage, type PriceCreateParams as PriceCreateParams, type PriceUpdateParams as PriceUpdateParams, type PriceListParams as PriceListParams, type PriceEvaluateParams as PriceEvaluateParams, };
|
|
166
|
+
export { type Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionUsage as SubscriptionUsage, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionCancelResponse as SubscriptionCancelResponse, type SubscriptionFetchCostsResponse as SubscriptionFetchCostsResponse, type SubscriptionFetchScheduleResponse as SubscriptionFetchScheduleResponse, type SubscriptionPriceIntervalsResponse as SubscriptionPriceIntervalsResponse, type SubscriptionSchedulePlanChangeResponse as SubscriptionSchedulePlanChangeResponse, type SubscriptionTriggerPhaseResponse as SubscriptionTriggerPhaseResponse, type SubscriptionUnscheduleCancellationResponse as SubscriptionUnscheduleCancellationResponse, type SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse as SubscriptionUnscheduleFixedFeeQuantityUpdatesResponse, type SubscriptionUnschedulePendingPlanChangesResponse as SubscriptionUnschedulePendingPlanChangesResponse, type SubscriptionUpdateFixedFeeQuantityResponse as SubscriptionUpdateFixedFeeQuantityResponse, type SubscriptionUpdateTrialResponse as SubscriptionUpdateTrialResponse, SubscriptionsPage as SubscriptionsPage, SubscriptionFetchScheduleResponsesPage as SubscriptionFetchScheduleResponsesPage, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionFetchCostsParams as SubscriptionFetchCostsParams, type SubscriptionFetchScheduleParams as SubscriptionFetchScheduleParams, type SubscriptionFetchUsageParams as SubscriptionFetchUsageParams, type SubscriptionPriceIntervalsParams as SubscriptionPriceIntervalsParams, type SubscriptionSchedulePlanChangeParams as SubscriptionSchedulePlanChangeParams, type SubscriptionTriggerPhaseParams as SubscriptionTriggerPhaseParams, type SubscriptionUnscheduleFixedFeeQuantityUpdatesParams as SubscriptionUnscheduleFixedFeeQuantityUpdatesParams, type SubscriptionUpdateFixedFeeQuantityParams as SubscriptionUpdateFixedFeeQuantityParams, type SubscriptionUpdateTrialParams as SubscriptionUpdateTrialParams, };
|
|
167
|
+
export { Alerts as Alerts, 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, };
|
|
168
|
+
export { type DimensionalPriceGroups as DimensionalPriceGroups, type DimensionalPriceGroup as DimensionalPriceGroup, DimensionalPriceGroupsPage as DimensionalPriceGroupsPage, type DimensionalPriceGroupCreateParams as DimensionalPriceGroupCreateParams, type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams, };
|
|
169
|
+
export type AmountDiscount = API.AmountDiscount;
|
|
170
|
+
export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
|
|
171
|
+
export type Discount = API.Discount;
|
|
172
|
+
export type InvoiceLevelDiscount = API.InvoiceLevelDiscount;
|
|
173
|
+
export type PaginationMetadata = API.PaginationMetadata;
|
|
174
|
+
export type PercentageDiscount = API.PercentageDiscount;
|
|
175
|
+
export type TrialDiscount = API.TrialDiscount;
|
|
244
176
|
}
|
|
177
|
+
export { toFile, fileFromPath } from "./uploads.js";
|
|
178
|
+
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.js";
|
|
245
179
|
export default Orb;
|
|
246
180
|
//# sourceMappingURL=index.d.ts.map
|