-
Notifications
You must be signed in to change notification settings - Fork 0
/
node.js
46 lines (41 loc) · 1.1 KB
/
node.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const CorePromiseClient = require('./clients/core/v0/nodejs/CorePromiseClient');
const PlatformPromiseClient = require('./clients/platform/v0/nodejs/PlatformPromiseClient');
const protocCoreMessages = require('./clients/core/v0/nodejs/core_protoc');
const protocPlatformMessages = require('./clients/platform/v0/nodejs/platform_protoc');
const getCoreDefinition = require('./lib/getCoreDefinition');
const getPlatformDefinition = require('./lib/getPlatformDefinition');
const {
org: {
axe: {
platform: {
dapi: {
v0: pbjsCoreMessages,
},
},
},
},
} = require('./clients/core/v0/nodejs/core_pbjs');
const {
org: {
axe: {
platform: {
dapi: {
v0: pbjsPlatformMessages,
},
},
},
},
} = require('./clients/platform/v0/nodejs/platform_pbjs');
module.exports = {
getCoreDefinition,
getPlatformDefinition,
v0: Object.assign({
CorePromiseClient,
PlatformPromiseClient,
pbjs: Object.assign(
{},
pbjsCoreMessages,
pbjsPlatformMessages,
),
}, protocCoreMessages, protocPlatformMessages),
};