@rebilly/instruments 8.42.1 → 8.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.js +14 -9
- package/dist/index.min.js +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [8.43.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.42.1...instruments/core-v8.43.0) (2024-02-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **rebilly-js-sdk:** Add Subscriptions resource ([#3329](https://github.com/Rebilly/rebilly/issues/3329)) ([754309b](https://github.com/Rebilly/rebilly/commit/754309bbcd2a733a6fe1fe6d3267d43def87916a))
|
|
7
|
+
|
|
1
8
|
## [8.42.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v8.42.0...instruments/core-v8.42.1) (2024-02-06)
|
|
2
9
|
|
|
3
10
|
|
package/dist/index.js
CHANGED
|
@@ -8252,7 +8252,7 @@ function SubscriptionReactivationsResource({ apiHandler }) {
|
|
|
8252
8252
|
}
|
|
8253
8253
|
};
|
|
8254
8254
|
}
|
|
8255
|
-
function SubscriptionsResource$
|
|
8255
|
+
function SubscriptionsResource$2({ apiHandler }) {
|
|
8256
8256
|
return {
|
|
8257
8257
|
getAll({
|
|
8258
8258
|
filter: filter2 = null,
|
|
@@ -8707,7 +8707,7 @@ class ApiInstance {
|
|
|
8707
8707
|
this.subscriptionReactivations = SubscriptionReactivationsResource({
|
|
8708
8708
|
apiHandler
|
|
8709
8709
|
});
|
|
8710
|
-
this.subscriptions = SubscriptionsResource$
|
|
8710
|
+
this.subscriptions = SubscriptionsResource$2({ apiHandler });
|
|
8711
8711
|
this.tags = TagsResource({ apiHandler });
|
|
8712
8712
|
this.tagsRules = TagsRulesResource({ apiHandler });
|
|
8713
8713
|
this.tracking = TrackingResource({ apiHandler });
|
|
@@ -9093,7 +9093,7 @@ function ReportsResource({ apiHandler }) {
|
|
|
9093
9093
|
}
|
|
9094
9094
|
};
|
|
9095
9095
|
}
|
|
9096
|
-
function SubscriptionsResource({ apiHandler }) {
|
|
9096
|
+
function SubscriptionsResource$1({ apiHandler }) {
|
|
9097
9097
|
return {
|
|
9098
9098
|
getSubscriptionSummaryMetrics({ subscriptionId }) {
|
|
9099
9099
|
return apiHandler.get(`subscriptions/${subscriptionId}/summary-metrics`);
|
|
@@ -9140,7 +9140,7 @@ const ExperimentalResources = {
|
|
|
9140
9140
|
DataExportsResource,
|
|
9141
9141
|
HistogramsResource,
|
|
9142
9142
|
ReportsResource,
|
|
9143
|
-
SubscriptionsResource,
|
|
9143
|
+
SubscriptionsResource: SubscriptionsResource$1,
|
|
9144
9144
|
TimelinesResource,
|
|
9145
9145
|
LocationResource
|
|
9146
9146
|
};
|
|
@@ -9329,9 +9329,6 @@ function OrdersResource({ apiHandler }) {
|
|
|
9329
9329
|
const params = { filter: filter2, sort, limit, offset, q };
|
|
9330
9330
|
return apiHandler.getAll(`orders`, params);
|
|
9331
9331
|
},
|
|
9332
|
-
create({ data }) {
|
|
9333
|
-
return apiHandler.post(`orders`, data);
|
|
9334
|
-
},
|
|
9335
9332
|
get({ id: id2 }) {
|
|
9336
9333
|
return apiHandler.get(`orders/${id2}`);
|
|
9337
9334
|
},
|
|
@@ -9486,6 +9483,13 @@ function RichBillingPortalsResource({ apiHandler }) {
|
|
|
9486
9483
|
}
|
|
9487
9484
|
};
|
|
9488
9485
|
}
|
|
9486
|
+
function SubscriptionsResource({ apiHandler }) {
|
|
9487
|
+
return {
|
|
9488
|
+
create({ data }) {
|
|
9489
|
+
return apiHandler.post(`subscriptions`, data);
|
|
9490
|
+
}
|
|
9491
|
+
};
|
|
9492
|
+
}
|
|
9489
9493
|
function TransactionsResource({ apiHandler }) {
|
|
9490
9494
|
return {
|
|
9491
9495
|
getAll({
|
|
@@ -9542,6 +9546,7 @@ class StorefrontApiInstance {
|
|
|
9542
9546
|
this.quotes = QuotesResource({ apiHandler });
|
|
9543
9547
|
this.readyToPayout = ReadyToPayoutResource({ apiHandler });
|
|
9544
9548
|
this.richBillingPortals = RichBillingPortalsResource({ apiHandler });
|
|
9549
|
+
this.subscriptions = SubscriptionsResource({ apiHandler });
|
|
9545
9550
|
this.transactions = TransactionsResource({ apiHandler });
|
|
9546
9551
|
this.websites = WebsitesResource({ apiHandler });
|
|
9547
9552
|
this.checkoutForm = this.checkoutForms;
|
|
@@ -23444,7 +23449,7 @@ function handleComputedProperty(options) {
|
|
|
23444
23449
|
var _a;
|
|
23445
23450
|
return Object.assign({}, options, {
|
|
23446
23451
|
_computed: {
|
|
23447
|
-
version: "8.42.
|
|
23452
|
+
version: "8.42.1",
|
|
23448
23453
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
23449
23454
|
}
|
|
23450
23455
|
});
|
|
@@ -26784,7 +26789,7 @@ class RebillyInstrumentsInstance {
|
|
|
26784
26789
|
await show({ componentName, payload });
|
|
26785
26790
|
}
|
|
26786
26791
|
get version() {
|
|
26787
|
-
return `RebillyInstruments Ver.${"8.42.
|
|
26792
|
+
return `RebillyInstruments Ver.${"8.42.1"}`;
|
|
26788
26793
|
}
|
|
26789
26794
|
on(eventName, callback) {
|
|
26790
26795
|
on({ eventName, callback });
|