@prezly/sdk 7.12.0 → 9.0.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/README.md +8 -8
- package/dist/Client.d.ts +29 -0
- package/dist/Client.js +35 -0
- package/dist/{Sdk → api}/ApiClient.d.ts +2 -2
- package/dist/api/ApiClient.js +88 -0
- package/dist/{Sdk → api}/DeferredJobsApiClient.d.ts +3 -3
- package/dist/api/DeferredJobsApiClient.js +92 -0
- package/dist/{Sdk → api}/constants.d.ts +0 -0
- package/dist/api/constants.js +3 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/endpoints/Accounts/Client.d.ts +10 -0
- package/dist/endpoints/Accounts/Client.js +22 -0
- package/dist/endpoints/Accounts/index.d.ts +2 -0
- package/dist/endpoints/Accounts/index.js +2 -0
- package/dist/endpoints/Accounts/types.d.ts +16 -0
- package/dist/endpoints/Accounts/types.js +1 -0
- package/dist/endpoints/CampaignRecipients/Client.d.ts +29 -0
- package/dist/endpoints/CampaignRecipients/Client.js +78 -0
- package/dist/endpoints/CampaignRecipients/index.d.ts +3 -0
- package/dist/endpoints/CampaignRecipients/index.js +3 -0
- package/dist/endpoints/CampaignRecipients/scopes.d.ts +27 -0
- package/dist/endpoints/CampaignRecipients/scopes.js +1 -0
- package/dist/endpoints/CampaignRecipients/types.d.ts +14 -0
- package/dist/endpoints/CampaignRecipients/types.js +1 -0
- package/dist/endpoints/Campaigns/Client.d.ts +21 -0
- package/dist/endpoints/Campaigns/Client.js +85 -0
- package/dist/endpoints/Campaigns/index.d.ts +2 -0
- package/dist/endpoints/Campaigns/index.js +2 -0
- package/dist/{Sdk → endpoints}/Campaigns/types.d.ts +11 -9
- package/dist/endpoints/Campaigns/types.js +1 -0
- package/dist/endpoints/Coverage/Client.d.ts +23 -0
- package/dist/endpoints/Coverage/Client.js +102 -0
- package/dist/endpoints/Coverage/index.d.ts +2 -0
- package/dist/endpoints/Coverage/index.js +2 -0
- package/dist/{Sdk → endpoints}/Coverage/types.d.ts +14 -12
- package/dist/endpoints/Coverage/types.js +1 -0
- package/dist/endpoints/Jobs/Client.d.ts +7 -0
- package/dist/endpoints/Jobs/Client.js +12 -0
- package/dist/endpoints/Jobs/index.d.ts +2 -0
- package/dist/endpoints/Jobs/index.js +2 -0
- package/dist/endpoints/Jobs/types.d.ts +7 -0
- package/dist/endpoints/Jobs/types.js +1 -0
- package/dist/endpoints/Licenses/Client.d.ts +7 -0
- package/dist/endpoints/Licenses/Client.js +13 -0
- package/dist/endpoints/Licenses/index.d.ts +1 -0
- package/dist/endpoints/Licenses/index.js +1 -0
- package/dist/endpoints/NewsroomCategories/Client.d.ts +14 -0
- package/dist/endpoints/NewsroomCategories/Client.js +48 -0
- package/dist/endpoints/NewsroomCategories/index.d.ts +2 -0
- package/dist/endpoints/NewsroomCategories/index.js +2 -0
- package/dist/{Sdk → endpoints}/NewsroomCategories/types.d.ts +3 -3
- package/dist/endpoints/NewsroomCategories/types.js +1 -0
- package/dist/endpoints/NewsroomContacts/Client.d.ts +16 -0
- package/dist/endpoints/NewsroomContacts/Client.js +69 -0
- package/dist/endpoints/NewsroomContacts/index.d.ts +2 -0
- package/dist/endpoints/NewsroomContacts/index.js +2 -0
- package/dist/{Sdk → endpoints}/NewsroomContacts/types.d.ts +7 -11
- package/dist/endpoints/NewsroomContacts/types.js +1 -0
- package/dist/endpoints/NewsroomDomains/Client.d.ts +15 -0
- package/dist/endpoints/NewsroomDomains/Client.js +41 -0
- package/dist/endpoints/NewsroomDomains/index.d.ts +2 -0
- package/dist/endpoints/NewsroomDomains/index.js +2 -0
- package/dist/endpoints/NewsroomDomains/types.d.ts +3 -0
- package/dist/endpoints/NewsroomDomains/types.js +1 -0
- package/dist/endpoints/NewsroomGalleries/Client.d.ts +17 -0
- package/dist/endpoints/NewsroomGalleries/Client.js +75 -0
- package/dist/endpoints/NewsroomGalleries/index.d.ts +2 -0
- package/dist/endpoints/NewsroomGalleries/index.js +2 -0
- package/dist/{Sdk → endpoints}/NewsroomGalleries/types.d.ts +13 -11
- package/dist/endpoints/NewsroomGalleries/types.js +1 -0
- package/dist/{Sdk/NewsroomLanguages/NewsroomLanguages.d.ts → endpoints/NewsroomLanguages/Client.d.ts} +9 -11
- package/dist/endpoints/NewsroomLanguages/Client.js +93 -0
- package/dist/endpoints/NewsroomLanguages/index.d.ts +2 -0
- package/dist/endpoints/NewsroomLanguages/index.js +2 -0
- package/dist/endpoints/NewsroomLanguages/lib.d.ts +2 -0
- package/dist/endpoints/NewsroomLanguages/lib.js +3 -0
- package/dist/{Sdk → endpoints}/NewsroomLanguages/types.d.ts +5 -5
- package/dist/endpoints/NewsroomLanguages/types.js +1 -0
- package/dist/endpoints/NewsroomPrivacyRequests/Client.d.ts +9 -0
- package/dist/endpoints/NewsroomPrivacyRequests/Client.js +22 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.d.ts +2 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.js +2 -0
- package/dist/{Sdk → endpoints}/NewsroomPrivacyRequests/types.d.ts +5 -5
- package/dist/endpoints/NewsroomPrivacyRequests/types.js +1 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.d.ts +13 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.js +15 -0
- package/dist/endpoints/NewsroomSubscriptions/index.d.ts +2 -0
- package/dist/endpoints/NewsroomSubscriptions/index.js +2 -0
- package/dist/{Sdk → endpoints}/NewsroomSubscriptions/types.d.ts +3 -3
- package/dist/endpoints/NewsroomSubscriptions/types.js +1 -0
- package/dist/{Sdk/NewsroomThemes/NewsroomThemes.d.ts → endpoints/NewsroomThemes/Client.d.ts} +4 -6
- package/dist/endpoints/NewsroomThemes/Client.js +36 -0
- package/dist/endpoints/NewsroomThemes/index.d.ts +1 -0
- package/dist/endpoints/NewsroomThemes/index.js +1 -0
- package/dist/endpoints/NewsroomWebhooks/Client.d.ts +14 -0
- package/dist/endpoints/NewsroomWebhooks/Client.js +42 -0
- package/dist/endpoints/NewsroomWebhooks/index.d.ts +2 -0
- package/dist/endpoints/NewsroomWebhooks/index.js +2 -0
- package/dist/endpoints/NewsroomWebhooks/types.d.ts +15 -0
- package/dist/endpoints/NewsroomWebhooks/types.js +1 -0
- package/dist/endpoints/Newsrooms/Client.d.ts +19 -0
- package/dist/endpoints/Newsrooms/Client.js +90 -0
- package/dist/endpoints/Newsrooms/index.d.ts +2 -0
- package/dist/endpoints/Newsrooms/index.js +2 -0
- package/dist/{Sdk → endpoints}/Newsrooms/types.d.ts +11 -11
- package/dist/endpoints/Newsrooms/types.js +1 -0
- package/dist/endpoints/SenderAddresses/Client.d.ts +12 -0
- package/dist/endpoints/SenderAddresses/Client.js +37 -0
- package/dist/endpoints/SenderAddresses/index.d.ts +2 -0
- package/dist/endpoints/SenderAddresses/index.js +2 -0
- package/dist/{Sdk → endpoints}/SenderAddresses/types.d.ts +2 -2
- package/dist/endpoints/SenderAddresses/types.js +1 -0
- package/dist/endpoints/Snippets/Client.d.ts +14 -0
- package/dist/endpoints/Snippets/Client.js +42 -0
- package/dist/endpoints/Snippets/index.d.ts +2 -0
- package/dist/endpoints/Snippets/index.js +2 -0
- package/dist/{Sdk → endpoints}/Snippets/types.d.ts +2 -2
- package/dist/endpoints/Snippets/types.js +1 -0
- package/dist/endpoints/Stories/Client.d.ts +17 -0
- package/dist/endpoints/Stories/Client.js +63 -0
- package/dist/endpoints/Stories/index.d.ts +2 -0
- package/dist/endpoints/Stories/index.js +2 -0
- package/dist/{Sdk → endpoints}/Stories/types.d.ts +19 -18
- package/dist/endpoints/Stories/types.js +1 -0
- package/dist/{Sdk/Subscriptions/Subscriptions.d.ts → endpoints/Subscriptions/Client.d.ts} +6 -8
- package/dist/endpoints/Subscriptions/Client.js +51 -0
- package/dist/endpoints/Subscriptions/index.d.ts +2 -0
- package/dist/endpoints/Subscriptions/index.js +2 -0
- package/dist/{Sdk → endpoints}/Subscriptions/types.d.ts +13 -6
- package/dist/endpoints/Subscriptions/types.js +8 -0
- package/dist/endpoints/index.d.ts +20 -0
- package/dist/endpoints/index.js +20 -0
- package/dist/{Api → http}/ApiError.d.ts +2 -2
- package/dist/http/ApiError.js +14 -0
- package/dist/http/Http.d.ts +8 -0
- package/dist/http/Http.js +62 -0
- package/dist/{Api → http}/constants.d.ts +0 -0
- package/dist/http/constants.js +3 -0
- package/dist/{Api → http}/createRequest.d.ts +2 -2
- package/dist/http/createRequest.js +99 -0
- package/dist/http/index.d.ts +3 -0
- package/dist/http/index.js +3 -0
- package/dist/http/lib.d.ts +3 -0
- package/dist/http/lib.js +29 -0
- package/dist/{Api → http}/types.d.ts +0 -0
- package/dist/http/types.js +16 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -22
- package/dist/{Sdk/routing.d.ts → routing.d.ts} +1 -2
- package/dist/routing.js +27 -0
- package/dist/types/Campaign.d.ts +33 -31
- package/dist/types/Campaign.js +23 -20
- package/dist/types/Category.d.ts +1 -1
- package/dist/types/Category.js +1 -3
- package/dist/types/Contact.d.ts +83 -69
- package/dist/types/Contact.js +34 -26
- package/dist/types/ContactDuplicateSuggestion.d.ts +9 -7
- package/dist/types/ContactDuplicateSuggestion.js +7 -7
- package/dist/types/{CountryRef.d.ts → Country.d.ts} +0 -0
- package/dist/types/Country.js +1 -0
- package/dist/types/{Coverage.d.ts → CoverageEntry.d.ts} +32 -30
- package/dist/types/CoverageEntry.js +25 -0
- package/dist/types/Culture.d.ts +14 -0
- package/dist/types/Culture.js +9 -0
- package/dist/types/DnsConfigurationInstruction.js +1 -3
- package/dist/types/EmailRecipient.d.ts +14 -12
- package/dist/types/EmailRecipient.js +7 -7
- package/dist/types/EmailSubscription.js +1 -3
- package/dist/types/Entity.js +1 -3
- package/dist/types/JobState.js +5 -9
- package/dist/types/License.d.ts +12 -2
- package/dist/types/License.js +14 -3
- package/dist/types/Newsroom.d.ts +30 -14
- package/dist/types/Newsroom.js +23 -10
- package/dist/types/NewsroomCompanyInformation.js +1 -3
- package/dist/types/NewsroomContact.d.ts +2 -2
- package/dist/types/NewsroomContact.js +1 -3
- package/dist/types/NewsroomDomain.d.ts +7 -1
- package/dist/types/NewsroomDomain.js +2 -3
- package/dist/types/NewsroomGallery.d.ts +17 -5
- package/dist/types/NewsroomGallery.js +9 -3
- package/dist/types/NewsroomLanguageSettings.d.ts +3 -3
- package/dist/types/NewsroomLanguageSettings.js +1 -3
- package/dist/types/NewsroomTheme.d.ts +53 -0
- package/dist/types/NewsroomTheme.js +25 -0
- package/dist/types/NewsroomWebhook.d.ts +11 -9
- package/dist/types/NewsroomWebhook.js +13 -13
- package/dist/types/Permissions.js +10 -14
- package/dist/types/PrivacyRequest.d.ts +13 -11
- package/dist/types/PrivacyRequest.js +17 -16
- package/dist/types/SenderAddress.d.ts +8 -6
- package/dist/types/SenderAddress.js +9 -9
- package/dist/types/SenderDomain.d.ts +8 -6
- package/dist/types/SenderDomain.js +10 -10
- package/dist/types/Snippet.d.ts +1 -1
- package/dist/types/Snippet.js +1 -3
- package/dist/types/Story.d.ts +66 -64
- package/dist/types/Story.js +33 -30
- package/dist/types/{UserRef.d.ts → User.d.ts} +0 -0
- package/dist/types/User.js +1 -0
- package/dist/types/UserAccount.d.ts +3 -3
- package/dist/types/UserAccount.js +1 -3
- package/dist/types/common/Notification.d.ts +14 -12
- package/dist/types/common/Notification.js +11 -11
- package/dist/types/common/OEmbedInfo.js +1 -3
- package/dist/types/common/Pagination.js +9 -9
- package/dist/types/common/Query.d.ts +4 -1
- package/dist/types/common/Query.js +15 -3
- package/dist/types/common/Utm.js +1 -3
- package/dist/types/common/Warning.js +1 -3
- package/dist/types/common/index.js +6 -19
- package/dist/types/index.d.ts +12 -23
- package/dist/types/index.js +28 -53
- package/dist/{Sdk/utils.d.ts → utils.d.ts} +1 -1
- package/dist/utils.js +23 -0
- package/package.json +20 -6
- package/dist/Api/Api.d.ts +0 -9
- package/dist/Api/Api.js +0 -55
- package/dist/Api/ApiError.js +0 -30
- package/dist/Api/constants.js +0 -7
- package/dist/Api/createRequest.js +0 -154
- package/dist/Api/index.d.ts +0 -3
- package/dist/Api/index.js +0 -14
- package/dist/Api/lib.d.ts +0 -12
- package/dist/Api/lib.js +0 -67
- package/dist/Api/types.js +0 -20
- package/dist/Sdk/Accounts/Accounts.d.ts +0 -12
- package/dist/Sdk/Accounts/Accounts.js +0 -79
- package/dist/Sdk/Accounts/index.d.ts +0 -2
- package/dist/Sdk/Accounts/index.js +0 -15
- package/dist/Sdk/Accounts/types.d.ts +0 -16
- package/dist/Sdk/Accounts/types.js +0 -3
- package/dist/Sdk/ApiClient.js +0 -68
- package/dist/Sdk/CampaignRecipients/CampaignRecipients.d.ts +0 -28
- package/dist/Sdk/CampaignRecipients/CampaignRecipients.js +0 -126
- package/dist/Sdk/CampaignRecipients/index.d.ts +0 -2
- package/dist/Sdk/CampaignRecipients/index.js +0 -20
- package/dist/Sdk/CampaignRecipients/types.d.ts +0 -12
- package/dist/Sdk/CampaignRecipients/types.js +0 -3
- package/dist/Sdk/Campaigns/Campaigns.d.ts +0 -23
- package/dist/Sdk/Campaigns/Campaigns.js +0 -168
- package/dist/Sdk/Campaigns/index.d.ts +0 -2
- package/dist/Sdk/Campaigns/index.js +0 -9
- package/dist/Sdk/Campaigns/types.js +0 -3
- package/dist/Sdk/Coverage/Coverage.d.ts +0 -24
- package/dist/Sdk/Coverage/Coverage.js +0 -159
- package/dist/Sdk/Coverage/index.d.ts +0 -2
- package/dist/Sdk/Coverage/index.js +0 -9
- package/dist/Sdk/Coverage/types.js +0 -3
- package/dist/Sdk/DeferredJobsApiClient.js +0 -126
- package/dist/Sdk/Jobs/Jobs.d.ts +0 -9
- package/dist/Sdk/Jobs/Jobs.js +0 -64
- package/dist/Sdk/Jobs/index.d.ts +0 -2
- package/dist/Sdk/Jobs/index.js +0 -9
- package/dist/Sdk/Jobs/types.d.ts +0 -7
- package/dist/Sdk/Jobs/types.js +0 -3
- package/dist/Sdk/Licenses/Licenses.d.ts +0 -9
- package/dist/Sdk/Licenses/Licenses.js +0 -66
- package/dist/Sdk/Licenses/index.d.ts +0 -1
- package/dist/Sdk/Licenses/index.js +0 -9
- package/dist/Sdk/NewsroomCategories/NewsroomCategories.d.ts +0 -16
- package/dist/Sdk/NewsroomCategories/NewsroomCategories.js +0 -129
- package/dist/Sdk/NewsroomCategories/index.d.ts +0 -2
- package/dist/Sdk/NewsroomCategories/index.js +0 -9
- package/dist/Sdk/NewsroomCategories/types.js +0 -3
- package/dist/Sdk/NewsroomContacts/NewsroomContacts.d.ts +0 -18
- package/dist/Sdk/NewsroomContacts/NewsroomContacts.js +0 -145
- package/dist/Sdk/NewsroomContacts/index.d.ts +0 -2
- package/dist/Sdk/NewsroomContacts/index.js +0 -9
- package/dist/Sdk/NewsroomContacts/types.js +0 -3
- package/dist/Sdk/NewsroomDomains/NewsroomDomains.d.ts +0 -17
- package/dist/Sdk/NewsroomDomains/NewsroomDomains.js +0 -137
- package/dist/Sdk/NewsroomDomains/index.d.ts +0 -2
- package/dist/Sdk/NewsroomDomains/index.js +0 -9
- package/dist/Sdk/NewsroomDomains/types.d.ts +0 -3
- package/dist/Sdk/NewsroomDomains/types.js +0 -3
- package/dist/Sdk/NewsroomGalleries/NewsroomGalleries.d.ts +0 -19
- package/dist/Sdk/NewsroomGalleries/NewsroomGalleries.js +0 -140
- package/dist/Sdk/NewsroomGalleries/index.d.ts +0 -1
- package/dist/Sdk/NewsroomGalleries/index.js +0 -9
- package/dist/Sdk/NewsroomGalleries/types.js +0 -3
- package/dist/Sdk/NewsroomLanguages/NewsroomLanguages.js +0 -173
- package/dist/Sdk/NewsroomLanguages/index.d.ts +0 -2
- package/dist/Sdk/NewsroomLanguages/index.js +0 -9
- package/dist/Sdk/NewsroomLanguages/lib.d.ts +0 -2
- package/dist/Sdk/NewsroomLanguages/lib.js +0 -15
- package/dist/Sdk/NewsroomLanguages/types.js +0 -3
- package/dist/Sdk/NewsroomPrivacyRequests/NewsroomPrivacyRequests.d.ts +0 -11
- package/dist/Sdk/NewsroomPrivacyRequests/NewsroomPrivacyRequests.js +0 -83
- package/dist/Sdk/NewsroomPrivacyRequests/index.d.ts +0 -2
- package/dist/Sdk/NewsroomPrivacyRequests/index.js +0 -9
- package/dist/Sdk/NewsroomPrivacyRequests/types.js +0 -3
- package/dist/Sdk/NewsroomSubscriptions/NewsroomSubscriptions.d.ts +0 -15
- package/dist/Sdk/NewsroomSubscriptions/NewsroomSubscriptions.js +0 -65
- package/dist/Sdk/NewsroomSubscriptions/index.d.ts +0 -2
- package/dist/Sdk/NewsroomSubscriptions/index.js +0 -9
- package/dist/Sdk/NewsroomSubscriptions/types.js +0 -3
- package/dist/Sdk/NewsroomThemes/NewsroomThemes.js +0 -111
- package/dist/Sdk/NewsroomThemes/index.d.ts +0 -1
- package/dist/Sdk/NewsroomThemes/index.js +0 -9
- package/dist/Sdk/NewsroomWebhooks/NewsroomWebhooks.d.ts +0 -16
- package/dist/Sdk/NewsroomWebhooks/NewsroomWebhooks.js +0 -124
- package/dist/Sdk/NewsroomWebhooks/index.d.ts +0 -2
- package/dist/Sdk/NewsroomWebhooks/index.js +0 -9
- package/dist/Sdk/NewsroomWebhooks/types.d.ts +0 -15
- package/dist/Sdk/NewsroomWebhooks/types.js +0 -3
- package/dist/Sdk/Newsrooms/Newsrooms.d.ts +0 -21
- package/dist/Sdk/Newsrooms/Newsrooms.js +0 -184
- package/dist/Sdk/Newsrooms/index.d.ts +0 -2
- package/dist/Sdk/Newsrooms/index.js +0 -9
- package/dist/Sdk/Newsrooms/types.js +0 -3
- package/dist/Sdk/Sdk.d.ts +0 -42
- package/dist/Sdk/Sdk.js +0 -59
- package/dist/Sdk/SenderAddresses/SenderAddresses.d.ts +0 -14
- package/dist/Sdk/SenderAddresses/SenderAddresses.js +0 -110
- package/dist/Sdk/SenderAddresses/index.d.ts +0 -2
- package/dist/Sdk/SenderAddresses/index.js +0 -9
- package/dist/Sdk/SenderAddresses/types.js +0 -3
- package/dist/Sdk/Snippets/Snippets.d.ts +0 -16
- package/dist/Sdk/Snippets/Snippets.js +0 -124
- package/dist/Sdk/Snippets/index.d.ts +0 -2
- package/dist/Sdk/Snippets/index.js +0 -9
- package/dist/Sdk/Snippets/types.js +0 -3
- package/dist/Sdk/Stories/Stories.d.ts +0 -19
- package/dist/Sdk/Stories/Stories.js +0 -129
- package/dist/Sdk/Stories/index.d.ts +0 -2
- package/dist/Sdk/Stories/index.js +0 -9
- package/dist/Sdk/Stories/types.js +0 -3
- package/dist/Sdk/Subscriptions/Subscriptions.js +0 -136
- package/dist/Sdk/Subscriptions/index.d.ts +0 -2
- package/dist/Sdk/Subscriptions/index.js +0 -9
- package/dist/Sdk/Subscriptions/types.js +0 -3
- package/dist/Sdk/constants.js +0 -8
- package/dist/Sdk/index.d.ts +0 -14
- package/dist/Sdk/index.js +0 -32
- package/dist/Sdk/routing.js +0 -31
- package/dist/Sdk/types.d.ts +0 -6
- package/dist/Sdk/types.js +0 -3
- package/dist/Sdk/utils.js +0 -40
- package/dist/types/ContactRef.d.ts +0 -12
- package/dist/types/ContactRef.js +0 -3
- package/dist/types/CountryRef.js +0 -3
- package/dist/types/Coverage.js +0 -24
- package/dist/types/CultureRef.d.ts +0 -12
- package/dist/types/CultureRef.js +0 -9
- package/dist/types/EmailBranding.d.ts +0 -8
- package/dist/types/EmailBranding.js +0 -3
- package/dist/types/EmailBrandingMode.d.ts +0 -4
- package/dist/types/EmailBrandingMode.js +0 -9
- package/dist/types/GalleryStatus.d.ts +0 -4
- package/dist/types/GalleryStatus.js +0 -9
- package/dist/types/LicenseStatus.d.ts +0 -9
- package/dist/types/LicenseStatus.js +0 -14
- package/dist/types/NewsroomDomainShareInstructions.d.ts +0 -4
- package/dist/types/NewsroomDomainShareInstructions.js +0 -3
- package/dist/types/NewsroomGalleryImage.d.ts +0 -8
- package/dist/types/NewsroomGalleryImage.js +0 -3
- package/dist/types/NewsroomThemePreset.d.ts +0 -36
- package/dist/types/NewsroomThemePreset.js +0 -3
- package/dist/types/ThemeFeature.d.ts +0 -12
- package/dist/types/ThemeFeature.js +0 -17
- package/dist/types/ThemeStatus.d.ts +0 -4
- package/dist/types/ThemeStatus.js +0 -9
- package/dist/types/TrackingPolicy.d.ts +0 -5
- package/dist/types/TrackingPolicy.js +0 -10
- package/dist/types/UnsubscribeReason.d.ts +0 -7
- package/dist/types/UnsubscribeReason.js +0 -12
- package/dist/types/UserRef.js +0 -3
- package/dist/types/scopes/AllContactsScope.d.ts +0 -6
- package/dist/types/scopes/AllContactsScope.js +0 -3
- package/dist/types/scopes/CampaignRecipientsScope.d.ts +0 -8
- package/dist/types/scopes/CampaignRecipientsScope.js +0 -3
- package/dist/types/scopes/CampaignReportScope.d.ts +0 -9
- package/dist/types/scopes/CampaignReportScope.js +0 -3
- package/dist/types/scopes/ContactEmployeesScope.d.ts +0 -7
- package/dist/types/scopes/ContactEmployeesScope.js +0 -3
- package/dist/types/scopes/ContactOrganisationsScope.d.ts +0 -7
- package/dist/types/scopes/ContactOrganisationsScope.js +0 -3
- package/dist/types/scopes/ContactsScope.d.ts +0 -6
- package/dist/types/scopes/ContactsScope.js +0 -3
- package/dist/types/scopes/index.d.ts +0 -6
- package/dist/types/scopes/index.js +0 -19
package/dist/types/Story.d.ts
CHANGED
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
import { Category } from './Category';
|
|
2
|
-
import {
|
|
3
|
-
import { CultureRef } from './
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export declare enum StoryFormatVersion {
|
|
8
|
-
HTML = 1,
|
|
9
|
-
SLATEJS = 3
|
|
10
|
-
}
|
|
11
|
-
export declare enum StoryLifecycleStatus {
|
|
12
|
-
UNINITIALIZED = "uninitialized",
|
|
13
|
-
DRAFT = "draft",
|
|
14
|
-
SCHEDULED = "scheduled",
|
|
15
|
-
EMBARGO = "embargo",
|
|
16
|
-
PUBLISHED = "published"
|
|
17
|
-
}
|
|
18
|
-
export declare enum StoryPublicationStatus {
|
|
19
|
-
NEW = "new",
|
|
20
|
-
DRAFT = "draft",
|
|
21
|
-
PUBLISHED = "published"
|
|
22
|
-
}
|
|
23
|
-
export declare enum StoryVisibility {
|
|
24
|
-
PUBLIC = "public",
|
|
25
|
-
EMBARGO = "embargo",
|
|
26
|
-
PRIVATE = "private",
|
|
27
|
-
CONFIDENTIAL = "confidential"
|
|
28
|
-
}
|
|
1
|
+
import type { Category } from './Category';
|
|
2
|
+
import type { OEmbedInfo } from './common';
|
|
3
|
+
import type { CultureRef } from './Culture';
|
|
4
|
+
import type { Entity } from './Entity';
|
|
5
|
+
import type { NewsroomRef } from './Newsroom';
|
|
6
|
+
import type { UserRef } from './User';
|
|
29
7
|
export interface StoryRef {
|
|
30
8
|
uuid: string;
|
|
31
9
|
/**
|
|
@@ -35,9 +13,9 @@ export interface StoryRef {
|
|
|
35
13
|
id: number;
|
|
36
14
|
title: string;
|
|
37
15
|
slug: string;
|
|
38
|
-
publication_status:
|
|
39
|
-
lifecycle_status:
|
|
40
|
-
visibility:
|
|
16
|
+
publication_status: Story.PublicationStatus;
|
|
17
|
+
lifecycle_status: Story.LifecycleStatus;
|
|
18
|
+
visibility: Story.Visibility;
|
|
41
19
|
thumbnail_url: string;
|
|
42
20
|
created_at: string;
|
|
43
21
|
updated_at: string;
|
|
@@ -65,7 +43,7 @@ export interface Story extends Entity<number> {
|
|
|
65
43
|
intro: string;
|
|
66
44
|
summary: string;
|
|
67
45
|
slug: string;
|
|
68
|
-
format_version:
|
|
46
|
+
format_version: Story.FormatVersion;
|
|
69
47
|
culture: CultureRef;
|
|
70
48
|
author: UserRef | null;
|
|
71
49
|
links: {
|
|
@@ -95,7 +73,7 @@ export interface Story extends Entity<number> {
|
|
|
95
73
|
updated_at: string;
|
|
96
74
|
published_at: string | null;
|
|
97
75
|
scheduled_at: string | null;
|
|
98
|
-
lifecycle_status:
|
|
76
|
+
lifecycle_status: Story.LifecycleStatus;
|
|
99
77
|
is_archived: boolean;
|
|
100
78
|
is_finalized: boolean;
|
|
101
79
|
is_published: boolean;
|
|
@@ -105,42 +83,66 @@ export interface Story extends Entity<number> {
|
|
|
105
83
|
is_scheduled: boolean;
|
|
106
84
|
is_sharable: boolean;
|
|
107
85
|
is_analytics_available: boolean;
|
|
108
|
-
publication_status:
|
|
109
|
-
visibility:
|
|
86
|
+
publication_status: Story.PublicationStatus;
|
|
87
|
+
visibility: Story.Visibility;
|
|
110
88
|
/**
|
|
111
89
|
* Contains attached gallery slate content.
|
|
112
90
|
* Always `null` for v3 stories.
|
|
113
91
|
*/
|
|
114
92
|
attached_gallery_content: string | null;
|
|
115
93
|
}
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
94
|
+
export declare namespace Story {
|
|
95
|
+
enum FormatVersion {
|
|
96
|
+
HTML = 1,
|
|
97
|
+
SLATEJS = 3
|
|
98
|
+
}
|
|
99
|
+
enum LifecycleStatus {
|
|
100
|
+
UNINITIALIZED = "uninitialized",
|
|
101
|
+
DRAFT = "draft",
|
|
102
|
+
SCHEDULED = "scheduled",
|
|
103
|
+
EMBARGO = "embargo",
|
|
104
|
+
PUBLISHED = "published"
|
|
105
|
+
}
|
|
106
|
+
enum PublicationStatus {
|
|
107
|
+
NEW = "new",
|
|
108
|
+
DRAFT = "draft",
|
|
109
|
+
PUBLISHED = "published"
|
|
110
|
+
}
|
|
111
|
+
enum Visibility {
|
|
112
|
+
PUBLIC = "public",
|
|
113
|
+
EMBARGO = "embargo",
|
|
114
|
+
PRIVATE = "private",
|
|
115
|
+
CONFIDENTIAL = "confidential"
|
|
116
|
+
}
|
|
117
|
+
interface ExtraFields {
|
|
118
|
+
/**
|
|
119
|
+
* Depending on `format_version` this field can contain:
|
|
120
|
+
* - HTML content for v1 stories (deprecated)
|
|
121
|
+
* - JSON-encoded structured content for v3 stories (see Prezly Content Format).
|
|
122
|
+
*/
|
|
123
|
+
content: string;
|
|
124
|
+
/**
|
|
125
|
+
* Uploadcare image JSON.
|
|
126
|
+
*/
|
|
127
|
+
thumbnail_image: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Uploadcare image JSON.
|
|
130
|
+
*/
|
|
131
|
+
header_image: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Uploadcare image JSON.
|
|
134
|
+
*/
|
|
135
|
+
preview_image: string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Uploadcare image JSON.
|
|
138
|
+
*/
|
|
139
|
+
social_image: string | null;
|
|
140
|
+
social_text: string;
|
|
141
|
+
tag_names: string[];
|
|
142
|
+
referenced_entities: {
|
|
143
|
+
stories: Record<string, OEmbedInfo>;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
144
146
|
}
|
|
145
|
-
export interface ExtendedStory extends Story,
|
|
147
|
+
export interface ExtendedStory extends Story, Story.ExtraFields {
|
|
146
148
|
}
|
package/dist/types/Story.js
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
})(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
export let Story;
|
|
2
|
+
(function (_Story) {
|
|
3
|
+
let FormatVersion;
|
|
4
|
+
(function (FormatVersion) {
|
|
5
|
+
FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
|
|
6
|
+
FormatVersion[FormatVersion["SLATEJS"] = 3] = "SLATEJS";
|
|
7
|
+
})(FormatVersion || (FormatVersion = {}));
|
|
8
|
+
_Story.FormatVersion = FormatVersion;
|
|
9
|
+
let LifecycleStatus;
|
|
10
|
+
(function (LifecycleStatus) {
|
|
11
|
+
LifecycleStatus["UNINITIALIZED"] = "uninitialized";
|
|
12
|
+
LifecycleStatus["DRAFT"] = "draft";
|
|
13
|
+
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
14
|
+
LifecycleStatus["EMBARGO"] = "embargo";
|
|
15
|
+
LifecycleStatus["PUBLISHED"] = "published";
|
|
16
|
+
})(LifecycleStatus || (LifecycleStatus = {}));
|
|
17
|
+
_Story.LifecycleStatus = LifecycleStatus;
|
|
18
|
+
let PublicationStatus;
|
|
19
|
+
(function (PublicationStatus) {
|
|
20
|
+
PublicationStatus["NEW"] = "new";
|
|
21
|
+
PublicationStatus["DRAFT"] = "draft";
|
|
22
|
+
PublicationStatus["PUBLISHED"] = "published";
|
|
23
|
+
})(PublicationStatus || (PublicationStatus = {}));
|
|
24
|
+
_Story.PublicationStatus = PublicationStatus;
|
|
25
|
+
let Visibility;
|
|
26
|
+
(function (Visibility) {
|
|
27
|
+
Visibility["PUBLIC"] = "public";
|
|
28
|
+
Visibility["EMBARGO"] = "embargo";
|
|
29
|
+
Visibility["PRIVATE"] = "private";
|
|
30
|
+
Visibility["CONFIDENTIAL"] = "confidential";
|
|
31
|
+
})(Visibility || (Visibility = {}));
|
|
32
|
+
_Story.Visibility = Visibility;
|
|
33
|
+
})(Story || (Story = {}));
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LicenseRef } from './License';
|
|
2
|
-
import { NewsroomRef } from './Newsroom';
|
|
3
|
-
import { Permission } from './Permissions';
|
|
1
|
+
import type { LicenseRef } from './License';
|
|
2
|
+
import type { NewsroomRef } from './Newsroom';
|
|
3
|
+
import type { Permission } from './Permissions';
|
|
4
4
|
export interface UserAccount {
|
|
5
5
|
id: number;
|
|
6
6
|
avatar_url: string;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXNlckFjY291bnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMvVXNlckFjY291bnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExpY2Vuc2VSZWYgfSBmcm9tICcuL0xpY2Vuc2UnO1xuaW1wb3J0IHsgTmV3c3Jvb21SZWYgfSBmcm9tICcuL05ld3Nyb29tJztcbmltcG9ydCB7IFBlcm1pc3Npb24gfSBmcm9tICcuL1Blcm1pc3Npb25zJztcblxuZXhwb3J0IGludGVyZmFjZSBVc2VyQWNjb3VudCB7XG4gICAgaWQ6IG51bWJlcjtcbiAgICBhdmF0YXJfdXJsOiBzdHJpbmc7XG4gICAgY291bnRyeTogc3RyaW5nO1xuICAgIGNyZWF0ZWQ6IHN0cmluZztcbiAgICBkYXRlX2Zvcm1hdDogc3RyaW5nO1xuICAgIGRpc3BsYXlfbmFtZTogc3RyaW5nO1xuICAgIGVtYWlsOiBzdHJpbmc7XG4gICAgZmlyc3RfbmFtZTogc3RyaW5nO1xuXG4gICAgLyoqXG4gICAgICogVGhpcyBmaWVsZCBpcyBub3Qgc3VpdGFibGUgZm9yIGNoZWNraW5nIHNlY3VyaXR5IHBlcm1pc3Npb25zLlxuICAgICAqIFRoaXMgaXMgb25seSBpbmRpY2F0aW5nIHdoaWNoIHBlcm1pc3Npb25zIHRoaXMgdXNlciB3YXMgY29uZmlndXJlZCBhY2Nlc3MgdG8uXG4gICAgICogQnV0IHRoZSBhY3R1YWwgY3VycmVudGx5IGdyYW50ZWQgcGVybWlzc2lvbnMgbGlzdCBzaG91bGQgYmUgb2J0YWluZWRcbiAgICAgKiBmcm9tIHRoZSBVc2VyQ29udGV4dCBvYmplY3QuXG4gICAgICovXG4gICAgcGVybWlzc2lvbnM6ICcqJyB8IFBlcm1pc3Npb25bXTtcbiAgICAvKipcbiAgICAgKiBUaGlzIGZpZWxkIGlzIG5vdCBzdWl0YWJsZSBmb3IgY2hlY2tpbmcgbmV3c3Jvb20gYWNjZXNzIHNlY3VyaXR5LXdpc2UuXG4gICAgICogVGhpcyBpcyBvbmx5IGluZGljYXRpbmcgd2hpY2ggbmV3c3Jvb21zIHRoaXMgdXNlciB3YXMgY29uZmlndXJlZCBhY2Nlc3MgdG8uXG4gICAgICogQnV0IHRoZSBhY3R1YWwgY3VycmVudGx5IGFsbG93ZWQgbmV3c3Jvb21zIGxpc3Qgc2hvdWxkIGJlIG9idGFpbmVkXG4gICAgICogZnJvbSB0aGUgVXNlckNvbnRleHQgb2JqZWN0LlxuICAgICAqL1xuICAgIG5ld3Nyb29tczogJyonIHwgTmV3c3Jvb21SZWZbXTtcblxuICAgIGlzX2FjY2VwdGVkOiBib29sZWFuO1xuICAgIGlzX2FjdGl2ZTogYm9vbGVhbjtcbiAgICBzaG93X2luX21lbnU6IGJvb2xlYW47XG5cbiAgICBpc19zdWJzY3JpYmVkX3RvX3ByaXZhY3lfcmVxdWVzdHM6IGJvb2xlYW47XG4gICAgbGFzdF9uYW1lOiBzdHJpbmc7XG4gICAgLyoqXG4gICAgICogTGFzdCB0aW1lIHRoZSB1c2VyIGluaXRpYXRlZCBhIHNlc3Npb24uXG4gICAgICovXG4gICAgbGFzdF9sb2dpbl9hdDogc3RyaW5nIHwgbnVsbDtcbiAgICAvKipcbiAgICAgKiBMYXN0IHRpbWUgdGhlIHVzZXIgd2FzIGFjdGl2ZS5cbiAgICAgKi9cbiAgICBsYXN0X3NlZW5fYXQ6IHN0cmluZyB8IG51bGw7XG4gICAgbGljZW5zZTogTGljZW5zZVJlZjtcbiAgICBqb2luZWRfbGljZW5zZV9hdDogc3RyaW5nO1xuICAgIGxhc3Rfc2Vlbl9saWNlbnNlX2F0OiBzdHJpbmcgfCBudWxsO1xuICAgIHRpbWVfZm9ybWF0OiBzdHJpbmc7XG4gICAgdGltZXpvbmVfb2Zmc2V0OiBzdHJpbmc7XG4gICAgdGltZXpvbmU6IHN0cmluZztcbn1cbiJdfQ==
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
export declare enum NotificationStyle {
|
|
2
|
-
SUCCESS = "success",
|
|
3
|
-
INFO = "info",
|
|
4
|
-
WARNING = "warning",
|
|
5
|
-
DANGER = "danger"
|
|
6
|
-
}
|
|
7
|
-
export interface NotificationAction {
|
|
8
|
-
target: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
1
|
export interface Notification {
|
|
12
2
|
id: string;
|
|
13
3
|
type: string;
|
|
14
|
-
style:
|
|
4
|
+
style: Notification.Style;
|
|
15
5
|
title: string;
|
|
16
6
|
description: string;
|
|
17
|
-
actions:
|
|
7
|
+
actions: Notification.Action[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace Notification {
|
|
10
|
+
enum Style {
|
|
11
|
+
SUCCESS = "success",
|
|
12
|
+
INFO = "info",
|
|
13
|
+
WARNING = "warning",
|
|
14
|
+
DANGER = "danger"
|
|
15
|
+
}
|
|
16
|
+
interface Action {
|
|
17
|
+
target: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
18
20
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export let Notification;
|
|
2
|
+
(function (_Notification) {
|
|
3
|
+
let Style;
|
|
4
|
+
(function (Style) {
|
|
5
|
+
Style["SUCCESS"] = "success";
|
|
6
|
+
Style["INFO"] = "info";
|
|
7
|
+
Style["WARNING"] = "warning";
|
|
8
|
+
Style["DANGER"] = "danger";
|
|
9
|
+
})(Style || (Style = {}));
|
|
10
|
+
_Notification.Style = Style;
|
|
11
|
+
})(Notification || (Notification = {}));
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT0VtYmVkSW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90eXBlcy9jb21tb24vT0VtYmVkSW5mby50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBPRW1iZWRJbmZvIHtcbiAgICB2ZXJzaW9uOiAnMS4wJztcbiAgICB1cmw6IHN0cmluZztcbiAgICB0eXBlOiAndmlkZW8nIHwgJ3Bob3RvJyB8ICdyaWNoJyB8ICdsaW5rJztcblxuICAgIC8vIGdlbmVyaWMgcHJvcGVydGllc1xuICAgIHRpdGxlPzogc3RyaW5nO1xuICAgIGRlc2NyaXB0aW9uPzogc3RyaW5nO1xuICAgIHNjcmVlbnNob3RfdXJsPzogc3RyaW5nO1xuICAgIHRodW1ibmFpbF91cmw/OiBzdHJpbmc7XG4gICAgdGh1bWJuYWlsX3dpZHRoPzogbnVtYmVyO1xuICAgIHRodW1ibmFpbF9oZWlnaHQ/OiBudW1iZXI7XG4gICAgYXV0aG9yX25hbWU/OiBzdHJpbmc7XG4gICAgYXV0aG9yX3VybD86IHN0cmluZztcbiAgICBwcm92aWRlcl9uYW1lPzogc3RyaW5nO1xuICAgIHByb3ZpZGVyX3VybD86IHN0cmluZztcbiAgICBjYWNoZV9hZ2U/OiBudW1iZXI7XG5cbiAgICAvLyB2aWRlbywgcGhvdG8gJiByaWNoIHR5cGVzXG4gICAgaHRtbD86IHN0cmluZztcbiAgICB3aWR0aD86IG51bWJlcjtcbiAgICBoZWlnaHQ/OiBudW1iZXI7XG59XG4iXX0=
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export let SelectionMode;
|
|
5
6
|
(function (SelectionMode) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(SelectionMode
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGFnaW5hdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90eXBlcy9jb21tb24vUGFnaW5hdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFRQSxJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDckIsNEJBQVcsQ0FBQTtJQUNYLDBCQUFTLENBQUE7SUFDVCxrQ0FBaUIsQ0FBQTtBQUNyQixDQUFDLEVBSlcsYUFBYSxHQUFiLHFCQUFhLEtBQWIscUJBQWEsUUFJeEIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBzZWUgaHR0cHM6Ly9hcGkucHJlemx5LmNvbS92Mi9jb21tb24vc2NoZW1hLmpzb24jL2RlZmluaXRpb25zL1BhZ2luYXRpb25cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBQYWdpbmF0aW9uIHtcbiAgICBtYXRjaGVkX3JlY29yZHNfbnVtYmVyOiBudW1iZXI7XG4gICAgdG90YWxfcmVjb3Jkc19udW1iZXI6IG51bWJlcjtcbn1cblxuZXhwb3J0IGVudW0gU2VsZWN0aW9uTW9kZSB7XG4gICAgQUxMID0gJ2FsbCcsXG4gICAgSU4gPSAnaW4nLFxuICAgIE5PVF9JTiA9ICdub3RfaW4nLFxufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNlbGVjdGlvblZhbHVlPEkgPSBudW1iZXI+IHtcbiAgICBtb2RlOiBTZWxlY3Rpb25Nb2RlO1xuICAgIGlkczogSVtdO1xufVxuIl19
|
|
7
|
+
SelectionMode["ALL"] = "all";
|
|
8
|
+
SelectionMode["IN"] = "in";
|
|
9
|
+
SelectionMode["NOT_IN"] = "not_in";
|
|
10
|
+
})(SelectionMode || (SelectionMode = {}));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
3
3
|
*/
|
|
4
|
-
export declare type Query = object;
|
|
4
|
+
export declare type Query = object | string;
|
|
5
|
+
export declare namespace Query {
|
|
6
|
+
function stringify(query: Query | undefined | null): string | undefined;
|
|
7
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// TODO: Refine Query typings
|
|
2
|
+
/**
|
|
3
|
+
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export let Query;
|
|
7
|
+
(function (_Query) {
|
|
8
|
+
function stringify(query) {
|
|
9
|
+
if (!query) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
return typeof query === 'string' ? query : JSON.stringify(query);
|
|
13
|
+
}
|
|
14
|
+
_Query.stringify = stringify;
|
|
15
|
+
})(Query || (Query = {}));
|
package/dist/types/common/Utm.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXRtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3R5cGVzL2NvbW1vbi9VdG0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgVXRtIHtcbiAgICB1dG1faWQ/OiBzdHJpbmc7XG4gICAgdXRtX3NvdXJjZT86IHN0cmluZztcbiAgICB1dG1fY2FtcGFpZ24/OiBzdHJpbmc7XG4gICAgdXRtX3Rlcm0/OiBzdHJpbmc7XG4gICAgdXRtX2NvbnRlbnQ/OiBzdHJpbmc7XG59XG4iXX0=
|
|
1
|
+
export {};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2FybmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90eXBlcy9jb21tb24vV2FybmluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBXYXJuaW5nIHtcbiAgICBmaWVsZDogc3RyaW5nO1xuICAgIGNvZGU6IHN0cmluZztcbiAgICBtZXNzYWdlOiBzdHJpbmc7XG59XG4iXX0=
|
|
1
|
+
export {};
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./Notification"), exports);
|
|
14
|
-
__exportStar(require("./OEmbedInfo"), exports);
|
|
15
|
-
__exportStar(require("./Pagination"), exports);
|
|
16
|
-
__exportStar(require("./Query"), exports);
|
|
17
|
-
__exportStar(require("./Utm"), exports);
|
|
18
|
-
__exportStar(require("./Warning"), exports);
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHlwZXMvY29tbW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLGlEQUErQjtBQUMvQiwrQ0FBNkI7QUFDN0IsK0NBQTZCO0FBQzdCLDBDQUF3QjtBQUN4Qix3Q0FBc0I7QUFDdEIsNENBQTBCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9Ob3RpZmljYXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9PRW1iZWRJbmZvJztcbmV4cG9ydCAqIGZyb20gJy4vUGFnaW5hdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL1F1ZXJ5JztcbmV4cG9ydCAqIGZyb20gJy4vVXRtJztcbmV4cG9ydCAqIGZyb20gJy4vV2FybmluZyc7XG4iXX0=
|
|
1
|
+
export * from "./Notification.js";
|
|
2
|
+
export * from "./OEmbedInfo.js";
|
|
3
|
+
export * from "./Pagination.js";
|
|
4
|
+
export * from "./Query.js";
|
|
5
|
+
export * from "./Utm.js";
|
|
6
|
+
export * from "./Warning.js";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
export * from './common';
|
|
2
|
-
export * from './scopes';
|
|
3
2
|
export * from './Entity';
|
|
4
3
|
export * from './Campaign';
|
|
5
4
|
export * from './Category';
|
|
6
5
|
export * from './Contact';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
6
|
+
export * from './Country';
|
|
7
|
+
export * from './CoverageEntry';
|
|
8
|
+
export * from './Culture';
|
|
10
9
|
export * from './DnsConfigurationInstruction';
|
|
10
|
+
export * from './EmailRecipient';
|
|
11
|
+
export * from './EmailSubscription';
|
|
11
12
|
export * from './JobState';
|
|
12
13
|
export * from './License';
|
|
13
|
-
export * from './LicenseStatus';
|
|
14
14
|
export * from './Newsroom';
|
|
15
|
-
export * from './NewsroomContact';
|
|
16
15
|
export * from './NewsroomCompanyInformation';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './NewsroomThemePreset';
|
|
19
|
-
export * from './TrackingPolicy';
|
|
20
|
-
export * from './ThemeFeature';
|
|
21
|
-
export * from './ThemeStatus';
|
|
22
|
-
export * from './NewsroomWebhook';
|
|
16
|
+
export * from './NewsroomContact';
|
|
23
17
|
export * from './NewsroomDomain';
|
|
24
|
-
export * from './NewsroomDomainShareInstructions';
|
|
25
18
|
export * from './NewsroomGallery';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
19
|
+
export * from './NewsroomLanguageSettings';
|
|
20
|
+
export * from './NewsroomTheme';
|
|
21
|
+
export * from './NewsroomWebhook';
|
|
22
|
+
export * from './PrivacyRequest';
|
|
30
23
|
export * from './SenderAddress';
|
|
31
24
|
export * from './SenderDomain';
|
|
32
|
-
export * from './Story';
|
|
33
25
|
export * from './Snippet';
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './EmailBranding';
|
|
37
|
-
export * from './EmailBrandingMode';
|
|
38
|
-
export * from './PrivacyRequest';
|
|
26
|
+
export * from './Story';
|
|
27
|
+
export * from './User';
|
|
39
28
|
export * from './UserAccount';
|
package/dist/types/index.js
CHANGED
|
@@ -1,54 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
1
|
// Common
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
__exportStar(require("./EmailRecipient"), exports);
|
|
43
|
-
__exportStar(require("./EmailSubscription"), exports);
|
|
44
|
-
__exportStar(require("./SenderAddress"), exports);
|
|
45
|
-
__exportStar(require("./SenderDomain"), exports);
|
|
46
|
-
__exportStar(require("./Story"), exports);
|
|
47
|
-
__exportStar(require("./Snippet"), exports);
|
|
48
|
-
__exportStar(require("./UserRef"), exports);
|
|
49
|
-
__exportStar(require("./UnsubscribeReason"), exports);
|
|
50
|
-
__exportStar(require("./EmailBranding"), exports);
|
|
51
|
-
__exportStar(require("./EmailBrandingMode"), exports);
|
|
52
|
-
__exportStar(require("./PrivacyRequest"), exports);
|
|
53
|
-
__exportStar(require("./UserAccount"), exports);
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsU0FBUztBQUNULDJDQUF5QjtBQUN6QiwyQ0FBeUI7QUFDekIsMkNBQXlCO0FBQ3pCLFdBQVc7QUFDWCw2Q0FBMkI7QUFDM0IsNkNBQTJCO0FBQzNCLDRDQUEwQjtBQUMxQiwrQ0FBNkI7QUFDN0IsNkNBQTJCO0FBQzNCLCtDQUE2QjtBQUM3QixnRUFBOEM7QUFDOUMsNkNBQTJCO0FBQzNCLDRDQUEwQjtBQUMxQixrREFBZ0M7QUFDaEMsNkNBQTJCO0FBQzNCLG9EQUFrQztBQUNsQywrREFBNkM7QUFDN0MsNkRBQTJDO0FBQzNDLHdEQUFzQztBQUN0QyxtREFBaUM7QUFDakMsaURBQStCO0FBQy9CLGdEQUE4QjtBQUM5QixvREFBa0M7QUFDbEMsbURBQWlDO0FBQ2pDLG9FQUFrRDtBQUNsRCxvREFBa0M7QUFDbEMseURBQXVDO0FBQ3ZDLGtEQUFnQztBQUNoQyxtREFBaUM7QUFDakMsc0RBQW9DO0FBQ3BDLGtEQUFnQztBQUNoQyxpREFBK0I7QUFDL0IsMENBQXdCO0FBQ3hCLDRDQUEwQjtBQUMxQiw0Q0FBMEI7QUFDMUIsc0RBQW9DO0FBQ3BDLGtEQUFnQztBQUNoQyxzREFBb0M7QUFDcEMsbURBQWlDO0FBQ2pDLGdEQUE4QiIsInNvdXJjZXNDb250ZW50IjpbIi8vIENvbW1vblxuZXhwb3J0ICogZnJvbSAnLi9jb21tb24nO1xuZXhwb3J0ICogZnJvbSAnLi9zY29wZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9FbnRpdHknO1xuLy8gRW50aXRpZXNcbmV4cG9ydCAqIGZyb20gJy4vQ2FtcGFpZ24nO1xuZXhwb3J0ICogZnJvbSAnLi9DYXRlZ29yeSc7XG5leHBvcnQgKiBmcm9tICcuL0NvbnRhY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9Db3VudHJ5UmVmJztcbmV4cG9ydCAqIGZyb20gJy4vQ292ZXJhZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9DdWx0dXJlUmVmJztcbmV4cG9ydCAqIGZyb20gJy4vRG5zQ29uZmlndXJhdGlvbkluc3RydWN0aW9uJztcbmV4cG9ydCAqIGZyb20gJy4vSm9iU3RhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9MaWNlbnNlJztcbmV4cG9ydCAqIGZyb20gJy4vTGljZW5zZVN0YXR1cyc7XG5leHBvcnQgKiBmcm9tICcuL05ld3Nyb29tJztcbmV4cG9ydCAqIGZyb20gJy4vTmV3c3Jvb21Db250YWN0JztcbmV4cG9ydCAqIGZyb20gJy4vTmV3c3Jvb21Db21wYW55SW5mb3JtYXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9OZXdzcm9vbUxhbmd1YWdlU2V0dGluZ3MnO1xuZXhwb3J0ICogZnJvbSAnLi9OZXdzcm9vbVRoZW1lUHJlc2V0JztcbmV4cG9ydCAqIGZyb20gJy4vVHJhY2tpbmdQb2xpY3knO1xuZXhwb3J0ICogZnJvbSAnLi9UaGVtZUZlYXR1cmUnO1xuZXhwb3J0ICogZnJvbSAnLi9UaGVtZVN0YXR1cyc7XG5leHBvcnQgKiBmcm9tICcuL05ld3Nyb29tV2ViaG9vayc7XG5leHBvcnQgKiBmcm9tICcuL05ld3Nyb29tRG9tYWluJztcbmV4cG9ydCAqIGZyb20gJy4vTmV3c3Jvb21Eb21haW5TaGFyZUluc3RydWN0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL05ld3Nyb29tR2FsbGVyeSc7XG5leHBvcnQgKiBmcm9tICcuL05ld3Nyb29tR2FsbGVyeUltYWdlJztcbmV4cG9ydCAqIGZyb20gJy4vR2FsbGVyeVN0YXR1cyc7XG5leHBvcnQgKiBmcm9tICcuL0VtYWlsUmVjaXBpZW50JztcbmV4cG9ydCAqIGZyb20gJy4vRW1haWxTdWJzY3JpcHRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9TZW5kZXJBZGRyZXNzJztcbmV4cG9ydCAqIGZyb20gJy4vU2VuZGVyRG9tYWluJztcbmV4cG9ydCAqIGZyb20gJy4vU3RvcnknO1xuZXhwb3J0ICogZnJvbSAnLi9TbmlwcGV0JztcbmV4cG9ydCAqIGZyb20gJy4vVXNlclJlZic7XG5leHBvcnQgKiBmcm9tICcuL1Vuc3Vic2NyaWJlUmVhc29uJztcbmV4cG9ydCAqIGZyb20gJy4vRW1haWxCcmFuZGluZyc7XG5leHBvcnQgKiBmcm9tICcuL0VtYWlsQnJhbmRpbmdNb2RlJztcbmV4cG9ydCAqIGZyb20gJy4vUHJpdmFjeVJlcXVlc3QnO1xuZXhwb3J0ICogZnJvbSAnLi9Vc2VyQWNjb3VudCc7XG4iXX0=
|
|
2
|
+
export * from "./common/index.js";
|
|
3
|
+
export * from "./Entity.js"; // Entities
|
|
4
|
+
export * from "./Campaign.js";
|
|
5
|
+
export * from "./Category.js";
|
|
6
|
+
export * from "./Contact.js";
|
|
7
|
+
export * from "./Country.js";
|
|
8
|
+
export * from "./CoverageEntry.js";
|
|
9
|
+
export * from "./Culture.js";
|
|
10
|
+
export * from "./DnsConfigurationInstruction.js";
|
|
11
|
+
export * from "./EmailRecipient.js";
|
|
12
|
+
export * from "./EmailSubscription.js";
|
|
13
|
+
export * from "./JobState.js";
|
|
14
|
+
export * from "./License.js";
|
|
15
|
+
export * from "./Newsroom.js";
|
|
16
|
+
export * from "./NewsroomCompanyInformation.js";
|
|
17
|
+
export * from "./NewsroomContact.js";
|
|
18
|
+
export * from "./NewsroomDomain.js";
|
|
19
|
+
export * from "./NewsroomGallery.js";
|
|
20
|
+
export * from "./NewsroomLanguageSettings.js";
|
|
21
|
+
export * from "./NewsroomTheme.js";
|
|
22
|
+
export * from "./NewsroomWebhook.js";
|
|
23
|
+
export * from "./PrivacyRequest.js";
|
|
24
|
+
export * from "./SenderAddress.js";
|
|
25
|
+
export * from "./SenderDomain.js";
|
|
26
|
+
export * from "./Snippet.js";
|
|
27
|
+
export * from "./Story.js";
|
|
28
|
+
export * from "./User.js";
|
|
29
|
+
export * from "./UserAccount.js";
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove heading and trailing slashes.
|
|
3
|
+
* Examples:
|
|
4
|
+
* - https://example.com/ -> https://example.com
|
|
5
|
+
* - /v2/path -> v2/path
|
|
6
|
+
* - /v2/path/ -> v2/path
|
|
7
|
+
*/
|
|
8
|
+
export function stripSlashes(url) {
|
|
9
|
+
return url.replace(/^\/|\/$/g, '');
|
|
10
|
+
}
|
|
11
|
+
function pad(num) {
|
|
12
|
+
const abs = Math.floor(Math.abs(num));
|
|
13
|
+
return (abs < 10 ? '0' : '') + abs;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @see https://stackoverflow.com/a/17415677/1895069
|
|
18
|
+
*/
|
|
19
|
+
export function toIso8601(date) {
|
|
20
|
+
const offset = -date.getTimezoneOffset();
|
|
21
|
+
const sign = offset >= 0 ? '+' : '-';
|
|
22
|
+
return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()) + 'T' + pad(date.getHours()) + ':' + pad(date.getMinutes()) + ':' + pad(date.getSeconds()) + sign + pad(offset / 60) + ':' + pad(offset % 60);
|
|
23
|
+
}
|