@segment/action-destinations 3.266.0-staging-b946549fd → 3.267.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 (82) hide show
  1. package/dist/destinations/engage/utils/track.d.ts +17 -17
  2. package/dist/destinations/facebook-conversions-api/fb-capi-properties.js +1 -3
  3. package/dist/destinations/facebook-conversions-api/fb-capi-properties.js.map +1 -1
  4. package/package.json +4 -4
  5. package/dist/destinations/amazon-ads/utils.d.ts +0 -25
  6. package/dist/destinations/amazon-ads/utils.js +0 -8
  7. package/dist/destinations/amazon-ads/utils.js.map +0 -1
  8. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.d.ts +0 -22
  9. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js +0 -3
  10. package/dist/destinations/dynamic-yield-audiences/syncAudience/types.js.map +0 -1
  11. package/dist/destinations/dynamic-yield-audiences/types.d.ts +0 -8
  12. package/dist/destinations/dynamic-yield-audiences/types.js +0 -12
  13. package/dist/destinations/dynamic-yield-audiences/types.js.map +0 -1
  14. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.d.ts +0 -14
  15. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js +0 -3
  16. package/dist/destinations/responsys/asyncMergePetRecords/generated-types.js.map +0 -1
  17. package/dist/destinations/responsys/asyncMergePetRecords/index.d.ts +0 -5
  18. package/dist/destinations/responsys/asyncMergePetRecords/index.js +0 -113
  19. package/dist/destinations/responsys/asyncMergePetRecords/index.js.map +0 -1
  20. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.d.ts +0 -20
  21. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js +0 -3
  22. package/dist/destinations/responsys/asyncMergeProfileListMembers/generated-types.js.map +0 -1
  23. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.d.ts +0 -5
  24. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js +0 -174
  25. package/dist/destinations/responsys/asyncMergeProfileListMembers/index.js.map +0 -1
  26. package/dist/destinations/responsys/rsp-operations.d.ts +0 -14
  27. package/dist/destinations/responsys/rsp-operations.js +0 -33
  28. package/dist/destinations/responsys/rsp-operations.js.map +0 -1
  29. package/dist/destinations/responsys/rsp-properties.d.ts +0 -4
  30. package/dist/destinations/responsys/rsp-properties.js +0 -27
  31. package/dist/destinations/responsys/rsp-properties.js.map +0 -1
  32. package/dist/destinations/responsys-cloud/generated-types.d.ts +0 -20
  33. package/dist/destinations/responsys-cloud/generated-types.js +0 -3
  34. package/dist/destinations/responsys-cloud/generated-types.js.map +0 -1
  35. package/dist/destinations/responsys-cloud/index.d.ts +0 -4
  36. package/dist/destinations/responsys-cloud/index.js +0 -207
  37. package/dist/destinations/responsys-cloud/index.js.map +0 -1
  38. package/dist/destinations/responsys-cloud/sendAudience/generated-types.d.ts +0 -16
  39. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js +0 -3
  40. package/dist/destinations/responsys-cloud/sendAudience/generated-types.js.map +0 -1
  41. package/dist/destinations/responsys-cloud/sendAudience/index.d.ts +0 -5
  42. package/dist/destinations/responsys-cloud/sendAudience/index.js +0 -109
  43. package/dist/destinations/responsys-cloud/sendAudience/index.js.map +0 -1
  44. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.d.ts +0 -11
  45. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js +0 -3
  46. package/dist/destinations/responsys-cloud/sendCustomTraits/generated-types.js.map +0 -1
  47. package/dist/destinations/responsys-cloud/sendCustomTraits/index.d.ts +0 -5
  48. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js +0 -72
  49. package/dist/destinations/responsys-cloud/sendCustomTraits/index.js.map +0 -1
  50. package/dist/destinations/responsys-cloud/shared_properties.d.ts +0 -3
  51. package/dist/destinations/responsys-cloud/shared_properties.js +0 -19
  52. package/dist/destinations/responsys-cloud/shared_properties.js.map +0 -1
  53. package/dist/destinations/responsys-cloud/types.d.ts +0 -38
  54. package/dist/destinations/responsys-cloud/types.js +0 -3
  55. package/dist/destinations/responsys-cloud/types.js.map +0 -1
  56. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.d.ts +0 -14
  57. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js +0 -3
  58. package/dist/destinations/responsys-cloud/upsertListMember/generated-types.js.map +0 -1
  59. package/dist/destinations/responsys-cloud/upsertListMember/index.d.ts +0 -5
  60. package/dist/destinations/responsys-cloud/upsertListMember/index.js +0 -85
  61. package/dist/destinations/responsys-cloud/upsertListMember/index.js.map +0 -1
  62. package/dist/destinations/responsys-cloud/utils.d.ts +0 -20
  63. package/dist/destinations/responsys-cloud/utils.js +0 -179
  64. package/dist/destinations/responsys-cloud/utils.js.map +0 -1
  65. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +0 -1
  66. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +0 -381
  67. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +0 -1
  68. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +0 -1
  69. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +0 -581
  70. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +0 -1
  71. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +0 -4
  72. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +0 -97
  73. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +0 -1
  74. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -30
  75. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +0 -316
  76. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +0 -1
  77. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.d.ts +0 -3
  78. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js +0 -34
  79. package/dist/destinations/tiktok-conversions/reportWebEvent/formatter.js.map +0 -1
  80. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.d.ts +0 -3
  81. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js +0 -43
  82. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/formatter.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { ContextFromDecorator } from './operationTracking';
2
2
  export declare const track: ((decoratorArgs?: ({
3
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
4
- } & {
5
3
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
6
- } & {
4
+ } & import("./operationTracking").OperationLoggerDecoratorArgs & {
7
5
  onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
8
6
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
9
- } & import("./operationTracking").OperationLoggerDecoratorArgs & {
7
+ } & {
8
+ shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
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;
11
11
  }) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
12
12
  getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
@@ -15,13 +15,8 @@ export declare const track: ((decoratorArgs?: ({
15
15
  }) | undefined;
16
16
  } & {
17
17
  _contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
18
- tags: string[];
19
- sharedContext: {
20
- tags: string[];
21
- };
22
- decoratorArgs?: {
23
- shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
24
- } | undefined;
18
+ start?: number | undefined;
19
+ duration?: number | undefined;
25
20
  } & {
26
21
  decoratorArgs?: {
27
22
  onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
@@ -30,8 +25,10 @@ export declare const track: ((decoratorArgs?: ({
30
25
  parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
31
26
  sharedContext: {};
32
27
  } & {
33
- start?: number | undefined;
34
- duration?: number | undefined;
28
+ logs: string[];
29
+ logMetadata?: Record<string, unknown> | undefined;
30
+ decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
31
+ sharedContext: import("./operationTracking").OperationLoggerSharedContext;
35
32
  } & {
36
33
  onFinally: (() => void)[];
37
34
  decoratorArgs?: {
@@ -39,10 +36,13 @@ export declare const track: ((decoratorArgs?: ({
39
36
  onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
40
37
  } | undefined;
41
38
  } & {
42
- logs: string[];
43
- logMetadata?: Record<string, unknown> | undefined;
44
- decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
45
- sharedContext: import("./operationTracking").OperationLoggerSharedContext;
39
+ tags: string[];
40
+ sharedContext: {
41
+ tags: string[];
42
+ };
43
+ decoratorArgs?: {
44
+ shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
45
+ } | undefined;
46
46
  } & {
47
47
  decoratorArgs?: {
48
48
  wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
@@ -90,9 +90,7 @@ exports.data_processing_options_state = {
90
90
  type: 'number',
91
91
  choices: [
92
92
  { label: 'Use Facebook’s Geolocation Logic', value: 0 },
93
- { label: 'California', value: 1000 },
94
- { label: 'Colorado', value: 1001 },
95
- { label: 'Connecticut', value: 1002 }
93
+ { label: 'California', value: 1000 }
96
94
  ]
97
95
  };
98
96
  const validateContents = (contents) => {
@@ -1 +1 @@
1
- {"version":3,"file":"fb-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/fb-capi-properties.ts"],"names":[],"mappings":";;;AACA,wDAA8D;AAWjD,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,+NAA+N;IACjO,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;CAC5B,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oGAAoG;IACjH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,uBAAuB;KACjC;CACF,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EACT,6GAA6G;IAC/G,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,wDAAwD;IACrE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,2MAA2M;IAC7M,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,yJAAyJ;IAC3J,IAAI,EAAE,QAAQ;IACd,QAAQ,EAA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WAAW,EACT,yIAAyI;IAC3I,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,kNAAkN;IACpN,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QAClC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;QACtC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;QAC9B,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;QAC5C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QAChC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;QACpD,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,kBAAkB,EAAE;QACxD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;KACnC;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,iLAAiL;IACnL,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;KAC9B;CACF,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,2HAA2H;IAC7H,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA"}
1
+ {"version":3,"file":"fb-capi-properties.js","sourceRoot":"","sources":["../../../src/destinations/facebook-conversions-api/fb-capi-properties.ts"],"names":[],"mappings":";;;AACA,wDAA8D;AAWjD,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,+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,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;QAC5C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;QAChC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;QACpD,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,kBAAkB,EAAE;QACxD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;KACnC;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAe;IAC1C,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,iLAAiL;IACnL,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,oBAAoB;KAC9B;CACF,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,2HAA2H;IAC7H,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA"}
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-b946549fd",
4
+ "version": "3.267.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -43,8 +43,8 @@
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",
47
- "@segment/actions-shared": "^1.90.0",
46
+ "@segment/actions-core": "^3.109.0",
47
+ "@segment/actions-shared": "^1.91.0",
48
48
  "@types/node": "^18.11.15",
49
49
  "ajv-formats": "^2.1.1",
50
50
  "aws4": "^1.12.0",
@@ -86,5 +86,5 @@
86
86
  "__tests__/__helpers__/"
87
87
  ]
88
88
  },
89
- "gitHead": "9c04e12c4a0e81f6b68dca0a297fb2c0209d2431"
89
+ "gitHead": "d52ba57aaad1f6339bc0c3e9af691e9886e134b8"
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,14 +0,0 @@
1
- export interface Payload {
2
- profileListName: string;
3
- profileExtensionTable: string;
4
- userData: {
5
- [k: string]: unknown;
6
- };
7
- mapTemplateName?: string;
8
- insertOnNoMatch?: boolean;
9
- matchColumnName1?: string;
10
- matchColumnName2?: string;
11
- updateOnMatch: string;
12
- enable_batching?: boolean;
13
- batch_size?: number;
14
- }
@@ -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/responsys/asyncMergePetRecords/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;
@@ -1,113 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const rsp_properties_1 = require("../rsp-properties");
4
- const rsp_operations_1 = require("../rsp-operations");
5
- const action = {
6
- title: 'Async Merge PET Records',
7
- description: '',
8
- defaultSubscription: 'type = "identify"',
9
- fields: {
10
- profileListName: {
11
- label: 'List Name',
12
- description: "Name of the profile extension table's parent profile list.",
13
- type: 'string',
14
- required: true
15
- },
16
- profileExtensionTable: {
17
- label: 'Pet Name',
18
- description: 'Name of the profile extension table.',
19
- type: 'string',
20
- required: true
21
- },
22
- userData: rsp_properties_1.userData,
23
- mapTemplateName: {
24
- label: 'Map Template Name',
25
- description: 'The Map Template in Responsys that can be used to map Field Names of the Profile List to Column Names.',
26
- type: 'string',
27
- default: ''
28
- },
29
- insertOnNoMatch: {
30
- label: 'Insert On No Match',
31
- description: 'Indicates what should be done for records where a match is not found.',
32
- type: 'boolean',
33
- default: true
34
- },
35
- matchColumnName1: {
36
- label: 'First Column Match',
37
- description: 'First match column for determining whether an insert or update should occur.',
38
- type: 'string',
39
- choices: [
40
- { label: 'RIID_', value: 'RIID_' },
41
- { label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
42
- { label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
43
- { label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
44
- { label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
45
- { label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
46
- ]
47
- },
48
- matchColumnName2: {
49
- label: 'Second Column Match',
50
- description: 'Second match column for determining whether an insert or update should occur.',
51
- type: 'string',
52
- choices: [
53
- { label: 'RIID_', value: 'RIID_' },
54
- { label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
55
- { label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
56
- { label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
57
- { label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
58
- { label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
59
- ]
60
- },
61
- updateOnMatch: {
62
- label: 'Update On Match',
63
- description: 'Controls how the existing record should be updated.',
64
- type: 'string',
65
- required: true,
66
- choices: [
67
- { label: 'Replace All', value: 'REPLACE_ALL' },
68
- { label: 'No Update', value: 'NO_UPDATE' }
69
- ]
70
- },
71
- enable_batching: rsp_properties_1.enable_batching,
72
- batch_size: rsp_properties_1.batch_size
73
- },
74
- perform: async (request, { settings, payload }) => {
75
- if (payload && payload.profileListName) {
76
- const { profileListName, profileExtensionTable, insertOnNoMatch, matchColumnName1, matchColumnName2, updateOnMatch, userData, mapTemplateName } = payload;
77
- const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
78
- const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/listExtensions/${profileExtensionTable}/members`;
79
- const recordData = rsp_operations_1.buildRecordData(userData, mapTemplateName ?? '');
80
- const requestBody = {
81
- recordData: recordData,
82
- insertOnNoMatch: !!insertOnNoMatch,
83
- updateOnMatch: updateOnMatch || '',
84
- matchColumnName1: matchColumnName1?.replace(/_+$/, '') || '',
85
- matchColumnName2: matchColumnName2?.replace(/_+$/, '') || ''
86
- };
87
- return request(endpoint, {
88
- method: 'POST',
89
- body: JSON.stringify(requestBody)
90
- });
91
- }
92
- },
93
- performBatch: async (request, { settings, payload }) => {
94
- const { profileListName, profileExtensionTable, insertOnNoMatch, matchColumnName1, matchColumnName2, updateOnMatch, mapTemplateName } = payload[0];
95
- const payloadData = payload.map((obj) => obj.userData);
96
- const recordData = rsp_operations_1.buildRecordData(payloadData, mapTemplateName ?? '');
97
- const requestBody = {
98
- recordData: recordData,
99
- insertOnNoMatch: !!insertOnNoMatch,
100
- updateOnMatch: updateOnMatch || '',
101
- matchColumnName1: matchColumnName1?.replace(/_+$/, '') || '',
102
- matchColumnName2: matchColumnName2?.replace(/_+$/, '') || ''
103
- };
104
- const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
105
- const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/listExtensions/${profileExtensionTable}/members`;
106
- return await request(endpoint, {
107
- method: 'POST',
108
- body: JSON.stringify(requestBody)
109
- });
110
- }
111
- };
112
- exports.default = action;
113
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/responsys/asyncMergePetRecords/index.ts"],"names":[],"mappings":";;AAGA,sDAAyE;AAEzE,sDAAmD;AAEnD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,EAAE;IACf,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,qBAAqB,EAAE;YACrB,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAE,yBAAQ;QAClB,eAAe,EAAE;YACf,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,wGAAwG;YAC1G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACZ;QACD,e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AAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAA;IAkEJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,20 +0,0 @@
1
- export interface Payload {
2
- profileListName: string;
3
- userData: {
4
- [k: string]: unknown;
5
- };
6
- mapTemplateName?: string;
7
- defaultPermissionStatus?: string;
8
- htmlValue?: string;
9
- insertOnNoMatch?: boolean;
10
- matchColumnName1?: string;
11
- matchColumnName2?: string;
12
- matchOperator?: string;
13
- optinValue?: string;
14
- optoutValue?: string;
15
- rejectRecordIfChannelEmpty?: string;
16
- textValue?: string;
17
- updateOnMatch: string;
18
- enable_batching?: boolean;
19
- batch_size?: number;
20
- }
@@ -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/responsys/asyncMergeProfileListMembers/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;
@@ -1,174 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const rsp_properties_1 = require("../rsp-properties");
4
- const rsp_operations_1 = require("../rsp-operations");
5
- const action = {
6
- title: 'Async Merge Profile List Members',
7
- description: 'Asynchronous Merge Profile List Members API',
8
- fields: {
9
- profileListName: {
10
- label: 'List Name',
11
- description: "Name of the profile extension table's parent profile list.",
12
- type: 'string',
13
- required: true
14
- },
15
- userData: rsp_properties_1.userData,
16
- mapTemplateName: {
17
- label: 'Map Template Name',
18
- description: 'The Map Template in Responsys that can be used to map Field Names of the Profile List to Column Names.',
19
- type: 'string',
20
- default: ''
21
- },
22
- defaultPermissionStatus: {
23
- label: 'Default Permission Status',
24
- description: 'This value must be specified as either OPTIN or OPTOUT and would be applied to all of the records contained in the API call. If this value is not explicitly specified, then it is set to OPTOUT.',
25
- type: 'string',
26
- choices: [
27
- { label: 'Opt In', value: 'OPTIN' },
28
- { label: 'Opt Out', value: 'OPTOUT' }
29
- ],
30
- default: 'OPTOUT'
31
- },
32
- htmlValue: {
33
- label: 'Preferred Email Format',
34
- description: "Value of incoming preferred email format data. For example, 'H' may represent a preference for HTML formatted email.",
35
- type: 'string'
36
- },
37
- insertOnNoMatch: {
38
- label: 'Insert On No Match',
39
- description: 'Indicates what should be done for records where a match is not found.',
40
- type: 'boolean',
41
- default: true
42
- },
43
- matchColumnName1: {
44
- label: 'First Column Match',
45
- description: 'First match column for determining whether an insert or update should occur.',
46
- type: 'string',
47
- choices: [
48
- { label: 'RIID_', value: 'RIID_' },
49
- { label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
50
- { label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
51
- { label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
52
- { label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
53
- { label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
54
- ]
55
- },
56
- matchColumnName2: {
57
- label: 'Second Column Match',
58
- description: 'Second match column for determining whether an insert or update should occur.',
59
- type: 'string',
60
- choices: [
61
- { label: 'RIID_', value: 'RIID_' },
62
- { label: 'CUSTOMER_ID_', value: 'CUSTOMER_ID_' },
63
- { label: 'EMAIL_ADDRESS_', value: 'EMAIL_ADDRESS_' },
64
- { label: 'MOBILE_NUMBER_', value: 'MOBILE_NUMBER_' },
65
- { label: 'EMAIL_MD5_HASH_', value: 'EMAIL_MD5_HASH_' },
66
- { label: 'EMAIL_SHA256_HASH_', value: 'EMAIL_SHA256_HASH_' }
67
- ]
68
- },
69
- matchOperator: {
70
- label: 'Match Operator',
71
- description: 'Operator to join match column names.',
72
- type: 'string',
73
- choices: [
74
- { label: 'None', value: 'NONE' },
75
- { label: 'And', value: 'AND' }
76
- ]
77
- },
78
- optinValue: {
79
- label: 'Optin Value',
80
- description: "Value of incoming opt-in status data that represents an opt-in status. For example, 'I' may represent an opt-in status.",
81
- type: 'string'
82
- },
83
- optoutValue: {
84
- label: 'Optout Value',
85
- description: "Value of incoming opt-out status data that represents an optout status. For example, '0' may represent an opt-out status.",
86
- type: 'string'
87
- },
88
- rejectRecordIfChannelEmpty: {
89
- label: 'Reject Record If Channel Empty',
90
- description: "String containing comma-separated channel codes that if specified will result in record rejection when the channel address field is null. Channel codes are 'E' (Email), 'M' (Mobile), 'P' (Postal Code). For example 'E,M' would indicate that a record that has a null for Email or Mobile Number value should be rejected. This parameter can also be set to null or to an empty string, which will cause the validation to not be performed for any channel, except if the matchColumnName1 parameter is set to EMAIL_ADDRESS_ or MOBILE_NUMBER_. When matchColumnName1 is set to EMAIL_ADDRESS_ or MOBILE_NUMBER_, then the null or empty string setting is effectively ignored for that channel.",
91
- type: 'string'
92
- },
93
- textValue: {
94
- label: 'Text Value',
95
- description: "Value of incoming preferred email format data. For example, 'T' may represent a preference for Text formatted email.",
96
- type: 'string'
97
- },
98
- updateOnMatch: {
99
- label: 'Update On Match',
100
- description: 'Controls how the existing record should be updated.',
101
- type: 'string',
102
- required: true,
103
- choices: [
104
- { label: 'Replace All', value: 'REPLACE_ALL' },
105
- { label: 'No Update', value: 'NO_UPDATE' }
106
- ]
107
- },
108
- enable_batching: rsp_properties_1.enable_batching,
109
- batch_size: rsp_properties_1.batch_size
110
- },
111
- perform: async (request, { settings, payload, auth }) => {
112
- if (payload && payload.profileListName) {
113
- const { profileListName, defaultPermissionStatus, htmlValue, insertOnNoMatch, matchColumnName1, matchColumnName2, matchOperator, optinValue, optoutValue, rejectRecordIfChannelEmpty, textValue, updateOnMatch, userData, mapTemplateName } = payload;
114
- const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
115
- const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/members`;
116
- const recordData = rsp_operations_1.buildRecordData(userData, mapTemplateName ?? '');
117
- const requestBody = {
118
- recordData: recordData,
119
- mergeRule: {
120
- defaultPermissionStatus,
121
- htmlValue,
122
- insertOnNoMatch,
123
- matchColumnName1,
124
- matchColumnName2,
125
- matchOperator,
126
- optinValue,
127
- optoutValue,
128
- rejectRecordIfChannelEmpty,
129
- textValue,
130
- updateOnMatch
131
- }
132
- };
133
- const token = auth?.accessToken ?? '';
134
- const response = request(endpoint, {
135
- method: 'POST',
136
- headers: {
137
- Authorization: token,
138
- 'Content-Type': 'application/json'
139
- },
140
- body: JSON.stringify(requestBody)
141
- });
142
- return response;
143
- }
144
- },
145
- performBatch: async (request, { settings, payload }) => {
146
- const { profileListName, defaultPermissionStatus, htmlValue, insertOnNoMatch, matchColumnName1, matchColumnName2, matchOperator, optinValue, optoutValue, rejectRecordIfChannelEmpty, textValue, updateOnMatch, mapTemplateName } = payload[0];
147
- const payloadData = payload.map((obj) => obj.userData);
148
- const recordData = rsp_operations_1.buildRecordData(payloadData, mapTemplateName ?? '');
149
- const requestBody = {
150
- recordData: recordData,
151
- mergeRule: {
152
- defaultPermissionStatus,
153
- htmlValue,
154
- insertOnNoMatch,
155
- matchColumnName1,
156
- matchColumnName2,
157
- matchOperator,
158
- optinValue,
159
- optoutValue,
160
- rejectRecordIfChannelEmpty,
161
- textValue,
162
- updateOnMatch
163
- }
164
- };
165
- const baseUrl = (settings.baseUrl?.startsWith('https://') ? settings.baseUrl : `https://${settings.baseUrl}`)?.replace(/\/$/, '');
166
- const endpoint = `${baseUrl}/rest/asyncApi/v1.3/lists/${profileListName}/members`;
167
- return await request(endpoint, {
168
- method: 'POST',
169
- body: JSON.stringify(requestBody)
170
- });
171
- }
172
- };
173
- exports.default = action;
174
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dest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ACF,CAAA;QAKD,MAAM,OAAO,GAAG,CACd,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,QAAQ,CAAC,OAAO,EAAE,CAC5F,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QACrB,MAAM,QAAQ,GAAG,GAAG,OAAO,6BAA6B,eAAe,UAAU,CAAA;QAEjF,OAAO,MAAM,OAAO,CAAC,QAAQ,EAAE;YAC7B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;SAClC,CAAC,CAAA;IA0FJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,14 +0,0 @@
1
- import { Payload } from './asyncMergePetRecords/generated-types';
2
- import { DynamicData, RecordData } from './types';
3
- export declare const buildRecordData: (userData: DynamicData, mapTemplateName: string) => {
4
- records: unknown[][];
5
- fieldNames: string[];
6
- mapTemplateName: string;
7
- };
8
- export declare const buildRequestBodyPET: (payload: Payload, recordData: RecordData) => {
9
- recordData: RecordData;
10
- insertOnNoMatch: boolean | undefined;
11
- updateOnMatch: string;
12
- matchColumnName1: string;
13
- matchColumnName2: string;
14
- };