@parra/parra-js-sdk 0.2.32 → 0.2.33

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.
@@ -18,6 +18,22 @@ export interface Customer {
18
18
  tenant_id: string;
19
19
  stripe_customer_id: string;
20
20
  }
21
+ export declare enum Currency {
22
+ usd = "usd"
23
+ }
24
+ export declare enum Interval {
25
+ monthly = "monthly",
26
+ annual = "annual"
27
+ }
28
+ export interface Price {
29
+ currency: Currency;
30
+ amount: number;
31
+ }
32
+ export interface UnitPrice {
33
+ currency: Currency;
34
+ amount: number;
35
+ interval?: Interval;
36
+ }
21
37
  export interface CreateTenantRequestBody {
22
38
  name: string;
23
39
  is_test: boolean;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = void 0;
3
+ exports.QuestionStatus = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.Interval = exports.Currency = void 0;
4
+ var Currency;
5
+ (function (Currency) {
6
+ Currency["usd"] = "usd";
7
+ })(Currency = exports.Currency || (exports.Currency = {}));
8
+ var Interval;
9
+ (function (Interval) {
10
+ Interval["monthly"] = "monthly";
11
+ Interval["annual"] = "annual";
12
+ })(Interval = exports.Interval || (exports.Interval = {}));
4
13
  var CardItemType;
5
14
  (function (CardItemType) {
6
15
  CardItemType["question"] = "question";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",