@prezly/sdk 15.11.0 → 15.12.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.
@@ -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.10.1";
7
+ const VERSION = "15.11.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;
@@ -1,3 +1,3 @@
1
- const VERSION = "15.10.1";
1
+ const VERSION = "15.11.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -28,4 +28,11 @@ exports.License = License;
28
28
  Status["UNPAID"] = "unpaid";
29
29
  })(Status || (Status = {}));
30
30
  _License.Status = Status;
31
+ let CompanyType;
32
+ (function (CompanyType) {
33
+ CompanyType["BRAND"] = "brand";
34
+ CompanyType["AGENCY"] = "agency";
35
+ CompanyType["INTERNAL"] = "internal";
36
+ })(CompanyType || (CompanyType = {}));
37
+ _License.CompanyType = CompanyType;
31
38
  })(License || (exports.License = License = {}));
@@ -10,6 +10,7 @@ export interface LicenseRef {
10
10
  status: License.Status;
11
11
  }
12
12
  export interface License extends LicenseRef {
13
+ company_type: License.CompanyType | null;
13
14
  billing_company_name: string;
14
15
  billing_contact: string;
15
16
  billing_contact_email: string;
@@ -108,4 +109,9 @@ export declare namespace License {
108
109
  CANCELED = "canceled",
109
110
  UNPAID = "unpaid"
110
111
  }
112
+ enum CompanyType {
113
+ BRAND = "brand",
114
+ AGENCY = "agency",
115
+ INTERNAL = "internal"
116
+ }
111
117
  }
@@ -21,4 +21,11 @@ export let License;
21
21
  Status["UNPAID"] = "unpaid";
22
22
  })(Status || (Status = {}));
23
23
  _License.Status = Status;
24
+ let CompanyType;
25
+ (function (CompanyType) {
26
+ CompanyType["BRAND"] = "brand";
27
+ CompanyType["AGENCY"] = "agency";
28
+ CompanyType["INTERNAL"] = "internal";
29
+ })(CompanyType || (CompanyType = {}));
30
+ _License.CompanyType = CompanyType;
24
31
  })(License || (License = {}));
@@ -26,6 +26,7 @@ export interface Plan extends PlanReference {
26
26
  possible_changes: Change[];
27
27
  ends_at: string | null;
28
28
  ended_at: string | null;
29
+ current_period_end: string | null;
29
30
  }
30
31
  export interface Usage {
31
32
  limit: Limit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "15.11.0",
3
+ "version": "15.12.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",