@gooder-ai/schemas 1.0.0 → 1.0.1
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 +5 -0
- package/dist/tsc/index.js +2 -1
- package/dist/tsc/index.js.map +1 -1
- package/dist/tsc/schema.js +168 -230
- package/dist/tsc/transform.js +67 -0
- package/dist/tsc/transform.js.map +1 -0
- package/dist/tsc/tsconfig.tsbuildinfo +1 -1
- package/dist/tsc/utils.js +30 -37
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/schema.d.ts +2181 -2782
- package/dist/types/transform.d.ts +2 -0
- package/dist/types/transform.d.ts.map +1 -0
- package/dist/types/utils.d.ts +29 -29
- package/package.json +1 -1
package/dist/tsc/utils.js
CHANGED
|
@@ -1,56 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConditionalOperators =
|
|
4
|
-
exports.Operators =
|
|
5
|
-
exports.HighlightType =
|
|
6
|
-
exports.SeriesTypes =
|
|
7
|
-
exports.CurrencyTypes =
|
|
8
|
-
exports.UnitTypes =
|
|
9
|
-
exports.SortOrderDictionary =
|
|
10
|
-
void 0;
|
|
3
|
+
exports.ConditionalOperators = exports.Operators = exports.HighlightType = exports.SeriesTypes = exports.CurrencyTypes = exports.UnitTypes = exports.SortOrderDictionary = void 0;
|
|
11
4
|
// OrderBy uses "desc" and "asc" as key
|
|
12
5
|
exports.SortOrderDictionary = {
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
Ascending: "asc",
|
|
7
|
+
Descending: "desc",
|
|
15
8
|
};
|
|
16
9
|
exports.UnitTypes = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
Currency: "currency",
|
|
11
|
+
Percentage: "percentage",
|
|
12
|
+
None: "none",
|
|
20
13
|
};
|
|
21
14
|
exports.CurrencyTypes = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
USD: "USD",
|
|
16
|
+
GBP: "GBP",
|
|
17
|
+
EUR: "EUR",
|
|
18
|
+
JPY: "JPY",
|
|
19
|
+
AUD: "AUD",
|
|
20
|
+
CAD: "CAD",
|
|
21
|
+
INR: "INR",
|
|
29
22
|
};
|
|
30
23
|
exports.SeriesTypes = {
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
Line: "line",
|
|
25
|
+
Bar: "bar",
|
|
33
26
|
};
|
|
34
27
|
exports.HighlightType = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
Max: "max",
|
|
29
|
+
Min: "min",
|
|
30
|
+
None: "none",
|
|
38
31
|
};
|
|
39
32
|
// Ref: https://jsonlogic.com/operations.html
|
|
40
33
|
exports.Operators = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
34
|
+
Equal: "===",
|
|
35
|
+
GreaterThan: ">",
|
|
36
|
+
LessThan: "<",
|
|
37
|
+
GreaterThanEqual: ">=",
|
|
38
|
+
LessThanEqual: "<=",
|
|
39
|
+
NotEqual: "!==",
|
|
40
|
+
In: "in",
|
|
41
|
+
Between: "between",
|
|
42
|
+
BetweenInclusive: "betweenInclusive",
|
|
50
43
|
};
|
|
51
44
|
// Ref: https://jsonlogic.com/operations.html
|
|
52
45
|
exports.ConditionalOperators = {
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
And: "and",
|
|
47
|
+
Or: "or",
|
|
55
48
|
};
|
|
56
|
-
//# sourceMappingURL=utils.js.map
|
|
49
|
+
//# sourceMappingURL=utils.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|