pingram 1.0.35 → 1.0.36-alpha.1579

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.
@@ -76,6 +76,18 @@ export interface SendEmailRequest {
76
76
  * @memberof SendEmailRequest
77
77
  */
78
78
  bccAddresses?: Array<string>;
79
+ /**
80
+ * When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true.
81
+ * @type {boolean}
82
+ * @memberof SendEmailRequest
83
+ */
84
+ openTracking?: boolean;
85
+ /**
86
+ * When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true.
87
+ * @type {boolean}
88
+ * @memberof SendEmailRequest
89
+ */
90
+ clickTracking?: boolean;
79
91
  /**
80
92
  * URL-based file attachments. Up to 20 MB per file.
81
93
  * @type {Array<SendEmailRequestAttachmentsInner>}
@@ -51,6 +51,8 @@ function SendEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
51
51
  replyToAddresses: json['replyToAddresses'] == null ? undefined : json['replyToAddresses'],
52
52
  ccAddresses: json['ccAddresses'] == null ? undefined : json['ccAddresses'],
53
53
  bccAddresses: json['bccAddresses'] == null ? undefined : json['bccAddresses'],
54
+ openTracking: json['openTracking'] == null ? undefined : json['openTracking'],
55
+ clickTracking: json['clickTracking'] == null ? undefined : json['clickTracking'],
54
56
  attachments: json['attachments'] == null
55
57
  ? undefined
56
58
  : json['attachments'].map(SendEmailRequestAttachmentsInner_1.SendEmailRequestAttachmentsInnerFromJSON),
@@ -75,6 +77,8 @@ function SendEmailRequestToJSONTyped(value, ignoreDiscriminator = false) {
75
77
  replyToAddresses: value['replyToAddresses'],
76
78
  ccAddresses: value['ccAddresses'],
77
79
  bccAddresses: value['bccAddresses'],
80
+ openTracking: value['openTracking'],
81
+ clickTracking: value['clickTracking'],
78
82
  attachments: value['attachments'] == null
79
83
  ? undefined
80
84
  : (value['attachments'] ?? []).map(SendEmailRequestAttachmentsInner_1.SendEmailRequestAttachmentsInnerToJSON),
@@ -46,6 +46,18 @@ export interface SenderPostBodyOptionsEmail {
46
46
  * @memberof SenderPostBodyOptionsEmail
47
47
  */
48
48
  fromName?: string;
49
+ /**
50
+ * When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true.
51
+ * @type {boolean}
52
+ * @memberof SenderPostBodyOptionsEmail
53
+ */
54
+ openTracking?: boolean;
55
+ /**
56
+ * When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true.
57
+ * @type {boolean}
58
+ * @memberof SenderPostBodyOptionsEmail
59
+ */
60
+ clickTracking?: boolean;
49
61
  /**
50
62
  * File attachments (by URL or inline base64 content). Inline `content`: ~4 MB raw per file (413 if exceeded). URL `url`: up to 20 MB per file.
51
63
  * @type {Array<SenderPostBodyOptionsEmailAttachmentsInner>}
@@ -38,6 +38,8 @@ function SenderPostBodyOptionsEmailFromJSONTyped(json, ignoreDiscriminator) {
38
38
  bccAddresses: json['bccAddresses'] == null ? undefined : json['bccAddresses'],
39
39
  fromAddress: json['fromAddress'] == null ? undefined : json['fromAddress'],
40
40
  fromName: json['fromName'] == null ? undefined : json['fromName'],
41
+ openTracking: json['openTracking'] == null ? undefined : json['openTracking'],
42
+ clickTracking: json['clickTracking'] == null ? undefined : json['clickTracking'],
41
43
  attachments: json['attachments'] == null
42
44
  ? undefined
43
45
  : json['attachments'].map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerFromJSON)
@@ -56,6 +58,8 @@ function SenderPostBodyOptionsEmailToJSONTyped(value, ignoreDiscriminator = fals
56
58
  bccAddresses: value['bccAddresses'],
57
59
  fromAddress: value['fromAddress'],
58
60
  fromName: value['fromName'],
61
+ openTracking: value['openTracking'],
62
+ clickTracking: value['clickTracking'],
59
63
  attachments: value['attachments'] == null
60
64
  ? undefined
61
65
  : (value['attachments'] ?? []).map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerToJSON)
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.35';
11
+ const SDK_VERSION = '1.0.36';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.35",
3
+ "version": "1.0.36-alpha.1579",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",