@prezly/sdk 21.22.0 → 21.23.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 +1 -1
- package/dist/types/CoverageIntegration.cjs +13 -1
- package/dist/types/CoverageIntegration.d.ts +14 -0
- package/dist/types/CoverageIntegration.js +7 -1
- package/dist/types/CoverageIntegrationRun.d.ts +2 -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 = "21.
|
|
7
|
+
const VERSION = "21.22.1";
|
|
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
|
@@ -14,7 +14,7 @@ export interface CoverageEntry {
|
|
|
14
14
|
* @see uuid
|
|
15
15
|
*/
|
|
16
16
|
id: number;
|
|
17
|
-
integration_run: CoverageIntegrationRun
|
|
17
|
+
integration_run: CoverageIntegrationRun | null;
|
|
18
18
|
display_name: string;
|
|
19
19
|
is_deleted: boolean;
|
|
20
20
|
headline: string;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CoverageIntegrationStatus = void 0;
|
|
7
|
+
let CoverageIntegrationStatus = exports.CoverageIntegrationStatus = /*#__PURE__*/function (CoverageIntegrationStatus) {
|
|
8
|
+
CoverageIntegrationStatus["ACTIVE"] = "active";
|
|
9
|
+
CoverageIntegrationStatus["PAUSED"] = "paused";
|
|
10
|
+
CoverageIntegrationStatus["TRIAL"] = "trial";
|
|
11
|
+
CoverageIntegrationStatus["DELETED"] = "deleted";
|
|
12
|
+
return CoverageIntegrationStatus;
|
|
13
|
+
}({});
|
|
@@ -3,6 +3,12 @@ import type { CoverageIntegrationRun } from './CoverageIntegrationRun';
|
|
|
3
3
|
import type { NewsroomRef } from './Newsroom';
|
|
4
4
|
import type { UserRef } from './User';
|
|
5
5
|
type Iso8601DateTime = string;
|
|
6
|
+
export declare enum CoverageIntegrationStatus {
|
|
7
|
+
ACTIVE = "active",
|
|
8
|
+
PAUSED = "paused",
|
|
9
|
+
TRIAL = "trial",
|
|
10
|
+
DELETED = "deleted"
|
|
11
|
+
}
|
|
6
12
|
export interface CoverageIntegration {
|
|
7
13
|
id: number;
|
|
8
14
|
name: string;
|
|
@@ -17,5 +23,13 @@ export interface CoverageIntegration {
|
|
|
17
23
|
created_at: Iso8601DateTime;
|
|
18
24
|
stats_added: number;
|
|
19
25
|
creator: UserRef | null;
|
|
26
|
+
status: CoverageIntegrationStatus;
|
|
27
|
+
trial_ends_at: Iso8601DateTime | null;
|
|
28
|
+
}
|
|
29
|
+
export interface CoverageIntegrationRef {
|
|
30
|
+
id: number;
|
|
31
|
+
name: string;
|
|
32
|
+
status: CoverageIntegrationStatus;
|
|
33
|
+
trial_ends_at: Iso8601DateTime | null;
|
|
20
34
|
}
|
|
21
35
|
export {};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export let CoverageIntegrationStatus = /*#__PURE__*/function (CoverageIntegrationStatus) {
|
|
2
|
+
CoverageIntegrationStatus["ACTIVE"] = "active";
|
|
3
|
+
CoverageIntegrationStatus["PAUSED"] = "paused";
|
|
4
|
+
CoverageIntegrationStatus["TRIAL"] = "trial";
|
|
5
|
+
CoverageIntegrationStatus["DELETED"] = "deleted";
|
|
6
|
+
return CoverageIntegrationStatus;
|
|
7
|
+
}({});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CoverageIntegrationRef } from './CoverageIntegration';
|
|
1
2
|
type Iso8601DateTime = string;
|
|
2
3
|
export declare enum Status {
|
|
3
4
|
DONE = "done",
|
|
@@ -15,5 +16,6 @@ export interface CoverageIntegrationRun {
|
|
|
15
16
|
*/
|
|
16
17
|
stats_processed: number | null;
|
|
17
18
|
stats_added: number | null;
|
|
19
|
+
integration: CoverageIntegrationRef;
|
|
18
20
|
}
|
|
19
21
|
export {};
|