@segment/destinations-manifest 1.0.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/package.json +38 -0
- package/src/index.ts +56 -0
- package/tsconfig.json +10 -0
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@segment/destinations-manifest",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "tsc -w",
|
|
6
|
+
"build": "tsc"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"typings": "./dist/index.d.ts",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@segment/analytics-browser-actions-adobe-target": "^1.0.0",
|
|
12
|
+
"@segment/analytics-browser-actions-amplitude-plugins": "^1.0.0",
|
|
13
|
+
"@segment/analytics-browser-actions-braze": "^1.0.0",
|
|
14
|
+
"@segment/analytics-browser-actions-braze-cloud-plugins": "^1.0.0",
|
|
15
|
+
"@segment/analytics-browser-actions-commandbar": "^1.0.0",
|
|
16
|
+
"@segment/analytics-browser-actions-friendbuy": "^1.0.0",
|
|
17
|
+
"@segment/analytics-browser-actions-fullstory": "^1.0.0",
|
|
18
|
+
"@segment/analytics-browser-actions-google-analytics-4": "^1.0.0",
|
|
19
|
+
"@segment/analytics-browser-actions-heap": "^1.0.0",
|
|
20
|
+
"@segment/analytics-browser-actions-hubspot": "^1.0.0",
|
|
21
|
+
"@segment/analytics-browser-actions-intercom": "^1.0.0",
|
|
22
|
+
"@segment/analytics-browser-actions-iterate": "^1.0.0",
|
|
23
|
+
"@segment/analytics-browser-actions-koala": "^1.0.0",
|
|
24
|
+
"@segment/analytics-browser-actions-logrocket": "^1.0.0",
|
|
25
|
+
"@segment/analytics-browser-actions-playerzero": "^1.0.0",
|
|
26
|
+
"@segment/analytics-browser-actions-ripe": "^1.0.0",
|
|
27
|
+
"@segment/analytics-browser-actions-sabil": "^1.0.0",
|
|
28
|
+
"@segment/analytics-browser-actions-screeb": "^1.0.0",
|
|
29
|
+
"@segment/analytics-browser-actions-sprig": "^1.0.0",
|
|
30
|
+
"@segment/analytics-browser-actions-stackadapt": "^1.0.0",
|
|
31
|
+
"@segment/analytics-browser-actions-upollo": "^1.0.0",
|
|
32
|
+
"@segment/analytics-browser-actions-userpilot": "^1.0.0",
|
|
33
|
+
"@segment/analytics-browser-actions-utils": "^1.0.0",
|
|
34
|
+
"@segment/analytics-browser-actions-vwo": "^1.0.0",
|
|
35
|
+
"@segment/analytics-browser-actions-wiseops": "^1.0.0",
|
|
36
|
+
"@segment/browser-destination-runtime": "^1.0.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
|
|
3
|
+
import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types'
|
|
4
|
+
|
|
5
|
+
export { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types'
|
|
6
|
+
|
|
7
|
+
type MetadataId = string
|
|
8
|
+
|
|
9
|
+
export interface ManifestEntry {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
+
definition: BrowserDestinationDefinition<any, any>
|
|
12
|
+
directory: string
|
|
13
|
+
path: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const manifest: Record<MetadataId, ManifestEntry> = {}
|
|
17
|
+
|
|
18
|
+
function register(id: MetadataId, destinationName: string) {
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
20
|
+
const definition = require(destinationName).destination
|
|
21
|
+
const entryFilePath = require.resolve(destinationName)
|
|
22
|
+
const directory = path.basename(path.resolve(entryFilePath, '../../..'))
|
|
23
|
+
|
|
24
|
+
manifest[id] = {
|
|
25
|
+
definition,
|
|
26
|
+
directory,
|
|
27
|
+
path: entryFilePath
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// TODO figure out if it's possible to colocate the Amplitude web action with the rest of its destination definition (in `./packages/destination-actions`)
|
|
32
|
+
register('61fc2ffcc76fb3e73d85c89d', '@segment/analytics-browser-actions-adobe-target')
|
|
33
|
+
register('5f7dd6d21ad74f3842b1fc47', '@segment/analytics-browser-actions-amplitude-plugins')
|
|
34
|
+
register('60fb01aec459242d3b6f20c1', '@segment/analytics-browser-actions-braze')
|
|
35
|
+
register('60f9d0d048950c356be2e4da', '@segment/analytics-browser-actions-braze-cloud-plugins')
|
|
36
|
+
register('6170a348128093cd0245e0ea', '@segment/analytics-browser-actions-friendbuy')
|
|
37
|
+
register('6141153ee7500f15d3838703', '@segment/analytics-browser-actions-fullstory')
|
|
38
|
+
register('6230c835c0d6535357ee950d', '@segment/analytics-browser-actions-koala')
|
|
39
|
+
register('61d8859be4f795335d5c677c', '@segment/analytics-browser-actions-stackadapt')
|
|
40
|
+
register('61d8c74d174a9acd0e138b31', '@segment/analytics-browser-actions-sprig')
|
|
41
|
+
register('62b256147cbb49302d1486d0', '@segment/analytics-browser-actions-heap')
|
|
42
|
+
register('62d9daff84a6bf190da9f592', '@segment/analytics-browser-actions-intercom')
|
|
43
|
+
register('62fec615a42fa3dbfd208ce7', '@segment/analytics-browser-actions-iterate')
|
|
44
|
+
register('631a1c2bfdce36a23f0a14ec', '@segment/analytics-browser-actions-hubspot')
|
|
45
|
+
register('6340a951fbda093061f5f1d7', '@segment/analytics-browser-actions-utils')
|
|
46
|
+
register('634ef204885be3def430af66', '@segment/analytics-browser-actions-playerzero')
|
|
47
|
+
register('635ada35ce269dbe305203ff', '@segment/analytics-browser-actions-logrocket')
|
|
48
|
+
register('6372e18fb2b3d5d741c34bb6', '@segment/analytics-browser-actions-sabil')
|
|
49
|
+
register('6372e1e36d9c2181f3900834', '@segment/analytics-browser-actions-wiseops')
|
|
50
|
+
register('637c192eba61b944e08ee158', '@segment/analytics-browser-actions-vwo')
|
|
51
|
+
register('638f843c4520d424f63c9e51', '@segment/analytics-browser-actions-commandbar')
|
|
52
|
+
register('63913b2bf906ea939f153851', '@segment/analytics-browser-actions-ripe')
|
|
53
|
+
register('63ed446fe60a1b56c5e6f130', '@segment/analytics-browser-actions-google-analytics-4')
|
|
54
|
+
register('640267d74c13708d74062dcd', '@segment/analytics-browser-actions-upollo')
|
|
55
|
+
register('6480b4eeab29eca5415089d4', '@segment/analytics-browser-actions-userpilot')
|
|
56
|
+
register('64820d8030d09e775fbac372', '@segment/analytics-browser-actions-screeb')
|