@segment/action-destinations 3.162.0 → 3.163.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 (65) hide show
  1. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
  2. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +159 -122
  3. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  4. package/dist/destinations/index.js +2 -0
  5. package/dist/destinations/index.js.map +1 -1
  6. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.d.ts +9 -0
  7. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js +3 -0
  8. package/dist/destinations/liveramp-audiences/audienceEntered/generated-types.js.map +1 -0
  9. package/dist/destinations/liveramp-audiences/audienceEntered/index.d.ts +5 -0
  10. package/dist/destinations/liveramp-audiences/audienceEntered/index.js +54 -0
  11. package/dist/destinations/liveramp-audiences/audienceEntered/index.js.map +1 -0
  12. package/dist/destinations/liveramp-audiences/audienceEntered/operations.d.ts +6 -0
  13. package/dist/destinations/liveramp-audiences/audienceEntered/operations.js +42 -0
  14. package/dist/destinations/liveramp-audiences/audienceEntered/operations.js.map +1 -0
  15. package/dist/destinations/liveramp-audiences/generated-types.d.ts +10 -0
  16. package/dist/destinations/liveramp-audiences/generated-types.js +3 -0
  17. package/dist/destinations/liveramp-audiences/generated-types.js.map +1 -0
  18. package/dist/destinations/liveramp-audiences/index.d.ts +4 -0
  19. package/dist/destinations/liveramp-audiences/index.js +69 -0
  20. package/dist/destinations/liveramp-audiences/index.js.map +1 -0
  21. package/dist/destinations/liveramp-audiences/s3.d.ts +5 -0
  22. package/dist/destinations/liveramp-audiences/s3.js +37 -0
  23. package/dist/destinations/liveramp-audiences/s3.js.map +1 -0
  24. package/dist/destinations/revx/generated-types.d.ts +3 -0
  25. package/dist/destinations/revx/generated-types.js +3 -0
  26. package/dist/destinations/revx/generated-types.js.map +1 -0
  27. package/dist/destinations/revx/index.d.ts +4 -0
  28. package/dist/destinations/revx/index.js +36 -0
  29. package/dist/destinations/revx/index.js.map +1 -0
  30. package/dist/destinations/revx/sendRevxPing/generated-types.d.ts +41 -0
  31. package/dist/destinations/revx/sendRevxPing/generated-types.js +3 -0
  32. package/dist/destinations/revx/sendRevxPing/generated-types.js.map +1 -0
  33. package/dist/destinations/revx/sendRevxPing/index.d.ts +5 -0
  34. package/dist/destinations/revx/sendRevxPing/index.js +268 -0
  35. package/dist/destinations/revx/sendRevxPing/index.js.map +1 -0
  36. package/dist/destinations/segment-profiles/generated-types.d.ts +0 -1
  37. package/dist/destinations/segment-profiles/helperFunctions.d.ts +0 -7
  38. package/dist/destinations/segment-profiles/helperFunctions.js +1 -45
  39. package/dist/destinations/segment-profiles/helperFunctions.js.map +1 -1
  40. package/dist/destinations/segment-profiles/index.js +0 -14
  41. package/dist/destinations/segment-profiles/index.js.map +1 -1
  42. package/dist/destinations/segment-profiles/properties.js +10 -1
  43. package/dist/destinations/segment-profiles/properties.js.map +1 -1
  44. package/dist/destinations/segment-profiles/sendGroup/index.js +0 -8
  45. package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
  46. package/dist/destinations/segment-profiles/sendIdentify/index.js +0 -8
  47. package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
  48. package/dist/destinations/usermaven/common-definitions.js +1 -1
  49. package/dist/destinations/usermaven/group/generated-types.d.ts +1 -1
  50. package/dist/destinations/usermaven/identify/generated-types.d.ts +1 -1
  51. package/dist/destinations/usermaven/index.js +9 -1
  52. package/dist/destinations/usermaven/index.js.map +1 -1
  53. package/dist/destinations/usermaven/page/generated-types.d.ts +31 -0
  54. package/dist/destinations/usermaven/page/generated-types.js +3 -0
  55. package/dist/destinations/usermaven/page/generated-types.js.map +1 -0
  56. package/dist/destinations/usermaven/page/index.d.ts +5 -0
  57. package/dist/destinations/usermaven/page/index.js +58 -0
  58. package/dist/destinations/usermaven/page/index.js.map +1 -0
  59. package/dist/destinations/usermaven/request-params.js +12 -8
  60. package/dist/destinations/usermaven/request-params.js.map +1 -1
  61. package/dist/destinations/usermaven/track/generated-types.d.ts +1 -1
  62. package/dist/lib/AWS/s3.d.ts +4 -0
  63. package/dist/lib/AWS/s3.js +21 -0
  64. package/dist/lib/AWS/s3.js.map +1 -0
  65. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/properties.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAuC;IACnE,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,6BAA6B;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iCAAiC;KACxC;CACF,CAAA;AAEY,QAAA,wBAAwB,GAAG,eAAe,CAAA;AAE1C,QAAA,gBAAgB,GAAG,EAAE,CAAA"}
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/properties.ts"],"names":[],"mappings":";;;AAMA,MAAM,YAAY,GAAuC;IACvD,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,6BAA6B;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iCAAiC;KACxC;CACF,CAAA;AACD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,YAAY,EAAE;IACxC,YAAY,CAAC,KAAK,GAAG;QACnB,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,8BAA8B;QACnC,GAAG,EAAE,8BAA8B;QACnC,IAAI,EAAE,+BAA+B;KACtC,CAAA;CACF;AACY,QAAA,iBAAiB,GAAG,YAAY,CAAA;AAChC,QAAA,wBAAwB,GAAG,eAAe,CAAA;AAE1C,QAAA,gBAAgB,GAAG,EAAE,CAAA"}
@@ -15,14 +15,6 @@ const action = {
15
15
  group_id: { ...segment_properties_1.group_id, required: true },
16
16
  traits: segment_properties_1.traits
17
17
  },
18
- dynamicFields: {
19
- engage_space: async (request, { settings }) => {
20
- return helperFunctions_1.getEngageSpaces(request, {
21
- endpoint: settings.endpoint,
22
- bearerToken: settings.segment_papi_token
23
- });
24
- }
25
- },
26
18
  perform: (request, { payload, settings }) => {
27
19
  if (!payload.anonymous_id && !payload.user_id) {
28
20
  throw errors_1.MissingUserOrAnonymousIdThrowableError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAmF;AACnF,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,wGAAwG;IACrH,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,MAAM,EAAN,2BAAM;KACP;IACD,aAAa,EAAE;QACb,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC5C,OAAO,iCAAe,CAAC,OAAO,EAAE;gBAC9B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,WAAW,EAAE,QAAQ,CAAC,kBAAkB;aACzC,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,E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AAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzC,MAAM,EAAN,2BAAM;KACP;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,QAAQ,EAAE;YACjD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -15,14 +15,6 @@ const action = {
15
15
  group_id: segment_properties_1.group_id,
16
16
  traits: segment_properties_1.traits
17
17
  },
18
- dynamicFields: {
19
- engage_space: async (request, { settings }) => {
20
- return helperFunctions_1.getEngageSpaces(request, {
21
- endpoint: settings.endpoint,
22
- bearerToken: settings.segment_papi_token
23
- });
24
- }
25
- },
26
18
  perform: (request, { payload, settings }) => {
27
19
  if (!payload.anonymous_id && !payload.user_id) {
28
20
  throw errors_1.MissingUserOrAnonymousIdThrowableError;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAmF;AACnF,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;KACP;IACD,aAAa,EAAE;QACb,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC5C,OAAO,iCAAe,CAAC,OAAO,EAAE;gBAC9B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;gBAC3B,WAAW,EAAE,QAAQ,CAAC,kBAAkB;aACzC,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAA6F;AAC7F,wDAAkE;AAClE,8CAAiD;AACjD,sCAAyG;AAEzG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,YAAY,EAAZ,iCAAY;QACZ,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,QAAQ,EAAR,6BAAQ;QACR,MAAM,EAAN,2BAAM;KACP;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QACD,MAAM,YAAY,GAAW;YAC3B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,OAAO,EAAE,OAAO,EAAE,QAAQ;YAC1B,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,YAAY,EAAE;gBAGZ,GAAG,EAAE,KAAK;aACX;SACF,CAAA;QAGD,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,8BAAiB,CAAC,EAAE;YACnE,MAAM,8CAAqC,CAAA;SAC5C;QAED,MAAM,uBAAuB,GAAG,8BAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAA;QACxE,OAAO,OAAO,CAAC,GAAG,uBAAuB,WAAW,EAAE;YACpD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE;gBACP,aAAa,EAAE,+CAA6B,CAAC,OAAO,CAAC,YAAY,CAAC;aACnE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.commonFields = void 0;
4
4
  exports.commonFields = {
5
- user_anonymous_Id: {
5
+ user_anonymous_id: {
6
6
  type: 'string',
7
7
  allowNull: true,
8
8
  required: false,
@@ -6,7 +6,7 @@ export interface Payload {
6
6
  company_custom_attributes?: {
7
7
  [k: string]: unknown;
8
8
  };
9
- user_anonymous_Id?: string | null;
9
+ user_anonymous_id?: string | null;
10
10
  event_id?: string;
11
11
  doc_path?: string;
12
12
  doc_search?: string;
@@ -7,7 +7,7 @@ export interface Payload {
7
7
  user_custom_attributes?: {
8
8
  [k: string]: unknown;
9
9
  };
10
- user_anonymous_Id?: string | null;
10
+ user_anonymous_id?: string | null;
11
11
  event_id?: string;
12
12
  doc_path?: string;
13
13
  doc_search?: string;
@@ -8,6 +8,7 @@ const actions_core_2 = require("@segment/actions-core");
8
8
  const identify_1 = __importDefault(require("./identify"));
9
9
  const track_1 = __importDefault(require("./track"));
10
10
  const group_1 = __importDefault(require("./group"));
11
+ const page_1 = __importDefault(require("./page"));
11
12
  const destination = {
12
13
  name: 'Usermaven (Actions)',
13
14
  slug: 'actions-usermaven',
@@ -46,12 +47,19 @@ const destination = {
46
47
  subscribe: 'type = "group"',
47
48
  partnerAction: 'group',
48
49
  mapping: actions_core_1.defaultValues(group_1.default.fields)
50
+ },
51
+ {
52
+ name: 'Page',
53
+ subscribe: 'type = "page"',
54
+ partnerAction: 'page',
55
+ mapping: actions_core_1.defaultValues(page_1.default.fields)
49
56
  }
50
57
  ],
51
58
  actions: {
52
59
  identify: identify_1.default,
53
60
  track: track_1.default,
54
- group: group_1.default
61
+ group: group_1.default,
62
+ page: page_1.default
55
63
  }
56
64
  };
57
65
  exports.default = destination;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/usermaven/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAE5E,wDAAwD;AAExD,0DAAiC;AACjC,oDAA2B;AAE3B,oDAA2B;AAE3B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,8BAA8B;gBAC3C,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAItC,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBACtD,MAAM,IAAI,+BAAgB,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAAA;aAC1E;QACH,CAAC;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,4BAAa,CAAC,eAAK,CAAC,MAAM,CAAC;SACrC;QACD;YACE,IAAI,EAAE,eAAe;YACrB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BAAa,CAAC,eAAK,CAAC,MAAM,CAAC;SACrC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,UAAU;YACzB,OAAO,EAAE,4BAAa,CAAC,kBAAQ,CAAC,MAAM,CAAC;SACxC;QACD;YACE,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,OAAO;YACtB,OAAO,EAAE,4BAAa,CAAC,eAAK,CAAC,MAAM,CAAC;SACrC;QACD;YACE,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,eAAe;YAC1B,aAAa,EAAE,MAAM;YACrB,OAAO,EAAE,4BAAa,CAAC,cAAI,CAAC,MAAM,CAAC;SACpC;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAR,kBAAQ;QACR,KAAK,EAAL,eAAK;QACL,KAAK,EAAL,eAAK;QACL,IAAI,EAAJ,cAAI;KACL;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,31 @@
1
+ export interface Payload {
2
+ user_id?: string;
3
+ user_email?: string;
4
+ user_created_at?: string;
5
+ page_name?: string;
6
+ user_anonymous_id?: string | null;
7
+ event_id?: string;
8
+ doc_path?: string;
9
+ doc_search?: string;
10
+ event_type?: string;
11
+ page_title?: string;
12
+ referer?: string;
13
+ url?: string;
14
+ user_agent?: string;
15
+ user_language?: string;
16
+ utc_time?: string;
17
+ utm?: {
18
+ source?: string;
19
+ medium?: string;
20
+ name?: string;
21
+ term?: string;
22
+ content?: string;
23
+ };
24
+ screen?: {
25
+ height?: number;
26
+ width?: number;
27
+ density?: number;
28
+ };
29
+ timezone?: string;
30
+ ip?: string;
31
+ }
@@ -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/usermaven/page/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,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_definitions_1 = require("../common-definitions");
4
+ const request_params_1 = require("../request-params");
5
+ const action = {
6
+ title: 'Page',
7
+ description: 'Send pageview events to Usermaven.',
8
+ fields: {
9
+ user_id: {
10
+ type: 'string',
11
+ required: false,
12
+ description: 'The user id, to uniquely identify the user',
13
+ label: 'User id',
14
+ default: { '@path': '$.userId' }
15
+ },
16
+ user_email: {
17
+ type: 'string',
18
+ required: false,
19
+ description: 'The user email address',
20
+ label: 'Email address',
21
+ default: {
22
+ '@if': {
23
+ exists: { '@path': '$.properties.email' },
24
+ then: { '@path': '$.properties.email' },
25
+ else: { '@path': '$.context.traits.email' }
26
+ }
27
+ }
28
+ },
29
+ user_created_at: {
30
+ type: 'string',
31
+ required: false,
32
+ description: 'The timestamp when the user was created',
33
+ label: 'Created at',
34
+ default: {
35
+ '@if': {
36
+ exists: { '@path': '$.properties.created_at' },
37
+ then: { '@path': '$.properties.created_at' },
38
+ else: { '@path': '$.context.traits.created_at' }
39
+ }
40
+ }
41
+ },
42
+ page_name: {
43
+ type: 'string',
44
+ required: false,
45
+ description: 'The name of the page',
46
+ label: 'Page Name',
47
+ default: { '@path': '$.properties.name' }
48
+ },
49
+ ...common_definitions_1.commonFields
50
+ },
51
+ perform: (request, { payload, settings }) => {
52
+ const resolvedPayload = request_params_1.resolveRequestPayload(settings, payload);
53
+ const { url, options } = request_params_1.eventRequestParams(settings, resolvedPayload, 'pageview');
54
+ return request(url, options);
55
+ }
56
+ };
57
+ exports.default = action;
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../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,EAAE,EAAE,EAAE;QAE1C,MAAM,eAAe,GAAG,sCAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QAGhE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,mCAAkB,CAAC,QAAQ,EAAE,eAAe,EAAE,UAAU,CAAC,CAAA;QAElF,OAAO,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -62,6 +62,7 @@ const resolveRequestPayload = (settings, payload) => {
62
62
  email: payload?.user_email,
63
63
  first_name: payload?.user_first_name,
64
64
  last_name: payload?.user_last_name,
65
+ created_at: payload?.user_created_at,
65
66
  custom: payload?.user_custom_attributes
66
67
  };
67
68
  delete properties.user_id;
@@ -70,12 +71,15 @@ const resolveRequestPayload = (settings, payload) => {
70
71
  delete properties.user_first_name;
71
72
  delete properties.user_last_name;
72
73
  delete properties.user_custom_attributes;
73
- properties.company = {
74
- id: payload?.company_id,
75
- name: payload?.company_name,
76
- created_at: payload?.company_created_at,
77
- custom: payload?.company_custom_attributes
78
- };
74
+ delete properties.user_created_at;
75
+ if (payload?.company_id) {
76
+ properties.company = {
77
+ id: payload?.company_id,
78
+ name: payload?.company_name,
79
+ created_at: payload?.company_created_at,
80
+ custom: payload?.company_custom_attributes
81
+ };
82
+ }
79
83
  delete properties.company_id;
80
84
  delete properties.company_name;
81
85
  delete properties.company_created_at;
@@ -88,8 +92,8 @@ const resolveRequestPayload = (settings, payload) => {
88
92
  const { email, created_at, ...eventAttributes } = payload.event_attributes;
89
93
  properties.event_attributes = eventAttributes;
90
94
  }
91
- if (payload?.company_custom_attributes) {
92
- const { name, created_at, ...customAttributes } = payload.company_custom_attributes;
95
+ if (payload?.company && payload?.company_custom_attributes) {
96
+ const { name, created_at, company_id, ...customAttributes } = payload.company_custom_attributes;
93
97
  properties.company.custom = customAttributes;
94
98
  }
95
99
  return properties;
@@ -1 +1 @@
1
- {"version":3,"file":"request-params.js","sourceRoot":"","sources":["../../../src/destinations/usermaven/request-params.ts"],"names":[],"mappings":";;;AAEA,iCAAmC;AAEnC,MAAM,UAAU,GAAG,8BAA8B,CAAA;AAgBjD,MAAM,oBAAoB,GAAG,CAAC,QAAkB,EAAE,WAAmB,EAAiB,EAAE;IACtF,OAAO;QACL,GAAG,EAAE,GAAG,UAAU,IAAI,WAAW,UAAU,QAAQ,CAAC,OAAO,EAAE;QAC7D,OAAO,EAAE;YACP,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAQM,MAAM,kBAAkB,GAAG,CAChC,QAAkB,EAClB,OAAiC,EACjC,SAAkB,EACH,EAAE;IACjB,MAAM,cAAc,GAAG,oBAAoB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAA;IAErE,OAAO;QACL,GAAG,cAAc;QACjB,OAAO,EAAE;YACP,GAAG,cAAc,CAAC,OAAO;YACzB,IAAI,EAAE;gBACJ,GAAG,OAAO;gBACV,UAAU,EAAE,SAAS,IAAI,OAAO,EAAE,UAAU;aAC7C;SACF;KACF,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,kBAAkB,sBAiB9B;AAOM,MAAM,qBAAqB,GAAG,CAAC,QAAkB,EAAE,OAA4B,EAAO,EAAE;IAC7F,MAAM,UAAU,GAAQ;QACtB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,EAAE;QACP,YAAY,EAAE,OAAO;QACrB,GAAG,EAAE,mBAAmB;QACxB,GAAG,OAAO;KACX,CAAA;IAGD,IAAI,OAAO,CAAC,GAAG,EAAE;QACf,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAa,CAAC,CAAA;QAC1C,UAAU,CAAC,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAA;KAC/B;IAGD,IAAI,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MA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OAAO,EAAE,UAAU,EAAE;QACvB,UAAU,CAAC,OAAO,GAAG;YACnB,EAAE,EAAE,OAAO,EAAE,UAAU;YACvB,IAAI,EAAE,OAAO,EAAE,YAAY;YAC3B,UAAU,EAAE,OAAO,EAAE,kBAAkB;YACvC,MAAM,EAAE,OAAO,EAAE,yBAAyB;SAC3C,CAAA;KACF;IAGD,OAAO,UAAU,CAAC,UAAU,CAAA;IAC5B,OAAO,UAAU,CAAC,YAAY,CAAA;IAC9B,OAAO,UAAU,CAAC,kBAAkB,CAAA;IACpC,OAAO,UAAU,CAAC,yBAAyB,CAAA;IAG3C,IAAI,OAAO,EAAE,sBAAsB,EAAE;QAEnC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAA;QACxG,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAA;KAC1C;IAGD,IAAI,OAAO,EAAE,gBAAgB,EAAE;QAE7B,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,eAAe,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAA;QAC1E,UAAU,CAAC,gBAAgB,GAAG,eAAe,CAAA;KAC9C;IAGD,IAAI,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,yBAAyB,EAAE;QAE1D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAA;QAC/F,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,gBAAgB,CAAA;KAC7C;IAED,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAlGY,QAAA,qBAAqB,yBAkGjC"}
@@ -6,7 +6,7 @@ export interface Payload {
6
6
  user_id?: string;
7
7
  user_email?: string;
8
8
  user_created_at?: string;
9
- user_anonymous_Id?: string | null;
9
+ user_anonymous_id?: string | null;
10
10
  event_id?: string;
11
11
  doc_path?: string;
12
12
  doc_search?: string;
@@ -0,0 +1,4 @@
1
+ /// <reference types="node" />
2
+ import aws4 from 'aws4';
3
+ declare function generateS3RequestOptions(bucketName: string, region: string, path: string, method: string, body: string | Buffer, accessKeyId: string, secretAccessKey: string): Promise<aws4.Request>;
4
+ export default generateS3RequestOptions;
@@ -0,0 +1,21 @@
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 aws4_1 = __importDefault(require("aws4"));
7
+ async function generateS3RequestOptions(bucketName, region, path, method, body, accessKeyId, secretAccessKey) {
8
+ const opts = {
9
+ host: `${bucketName}.s3.amazonaws.com`,
10
+ path,
11
+ body,
12
+ method,
13
+ region
14
+ };
15
+ return aws4_1.default.sign(opts, {
16
+ accessKeyId,
17
+ secretAccessKey
18
+ });
19
+ }
20
+ exports.default = generateS3RequestOptions;
21
+ //# sourceMappingURL=s3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.js","sourceRoot":"","sources":["../../../src/lib/AWS/s3.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AAEvB,KAAK,UAAU,wBAAwB,CACrC,UAAkB,EAClB,MAAc,EACd,IAAY,EACZ,MAAc,EACd,IAAqB,EACrB,WAAmB,EACnB,eAAuB;IAEvB,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,GAAG,UAAU,mBAAmB;QACtC,IAAI;QACJ,IAAI;QACJ,MAAM;QACN,MAAM;KACP,CAAA;IACD,OAAO,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACrB,WAAW;QACX,eAAe;KAChB,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,wBAAwB,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.162.0",
4
+ "version": "3.163.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -68,5 +68,5 @@
68
68
  "lcov"
69
69
  ]
70
70
  },
71
- "gitHead": "391e3be6195dc43f5d091c23d1602a150923a985"
71
+ "gitHead": "48e8b11782937a5a0391e074c7b6a1128a966746"
72
72
  }