@stndrds/schema 0.1.0-alpha.21 → 0.1.0-alpha.23
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/dist/chunk-7GLSGSUP.mjs +9456 -0
- package/dist/chunk-AZTBTKHP.mjs +9861 -0
- package/dist/chunk-B74KNXDP.mjs +9457 -0
- package/dist/chunk-CVFKFFCX.mjs +9912 -0
- package/dist/chunk-DXVIUNQT.mjs +9881 -0
- package/dist/chunk-EJB2V42F.mjs +9778 -0
- package/dist/chunk-GP2BONBI.mjs +9493 -0
- package/dist/chunk-H2KOC7F5.mjs +9549 -0
- package/dist/chunk-HXLOIN36.mjs +9893 -0
- package/dist/chunk-HYW67ZP6.mjs +9500 -0
- package/dist/chunk-IKUIWNHZ.mjs +9460 -0
- package/dist/chunk-JAWKNHY6.mjs +9553 -0
- package/dist/chunk-KT4UPBZR.mjs +9892 -0
- package/dist/chunk-NBCCRCJB.mjs +9547 -0
- package/dist/chunk-NN7Y3B3A.mjs +9859 -0
- package/dist/chunk-SBEZDUNH.mjs +9549 -0
- package/dist/chunk-TTZ3TWYP.mjs +9583 -0
- package/dist/chunk-UTZTDUIK.mjs +9818 -0
- package/dist/index.d.mts +172 -17
- package/dist/index.d.ts +172 -17
- package/dist/index.js +977 -512
- package/dist/index.mjs +71 -23
- package/dist/runtime-BFOdkIqK.d.mts +7644 -0
- package/dist/runtime-BFOdkIqK.d.ts +7644 -0
- package/dist/runtime-BI_wXiVl.d.mts +8043 -0
- package/dist/runtime-BI_wXiVl.d.ts +8043 -0
- package/dist/runtime-BZZRu7A1.d.mts +7083 -0
- package/dist/runtime-BZZRu7A1.d.ts +7083 -0
- package/dist/runtime-BlcFbbeG.d.mts +8035 -0
- package/dist/runtime-BlcFbbeG.d.ts +8035 -0
- package/dist/runtime-BleOubTG.d.mts +7236 -0
- package/dist/runtime-BleOubTG.d.ts +7236 -0
- package/dist/runtime-CC4VRtUK.d.mts +7422 -0
- package/dist/runtime-CC4VRtUK.d.ts +7422 -0
- package/dist/runtime-CKLGO3Jk.d.mts +7632 -0
- package/dist/runtime-CKLGO3Jk.d.ts +7632 -0
- package/dist/runtime-CjhnsVyg.d.mts +7668 -0
- package/dist/runtime-CjhnsVyg.d.ts +7668 -0
- package/dist/runtime-CmYcicVr.d.mts +7083 -0
- package/dist/runtime-CmYcicVr.d.ts +7083 -0
- package/dist/runtime-D01tNFxT.d.mts +7418 -0
- package/dist/runtime-D01tNFxT.d.ts +7418 -0
- package/dist/runtime-DWCd3xCL.d.mts +7632 -0
- package/dist/runtime-DWCd3xCL.d.ts +7632 -0
- package/dist/runtime-DbryZGqb.d.mts +8037 -0
- package/dist/runtime-DbryZGqb.d.ts +8037 -0
- package/dist/runtime-DdkNFkKd.d.mts +7185 -0
- package/dist/runtime-DdkNFkKd.d.ts +7185 -0
- package/dist/runtime-DnnW72ZF.d.mts +7451 -0
- package/dist/runtime-DnnW72ZF.d.ts +7451 -0
- package/dist/runtime-DrrCWvBr.d.mts +7451 -0
- package/dist/runtime-DrrCWvBr.d.ts +7451 -0
- package/dist/runtime-UYkiPdud.d.mts +8047 -0
- package/dist/runtime-UYkiPdud.d.ts +8047 -0
- package/dist/runtime-g7XZnqGw.d.mts +7452 -0
- package/dist/runtime-g7XZnqGw.d.ts +7452 -0
- package/dist/runtime-jnV5WCS6.d.mts +8047 -0
- package/dist/runtime-jnV5WCS6.d.ts +8047 -0
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +855 -466
- package/dist/runtime.mjs +29 -3
- package/package.json +2 -2
package/dist/runtime.mjs
CHANGED
|
@@ -11,6 +11,8 @@ import {
|
|
|
11
11
|
NoopHookRegistry,
|
|
12
12
|
ObjectSchemaService,
|
|
13
13
|
PermissionService,
|
|
14
|
+
PolicyRegistry,
|
|
15
|
+
PolicyViolationError,
|
|
14
16
|
QueryBuilder,
|
|
15
17
|
QueryMultipleResultsError,
|
|
16
18
|
QueryNoResultError,
|
|
@@ -20,6 +22,9 @@ import {
|
|
|
20
22
|
RollupScheduler,
|
|
21
23
|
RollupService,
|
|
22
24
|
SHORTCUT_TO_FILTER_OPERATOR,
|
|
25
|
+
TenantAwareRepository,
|
|
26
|
+
TenantAwareService,
|
|
27
|
+
TenantContextError,
|
|
23
28
|
UserProfileService,
|
|
24
29
|
UserService,
|
|
25
30
|
ViewService,
|
|
@@ -27,6 +32,7 @@ import {
|
|
|
27
32
|
createDefaultState,
|
|
28
33
|
createMockAdapter,
|
|
29
34
|
createQueryBuilder,
|
|
35
|
+
defaultPolicyRegistry,
|
|
30
36
|
enrichValuesWithSelectLabels,
|
|
31
37
|
evaluateFormula,
|
|
32
38
|
evaluateFormulaAttribute,
|
|
@@ -41,18 +47,24 @@ import {
|
|
|
41
47
|
formatFormulaResult,
|
|
42
48
|
formatRecord,
|
|
43
49
|
formatRecords,
|
|
50
|
+
getContext,
|
|
44
51
|
getPathDepth,
|
|
45
52
|
getRelationPath,
|
|
46
53
|
getSyncPreview,
|
|
47
54
|
getTargetAttributeName,
|
|
55
|
+
getTenantId,
|
|
56
|
+
getUserId,
|
|
48
57
|
getViewSyncPreview,
|
|
58
|
+
hasContext,
|
|
49
59
|
hasRelationReferences,
|
|
50
60
|
isLabelExpression,
|
|
61
|
+
notesPolicy,
|
|
51
62
|
parsePath,
|
|
52
63
|
pathHasManyCardinality,
|
|
53
64
|
renderLabelExpression,
|
|
54
65
|
resolveMultiplePaths,
|
|
55
66
|
resolveSingleValue,
|
|
67
|
+
runWithContext,
|
|
56
68
|
syncAll,
|
|
57
69
|
syncNativeObjects,
|
|
58
70
|
syncNativeViews,
|
|
@@ -60,8 +72,9 @@ import {
|
|
|
60
72
|
validateFormulaExpression,
|
|
61
73
|
validatePath,
|
|
62
74
|
verifyNativeObjectsSync,
|
|
63
|
-
verifyNativeViewsSync
|
|
64
|
-
|
|
75
|
+
verifyNativeViewsSync,
|
|
76
|
+
withTenantContext
|
|
77
|
+
} from "./chunk-KT4UPBZR.mjs";
|
|
65
78
|
export {
|
|
66
79
|
AuditService,
|
|
67
80
|
DEFAULT_LABEL_FALLBACK,
|
|
@@ -75,6 +88,8 @@ export {
|
|
|
75
88
|
NoopHookRegistry,
|
|
76
89
|
ObjectSchemaService,
|
|
77
90
|
PermissionService,
|
|
91
|
+
PolicyRegistry,
|
|
92
|
+
PolicyViolationError,
|
|
78
93
|
QueryBuilder,
|
|
79
94
|
QueryMultipleResultsError,
|
|
80
95
|
QueryNoResultError,
|
|
@@ -84,6 +99,9 @@ export {
|
|
|
84
99
|
RollupScheduler,
|
|
85
100
|
RollupService,
|
|
86
101
|
SHORTCUT_TO_FILTER_OPERATOR,
|
|
102
|
+
TenantAwareRepository,
|
|
103
|
+
TenantAwareService,
|
|
104
|
+
TenantContextError,
|
|
87
105
|
UserProfileService,
|
|
88
106
|
UserService,
|
|
89
107
|
ViewService,
|
|
@@ -91,6 +109,7 @@ export {
|
|
|
91
109
|
createDefaultState,
|
|
92
110
|
createMockAdapter,
|
|
93
111
|
createQueryBuilder,
|
|
112
|
+
defaultPolicyRegistry,
|
|
94
113
|
enrichValuesWithSelectLabels,
|
|
95
114
|
evaluateFormula,
|
|
96
115
|
evaluateFormulaAttribute,
|
|
@@ -105,18 +124,24 @@ export {
|
|
|
105
124
|
formatFormulaResult,
|
|
106
125
|
formatRecord,
|
|
107
126
|
formatRecords,
|
|
127
|
+
getContext,
|
|
108
128
|
getPathDepth,
|
|
109
129
|
getRelationPath,
|
|
110
130
|
getSyncPreview,
|
|
111
131
|
getTargetAttributeName,
|
|
132
|
+
getTenantId,
|
|
133
|
+
getUserId,
|
|
112
134
|
getViewSyncPreview,
|
|
135
|
+
hasContext,
|
|
113
136
|
hasRelationReferences,
|
|
114
137
|
isLabelExpression,
|
|
138
|
+
notesPolicy,
|
|
115
139
|
parsePath,
|
|
116
140
|
pathHasManyCardinality,
|
|
117
141
|
renderLabelExpression,
|
|
118
142
|
resolveMultiplePaths,
|
|
119
143
|
resolveSingleValue,
|
|
144
|
+
runWithContext,
|
|
120
145
|
syncAll,
|
|
121
146
|
syncNativeObjects,
|
|
122
147
|
syncNativeViews,
|
|
@@ -124,5 +149,6 @@ export {
|
|
|
124
149
|
validateFormulaExpression,
|
|
125
150
|
validatePath,
|
|
126
151
|
verifyNativeObjectsSync,
|
|
127
|
-
verifyNativeViewsSync
|
|
152
|
+
verifyNativeViewsSync,
|
|
153
|
+
withTenantContext
|
|
128
154
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.23",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"expr-eval": "^2.0.2",
|
|
25
25
|
"zod": "^4.2.1",
|
|
26
|
-
"@stndrds/constants": "0.1.0-alpha.
|
|
26
|
+
"@stndrds/constants": "0.1.0-alpha.23"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@vitest/coverage-v8": "^2.1.9",
|