@segment/action-destinations 3.266.0-staging-20542aec8 → 3.266.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.
Files changed (63) hide show
  1. package/dist/destinations/customerio/utils.d.ts +1 -1
  2. package/dist/destinations/engage/utils/track.d.ts +9 -9
  3. package/package.json +3 -3
  4. package/dist/destinations/amazon-ads/utils.d.ts +0 -25
  5. package/dist/destinations/amazon-ads/utils.js +0 -8
  6. package/dist/destinations/amazon-ads/utils.js.map +0 -1
  7. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  8. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  9. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  10. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  11. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  12. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  13. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +0 -36
  14. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js +0 -3
  15. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.js.map +0 -1
  16. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.d.ts +0 -5
  17. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +0 -452
  18. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +0 -1
  19. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +0 -22
  20. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js +0 -3
  21. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.js.map +0 -1
  22. package/dist/destinations/engage-messaging-twilio/sendSms/index.d.ts +0 -5
  23. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +0 -131
  24. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +0 -1
  25. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +0 -23
  26. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +0 -131
  27. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +0 -1
  28. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.d.ts +0 -24
  29. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js +0 -3
  30. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/generated-types.js.map +0 -1
  31. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.d.ts +0 -5
  32. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js +0 -133
  33. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/index.js.map +0 -1
  34. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +0 -21
  35. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +0 -75
  36. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +0 -1
  37. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +0 -24
  38. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +0 -111
  39. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +0 -1
  40. package/dist/destinations/hubspot/helperFunctions.d.ts +0 -7
  41. package/dist/destinations/hubspot/helperFunctions.js +0 -27
  42. package/dist/destinations/hubspot/helperFunctions.js.map +0 -1
  43. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  44. package/dist/destinations/mixpanel/utils.js +0 -117
  45. package/dist/destinations/mixpanel/utils.js.map +0 -1
  46. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
  47. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
  48. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  49. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  50. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  51. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  52. package/dist/destinations/vernst-test/generated-types.d.ts +0 -2
  53. package/dist/destinations/vernst-test/generated-types.js +0 -3
  54. package/dist/destinations/vernst-test/generated-types.js.map +0 -1
  55. package/dist/destinations/vernst-test/index.d.ts +0 -4
  56. package/dist/destinations/vernst-test/index.js +0 -20
  57. package/dist/destinations/vernst-test/index.js.map +0 -1
  58. package/dist/destinations/vernst-test/pingWebhook/generated-types.d.ts +0 -3
  59. package/dist/destinations/vernst-test/pingWebhook/generated-types.js +0 -3
  60. package/dist/destinations/vernst-test/pingWebhook/generated-types.js.map +0 -1
  61. package/dist/destinations/vernst-test/pingWebhook/index.d.ts +0 -5
  62. package/dist/destinations/vernst-test/pingWebhook/index.js +0 -21
  63. package/dist/destinations/vernst-test/pingWebhook/index.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  export declare const trackApiEndpoint: ({ accountRegion }: {
2
2
  accountRegion?: string | undefined;
3
- }) => "https://track.customer.io" | "https://track-eu.customer.io";
3
+ }) => "https://track-eu.customer.io" | "https://track.customer.io";
4
4
  export declare enum AccountRegion {
5
5
  US = "US \uD83C\uDDFA\uD83C\uDDF8",
6
6
  EU = "EU \uD83C\uDDEA\uD83C\uDDFA"
@@ -1,10 +1,10 @@
1
1
  import { ContextFromDecorator } from './operationTracking';
2
2
  export declare const track: ((decoratorArgs?: ({
3
3
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
4
- } & {
4
+ } & import("./operationTracking").OperationLoggerDecoratorArgs & {
5
5
  onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
6
6
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
7
- } & import("./operationTracking").OperationLoggerDecoratorArgs & {
7
+ } & {
8
8
  shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
9
9
  } & {
10
10
  wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
@@ -15,6 +15,9 @@ export declare const track: ((decoratorArgs?: ({
15
15
  }) | undefined;
16
16
  } & {
17
17
  _contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
18
+ start?: number | undefined;
19
+ duration?: number | undefined;
20
+ } & {
18
21
  decoratorArgs?: {
19
22
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
20
23
  } | undefined;
@@ -22,19 +25,16 @@ export declare const track: ((decoratorArgs?: ({
22
25
  parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
23
26
  sharedContext: {};
24
27
  } & {
25
- start?: number | undefined;
26
- duration?: number | undefined;
28
+ logs: string[];
29
+ logMetadata?: Record<string, unknown> | undefined;
30
+ decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
31
+ sharedContext: import("./operationTracking").OperationLoggerSharedContext;
27
32
  } & {
28
33
  onFinally: (() => void)[];
29
34
  decoratorArgs?: {
30
35
  onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
31
36
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
32
37
  } | undefined;
33
- } & {
34
- logs: string[];
35
- logMetadata?: Record<string, unknown> | undefined;
36
- decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
37
- sharedContext: import("./operationTracking").OperationLoggerSharedContext;
38
38
  } & {
39
39
  tags: string[];
40
40
  sharedContext: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.266.0-staging-20542aec8",
4
+ "version": "3.266.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -43,7 +43,7 @@
43
43
  "@bufbuild/protobuf": "^1.4.2",
44
44
  "@bufbuild/protoc-gen-es": "^1.4.2",
45
45
  "@segment/a1-notation": "^2.1.4",
46
- "@segment/actions-core": "3.108.0-staging-20542aec8",
46
+ "@segment/actions-core": "^3.108.0",
47
47
  "@segment/actions-shared": "^1.90.0",
48
48
  "@types/node": "^18.11.15",
49
49
  "ajv-formats": "^2.1.1",
@@ -86,5 +86,5 @@
86
86
  "__tests__/__helpers__/"
87
87
  ]
88
88
  },
89
- "gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
89
+ "gitHead": "e6deb4b899001e1f0df3aea393c6463bee07b555"
90
90
  }
@@ -1,25 +0,0 @@
1
- import { HTTPError } from '@segment/actions-core';
2
- export declare class AmazonAdsError extends HTTPError {
3
- response: Response & {
4
- data: {
5
- status: string;
6
- message: string;
7
- };
8
- };
9
- }
10
- export interface AudiencePayload {
11
- name: string;
12
- description: string;
13
- countryCode?: string;
14
- targetResource: {
15
- advertiserId: string;
16
- };
17
- metadata: {
18
- externalAudienceId: string;
19
- ttl?: number;
20
- audienceFees?: {
21
- cpmCents: number;
22
- currency: string;
23
- }[];
24
- };
25
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AmazonAdsError = void 0;
4
- const actions_core_1 = require("@segment/actions-core");
5
- class AmazonAdsError extends actions_core_1.HTTPError {
6
- }
7
- exports.AmazonAdsError = AmazonAdsError;
8
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/amazon-ads/utils.ts"],"names":[],"mappings":";;;AAAA,wDAAiD;AAEjD,MAAa,cAAe,SAAQ,wBAAS;CAO5C;AAPD,wCAOC"}
@@ -1,22 +0,0 @@
1
- import { Payload } from './generated-types';
2
- export interface Data {
3
- payload: Payload & {
4
- context?: {
5
- [k: string]: unknown;
6
- personas?: {
7
- computation_key?: string;
8
- computation_class?: string;
9
- };
10
- };
11
- };
12
- rawData?: {
13
- context?: {
14
- personas?: {
15
- computation_key?: string;
16
- computation_class?: string;
17
- };
18
- };
19
- properties?: Record<string, boolean>;
20
- traits?: Record<string, boolean>;
21
- };
22
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/dynamic-yield-audiences/syncAudience/types.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export declare type AudienceAction = 'ADD' | 'REMOVE';
2
- export declare enum Priority {
3
- UserIdThenEmail = "user_id_then_email",
4
- UserIdThenAnonymousId = "user_id_then_anonymousId",
5
- UserIdThenEmailThenAnonymousId = "user_id_then_email_then_anonymousId",
6
- UserIdOnly = "user_id_only",
7
- EmailOnly = "email_only"
8
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Priority = void 0;
4
- var Priority;
5
- (function (Priority) {
6
- Priority["UserIdThenEmail"] = "user_id_then_email";
7
- Priority["UserIdThenAnonymousId"] = "user_id_then_anonymousId";
8
- Priority["UserIdThenEmailThenAnonymousId"] = "user_id_then_email_then_anonymousId";
9
- Priority["UserIdOnly"] = "user_id_only";
10
- Priority["EmailOnly"] = "email_only";
11
- })(Priority = exports.Priority || (exports.Priority = {}));
12
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/dynamic-yield-audiences/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,kDAAsC,CAAA;IACtC,8DAAkD,CAAA;IAClD,kFAAsE,CAAA;IACtE,uCAA2B,CAAA;IAC3B,oCAAwB,CAAA;AAC1B,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB"}
@@ -1,36 +0,0 @@
1
- export interface Payload {
2
- send?: boolean;
3
- traitEnrichment?: boolean;
4
- userId?: string;
5
- toEmail?: string;
6
- fromDomain?: string | null;
7
- fromEmail: string;
8
- fromName: string;
9
- replyToEqualsFrom?: boolean;
10
- replyToEmail: string;
11
- replyToName: string;
12
- bcc: string;
13
- previewText?: string;
14
- subject: string;
15
- body?: string;
16
- bodyUrl?: string;
17
- bodyType: string;
18
- bodyHtml?: string;
19
- groupId?: string;
20
- externalIds?: {
21
- id?: string;
22
- type?: string;
23
- subscriptionStatus?: string;
24
- groups?: {
25
- id?: string;
26
- isSubscribed?: boolean;
27
- }[];
28
- }[];
29
- customArgs?: {
30
- [k: string]: unknown;
31
- };
32
- traits?: {
33
- [k: string]: unknown;
34
- };
35
- eventOccurredTS?: string;
36
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/engage-messaging-sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { ActionDefinition } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- import type { Payload } from './generated-types';
4
- declare const action: ActionDefinition<Settings, Payload>;
5
- export default action;