@stndrds/schema 1.0.0-alpha.304 → 1.0.0-alpha.307
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/{all-DCP_3Gfp.d.mts → all-B5F4Ucq4.d.mts} +47 -25
- package/dist/{all-CeFWLwRo.d.ts → all-D9yoIfEk.d.ts} +47 -25
- package/dist/{attributes-CJNqalP0.d.mts → attributes-B_khA3fi.d.mts} +12 -4
- package/dist/{attributes-CJNqalP0.d.ts → attributes-B_khA3fi.d.ts} +12 -4
- package/dist/chunk-D7GNAYHI.mjs +2 -0
- package/dist/chunk-GL4DMIU4.mjs +2 -0
- package/dist/chunk-INYZJR7M.js +2 -0
- package/dist/chunk-NJQVVPC5.js +2 -0
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/{helpers-DIWzq1cf.d.ts → helpers-BKinvyuR.d.ts} +3 -3
- package/dist/{helpers-BnyKRb4x.d.mts → helpers-BqSFb28c.d.mts} +3 -3
- package/dist/{index-DcXCAPHR.d.mts → index-BjQ1n6i2.d.mts} +21 -4
- package/dist/{index-B36J5GDI.d.ts → index-DkJ7IaQx.d.ts} +21 -4
- package/dist/index.d.mts +273 -40
- package/dist/index.d.ts +273 -40
- package/dist/index.js +19 -19
- package/dist/index.mjs +18 -18
- package/dist/{objects-DglxOigU.d.mts → objects-DLkL-wPr.d.mts} +1 -1
- package/dist/{objects-CfJvQbZc.d.ts → objects-F9rhbUPZ.d.ts} +1 -1
- package/dist/{types-Co8cq3dM.d.mts → types-B6oO_Fkh.d.mts} +1 -1
- package/dist/{types-CEwRsyh0.d.ts → types-ce2p4cgi.d.ts} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/validation/all.d.mts +6 -6
- package/dist/validation/all.d.ts +6 -6
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +3 -3
- package/dist/validation/config/index.d.ts +3 -3
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +4 -4
- package/dist/validation/object/index.d.ts +4 -4
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunk-CCB4E55H.mjs +0 -2
- package/dist/chunk-JKGRSRRX.js +0 -2
- package/dist/chunk-VY5UBDTO.js +0 -2
- package/dist/chunk-WBFUAEWU.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
-
import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-
|
|
2
|
+
import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-B_khA3fi.mjs';
|
|
3
3
|
|
|
4
4
|
interface DocumentLayout {
|
|
5
5
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconName } from '@stndrds/constants';
|
|
2
|
-
import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-
|
|
2
|
+
import { g as Uuid, A as Attribute, h as MigrationDefinition } from './attributes-B_khA3fi.js';
|
|
3
3
|
|
|
4
4
|
interface DocumentLayout {
|
|
5
5
|
/** Named sub-folders auto-created at the top of the record's drive when first used via attach --variant. */
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-
|
|
1
|
+
export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-B_khA3fi.mjs';
|
|
2
2
|
import '@stndrds/constants';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-
|
|
1
|
+
export { p as TenantId, aK as UserId, g as Uuid, aM as asTenantId, aN as asUserId, aO as canonicalStringify, aP as deepEqual, aQ as generateId, aS as indexBy } from './attributes-B_khA3fi.js';
|
|
2
2
|
import '@stndrds/constants';
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkNJQVVPC5_js=require('./chunk-NJQVVPC5.js');require('./chunk-GZUTZAPU.js'),require('./chunk-DPD6ZWL2.js');Object.defineProperty(exports,"asTenantId",{enumerable:true,get:function(){return chunkNJQVVPC5_js.f}});Object.defineProperty(exports,"asUserId",{enumerable:true,get:function(){return chunkNJQVVPC5_js.g}});Object.defineProperty(exports,"canonicalStringify",{enumerable:true,get:function(){return chunkNJQVVPC5_js.b}});Object.defineProperty(exports,"deepEqual",{enumerable:true,get:function(){return chunkNJQVVPC5_js.j}});Object.defineProperty(exports,"generateId",{enumerable:true,get:function(){return chunkNJQVVPC5_js.h}});Object.defineProperty(exports,"indexBy",{enumerable:true,get:function(){return chunkNJQVVPC5_js.i}});
|
package/dist/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f as asTenantId,g as asUserId,b as canonicalStringify,j as deepEqual,h as generateId,i as indexBy}from'./chunk-
|
|
1
|
+
export{f as asTenantId,g as asUserId,b as canonicalStringify,j as deepEqual,h as generateId,i as indexBy}from'./chunk-GL4DMIU4.mjs';import'./chunk-55SG6IBQ.mjs';import'./chunk-KSPJP74K.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-B6oO_Fkh.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.mjs';
|
|
3
|
-
export {
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-
|
|
5
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-
|
|
6
|
-
import '../attributes-
|
|
3
|
+
export { ae as multiselectOptionWriteSchema, af as parseAttributeConfig, ag as parseAttributeConfigForCreate, ah as parseAttributeConfigForUpdate, ai as selectOptionWriteSchema, aj as statusGroupSchema, ak as statusOptionWriteSchema } from '../index-BjQ1n6i2.mjs';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-B5F4Ucq4.mjs';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-BqSFb28c.mjs';
|
|
6
|
+
import '../attributes-B_khA3fi.mjs';
|
|
7
7
|
import '@stndrds/constants';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../objects-
|
|
9
|
+
import '../objects-DLkL-wPr.mjs';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { V as ValidationMessages } from '../types-
|
|
1
|
+
export { V as ValidationMessages } from '../types-ce2p4cgi.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, formatZodErrors } from './core/index.js';
|
|
3
|
-
export {
|
|
4
|
-
export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-
|
|
5
|
-
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-
|
|
6
|
-
import '../attributes-
|
|
3
|
+
export { ae as multiselectOptionWriteSchema, af as parseAttributeConfig, ag as parseAttributeConfigForCreate, ah as parseAttributeConfigForUpdate, ai as selectOptionWriteSchema, aj as statusGroupSchema, ak as statusOptionWriteSchema } from '../index-DkJ7IaQx.js';
|
|
4
|
+
export { S as SCHEMA_LIMITS, c as colorIdSchema, e as detailTabSchema, f as detailViewConfigSchema, n as iconNameSchema, o as inverseSourceSchema, p as listViewConfigSchema, q as listViewTabSchema, r as parseViewConfig, s as relationSourceSchema, u as tableSourceSchema, v as viewConfigByTypeSchema } from '../all-D9yoIfEk.js';
|
|
5
|
+
export { a as createFormAttributeValidator, r as rejectUnknownAttributesOrThrow, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../helpers-BKinvyuR.js';
|
|
6
|
+
import '../attributes-B_khA3fi.js';
|
|
7
7
|
import '@stndrds/constants';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../objects-
|
|
9
|
+
import '../objects-F9rhbUPZ.js';
|
package/dist/validation/all.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkINYZJR7M_js=require('../chunk-INYZJR7M.js'),chunkPKJYAV5U_js=require('../chunk-PKJYAV5U.js'),chunkC4LR6U4E_js=require('../chunk-C4LR6U4E.js');require('../chunk-LWSOKXPF.js'),require('../chunk-XXTKNIBK.js'),require('../chunk-JOS2XMXY.js'),require('../chunk-47KVYDKG.js'),require('../chunk-KLR22JMC.js'),require('../chunk-GXSNLYRR.js'),require('../chunk-UXISKZ5Y.js'),require('../chunk-XUAP7KWK.js'),require('../chunk-JVLH3DVZ.js'),require('../chunk-LSCBR4VS.js'),require('../chunk-23KPS33D.js'),require('../chunk-GZUTZAPU.js'),require('../chunk-XHEBV2HE.js'),require('../chunk-SLYRQ72J.js');var chunkJFSQ24XR_js=require('../chunk-JFSQ24XR.js');require('../chunk-DPD6ZWL2.js');Object.defineProperty(exports,"detailTabSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.ja}});Object.defineProperty(exports,"detailViewConfigSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.na}});Object.defineProperty(exports,"inverseSourceSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.ha}});Object.defineProperty(exports,"listViewConfigSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.ma}});Object.defineProperty(exports,"listViewTabSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.la}});Object.defineProperty(exports,"parseViewConfig",{enumerable:true,get:function(){return chunkINYZJR7M_js.qa}});Object.defineProperty(exports,"relationSourceSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.ga}});Object.defineProperty(exports,"tableSourceSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.ia}});Object.defineProperty(exports,"viewConfigByTypeSchema",{enumerable:true,get:function(){return chunkINYZJR7M_js.pa}});Object.defineProperty(exports,"SCHEMA_LIMITS",{enumerable:true,get:function(){return chunkPKJYAV5U_js.a}});Object.defineProperty(exports,"colorIdSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.b}});Object.defineProperty(exports,"iconNameSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.c}});Object.defineProperty(exports,"multiselectOptionWriteSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.h}});Object.defineProperty(exports,"parseAttributeConfig",{enumerable:true,get:function(){return chunkPKJYAV5U_js.l}});Object.defineProperty(exports,"parseAttributeConfigForCreate",{enumerable:true,get:function(){return chunkPKJYAV5U_js.n}});Object.defineProperty(exports,"parseAttributeConfigForUpdate",{enumerable:true,get:function(){return chunkPKJYAV5U_js.o}});Object.defineProperty(exports,"selectOptionWriteSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.g}});Object.defineProperty(exports,"statusGroupSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.f}});Object.defineProperty(exports,"statusOptionWriteSchema",{enumerable:true,get:function(){return chunkPKJYAV5U_js.i}});Object.defineProperty(exports,"createFormAttributeValidator",{enumerable:true,get:function(){return chunkC4LR6U4E_js.d}});Object.defineProperty(exports,"rejectUnknownAttributesOrThrow",{enumerable:true,get:function(){return chunkC4LR6U4E_js.l}});Object.defineProperty(exports,"validateDraft",{enumerable:true,get:function(){return chunkC4LR6U4E_js.j}});Object.defineProperty(exports,"validateDraftOrThrow",{enumerable:true,get:function(){return chunkC4LR6U4E_js.k}});Object.defineProperty(exports,"validateObject",{enumerable:true,get:function(){return chunkC4LR6U4E_js.h}});Object.defineProperty(exports,"validateObjectOrThrow",{enumerable:true,get:function(){return chunkC4LR6U4E_js.i}});Object.defineProperty(exports,"DEFAULT_VALIDATION_MESSAGES",{enumerable:true,get:function(){return chunkJFSQ24XR_js.a}});Object.defineProperty(exports,"formatZodErrors",{enumerable:true,get:function(){return chunkJFSQ24XR_js.b}});
|
package/dist/validation/all.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ja as detailTabSchema,na as detailViewConfigSchema,ha as inverseSourceSchema,ma as listViewConfigSchema,la as listViewTabSchema,qa as parseViewConfig,ga as relationSourceSchema,ia as tableSourceSchema,pa as viewConfigByTypeSchema}from'../chunk-
|
|
1
|
+
export{ja as detailTabSchema,na as detailViewConfigSchema,ha as inverseSourceSchema,ma as listViewConfigSchema,la as listViewTabSchema,qa as parseViewConfig,ga as relationSourceSchema,ia as tableSourceSchema,pa as viewConfigByTypeSchema}from'../chunk-D7GNAYHI.mjs';export{a as SCHEMA_LIMITS,b as colorIdSchema,c as iconNameSchema,h as multiselectOptionWriteSchema,l as parseAttributeConfig,n as parseAttributeConfigForCreate,o as parseAttributeConfigForUpdate,g as selectOptionWriteSchema,f as statusGroupSchema,i as statusOptionWriteSchema}from'../chunk-GKMHYCAM.mjs';export{d as createFormAttributeValidator,l as rejectUnknownAttributesOrThrow,j as validateDraft,k as validateDraftOrThrow,h as validateObject,i as validateObjectOrThrow}from'../chunk-TEHAV6HL.mjs';import'../chunk-GKXTXH4Y.mjs';import'../chunk-Q7TQCRSD.mjs';import'../chunk-WMQRTFOP.mjs';import'../chunk-4VCADZK4.mjs';import'../chunk-KYPEBOPW.mjs';import'../chunk-LB4TNMZU.mjs';import'../chunk-PFO7NWQW.mjs';import'../chunk-XMQV2WFY.mjs';import'../chunk-VKFLXFPP.mjs';import'../chunk-YIXNAWH6.mjs';import'../chunk-XRDP2Y4J.mjs';import'../chunk-55SG6IBQ.mjs';import'../chunk-O34B5KOW.mjs';import'../chunk-KG2ADZG6.mjs';export{a as DEFAULT_VALIDATION_MESSAGES,b as formatZodErrors}from'../chunk-4OTKOCGB.mjs';import'../chunk-KSPJP74K.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as CurrencyAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as CurrencyAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
type LocationShape = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
type LocationShape = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { c as MultiRelationAttribute, d as RelationAttribute, e as SingleRelationAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { R as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { R as RichtextAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { R as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { R as RichtextAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiselectAttribute, S as SelectAttribute, b as StatusAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FormulaAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FormulaAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { al as attributeConfigSchemas, am as getAttributeConfigSchema, an as getAttributeConfigWriteSchema, ae as multiselectOptionWriteSchema, af as parseAttributeConfig, ag as parseAttributeConfigForCreate, ah as parseAttributeConfigForUpdate, ai as selectOptionWriteSchema, aj as statusGroupSchema, ak as statusOptionWriteSchema } from '../../index-BjQ1n6i2.mjs';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../../attributes-
|
|
3
|
+
import '../../attributes-B_khA3fi.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
|
-
import '../../objects-
|
|
5
|
+
import '../../objects-DLkL-wPr.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { al as attributeConfigSchemas, am as getAttributeConfigSchema, an as getAttributeConfigWriteSchema, ae as multiselectOptionWriteSchema, af as parseAttributeConfig, ag as parseAttributeConfigForCreate, ah as parseAttributeConfigForUpdate, ai as selectOptionWriteSchema, aj as statusGroupSchema, ak as statusOptionWriteSchema } from '../../index-DkJ7IaQx.js';
|
|
2
2
|
import 'zod';
|
|
3
|
-
import '../../attributes-
|
|
3
|
+
import '../../attributes-B_khA3fi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
|
-
import '../../objects-
|
|
5
|
+
import '../../objects-F9rhbUPZ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
2
|
+
export { a as ValidationResult } from '../../types-B6oO_Fkh.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-B_khA3fi.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
|
|
7
7
|
declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
-
export { a as ValidationResult } from '../../types-
|
|
1
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
2
|
+
export { a as ValidationResult } from '../../types-ce2p4cgi.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import '../../attributes-
|
|
4
|
+
import '../../attributes-B_khA3fi.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
6
|
|
|
7
7
|
declare const DEFAULT_VALIDATION_MESSAGES: ValidationMessages;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-BqSFb28c.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../objects-
|
|
4
|
-
import '../../attributes-
|
|
3
|
+
import { O as ObjectDefinition } from '../../objects-DLkL-wPr.mjs';
|
|
4
|
+
import '../../attributes-B_khA3fi.mjs';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
|
-
import '../../types-
|
|
6
|
+
import '../../types-B6oO_Fkh.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a Zod schema for an entire object
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-
|
|
1
|
+
export { c as createAttributeValidator, a as createFormAttributeValidator, g as getMissingRequiredAttributes, i as isRecordComplete, r as rejectUnknownAttributesOrThrow, v as validateAttribute, b as validateDraft, d as validateDraftOrThrow, e as validateObject, f as validateObjectOrThrow } from '../../helpers-BKinvyuR.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { O as ObjectDefinition } from '../../objects-
|
|
4
|
-
import '../../attributes-
|
|
3
|
+
import { O as ObjectDefinition } from '../../objects-F9rhbUPZ.js';
|
|
4
|
+
import '../../attributes-B_khA3fi.js';
|
|
5
5
|
import '@stndrds/constants';
|
|
6
|
-
import '../../types-
|
|
6
|
+
import '../../types-ce2p4cgi.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a Zod schema for an entire object
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CheckboxAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CheckboxAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CheckboxAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CheckboxAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as DateAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { D as DateAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { N as NumberAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { N as NumberAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-B_khA3fi.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B6oO_Fkh.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { T as TextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { T as TextAttribute } from '../../attributes-B_khA3fi.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-ce2p4cgi.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stndrds/schema",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.307",
|
|
4
4
|
"description": "Standard schema definitions and utilities",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@standard-schema/spec": "^1.1.0",
|
|
128
128
|
"libphonenumber-js": "^1.12.31",
|
|
129
129
|
"zod": "^4.2.1",
|
|
130
|
-
"@stndrds/constants": "1.0.0-alpha.
|
|
130
|
+
"@stndrds/constants": "1.0.0-alpha.307"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
133
|
"@types/node": "^25.0.3",
|
package/dist/chunk-CCB4E55H.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {h as h$1,b as b$1,a as a$1}from'./chunk-55SG6IBQ.mjs';import {a}from'./chunk-KSPJP74K.mjs';/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
var d=class d extends b$1{constructor(){super("Value must contain only JSON-compatible values",a$1.VALIDATION_FAILED),this.name="NonJsonValueError";}};a(d,"NonJsonValueError");var p=d,f=a(()=>new p,"nonJsonValue"),g={refuseNonJson:true,refuseUnrepresentableType:true,readAccessors:false,unrepresentable:f,circular:f},w={refuseNonJson:false,refuseUnrepresentableType:false,readAccessors:false,unrepresentable:f,circular:f},h={refuseNonJson:false,refuseUnrepresentableType:true,readAccessors:true,unrepresentable:a(e=>new h$1(`Cannot canonicalize value of type ${typeof e}`,[]),"unrepresentable"),circular:a(()=>new h$1("Cannot canonicalize circular structure",[]),"circular")};function O(e){let n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}a(O,"isPlainObject");function J(e,n){if(Object.getPrototypeOf(e)!==Array.prototype||Object.getOwnPropertySymbols(e).length>0)throw n.unrepresentable(e);let r=Object.getOwnPropertyNames(e);if(r.length!==e.length+1||!r.includes("length"))throw n.unrepresentable(e);for(let s=0;s<e.length;s+=1){let t=Object.getOwnPropertyDescriptor(e,String(s));if(t===void 0||!("value"in t)||t.enumerable!==true)throw n.unrepresentable(e)}}a(J,"assertArrayShape");function m(e,n){if(n.refuseNonJson&&Object.getOwnPropertySymbols(e).length>0)throw n.unrepresentable(e);let r=[];for(let s of Object.getOwnPropertyNames(e)){let t=Object.getOwnPropertyDescriptor(e,s);if(t===void 0||t.enumerable!==true){if(n.refuseNonJson)throw n.unrepresentable(e);continue}if(!("value"in t)){if(n.refuseNonJson)throw n.unrepresentable(e);if(!n.readAccessors)continue;let i=e[s];if(i===void 0)continue;r.push([s,i]);continue}t.value!==void 0&&r.push([s,t.value]);}return r.sort(([s],[t])=>s<t?-1:s>t?1:0)}a(m,"sortedEntries");function u(e,n,r){if(e===null)return "null";if(e===void 0){if(n.refuseNonJson)throw n.unrepresentable(e);return "null"}if(typeof e=="boolean"||typeof e=="string")return JSON.stringify(e);if(typeof e=="number"){if(Number.isFinite(e))return JSON.stringify(e);if(n.refuseNonJson)throw n.unrepresentable(e);return "null"}if(typeof e!="object"){if(n.refuseNonJson||n.refuseUnrepresentableType)throw n.unrepresentable(e);return JSON.stringify(String(e))}if(r.has(e))throw n.circular();r.add(e);try{if(Array.isArray(e)){n.refuseNonJson&&J(e,n);let t=[];for(let i=0;i<e.length;i+=1)t.push(u(e[i],n,r));return `[${t.join(",")}]`}if(n.refuseNonJson&&!O(e))throw n.unrepresentable(e);return `{${m(e,n).map(([t,i])=>`${JSON.stringify(t)}:${u(i,n,r)}`).join(",")}}`}finally{r.delete(e);}}a(u,"serialize");function j(e){return u(e,h,new Set)}a(j,"canonicalStringify");function b(e){return u(e,w,new Set)}a(b,"serializeStableJson");function S(e){return u(e,g,new Set)}a(S,"serializeCanonicalJson");function A(e,n){return b(e)===b(n)}a(A,"sameStableValue");function I(e){return e}a(I,"asTenantId");function P(e){return e}a(P,"asUserId");function U(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=Math.random()*16|0;return (e==="x"?n:n&3|8).toString(16)})}a(U,"generateId");function E(e,n){return new Map(e.map(r=>[n(r),r]))}a(E,"indexBy");function x(e,n){if(e===n)return true;if(e==null||n==null||typeof e!=typeof n)return false;if(Array.isArray(e))return !Array.isArray(n)||e.length!==n.length?false:e.every((r,s)=>x(r,n[s]));if(typeof e=="object"&&typeof n=="object"){let r=e,s=n,t=Object.keys(r),i=Object.keys(s);return t.length!==i.length?false:t.every(a=>a in s&&x(r[a],s[a]))}return false}a(x,"deepEqual");export{p as a,j as b,b as c,S as d,A as e,I as f,P as g,U as h,E as i,x as j};
|
package/dist/chunk-JKGRSRRX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkGZUTZAPU_js=require('./chunk-GZUTZAPU.js'),chunkDPD6ZWL2_js=require('./chunk-DPD6ZWL2.js');/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
var d=class d extends chunkGZUTZAPU_js.b{constructor(){super("Value must contain only JSON-compatible values",chunkGZUTZAPU_js.a.VALIDATION_FAILED),this.name="NonJsonValueError";}};chunkDPD6ZWL2_js.a(d,"NonJsonValueError");var p=d,f=chunkDPD6ZWL2_js.a(()=>new p,"nonJsonValue"),g={refuseNonJson:true,refuseUnrepresentableType:true,readAccessors:false,unrepresentable:f,circular:f},w={refuseNonJson:false,refuseUnrepresentableType:false,readAccessors:false,unrepresentable:f,circular:f},h={refuseNonJson:false,refuseUnrepresentableType:true,readAccessors:true,unrepresentable:chunkDPD6ZWL2_js.a(e=>new chunkGZUTZAPU_js.h(`Cannot canonicalize value of type ${typeof e}`,[]),"unrepresentable"),circular:chunkDPD6ZWL2_js.a(()=>new chunkGZUTZAPU_js.h("Cannot canonicalize circular structure",[]),"circular")};function O(e){let n=Object.getPrototypeOf(e);return n===Object.prototype||n===null}chunkDPD6ZWL2_js.a(O,"isPlainObject");function J(e,n){if(Object.getPrototypeOf(e)!==Array.prototype||Object.getOwnPropertySymbols(e).length>0)throw n.unrepresentable(e);let r=Object.getOwnPropertyNames(e);if(r.length!==e.length+1||!r.includes("length"))throw n.unrepresentable(e);for(let s=0;s<e.length;s+=1){let t=Object.getOwnPropertyDescriptor(e,String(s));if(t===void 0||!("value"in t)||t.enumerable!==true)throw n.unrepresentable(e)}}chunkDPD6ZWL2_js.a(J,"assertArrayShape");function m(e,n){if(n.refuseNonJson&&Object.getOwnPropertySymbols(e).length>0)throw n.unrepresentable(e);let r=[];for(let s of Object.getOwnPropertyNames(e)){let t=Object.getOwnPropertyDescriptor(e,s);if(t===void 0||t.enumerable!==true){if(n.refuseNonJson)throw n.unrepresentable(e);continue}if(!("value"in t)){if(n.refuseNonJson)throw n.unrepresentable(e);if(!n.readAccessors)continue;let i=e[s];if(i===void 0)continue;r.push([s,i]);continue}t.value!==void 0&&r.push([s,t.value]);}return r.sort(([s],[t])=>s<t?-1:s>t?1:0)}chunkDPD6ZWL2_js.a(m,"sortedEntries");function u(e,n,r){if(e===null)return "null";if(e===void 0){if(n.refuseNonJson)throw n.unrepresentable(e);return "null"}if(typeof e=="boolean"||typeof e=="string")return JSON.stringify(e);if(typeof e=="number"){if(Number.isFinite(e))return JSON.stringify(e);if(n.refuseNonJson)throw n.unrepresentable(e);return "null"}if(typeof e!="object"){if(n.refuseNonJson||n.refuseUnrepresentableType)throw n.unrepresentable(e);return JSON.stringify(String(e))}if(r.has(e))throw n.circular();r.add(e);try{if(Array.isArray(e)){n.refuseNonJson&&J(e,n);let t=[];for(let i=0;i<e.length;i+=1)t.push(u(e[i],n,r));return `[${t.join(",")}]`}if(n.refuseNonJson&&!O(e))throw n.unrepresentable(e);return `{${m(e,n).map(([t,i])=>`${JSON.stringify(t)}:${u(i,n,r)}`).join(",")}}`}finally{r.delete(e);}}chunkDPD6ZWL2_js.a(u,"serialize");function j(e){return u(e,h,new Set)}chunkDPD6ZWL2_js.a(j,"canonicalStringify");function b(e){return u(e,w,new Set)}chunkDPD6ZWL2_js.a(b,"serializeStableJson");function S(e){return u(e,g,new Set)}chunkDPD6ZWL2_js.a(S,"serializeCanonicalJson");function A(e,n){return b(e)===b(n)}chunkDPD6ZWL2_js.a(A,"sameStableValue");function I(e){return e}chunkDPD6ZWL2_js.a(I,"asTenantId");function P(e){return e}chunkDPD6ZWL2_js.a(P,"asUserId");function U(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let n=Math.random()*16|0;return (e==="x"?n:n&3|8).toString(16)})}chunkDPD6ZWL2_js.a(U,"generateId");function E(e,n){return new Map(e.map(r=>[n(r),r]))}chunkDPD6ZWL2_js.a(E,"indexBy");function x(e,n){if(e===n)return true;if(e==null||n==null||typeof e!=typeof n)return false;if(Array.isArray(e))return !Array.isArray(n)||e.length!==n.length?false:e.every((r,s)=>x(r,n[s]));if(typeof e=="object"&&typeof n=="object"){let r=e,s=n,t=Object.keys(r),i=Object.keys(s);return t.length!==i.length?false:t.every(a=>a in s&&x(r[a],s[a]))}return false}chunkDPD6ZWL2_js.a(x,"deepEqual");exports.a=p;exports.b=j;exports.c=b;exports.d=S;exports.e=A;exports.f=I;exports.g=P;exports.h=U;exports.i=E;exports.j=x;
|