@prezly/sdk 23.0.1 → 23.2.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/Culture.d.ts +5 -0
- package/dist/types/Language.cjs +1 -0
- package/dist/types/Language.d.ts +4 -0
- package/dist/types/Language.js +1 -0
- package/dist/types/Story.d.ts +1 -0
- package/dist/types/index.cjs +11 -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,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.
|
|
7
|
+
const VERSION = "23.1.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/Culture.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import type { Language } from './Language';
|
|
1
2
|
export interface CultureRef {
|
|
2
3
|
code: Culture.Code;
|
|
3
4
|
locale: Culture.Code;
|
|
4
5
|
name: string;
|
|
5
6
|
native_name: string;
|
|
6
7
|
direction: `${Culture.TextDirection}`;
|
|
8
|
+
language: Language;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use language.code instead
|
|
11
|
+
*/
|
|
7
12
|
language_code: Culture.LangCode;
|
|
8
13
|
}
|
|
9
14
|
export type Culture = CultureRef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/Story.d.ts
CHANGED
package/dist/types/index.cjs
CHANGED
|
@@ -234,6 +234,17 @@ Object.keys(_JobState).forEach(function (key) {
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
+
var _Language = require("./Language.cjs");
|
|
238
|
+
Object.keys(_Language).forEach(function (key) {
|
|
239
|
+
if (key === "default" || key === "__esModule") return;
|
|
240
|
+
if (key in exports && exports[key] === _Language[key]) return;
|
|
241
|
+
Object.defineProperty(exports, key, {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () {
|
|
244
|
+
return _Language[key];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
237
248
|
var _License = require("./License.cjs");
|
|
238
249
|
Object.keys(_License).forEach(function (key) {
|
|
239
250
|
if (key === "default" || key === "__esModule") return;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './DnsConfigurationInstruction';
|
|
|
19
19
|
export * from './EmailRecipient';
|
|
20
20
|
export * from './EmailSubscription';
|
|
21
21
|
export * from './JobState';
|
|
22
|
+
export * from './Language';
|
|
22
23
|
export * from './License';
|
|
23
24
|
export * from './Newsroom';
|
|
24
25
|
export * from './NewsroomCompanyInformation';
|
package/dist/types/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./DnsConfigurationInstruction.js";
|
|
|
20
20
|
export * from "./EmailRecipient.js";
|
|
21
21
|
export * from "./EmailSubscription.js";
|
|
22
22
|
export * from "./JobState.js";
|
|
23
|
+
export * from "./Language.js";
|
|
23
24
|
export * from "./License.js";
|
|
24
25
|
export * from "./Newsroom.js";
|
|
25
26
|
export * from "./NewsroomCompanyInformation.js";
|