-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
47 lines (43 loc) · 1.19 KB
/
index.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
/*
* vim: set tw=100 et ts=4 sw=4 si fileencoding=utf-8:
* © 2022 WideSky.Cloud Pty Ltd
* SPDX-License-Identifier: MIT
*/
"use strict";
const client = require('./src/client/client');
const data = require('./src/data');
const replace = require('./src/graphql/replace');
const exprParser = require('./src/graphql/exprParser');
const find = require('./src/graphql/find');
const HaystackTools = require('./src/utils/haystack');
const HisWritePayload = require('./src/utils/hisWritePayload');
const EntityCriteria = require("./src/utils/EntityCriteria");
/* Exported symbols */
const jsWideSky = {
/* Client code */
WideSkyClient: client,
/* Constants */
VER_2: data.VER_2,
VER_3: data.VER_3,
/* Data types */
MARKER: data.MARKER,
NA: data.NA,
REMOVE: data.REMOVE,
Ref: data.Ref,
String: data.String, // polyfilled
Number: data.Number, // polyfilled
Date: data.Date, // polyfilled
HSNumber: data.HSNumber,
/* Helper routines */
parse: data.parse,
dump: data.dump,
graphql: {
replace,
exprParser,
find
},
hsTools: HaystackTools,
HisWritePayload,
EntityCriteria
};
module.exports = jsWideSky;