@prezly/sdk 15.3.0 → 15.5.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/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Billing/types.cjs +2 -8
- package/dist/endpoints/Billing/types.d.ts +2 -5
- package/dist/endpoints/Billing/types.js +1 -6
- package/dist/types/BillingCycle.cjs +12 -0
- package/dist/types/BillingCycle.d.ts +4 -0
- package/dist/types/BillingCycle.js +5 -0
- package/dist/types/Plan.d.ts +5 -2
- package/dist/types/index.cjs +10 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "15.
|
|
7
|
+
const VERSION = "15.4.0";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
|
10
10
|
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
package/dist/api/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SignupCurrency = exports.SignupPlan = void 0;
|
|
7
7
|
let SignupPlan;
|
|
8
8
|
exports.SignupPlan = SignupPlan;
|
|
9
9
|
(function (SignupPlan) {
|
|
@@ -16,10 +16,4 @@ exports.SignupCurrency = SignupCurrency;
|
|
|
16
16
|
(function (SignupCurrency) {
|
|
17
17
|
SignupCurrency["EUR"] = "eur";
|
|
18
18
|
SignupCurrency["USD"] = "usd";
|
|
19
|
-
})(SignupCurrency || (exports.SignupCurrency = SignupCurrency = {}));
|
|
20
|
-
let SignupBillingCycle;
|
|
21
|
-
exports.SignupBillingCycle = SignupBillingCycle;
|
|
22
|
-
(function (SignupBillingCycle) {
|
|
23
|
-
SignupBillingCycle["YEAR"] = "year";
|
|
24
|
-
SignupBillingCycle["MONTH"] = "month";
|
|
25
|
-
})(SignupBillingCycle || (exports.SignupBillingCycle = SignupBillingCycle = {}));
|
|
19
|
+
})(SignupCurrency || (exports.SignupCurrency = SignupCurrency = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BillingCycle } from '../../types/BillingCycle';
|
|
1
2
|
export declare enum SignupPlan {
|
|
2
3
|
STARTER = "starter",
|
|
3
4
|
CORE = "core",
|
|
@@ -7,10 +8,6 @@ export declare enum SignupCurrency {
|
|
|
7
8
|
EUR = "eur",
|
|
8
9
|
USD = "usd"
|
|
9
10
|
}
|
|
10
|
-
export declare enum SignupBillingCycle {
|
|
11
|
-
YEAR = "year",
|
|
12
|
-
MONTH = "month"
|
|
13
|
-
}
|
|
14
11
|
export interface SignupRequest {
|
|
15
12
|
email: string;
|
|
16
13
|
company_name: string;
|
|
@@ -19,7 +16,7 @@ export interface SignupRequest {
|
|
|
19
16
|
quantity: number;
|
|
20
17
|
plan?: SignupPlan;
|
|
21
18
|
currency?: SignupCurrency;
|
|
22
|
-
billing_cycle?:
|
|
19
|
+
billing_cycle?: BillingCycle;
|
|
23
20
|
phone?: string;
|
|
24
21
|
}
|
|
25
22
|
export interface SignupResponse {
|
|
@@ -8,9 +8,4 @@ export let SignupCurrency;
|
|
|
8
8
|
(function (SignupCurrency) {
|
|
9
9
|
SignupCurrency["EUR"] = "eur";
|
|
10
10
|
SignupCurrency["USD"] = "usd";
|
|
11
|
-
})(SignupCurrency || (SignupCurrency = {}));
|
|
12
|
-
export let SignupBillingCycle;
|
|
13
|
-
(function (SignupBillingCycle) {
|
|
14
|
-
SignupBillingCycle["YEAR"] = "year";
|
|
15
|
-
SignupBillingCycle["MONTH"] = "month";
|
|
16
|
-
})(SignupBillingCycle || (SignupBillingCycle = {}));
|
|
11
|
+
})(SignupCurrency || (SignupCurrency = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BillingCycle = void 0;
|
|
7
|
+
let BillingCycle;
|
|
8
|
+
exports.BillingCycle = BillingCycle;
|
|
9
|
+
(function (BillingCycle) {
|
|
10
|
+
BillingCycle["YEAR"] = "year";
|
|
11
|
+
BillingCycle["MONTH"] = "month";
|
|
12
|
+
})(BillingCycle || (exports.BillingCycle = BillingCycle = {}));
|
package/dist/types/Plan.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Limit } from '../endpoints/PricingTables';
|
|
2
|
+
import type { BillingCycle } from './BillingCycle';
|
|
3
|
+
import type { Currency } from './Currency';
|
|
2
4
|
export interface PlanReference {
|
|
3
5
|
display_name: string;
|
|
4
6
|
description: string | null;
|
|
@@ -10,8 +12,9 @@ export interface PlanReference {
|
|
|
10
12
|
pricing_table_option_id: string | null;
|
|
11
13
|
}
|
|
12
14
|
export interface Plan extends PlanReference {
|
|
13
|
-
billing_cycle:
|
|
14
|
-
|
|
15
|
+
billing_cycle: BillingCycle;
|
|
16
|
+
billing_cycle_count: number;
|
|
17
|
+
currency: Currency;
|
|
15
18
|
total_before_discount: number;
|
|
16
19
|
total_after_discount: number;
|
|
17
20
|
usage: Usage[];
|
package/dist/types/index.cjs
CHANGED
|
@@ -13,6 +13,16 @@ Object.keys(_index).forEach(function (key) {
|
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
});
|
|
16
|
+
var _BillingCycle = require("./BillingCycle.cjs");
|
|
17
|
+
Object.keys(_BillingCycle).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _BillingCycle[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
16
26
|
var _Campaign = require("./Campaign.cjs");
|
|
17
27
|
Object.keys(_Campaign).forEach(function (key) {
|
|
18
28
|
if (key === "default" || key === "__esModule") return;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED