@prezly/sdk 25.4.0 → 25.4.1
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/Client.cjs +2 -1
- package/dist/Client.d.ts +3 -2
- package/dist/Client.js +3 -2
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/package.json +1 -1
package/dist/Client.cjs
CHANGED
|
@@ -46,11 +46,12 @@ function createClient({
|
|
|
46
46
|
newsroomGalleries: _index2.NewsroomGalleries.createClient(api),
|
|
47
47
|
newsroomHub: _index2.NewsroomHub.createClient(api),
|
|
48
48
|
newsroomSubscriptions: _index2.NewsroomSubscriptions.createClient(api),
|
|
49
|
+
notificationSubscriptions: _index2.NotificationSubscriptions.createClient(api),
|
|
49
50
|
pricingTables: _index2.PricingTables.createClient(api),
|
|
50
51
|
senderAddresses: _index2.SenderAddresses.createClient(api),
|
|
51
52
|
stories: _index2.Stories.createClient(api),
|
|
52
53
|
snippets: _index2.Snippets.createClient(api),
|
|
53
54
|
subscriptions: _index2.Subscriptions.createClient(api),
|
|
54
|
-
|
|
55
|
+
templates: _index2.Templates.createClient(api)
|
|
55
56
|
};
|
|
56
57
|
}
|
package/dist/Client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeferredJobsApiClient } from './api';
|
|
2
2
|
import { type Fetch } from './api';
|
|
3
|
-
import { Accounts, Billing, CampaignRecipients, Campaigns, Contacts, ContactsExports, ContactTagGroups, ContactTags, Coverage, CoverageIntegrations, Jobs, Licenses, NewsroomCategories, NewsroomContacts, NewsroomDomains, NewsroomGalleries, NewsroomHub, NewsroomLanguages, NewsroomPrivacyRequests, Newsrooms, NewsroomSubscriptions, NewsroomThemes, NewsroomWebhooks, NotificationSubscriptions, PricingTables, SenderAddresses, Snippets, Stories, Subscriptions } from './endpoints';
|
|
3
|
+
import { Accounts, Billing, CampaignRecipients, Campaigns, Contacts, ContactsExports, ContactTagGroups, ContactTags, Coverage, CoverageIntegrations, Jobs, Licenses, NewsroomCategories, NewsroomContacts, NewsroomDomains, NewsroomGalleries, NewsroomHub, NewsroomLanguages, NewsroomPrivacyRequests, Newsrooms, NewsroomSubscriptions, NewsroomThemes, NewsroomWebhooks, NotificationSubscriptions, PricingTables, SenderAddresses, Snippets, Stories, Subscriptions, Templates } from './endpoints';
|
|
4
4
|
import type { HeadersMap } from './http';
|
|
5
5
|
export interface ClientOptions {
|
|
6
6
|
accessToken: string;
|
|
@@ -33,11 +33,12 @@ export interface Client {
|
|
|
33
33
|
newsroomGalleries: NewsroomGalleries.Client;
|
|
34
34
|
newsroomHub: NewsroomHub.Client;
|
|
35
35
|
newsroomSubscriptions: NewsroomSubscriptions.Client;
|
|
36
|
+
notificationSubscriptions: NotificationSubscriptions.Client;
|
|
36
37
|
pricingTables: PricingTables.Client;
|
|
37
38
|
senderAddresses: SenderAddresses.Client;
|
|
38
39
|
stories: Stories.Client;
|
|
39
40
|
snippets: Snippets.Client;
|
|
40
41
|
subscriptions: Subscriptions.Client;
|
|
41
|
-
|
|
42
|
+
templates: Templates.Client;
|
|
42
43
|
}
|
|
43
44
|
export declare function createClient({ accessToken, baseUrl, headers, fetch, }: ClientOptions): Client;
|
package/dist/Client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApiClient, createDeferredJobsApiClient } from "./api/index.js";
|
|
2
|
-
import { Accounts, Billing, CampaignRecipients, Campaigns, Contacts, ContactsExports, ContactTagGroups, ContactTags, Coverage, CoverageIntegrations, Jobs, Licenses, NewsroomCategories, NewsroomContacts, NewsroomDomains, NewsroomGalleries, NewsroomHub, NewsroomLanguages, NewsroomPrivacyRequests, Newsrooms, NewsroomSubscriptions, NewsroomThemes, NewsroomWebhooks, NotificationSubscriptions, PricingTables, SenderAddresses, Snippets, Stories, Subscriptions } from "./endpoints/index.js";
|
|
2
|
+
import { Accounts, Billing, CampaignRecipients, Campaigns, Contacts, ContactsExports, ContactTagGroups, ContactTags, Coverage, CoverageIntegrations, Jobs, Licenses, NewsroomCategories, NewsroomContacts, NewsroomDomains, NewsroomGalleries, NewsroomHub, NewsroomLanguages, NewsroomPrivacyRequests, Newsrooms, NewsroomSubscriptions, NewsroomThemes, NewsroomWebhooks, NotificationSubscriptions, PricingTables, SenderAddresses, Snippets, Stories, Subscriptions, Templates } from "./endpoints/index.js";
|
|
3
3
|
import { createHttpClient } from "./http/index.js";
|
|
4
4
|
const DEFAULT_BASE_URL = 'https://api.prezly.com';
|
|
5
5
|
export function createClient({
|
|
@@ -40,11 +40,12 @@ export function createClient({
|
|
|
40
40
|
newsroomGalleries: NewsroomGalleries.createClient(api),
|
|
41
41
|
newsroomHub: NewsroomHub.createClient(api),
|
|
42
42
|
newsroomSubscriptions: NewsroomSubscriptions.createClient(api),
|
|
43
|
+
notificationSubscriptions: NotificationSubscriptions.createClient(api),
|
|
43
44
|
pricingTables: PricingTables.createClient(api),
|
|
44
45
|
senderAddresses: SenderAddresses.createClient(api),
|
|
45
46
|
stories: Stories.createClient(api),
|
|
46
47
|
snippets: Snippets.createClient(api),
|
|
47
48
|
subscriptions: Subscriptions.createClient(api),
|
|
48
|
-
|
|
49
|
+
templates: Templates.createClient(api)
|
|
49
50
|
};
|
|
50
51
|
}
|
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 = "25.
|
|
7
|
+
const VERSION = "25.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