@segment/action-destinations 3.244.0 → 3.246.0-snap-connector

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 (118) hide show
  1. package/dist/destinations/customerio/deleteObject/generated-types.d.ts +4 -0
  2. package/dist/destinations/customerio/deleteObject/generated-types.js +3 -0
  3. package/dist/destinations/customerio/deleteObject/generated-types.js.map +1 -0
  4. package/dist/destinations/customerio/deleteObject/index.d.ts +5 -0
  5. package/dist/destinations/customerio/deleteObject/index.js +48 -0
  6. package/dist/destinations/customerio/deleteObject/index.js.map +1 -0
  7. package/dist/destinations/customerio/deletePerson/generated-types.d.ts +3 -0
  8. package/dist/destinations/customerio/deletePerson/generated-types.js +3 -0
  9. package/dist/destinations/customerio/deletePerson/generated-types.js.map +1 -0
  10. package/dist/destinations/customerio/deletePerson/index.d.ts +5 -0
  11. package/dist/destinations/customerio/deletePerson/index.js +41 -0
  12. package/dist/destinations/customerio/deletePerson/index.js.map +1 -0
  13. package/dist/destinations/customerio/deleteRelationship/generated-types.d.ts +6 -0
  14. package/dist/destinations/customerio/deleteRelationship/generated-types.js +3 -0
  15. package/dist/destinations/customerio/deleteRelationship/generated-types.js.map +1 -0
  16. package/dist/destinations/customerio/deleteRelationship/index.d.ts +5 -0
  17. package/dist/destinations/customerio/deleteRelationship/index.js +82 -0
  18. package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -0
  19. package/dist/destinations/customerio/mergePeople/generated-types.d.ts +4 -0
  20. package/dist/destinations/customerio/mergePeople/generated-types.js +3 -0
  21. package/dist/destinations/customerio/mergePeople/generated-types.js.map +1 -0
  22. package/dist/destinations/customerio/mergePeople/index.d.ts +5 -0
  23. package/dist/destinations/customerio/mergePeople/index.js +52 -0
  24. package/dist/destinations/customerio/mergePeople/index.js.map +1 -0
  25. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.d.ts +10 -0
  26. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js +3 -0
  27. package/dist/destinations/customerio/reportDeliveryEvent/generated-types.js.map +1 -0
  28. package/dist/destinations/customerio/reportDeliveryEvent/index.d.ts +5 -0
  29. package/dist/destinations/customerio/reportDeliveryEvent/index.js +121 -0
  30. package/dist/destinations/customerio/reportDeliveryEvent/index.js.map +1 -0
  31. package/dist/destinations/customerio/suppressPerson/generated-types.d.ts +3 -0
  32. package/dist/destinations/customerio/suppressPerson/generated-types.js +3 -0
  33. package/dist/destinations/customerio/suppressPerson/generated-types.js.map +1 -0
  34. package/dist/destinations/customerio/suppressPerson/index.d.ts +5 -0
  35. package/dist/destinations/customerio/suppressPerson/index.js +41 -0
  36. package/dist/destinations/customerio/suppressPerson/index.js.map +1 -0
  37. package/dist/destinations/customerio/test-helper.d.ts +6 -0
  38. package/dist/destinations/customerio/test-helper.js +84 -0
  39. package/dist/destinations/customerio/test-helper.js.map +1 -0
  40. package/dist/destinations/customerio/unsuppressPerson/generated-types.d.ts +3 -0
  41. package/dist/destinations/customerio/unsuppressPerson/generated-types.js +3 -0
  42. package/dist/destinations/customerio/unsuppressPerson/generated-types.js.map +1 -0
  43. package/dist/destinations/customerio/unsuppressPerson/index.d.ts +5 -0
  44. package/dist/destinations/customerio/unsuppressPerson/index.js +41 -0
  45. package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -0
  46. package/dist/destinations/engage/sendgrid/Profile.d.ts +6 -0
  47. package/dist/destinations/engage/sendgrid/Profile.js +3 -0
  48. package/dist/destinations/engage/sendgrid/Profile.js.map +1 -0
  49. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +18 -0
  50. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +94 -0
  51. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +1 -0
  52. package/dist/destinations/engage/utils/track.d.ts +17 -17
  53. package/dist/destinations/mixpanel/incrementProperties/__test__/__snapshots__/snapshot.test.js.snap +18 -0
  54. package/dist/destinations/responsys/sendAudience/index.js +0 -1
  55. package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
  56. package/dist/destinations/responsys/sendCustomTraits/index.js +0 -1
  57. package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
  58. package/dist/destinations/responsys/upsertListMember/index.js +2 -5
  59. package/dist/destinations/responsys/upsertListMember/index.js.map +1 -1
  60. package/dist/destinations/responsys/utils.d.ts +0 -1
  61. package/dist/destinations/responsys/utils.js +4 -14
  62. package/dist/destinations/responsys/utils.js.map +1 -1
  63. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.d.ts +1 -0
  64. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js +381 -0
  65. package/dist/destinations/snap-conversions-api/_tests_/capiV2tests.js.map +1 -0
  66. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.d.ts +1 -0
  67. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js +499 -0
  68. package/dist/destinations/snap-conversions-api/_tests_/capiV3tests.js.map +1 -0
  69. package/dist/destinations/snap-conversions-api/_tests_/index.test.js +4 -352
  70. package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
  71. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +24 -20
  72. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
  73. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.d.ts +4 -0
  74. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js +97 -0
  75. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v2.js.map +1 -0
  76. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.d.ts +8 -0
  77. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js +125 -0
  78. package/dist/destinations/snap-conversions-api/reportConversionEvent/snap-capi-v3.js.map +1 -0
  79. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.d.ts +19 -0
  80. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js +62 -0
  81. package/dist/destinations/snap-conversions-api/reportConversionEvent/utils.js.map +1 -0
  82. package/dist/destinations/snap-conversions-api/snap-capi-properties.d.ts +0 -5
  83. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +1 -86
  84. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
  85. package/dist/destinations/tiktok-conversions/common_fields.d.ts +2 -0
  86. package/dist/destinations/tiktok-conversions/common_fields.js +245 -0
  87. package/dist/destinations/tiktok-conversions/common_fields.js.map +1 -0
  88. package/dist/destinations/tiktok-conversions/formatter.d.ts +3 -0
  89. package/dist/destinations/tiktok-conversions/formatter.js +43 -0
  90. package/dist/destinations/tiktok-conversions/formatter.js.map +1 -0
  91. package/dist/destinations/tiktok-conversions/utils.d.ts +4 -0
  92. package/dist/destinations/tiktok-conversions/utils.js +65 -0
  93. package/dist/destinations/tiktok-conversions/utils.js.map +1 -0
  94. package/dist/destinations/tiktok-conversions-sandbox/index.js +2 -2
  95. package/dist/destinations/tiktok-conversions-sandbox/index.js.map +1 -1
  96. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.d.ts +33 -0
  97. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js +3 -0
  98. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/generated-types.js.map +1 -0
  99. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.d.ts +5 -0
  100. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js +16 -0
  101. package/dist/destinations/tiktok-offline-conversions/reportOfflineEvent/index.js.map +1 -0
  102. package/dist/destinations/tiktok-offline-conversions/utils.d.ts +8 -0
  103. package/dist/destinations/tiktok-offline-conversions/utils.js +67 -0
  104. package/dist/destinations/tiktok-offline-conversions/utils.js.map +1 -0
  105. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js +2 -2
  106. package/dist/destinations/tiktok-offline-conversions-sandbox/index.js.map +1 -1
  107. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js +1 -1
  108. package/dist/destinations/tiktok-offline-conversions-sandbox/reportOfflineEvent/index.js.map +1 -1
  109. package/dist/destinations/trackey/group.types.d.ts +11 -0
  110. package/dist/destinations/trackey/group.types.js +3 -0
  111. package/dist/destinations/trackey/group.types.js.map +1 -0
  112. package/dist/destinations/trackey/identify.types.d.ts +11 -0
  113. package/dist/destinations/trackey/identify.types.js +3 -0
  114. package/dist/destinations/trackey/identify.types.js.map +1 -0
  115. package/dist/destinations/trackey/track.types.d.ts +12 -0
  116. package/dist/destinations/trackey/track.types.js +3 -0
  117. package/dist/destinations/trackey/track.types.js.map +1 -0
  118. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ export interface Payload {
2
+ object_id?: string;
3
+ object_type_id?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deleteObject/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Delete Object',
6
+ description: 'Delete an object in Customer.io.',
7
+ defaultSubscription: 'event = "Object Deleted"',
8
+ fields: {
9
+ object_id: {
10
+ label: 'Object ID',
11
+ description: 'An object ID used to identify an object.',
12
+ type: 'string',
13
+ default: {
14
+ '@path': '$.context.groupId'
15
+ }
16
+ },
17
+ object_type_id: {
18
+ label: 'Object Type ID',
19
+ description: 'An object ID type used to identify the type of object.',
20
+ type: 'string',
21
+ default: {
22
+ '@if': {
23
+ exists: { '@path': '$.properties.object_type_id' },
24
+ then: { '@path': '$.properties.object_type_id' },
25
+ else: { '@path': '$.properties.objectTypeId' }
26
+ }
27
+ }
28
+ }
29
+ },
30
+ performBatch: (request, { payload: payloads, settings }) => {
31
+ return utils_1.sendBatch(request, payloads.map((payload) => ({
32
+ action: 'delete',
33
+ payload,
34
+ settings,
35
+ type: 'object'
36
+ })));
37
+ },
38
+ perform: (request, { payload, settings }) => {
39
+ return utils_1.sendSingle(request, {
40
+ action: 'delete',
41
+ payload,
42
+ settings,
43
+ type: 'object'
44
+ });
45
+ }
46
+ };
47
+ exports.default = action;
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deleteObject/index.ts"],"names":[],"mappings":";;AAGA,oCAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,kCAAkC;IAC/C,mBAAmB,EAAE,0BAA0B;IAC/C,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,mBAAmB;aAC7B;SACF;QACD,cAAc,EAAE;YACd,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,wDAAwD;YACrE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;oBAClD,IAAI,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;oBAChD,IAAI,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;iBAC/C;aACF;SACF;KACF;IAED,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzD,OAAO,iBAAS,CACd,OAAO,EACP,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC,CACJ,CAAA;IACH,CAAC;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,kBAAU,CAAC,OAAO,EAAE;YACzB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ export interface Payload {
2
+ person_id: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deletePerson/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Delete Person',
6
+ description: 'Delete a person in Customer.io.',
7
+ defaultSubscription: 'event = "User Deleted"',
8
+ fields: {
9
+ person_id: {
10
+ label: 'Person ID',
11
+ description: 'The ID used to uniquely identify a person in Customer.io. [Learn more](https://customer.io/docs/identifying-people/#identifiers).',
12
+ type: 'string',
13
+ default: {
14
+ '@if': {
15
+ exists: { '@path': '$.userId' },
16
+ then: { '@path': '$.userId' },
17
+ else: { '@path': '$.traits.email' }
18
+ }
19
+ },
20
+ required: true
21
+ }
22
+ },
23
+ performBatch: (request, { payload: payloads, settings }) => {
24
+ return utils_1.sendBatch(request, payloads.map((payload) => ({
25
+ action: 'delete',
26
+ payload,
27
+ settings,
28
+ type: 'person'
29
+ })));
30
+ },
31
+ perform: (request, { payload, settings }) => {
32
+ return utils_1.sendSingle(request, {
33
+ action: 'delete',
34
+ payload,
35
+ settings,
36
+ type: 'person'
37
+ });
38
+ }
39
+ };
40
+ exports.default = action;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deletePerson/index.ts"],"names":[],"mappings":";;AAGA,oCAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,iCAAiC;IAC9C,mBAAmB,EAAE,wBAAwB;IAC7C,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;iBACpC;aACF;YACD,QAAQ,EAAE,IAAI;SACf;KACF;IAED,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzD,OAAO,iBAAS,CACd,OAAO,EACP,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC,CACJ,CAAA;IACH,CAAC;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,kBAAU,CAAC,OAAO,EAAE;YACzB,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Payload {
2
+ person_id: string;
3
+ anonymous_id?: string;
4
+ object_id: string;
5
+ object_type_id?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deleteRelationship/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Delete Relationship',
6
+ description: `Delete a relationship between a person and an object in Customer.io.`,
7
+ defaultSubscription: 'event = "Relationship Deleted"',
8
+ fields: {
9
+ person_id: {
10
+ label: 'Person ID',
11
+ description: 'The ID used to uniquely identify a person in Customer.io. [Learn more](https://customer.io/docs/identifying-people/#identifiers).',
12
+ type: 'string',
13
+ default: {
14
+ '@if': {
15
+ exists: { '@path': '$.userId' },
16
+ then: { '@path': '$.userId' },
17
+ else: { '@path': '$.traits.email' }
18
+ }
19
+ },
20
+ required: true
21
+ },
22
+ anonymous_id: {
23
+ label: 'Anonymous ID',
24
+ description: 'An optional anonymous ID. This is used to tie anonymous events to this person. [Learn more](https://customer.io/docs/anonymous-events/).',
25
+ type: 'string',
26
+ default: {
27
+ '@path': '$.anonymousId'
28
+ }
29
+ },
30
+ object_id: {
31
+ label: 'Object ID',
32
+ description: 'An object ID used to identify an object.',
33
+ type: 'string',
34
+ default: {
35
+ '@path': '$.context.groupId'
36
+ },
37
+ required: true
38
+ },
39
+ object_type_id: {
40
+ label: 'Object Type ID',
41
+ description: 'An object ID type used to identify the type of object.',
42
+ type: 'string',
43
+ default: {
44
+ '@if': {
45
+ exists: { '@path': '$.properties.object_type_id' },
46
+ then: { '@path': '$.properties.object_type_id' },
47
+ else: { '@path': '$.properties.objectTypeId' }
48
+ }
49
+ }
50
+ }
51
+ },
52
+ performBatch: (request, { payload: payloads, settings }) => {
53
+ return utils_1.sendBatch(request, payloads.map((payload) => ({
54
+ action: 'delete_relationships',
55
+ settings,
56
+ ...mapPayload(payload)
57
+ })));
58
+ },
59
+ perform: (request, { payload, settings }) => {
60
+ return utils_1.sendSingle(request, {
61
+ action: 'delete_relationships',
62
+ settings,
63
+ ...mapPayload(payload)
64
+ });
65
+ }
66
+ };
67
+ function mapPayload(payload) {
68
+ const { anonymous_id, person_id } = payload;
69
+ return {
70
+ type: 'object',
71
+ payload: {
72
+ ...payload,
73
+ cio_relationships: [
74
+ {
75
+ identifiers: utils_1.resolveIdentifiers({ anonymous_id, person_id })
76
+ }
77
+ ]
78
+ }
79
+ };
80
+ }
81
+ exports.default = action;
82
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/deleteRelationship/index.ts"],"names":[],"mappings":";;AAGA,oCAAoE;AAEpE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,sEAAsE;IACnF,mBAAmB,EAAE,gCAAgC;IACrD,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,mIAAmI;YACrI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EA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sBAAsB;YAC9B,QAAQ;YACR,GAAG,UAAU,CAAC,OAAO,CAAC;SACvB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,SAAS,UAAU,CAAC,OAAgB;IAClC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,OAAO,CAAA;IAE3C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE;YACP,GAAG,OAAO;YACV,iBAAiB,EAAE;gBACjB;oBACE,WAAW,EAAE,0BAAkB,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;iBAC7D;aACF;SACF;KACF,CAAA;AACH,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface Payload {
2
+ primary: string;
3
+ secondary: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/mergePeople/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Merge People',
6
+ description: 'Merge two customer profiles together.',
7
+ defaultSubscription: 'type = "alias"',
8
+ fields: {
9
+ primary: {
10
+ label: 'Primary User',
11
+ description: `The person that you want to remain after the merge, identified by id, email or cio_id. This person receives information from the secondary person in the merge.`,
12
+ type: 'string',
13
+ required: true,
14
+ default: {
15
+ '@path': '$.userId'
16
+ }
17
+ },
18
+ secondary: {
19
+ label: 'Secondary User',
20
+ description: `The person that you want to delete after the merge, identified by id, email or cio_id. This person's information is merged into the primary person's profile and then it is deleted.`,
21
+ type: 'string',
22
+ required: true,
23
+ default: {
24
+ '@path': '$.previousId'
25
+ }
26
+ }
27
+ },
28
+ performBatch: (request, { payload: payloads, settings }) => {
29
+ return utils_1.sendBatch(request, payloads.map((payload) => ({
30
+ action: 'merge',
31
+ payload: mapPayload(payload),
32
+ settings,
33
+ type: 'person'
34
+ })));
35
+ },
36
+ perform: (request, { payload, settings }) => {
37
+ return utils_1.sendSingle(request, {
38
+ action: 'merge',
39
+ payload: mapPayload(payload),
40
+ settings,
41
+ type: 'person'
42
+ });
43
+ }
44
+ };
45
+ function mapPayload(payload) {
46
+ return {
47
+ primary: utils_1.resolveIdentifiers({ person_id: payload.primary }),
48
+ secondary: utils_1.resolveIdentifiers({ person_id: payload.secondary })
49
+ };
50
+ }
51
+ exports.default = action;
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/mergePeople/index.ts"],"names":[],"mappings":";;AAGA,oCAAoE;AAEpE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,uCAAuC;IACpD,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,iKAAiK;YAC9K,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,sLAAsL;YACnM,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;KACF;IAED,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzD,OAAO,iBAAS,CACd,OAAO,EACP,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;YAC5B,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC,CACJ,CAAA;IACH,CAAC;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,kBAAU,CAAC,OAAO,EAAE;YACzB,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;YAC5B,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,SAAS,UAAU,CAAC,OAAgB;IAClC,OAAO;QACL,OAAO,EAAE,0BAAkB,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3D,SAAS,EAAE,0BAAkB,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;KAChE,CAAA;AACH,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ export interface Payload {
2
+ delivery_id: string;
3
+ metric: string;
4
+ recipient?: string;
5
+ reason?: string;
6
+ href?: string;
7
+ action_name?: string;
8
+ action_value?: string;
9
+ timestamp?: string | number;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/reportDeliveryEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Report Delivery Event',
6
+ description: 'Report delivery metrics for a message sent from the Customer.io Journeys product.',
7
+ defaultSubscription: 'event = "Report Delivery Event"',
8
+ fields: {
9
+ delivery_id: {
10
+ label: 'Delivery ID',
11
+ description: 'The CIO-Delivery-ID from the message that you want to associate the metric with.',
12
+ type: 'string',
13
+ default: {
14
+ '@path': '$.properties.deliveryId'
15
+ },
16
+ required: true
17
+ },
18
+ metric: {
19
+ label: 'Metric',
20
+ description: `The metric you want to report back to Customer.io. Not all metrics are available for all channels. Please refer to the [documentation](https://customer.io/docs/api/track/#operation/metrics) for more information.`,
21
+ type: 'string',
22
+ default: {
23
+ '@path': '$.properties.metric'
24
+ },
25
+ required: true,
26
+ choices: [
27
+ { label: 'Delivered', value: 'delivered' },
28
+ { label: 'Opened', value: 'opened' },
29
+ { label: 'Clicked', value: 'clicked' },
30
+ { label: 'Converted', value: 'converted' },
31
+ { label: 'Marked as Spam', value: 'spammed' },
32
+ { label: 'Bounced', value: 'bounced' },
33
+ { label: 'Suppressed', value: 'dropped' },
34
+ { label: 'Deferred', value: 'deferred' }
35
+ ]
36
+ },
37
+ recipient: {
38
+ label: 'Recipient',
39
+ description: `Information about who the message was delivered to. For email, SMS and mobile push this is the email address, phone number and device token, respectively.`,
40
+ type: 'string',
41
+ default: {
42
+ '@path': '$.properties.recipient'
43
+ }
44
+ },
45
+ reason: {
46
+ label: 'Reason',
47
+ description: 'For metrics indicating a failure, this field provides information for the failure.',
48
+ type: 'string',
49
+ default: {
50
+ '@path': '$.properties.reason'
51
+ }
52
+ },
53
+ href: {
54
+ label: 'Href',
55
+ description: 'For click metrics, this is the link that was clicked.',
56
+ type: 'string',
57
+ default: {
58
+ '@path': '$.properties.href'
59
+ }
60
+ },
61
+ action_name: {
62
+ label: 'Action Name',
63
+ description: 'For In-App messages, this is the name of the action that was clicked.',
64
+ type: 'string',
65
+ default: {
66
+ '@path': '$.properties.actionName'
67
+ }
68
+ },
69
+ action_value: {
70
+ label: 'Action Value',
71
+ description: 'For In-App messages, this is the value of the action that was clicked.',
72
+ type: 'string',
73
+ default: {
74
+ '@path': '$.properties.actionValue'
75
+ }
76
+ },
77
+ timestamp: {
78
+ label: 'Timestamp',
79
+ description: 'A timestamp of when the metric event took place. Default is when the event was triggered.',
80
+ type: 'datetime',
81
+ format: 'date-time',
82
+ default: {
83
+ '@path': '$.timestamp'
84
+ }
85
+ }
86
+ },
87
+ perform: (request, { payload, settings }) => {
88
+ const metricsRequest = {
89
+ delivery_id: payload.delivery_id,
90
+ metric: payload.metric,
91
+ timestamp: Math.floor(Date.now() / 1000)
92
+ };
93
+ const unix_timestamp = Number(utils_1.convertValidTimestamp(payload.timestamp));
94
+ if (!isNaN(unix_timestamp)) {
95
+ metricsRequest.timestamp = unix_timestamp;
96
+ }
97
+ if (payload.recipient) {
98
+ metricsRequest.recipient = payload.recipient;
99
+ }
100
+ if (payload.reason) {
101
+ metricsRequest.reason = payload.reason;
102
+ }
103
+ if (payload.href) {
104
+ metricsRequest.href = payload.href;
105
+ }
106
+ if (payload.action_name) {
107
+ metricsRequest.metadata = metricsRequest.metadata || {};
108
+ metricsRequest.metadata.action_name = payload.action_name;
109
+ }
110
+ if (payload.action_value) {
111
+ metricsRequest.metadata = metricsRequest.metadata || {};
112
+ metricsRequest.metadata.action_value = payload.action_value;
113
+ }
114
+ return request(utils_1.trackApiEndpoint(settings) + '/api/v1/metrics', {
115
+ json: metricsRequest,
116
+ method: 'post'
117
+ });
118
+ }
119
+ };
120
+ exports.default = action;
121
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/reportDeliveryEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAA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GAAG,OAAO,CAAC,MAAM,CAAA;SACvC;QAED,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;SACnC;QAED,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,QAAQ,IAAI,EAAE,CAAA;YACvD,cAAc,CAAC,QAAQ,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;SAC1D;QACD,IAAI,OAAO,CAAC,YAAY,EAAE;YACxB,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,QAAQ,IAAI,EAAE,CAAA;YACvD,cAAc,CAAC,QAAQ,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;SAC5D;QAED,OAAO,OAAO,CAAC,wBAAgB,CAAC,QAAQ,CAAC,GAAG,iBAAiB,EAAE;YAC7D,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,MAAM;SACf,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAoBD,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,3 @@
1
+ export interface Payload {
2
+ person_id: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/suppressPerson/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { 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;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Suppress Person',
6
+ description: `Suppress a person in Customer.io. This will prevent the person from receiving any messages.`,
7
+ defaultSubscription: 'event = "User Suppressed"',
8
+ fields: {
9
+ person_id: {
10
+ label: 'Person ID',
11
+ description: 'The ID used to uniquely identify a person in Customer.io. Any valid identifier is supported, such as ID, cio_id, email, etc. Anonymous users cannot be suppressed. [Learn more](https://customer.io/docs/identifying-people/#identifiers).',
12
+ type: 'string',
13
+ default: {
14
+ '@if': {
15
+ exists: { '@path': '$.userId' },
16
+ then: { '@path': '$.userId' },
17
+ else: { '@path': '$.traits.email' }
18
+ }
19
+ },
20
+ required: true
21
+ }
22
+ },
23
+ performBatch: (request, { payload: payloads, settings }) => {
24
+ return utils_1.sendBatch(request, payloads.map((payload) => ({
25
+ action: 'suppress',
26
+ payload,
27
+ settings,
28
+ type: 'person'
29
+ })));
30
+ },
31
+ perform: (request, { payload, settings }) => {
32
+ return utils_1.sendSingle(request, {
33
+ action: 'suppress',
34
+ payload,
35
+ settings,
36
+ type: 'person'
37
+ });
38
+ }
39
+ };
40
+ exports.default = action;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/customerio/suppressPerson/index.ts"],"names":[],"mappings":";;AAGA,oCAAgD;AAEhD,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,6FAA6F;IAC1G,mBAAmB,EAAE,2BAA2B;IAChD,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,4OAA4O;YAC9O,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE;iBACpC;aACF;YACD,QAAQ,EAAE,IAAI;SACf;KACF;IAED,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzD,OAAO,iBAAS,CACd,OAAO,EACP,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM,EAAE,UAAU;YAClB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC,CACJ,CAAA;IACH,CAAC;IAED,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,OAAO,kBAAU,CAAC,OAAO,EAAE;YACzB,MAAM,EAAE,UAAU;YAClB,OAAO;YACP,QAAQ;YACR,IAAI,EAAE,QAAQ;SACf,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="lodash" />
2
+ import nock from 'nock';
3
+ import { AccountRegion } from './utils';
4
+ export declare const nockTrackInternalEndpoint: (region: AccountRegion) => nock.Scope;
5
+ export declare function getDefaultMappings(action: string): import("lodash").Dictionary<import("@segment/actions-core/src/destination-kit/types").FieldValue | undefined>;
6
+ export declare function testRunner(fn: Function): void;