@prezly/sdk 23.1.0 → 23.3.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/types/CoverageEntry.d.ts +9 -0
- package/dist/types/License.cjs +8 -0
- package/dist/types/License.d.ts +7 -0
- package/dist/types/License.js +8 -0
- package/dist/types/Plan.d.ts +1 -0
- package/dist/types/Story.d.ts +1 -0
- package/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "23.0
|
|
7
|
+
const VERSION = "23.2.0";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -20,6 +20,15 @@ export interface CoverageEntry {
|
|
|
20
20
|
headline: string;
|
|
21
21
|
user: UserRef;
|
|
22
22
|
story: Story | null;
|
|
23
|
+
/**
|
|
24
|
+
* Tells whether the story reference has been manually set, or automatically matched.
|
|
25
|
+
* `none` means no information (which is only used for null references).
|
|
26
|
+
*/
|
|
27
|
+
story_reference_origin: 'manual' | 'auto' | 'none';
|
|
28
|
+
/**
|
|
29
|
+
* Number of displayed story suggestions (if the automatic matching was not sure enough about it).
|
|
30
|
+
*/
|
|
31
|
+
suggested_stories_count: number;
|
|
23
32
|
newsroom: NewsroomRef | null;
|
|
24
33
|
author_contact: Contact | null;
|
|
25
34
|
organisation_contact: Contact | null;
|
package/dist/types/License.cjs
CHANGED
|
@@ -27,6 +27,14 @@ let License = exports.License = void 0;
|
|
|
27
27
|
return Status;
|
|
28
28
|
}({});
|
|
29
29
|
_License.Status = Status;
|
|
30
|
+
let SubscriptionStatus = /*#__PURE__*/function (SubscriptionStatus) {
|
|
31
|
+
SubscriptionStatus["TRIALING"] = "trialing";
|
|
32
|
+
SubscriptionStatus["EXPIRED"] = "expired";
|
|
33
|
+
SubscriptionStatus["ACTIVE"] = "active";
|
|
34
|
+
SubscriptionStatus["CANCELED"] = "canceled";
|
|
35
|
+
return SubscriptionStatus;
|
|
36
|
+
}({});
|
|
37
|
+
_License.SubscriptionStatus = SubscriptionStatus;
|
|
30
38
|
let CompanyType = /*#__PURE__*/function (CompanyType) {
|
|
31
39
|
CompanyType["BRAND"] = "brand";
|
|
32
40
|
CompanyType["AGENCY"] = "agency";
|
package/dist/types/License.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface LicenseRef {
|
|
|
8
8
|
is_sso_required: boolean;
|
|
9
9
|
avatar_url: string;
|
|
10
10
|
status: License.Status;
|
|
11
|
+
subscription_status: License.SubscriptionStatus | null;
|
|
11
12
|
}
|
|
12
13
|
export interface License extends LicenseRef {
|
|
13
14
|
company_type: License.CompanyType | null;
|
|
@@ -119,6 +120,12 @@ export declare namespace License {
|
|
|
119
120
|
CANCELED = "canceled",
|
|
120
121
|
UNPAID = "unpaid"
|
|
121
122
|
}
|
|
123
|
+
enum SubscriptionStatus {
|
|
124
|
+
TRIALING = "trialing",
|
|
125
|
+
EXPIRED = "expired",
|
|
126
|
+
ACTIVE = "active",
|
|
127
|
+
CANCELED = "canceled"
|
|
128
|
+
}
|
|
122
129
|
enum CompanyType {
|
|
123
130
|
BRAND = "brand",
|
|
124
131
|
AGENCY = "agency",
|
package/dist/types/License.js
CHANGED
|
@@ -21,6 +21,14 @@ export let License;
|
|
|
21
21
|
return Status;
|
|
22
22
|
}({});
|
|
23
23
|
_License.Status = Status;
|
|
24
|
+
let SubscriptionStatus = /*#__PURE__*/function (SubscriptionStatus) {
|
|
25
|
+
SubscriptionStatus["TRIALING"] = "trialing";
|
|
26
|
+
SubscriptionStatus["EXPIRED"] = "expired";
|
|
27
|
+
SubscriptionStatus["ACTIVE"] = "active";
|
|
28
|
+
SubscriptionStatus["CANCELED"] = "canceled";
|
|
29
|
+
return SubscriptionStatus;
|
|
30
|
+
}({});
|
|
31
|
+
_License.SubscriptionStatus = SubscriptionStatus;
|
|
24
32
|
let CompanyType = /*#__PURE__*/function (CompanyType) {
|
|
25
33
|
CompanyType["BRAND"] = "brand";
|
|
26
34
|
CompanyType["AGENCY"] = "agency";
|
package/dist/types/Plan.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type { BillingCycle } from './BillingCycle';
|
|
|
5
5
|
import type { Currency } from './Currency';
|
|
6
6
|
import type { TiersMode, BillingSchema, Tier } from './Price';
|
|
7
7
|
export interface PlanReference {
|
|
8
|
+
id: string | null;
|
|
8
9
|
display_name: string;
|
|
9
10
|
description: string | null;
|
|
10
11
|
is_legacy: boolean;
|
package/dist/types/Story.d.ts
CHANGED