@segment/analytics-browser-actions-1flow 1.1.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.
- package/README.md +31 -0
- package/dist/cjs/1flow.d.ts +3 -0
- package/dist/cjs/1flow.js +23 -0
- package/dist/cjs/1flow.js.map +1 -0
- package/dist/cjs/api.d.ts +9 -0
- package/dist/cjs/api.js +3 -0
- package/dist/cjs/api.js.map +1 -0
- package/dist/cjs/generated-types.d.ts +3 -0
- package/dist/cjs/generated-types.js +3 -0
- package/dist/cjs/generated-types.js.map +1 -0
- package/dist/cjs/identifyUser/generated-types.d.ts +11 -0
- package/dist/cjs/identifyUser/generated-types.js +3 -0
- package/dist/cjs/identifyUser/generated-types.js.map +1 -0
- package/dist/cjs/identifyUser/index.d.ts +6 -0
- package/dist/cjs/identifyUser/index.js +86 -0
- package/dist/cjs/identifyUser/index.js.map +1 -0
- package/dist/cjs/index.d.ts +11 -0
- package/dist/cjs/index.js +51 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/trackEvent/generated-types.d.ts +8 -0
- package/dist/cjs/trackEvent/generated-types.js +3 -0
- package/dist/cjs/trackEvent/generated-types.js.map +1 -0
- package/dist/cjs/trackEvent/index.d.ts +6 -0
- package/dist/cjs/trackEvent/index.js +56 -0
- package/dist/cjs/trackEvent/index.js.map +1 -0
- package/dist/esm/1flow.d.ts +3 -0
- package/dist/esm/1flow.js +19 -0
- package/dist/esm/1flow.js.map +1 -0
- package/dist/esm/api.d.ts +9 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/api.js.map +1 -0
- package/dist/esm/generated-types.d.ts +3 -0
- package/dist/esm/generated-types.js +2 -0
- package/dist/esm/generated-types.js.map +1 -0
- package/dist/esm/identifyUser/generated-types.d.ts +11 -0
- package/dist/esm/identifyUser/generated-types.js +2 -0
- package/dist/esm/identifyUser/generated-types.js.map +1 -0
- package/dist/esm/identifyUser/index.d.ts +6 -0
- package/dist/esm/identifyUser/index.js +84 -0
- package/dist/esm/identifyUser/index.js.map +1 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/trackEvent/generated-types.d.ts +8 -0
- package/dist/esm/trackEvent/generated-types.js +2 -0
- package/dist/esm/trackEvent/generated-types.js.map +1 -0
- package/dist/esm/trackEvent/index.d.ts +6 -0
- package/dist/esm/trackEvent/index.js +54 -0
- package/dist/esm/trackEvent/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +25 -0
- package/src/1flow.ts +22 -0
- package/src/__tests__/index.test.ts +14 -0
- package/src/api.ts +11 -0
- package/src/generated-types.ts +8 -0
- package/src/identifyUser/__tests__/index.test.ts +14 -0
- package/src/identifyUser/generated-types.ts +34 -0
- package/src/identifyUser/index.ts +90 -0
- package/src/index.ts +58 -0
- package/src/trackEvent/__tests__/index.test.ts +14 -0
- package/src/trackEvent/generated-types.ts +22 -0
- package/src/trackEvent/index.ts +59 -0
- package/tsconfig.json +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @segment/analytics-browser-actions-1flow
|
|
2
|
+
|
|
3
|
+
The 1Flow browser action destination for use with @segment/analytics-next.
|
|
4
|
+
|
|
5
|
+
## License
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2023 Segment
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
## Contributing
|
|
30
|
+
|
|
31
|
+
All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initScript = void 0;
|
|
4
|
+
function initScript({ projectApiKey }) {
|
|
5
|
+
const apiKey = projectApiKey;
|
|
6
|
+
const autoURLTracking = false;
|
|
7
|
+
(function (w, o, s, t, k, a, r) {
|
|
8
|
+
;
|
|
9
|
+
(w._1flow = function (e, d, v) {
|
|
10
|
+
s(function () {
|
|
11
|
+
w._1flow(e, d, !v ? {} : v);
|
|
12
|
+
}, 5);
|
|
13
|
+
}),
|
|
14
|
+
(a = o.getElementsByTagName('head')[0]);
|
|
15
|
+
r = o.createElement('script');
|
|
16
|
+
r.async = 1;
|
|
17
|
+
r.setAttribute('data-api-key', k);
|
|
18
|
+
r.src = t;
|
|
19
|
+
a.appendChild(r);
|
|
20
|
+
})(window, document, setTimeout, 'https://cdn-development.1flow.ai/js-sdk/1flow.js', apiKey);
|
|
21
|
+
}
|
|
22
|
+
exports.initScript = initScript;
|
|
23
|
+
//# sourceMappingURL=1flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1flow.js","sourceRoot":"","sources":["../../src/1flow.ts"],"names":[],"mappings":";;;AAGA,SAAgB,UAAU,CAAC,EAAE,aAAa,EAAE;IAE1C,MAAM,MAAM,GAAG,aAAa,CAAA;IAE5B,MAAM,eAAe,GAAG,KAAK,CAC5B;IAAA,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QAC7B,CAAC;QAAA,CAAC,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;YAC5B,CAAC,CAAC;gBACA,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC7B,CAAC,EAAE,CAAC,CAAC,CAAA;QACP,CAAC,CAAC;YACA,CAAC,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACzC,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;QAC7B,CAAC,CAAC,KAAK,GAAG,CAAC,CAAA;QACX,CAAC,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;QACjC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;QACT,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;IAClB,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,kDAAkD,EAAE,MAAM,CAAC,CAAA;AAC9F,CAAC;AAlBD,gCAkBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare type method = 'track' | 'identify';
|
|
2
|
+
declare type _1FlowApi = {
|
|
3
|
+
richLinkProperties: string[] | undefined;
|
|
4
|
+
activator: string | undefined;
|
|
5
|
+
projectApiKey: string;
|
|
6
|
+
};
|
|
7
|
+
declare type _1FlowFunction = (method: method, ...args: unknown[]) => void;
|
|
8
|
+
export declare type _1Flow = _1FlowFunction & _1FlowApi;
|
|
9
|
+
export {};
|
package/dist/cjs/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../src/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/identifyUser/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types';
|
|
2
|
+
import { _1Flow } from '../api';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
declare const action: BrowserActionDefinition<Settings, _1Flow, Payload>;
|
|
6
|
+
export default action;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Identify User',
|
|
5
|
+
description: 'Create or update a user in 1Flow.',
|
|
6
|
+
defaultSubscription: 'type = "identify"',
|
|
7
|
+
platform: 'web',
|
|
8
|
+
fields: {
|
|
9
|
+
userId: {
|
|
10
|
+
description: 'A unique identifier for the user.',
|
|
11
|
+
label: 'User ID',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: false,
|
|
14
|
+
default: {
|
|
15
|
+
'@path': '$.userId'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
anonymousId: {
|
|
19
|
+
description: 'An anonymous identifier for the user.',
|
|
20
|
+
label: 'Anonymous ID',
|
|
21
|
+
type: 'string',
|
|
22
|
+
required: false,
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.anonymousId'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
traits: {
|
|
28
|
+
description: "The user's custom attributes.",
|
|
29
|
+
label: 'Custom Attributes',
|
|
30
|
+
type: 'object',
|
|
31
|
+
required: false,
|
|
32
|
+
defaultObjectUI: 'keyvalue',
|
|
33
|
+
default: {
|
|
34
|
+
'@path': '$.traits'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
first_name: {
|
|
38
|
+
description: "The user's first name.",
|
|
39
|
+
label: 'First Name',
|
|
40
|
+
type: 'string',
|
|
41
|
+
required: false,
|
|
42
|
+
default: {
|
|
43
|
+
'@path': '$.traits.first_name'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
last_name: {
|
|
47
|
+
description: "The user's last name.",
|
|
48
|
+
label: 'First Name',
|
|
49
|
+
type: 'string',
|
|
50
|
+
required: false,
|
|
51
|
+
default: {
|
|
52
|
+
'@path': '$.traits.last_name'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
phone: {
|
|
56
|
+
description: "The user's phone number.",
|
|
57
|
+
label: 'Phone Number',
|
|
58
|
+
type: 'string',
|
|
59
|
+
required: false,
|
|
60
|
+
default: {
|
|
61
|
+
'@path': '$.traits.phone'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
email: {
|
|
65
|
+
description: "The user's email address.",
|
|
66
|
+
label: 'Email Address',
|
|
67
|
+
type: 'string',
|
|
68
|
+
required: false,
|
|
69
|
+
default: {
|
|
70
|
+
'@path': '$.traits.email'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
perform: (_1Flow, event) => {
|
|
75
|
+
const { userId, anonymousId, traits, first_name, last_name, phone, email } = event.payload;
|
|
76
|
+
_1Flow('identify', userId, anonymousId, {
|
|
77
|
+
...traits,
|
|
78
|
+
first_name: first_name,
|
|
79
|
+
last_name: last_name,
|
|
80
|
+
phone: phone,
|
|
81
|
+
email: email
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
exports.default = action;
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identifyUser/index.ts"],"names":[],"mappings":";;AAKA,MAAM,MAAM,GAAuD;IACjE,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,mCAAmC;IAChD,mBAAmB,EAAE,mBAAmB;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,MAAM,EAAE;YACN,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,WAAW,EAAE;YACX,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,+BAA+B;YAC5C,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,eAAe,EAAE,UAAU;YAC3B,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,uBAAuB;YACpC,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,oBAAoB;aAC9B;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,0BAA0B;YACvC,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QAED,KAAK,EAAE;YACL,WAAW,EAAE,2BAA2B;YACxC,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;KACF;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QACzB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;QAC1F,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE;YACtC,GAAG,MAAM;YACT,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,KAAK;SACb,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Settings } from './generated-types';
|
|
2
|
+
import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types';
|
|
3
|
+
import { _1Flow } from './api';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
_1Flow: _1Flow;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const destination: BrowserDestinationDefinition<Settings, _1Flow>;
|
|
10
|
+
declare const _default: import("@segment/browser-destination-runtime/types").PluginFactory;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.destination = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const shim_1 = require("@segment/browser-destination-runtime/shim");
|
|
6
|
+
const trackEvent_1 = tslib_1.__importDefault(require("./trackEvent"));
|
|
7
|
+
const _1flow_1 = require("./1flow");
|
|
8
|
+
const identifyUser_1 = tslib_1.__importDefault(require("./identifyUser"));
|
|
9
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
10
|
+
exports.destination = {
|
|
11
|
+
name: '1Flow',
|
|
12
|
+
slug: 'actions-1flow',
|
|
13
|
+
mode: 'device',
|
|
14
|
+
description: 'Send analytics from Segment to 1Flow',
|
|
15
|
+
settings: {
|
|
16
|
+
projectApiKey: {
|
|
17
|
+
description: 'This is the unique app_id for your 1Flow application, serving as the identifier for data storage and retrieval. This field is mandatory.',
|
|
18
|
+
label: 'Project API Key',
|
|
19
|
+
type: 'string',
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
presets: [
|
|
24
|
+
{
|
|
25
|
+
name: 'Track Event',
|
|
26
|
+
subscribe: 'type = "track"',
|
|
27
|
+
partnerAction: 'trackEvent',
|
|
28
|
+
mapping: actions_core_1.defaultValues(trackEvent_1.default.fields),
|
|
29
|
+
type: 'automatic'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Identify User',
|
|
33
|
+
subscribe: 'type = "identify"',
|
|
34
|
+
partnerAction: 'identifyUser',
|
|
35
|
+
mapping: actions_core_1.defaultValues(identifyUser_1.default.fields),
|
|
36
|
+
type: 'automatic'
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
initialize: async ({ settings }, deps) => {
|
|
40
|
+
const projectApiKey = settings.projectApiKey;
|
|
41
|
+
_1flow_1.initScript({ projectApiKey });
|
|
42
|
+
await deps.resolveWhen(() => Object.prototype.hasOwnProperty.call(window, '_1Flow'), 100);
|
|
43
|
+
return window._1Flow;
|
|
44
|
+
},
|
|
45
|
+
actions: {
|
|
46
|
+
trackEvent: trackEvent_1.default,
|
|
47
|
+
identifyUser: identifyUser_1.default
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.default = shim_1.browserDestination(exports.destination);
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAEA,oEAA8E;AAC9E,sEAAqC;AACrC,oCAAoC;AAEpC,0EAAyC;AACzC,wDAAqD;AAOxC,QAAA,WAAW,GAAmD;IACzE,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,WAAW,EACT,0IAA0I;YAC5I,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE,4BAAa,CAAC,oBAAU,CAAC,MAAM,CAAC;YACzC,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,cAAc;YAC7B,OAAO,EAAE,4BAAa,CAAC,sBAAY,CAAC,MAAM,CAAC;YAC3C,IAAI,EAAE,WAAW;SAClB;KACF;IAED,UAAU,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE;QACvC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAA;QAC5C,mBAAU,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;QAC7B,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAA;QACzF,OAAO,MAAM,CAAC,MAAM,CAAA;IACtB,CAAC;IACD,OAAO,EAAE;QACP,UAAU,EAAV,oBAAU;QACV,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,yBAAkB,CAAC,mBAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types';
|
|
2
|
+
import { _1Flow } from '../api';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
declare const action: BrowserActionDefinition<Settings, _1Flow, Payload>;
|
|
6
|
+
export default action;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Track Event',
|
|
5
|
+
description: 'Submit an event to 1Flow.',
|
|
6
|
+
defaultSubscription: 'type = "track"',
|
|
7
|
+
platform: 'web',
|
|
8
|
+
fields: {
|
|
9
|
+
event_name: {
|
|
10
|
+
description: 'The name of the event.',
|
|
11
|
+
label: 'Event Name',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: {
|
|
15
|
+
'@path': '$.event'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
userId: {
|
|
19
|
+
description: 'A unique identifier for the user.',
|
|
20
|
+
label: 'User ID',
|
|
21
|
+
type: 'string',
|
|
22
|
+
required: false,
|
|
23
|
+
default: {
|
|
24
|
+
'@path': '$.userId'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
anonymousId: {
|
|
28
|
+
description: 'An anonymous identifier for the user.',
|
|
29
|
+
label: 'Anonymous ID',
|
|
30
|
+
type: 'string',
|
|
31
|
+
required: false,
|
|
32
|
+
default: {
|
|
33
|
+
'@path': '$.anonymousId'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
properties: {
|
|
37
|
+
description: 'Information associated with the event',
|
|
38
|
+
label: 'Event Properties',
|
|
39
|
+
type: 'object',
|
|
40
|
+
required: false,
|
|
41
|
+
default: {
|
|
42
|
+
'@path': '$.properties'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
perform: (_1Flow, event) => {
|
|
47
|
+
const { event_name, userId, anonymousId, properties } = event.payload;
|
|
48
|
+
_1Flow('track', event_name, {
|
|
49
|
+
userId: userId,
|
|
50
|
+
anonymousId: anonymousId,
|
|
51
|
+
properties: properties
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.default = action;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/trackEvent/index.ts"],"names":[],"mappings":";;AAKA,MAAM,MAAM,GAAuD;IACjE,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,2BAA2B;IACxC,mBAAmB,EAAE,gBAAgB;IACrC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,UAAU,EAAE;YACV,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,WAAW,EAAE;YACX,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE,kBAAkB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,cAAc;aACxB;SACF;KACF;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QACzB,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;QACrE,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,WAAW;YACxB,UAAU,EAAE,UAAU;SACvB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function initScript({ projectApiKey }) {
|
|
2
|
+
const apiKey = projectApiKey;
|
|
3
|
+
const autoURLTracking = false;
|
|
4
|
+
(function (w, o, s, t, k, a, r) {
|
|
5
|
+
;
|
|
6
|
+
(w._1flow = function (e, d, v) {
|
|
7
|
+
s(function () {
|
|
8
|
+
w._1flow(e, d, !v ? {} : v);
|
|
9
|
+
}, 5);
|
|
10
|
+
}),
|
|
11
|
+
(a = o.getElementsByTagName('head')[0]);
|
|
12
|
+
r = o.createElement('script');
|
|
13
|
+
r.async = 1;
|
|
14
|
+
r.setAttribute('data-api-key', k);
|
|
15
|
+
r.src = t;
|
|
16
|
+
a.appendChild(r);
|
|
17
|
+
})(window, document, setTimeout, 'https://cdn-development.1flow.ai/js-sdk/1flow.js', apiKey);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=1flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1flow.js","sourceRoot":"","sources":["../../src/1flow.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,UAAU,CAAC,EAAE,aAAa,EAAE;IAE1C,MAAM,MAAM,GAAG,aAAa,CAAA;IAE5B,MAAM,eAAe,GAAG,KAAK,CAC5B;IAAA,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QAC7B,CAAC;QAAA,CAAC,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;YAC5B,CAAC,CAAC;gBACA,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC7B,CAAC,EAAE,CAAC,CAAC,CAAA;QACP,CAAC,CAAC;YACA,CAAC,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACzC,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;QAC7B,CAAC,CAAC,KAAK,GAAG,CAAC,CAAA;QACX,CAAC,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;QACjC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;QACT,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;IAClB,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,kDAAkD,EAAE,MAAM,CAAC,CAAA;AAC9F,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare type method = 'track' | 'identify';
|
|
2
|
+
declare type _1FlowApi = {
|
|
3
|
+
richLinkProperties: string[] | undefined;
|
|
4
|
+
activator: string | undefined;
|
|
5
|
+
projectApiKey: string;
|
|
6
|
+
};
|
|
7
|
+
declare type _1FlowFunction = (method: method, ...args: unknown[]) => void;
|
|
8
|
+
export declare type _1Flow = _1FlowFunction & _1FlowApi;
|
|
9
|
+
export {};
|
package/dist/esm/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../src/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/identifyUser/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types';
|
|
2
|
+
import { _1Flow } from '../api';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
declare const action: BrowserActionDefinition<Settings, _1Flow, Payload>;
|
|
6
|
+
export default action;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const action = {
|
|
2
|
+
title: 'Identify User',
|
|
3
|
+
description: 'Create or update a user in 1Flow.',
|
|
4
|
+
defaultSubscription: 'type = "identify"',
|
|
5
|
+
platform: 'web',
|
|
6
|
+
fields: {
|
|
7
|
+
userId: {
|
|
8
|
+
description: 'A unique identifier for the user.',
|
|
9
|
+
label: 'User ID',
|
|
10
|
+
type: 'string',
|
|
11
|
+
required: false,
|
|
12
|
+
default: {
|
|
13
|
+
'@path': '$.userId'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
anonymousId: {
|
|
17
|
+
description: 'An anonymous identifier for the user.',
|
|
18
|
+
label: 'Anonymous ID',
|
|
19
|
+
type: 'string',
|
|
20
|
+
required: false,
|
|
21
|
+
default: {
|
|
22
|
+
'@path': '$.anonymousId'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
traits: {
|
|
26
|
+
description: "The user's custom attributes.",
|
|
27
|
+
label: 'Custom Attributes',
|
|
28
|
+
type: 'object',
|
|
29
|
+
required: false,
|
|
30
|
+
defaultObjectUI: 'keyvalue',
|
|
31
|
+
default: {
|
|
32
|
+
'@path': '$.traits'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
first_name: {
|
|
36
|
+
description: "The user's first name.",
|
|
37
|
+
label: 'First Name',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: false,
|
|
40
|
+
default: {
|
|
41
|
+
'@path': '$.traits.first_name'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
last_name: {
|
|
45
|
+
description: "The user's last name.",
|
|
46
|
+
label: 'First Name',
|
|
47
|
+
type: 'string',
|
|
48
|
+
required: false,
|
|
49
|
+
default: {
|
|
50
|
+
'@path': '$.traits.last_name'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
phone: {
|
|
54
|
+
description: "The user's phone number.",
|
|
55
|
+
label: 'Phone Number',
|
|
56
|
+
type: 'string',
|
|
57
|
+
required: false,
|
|
58
|
+
default: {
|
|
59
|
+
'@path': '$.traits.phone'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
email: {
|
|
63
|
+
description: "The user's email address.",
|
|
64
|
+
label: 'Email Address',
|
|
65
|
+
type: 'string',
|
|
66
|
+
required: false,
|
|
67
|
+
default: {
|
|
68
|
+
'@path': '$.traits.email'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
perform: (_1Flow, event) => {
|
|
73
|
+
const { userId, anonymousId, traits, first_name, last_name, phone, email } = event.payload;
|
|
74
|
+
_1Flow('identify', userId, anonymousId, {
|
|
75
|
+
...traits,
|
|
76
|
+
first_name: first_name,
|
|
77
|
+
last_name: last_name,
|
|
78
|
+
phone: phone,
|
|
79
|
+
email: email
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export default action;
|
|
84
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/identifyUser/index.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,GAAuD;IACjE,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,mCAAmC;IAChD,mBAAmB,EAAE,mBAAmB;IACxC,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACN,MAAM,EAAE;YACN,WAAW,EAAE,mCAAmC;YAChD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,WAAW,EAAE;YACX,WAAW,EAAE,uCAAuC;YACpD,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,eAAe;aACzB;SACF;QACD,MAAM,EAAE;YACN,WAAW,EAAE,+BAA+B;YAC5C,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,eAAe,EAAE,UAAU;YAC3B,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,qBAAqB;aAC/B;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,uBAAuB;YACpC,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,oBAAoB;aAC9B;SACF;QACD,KAAK,EAAE;YACL,WAAW,EAAE,0BAA0B;YACvC,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QAED,KAAK,EAAE;YACL,WAAW,EAAE,2BAA2B;YACxC,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;KACF;IACD,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QACzB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;QAC1F,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE;YACtC,GAAG,MAAM;YACT,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,KAAK;SACb,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Settings } from './generated-types';
|
|
2
|
+
import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types';
|
|
3
|
+
import { _1Flow } from './api';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
_1Flow: _1Flow;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const destination: BrowserDestinationDefinition<Settings, _1Flow>;
|
|
10
|
+
declare const _default: import("@segment/browser-destination-runtime/types").PluginFactory;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { browserDestination } from '@segment/browser-destination-runtime/shim';
|
|
2
|
+
import trackEvent from './trackEvent';
|
|
3
|
+
import { initScript } from './1flow';
|
|
4
|
+
import identifyUser from './identifyUser';
|
|
5
|
+
import { defaultValues } from '@segment/actions-core';
|
|
6
|
+
export const destination = {
|
|
7
|
+
name: '1Flow',
|
|
8
|
+
slug: 'actions-1flow',
|
|
9
|
+
mode: 'device',
|
|
10
|
+
description: 'Send analytics from Segment to 1Flow',
|
|
11
|
+
settings: {
|
|
12
|
+
projectApiKey: {
|
|
13
|
+
description: 'This is the unique app_id for your 1Flow application, serving as the identifier for data storage and retrieval. This field is mandatory.',
|
|
14
|
+
label: 'Project API Key',
|
|
15
|
+
type: 'string',
|
|
16
|
+
required: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
presets: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Track Event',
|
|
22
|
+
subscribe: 'type = "track"',
|
|
23
|
+
partnerAction: 'trackEvent',
|
|
24
|
+
mapping: defaultValues(trackEvent.fields),
|
|
25
|
+
type: 'automatic'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Identify User',
|
|
29
|
+
subscribe: 'type = "identify"',
|
|
30
|
+
partnerAction: 'identifyUser',
|
|
31
|
+
mapping: defaultValues(identifyUser.fields),
|
|
32
|
+
type: 'automatic'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
initialize: async ({ settings }, deps) => {
|
|
36
|
+
const projectApiKey = settings.projectApiKey;
|
|
37
|
+
initScript({ projectApiKey });
|
|
38
|
+
await deps.resolveWhen(() => Object.prototype.hasOwnProperty.call(window, '_1Flow'), 100);
|
|
39
|
+
return window._1Flow;
|
|
40
|
+
},
|
|
41
|
+
actions: {
|
|
42
|
+
trackEvent,
|
|
43
|
+
identifyUser
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export default browserDestination(destination);
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAA;AAC9E,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAOrD,MAAM,CAAC,MAAM,WAAW,GAAmD;IACzE,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,WAAW,EACT,0IAA0I;YAC5I,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,gBAAgB;YAC3B,aAAa,EAAE,YAAY;YAC3B,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC;YACzC,IAAI,EAAE,WAAW;SAClB;QACD;YACE,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,mBAAmB;YAC9B,aAAa,EAAE,cAAc;YAC7B,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC;YAC3C,IAAI,EAAE,WAAW;SAClB;KACF;IAED,UAAU,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE;QACvC,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAA;QAC5C,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;QAC7B,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAA;QACzF,OAAO,MAAM,CAAC,MAAM,CAAA;IACtB,CAAC;IACD,OAAO,EAAE;QACP,UAAU;QACV,YAAY;KACb;CACF,CAAA;AAED,eAAe,kBAAkB,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|