@prezly/sdk 22.3.0 → 22.5.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
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 = "22.
|
|
7
|
+
const VERSION = "22.4.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Contact, CountryRef, CoverageEntry, CoverageIntegrationRun, CultureRef, NewsroomRef, OEmbedInfo, Pagination, Query, SortOrder, Story } from '../../types';
|
|
2
2
|
export type Scope = {
|
|
3
3
|
story: Story['id'];
|
|
4
4
|
} | null;
|
|
@@ -50,7 +50,7 @@ export interface UpdateRequest {
|
|
|
50
50
|
sentiment?: CoverageEntry.Sentiment | null;
|
|
51
51
|
}
|
|
52
52
|
export interface CreateRequest extends UpdateRequest {
|
|
53
|
-
integration_run?:
|
|
53
|
+
integration_run?: CoverageIntegrationRun['id'] | CoverageIntegrationRun['uuid'];
|
|
54
54
|
}
|
|
55
55
|
export interface CreateOptions {
|
|
56
56
|
enrich?: boolean;
|
|
@@ -14,7 +14,7 @@ type Exactly<Concrete, Abstract> = Concrete & Record<Exclude<keyof Concrete, key
|
|
|
14
14
|
type InferExtraFields<T> = T extends Required<IncludeOptions<infer I>> ? Pick<Story.ExtraFields, I> : unknown;
|
|
15
15
|
export type Client = ReturnType<typeof createClient>;
|
|
16
16
|
export declare function createClient(api: DeferredJobsApiClient): {
|
|
17
|
-
list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions
|
|
17
|
+
list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions>) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
|
|
18
18
|
search: <Options_1 extends SearchOptions<keyof Story.ExtraFields>>(options?: Exactly<Options_1, SearchOptions<keyof Story.ExtraFields>> | undefined) => Promise<ListResponse<Story & InferExtraFields<Options_1>>>;
|
|
19
19
|
get: {
|
|
20
20
|
<Options_2 extends IncludeOptions<keyof Story.ExtraFields> & {
|
package/dist/types/License.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ export interface License extends LicenseRef {
|
|
|
95
95
|
*/
|
|
96
96
|
send_emails_limit: string;
|
|
97
97
|
sent_emails_in_period: number;
|
|
98
|
+
coverage_integration_belga_limit: number | null;
|
|
99
|
+
coverage_integration_google_alerts_limit: number | null;
|
|
100
|
+
coverage_integration_rss_limit: number | null;
|
|
101
|
+
coverage_integration_auxipress_limit: number | null;
|
|
98
102
|
}
|
|
99
103
|
export declare namespace License {
|
|
100
104
|
enum Type {
|