@segment/action-destinations 3.332.1-staging.8 → 3.333.0-staging.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 (122) hide show
  1. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
  2. package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
  3. package/dist/destinations/facebook-conversions-api/constants.js +1 -1
  4. package/package.json +1 -1
  5. package/dist/destinations/braze/updateUserProfile/__snapshots__/__snapshots__/snapshot.test.js.snap +0 -208
  6. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.d.ts +0 -1
  7. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js +0 -184
  8. package/dist/destinations/braze/updateUserProfile/__snapshots__/snapshot.test.js.map +0 -1
  9. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  10. package/dist/destinations/engage/sendgrid/Profile.js +0 -3
  11. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  12. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  13. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  14. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  15. package/dist/destinations/klaviyo/removeProfileToList/generated-types.d.ts +0 -4
  16. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js +0 -3
  17. package/dist/destinations/klaviyo/removeProfileToList/generated-types.js.map +0 -1
  18. package/dist/destinations/klaviyo/removeProfileToList/index.d.ts +0 -5
  19. package/dist/destinations/klaviyo/removeProfileToList/index.js +0 -41
  20. package/dist/destinations/klaviyo/removeProfileToList/index.js.map +0 -1
  21. package/dist/destinations/mixpanel/utils.d.ts +0 -13
  22. package/dist/destinations/mixpanel/utils.js +0 -117
  23. package/dist/destinations/mixpanel/utils.js.map +0 -1
  24. package/dist/destinations/movable-ink/categoryView/generated-types.d.ts +0 -22
  25. package/dist/destinations/movable-ink/categoryView/generated-types.js +0 -3
  26. package/dist/destinations/movable-ink/categoryView/generated-types.js.map +0 -1
  27. package/dist/destinations/movable-ink/categoryView/index.d.ts +0 -5
  28. package/dist/destinations/movable-ink/categoryView/index.js +0 -43
  29. package/dist/destinations/movable-ink/categoryView/index.js.map +0 -1
  30. package/dist/destinations/movable-ink/conversion/generated-types.d.ts +0 -20
  31. package/dist/destinations/movable-ink/conversion/generated-types.js +0 -3
  32. package/dist/destinations/movable-ink/conversion/generated-types.js.map +0 -1
  33. package/dist/destinations/movable-ink/conversion/index.d.ts +0 -5
  34. package/dist/destinations/movable-ink/conversion/index.js +0 -45
  35. package/dist/destinations/movable-ink/conversion/index.js.map +0 -1
  36. package/dist/destinations/movable-ink/fields.d.ts +0 -21
  37. package/dist/destinations/movable-ink/fields.js +0 -236
  38. package/dist/destinations/movable-ink/fields.js.map +0 -1
  39. package/dist/destinations/movable-ink/identify/generated-types.d.ts +0 -7
  40. package/dist/destinations/movable-ink/identify/generated-types.js +0 -3
  41. package/dist/destinations/movable-ink/identify/generated-types.js.map +0 -1
  42. package/dist/destinations/movable-ink/identify/index.d.ts +0 -5
  43. package/dist/destinations/movable-ink/identify/index.js +0 -32
  44. package/dist/destinations/movable-ink/identify/index.js.map +0 -1
  45. package/dist/destinations/movable-ink/productAdded/generated-types.d.ts +0 -22
  46. package/dist/destinations/movable-ink/productAdded/generated-types.js +0 -3
  47. package/dist/destinations/movable-ink/productAdded/generated-types.js.map +0 -1
  48. package/dist/destinations/movable-ink/productAdded/index.d.ts +0 -5
  49. package/dist/destinations/movable-ink/productAdded/index.js +0 -43
  50. package/dist/destinations/movable-ink/productAdded/index.js.map +0 -1
  51. package/dist/destinations/movable-ink/productViewed/generated-types.d.ts +0 -21
  52. package/dist/destinations/movable-ink/productViewed/generated-types.js +0 -3
  53. package/dist/destinations/movable-ink/productViewed/generated-types.js.map +0 -1
  54. package/dist/destinations/movable-ink/productViewed/index.d.ts +0 -5
  55. package/dist/destinations/movable-ink/productViewed/index.js +0 -43
  56. package/dist/destinations/movable-ink/productViewed/index.js.map +0 -1
  57. package/dist/destinations/movable-ink/search/generated-types.d.ts +0 -12
  58. package/dist/destinations/movable-ink/search/generated-types.js +0 -3
  59. package/dist/destinations/movable-ink/search/generated-types.js.map +0 -1
  60. package/dist/destinations/movable-ink/search/index.d.ts +0 -5
  61. package/dist/destinations/movable-ink/search/index.js +0 -43
  62. package/dist/destinations/movable-ink/search/index.js.map +0 -1
  63. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.d.ts +0 -25
  64. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js +0 -3
  65. package/dist/destinations/movable-ink/sendCustomEvent/generated-types.js.map +0 -1
  66. package/dist/destinations/movable-ink/sendCustomEvent/index.d.ts +0 -5
  67. package/dist/destinations/movable-ink/sendCustomEvent/index.js +0 -48
  68. package/dist/destinations/movable-ink/sendCustomEvent/index.js.map +0 -1
  69. package/dist/destinations/tiktok-offline-conversions/common_fields.d.ts +0 -2
  70. package/dist/destinations/tiktok-offline-conversions/common_fields.js +0 -85
  71. package/dist/destinations/tiktok-offline-conversions/common_fields.js.map +0 -1
  72. package/dist/destinations/tiktok-offline-conversions/formatter.d.ts +0 -2
  73. package/dist/destinations/tiktok-offline-conversions/formatter.js +0 -33
  74. package/dist/destinations/tiktok-offline-conversions/formatter.js.map +0 -1
  75. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.d.ts +0 -10
  76. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.js +0 -3
  77. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/generated-types.js.map +0 -1
  78. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.d.ts +0 -5
  79. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js +0 -41
  80. package/dist/destinations/tiktok-offline-conversions/trackNonPaymentOfflineConversion/index.js.map +0 -1
  81. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.d.ts +0 -20
  82. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.js +0 -3
  83. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/generated-types.js.map +0 -1
  84. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.d.ts +0 -5
  85. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js +0 -137
  86. package/dist/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/index.js.map +0 -1
  87. package/dist/destinations/trackey/group.types.d.ts +0 -11
  88. package/dist/destinations/trackey/group.types.js +0 -3
  89. package/dist/destinations/trackey/group.types.js.map +0 -1
  90. package/dist/destinations/trackey/identify.types.d.ts +0 -11
  91. package/dist/destinations/trackey/identify.types.js +0 -3
  92. package/dist/destinations/trackey/identify.types.js.map +0 -1
  93. package/dist/destinations/trackey/identifyUser/generated-types.d.ts +0 -8
  94. package/dist/destinations/trackey/identifyUser/generated-types.js +0 -3
  95. package/dist/destinations/trackey/identifyUser/generated-types.js.map +0 -1
  96. package/dist/destinations/trackey/identifyUser/index.d.ts +0 -5
  97. package/dist/destinations/trackey/identifyUser/index.js +0 -52
  98. package/dist/destinations/trackey/identifyUser/index.js.map +0 -1
  99. package/dist/destinations/trackey/identifyUser.types.d.ts +0 -8
  100. package/dist/destinations/trackey/identifyUser.types.js +0 -3
  101. package/dist/destinations/trackey/identifyUser.types.js.map +0 -1
  102. package/dist/destinations/trackey/registerCompany/generated-types.d.ts +0 -9
  103. package/dist/destinations/trackey/registerCompany/generated-types.js +0 -3
  104. package/dist/destinations/trackey/registerCompany/generated-types.js.map +0 -1
  105. package/dist/destinations/trackey/registerCompany/index.d.ts +0 -5
  106. package/dist/destinations/trackey/registerCompany/index.js +0 -60
  107. package/dist/destinations/trackey/registerCompany/index.js.map +0 -1
  108. package/dist/destinations/trackey/registerCompany.types.d.ts +0 -9
  109. package/dist/destinations/trackey/registerCompany.types.js +0 -3
  110. package/dist/destinations/trackey/registerCompany.types.js.map +0 -1
  111. package/dist/destinations/trackey/track.types.d.ts +0 -12
  112. package/dist/destinations/trackey/track.types.js +0 -3
  113. package/dist/destinations/trackey/track.types.js.map +0 -1
  114. package/dist/destinations/trackey/trackEvent/generated-types.d.ts +0 -12
  115. package/dist/destinations/trackey/trackEvent/generated-types.js +0 -3
  116. package/dist/destinations/trackey/trackEvent/generated-types.js.map +0 -1
  117. package/dist/destinations/trackey/trackEvent/index.d.ts +0 -5
  118. package/dist/destinations/trackey/trackEvent/index.js +0 -68
  119. package/dist/destinations/trackey/trackEvent/index.js.map +0 -1
  120. package/dist/destinations/trackey/trackEvent.types.d.ts +0 -12
  121. package/dist/destinations/trackey/trackEvent.types.js +0 -3
  122. package/dist/destinations/trackey/trackEvent.types.js.map +0 -1
@@ -1,20 +0,0 @@
1
- export interface Payload {
2
- event: string;
3
- event_id?: string;
4
- timestamp?: string;
5
- phone_numbers?: string[];
6
- email_addresses?: string[];
7
- order_id?: string;
8
- shop_id?: string;
9
- event_channel?: string;
10
- contents?: {
11
- price?: number;
12
- quantity?: number;
13
- content_type?: string;
14
- content_id?: string;
15
- content_name?: string;
16
- content_category?: string;
17
- }[];
18
- currency: string;
19
- value: 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/tiktok-offline-conversions/trackPaymentOfflineConversion/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,137 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const actions_core_1 = require("@segment/actions-core");
4
- const common_fields_1 = require("../common_fields");
5
- const formatter_1 = require("../formatter");
6
- const action = {
7
- title: 'Track Payment Offline Conversion',
8
- description: 'Send details of an in-store purchase or console purchase to the Tiktok Offline Events API',
9
- fields: {
10
- ...common_fields_1.commonFields,
11
- timestamp: {
12
- label: 'Event Timestamp',
13
- type: 'string',
14
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
15
- default: {
16
- '@path': '$.timestamp'
17
- }
18
- },
19
- contents: {
20
- label: 'Contents',
21
- type: 'object',
22
- multiple: true,
23
- description: 'Array of product or content items for the offline event.',
24
- properties: {
25
- price: {
26
- label: 'Price',
27
- description: 'Price of the product or content item. Price is a required field for all content items.',
28
- type: 'number'
29
- },
30
- quantity: {
31
- label: 'Quantity',
32
- description: 'Quantity of this product ot item in the offline event. Quantity is a required field for all content items.',
33
- type: 'number'
34
- },
35
- content_type: {
36
- label: 'Content Type',
37
- description: 'Product type',
38
- type: 'string'
39
- },
40
- content_id: {
41
- label: 'Content ID',
42
- description: 'Product or content item identifier. Content ID is a required field for all product or content items.',
43
- type: 'string'
44
- },
45
- content_name: {
46
- label: 'Content Name',
47
- description: 'Name of the product or content item.',
48
- type: 'string'
49
- },
50
- content_category: {
51
- label: 'Content Category',
52
- description: 'Category of the product or content item.',
53
- type: 'string'
54
- }
55
- },
56
- default: {
57
- '@arrayPath': [
58
- '$.properties.products',
59
- {
60
- price: {
61
- '@path': 'price'
62
- },
63
- quantity: {
64
- '@path': 'quantity'
65
- },
66
- content_type: {
67
- '@path': 'type'
68
- },
69
- content_id: {
70
- '@path': 'product_id'
71
- },
72
- content_name: {
73
- '@path': 'name'
74
- },
75
- content_category: {
76
- '@path': 'category'
77
- }
78
- }
79
- ]
80
- }
81
- },
82
- currency: {
83
- label: 'Currency',
84
- type: 'string',
85
- required: true,
86
- description: 'ISO 4217 code. Required for revenue reporting. Example: "USD".List of currencies currently supported: AED, ARS, AUD, BDT, BHD, BIF, BOB, BRL, CAD, CHF, CLP, CNY, COP, CRC, CZK, DKK, DZD, EGP, EUR, GBP, GTQ, HKD, HNL, HUF, IDR, ILS, INR, ISK, JPY, KES, KHR, KRW, KWD, KZT, MAD, MOP, MXN, MYR, NGN, NIO, NOK, NZD, OMR, PEN, PHP, PHP, PKR, PLN, PYG, QAR, RON, RUB, SAR, SEK, SGD, THB, TRY, TWD, UAH, USD, VES, VND, ZAR.',
87
- default: {
88
- '@path': '$.properties.currency'
89
- }
90
- },
91
- value: {
92
- label: 'Value',
93
- type: 'number',
94
- required: true,
95
- description: 'Revenue of total products or content items. Required for revenue reporting. Must be a number. e.g. 101.99 and not "101.99 USD"',
96
- default: {
97
- '@if': {
98
- exists: { '@path': '$.properties.value' },
99
- then: { '@path': '$.properties.value' },
100
- else: { '@path': '$.properties.revenue' }
101
- }
102
- }
103
- }
104
- },
105
- perform: (request, { payload, settings }) => {
106
- const phone_numbers = formatter_1.formatPhones(payload.phone_numbers);
107
- const emails = formatter_1.formatEmails(payload.email_addresses);
108
- if (phone_numbers.length < 1 && emails.length < 1)
109
- throw new actions_core_1.PayloadValidationError('TikTok Offline Conversions API requires an email address and/or phone number');
110
- return request('https://business-api.tiktok.com/open_api/v1.3/offline/track/', {
111
- method: 'post',
112
- json: {
113
- event_set_id: settings.eventSetID,
114
- event: payload.event,
115
- event_id: payload.event_id ? `${payload.event_id}` : undefined,
116
- timestamp: payload.timestamp,
117
- context: {
118
- user: {
119
- phone_numbers,
120
- emails
121
- }
122
- },
123
- properties: {
124
- order_id: payload.order_id,
125
- shop_id: payload.shop_id,
126
- contents: payload.contents,
127
- currency: payload.currency,
128
- value: payload.value,
129
- event_channel: payload.event_channel
130
- },
131
- partner_name: 'Segment'
132
- }
133
- });
134
- }
135
- };
136
- exports.default = action;
137
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/tiktok-offline-conversions/trackPaymentOfflineConversion/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K;gBACpB,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS;gBAC9D,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE;oBACP,IAAI,EAAE;wBACJ,aAAa;wBACb,MAAM;qBACP;iBACF;gBACD,UAAU,EAAE;oBACV,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;oBACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;oBAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,aAAa,EAAE,OAAO,CAAC,aAAa;iBACrC;gBACD,YAAY,EAAE,SAAS;aACxB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,11 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId: {
9
- [k: string]: unknown;
10
- };
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=group.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/group.types.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId?: {
9
- [k: string]: unknown;
10
- };
11
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=identify.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identify.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identify.types.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- }
@@ -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/trackey/identifyUser/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const constants_1 = require("../constants");
4
- const action = {
5
- title: 'Identify User',
6
- description: 'Identify a user',
7
- defaultSubscription: 'type = "identify"',
8
- fields: {
9
- userId: {
10
- label: 'User ID',
11
- type: 'string',
12
- required: true,
13
- description: 'The user identifier to associate the event with',
14
- default: { '@path': '$.userId' }
15
- },
16
- messageId: {
17
- label: 'Message ID',
18
- type: 'string',
19
- description: 'A unique value for each event.',
20
- default: {
21
- '@path': '$.messageId'
22
- }
23
- },
24
- timestamp: {
25
- label: 'Event Timestamp',
26
- type: 'string',
27
- required: true,
28
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
29
- default: { '@path': '$.timestamp' }
30
- },
31
- traits: {
32
- label: 'User Traits',
33
- type: 'object',
34
- required: false,
35
- description: 'User profile information',
36
- default: { '@path': '$.traits' }
37
- }
38
- },
39
- perform: (request, { payload }) => {
40
- return request(constants_1.baseUrl, {
41
- method: 'POST',
42
- json: {
43
- userId: payload.userId,
44
- messageId: payload.messageId,
45
- timestamp: payload.timestamp,
46
- traits: payload.traits
47
- }
48
- });
49
- }
50
- };
51
- exports.default = action;
52
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/identifyUser/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,iBAAiB;IAC9B,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;aACvB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,8 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=identifyUser.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifyUser.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/identifyUser.types.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId: string;
9
- }
@@ -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/trackey/registerCompany/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const constants_1 = require("../constants");
4
- const action = {
5
- title: 'Register Company',
6
- description: 'Register a user in a company',
7
- defaultSubscription: 'type = "group"',
8
- fields: {
9
- userId: {
10
- label: 'User ID',
11
- type: 'string',
12
- required: true,
13
- description: 'The user identifier to associate the event with',
14
- default: { '@path': '$.userId' }
15
- },
16
- messageId: {
17
- label: 'Message ID',
18
- type: 'string',
19
- description: 'A unique value for each event.',
20
- default: {
21
- '@path': '$.messageId'
22
- }
23
- },
24
- timestamp: {
25
- label: 'Event Timestamp',
26
- type: 'string',
27
- required: true,
28
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
29
- default: { '@path': '$.timestamp' }
30
- },
31
- traits: {
32
- label: 'COmpany Traits',
33
- type: 'object',
34
- required: false,
35
- description: 'Company profile information',
36
- default: { '@path': '$.traits' }
37
- },
38
- groupId: {
39
- label: 'Group ID',
40
- type: 'string',
41
- required: true,
42
- description: 'Company ID associated with the event',
43
- default: { '@path': '$.groupId' }
44
- }
45
- },
46
- perform: (request, { payload }) => {
47
- return request(constants_1.baseUrl, {
48
- method: 'POST',
49
- json: {
50
- userId: payload.userId,
51
- messageId: payload.messageId,
52
- timestamp: payload.timestamp,
53
- traits: payload.traits,
54
- groupId: payload.groupId
55
- }
56
- });
57
- }
58
- };
59
- exports.default = action;
60
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/registerCompany/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,8BAA8B;IAC3C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,MAAM,EAAE;YACN,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,6BAA6B;YAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;SAClC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,9 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- messageId?: string;
4
- timestamp: string;
5
- traits?: {
6
- [k: string]: unknown;
7
- };
8
- groupId: string;
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=registerCompany.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registerCompany.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/registerCompany.types.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- event: string;
4
- messageId?: string;
5
- timestamp: string;
6
- properties?: {
7
- [k: string]: unknown;
8
- };
9
- groupId?: {
10
- [k: string]: unknown;
11
- };
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=track.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"track.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/track.types.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- event: string;
4
- messageId?: string;
5
- timestamp: string;
6
- properties?: {
7
- [k: string]: unknown;
8
- };
9
- groupId?: {
10
- [k: string]: unknown;
11
- };
12
- }
@@ -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/trackey/trackEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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;
@@ -1,68 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const constants_1 = require("../constants");
4
- const action = {
5
- title: 'Track Event',
6
- description: 'Track an event',
7
- defaultSubscription: 'type = "track"',
8
- fields: {
9
- userId: {
10
- label: 'User ID',
11
- type: 'string',
12
- required: true,
13
- description: 'The user identifier to associate the event with',
14
- default: { '@path': '$.userId' }
15
- },
16
- event: {
17
- label: 'Event Name',
18
- type: 'string',
19
- required: true,
20
- description: 'Name of the Segment track() event',
21
- default: { '@path': '$.event' }
22
- },
23
- messageId: {
24
- label: 'Message ID',
25
- type: 'string',
26
- description: 'A unique value for each event.',
27
- default: {
28
- '@path': '$.messageId'
29
- }
30
- },
31
- timestamp: {
32
- label: 'Event Timestamp',
33
- type: 'string',
34
- required: true,
35
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
36
- default: { '@path': '$.timestamp' }
37
- },
38
- properties: {
39
- label: 'Event Properties',
40
- type: 'object',
41
- required: false,
42
- description: 'Additional information associated with the track() event',
43
- default: { '@path': '$.properties' }
44
- },
45
- groupId: {
46
- label: 'Group ID',
47
- type: 'object',
48
- required: false,
49
- description: 'Company ID associated with the event',
50
- default: { '@path': '$.context.group_id' }
51
- }
52
- },
53
- perform: (request, { payload }) => {
54
- return request(constants_1.baseUrl, {
55
- method: 'POST',
56
- json: {
57
- userId: payload.userId,
58
- event: payload.event,
59
- messageId: payload.messageId,
60
- timestamp: payload.timestamp,
61
- properties: payload.properties,
62
- groupId: payload.groupId
63
- }
64
- });
65
- }
66
- };
67
- exports.default = action;
68
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/trackey/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,4CAAsC;AAEtC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gBAAgB;IAC7B,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,MAAM,EAAE;YACN,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;SACjC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mCAAmC;YAChD,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;SAChC;QACD,SAAS,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;QACD,UAAU,EAAE;YACV,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;SACrC;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;SAC3C;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChC,OAAO,OAAO,CAAC,mBAAO,EAAE;YACtB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- event: string;
4
- messageId?: string;
5
- timestamp: string;
6
- properties?: {
7
- [k: string]: unknown;
8
- };
9
- groupId?: {
10
- [k: string]: unknown;
11
- };
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=trackEvent.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trackEvent.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/trackEvent.types.ts"],"names":[],"mappings":""}