@prezly/sdk 15.17.0 → 15.19.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.
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "15.16.0";
7
+ const VERSION = "15.18.0";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
10
10
  exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
@@ -1,3 +1,3 @@
1
- const VERSION = "15.16.0";
1
+ const VERSION = "15.18.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -14,6 +14,14 @@ export interface Campaign {
14
14
  */
15
15
  content: string;
16
16
  thumbnail_url: string;
17
+ /**
18
+ * This partially duplicates the `sender` property, but will always stay defined,
19
+ * even if the linked sender gets deleted later.
20
+ */
21
+ from: {
22
+ name: string;
23
+ email_address: string;
24
+ };
17
25
  story: StoryRef | null;
18
26
  newsroom: NewsroomRef | null;
19
27
  story_alignment: Campaign.StoryAlignment;
@@ -43,11 +51,16 @@ export interface Campaign {
43
51
  undelivered_rate: number;
44
52
  unsubscribes: number;
45
53
  unsubscribes_rate: number;
54
+ links: Campaign.Link[];
46
55
  };
47
56
  }
48
57
  export declare namespace Campaign {
49
58
  type SenderDomainVerificationFlow = SenderDomain.VerificationFlowVersion;
50
59
  const SenderDomainVerificationFlow: typeof SenderDomain.VerificationFlowVersion;
60
+ interface Link {
61
+ url: string;
62
+ clicks: number;
63
+ }
51
64
  enum LifecycleStatus {
52
65
  DRAFT = "draft",
53
66
  SCHEDULED = "scheduled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "15.17.0",
3
+ "version": "15.19.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",