@segment/action-destinations 3.82.1-alpha.5 → 3.82.1-alpha.6

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 (156) hide show
  1. package/dist/destinations/cordial/addProductToCart/generated-types.d.ts +17 -0
  2. package/dist/destinations/{intercom → cordial/addProductToCart}/generated-types.js +0 -0
  3. package/dist/destinations/cordial/addProductToCart/generated-types.js.map +1 -0
  4. package/dist/destinations/{intercom/groupIdentifyContact → cordial/addProductToCart}/index.d.ts +1 -1
  5. package/dist/destinations/cordial/addProductToCart/index.js +116 -0
  6. package/dist/destinations/cordial/addProductToCart/index.js.map +1 -0
  7. package/dist/destinations/cordial/cordial-client.d.ts +6 -0
  8. package/dist/destinations/cordial/cordial-client.js +42 -0
  9. package/dist/destinations/cordial/cordial-client.js.map +1 -1
  10. package/dist/destinations/cordial/index.js +9 -3
  11. package/dist/destinations/cordial/index.js.map +1 -1
  12. package/dist/destinations/cordial/removeProductFromCart/generated-types.d.ts +7 -0
  13. package/dist/destinations/{intercom/groupIdentifyContact → cordial/removeProductFromCart}/generated-types.js +0 -0
  14. package/dist/destinations/cordial/removeProductFromCart/generated-types.js.map +1 -0
  15. package/dist/destinations/{intercom/identifyContact → cordial/removeProductFromCart}/index.d.ts +1 -1
  16. package/dist/destinations/cordial/removeProductFromCart/index.js +44 -0
  17. package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -0
  18. package/dist/destinations/cordial/upsertOrder/generated-types.d.ts +26 -0
  19. package/dist/destinations/{intercom/identifyContact → cordial/upsertOrder}/generated-types.js +0 -0
  20. package/dist/destinations/cordial/upsertOrder/generated-types.js.map +1 -0
  21. package/dist/destinations/cordial/upsertOrder/index.d.ts +5 -0
  22. package/dist/destinations/cordial/upsertOrder/index.js +179 -0
  23. package/dist/destinations/cordial/upsertOrder/index.js.map +1 -0
  24. package/dist/destinations/customerio/index.js +1 -1
  25. package/dist/destinations/customerio/index.js.map +1 -1
  26. package/dist/destinations/{intercom → fullstory}/generated-types.d.ts +1 -0
  27. package/dist/destinations/fullstory/generated-types.js +3 -0
  28. package/dist/destinations/fullstory/generated-types.js.map +1 -0
  29. package/dist/destinations/fullstory/identifyUser/generated-types.d.ts +9 -0
  30. package/dist/destinations/fullstory/identifyUser/generated-types.js +3 -0
  31. package/dist/destinations/fullstory/identifyUser/generated-types.js.map +1 -0
  32. package/dist/destinations/fullstory/identifyUser/index.d.ts +4 -0
  33. package/dist/destinations/fullstory/identifyUser/index.js +73 -0
  34. package/dist/destinations/fullstory/identifyUser/index.js.map +1 -0
  35. package/dist/destinations/{intercom → fullstory}/index.d.ts +0 -0
  36. package/dist/destinations/fullstory/index.js +56 -0
  37. package/dist/destinations/fullstory/index.js.map +1 -0
  38. package/dist/destinations/fullstory/request-params.d.ts +18 -0
  39. package/dist/destinations/fullstory/request-params.js +70 -0
  40. package/dist/destinations/fullstory/request-params.js.map +1 -0
  41. package/dist/destinations/fullstory/trackEvent/generated-types.d.ts +10 -0
  42. package/dist/destinations/fullstory/trackEvent/generated-types.js +3 -0
  43. package/dist/destinations/fullstory/trackEvent/generated-types.js.map +1 -0
  44. package/dist/destinations/fullstory/trackEvent/index.d.ts +5 -0
  45. package/dist/destinations/fullstory/trackEvent/index.js +79 -0
  46. package/dist/destinations/fullstory/trackEvent/index.js.map +1 -0
  47. package/dist/destinations/fullstory/vars.d.ts +3 -0
  48. package/dist/destinations/fullstory/vars.js +100 -0
  49. package/dist/destinations/fullstory/vars.js.map +1 -0
  50. package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -0
  51. package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +29 -20
  52. package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
  53. package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -0
  54. package/dist/destinations/google-analytics-4/addToCart/index.js +27 -18
  55. package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
  56. package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -0
  57. package/dist/destinations/google-analytics-4/addToWishlist/index.js +27 -18
  58. package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
  59. package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -0
  60. package/dist/destinations/google-analytics-4/beginCheckout/index.js +28 -19
  61. package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
  62. package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +1 -0
  63. package/dist/destinations/google-analytics-4/customEvent/index.js +25 -15
  64. package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
  65. package/dist/destinations/google-analytics-4/ga4-functions.d.ts +3 -0
  66. package/dist/destinations/google-analytics-4/ga4-functions.js +33 -1
  67. package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
  68. package/dist/destinations/google-analytics-4/ga4-properties.d.ts +1 -0
  69. package/dist/destinations/google-analytics-4/ga4-properties.js +9 -1
  70. package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
  71. package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +1 -0
  72. package/dist/destinations/google-analytics-4/generateLead/index.js +26 -17
  73. package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
  74. package/dist/destinations/google-analytics-4/login/generated-types.d.ts +1 -0
  75. package/dist/destinations/google-analytics-4/login/index.js +26 -16
  76. package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
  77. package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +1 -0
  78. package/dist/destinations/google-analytics-4/pageView/index.js +28 -18
  79. package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
  80. package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -0
  81. package/dist/destinations/google-analytics-4/purchase/index.js +32 -23
  82. package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
  83. package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +1 -0
  84. package/dist/destinations/google-analytics-4/refund/index.js +32 -23
  85. package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
  86. package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +1 -0
  87. package/dist/destinations/google-analytics-4/removeFromCart/index.js +27 -18
  88. package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
  89. package/dist/destinations/google-analytics-4/search/generated-types.d.ts +1 -0
  90. package/dist/destinations/google-analytics-4/search/index.js +26 -16
  91. package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
  92. package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -0
  93. package/dist/destinations/google-analytics-4/selectItem/index.js +27 -18
  94. package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
  95. package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +1 -0
  96. package/dist/destinations/google-analytics-4/selectPromotion/index.js +30 -21
  97. package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
  98. package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +1 -0
  99. package/dist/destinations/google-analytics-4/signUp/index.js +26 -16
  100. package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
  101. package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +1 -0
  102. package/dist/destinations/google-analytics-4/viewCart/index.js +27 -18
  103. package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
  104. package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -0
  105. package/dist/destinations/google-analytics-4/viewItem/index.js +27 -18
  106. package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
  107. package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +1 -0
  108. package/dist/destinations/google-analytics-4/viewItemList/index.js +27 -18
  109. package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
  110. package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +1 -0
  111. package/dist/destinations/google-analytics-4/viewPromotion/index.js +30 -21
  112. package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
  113. package/dist/destinations/google-enhanced-conversions/postConversion/index.js +2 -2
  114. package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
  115. package/dist/destinations/index.js +0 -1
  116. package/dist/destinations/index.js.map +1 -1
  117. package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js +4 -8
  118. package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js.map +1 -1
  119. package/dist/destinations/talon-one/index.js +5 -1
  120. package/dist/destinations/talon-one/index.js.map +1 -1
  121. package/dist/destinations/talon-one/t1-properties.d.ts +5 -0
  122. package/dist/destinations/talon-one/t1-properties.js +179 -1
  123. package/dist/destinations/talon-one/t1-properties.js.map +1 -1
  124. package/dist/destinations/talon-one/trackEvent/generated-types.d.ts +4 -0
  125. package/dist/destinations/talon-one/trackEvent/index.js +37 -2
  126. package/dist/destinations/talon-one/trackEvent/index.js.map +1 -1
  127. package/dist/destinations/talon-one/updateCustomerProfile/generated-types.d.ts +4 -0
  128. package/dist/destinations/talon-one/updateCustomerProfile/index.js +38 -3
  129. package/dist/destinations/talon-one/updateCustomerProfile/index.js.map +1 -1
  130. package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.d.ts +19 -0
  131. package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.js +3 -0
  132. package/dist/destinations/talon-one/updateCustomerProfileV2/generated-types.js.map +1 -0
  133. package/dist/destinations/talon-one/updateCustomerProfileV2/index.d.ts +5 -0
  134. package/dist/destinations/talon-one/updateCustomerProfileV2/index.js +36 -0
  135. package/dist/destinations/talon-one/updateCustomerProfileV2/index.js.map +1 -0
  136. package/dist/destinations/talon-one/updateCustomerProfilesAttributes/generated-types.d.ts +4 -0
  137. package/dist/destinations/talon-one/updateCustomerProfilesAttributes/index.js +36 -1
  138. package/dist/destinations/talon-one/updateCustomerProfilesAttributes/index.js.map +1 -1
  139. package/dist/destinations/talon-one/updateCustomerSession/generated-types.d.ts +47 -0
  140. package/dist/destinations/talon-one/updateCustomerSession/generated-types.js +3 -0
  141. package/dist/destinations/talon-one/updateCustomerSession/generated-types.js.map +1 -0
  142. package/dist/destinations/talon-one/updateCustomerSession/index.d.ts +5 -0
  143. package/dist/destinations/talon-one/updateCustomerSession/index.js +117 -0
  144. package/dist/destinations/talon-one/updateCustomerSession/index.js.map +1 -0
  145. package/package.json +4 -4
  146. package/dist/destinations/intercom/generated-types.js.map +0 -1
  147. package/dist/destinations/intercom/groupIdentifyContact/generated-types.d.ts +0 -14
  148. package/dist/destinations/intercom/groupIdentifyContact/generated-types.js.map +0 -1
  149. package/dist/destinations/intercom/groupIdentifyContact/index.js +0 -122
  150. package/dist/destinations/intercom/groupIdentifyContact/index.js.map +0 -1
  151. package/dist/destinations/intercom/identifyContact/generated-types.d.ts +0 -15
  152. package/dist/destinations/intercom/identifyContact/generated-types.js.map +0 -1
  153. package/dist/destinations/intercom/identifyContact/index.js +0 -153
  154. package/dist/destinations/intercom/identifyContact/index.js.map +0 -1
  155. package/dist/destinations/intercom/index.js +0 -37
  156. package/dist/destinations/intercom/index.js.map +0 -1
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const t1_properties_1 = require("../t1-properties");
4
+ const action = {
5
+ title: 'Update Customer Sessions',
6
+ description: 'This updates a customer session.',
7
+ fields: {
8
+ customerSessionId: {
9
+ label: 'Customer Session ID',
10
+ description: 'The customer session integration identifier to use in Talon.One.',
11
+ type: 'string',
12
+ required: true
13
+ },
14
+ callbackDestination: {
15
+ label: 'Callback Destination URI',
16
+ description: 'This specifies the address of the service and its endpoint to do callback request.',
17
+ type: 'string',
18
+ placeholder: 'http://mydomain.com/api/callback_here'
19
+ },
20
+ callbackAPIKey: {
21
+ type: 'string',
22
+ label: 'Callback API Key',
23
+ description: 'This specifies API key and relative header. The header is specified optionally',
24
+ placeholder: 'X-API-Key 123456789123456789123456789123456789'
25
+ },
26
+ contentFields: {
27
+ type: 'string',
28
+ label: 'Content Fields',
29
+ description: 'This specifies a list of the fields from the response you need to receive. Comma character is separator. If omitted, all the fields will be forwarded from the response to the callback destination.',
30
+ placeholder: 'effects,customerProfile',
31
+ default: 'effects'
32
+ },
33
+ callbackCorrelationId: {
34
+ type: 'string',
35
+ label: 'Correlation ID',
36
+ description: 'This specifies ID of the request that will be forwarded to the destination URI with the callback request with the same header name. If omitted, the X-Correlation-ID will not be in the callback request.'
37
+ },
38
+ customerSession: {
39
+ label: 'Customer Session Data',
40
+ description: 'This contains all the data related to customer session.',
41
+ type: 'object',
42
+ required: true,
43
+ properties: {
44
+ profileId: { ...t1_properties_1.customerProfileId, required: false },
45
+ couponCodes: {
46
+ label: 'Coupon Codes',
47
+ description: 'Any coupon codes entered. Up to 100 coupons.`',
48
+ type: 'string',
49
+ multiple: true
50
+ },
51
+ referralCode: {
52
+ label: 'Referral Codes',
53
+ description: 'Any referral code entered.`',
54
+ type: 'string'
55
+ },
56
+ loyaltyCards: {
57
+ label: 'Loyalty Cards',
58
+ description: 'Any loyalty cards used. Up to 1 loyalty cards.`',
59
+ type: 'string',
60
+ multiple: true
61
+ },
62
+ state: {
63
+ label: 'State',
64
+ description: 'Indicates the current state of the session. `',
65
+ type: 'string',
66
+ choices: [
67
+ { label: 'Open', value: 'open' },
68
+ { label: 'Closed', value: 'closed' },
69
+ { label: 'Partially returned', value: 'partially_returned' },
70
+ { label: 'Cancelled', value: 'cancelled' }
71
+ ]
72
+ },
73
+ cartItems: { ...t1_properties_1.cartItems },
74
+ additionalCosts: {
75
+ label: 'Additional Costs',
76
+ description: 'Use this property to set a value for the additional costs of this session, such as a shipping cost.`',
77
+ type: 'object'
78
+ },
79
+ attributes: {
80
+ ...t1_properties_1.attribute,
81
+ default: {
82
+ '@path': '$.properties.attributes'
83
+ },
84
+ description: 'Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. [See more info](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes).'
85
+ }
86
+ }
87
+ },
88
+ sessionAttributesInfo: {
89
+ ...t1_properties_1.attributesInfo,
90
+ label: 'Session Attributes info',
91
+ description: 'Use this field if you want to identify a session attribute with a specific type'
92
+ },
93
+ cartItemsAttributesInfo: {
94
+ ...t1_properties_1.attributesInfo,
95
+ label: 'Cart Items Attributes info',
96
+ description: 'Use this field if you want to identify a cart item attribute with a specific type'
97
+ }
98
+ },
99
+ perform: (request, { payload }) => {
100
+ return request(`https://integration.talon.one/segment/customer_sessions/${payload.customerSessionId}`, {
101
+ method: 'put',
102
+ headers: {
103
+ 'X-Callback-Destination-URI': `${payload.callbackDestination}`,
104
+ 'X-Callback-API-Key': `${payload.callbackAPIKey}`,
105
+ 'X-Content-Fields': `${payload.contentFields}`,
106
+ 'X-Correlation-ID': `${payload.callbackCorrelationId}`
107
+ },
108
+ json: {
109
+ customerSession: payload.customerSession,
110
+ sessionAttributesInfo: payload.sessionAttributesInfo,
111
+ cartItemAttributesInfo: payload.cartItemsAttributesInfo
112
+ }
113
+ });
114
+ }
115
+ };
116
+ exports.default = action;
117
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/talon-one/updateCustomerSession/index.ts"],"names":[],"mappings":";;AAGA,oDAA0F;AAE1F,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,0BAA0B;IACjC,WAAW,EAAE,kCAAkC;IAC/C,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,kEAAkE;YAC/E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,mBAAmB,EAAE;YACnB,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uCAAuC;SACrD;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,g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qBAC3C;iBACF;gBACD,SAAS,EAAE,EAAE,GAAG,yBAAS,EAAE;gBAC3B,eAAe,EAAE;oBACf,KAAK,EAAE,kBAAkB;oBACzB,WAAW,EACT,sGAAsG;oBACxG,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,GAAG,yBAAS;oBACZ,OAAO,EAAE;wBACP,OAAO,EAAE,yBAAyB;qBACnC;oBACD,WAAW,EACT,yPAAyP;iBAC5P;aACF;SACF;QACD,qBAAqB,EAAE;YACrB,GAAG,8BAAc;YACjB,KAAK,EAAE,yBAAyB;YAChC,WAAW,EAAE,iFAAiF;SAC/F;QACD,uBAAuB,EAAE;YACvB,GAAG,8BAAc;YACjB,KAAK,EAAE,4BAA4B;YACnC,WAAW,EAAE,mFAAmF;SACjG;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAehC,OAAO,OAAO,CAAC,2DAA2D,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACrG,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,4BAA4B,EAAE,GAAG,OAAO,CAAC,mBAAmB,EAAE;gBAC9D,oBAAoB,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE;gBACjD,kBAAkB,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE;gBAC9C,kBAAkB,EAAE,GAAG,OAAO,CAAC,qBAAqB,EAAE;aACvD;YACD,IAAI,EAAE;gBACJ,eAAe,EAAE,OAAO,CAAC,eAAe;gBACxC,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;gBACpD,sBAAsB,EAAE,OAAO,CAAC,uBAAuB;aACxD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,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.82.1-alpha.5",
4
+ "version": "3.82.1-alpha.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@amplitude/ua-parser-js": "^0.7.25",
40
40
  "@segment/a1-notation": "^2.1.4",
41
- "@segment/actions-core": "^3.29.1-alpha.1",
42
- "@segment/actions-shared": "^1.12.1-alpha.1",
41
+ "@segment/actions-core": "^3.30.0",
42
+ "@segment/actions-shared": "^1.13.0",
43
43
  "cheerio": "^1.0.0-rc.10",
44
44
  "dayjs": "^1.10.7",
45
45
  "escape-goat": "^3",
@@ -65,5 +65,5 @@
65
65
  "lcov"
66
66
  ]
67
67
  },
68
- "gitHead": "804210a578b5b746144625a8fcbc23b334ab9474"
68
+ "gitHead": "813e49d320d17d4c208a0d56fd3542d66a9b814d"
69
69
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/intercom/generated-types.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- export interface Payload {
2
- remote_created_at?: string | number;
3
- company_id: string;
4
- contact_id?: string;
5
- name?: string;
6
- monthly_spend?: number;
7
- plan?: string;
8
- size?: number;
9
- website?: string;
10
- industry?: string;
11
- custom_attributes?: {
12
- [k: string]: unknown;
13
- };
14
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/groupIdentifyContact/generated-types.ts"],"names":[],"mappings":""}
@@ -1,122 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const actions_core_1 = require("@segment/actions-core");
4
- const action = {
5
- title: 'Group Identify Contact',
6
- description: "Create or Update A Company. Note: Companies will be only visible in Intercom's Dashboard when there is at least one associated contact.",
7
- defaultSubscription: 'type = "group"',
8
- platform: 'web',
9
- fields: {
10
- remote_created_at: {
11
- type: 'datetime',
12
- description: 'The time the company was created by you.',
13
- label: 'Remote Created At',
14
- default: {
15
- '@path': '$.traits.createdAt'
16
- }
17
- },
18
- company_id: {
19
- type: 'string',
20
- description: "The unique identifier of the company. Can't be updated.",
21
- label: 'Company ID',
22
- required: true,
23
- default: {
24
- '@path': '$.groupId'
25
- }
26
- },
27
- contact_id: {
28
- type: 'string',
29
- description: 'Attach this contact to the company. This ID is NOT the external_id or email; it is the Intercom unique identifier.',
30
- label: 'Contact ID',
31
- default: {
32
- '@path': '$.userId'
33
- }
34
- },
35
- name: {
36
- type: 'string',
37
- description: 'The name of the company.',
38
- label: 'Name',
39
- default: {
40
- '@path': '$.traits.name'
41
- }
42
- },
43
- monthly_spend: {
44
- type: 'number',
45
- description: 'The monthly spend of the company.',
46
- label: 'Monthly Spend',
47
- default: {
48
- '@path': '$.traits.plan'
49
- }
50
- },
51
- plan: {
52
- type: 'string',
53
- description: 'The plan of the company.',
54
- label: 'Plan',
55
- default: {
56
- '@path': '$.traits.plan'
57
- }
58
- },
59
- size: {
60
- type: 'number',
61
- description: 'The size of the company.',
62
- label: 'Size',
63
- default: {
64
- '@path': '$.traits.employees'
65
- }
66
- },
67
- website: {
68
- type: 'string',
69
- description: 'The website of the company.',
70
- label: 'Website',
71
- default: {
72
- '@path': '$.traits.website'
73
- }
74
- },
75
- industry: {
76
- type: 'string',
77
- description: 'The industry of the company.',
78
- label: 'Industry',
79
- default: {
80
- '@path': '$.traits.industry'
81
- }
82
- },
83
- custom_attributes: {
84
- type: 'object',
85
- description: 'Passing any traits not mapped to individual fields as Custom Attributes. Note: Will throw an error if you pass an attribute that isn`t explicitly defined.',
86
- label: 'Custom Attributes'
87
- }
88
- },
89
- perform: async (request, { payload }) => {
90
- const contactId = payload.contact_id;
91
- delete payload.contact_id;
92
- const response = await createOrUpdateIntercomCompany(request, payload);
93
- if (contactId) {
94
- try {
95
- const companyId = response.data.id;
96
- return await attachContactToIntercomCompany(request, contactId, companyId);
97
- }
98
- catch (error) {
99
- if (error?.response?.status === 404) {
100
- throw new actions_core_1.RetryableError(`Contact doesn't exist, retrying`);
101
- }
102
- throw error;
103
- }
104
- }
105
- }
106
- };
107
- function createOrUpdateIntercomCompany(request, payload) {
108
- return request(`https://api.intercom.io/companies`, {
109
- method: 'POST',
110
- json: payload
111
- });
112
- }
113
- function attachContactToIntercomCompany(request, contactId, companyId) {
114
- return request(`https://api.intercom.io/contacts/${contactId}/companies`, {
115
- method: 'POST',
116
- json: {
117
- id: companyId
118
- }
119
- });
120
- }
121
- exports.default = action;
122
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/groupIdentifyContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAyG;AAQzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,yIAAyI;IAC3I,mBAAmB,EAAE,gBAAgB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,iBAAiB,EAAE;YACjB,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE,mBAAmB;YAC1B,OAAO,EAAE;gBACP,OAAO,EAAE,oBAAoB;aAC9B;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yDAAyD;YACtE,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,WAAW;aACrB;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,oHAAoH;YACtH,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,0BAA0B;YACvC,KAAK,EAAE,MAAM;YACb,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,WAAW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IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE;oBACnC,MAAM,IAAI,6BAAc,CAAC,iCAAiC,CAAC,CAAA;iBAC5D;gBACD,MAAM,KAAK,CAAA;aACZ;SACF;IACH,CAAC;CACF,CAAA;AAED,SAAS,6BAA6B,CACpC,OAAsB,EACtB,OAAgB;IAEhB,OAAO,OAAO,CAAC,mCAAmC,EAAE;QAClD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,OAAO;KACd,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,8BAA8B,CAAC,OAAsB,EAAE,SAAiB,EAAE,SAAiB;IAClG,OAAO,OAAO,CAAC,oCAAoC,SAAS,YAAY,EAAE;QACxE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS;SACd;KACF,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -1,15 +0,0 @@
1
- export interface Payload {
2
- role: string;
3
- external_id?: string;
4
- email?: string;
5
- phone?: string;
6
- name?: string;
7
- avatar?: string;
8
- signed_up_at?: string | number;
9
- last_seen_at?: string | number;
10
- owner_id?: number;
11
- unsubscribed_from_emails?: boolean;
12
- custom_attributes?: {
13
- [k: string]: unknown;
14
- };
15
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/identifyContact/generated-types.ts"],"names":[],"mappings":""}
@@ -1,153 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const actions_core_1 = require("@segment/actions-core");
4
- const action = {
5
- title: 'Identify Contact',
6
- description: 'Create or Update a Contact.',
7
- defaultSubscription: 'type = "identify"',
8
- platform: 'web',
9
- fields: {
10
- role: {
11
- type: 'string',
12
- required: true,
13
- description: 'The role of the contact. Accepted values are `user` or `lead`. Can only be updated if `lead`.',
14
- label: 'Role',
15
- default: 'lead'
16
- },
17
- external_id: {
18
- type: 'string',
19
- description: 'A unique identifier generated outside Intercom. Required if role=user and email is blank.',
20
- label: 'External ID',
21
- default: {
22
- '@path': '$.userId'
23
- }
24
- },
25
- email: {
26
- type: 'string',
27
- description: "The contact's email. Required if role=user and external_id is blank.",
28
- label: 'Email',
29
- format: 'email',
30
- default: {
31
- '@path': '$.traits.email'
32
- }
33
- },
34
- phone: {
35
- label: 'Phone Number',
36
- description: "The contact's phone number.",
37
- type: 'string',
38
- default: {
39
- '@path': '$.traits.phone'
40
- }
41
- },
42
- name: {
43
- type: 'string',
44
- description: "The contact's name.",
45
- label: 'Name',
46
- default: {
47
- '@path': '$.traits.name'
48
- }
49
- },
50
- avatar: {
51
- label: 'Avatar',
52
- description: 'URL of image to be associated with contact profile.',
53
- type: 'string',
54
- format: 'uri',
55
- default: {
56
- '@path': '$.traits.avatar'
57
- }
58
- },
59
- signed_up_at: {
60
- label: 'Signed Up At',
61
- type: 'datetime',
62
- description: 'The timestamp when the contact was created.',
63
- default: {
64
- '@path': '$.createdAt'
65
- }
66
- },
67
- last_seen_at: {
68
- label: 'Timestamp',
69
- type: 'datetime',
70
- description: 'The timestamp the contact was last seen.',
71
- default: {
72
- '@path': '$.timestamp'
73
- }
74
- },
75
- owner_id: {
76
- label: 'Owner Id',
77
- type: 'number',
78
- description: 'The id of an admin that has been assigned account ownership of the contact.'
79
- },
80
- unsubscribed_from_emails: {
81
- label: 'Unsubscribed From Emails',
82
- type: 'boolean',
83
- description: 'Whether the contact is unsubscribed from emails.'
84
- },
85
- custom_attributes: {
86
- label: 'Custom Attributes',
87
- description: 'The custom attributes which are set for the contact. Note: Will throw an error if the object has an attribute that isn`t explicitly defined on Intercom.',
88
- type: 'object',
89
- default: {
90
- '@path': '$.traits.customAttributes'
91
- }
92
- }
93
- },
94
- perform: async (request, { payload }) => {
95
- try {
96
- const contact = await searchIntercomContact(request, payload);
97
- if (contact) {
98
- return updateIntercomContact(request, contact.id, payload);
99
- }
100
- return await createIntercomContact(request, payload);
101
- }
102
- catch (error) {
103
- if (error?.response?.status === 409) {
104
- throw new actions_core_1.RetryableError('Contact was reported duplicated but could not be searched for, probably due to Intercom search cache not being updated');
105
- }
106
- throw error;
107
- }
108
- }
109
- };
110
- async function createIntercomContact(request, payload) {
111
- return request('https://api.intercom.io/contacts', {
112
- method: 'POST',
113
- json: payload
114
- });
115
- }
116
- async function searchIntercomContact(request, payload) {
117
- const searchFields = {
118
- email: payload.email,
119
- external_id: payload.external_id,
120
- role: payload.role
121
- };
122
- const value = [];
123
- for (const [key, fieldValue] of Object.entries(searchFields)) {
124
- if (fieldValue) {
125
- value.push({
126
- field: key,
127
- operator: '=',
128
- value: fieldValue
129
- });
130
- }
131
- }
132
- const query = {
133
- operator: 'AND',
134
- value
135
- };
136
- const response = await request('https://api.intercom.io/contacts/search', {
137
- method: 'POST',
138
- json: { query }
139
- });
140
- if (response.data.total_count === 1) {
141
- return response.data.data[0];
142
- }
143
- }
144
- async function updateIntercomContact(request, contactId, payload) {
145
- return request(`https://api.intercom.io/contacts/${contactId}`, {
146
- method: 'PUT',
147
- json: {
148
- ...payload
149
- }
150
- });
151
- }
152
- exports.default = action;
153
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/identifyContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAyG;AAazG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,6BAA6B;IAC1C,mBAAmB,EAAE,mBAAmB;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,+FAA+F;YAC5G,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,MAAM;SAChB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,2FAA2F;YACxG,KAAK,EAAE,aAAa;YACpB,OAAO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AAE,UAAU;aAClB,CAAC,CAAA;SACH;KACF;IAED,MAAM,KAAK,GAAG;QACZ,QAAQ,EAAE,KAAK;QACf,KAAK;KACN,CAAA;IAED,MAAM,QAAQ,GAAyC,MAAM,OAAO,CAAC,yCAAyC,EAAE;QAC9G,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,EAAE,KAAK,EAAE;KAChB,CAAC,CAAA;IAEF,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,EAAE;QACnC,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAC7B;AACH,CAAC;AAED,KAAK,UAAU,qBAAqB,CAAC,OAAsB,EAAE,SAAiB,EAAE,OAAgB;IAC9F,OAAO,OAAO,CAAC,oCAAoC,SAAS,EAAE,EAAE;QAC9D,MAAM,EAAE,KAAK;QACb,IAAI,EAAE;YACJ,GAAG,OAAO;SACX;KACF,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const identifyContact_1 = __importDefault(require("./identifyContact"));
7
- const groupIdentifyContact_1 = __importDefault(require("./groupIdentifyContact"));
8
- const destination = {
9
- name: 'Intercom (Actions)',
10
- slug: 'actions-intercom',
11
- mode: 'cloud',
12
- authentication: {
13
- scheme: 'oauth2',
14
- fields: {},
15
- testAuthentication: (request) => {
16
- return request('https://api.intercom.io/admins');
17
- }
18
- },
19
- extendRequest({ auth }) {
20
- return {
21
- headers: {
22
- authorization: `Bearer ${auth?.accessToken}`
23
- }
24
- };
25
- },
26
- onDelete: async (request, { payload }) => {
27
- return request(`https://api.intercom.io/contacts/${payload.userId}`, {
28
- method: 'DELETE'
29
- });
30
- },
31
- actions: {
32
- identifyContact: identifyContact_1.default,
33
- groupIdentifyContact: groupIdentifyContact_1.default
34
- }
35
- };
36
- exports.default = destination;
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/intercom/index.ts"],"names":[],"mappings":";;;;;AAEA,wEAA+C;AAC/C,kFAAyD;AAEzD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;QACV,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAG9B,OAAO,OAAO,CAAC,gCAAgC,CAAC,CAAA;QAClD,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,OAAO,OAAO,CAAC,oCAAoC,OAAO,CAAC,MAAM,EAAE,EAAE;YACnE,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,EAAE;QACP,eAAe,EAAf,yBAAe;QACf,oBAAoB,EAApB,8BAAoB;KACrB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}