@segment/action-destinations 3.115.1-alpha.3 → 3.115.1-stat-before-clone.3

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 (56) hide show
  1. package/dist/destinations/amplitude/user-agent.js +2 -2
  2. package/dist/destinations/amplitude/user-agent.js.map +1 -1
  3. package/dist/destinations/index.js +1 -0
  4. package/dist/destinations/index.js.map +1 -1
  5. package/dist/destinations/segment/errors.d.ts +3 -0
  6. package/dist/destinations/segment/errors.js +7 -0
  7. package/dist/destinations/segment/errors.js.map +1 -0
  8. package/dist/destinations/segment/generated-types.d.ts +4 -0
  9. package/dist/destinations/segment/generated-types.js +3 -0
  10. package/dist/destinations/segment/generated-types.js.map +1 -0
  11. package/dist/destinations/segment/index.d.ts +4 -0
  12. package/dist/destinations/segment/index.js +58 -0
  13. package/dist/destinations/segment/index.js.map +1 -0
  14. package/dist/destinations/segment/properties.d.ts +10 -0
  15. package/dist/destinations/segment/properties.js +17 -0
  16. package/dist/destinations/segment/properties.js.map +1 -0
  17. package/dist/destinations/segment/segment-properties.d.ts +23 -0
  18. package/dist/destinations/segment/segment-properties.js +322 -0
  19. package/dist/destinations/segment/segment-properties.js.map +1 -0
  20. package/dist/destinations/segment/sendGroup/generated-types.d.ts +65 -0
  21. package/dist/destinations/segment/sendGroup/generated-types.js +3 -0
  22. package/dist/destinations/segment/sendGroup/generated-types.js.map +1 -0
  23. package/dist/destinations/segment/sendGroup/index.d.ts +5 -0
  24. package/dist/destinations/segment/sendGroup/index.js +67 -0
  25. package/dist/destinations/segment/sendGroup/index.js.map +1 -0
  26. package/dist/destinations/segment/sendIdentify/generated-types.d.ts +65 -0
  27. package/dist/destinations/segment/sendIdentify/generated-types.js +3 -0
  28. package/dist/destinations/segment/sendIdentify/generated-types.js.map +1 -0
  29. package/dist/destinations/segment/sendIdentify/index.d.ts +5 -0
  30. package/dist/destinations/segment/sendIdentify/index.js +67 -0
  31. package/dist/destinations/segment/sendIdentify/index.js.map +1 -0
  32. package/dist/destinations/segment/sendPage/generated-types.d.ts +67 -0
  33. package/dist/destinations/segment/sendPage/generated-types.js +3 -0
  34. package/dist/destinations/segment/sendPage/generated-types.js.map +1 -0
  35. package/dist/destinations/segment/sendPage/index.d.ts +5 -0
  36. package/dist/destinations/segment/sendPage/index.js +77 -0
  37. package/dist/destinations/segment/sendPage/index.js.map +1 -0
  38. package/dist/destinations/segment/sendScreen/generated-types.d.ts +66 -0
  39. package/dist/destinations/segment/sendScreen/generated-types.js +3 -0
  40. package/dist/destinations/segment/sendScreen/generated-types.js.map +1 -0
  41. package/dist/destinations/segment/sendScreen/index.d.ts +5 -0
  42. package/dist/destinations/segment/sendScreen/index.js +69 -0
  43. package/dist/destinations/segment/sendScreen/index.js.map +1 -0
  44. package/dist/destinations/segment/sendTrack/generated-types.d.ts +66 -0
  45. package/dist/destinations/segment/sendTrack/generated-types.js +3 -0
  46. package/dist/destinations/segment/sendTrack/generated-types.js.map +1 -0
  47. package/dist/destinations/segment/sendTrack/index.d.ts +5 -0
  48. package/dist/destinations/segment/sendTrack/index.js +69 -0
  49. package/dist/destinations/segment/sendTrack/index.js.map +1 -0
  50. package/dist/destinations/snap-conversions-api/_tests_/index.test.js +0 -123
  51. package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
  52. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js +2 -8
  53. package/dist/destinations/snap-conversions-api/reportConversionEvent/index.js.map +1 -1
  54. package/dist/destinations/snap-conversions-api/snap-capi-properties.js +5 -5
  55. package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
  56. package/package.json +4 -4
@@ -14,8 +14,8 @@ function parseUserAgentProperties(userAgent) {
14
14
  const os = parser.getOS();
15
15
  const browser = parser.getBrowser();
16
16
  return {
17
- os_name: browser.name ?? os.name,
18
- os_version: browser.major ?? os.version,
17
+ os_name: os.name ?? browser.name,
18
+ os_version: os.version ?? browser.major,
19
19
  device_model: device.model ?? os.name,
20
20
  device_type: device.type
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"user-agent.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/user-agent.ts"],"names":[],"mappings":";;;;;;AAAA,2EAA8C;AAS9C,SAAgB,wBAAwB,CAAC,SAAkB;IACzD,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,EAAE,CAAA;KACV;IAGD,MAAM,MAAM,GAAG,IAAI,sBAAQ,CAAC,SAAS,CAAC,CAAA;IAEtC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAA;IAEjC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;IAEzB,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;IAEnC,OAAO;QACL,OAAO,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI;QAChC,UAAU,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,OAAO;QACvC,YAAY,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI;QACrC,WAAW,EAAE,MAAM,CAAC,IAAI;KACzB,CAAA;AACH,CAAC;AApBD,4DAoBC"}
1
+ {"version":3,"file":"user-agent.js","sourceRoot":"","sources":["../../../src/destinations/amplitude/user-agent.ts"],"names":[],"mappings":";;;;;;AAAA,2EAA8C;AAS9C,SAAgB,wBAAwB,CAAC,SAAkB;IACzD,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,EAAE,CAAA;KACV;IAGD,MAAM,MAAM,GAAG,IAAI,sBAAQ,CAAC,SAAS,CAAC,CAAA;IAEtC,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAA;IAEjC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;IAEzB,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;IAEnC,OAAO;QACL,OAAO,EAAE,EAAE,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI;QAChC,UAAU,EAAE,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK;QACvC,YAAY,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI;QACrC,WAAW,EAAE,MAAM,CAAC,IAAI;KACzB,CAAA;AACH,CAAC;AApBD,4DAoBC"}
@@ -67,6 +67,7 @@ register('61dc4e96894a6d7954cc6e45', './voyage');
67
67
  register('62ded0cf5753c743883ca0f3', './intercom');
68
68
  register('631a6f32946dd8197e9cab66', './sendgrid');
69
69
  register('632b1116e0cb83902f3fd717', './hubspot');
70
+ register('6371eee1ae5e324869aa8b1b', './segment');
70
71
  function register(id, destinationPath) {
71
72
  const definition = require(destinationPath).default;
72
73
  const resolvedPath = require.resolve(destinationPath);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/destinations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAAmD;AACnD,gDAAuB;AAWV,QAAA,YAAY,GAA0C,EAAE,CAAA;AACxD,QAAA,QAAQ,GAAsC,EAAE,CAAA;AAU7D,QAAQ,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAA;AAChD,QAAQ,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,CAAA;AACtD,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAA;AACjD,QAAQ,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,CAAA;AAC1D,QAAQ,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAA;AACpD,QAAQ,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AACnE,QAAQ,CAAC,0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ACZ;IAED,OAAO,WAAW,CAAA;AACpB,CAAC;AAED,KAAK,UAAU,uBAAuB,CAAC,GAAW;IAChD,MAAM,WAAW,GAAG,oBAAY,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAA;IAExE,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAA;KACZ;IAGD,OAAO,IAAI,0BAAW,CAAC,WAAyC,CAAC,CAAA;AACnE,CAAC;AAED,SAAgB,kBAAkB,CAAC,EAAU;IAC3C,MAAM,WAAW,GAAG,gBAAQ,CAAC,EAAE,CAAC,CAAA;IAEhC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE;QAC5B,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,IAAI,0BAAW,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AARD,gDAQC;AAEM,KAAK,UAAU,uBAAuB,CAAC,WAAmB;IAC/D,OAAO,kBAAkB,CAAC,WAAW,CAAC,IAAI,uBAAuB,CAAC,WAAW,CAAC,CAAA;AAChF,CAAC;AAFD,0DAEC"}
@@ -0,0 +1,3 @@
1
+ import { IntegrationError } from '@segment/actions-core';
2
+ export declare const MissingUserOrAnonymousIdThrowableError: IntegrationError;
3
+ export declare const InvalidEndpointSelectedThrowableError: IntegrationError;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidEndpointSelectedThrowableError = exports.MissingUserOrAnonymousIdThrowableError = void 0;
4
+ const actions_core_1 = require("@segment/actions-core");
5
+ exports.MissingUserOrAnonymousIdThrowableError = new actions_core_1.IntegrationError('Either `Anonymous ID` or `User ID` must be defined.', 'Missing Required Field', 400);
6
+ exports.InvalidEndpointSelectedThrowableError = new actions_core_1.IntegrationError('A valid endpoint must be selected. Please check your Segment settings.', 'Misconfigured Endpoint', 400);
7
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AAE3C,QAAA,sCAAsC,GAAG,IAAI,+BAAgB,CACxE,qDAAqD,EACrD,wBAAwB,EACxB,GAAG,CACJ,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,+BAAgB,CACvE,wEAAwE,EACxE,wBAAwB,EACxB,GAAG,CACJ,CAAA"}
@@ -0,0 +1,4 @@
1
+ export interface Settings {
2
+ source_write_key: string;
3
+ endpoint?: 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/segment/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,58 @@
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 sendIdentify_1 = __importDefault(require("./sendIdentify"));
7
+ const sendGroup_1 = __importDefault(require("./sendGroup"));
8
+ const sendScreen_1 = __importDefault(require("./sendScreen"));
9
+ const sendPage_1 = __importDefault(require("./sendPage"));
10
+ const sendTrack_1 = __importDefault(require("./sendTrack"));
11
+ const properties_1 = require("./properties");
12
+ const destination = {
13
+ name: 'Segment',
14
+ slug: 'actions-segment',
15
+ mode: 'cloud',
16
+ authentication: {
17
+ scheme: 'custom',
18
+ fields: {
19
+ source_write_key: {
20
+ label: 'Source Write Key',
21
+ description: 'The **Write Key** of a Segment source.',
22
+ type: 'string',
23
+ required: true
24
+ },
25
+ endpoint: {
26
+ label: 'Endpoint Region',
27
+ description: 'The region to send your data.',
28
+ type: 'string',
29
+ format: 'text',
30
+ choices: Object.keys(properties_1.SEGMENT_ENDPOINTS).map((key) => ({
31
+ label: properties_1.SEGMENT_ENDPOINTS[key].label,
32
+ value: key
33
+ })),
34
+ default: properties_1.DEFAULT_SEGMENT_ENDPOINT
35
+ }
36
+ },
37
+ testAuthentication: async (request, { settings }) => {
38
+ const { source_write_key, endpoint } = settings;
39
+ return request(`${properties_1.SEGMENT_ENDPOINTS[endpoint || properties_1.DEFAULT_SEGMENT_ENDPOINT].cdn}/projects/${source_write_key}/settings`);
40
+ }
41
+ },
42
+ extendRequest({ settings }) {
43
+ return {
44
+ headers: {
45
+ authorization: `Basic ${Buffer.from(settings.source_write_key + ':').toString('base64')}`
46
+ }
47
+ };
48
+ },
49
+ actions: {
50
+ sendIdentify: sendIdentify_1.default,
51
+ sendGroup: sendGroup_1.default,
52
+ sendScreen: sendScreen_1.default,
53
+ sendPage: sendPage_1.default,
54
+ sendTrack: sendTrack_1.default
55
+ }
56
+ };
57
+ exports.default = destination;
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment/index.ts"],"names":[],"mappings":";;;;;AAGA,kEAAyC;AACzC,4DAAmC;AACnC,8DAAqC;AACrC,0DAAiC;AACjC,4DAAmC;AAEnC,6CAA0E;AAE1E,MAAM,WAAW,GAAoC;IAEnD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,gBAAgB,EAAE;gBAChB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,wCAAwC;gBACrD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;aAClC;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAA;YAE/C,OAAO,OAAO,CACZ,GAAG,8BAAiB,CAAC,QAAQ,IAAI,qCAAwB,CAAC,CAAC,GAAG,aAAa,gBAAgB,WAAW,CACvG,CAAA;QACH,CAAC;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;aAC1F;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;QACZ,SAAS,EAAT,mBAAS;QACT,UAAU,EAAV,oBAAU;QACV,QAAQ,EAAR,kBAAQ;QACR,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,10 @@
1
+ interface SegmentEndpoint {
2
+ label: string;
3
+ url: string;
4
+ cdn: string;
5
+ }
6
+ export declare const SEGMENT_ENDPOINTS: {
7
+ [key: string]: SegmentEndpoint;
8
+ };
9
+ export declare const DEFAULT_SEGMENT_ENDPOINT = "north_america";
10
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SEGMENT_ENDPOINT = exports.SEGMENT_ENDPOINTS = void 0;
4
+ exports.SEGMENT_ENDPOINTS = {
5
+ north_america: {
6
+ label: 'North America',
7
+ url: 'https://api.segment.io/v1',
8
+ cdn: 'https://cdn.segment.com/v1'
9
+ },
10
+ europe: {
11
+ label: 'Europe',
12
+ url: 'https://events.eu1.segmentapis.com/v1',
13
+ cdn: 'https://cdn.segment.com/v1'
14
+ }
15
+ };
16
+ exports.DEFAULT_SEGMENT_ENDPOINT = 'north_america';
17
+ //# sourceMappingURL=properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment/properties.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAuC;IACnE,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;KAClC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;KAClC;CACF,CAAA;AAEY,QAAA,wBAAwB,GAAG,eAAe,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { InputField } from '@segment/actions-core/src/destination-kit/types';
2
+ export declare const user_id: InputField;
3
+ export declare const anonymous_id: InputField;
4
+ export declare const timestamp: InputField;
5
+ export declare const page_name: InputField;
6
+ export declare const screen_name: InputField;
7
+ export declare const event_name: InputField;
8
+ export declare const page_category: InputField;
9
+ export declare const application: InputField;
10
+ export declare const campaign_parameters: InputField;
11
+ export declare const device: InputField;
12
+ export declare const ip_address: InputField;
13
+ export declare const locale: InputField;
14
+ export declare const location: InputField;
15
+ export declare const network: InputField;
16
+ export declare const operating_system: InputField;
17
+ export declare const page: InputField;
18
+ export declare const screen: InputField;
19
+ export declare const user_agent: InputField;
20
+ export declare const timezone: InputField;
21
+ export declare const group_id: InputField;
22
+ export declare const properties: InputField;
23
+ export declare const traits: InputField;
@@ -0,0 +1,322 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.traits = exports.properties = exports.group_id = exports.timezone = exports.user_agent = exports.screen = exports.page = exports.operating_system = exports.network = exports.location = exports.locale = exports.ip_address = exports.device = exports.campaign_parameters = exports.application = exports.page_category = exports.event_name = exports.screen_name = exports.page_name = exports.timestamp = exports.anonymous_id = exports.user_id = void 0;
4
+ exports.user_id = {
5
+ label: 'User ID',
6
+ description: 'Unique identifier for the user in your database. A userId or an anonymousId is required.',
7
+ type: 'string'
8
+ };
9
+ exports.anonymous_id = {
10
+ label: 'Anonymous ID',
11
+ description: 'A pseudo-unique substitute for a User ID, for cases when you don’t have an absolutely unique identifier. A userId or an anonymousId is required.',
12
+ type: 'string'
13
+ };
14
+ exports.timestamp = {
15
+ label: 'Timestamp',
16
+ description: 'Timestamp when the message itself took place as a ISO-8601 format date string. Defaults to current time if not provided.',
17
+ type: 'string'
18
+ };
19
+ exports.page_name = {
20
+ label: 'Page Name',
21
+ description: 'Name of the page that was viewed.',
22
+ type: 'string'
23
+ };
24
+ exports.screen_name = {
25
+ label: 'Screen Name',
26
+ description: 'Name of the screen that was viewed.',
27
+ type: 'string'
28
+ };
29
+ exports.event_name = {
30
+ label: 'Event Name',
31
+ description: 'Name of the action that a user has performed.',
32
+ type: 'string'
33
+ };
34
+ exports.page_category = {
35
+ label: 'Page Category',
36
+ description: 'Category of the page that was viewed.',
37
+ type: 'string'
38
+ };
39
+ exports.application = {
40
+ label: 'Application',
41
+ description: 'Dictionary of information about the current application.',
42
+ type: 'object',
43
+ defaultObjectUI: 'object',
44
+ properties: {
45
+ name: {
46
+ label: 'Name',
47
+ description: 'The app name.',
48
+ type: 'string'
49
+ },
50
+ version: {
51
+ label: 'Version',
52
+ description: 'The app version.',
53
+ type: 'string'
54
+ },
55
+ build: {
56
+ label: 'Build',
57
+ description: 'The app build.',
58
+ type: 'string'
59
+ },
60
+ namespace: {
61
+ label: 'Namespace',
62
+ description: 'The app namespace.',
63
+ type: 'string'
64
+ }
65
+ }
66
+ };
67
+ exports.campaign_parameters = {
68
+ label: 'Campaign Parameters',
69
+ description: 'Dictionary of information about the campaign that resulted in the API call. This maps directly to the common UTM campaign parameters.',
70
+ type: 'object',
71
+ defaultObjectUI: 'object',
72
+ properties: {
73
+ name: {
74
+ label: 'Name',
75
+ description: 'The campaign name.',
76
+ type: 'string'
77
+ },
78
+ source: {
79
+ label: 'Source',
80
+ description: 'The campaign source.',
81
+ type: 'string'
82
+ },
83
+ medium: {
84
+ label: 'Medium',
85
+ description: 'The campaign medium.',
86
+ type: 'string'
87
+ },
88
+ term: {
89
+ label: 'Term',
90
+ description: 'The campaign term.',
91
+ type: 'string'
92
+ },
93
+ content: {
94
+ label: 'Content',
95
+ description: 'The campaign content.',
96
+ type: 'string'
97
+ }
98
+ }
99
+ };
100
+ exports.device = {
101
+ label: 'Device',
102
+ description: 'Dictionary of information about the device the API call originated from.',
103
+ type: 'object',
104
+ defaultObjectUI: 'object',
105
+ properties: {
106
+ id: {
107
+ label: 'ID',
108
+ description: 'The device ID.',
109
+ type: 'string'
110
+ },
111
+ advertising_id: {
112
+ label: 'Advertising ID',
113
+ description: 'The device Advertising ID.',
114
+ type: 'string'
115
+ },
116
+ adTracking_Enabled: {
117
+ label: 'Ad Tracking Enabled',
118
+ description: 'Whether or not ad tracking is enabled.',
119
+ type: 'boolean'
120
+ },
121
+ manufacturer: {
122
+ label: 'Manufacturer',
123
+ description: 'The device manufacturer.',
124
+ type: 'string'
125
+ },
126
+ model: {
127
+ label: 'Model',
128
+ description: 'The device model.',
129
+ type: 'string'
130
+ },
131
+ name: {
132
+ label: 'Name',
133
+ description: 'The device name.',
134
+ type: 'string'
135
+ },
136
+ type: {
137
+ label: 'Type',
138
+ description: 'The device type.',
139
+ type: 'string'
140
+ },
141
+ token: {
142
+ label: 'Token',
143
+ description: 'The device token.',
144
+ type: 'string'
145
+ }
146
+ }
147
+ };
148
+ exports.ip_address = {
149
+ label: 'IP Address',
150
+ description: 'The current user’s IP address.',
151
+ type: 'string'
152
+ };
153
+ exports.locale = {
154
+ label: 'Locale',
155
+ description: 'Locale string for the current user, for example en-US.',
156
+ type: 'string'
157
+ };
158
+ exports.location = {
159
+ label: 'Location',
160
+ description: 'Dictionary of information about the user’s current location.',
161
+ type: 'object',
162
+ defaultObjectUI: 'object',
163
+ properties: {
164
+ city: {
165
+ label: 'City',
166
+ description: "The user's city",
167
+ type: 'string'
168
+ },
169
+ country: {
170
+ label: 'Country',
171
+ description: "The user's country",
172
+ type: 'string'
173
+ },
174
+ latitude: {
175
+ label: 'Latitude',
176
+ description: "The user's latitude",
177
+ type: 'number'
178
+ },
179
+ longitude: {
180
+ label: 'Longitude',
181
+ description: "The user's longitude",
182
+ type: 'number'
183
+ },
184
+ speed: {
185
+ label: 'Speed',
186
+ description: "The user's speed",
187
+ type: 'number'
188
+ }
189
+ }
190
+ };
191
+ exports.network = {
192
+ label: 'Network',
193
+ description: 'Dictionary of information about the current network connection.',
194
+ type: 'object',
195
+ defaultObjectUI: 'object',
196
+ properties: {
197
+ bluetooth: {
198
+ label: 'Bluetooth',
199
+ description: 'Whether or not bluetooth is enabled.',
200
+ type: 'boolean'
201
+ },
202
+ carrier: {
203
+ label: 'Carrier',
204
+ description: 'The network carrier.',
205
+ type: 'string'
206
+ },
207
+ cellular: {
208
+ label: 'Cellular',
209
+ description: 'Whether or not cellular data is enabled.',
210
+ type: 'boolean'
211
+ },
212
+ wifi: {
213
+ label: 'WiFi',
214
+ description: 'Whether or not WiFi is enabled.',
215
+ type: 'boolean'
216
+ }
217
+ }
218
+ };
219
+ exports.operating_system = {
220
+ label: 'Operating System',
221
+ description: 'Dictionary of information about the operating system.',
222
+ type: 'object',
223
+ defaultObjectUI: 'object',
224
+ properties: {
225
+ name: {
226
+ label: 'Name',
227
+ description: 'The operating system name.',
228
+ type: 'string'
229
+ },
230
+ version: {
231
+ label: 'Version',
232
+ description: 'The operating system version.',
233
+ type: 'string'
234
+ }
235
+ }
236
+ };
237
+ exports.page = {
238
+ label: 'Page',
239
+ description: 'Dictionary of information about the current page in the browser.',
240
+ type: 'object',
241
+ defaultObjectUI: 'object',
242
+ properties: {
243
+ path: {
244
+ label: 'Path',
245
+ description: 'The page path.',
246
+ type: 'string'
247
+ },
248
+ referrer: {
249
+ label: 'Referrer',
250
+ description: 'The page referrer.',
251
+ type: 'string'
252
+ },
253
+ search: {
254
+ label: 'Search',
255
+ description: 'The page search query.',
256
+ type: 'string'
257
+ },
258
+ title: {
259
+ label: 'Title',
260
+ description: 'The page title.',
261
+ type: 'string'
262
+ },
263
+ url: {
264
+ label: 'URL',
265
+ description: 'The page URL.',
266
+ type: 'string'
267
+ }
268
+ }
269
+ };
270
+ exports.screen = {
271
+ label: 'Screen',
272
+ description: 'Dictionary of information about the device’s screen.',
273
+ type: 'object',
274
+ defaultObjectUI: 'object',
275
+ properties: {
276
+ density: {
277
+ label: 'Density',
278
+ description: 'The screen density.',
279
+ type: 'number'
280
+ },
281
+ height: {
282
+ label: 'Height',
283
+ description: 'The screen height.',
284
+ type: 'number'
285
+ },
286
+ width: {
287
+ label: 'Width',
288
+ description: 'The screen width.',
289
+ type: 'number'
290
+ }
291
+ }
292
+ };
293
+ exports.user_agent = {
294
+ label: 'User Agent',
295
+ description: 'User agent of the device the API call originated from.',
296
+ type: 'string'
297
+ };
298
+ exports.timezone = {
299
+ label: 'Timezone',
300
+ description: 'The user’s timezone as a tz database string, for example America/New_York.',
301
+ type: 'string'
302
+ };
303
+ exports.group_id = {
304
+ label: 'Group ID',
305
+ description: 'The group or account ID a user is associated with.',
306
+ type: 'string'
307
+ };
308
+ exports.properties = {
309
+ label: 'Properties',
310
+ description: 'Free-form dictionary of properties that describe the screen.',
311
+ type: 'object',
312
+ defaultObjectUI: 'object',
313
+ additionalProperties: true
314
+ };
315
+ exports.traits = {
316
+ label: 'Traits',
317
+ description: 'Free-form dictionary of traits that describe the user or group of users.',
318
+ type: 'object',
319
+ defaultObjectUI: 'keyvalue',
320
+ additionalProperties: true
321
+ };
322
+ //# sourceMappingURL=segment-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segment-properties.js","sourceRoot":"","sources":["../../../src/destinations/segment/segment-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,kJAAkJ;IACpJ,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EACT,0HAA0H;IAC5H,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,qCAAqC;IAClD,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,aAAa,GAAe;IACvC,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,0DAA0D;IACvE,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,QAAQ;IACzB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,QAAQ;SACf;QACD,OAAO,EAAE;YACP,KAAK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;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,UAAU,GAAe;IACpC,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,8DAA8D;IAC3E,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,QAAQ;IACzB,oBAAoB,EAAE,IAAI;CAC3B,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;IAC3B,oBAAoB,EAAE,IAAI;CAC3B,CAAA"}
@@ -0,0 +1,65 @@
1
+ export interface Payload {
2
+ user_id?: string;
3
+ anonymous_id?: string;
4
+ group_id: string;
5
+ timestamp?: string;
6
+ application?: {
7
+ name?: string;
8
+ version?: string;
9
+ build?: string;
10
+ namespace?: string;
11
+ };
12
+ campaign_parameters?: {
13
+ name?: string;
14
+ source?: string;
15
+ medium?: string;
16
+ term?: string;
17
+ content?: string;
18
+ };
19
+ device?: {
20
+ id?: string;
21
+ advertising_id?: string;
22
+ adTracking_Enabled?: boolean;
23
+ manufacturer?: string;
24
+ model?: string;
25
+ name?: string;
26
+ type?: string;
27
+ token?: string;
28
+ };
29
+ ip_address?: string;
30
+ locale?: string;
31
+ location?: {
32
+ city?: string;
33
+ country?: string;
34
+ latitude?: number;
35
+ longitude?: number;
36
+ speed?: number;
37
+ };
38
+ network?: {
39
+ bluetooth?: boolean;
40
+ carrier?: string;
41
+ cellular?: boolean;
42
+ wifi?: boolean;
43
+ };
44
+ operating_system?: {
45
+ name?: string;
46
+ version?: string;
47
+ };
48
+ page?: {
49
+ path?: string;
50
+ referrer?: string;
51
+ search?: string;
52
+ title?: string;
53
+ url?: string;
54
+ };
55
+ screen?: {
56
+ density?: number;
57
+ height?: number;
58
+ width?: number;
59
+ };
60
+ user_agent?: string;
61
+ timezone?: string;
62
+ traits?: {
63
+ [k: string]: unknown;
64
+ };
65
+ }
@@ -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/segment/sendGroup/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
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;