@vrplatform/hyperline-client 1.0.9 → 1.0.10
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/build/main/_types.generated.d.ts +202 -80
- package/build/main/_types.generated.js.map +1 -1
- package/build/main/client.d.ts +7 -15
- package/build/main/client.js +2 -2
- package/build/main/client.js.map +1 -1
- package/build/main/const.d.ts +4 -0
- package/build/main/const.js +4 -0
- package/build/main/const.js.map +1 -1
- package/build/module/_types.generated.d.ts +202 -80
- package/build/module/_types.generated.js.map +1 -1
- package/build/module/client.d.ts +7 -15
- package/build/module/client.js +2 -2
- package/build/module/client.js.map +1 -1
- package/build/module/const.d.ts +4 -0
- package/build/module/const.js +4 -0
- package/build/module/const.js.map +1 -1
- package/package.json +1 -1
- package/src/_types.generated.ts +202 -80
- package/src/client.ts +4 -2
- package/src/const.ts +5 -0
package/src/client.ts
CHANGED
|
@@ -187,7 +187,7 @@ export class HyperlineAPI {
|
|
|
187
187
|
|
|
188
188
|
// SUBSCRIPTION
|
|
189
189
|
|
|
190
|
-
async getSubscription(id: string) {
|
|
190
|
+
async getSubscription(id: string, liveBilling = false) {
|
|
191
191
|
if (!id) {
|
|
192
192
|
this.logger.error('Missing subscription ID', { id });
|
|
193
193
|
throw new Error('Missing subscription ID');
|
|
@@ -195,7 +195,9 @@ export class HyperlineAPI {
|
|
|
195
195
|
|
|
196
196
|
return await this.fetch<
|
|
197
197
|
paths['/v2/subscriptions/{id}']['get']['responses'][200]['content']['application/json']
|
|
198
|
-
>(
|
|
198
|
+
>(
|
|
199
|
+
`/v2/subscriptions/${id}?include_live_billing=${liveBilling ? 'true' : 'false'}`
|
|
200
|
+
);
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
async getSubscriptions(
|
package/src/const.ts
CHANGED
|
@@ -19,6 +19,11 @@ export const XIMPLIFI_DEV_COUPON_ID = 'cou_MGtxHbT8IR1gK9';
|
|
|
19
19
|
export const ACCOUNTING_PARTNER_COUPON_ID = 'cou_PJQ328MBAD9kxY';
|
|
20
20
|
export const ACCOUNTING_PARTNER_DEV_COUPON_ID = 'cou_y6UfaI2X1m34Qg';
|
|
21
21
|
|
|
22
|
+
export const VRTRUST_HALF_PRICE_COUPON_ID = 'cou_CTOQqs0SOeSc-e'; // 50% off
|
|
23
|
+
export const VRTRUST_HALF_PRICE_DEV_COUPON_ID = 'cou_tHLiRdwQ6xGqKA'; // 50% off
|
|
24
|
+
export const VRTRUST_FREE_PRICE_COUPON_ID = 'cou_JGiLite8_nFtnX'; // 100% off
|
|
25
|
+
export const VRTRUST_FREE_PRICE_DEV_COUPON_ID = 'cou_N4GNqSSLEFscto'; // 100% off
|
|
26
|
+
|
|
22
27
|
// Plans
|
|
23
28
|
export const HYPERLINE_DEFAULT_PLAN_ID = 'plan_Dyb5P0ICZ6HsIT';
|
|
24
29
|
export const HYPERLINE_DEFAULT_DEV_PLAN_ID = 'plan_UTCVXFQnKD0oMS';
|