@rippling/rippling-sdk 0.2.0-alpha.107 → 0.2.0-alpha.109
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/client.d.mts +10 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -1
- package/client.d.ts.map +1 -1
- package/client.js +10 -1
- package/client.js.map +1 -1
- package/client.mjs +10 -1
- package/client.mjs.map +1 -1
- package/lib/charts/builders.d.mts +18 -19
- package/lib/charts/builders.d.mts.map +1 -1
- package/lib/charts/builders.d.ts +18 -19
- package/lib/charts/builders.d.ts.map +1 -1
- package/lib/charts/builders.js +35 -28
- package/lib/charts/builders.js.map +1 -1
- package/lib/charts/builders.mjs +35 -28
- package/lib/charts/builders.mjs.map +1 -1
- package/lib/charts/describe.d.mts +6 -7
- package/lib/charts/describe.d.mts.map +1 -1
- package/lib/charts/describe.d.ts +6 -7
- package/lib/charts/describe.d.ts.map +1 -1
- package/lib/charts/describe.js +26 -27
- package/lib/charts/describe.js.map +1 -1
- package/lib/charts/describe.mjs +27 -28
- package/lib/charts/describe.mjs.map +1 -1
- package/lib/charts/errors.d.mts +2 -6
- package/lib/charts/errors.d.mts.map +1 -1
- package/lib/charts/errors.d.ts +2 -6
- package/lib/charts/errors.d.ts.map +1 -1
- package/lib/charts/errors.js +2 -6
- package/lib/charts/errors.js.map +1 -1
- package/lib/charts/errors.mjs +2 -6
- package/lib/charts/errors.mjs.map +1 -1
- package/lib/charts/evaluate.d.mts +5 -7
- package/lib/charts/evaluate.d.mts.map +1 -1
- package/lib/charts/evaluate.d.ts +5 -7
- package/lib/charts/evaluate.d.ts.map +1 -1
- package/lib/charts/evaluate.js +21 -35
- package/lib/charts/evaluate.js.map +1 -1
- package/lib/charts/evaluate.mjs +22 -36
- package/lib/charts/evaluate.mjs.map +1 -1
- package/lib/charts/schema.d.mts +8 -97
- package/lib/charts/schema.d.mts.map +1 -1
- package/lib/charts/schema.d.ts +8 -97
- package/lib/charts/schema.d.ts.map +1 -1
- package/lib/charts/schema.js +186 -65
- package/lib/charts/schema.js.map +1 -1
- package/lib/charts/schema.mjs +185 -65
- package/lib/charts/schema.mjs.map +1 -1
- package/lib/charts/types.d.mts +40 -25
- package/lib/charts/types.d.mts.map +1 -1
- package/lib/charts/types.d.ts +40 -25
- package/lib/charts/types.d.ts.map +1 -1
- package/lib/charts/types.js +8 -10
- package/lib/charts/types.js.map +1 -1
- package/lib/charts/types.mjs +8 -10
- package/lib/charts/types.mjs.map +1 -1
- package/lib/charts/visualization-grammar.d.mts +66 -0
- package/lib/charts/visualization-grammar.d.mts.map +1 -0
- package/lib/charts/visualization-grammar.d.ts +66 -0
- package/lib/charts/visualization-grammar.d.ts.map +1 -0
- package/lib/charts/visualization-grammar.js +70 -0
- package/lib/charts/visualization-grammar.js.map +1 -0
- package/lib/charts/visualization-grammar.mjs +67 -0
- package/lib/charts/visualization-grammar.mjs.map +1 -0
- package/lib/charts/vocabulary.d.mts +7 -0
- package/lib/charts/vocabulary.d.mts.map +1 -0
- package/lib/charts/vocabulary.d.ts +7 -0
- package/lib/charts/vocabulary.d.ts.map +1 -0
- package/lib/charts/vocabulary.js +10 -0
- package/lib/charts/vocabulary.js.map +1 -0
- package/lib/charts/vocabulary.mjs +7 -0
- package/lib/charts/vocabulary.mjs.map +1 -0
- package/lib/charts.d.mts +3 -3
- package/lib/charts.d.mts.map +1 -1
- package/lib/charts.d.ts +3 -3
- package/lib/charts.d.ts.map +1 -1
- package/lib/charts.js +2 -1
- package/lib/charts.js.map +1 -1
- package/lib/charts.mjs +1 -1
- package/lib/charts.mjs.map +1 -1
- package/package.json +4 -2
- package/resources/card-transactions.d.mts +579 -0
- package/resources/card-transactions.d.mts.map +1 -0
- package/resources/card-transactions.d.ts +579 -0
- package/resources/card-transactions.d.ts.map +1 -0
- package/resources/card-transactions.js +116 -0
- package/resources/card-transactions.js.map +1 -0
- package/resources/card-transactions.mjs +112 -0
- package/resources/card-transactions.mjs.map +1 -0
- package/resources/earning-types.d.mts +50 -10
- package/resources/earning-types.d.mts.map +1 -1
- package/resources/earning-types.d.ts +50 -10
- package/resources/earning-types.d.ts.map +1 -1
- package/resources/earning-types.js +21 -2
- package/resources/earning-types.js.map +1 -1
- package/resources/earning-types.mjs +21 -2
- package/resources/earning-types.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/reimbursements.d.mts +954 -0
- package/resources/reimbursements.d.mts.map +1 -0
- package/resources/reimbursements.d.ts +954 -0
- package/resources/reimbursements.d.ts.map +1 -0
- package/resources/reimbursements.js +140 -0
- package/resources/reimbursements.js.map +1 -0
- package/resources/reimbursements.mjs +136 -0
- package/resources/reimbursements.mjs.map +1 -0
- package/resources/spend-categories.d.mts +140 -0
- package/resources/spend-categories.d.mts.map +1 -0
- package/resources/spend-categories.d.ts +140 -0
- package/resources/spend-categories.d.ts.map +1 -0
- package/resources/spend-categories.js +83 -0
- package/resources/spend-categories.js.map +1 -0
- package/resources/spend-categories.mjs +79 -0
- package/resources/spend-categories.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +153 -0
- package/resources/workflows/executions.d.mts.map +1 -0
- package/resources/workflows/executions.d.ts +153 -0
- package/resources/workflows/executions.d.ts.map +1 -0
- package/resources/workflows/executions.js +74 -0
- package/resources/workflows/executions.js.map +1 -0
- package/resources/workflows/executions.mjs +70 -0
- package/resources/workflows/executions.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +3 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +9 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +4 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +977 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +977 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +246 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +241 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +1 -972
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1 -972
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +2 -234
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +1 -232
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +63 -12
- package/src/lib/charts/README.md +35 -28
- package/src/lib/charts/agent-reference.md +73 -0
- package/src/lib/charts/builders.ts +51 -35
- package/src/lib/charts/capabilities.json +96 -0
- package/src/lib/charts/describe.ts +31 -29
- package/src/lib/charts/errors.ts +2 -6
- package/src/lib/charts/evaluate.ts +25 -38
- package/src/lib/charts/schema.ts +232 -66
- package/src/lib/charts/types.ts +42 -31
- package/src/lib/charts/visualization-grammar.ts +67 -0
- package/src/lib/charts/vocabulary.ts +7 -0
- package/src/lib/charts.ts +8 -1
- package/src/resources/card-transactions.ts +718 -0
- package/src/resources/earning-types.ts +52 -10
- package/src/resources/index.ts +22 -1
- package/src/resources/reimbursements.ts +1157 -0
- package/src/resources/spend-categories.ts +175 -0
- package/src/resources/workflows/executions.ts +191 -0
- package/src/resources/workflows/index.ts +15 -0
- package/src/resources/workflows/workflows.ts +1661 -0
- package/src/resources/workflows.ts +1 -1647
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/lib/charts/guards.d.mts +0 -15
- package/lib/charts/guards.d.mts.map +0 -1
- package/lib/charts/guards.d.ts +0 -15
- package/lib/charts/guards.d.ts.map +0 -1
- package/lib/charts/guards.js +0 -38
- package/lib/charts/guards.js.map +0 -1
- package/lib/charts/guards.mjs +0 -34
- package/lib/charts/guards.mjs.map +0 -1
- package/src/lib/charts/guards.ts +0 -42
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Machine-readable authoring surface for chart visualization primitives.
|
|
3
|
+
*
|
|
4
|
+
* The SDK build serializes this registry to `capabilities.json`. Keep the
|
|
5
|
+
* registry aligned with the public builders and the serialized-node schema;
|
|
6
|
+
* contract tests enforce both relationships.
|
|
7
|
+
*/
|
|
8
|
+
export declare const visualizationGrammarCapabilities: {
|
|
9
|
+
readonly contractVersion: 1;
|
|
10
|
+
readonly moduleSpecifier: "npm:@rippling/rippling-sdk/lib/charts";
|
|
11
|
+
readonly builders: {
|
|
12
|
+
readonly value: {
|
|
13
|
+
readonly kind: "input";
|
|
14
|
+
readonly returns: "number";
|
|
15
|
+
};
|
|
16
|
+
readonly literal: {
|
|
17
|
+
readonly kind: "literal";
|
|
18
|
+
readonly parameters: readonly ["scalar"];
|
|
19
|
+
readonly returns: "value";
|
|
20
|
+
};
|
|
21
|
+
readonly equals: {
|
|
22
|
+
readonly kind: "comparison";
|
|
23
|
+
readonly parameters: readonly ["value", "value"];
|
|
24
|
+
readonly returns: "condition";
|
|
25
|
+
};
|
|
26
|
+
readonly isNot: {
|
|
27
|
+
readonly kind: "comparison";
|
|
28
|
+
readonly parameters: readonly ["value", "value"];
|
|
29
|
+
readonly returns: "condition";
|
|
30
|
+
};
|
|
31
|
+
readonly lessThan: {
|
|
32
|
+
readonly kind: "comparison";
|
|
33
|
+
readonly parameters: readonly ["value", "value"];
|
|
34
|
+
readonly returns: "condition";
|
|
35
|
+
};
|
|
36
|
+
readonly greaterThan: {
|
|
37
|
+
readonly kind: "comparison";
|
|
38
|
+
readonly parameters: readonly ["value", "value"];
|
|
39
|
+
readonly returns: "condition";
|
|
40
|
+
};
|
|
41
|
+
readonly lessOrEqual: {
|
|
42
|
+
readonly kind: "comparison";
|
|
43
|
+
readonly parameters: readonly ["value", "value"];
|
|
44
|
+
readonly returns: "condition";
|
|
45
|
+
};
|
|
46
|
+
readonly greaterOrEqual: {
|
|
47
|
+
readonly kind: "comparison";
|
|
48
|
+
readonly parameters: readonly ["value", "value"];
|
|
49
|
+
readonly returns: "condition";
|
|
50
|
+
};
|
|
51
|
+
readonly when: {
|
|
52
|
+
readonly kind: "conditional";
|
|
53
|
+
readonly parameters: readonly ["condition", "color", "color?"];
|
|
54
|
+
readonly returns: "conditional-color";
|
|
55
|
+
};
|
|
56
|
+
readonly color: {
|
|
57
|
+
readonly kind: "channel";
|
|
58
|
+
readonly parameters: readonly ["conditional-color"];
|
|
59
|
+
readonly returns: "color-rule";
|
|
60
|
+
readonly placeholderChannel: "color";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly supportedChannels: readonly ["color"];
|
|
64
|
+
readonly supportedNodeKinds: readonly ["literal", "value", "equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual", "ifElse"];
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=visualization-grammar.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visualization-grammar.d.mts","sourceRoot":"","sources":["../../src/lib/charts/visualization-grammar.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDnC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Machine-readable authoring surface for chart visualization primitives.
|
|
3
|
+
*
|
|
4
|
+
* The SDK build serializes this registry to `capabilities.json`. Keep the
|
|
5
|
+
* registry aligned with the public builders and the serialized-node schema;
|
|
6
|
+
* contract tests enforce both relationships.
|
|
7
|
+
*/
|
|
8
|
+
export declare const visualizationGrammarCapabilities: {
|
|
9
|
+
readonly contractVersion: 1;
|
|
10
|
+
readonly moduleSpecifier: "npm:@rippling/rippling-sdk/lib/charts";
|
|
11
|
+
readonly builders: {
|
|
12
|
+
readonly value: {
|
|
13
|
+
readonly kind: "input";
|
|
14
|
+
readonly returns: "number";
|
|
15
|
+
};
|
|
16
|
+
readonly literal: {
|
|
17
|
+
readonly kind: "literal";
|
|
18
|
+
readonly parameters: readonly ["scalar"];
|
|
19
|
+
readonly returns: "value";
|
|
20
|
+
};
|
|
21
|
+
readonly equals: {
|
|
22
|
+
readonly kind: "comparison";
|
|
23
|
+
readonly parameters: readonly ["value", "value"];
|
|
24
|
+
readonly returns: "condition";
|
|
25
|
+
};
|
|
26
|
+
readonly isNot: {
|
|
27
|
+
readonly kind: "comparison";
|
|
28
|
+
readonly parameters: readonly ["value", "value"];
|
|
29
|
+
readonly returns: "condition";
|
|
30
|
+
};
|
|
31
|
+
readonly lessThan: {
|
|
32
|
+
readonly kind: "comparison";
|
|
33
|
+
readonly parameters: readonly ["value", "value"];
|
|
34
|
+
readonly returns: "condition";
|
|
35
|
+
};
|
|
36
|
+
readonly greaterThan: {
|
|
37
|
+
readonly kind: "comparison";
|
|
38
|
+
readonly parameters: readonly ["value", "value"];
|
|
39
|
+
readonly returns: "condition";
|
|
40
|
+
};
|
|
41
|
+
readonly lessOrEqual: {
|
|
42
|
+
readonly kind: "comparison";
|
|
43
|
+
readonly parameters: readonly ["value", "value"];
|
|
44
|
+
readonly returns: "condition";
|
|
45
|
+
};
|
|
46
|
+
readonly greaterOrEqual: {
|
|
47
|
+
readonly kind: "comparison";
|
|
48
|
+
readonly parameters: readonly ["value", "value"];
|
|
49
|
+
readonly returns: "condition";
|
|
50
|
+
};
|
|
51
|
+
readonly when: {
|
|
52
|
+
readonly kind: "conditional";
|
|
53
|
+
readonly parameters: readonly ["condition", "color", "color?"];
|
|
54
|
+
readonly returns: "conditional-color";
|
|
55
|
+
};
|
|
56
|
+
readonly color: {
|
|
57
|
+
readonly kind: "channel";
|
|
58
|
+
readonly parameters: readonly ["conditional-color"];
|
|
59
|
+
readonly returns: "color-rule";
|
|
60
|
+
readonly placeholderChannel: "color";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly supportedChannels: readonly ["color"];
|
|
64
|
+
readonly supportedNodeKinds: readonly ["literal", "value", "equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual", "ifElse"];
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=visualization-grammar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visualization-grammar.d.ts","sourceRoot":"","sources":["../../src/lib/charts/visualization-grammar.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDnC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.visualizationGrammarCapabilities = void 0;
|
|
4
|
+
const vocabulary_1 = require("./vocabulary.js");
|
|
5
|
+
/**
|
|
6
|
+
* Machine-readable authoring surface for chart visualization primitives.
|
|
7
|
+
*
|
|
8
|
+
* The SDK build serializes this registry to `capabilities.json`. Keep the
|
|
9
|
+
* registry aligned with the public builders and the serialized-node schema;
|
|
10
|
+
* contract tests enforce both relationships.
|
|
11
|
+
*/
|
|
12
|
+
exports.visualizationGrammarCapabilities = {
|
|
13
|
+
contractVersion: 1,
|
|
14
|
+
moduleSpecifier: 'npm:@rippling/rippling-sdk/lib/charts',
|
|
15
|
+
builders: {
|
|
16
|
+
value: {
|
|
17
|
+
kind: 'input',
|
|
18
|
+
returns: 'number',
|
|
19
|
+
},
|
|
20
|
+
literal: {
|
|
21
|
+
kind: 'literal',
|
|
22
|
+
parameters: ['scalar'],
|
|
23
|
+
returns: 'value',
|
|
24
|
+
},
|
|
25
|
+
equals: {
|
|
26
|
+
kind: 'comparison',
|
|
27
|
+
parameters: ['value', 'value'],
|
|
28
|
+
returns: 'condition',
|
|
29
|
+
},
|
|
30
|
+
isNot: {
|
|
31
|
+
kind: 'comparison',
|
|
32
|
+
parameters: ['value', 'value'],
|
|
33
|
+
returns: 'condition',
|
|
34
|
+
},
|
|
35
|
+
lessThan: {
|
|
36
|
+
kind: 'comparison',
|
|
37
|
+
parameters: ['value', 'value'],
|
|
38
|
+
returns: 'condition',
|
|
39
|
+
},
|
|
40
|
+
greaterThan: {
|
|
41
|
+
kind: 'comparison',
|
|
42
|
+
parameters: ['value', 'value'],
|
|
43
|
+
returns: 'condition',
|
|
44
|
+
},
|
|
45
|
+
lessOrEqual: {
|
|
46
|
+
kind: 'comparison',
|
|
47
|
+
parameters: ['value', 'value'],
|
|
48
|
+
returns: 'condition',
|
|
49
|
+
},
|
|
50
|
+
greaterOrEqual: {
|
|
51
|
+
kind: 'comparison',
|
|
52
|
+
parameters: ['value', 'value'],
|
|
53
|
+
returns: 'condition',
|
|
54
|
+
},
|
|
55
|
+
when: {
|
|
56
|
+
kind: 'conditional',
|
|
57
|
+
parameters: ['condition', 'color', 'color?'],
|
|
58
|
+
returns: 'conditional-color',
|
|
59
|
+
},
|
|
60
|
+
color: {
|
|
61
|
+
kind: 'channel',
|
|
62
|
+
parameters: ['conditional-color'],
|
|
63
|
+
returns: 'color-rule',
|
|
64
|
+
placeholderChannel: 'color',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
supportedChannels: vocabulary_1.RULE_CHANNELS,
|
|
68
|
+
supportedNodeKinds: vocabulary_1.RULE_NODE_KINDS,
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=visualization-grammar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visualization-grammar.js","sourceRoot":"","sources":["../../src/lib/charts/visualization-grammar.ts"],"names":[],"mappings":";;;AAAA,gDAA8D;AAE9D;;;;;;GAMG;AACU,QAAA,gCAAgC,GAAG;IAC9C,eAAe,EAAE,CAAC;IAClB,eAAe,EAAE,uCAAuC;IACxD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,QAAQ;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,CAAC,QAAQ,CAAC;YACtB,OAAO,EAAE,OAAO;SACjB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC;YAC5C,OAAO,EAAE,mBAAmB;SAC7B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,CAAC,mBAAmB,CAAC;YACjC,OAAO,EAAE,YAAY;YACrB,kBAAkB,EAAE,OAAO;SAC5B;KACF;IACD,iBAAiB,EAAE,0BAAa;IAChC,kBAAkB,EAAE,4BAAe;CAC3B,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { RULE_CHANNELS, RULE_NODE_KINDS } from "./vocabulary.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Machine-readable authoring surface for chart visualization primitives.
|
|
4
|
+
*
|
|
5
|
+
* The SDK build serializes this registry to `capabilities.json`. Keep the
|
|
6
|
+
* registry aligned with the public builders and the serialized-node schema;
|
|
7
|
+
* contract tests enforce both relationships.
|
|
8
|
+
*/
|
|
9
|
+
export const visualizationGrammarCapabilities = {
|
|
10
|
+
contractVersion: 1,
|
|
11
|
+
moduleSpecifier: 'npm:@rippling/rippling-sdk/lib/charts',
|
|
12
|
+
builders: {
|
|
13
|
+
value: {
|
|
14
|
+
kind: 'input',
|
|
15
|
+
returns: 'number',
|
|
16
|
+
},
|
|
17
|
+
literal: {
|
|
18
|
+
kind: 'literal',
|
|
19
|
+
parameters: ['scalar'],
|
|
20
|
+
returns: 'value',
|
|
21
|
+
},
|
|
22
|
+
equals: {
|
|
23
|
+
kind: 'comparison',
|
|
24
|
+
parameters: ['value', 'value'],
|
|
25
|
+
returns: 'condition',
|
|
26
|
+
},
|
|
27
|
+
isNot: {
|
|
28
|
+
kind: 'comparison',
|
|
29
|
+
parameters: ['value', 'value'],
|
|
30
|
+
returns: 'condition',
|
|
31
|
+
},
|
|
32
|
+
lessThan: {
|
|
33
|
+
kind: 'comparison',
|
|
34
|
+
parameters: ['value', 'value'],
|
|
35
|
+
returns: 'condition',
|
|
36
|
+
},
|
|
37
|
+
greaterThan: {
|
|
38
|
+
kind: 'comparison',
|
|
39
|
+
parameters: ['value', 'value'],
|
|
40
|
+
returns: 'condition',
|
|
41
|
+
},
|
|
42
|
+
lessOrEqual: {
|
|
43
|
+
kind: 'comparison',
|
|
44
|
+
parameters: ['value', 'value'],
|
|
45
|
+
returns: 'condition',
|
|
46
|
+
},
|
|
47
|
+
greaterOrEqual: {
|
|
48
|
+
kind: 'comparison',
|
|
49
|
+
parameters: ['value', 'value'],
|
|
50
|
+
returns: 'condition',
|
|
51
|
+
},
|
|
52
|
+
when: {
|
|
53
|
+
kind: 'conditional',
|
|
54
|
+
parameters: ['condition', 'color', 'color?'],
|
|
55
|
+
returns: 'conditional-color',
|
|
56
|
+
},
|
|
57
|
+
color: {
|
|
58
|
+
kind: 'channel',
|
|
59
|
+
parameters: ['conditional-color'],
|
|
60
|
+
returns: 'color-rule',
|
|
61
|
+
placeholderChannel: 'color',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
supportedChannels: RULE_CHANNELS,
|
|
65
|
+
supportedNodeKinds: RULE_NODE_KINDS,
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=visualization-grammar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visualization-grammar.mjs","sourceRoot":"","sources":["../../src/lib/charts/visualization-grammar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,yBAAqB;AAE9D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,eAAe,EAAE,CAAC;IAClB,eAAe,EAAE,uCAAuC;IACxD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,QAAQ;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,CAAC,QAAQ,CAAC;YACtB,OAAO,EAAE,OAAO;SACjB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,YAAY;YAClB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;YAC9B,OAAO,EAAE,WAAW;SACrB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC;YAC5C,OAAO,EAAE,mBAAmB;SAC7B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,CAAC,mBAAmB,CAAC;YACjC,OAAO,EAAE,YAAY;YACrB,kBAAkB,EAAE,OAAO;SAC5B;KACF;IACD,iBAAiB,EAAE,aAAa;IAChC,kBAAkB,EAAE,eAAe;CAC3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Runtime constants shared by the schema, capability manifest, and types. */
|
|
2
|
+
export declare const EQUALITY_COMPARISON_KINDS: readonly ["equals", "isNot"];
|
|
3
|
+
export declare const NUMERIC_COMPARISON_KINDS: readonly ["lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual"];
|
|
4
|
+
export declare const COMPARISON_KINDS: readonly ["equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual"];
|
|
5
|
+
export declare const RULE_NODE_KINDS: readonly ["literal", "value", "equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual", "ifElse"];
|
|
6
|
+
export declare const RULE_CHANNELS: readonly ["color"];
|
|
7
|
+
//# sourceMappingURL=vocabulary.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.d.mts","sourceRoot":"","sources":["../../src/lib/charts/vocabulary.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,8BAA+B,CAAC;AACtE,eAAO,MAAM,wBAAwB,uEAAwE,CAAC;AAC9G,eAAO,MAAM,gBAAgB,0FAAuE,CAAC;AAErG,eAAO,MAAM,eAAe,wHAA+D,CAAC;AAC5F,eAAO,MAAM,aAAa,oBAAqB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Runtime constants shared by the schema, capability manifest, and types. */
|
|
2
|
+
export declare const EQUALITY_COMPARISON_KINDS: readonly ["equals", "isNot"];
|
|
3
|
+
export declare const NUMERIC_COMPARISON_KINDS: readonly ["lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual"];
|
|
4
|
+
export declare const COMPARISON_KINDS: readonly ["equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual"];
|
|
5
|
+
export declare const RULE_NODE_KINDS: readonly ["literal", "value", "equals", "isNot", "lessThan", "greaterThan", "lessOrEqual", "greaterOrEqual", "ifElse"];
|
|
6
|
+
export declare const RULE_CHANNELS: readonly ["color"];
|
|
7
|
+
//# sourceMappingURL=vocabulary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../../src/lib/charts/vocabulary.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,8BAA+B,CAAC;AACtE,eAAO,MAAM,wBAAwB,uEAAwE,CAAC;AAC9G,eAAO,MAAM,gBAAgB,0FAAuE,CAAC;AAErG,eAAO,MAAM,eAAe,wHAA+D,CAAC;AAC5F,eAAO,MAAM,aAAa,oBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RULE_CHANNELS = exports.RULE_NODE_KINDS = exports.COMPARISON_KINDS = exports.NUMERIC_COMPARISON_KINDS = exports.EQUALITY_COMPARISON_KINDS = void 0;
|
|
4
|
+
/** Runtime constants shared by the schema, capability manifest, and types. */
|
|
5
|
+
exports.EQUALITY_COMPARISON_KINDS = ['equals', 'isNot'];
|
|
6
|
+
exports.NUMERIC_COMPARISON_KINDS = ['lessThan', 'greaterThan', 'lessOrEqual', 'greaterOrEqual'];
|
|
7
|
+
exports.COMPARISON_KINDS = [...exports.EQUALITY_COMPARISON_KINDS, ...exports.NUMERIC_COMPARISON_KINDS];
|
|
8
|
+
exports.RULE_NODE_KINDS = ['literal', 'value', ...exports.COMPARISON_KINDS, 'ifElse'];
|
|
9
|
+
exports.RULE_CHANNELS = ['color'];
|
|
10
|
+
//# sourceMappingURL=vocabulary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../../src/lib/charts/vocabulary.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AACjE,QAAA,yBAAyB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;AACzD,QAAA,wBAAwB,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,CAAU,CAAC;AACjG,QAAA,gBAAgB,GAAG,CAAC,GAAG,iCAAyB,EAAE,GAAG,gCAAwB,CAAU,CAAC;AAExF,QAAA,eAAe,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,wBAAgB,EAAE,QAAQ,CAAU,CAAC;AAC/E,QAAA,aAAa,GAAG,CAAC,OAAO,CAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Runtime constants shared by the schema, capability manifest, and types. */
|
|
2
|
+
export const EQUALITY_COMPARISON_KINDS = ['equals', 'isNot'];
|
|
3
|
+
export const NUMERIC_COMPARISON_KINDS = ['lessThan', 'greaterThan', 'lessOrEqual', 'greaterOrEqual'];
|
|
4
|
+
export const COMPARISON_KINDS = [...EQUALITY_COMPARISON_KINDS, ...NUMERIC_COMPARISON_KINDS];
|
|
5
|
+
export const RULE_NODE_KINDS = ['literal', 'value', ...COMPARISON_KINDS, 'ifElse'];
|
|
6
|
+
export const RULE_CHANNELS = ['color'];
|
|
7
|
+
//# sourceMappingURL=vocabulary.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.mjs","sourceRoot":"","sources":["../../src/lib/charts/vocabulary.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;AACtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,CAAU,CAAC;AAC9G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAG,yBAAyB,EAAE,GAAG,wBAAwB,CAAU,CAAC;AAErG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,GAAG,gBAAgB,EAAE,QAAQ,CAAU,CAAC;AAC5F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAO,CAAU,CAAC"}
|
package/lib/charts.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { color, equals, greaterOrEqual, greaterThan, isNot, isRulePlaceholder, lessOrEqual, lessThan, literal, value, when, type Operand, } from "./charts/builders.mjs";
|
|
1
|
+
export { color, equals, greaterOrEqual, greaterThan, isNot, isRulePlaceholder, lessOrEqual, lessThan, literal, value, when, type NumericOperand, type Operand, } from "./charts/builders.mjs";
|
|
2
2
|
export { evaluate } from "./charts/evaluate.mjs";
|
|
3
3
|
export { describe } from "./charts/describe.mjs";
|
|
4
|
-
export { chartRuleSchema, CHART_RULE_SCHEMA_ID } from "./charts/schema.mjs";
|
|
4
|
+
export { chartRuleSchema, CHART_RULE_SCHEMA_ID, parseChartRule } from "./charts/schema.mjs";
|
|
5
5
|
export { ChartRuleError, MalformedRuleError, RuleDepthError, RuleTypeError, UnknownNodeError, } from "./charts/errors.mjs";
|
|
6
|
-
export { CHART_RULE_CONTRACT_VERSION, MAX_RULE_DEPTH, type ChartRuleContractVersion, type ComparisonKind, type ComparisonNode, type Control, type ControlRole, type IfElseNode, type LiteralNode, type RefNode, type Rule, type RuleChannel, type RuleContext, type RuleNode, type RulePlaceholder, type RuleValue, type Scalar, } from "./charts/types.mjs";
|
|
6
|
+
export { CHART_RULE_CONTRACT_VERSION, MAX_RULE_DEPTH, type ChartRuleContractVersion, type ComparisonKind, type ComparisonNode, type ComparisonOperandNode, type ConditionNode, type Control, type ControlRole, type EqualityComparisonNode, type IfElseNode, type LiteralNode, type NumericComparisonNode, type NumericOperandNode, type ParsedRule, type RefNode, type Rule, type RuleChannel, type RuleContext, type RuleNode, type RulePlaceholder, type RuleValue, type Scalar, } from "./charts/types.mjs";
|
|
7
7
|
//# sourceMappingURL=charts.d.mts.map
|
package/lib/charts.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.d.mts","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,KAAK,OAAO,GACb,8BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"charts.d.mts","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,KAAK,cAAc,EACnB,KAAK,OAAO,GACb,8BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,4BAAwB;AACxF,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,GACjB,4BAAwB;AACzB,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,MAAM,GACZ,2BAAuB"}
|
package/lib/charts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { color, equals, greaterOrEqual, greaterThan, isNot, isRulePlaceholder, lessOrEqual, lessThan, literal, value, when, type Operand, } from "./charts/builders.js";
|
|
1
|
+
export { color, equals, greaterOrEqual, greaterThan, isNot, isRulePlaceholder, lessOrEqual, lessThan, literal, value, when, type NumericOperand, type Operand, } from "./charts/builders.js";
|
|
2
2
|
export { evaluate } from "./charts/evaluate.js";
|
|
3
3
|
export { describe } from "./charts/describe.js";
|
|
4
|
-
export { chartRuleSchema, CHART_RULE_SCHEMA_ID } from "./charts/schema.js";
|
|
4
|
+
export { chartRuleSchema, CHART_RULE_SCHEMA_ID, parseChartRule } from "./charts/schema.js";
|
|
5
5
|
export { ChartRuleError, MalformedRuleError, RuleDepthError, RuleTypeError, UnknownNodeError, } from "./charts/errors.js";
|
|
6
|
-
export { CHART_RULE_CONTRACT_VERSION, MAX_RULE_DEPTH, type ChartRuleContractVersion, type ComparisonKind, type ComparisonNode, type Control, type ControlRole, type IfElseNode, type LiteralNode, type RefNode, type Rule, type RuleChannel, type RuleContext, type RuleNode, type RulePlaceholder, type RuleValue, type Scalar, } from "./charts/types.js";
|
|
6
|
+
export { CHART_RULE_CONTRACT_VERSION, MAX_RULE_DEPTH, type ChartRuleContractVersion, type ComparisonKind, type ComparisonNode, type ComparisonOperandNode, type ConditionNode, type Control, type ControlRole, type EqualityComparisonNode, type IfElseNode, type LiteralNode, type NumericComparisonNode, type NumericOperandNode, type ParsedRule, type RefNode, type Rule, type RuleChannel, type RuleContext, type RuleNode, type RulePlaceholder, type RuleValue, type Scalar, } from "./charts/types.js";
|
|
7
7
|
//# sourceMappingURL=charts.d.ts.map
|
package/lib/charts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.d.ts","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,KAAK,OAAO,GACb,6BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,6BAA0B;AAC7C,OAAO,EAAE,QAAQ,EAAE,6BAA0B;AAC7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,2BAAwB;
|
|
1
|
+
{"version":3,"file":"charts.d.ts","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,EACJ,KAAK,cAAc,EACnB,KAAK,OAAO,GACb,6BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,6BAA0B;AAC7C,OAAO,EAAE,QAAQ,EAAE,6BAA0B;AAC7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,2BAAwB;AACxF,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,GACjB,2BAAwB;AACzB,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,MAAM,GACZ,0BAAuB"}
|
package/lib/charts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_RULE_DEPTH = exports.CHART_RULE_CONTRACT_VERSION = exports.UnknownNodeError = exports.RuleTypeError = exports.RuleDepthError = exports.MalformedRuleError = exports.ChartRuleError = exports.CHART_RULE_SCHEMA_ID = exports.chartRuleSchema = exports.describe = exports.evaluate = exports.when = exports.value = exports.literal = exports.lessThan = exports.lessOrEqual = exports.isRulePlaceholder = exports.isNot = exports.greaterThan = exports.greaterOrEqual = exports.equals = exports.color = void 0;
|
|
3
|
+
exports.MAX_RULE_DEPTH = exports.CHART_RULE_CONTRACT_VERSION = exports.UnknownNodeError = exports.RuleTypeError = exports.RuleDepthError = exports.MalformedRuleError = exports.ChartRuleError = exports.parseChartRule = exports.CHART_RULE_SCHEMA_ID = exports.chartRuleSchema = exports.describe = exports.evaluate = exports.when = exports.value = exports.literal = exports.lessThan = exports.lessOrEqual = exports.isRulePlaceholder = exports.isNot = exports.greaterThan = exports.greaterOrEqual = exports.equals = exports.color = void 0;
|
|
4
4
|
var builders_1 = require("./charts/builders.js");
|
|
5
5
|
Object.defineProperty(exports, "color", { enumerable: true, get: function () { return builders_1.color; } });
|
|
6
6
|
Object.defineProperty(exports, "equals", { enumerable: true, get: function () { return builders_1.equals; } });
|
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "describe", { enumerable: true, get: function ()
|
|
|
20
20
|
var schema_1 = require("./charts/schema.js");
|
|
21
21
|
Object.defineProperty(exports, "chartRuleSchema", { enumerable: true, get: function () { return schema_1.chartRuleSchema; } });
|
|
22
22
|
Object.defineProperty(exports, "CHART_RULE_SCHEMA_ID", { enumerable: true, get: function () { return schema_1.CHART_RULE_SCHEMA_ID; } });
|
|
23
|
+
Object.defineProperty(exports, "parseChartRule", { enumerable: true, get: function () { return schema_1.parseChartRule; } });
|
|
23
24
|
var errors_1 = require("./charts/errors.js");
|
|
24
25
|
Object.defineProperty(exports, "ChartRuleError", { enumerable: true, get: function () { return errors_1.ChartRuleError; } });
|
|
25
26
|
Object.defineProperty(exports, "MalformedRuleError", { enumerable: true, get: function () { return errors_1.MalformedRuleError; } });
|
package/lib/charts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.js","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"charts.js","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":";;;AAAA,iDAc2B;AAbzB,iGAAA,KAAK,OAAA;AACL,kGAAA,MAAM,OAAA;AACN,0GAAA,cAAc,OAAA;AACd,uGAAA,WAAW,OAAA;AACX,iGAAA,KAAK,OAAA;AACL,6GAAA,iBAAiB,OAAA;AACjB,uGAAA,WAAW,OAAA;AACX,oGAAA,QAAQ,OAAA;AACR,mGAAA,OAAO,OAAA;AACP,iGAAA,KAAK,OAAA;AACL,gGAAA,IAAI,OAAA;AAIN,iDAA6C;AAApC,oGAAA,QAAQ,OAAA;AACjB,iDAA6C;AAApC,oGAAA,QAAQ,OAAA;AACjB,6CAAwF;AAA/E,yGAAA,eAAe,OAAA;AAAE,8GAAA,oBAAoB,OAAA;AAAE,wGAAA,cAAc,OAAA;AAC9D,6CAMyB;AALvB,wGAAA,cAAc,OAAA;AACd,4GAAA,kBAAkB,OAAA;AAClB,wGAAA,cAAc,OAAA;AACd,uGAAA,aAAa,OAAA;AACb,0GAAA,gBAAgB,OAAA;AAElB,2CAwBwB;AAvBtB,oHAAA,2BAA2B,OAAA;AAC3B,uGAAA,cAAc,OAAA"}
|
package/lib/charts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { color, equals, greaterOrEqual, greaterThan, isNot, isRulePlaceholder, lessOrEqual, lessThan, literal, value, when, } from "./charts/builders.mjs";
|
|
2
2
|
export { evaluate } from "./charts/evaluate.mjs";
|
|
3
3
|
export { describe } from "./charts/describe.mjs";
|
|
4
|
-
export { chartRuleSchema, CHART_RULE_SCHEMA_ID } from "./charts/schema.mjs";
|
|
4
|
+
export { chartRuleSchema, CHART_RULE_SCHEMA_ID, parseChartRule } from "./charts/schema.mjs";
|
|
5
5
|
export { ChartRuleError, MalformedRuleError, RuleDepthError, RuleTypeError, UnknownNodeError, } from "./charts/errors.mjs";
|
|
6
6
|
export { CHART_RULE_CONTRACT_VERSION, MAX_RULE_DEPTH, } from "./charts/types.mjs";
|
|
7
7
|
//# sourceMappingURL=charts.mjs.map
|
package/lib/charts.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.mjs","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,
|
|
1
|
+
{"version":3,"file":"charts.mjs","sourceRoot":"","sources":["../src/lib/charts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,IAAI,GAGL,8BAA0B;AAC3B,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,QAAQ,EAAE,8BAA0B;AAC7C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,4BAAwB;AACxF,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,GACjB,4BAAwB;AACzB,OAAO,EACL,2BAA2B,EAC3B,cAAc,GAsBf,2BAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rippling/rippling-sdk",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.109",
|
|
4
4
|
"description": "The official TypeScript library for the Rippling SDK API",
|
|
5
5
|
"author": "Rippling SDK <no-reply@rippling.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"lint": "./scripts/lint",
|
|
25
25
|
"fix": "./scripts/format"
|
|
26
26
|
},
|
|
27
|
-
"dependencies": {
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"valibot": "1.5.0"
|
|
29
|
+
},
|
|
28
30
|
"overrides": {
|
|
29
31
|
"minimatch": "^9.0.5"
|
|
30
32
|
},
|