@ndustrial/contxt-sdk 5.2.4 → 5.2.5
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/esm/config/audiences.js
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
},
|
|
8
8
|
staging: {
|
|
9
9
|
clientId: '1HD1NG1VTBtkqRt2HRRj3E3hdmqmwzoz',
|
|
10
|
-
host: 'https://bus
|
|
11
|
-
webSocket: 'wss://bus
|
|
10
|
+
host: 'https://bus.staging.ndustrial.io',
|
|
11
|
+
webSocket: 'wss://bus.staging.ndustrial.io'
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
contxtAuth: {
|
|
@@ -41,16 +41,6 @@ export default {
|
|
|
41
41
|
host: 'https://events.api.ndustrial.io'
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
facilities: {
|
|
45
|
-
production: {
|
|
46
|
-
clientId: 'SgbCopArnGMa9PsRlCVUCVRwxocntlg0',
|
|
47
|
-
host: 'https://facilities.api.ndustrial.io'
|
|
48
|
-
},
|
|
49
|
-
staging: {
|
|
50
|
-
clientId: 'xG775XHIOZVUn84seNeHXi0Qe55YuR5w',
|
|
51
|
-
host: 'https://facilities-staging.api.ndustrial.io'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
44
|
files: {
|
|
55
45
|
production: {
|
|
56
46
|
clientId: 'VZJ2MRd71dM9oX2hB1EVAEjUe6loL7pl',
|
|
@@ -64,7 +54,7 @@ export default {
|
|
|
64
54
|
iot: {
|
|
65
55
|
staging: {
|
|
66
56
|
clientId: 'm35AEcxD8hf65sq04ZU7yFxqpqVkKzES',
|
|
67
|
-
host: 'https://feeds
|
|
57
|
+
host: 'https://feeds.api.staging.ndustrial.io'
|
|
68
58
|
},
|
|
69
59
|
production: {
|
|
70
60
|
clientId: 'iznTb30Sfp2Jpaf398I5DN6MyPuDCftA',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["config/audiences.js"],"names":["bus","production","clientId","host","webSocket","staging","contxtAuth","coordinator","events","
|
|
1
|
+
{"version":3,"sources":["config/audiences.js"],"names":["bus","production","clientId","host","webSocket","staging","contxtAuth","coordinator","events","files","iot","nionic"],"mappings":"AAAA,eAAe;AACbA,OAAK;AACHC,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM,0BAFI;AAGVC,iBAAW;AAHD,KADT;AAMHC,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM,kCAFC;AAGPC,iBAAW;AAHJ;AANN,GADQ;AAabE,cAAY;AACVL,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADF;AAKVE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALC,GAbC;AAuBbI,eAAa;AACXN,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADD;AAKXE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALE,GAvBA;AAiCbK,UAAQ;AACNH,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADH;AAKNF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALN,GAjCK;AA2CbM,SAAO;AACLR,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADP;AAKLE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALJ,GA3CM;AAqDbO,OAAK;AACHL,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADN;AAKHF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALT,GArDQ;AA+DbQ,UAAQ;AACNN,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADH;AAKNF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALN;AA/DK,CAAf","file":"audiences.js","sourcesContent":["export default {\n bus: {\n production: {\n clientId: 'bmoJ2jhfyIP5s4IZx5Ss6xQ9lmkoDixO',\n host: 'https://bus.ndustrial.io',\n webSocket: 'wss://bus.ndustrial.io'\n },\n staging: {\n clientId: '1HD1NG1VTBtkqRt2HRRj3E3hdmqmwzoz',\n host: 'https://bus.staging.ndustrial.io',\n webSocket: 'wss://bus.staging.ndustrial.io'\n }\n },\n contxtAuth: {\n production: {\n clientId: '75wT048QcpE7ujwBJPPjr263eTHl4gEX',\n host: 'https://contxtauth.com'\n },\n staging: {\n clientId: '7TceUsM1eC4nKmdoC717383DWyfc9QoY',\n host: 'https://contxt-auth-service.staging.ndustrial.io'\n }\n },\n coordinator: {\n production: {\n clientId: '8qY2xJob1JAxhmVhIDLCNnGriTM9bct8',\n host: 'https://contxt.api.ndustrial.io'\n },\n staging: {\n clientId: 'qGzdTXcmB57zlTp86rYsivG9qEss1lbF',\n host: 'https://contxt.api.staging.ndustrial.io'\n }\n },\n events: {\n staging: {\n clientId: 'dn4MaocJFdKtsBy9sFFaTeuJWL1nt5xu',\n host: 'https://events.api.staging.ndustrial.io'\n },\n production: {\n clientId: '7jzwfE20O2XZ4aq3cO1wmk63G9GzNc8j',\n host: 'https://events.api.ndustrial.io'\n }\n },\n files: {\n production: {\n clientId: 'VZJ2MRd71dM9oX2hB1EVAEjUe6loL7pl',\n host: 'https://files.api.ndustrial.io'\n },\n staging: {\n clientId: 'SLE310LY4nDT5p06sUGPVOLlGXk5osbQ',\n host: 'https://files.api.staging.ndustrial.io'\n }\n },\n iot: {\n staging: {\n clientId: 'm35AEcxD8hf65sq04ZU7yFxqpqVkKzES',\n host: 'https://feeds.api.staging.ndustrial.io'\n },\n production: {\n clientId: 'iznTb30Sfp2Jpaf398I5DN6MyPuDCftA',\n host: 'https://feeds.api.ndustrial.io'\n }\n },\n nionic: {\n staging: {\n clientId: 'vhGxildn8hRRWZj49y18BGtbjTkFHcTG',\n host: 'https://<tenant>.api.staging.ndustrial.io'\n },\n production: {\n clientId: 'vtiZlMRo4apDvThTRiH7kLifQXWUdi9j',\n host: 'https://<tenant>.api.ndustrial.io'\n }\n }\n};\n"]}
|
package/lib/config/audiences.js
CHANGED
|
@@ -12,8 +12,8 @@ exports.default = {
|
|
|
12
12
|
},
|
|
13
13
|
staging: {
|
|
14
14
|
clientId: '1HD1NG1VTBtkqRt2HRRj3E3hdmqmwzoz',
|
|
15
|
-
host: 'https://bus
|
|
16
|
-
webSocket: 'wss://bus
|
|
15
|
+
host: 'https://bus.staging.ndustrial.io',
|
|
16
|
+
webSocket: 'wss://bus.staging.ndustrial.io'
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
contxtAuth: {
|
|
@@ -46,16 +46,6 @@ exports.default = {
|
|
|
46
46
|
host: 'https://events.api.ndustrial.io'
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
facilities: {
|
|
50
|
-
production: {
|
|
51
|
-
clientId: 'SgbCopArnGMa9PsRlCVUCVRwxocntlg0',
|
|
52
|
-
host: 'https://facilities.api.ndustrial.io'
|
|
53
|
-
},
|
|
54
|
-
staging: {
|
|
55
|
-
clientId: 'xG775XHIOZVUn84seNeHXi0Qe55YuR5w',
|
|
56
|
-
host: 'https://facilities-staging.api.ndustrial.io'
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
49
|
files: {
|
|
60
50
|
production: {
|
|
61
51
|
clientId: 'VZJ2MRd71dM9oX2hB1EVAEjUe6loL7pl',
|
|
@@ -69,7 +59,7 @@ exports.default = {
|
|
|
69
59
|
iot: {
|
|
70
60
|
staging: {
|
|
71
61
|
clientId: 'm35AEcxD8hf65sq04ZU7yFxqpqVkKzES',
|
|
72
|
-
host: 'https://feeds
|
|
62
|
+
host: 'https://feeds.api.staging.ndustrial.io'
|
|
73
63
|
},
|
|
74
64
|
production: {
|
|
75
65
|
clientId: 'iznTb30Sfp2Jpaf398I5DN6MyPuDCftA',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["config/audiences.js"],"names":["bus","production","clientId","host","webSocket","staging","contxtAuth","coordinator","events","
|
|
1
|
+
{"version":3,"sources":["config/audiences.js"],"names":["bus","production","clientId","host","webSocket","staging","contxtAuth","coordinator","events","files","iot","nionic"],"mappings":";;;;;kBAAe;AACbA,OAAK;AACHC,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM,0BAFI;AAGVC,iBAAW;AAHD,KADT;AAMHC,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM,kCAFC;AAGPC,iBAAW;AAHJ;AANN,GADQ;AAabE,cAAY;AACVL,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADF;AAKVE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALC,GAbC;AAuBbI,eAAa;AACXN,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADD;AAKXE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALE,GAvBA;AAiCbK,UAAQ;AACNH,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADH;AAKNF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALN,GAjCK;AA2CbM,SAAO;AACLR,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI,KADP;AAKLE,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC;AALJ,GA3CM;AAqDbO,OAAK;AACHL,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADN;AAKHF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALT,GArDQ;AA+DbQ,UAAQ;AACNN,aAAS;AACPH,gBAAU,kCADH;AAEPC,YAAM;AAFC,KADH;AAKNF,gBAAY;AACVC,gBAAU,kCADA;AAEVC,YAAM;AAFI;AALN;AA/DK,C","file":"audiences.js","sourcesContent":["export default {\n bus: {\n production: {\n clientId: 'bmoJ2jhfyIP5s4IZx5Ss6xQ9lmkoDixO',\n host: 'https://bus.ndustrial.io',\n webSocket: 'wss://bus.ndustrial.io'\n },\n staging: {\n clientId: '1HD1NG1VTBtkqRt2HRRj3E3hdmqmwzoz',\n host: 'https://bus.staging.ndustrial.io',\n webSocket: 'wss://bus.staging.ndustrial.io'\n }\n },\n contxtAuth: {\n production: {\n clientId: '75wT048QcpE7ujwBJPPjr263eTHl4gEX',\n host: 'https://contxtauth.com'\n },\n staging: {\n clientId: '7TceUsM1eC4nKmdoC717383DWyfc9QoY',\n host: 'https://contxt-auth-service.staging.ndustrial.io'\n }\n },\n coordinator: {\n production: {\n clientId: '8qY2xJob1JAxhmVhIDLCNnGriTM9bct8',\n host: 'https://contxt.api.ndustrial.io'\n },\n staging: {\n clientId: 'qGzdTXcmB57zlTp86rYsivG9qEss1lbF',\n host: 'https://contxt.api.staging.ndustrial.io'\n }\n },\n events: {\n staging: {\n clientId: 'dn4MaocJFdKtsBy9sFFaTeuJWL1nt5xu',\n host: 'https://events.api.staging.ndustrial.io'\n },\n production: {\n clientId: '7jzwfE20O2XZ4aq3cO1wmk63G9GzNc8j',\n host: 'https://events.api.ndustrial.io'\n }\n },\n files: {\n production: {\n clientId: 'VZJ2MRd71dM9oX2hB1EVAEjUe6loL7pl',\n host: 'https://files.api.ndustrial.io'\n },\n staging: {\n clientId: 'SLE310LY4nDT5p06sUGPVOLlGXk5osbQ',\n host: 'https://files.api.staging.ndustrial.io'\n }\n },\n iot: {\n staging: {\n clientId: 'm35AEcxD8hf65sq04ZU7yFxqpqVkKzES',\n host: 'https://feeds.api.staging.ndustrial.io'\n },\n production: {\n clientId: 'iznTb30Sfp2Jpaf398I5DN6MyPuDCftA',\n host: 'https://feeds.api.ndustrial.io'\n }\n },\n nionic: {\n staging: {\n clientId: 'vhGxildn8hRRWZj49y18BGtbjTkFHcTG',\n host: 'https://<tenant>.api.staging.ndustrial.io'\n },\n production: {\n clientId: 'vtiZlMRo4apDvThTRiH7kLifQXWUdi9j',\n host: 'https://<tenant>.api.ndustrial.io'\n }\n }\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndustrial/contxt-sdk",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"lodash.once": "^4.1.1",
|
|
67
67
|
"qs": "^6.9.6",
|
|
68
68
|
"url-parse": "^1.4.7",
|
|
69
|
-
"uuid": "^
|
|
69
|
+
"uuid": "^9.0.0",
|
|
70
70
|
"ws": "^8.8.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"gulp": "^4.0.2",
|
|
90
90
|
"gulp-babel": "^7.0.1",
|
|
91
91
|
"gulp-sourcemaps": "^3.0.0",
|
|
92
|
-
"husky": "^
|
|
92
|
+
"husky": "^8.0.1",
|
|
93
93
|
"jsdoc-to-markdown": "^7.1.1",
|
|
94
94
|
"lodash.omit": "^4.5.0",
|
|
95
95
|
"lodash.pick": "^4.4.0",
|
package/src/config/audiences.js
CHANGED
|
@@ -7,8 +7,8 @@ export default {
|
|
|
7
7
|
},
|
|
8
8
|
staging: {
|
|
9
9
|
clientId: '1HD1NG1VTBtkqRt2HRRj3E3hdmqmwzoz',
|
|
10
|
-
host: 'https://bus
|
|
11
|
-
webSocket: 'wss://bus
|
|
10
|
+
host: 'https://bus.staging.ndustrial.io',
|
|
11
|
+
webSocket: 'wss://bus.staging.ndustrial.io'
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
contxtAuth: {
|
|
@@ -41,16 +41,6 @@ export default {
|
|
|
41
41
|
host: 'https://events.api.ndustrial.io'
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
facilities: {
|
|
45
|
-
production: {
|
|
46
|
-
clientId: 'SgbCopArnGMa9PsRlCVUCVRwxocntlg0',
|
|
47
|
-
host: 'https://facilities.api.ndustrial.io'
|
|
48
|
-
},
|
|
49
|
-
staging: {
|
|
50
|
-
clientId: 'xG775XHIOZVUn84seNeHXi0Qe55YuR5w',
|
|
51
|
-
host: 'https://facilities-staging.api.ndustrial.io'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
44
|
files: {
|
|
55
45
|
production: {
|
|
56
46
|
clientId: 'VZJ2MRd71dM9oX2hB1EVAEjUe6loL7pl',
|
|
@@ -64,7 +54,7 @@ export default {
|
|
|
64
54
|
iot: {
|
|
65
55
|
staging: {
|
|
66
56
|
clientId: 'm35AEcxD8hf65sq04ZU7yFxqpqVkKzES',
|
|
67
|
-
host: 'https://feeds
|
|
57
|
+
host: 'https://feeds.api.staging.ndustrial.io'
|
|
68
58
|
},
|
|
69
59
|
production: {
|
|
70
60
|
clientId: 'iznTb30Sfp2Jpaf398I5DN6MyPuDCftA',
|
|
@@ -9,9 +9,8 @@ factory
|
|
|
9
9
|
.attrs({
|
|
10
10
|
createdAt: () => faker.date.past().toISOString(),
|
|
11
11
|
id: () => faker.datatype.uuid(),
|
|
12
|
-
legacyOrganizationId: () => faker.datatype.number(),
|
|
13
12
|
name: () => faker.name.title(),
|
|
14
|
-
updatedAt: () => faker.date.recent().toISOString()
|
|
13
|
+
updatedAt: () => faker.date.recent().toISOString(),
|
|
15
14
|
})
|
|
16
15
|
.after((org, options) => {
|
|
17
16
|
// If building an organization object that comes from the server, transform it to have camel
|
|
@@ -20,9 +19,6 @@ factory
|
|
|
20
19
|
org.created_at = org.createdAt;
|
|
21
20
|
delete org.createdAt;
|
|
22
21
|
|
|
23
|
-
org.legacy_organization_id = org.legacyOrganizationId;
|
|
24
|
-
delete org.legacyOrganizationId;
|
|
25
|
-
|
|
26
22
|
org.updated_at = org.updatedAt;
|
|
27
23
|
delete org.updatedAt;
|
|
28
24
|
}
|