@stndrds/schema 1.0.0-alpha.299 → 1.0.0-alpha.302
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-A2bb4nkl.d.mts → all-CNJlNEG2.d.mts} +2 -2
- package/dist/{all-pjzlyj8G.d.ts → all-CarWsKlE.d.ts} +2 -2
- package/dist/chunk-55SG6IBQ.mjs +12 -0
- package/dist/{chunk-JCPAOH76.mjs → chunk-64F3CCLD.mjs} +1 -1
- package/dist/{chunk-5QAE5NPN.js → chunk-C4LR6U4E.js} +4 -4
- package/dist/{chunk-RFKNNT2Q.mjs → chunk-GKMHYCAM.mjs} +1 -1
- package/dist/chunk-GZUTZAPU.js +12 -0
- package/dist/{chunk-47EGJRW7.js → chunk-PKJYAV5U.js} +2 -2
- package/dist/{chunk-V43RXKN2.mjs → chunk-TEHAV6HL.mjs} +1 -1
- package/dist/chunk-VY5UBDTO.js +2 -0
- package/dist/chunk-WBFUAEWU.mjs +2 -0
- package/dist/{chunk-LQYUPOWB.js → chunk-ZMDMQAV5.js} +2 -2
- package/dist/exceptions.d.mts +21 -1
- package/dist/exceptions.d.ts +21 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{helpers-D4S6olXa.d.ts → helpers-BQ524PQe.d.ts} +1 -1
- package/dist/{helpers-BeDYpa3f.d.mts → helpers-MEZ69ERH.d.mts} +1 -1
- package/dist/{index-bLWyLCrA.d.ts → index-DL0rfjzZ.d.ts} +1 -1
- package/dist/{index-vpNijPxd.d.mts → index-Kd4QZ13G.d.mts} +1 -1
- package/dist/index.d.mts +28 -12
- package/dist/index.d.ts +28 -12
- package/dist/index.js +19 -19
- package/dist/index.mjs +19 -19
- package/dist/{objects-DyVm3xIi.d.ts → objects-D8tojUPV.d.ts} +4 -3
- package/dist/{objects-CmdtJjMN.d.mts → objects-DvZ79fW2.d.mts} +4 -3
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/validation/all.d.mts +4 -4
- package/dist/validation/all.d.ts +4 -4
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/dist/validation/config/index.d.mts +2 -2
- package/dist/validation/config/index.d.ts +2 -2
- package/dist/validation/config/index.js +1 -1
- package/dist/validation/config/index.mjs +1 -1
- package/dist/validation/object/index.d.mts +2 -2
- package/dist/validation/object/index.d.ts +2 -2
- package/dist/validation/object/index.js +1 -1
- package/dist/validation/object/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-72TQRSNX.js +0 -12
- package/dist/chunk-MQO25YZ6.mjs +0 -2
- package/dist/chunk-PT25FZ62.mjs +0 -12
- package/dist/chunk-VJYVPQ5E.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './types-M5L07ItN.mjs';
|
|
2
2
|
import './validation/core/index.mjs';
|
|
3
|
-
import { D as DetailViewConfig, i as ListViewConfig, V as ViewType, a as ViewConfig } from './index-
|
|
3
|
+
import { D as DetailViewConfig, i as ListViewConfig, V as ViewType, a as ViewConfig } from './index-Kd4QZ13G.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import './helpers-
|
|
5
|
+
import './helpers-MEZ69ERH.mjs';
|
|
6
6
|
|
|
7
7
|
declare const SCHEMA_LIMITS: {
|
|
8
8
|
readonly attributesPerObject: 300;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './types-R2f1GdCB.js';
|
|
2
2
|
import './validation/core/index.js';
|
|
3
|
-
import { D as DetailViewConfig, i as ListViewConfig, V as ViewType, a as ViewConfig } from './index-
|
|
3
|
+
import { D as DetailViewConfig, i as ListViewConfig, V as ViewType, a as ViewConfig } from './index-DL0rfjzZ.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import './helpers-
|
|
5
|
+
import './helpers-BQ524PQe.js';
|
|
6
6
|
|
|
7
7
|
declare const SCHEMA_LIMITS: {
|
|
8
8
|
readonly attributesPerObject: 300;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {a as a$1}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 _={UNKNOWN:"SCHEMA_UNKNOWN_ERROR",OBJECT_NOT_FOUND:"SCHEMA_OBJECT_NOT_FOUND",ATTRIBUTE_NOT_FOUND:"SCHEMA_ATTRIBUTE_NOT_FOUND",RECORD_NOT_FOUND:"SCHEMA_RECORD_NOT_FOUND",SOURCE_NOT_FOUND:"SCHEMA_SOURCE_NOT_FOUND",ROLE_NOT_FOUND:"SCHEMA_ROLE_NOT_FOUND",MEMORY_NOT_FOUND:"SCHEMA_MEMORY_NOT_FOUND",SCHEMA_PLAN_NOT_FOUND:"SCHEMA_PLAN_NOT_FOUND",VALIDATION_FAILED:"SCHEMA_VALIDATION_FAILED",INVALID_ATTRIBUTE_NAME:"SCHEMA_INVALID_ATTRIBUTE_NAME",INVALID_OBJECT_NAME:"SCHEMA_INVALID_OBJECT_NAME",RESERVED_OBJECT_NAME:"SCHEMA_RESERVED_OBJECT_NAME",PROTECTED_OBJECT:"SCHEMA_PROTECTED_OBJECT",PROTECTED_ATTRIBUTE:"SCHEMA_PROTECTED_ATTRIBUTE",PROTECTED_VIEW:"SCHEMA_PROTECTED_VIEW",PROTECTED_ROLE:"SCHEMA_PROTECTED_ROLE",FORBIDDEN:"SCHEMA_FORBIDDEN",ACCESS_DENIED:"SCHEMA_ACCESS_DENIED",WORKSPACE_INVARIANT:"SCHEMA_WORKSPACE_INVARIANT",STATE_GATE:"SCHEMA_STATE_GATE",ACTOR_CONTEXT_REQUIRED:"SCHEMA_ACTOR_CONTEXT_REQUIRED",CONNECTOR_AUTH_FAILED:"SCHEMA_CONNECTOR_AUTH_FAILED",CONNECTOR_INVALID_STATE:"SCHEMA_CONNECTOR_INVALID_STATE",CONNECTOR_GRANT_ORPHANED:"SCHEMA_CONNECTOR_GRANT_ORPHANED",SYNC_FAILED:"SCHEMA_SYNC_FAILED",SYNC_CONFLICT:"SCHEMA_SYNC_CONFLICT",SYNC_CASCADE:"SCHEMA_SYNC_CASCADE",ORPHAN_SYSTEM_ATTRIBUTE:"SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE",SYSTEM_ENTITY_IMMUTABLE:"SCHEMA_SYSTEM_ENTITY_IMMUTABLE",DESTRUCTIVE_NOT_ALLOWED:"SCHEMA_DESTRUCTIVE_NOT_ALLOWED",MIGRATION_TIMEOUT:"SCHEMA_MIGRATION_TIMEOUT",CHANGE_TYPE_NOT_SUPPORTED:"SCHEMA_CHANGE_TYPE_NOT_SUPPORTED",DUPLICATE:"SCHEMA_DUPLICATE",DUPLICATE_OBJECT:"SCHEMA_DUPLICATE_OBJECT",DUPLICATE_ATTRIBUTE:"SCHEMA_DUPLICATE_ATTRIBUTE",CONFLICT:"SCHEMA_CONFLICT",STORAGE_UPLOAD_FAILED:"SCHEMA_STORAGE_UPLOAD_FAILED",STORAGE_DOWNLOAD_FAILED:"SCHEMA_STORAGE_DOWNLOAD_FAILED",STORAGE_DELETE_FAILED:"SCHEMA_STORAGE_DELETE_FAILED",STORAGE_URL_FAILED:"SCHEMA_STORAGE_URL_FAILED",REPOSITORY_CREATE_FAILED:"SCHEMA_REPOSITORY_CREATE_FAILED",REPOSITORY_UPDATE_FAILED:"SCHEMA_REPOSITORY_UPDATE_FAILED",REPOSITORY_DELETE_FAILED:"SCHEMA_REPOSITORY_DELETE_FAILED",REPOSITORY_QUERY_FAILED:"SCHEMA_REPOSITORY_QUERY_FAILED",NOT_IMPLEMENTED:"SCHEMA_NOT_IMPLEMENTED",TIMEOUT:"SCHEMA_TIMEOUT",RECORD_REFERENCED:"SCHEMA_RECORD_REFERENCED",ATTRIBUTE_IN_USE:"SCHEMA_ATTRIBUTE_IN_USE",OBJECT_REFERENCED:"SCHEMA_OBJECT_REFERENCED",CONFIGURATION_REQUIRED:"CONFIGURATION_REQUIRED",SEARCH_ADAPTER_REQUIRED:"SEARCH_ADAPTER_REQUIRED",CRON_REGISTRATION_FAILED:"CRON_REGISTRATION_FAILED",SEARCH_BACKEND_FAILED:"SEARCH_BACKEND_FAILED",INVARIANT_VIOLATION:"INVARIANT_VIOLATION",TENANT_CONTEXT_MISSING:"TENANT_CONTEXT_MISSING",FEATURE_FLAGS_CONTEXT:"FEATURE_FLAGS_CONTEXT",REALTIME_RATE_LIMITED:"REALTIME_RATE_LIMITED",REALTIME_DELIVERY_FAILED:"REALTIME_DELIVERY_FAILED",REALTIME_SUBSCRIPTION_FAILED:"REALTIME_SUBSCRIPTION_FAILED",AGENT_UNKNOWN:"AGENT_UNKNOWN",AGENT_DEPTH_EXCEEDED:"AGENT_DEPTH_EXCEEDED",AGENT_COST_LIMIT_EXCEEDED:"AGENT_COST_LIMIT_EXCEEDED",AGENT_TREE_COST_LIMIT_EXCEEDED:"AGENT_TREE_COST_LIMIT_EXCEEDED",CREDITS_EXHAUSTED:"CREDITS_EXHAUSTED",QUOTA_EXCEEDED:"QUOTA_EXCEEDED",AGENT_SESSION_NOT_FOUND:"AGENT_SESSION_NOT_FOUND",AGENT_DEFINITION_NOT_FOUND:"AGENT_DEFINITION_NOT_FOUND",AGENT_RUN_CONFIG:"AGENT_RUN_CONFIG",AGENT_STREAMING:"AGENT_STREAMING",AGENT_MISSING_ACTOR:"AGENT_MISSING_ACTOR",AGENT_INVALID_STATE:"AGENT_INVALID_STATE",AGENT_COMPACTION_IMPOSSIBLE:"AGENT_COMPACTION_IMPOSSIBLE",AGENT_COMPACTION_TIMEOUT:"AGENT_COMPACTION_TIMEOUT",AGENT_LEASE_HELD:"AGENT_LEASE_HELD",AGENT_WORK_MODE_REQUIRED:"AGENT_WORK_MODE_REQUIRED",AGENT_MESSAGE_NOT_FOUND:"AGENT_MESSAGE_NOT_FOUND",AGENT_MESSAGE_NOT_EDITABLE:"AGENT_MESSAGE_NOT_EDITABLE",DEVICE_NOT_FOUND:"DEVICE_NOT_FOUND",DEVICE_OFFLINE:"DEVICE_OFFLINE",AI_UNKNOWN:"AI_UNKNOWN",AI_USAGE_LIMIT_EXCEEDED:"AI_USAGE_LIMIT_EXCEEDED",AI_INVALID_USAGE:"AI_INVALID_USAGE",AI_INVALID_MODEL:"AI_INVALID_MODEL",AI_INVALID_MODEL_INPUT:"AI_INVALID_MODEL_INPUT",AI_REPOSITORY_ERROR:"AI_REPOSITORY_ERROR",AI_GENERATION_FAILED:"AI_GENERATION_FAILED",AI_IMAGE_USAGE_PENDING:"AI_IMAGE_USAGE_PENDING",AI_IMAGE_GENERATION_INDETERMINATE:"AI_IMAGE_GENERATION_INDETERMINATE",AI_IMAGE_PUBLICATION_FAILED:"AI_IMAGE_PUBLICATION_FAILED",DOCUMENT_MIME_NOT_ACCEPTED:"DOCUMENT_MIME_NOT_ACCEPTED",DOCUMENT_MULTIPLE_NOT_ALLOWED:"DOCUMENT_MULTIPLE_NOT_ALLOWED",DOCUMENT_NOT_FOUND_FOR_OPERATION:"DOCUMENT_NOT_FOUND_FOR_OPERATION",DOCUMENT_STORAGE_FAILED:"DOCUMENT_STORAGE_FAILED",DOCUMENT_SIZE_EXCEEDED:"DOCUMENT_SIZE_EXCEEDED",DOCUMENT_OCR_FAILED:"DOCUMENT_OCR_FAILED",DOCUMENT_BLOB_EMPTY:"DOCUMENT_BLOB_EMPTY",DOCUMENT_FILE_TOO_LARGE:"DOCUMENT_FILE_TOO_LARGE",DOCUMENT_FILE_NOT_FOUND:"DOCUMENT_FILE_NOT_FOUND",DOCUMENT_FILE_ALREADY_PACKED:"DOCUMENT_FILE_ALREADY_PACKED",DOCUMENT_RECORD_NOT_FOUND:"DOCUMENT_RECORD_NOT_FOUND",DOCUMENT_RECORD_OBJECT_MISMATCH:"DOCUMENT_RECORD_OBJECT_MISMATCH",DOCUMENT_FOLDER_SERVICE_UNAVAILABLE:"DOCUMENT_FOLDER_SERVICE_UNAVAILABLE",DOCUMENT_FOLDER_PATH_NOT_FOUND:"DOCUMENT_FOLDER_PATH_NOT_FOUND",EMAIL_PROVIDER_API_FAILED:"EMAIL_PROVIDER_API_FAILED",EMAIL_BATCH_ITEM_FAILED:"EMAIL_BATCH_ITEM_FAILED",CALENDAR_PROVIDER_API_FAILED:"CALENDAR_PROVIDER_API_FAILED",REFLEX_INVALID_TRANSITION:"REFLEX_INVALID_TRANSITION",REFLEX_INVALID_TOKEN:"REFLEX_INVALID_TOKEN",REFLEX_CAPABILITY_DENIED:"REFLEX_CAPABILITY_DENIED",REFLEX_GATEWAY_UNAVAILABLE:"REFLEX_GATEWAY_UNAVAILABLE",REFLEX_BUNDLE_FAILED:"REFLEX_BUNDLE_FAILED",REFLEX_EGRESS_DENIED:"REFLEX_EGRESS_DENIED",REFLEX_PROTOCOL_VIOLATION:"REFLEX_PROTOCOL_VIOLATION",REFLEX_RUN_FAILED:"REFLEX_RUN_FAILED",REFLEX_RUN_TIMEOUT:"REFLEX_RUN_TIMEOUT",REFLEX_DEPENDENCY_DRIFT:"REFLEX_DEPENDENCY_DRIFT",REFLEX_NOT_READY:"REFLEX_NOT_READY",REFLEX_INVARIANT_VIOLATION:"REFLEX_INVARIANT_VIOLATION",EMBEDDING_MODEL_UNAVAILABLE:"EMBEDDING_MODEL_UNAVAILABLE",EMBEDDING_DIMENSION_MISMATCH:"EMBEDDING_DIMENSION_MISMATCH"},R=class R extends Error{constructor(E,e=_.UNKNOWN,t){super(E),this.name="SchemaError",this.code=e,this.details=t,Object.setPrototypeOf(this,new.target.prototype);}toJSON(){return {name:this.name,code:this.code,message:this.message,details:this.details}}};a$1(R,"SchemaError");var T=R,C=class C extends T{constructor(e,t,r=_.RECORD_NOT_FOUND,n=`${e} with id "${t}" not found`){super(n,r,{resourceType:e,resourceId:t});this._tag="NotFoundError";this.name="NotFoundError",this.resourceType=e,this.resourceId=t;}};a$1(C,"NotFoundError");var N=C,L=class L extends N{constructor(E){super("Object",E,_.OBJECT_NOT_FOUND),this.name="ObjectNotFoundError";}};a$1(L,"ObjectNotFoundError");var J=L,S=class S extends N{constructor(E){super("Attribute",E,_.ATTRIBUTE_NOT_FOUND),this.name="AttributeNotFoundError";}};a$1(S,"AttributeNotFoundError");var K=S,c=class c extends N{constructor(E){super("Record",E,_.RECORD_NOT_FOUND),this.name="RecordNotFoundError";}};a$1(c,"RecordNotFoundError");var k=c,M=class M extends N{constructor(E){super("Schema plan",E,_.SCHEMA_PLAN_NOT_FOUND),this.name="SchemaPlanNotFoundError";}};a$1(M,"SchemaPlanNotFoundError");var v=M,O=class O extends T{constructor(e,t){super(e,_.VALIDATION_FAILED,{errors:t});this._tag="ValidationError";this.name="ValidationError",this.errors=t;}static fromZodErrors(e){let t=e.map(n=>({path:n.path.map(String),message:n.message})),r=`Validation failed: ${t.map(n=>`${n.path.join(".")}: ${n.message}`).join(", ")}`;return new O(r,t)}};a$1(O,"ValidationError");var I=O,d=class d extends T{constructor(E,e,t){let r=E==="object"?_.PROTECTED_OBJECT:E==="view"?_.PROTECTED_VIEW:_.PROTECTED_ATTRIBUTE;super(`Cannot ${t} system ${E} "${e}"`,r,{resourceType:E,resourceName:e,operation:t}),this.name="ProtectedResourceError",this.resourceType=E,this.resourceName=e,this.operation=t;}};a$1(d,"ProtectedResourceError");var o=d,U=class U extends T{constructor(E,e,t){super(`Failed to sync object "${E}": ${e}`,_.SYNC_FAILED,{objectName:E,cause:t?.message}),this.name="SyncError",this.objectName=E,this.cause=t;}};a$1(U,"SyncError");var Q=U,l=class l extends T{constructor(E,e){super(`Cannot mutate system ${E} "${e}". System entities are declared in code and immutable at runtime.`,_.SYSTEM_ENTITY_IMMUTABLE,{entityType:E,entityName:e}),this.name="SystemEntityImmutableError",this.entityType=E,this.entityName=e;}};a$1(l,"SystemEntityImmutableError");var Z=l,F=class F extends T{constructor(E){let e=E.attributeName?`"${E.objectName}.${E.attributeName}"`:`"${E.objectName}"`;super(`Cannot promote runtime entity ${e}: ${E.reason}. Resolve via: (1) relax the code constraint, (2) migrate runtime values manually, or (3) rename the code declaration.`,_.SYNC_CONFLICT,{objectName:E.objectName,attributeName:E.attributeName,reason:E.reason}),this.name="SyncConflictError",this.objectName=E.objectName,this.attributeName=E.attributeName,this.reason=E.reason;}};a$1(F,"SyncConflictError");var q=F,u=class u extends T{constructor(E,e){super(`Cannot demote object "${E}": attributes ${e.join(", ")} are still declared in code. Remove them from code first, or restore the object.`,_.SYNC_CASCADE,{objectName:E,conflictingAttributes:e}),this.name="SyncCascadeError",this.objectName=E,this.conflictingAttributes=e;}};a$1(u,"SyncCascadeError");var z=u,g=class g extends T{constructor(E,e){super(`Attribute "${E}.${e}" is system:true but its object parent is system:false. This is an invariant violation.`,_.ORPHAN_SYSTEM_ATTRIBUTE,{objectName:E,attributeName:e}),this.name="OrphanSystemAttributeError",this.objectName=E,this.attributeName=e;}};a$1(g,"OrphanSystemAttributeError");var EE=g,m=class m extends T{constructor(E){let e=E.map(t=>{let r=t;return r.name?`- ${t.type} "${r.name}"`:`- ${t.type}`}).join(`
|
|
3
|
+
`);super(`Destructive schema operations detected (data will be lost):
|
|
4
|
+
${e}
|
|
5
|
+
|
|
6
|
+
These are applied only under an explicit opt-in; without it boot demotes the object to runtime and keeps its rows. To let Standards apply them automatically, set the environment variable:
|
|
7
|
+
STANDARDS_ALLOW_DESTRUCTIVE_SYNC=1
|
|
8
|
+
|
|
9
|
+
Otherwise, revert your code changes or back up the data first.`,_.DESTRUCTIVE_NOT_ALLOWED,{operations:E}),this.name="DestructiveSyncNotAllowedError",this.operations=E;}};a$1(m,"DestructiveSyncNotAllowedError");var eE=m,h=class h extends T{constructor(E,e,t,r){super(`Migration for "${E}" exceeded the maximum duration (${r}ms). Migrated ${e}/${t} records before timeout. Increase STANDARDS_MIGRATION_MAX_DURATION_MS or split the migration into smaller batches.`,_.MIGRATION_TIMEOUT,{objectName:E,migrated:e,total:t,maxDurationMs:r}),this.name="MigrationTimeoutError",this.objectName=E,this.migrated=e,this.total=t,this.maxDurationMs=r;}};a$1(h,"MigrationTimeoutError");var tE=h,p=class p extends T{constructor(E,e){super(`Cannot change type of attribute "${E}.${e}" via runtime API. Declare a migration in your schema code:
|
|
10
|
+
object("${E}").migration(N, (m) =>
|
|
11
|
+
m.changeType("${e}", from, to, { transform: (v) => ... })
|
|
12
|
+
)`,_.CHANGE_TYPE_NOT_SUPPORTED,{objectName:E,attributeName:e}),this.name="ChangeTypeNotSupportedError",this.objectName=E,this.attributeName=e;}};a$1(p,"ChangeTypeNotSupportedError");var _E=p,P=class P extends T{constructor(E,e,t){let r=E==="object"?_.DUPLICATE_OBJECT:E==="attribute"?_.DUPLICATE_ATTRIBUTE:_.DUPLICATE,n=`${E.charAt(0).toUpperCase()}${E.slice(1)} "${e}" already exists`;super(t??n,r,{resourceType:E,resourceName:e}),this.name="DuplicateError",this.resourceType=E,this.resourceName=e;}};a$1(P,"DuplicateError");var sE=P,RE={builder:"cannot be built by a consumer",registry:"cannot be registered by a consumer",bundle:"cannot be claimed by a bundle",source:"cannot be declared by a schema source"},G=class G extends T{constructor(E,e){super(`"${E}" is a framework-native object name and ${RE[e]}: the framework ships it, pick another name.`,_.RESERVED_OBJECT_NAME,{objectName:E,context:e}),this.name="ReservedObjectNameError",this.objectName=E;}};a$1(G,"ReservedObjectNameError");var TE=G;function CE(A){return A instanceof T}a$1(CE,"isSchemaError");function LE(A){return A instanceof N}a$1(LE,"isNotFoundError");function SE(A){return A instanceof I}a$1(SE,"isValidationError");function cE(A){return A instanceof o}a$1(cE,"isProtectedResourceError");var y=class y extends T{constructor(E,e,t){super(`No ${e} permission on object "${E}"`,_.FORBIDDEN,{objectName:E,action:e,userId:t}),this.name="ForbiddenError",this.objectName=E,this.action=e,this.userId=t;}};a$1(y,"ForbiddenError");var rE=y,x=class x extends T{constructor(E,e){super(`Cannot ${e} system role "${E}"`,_.PROTECTED_ROLE,{roleName:E,operation:e}),this.name="ProtectedRoleError",this.roleName=E,this.operation=e;}};a$1(x,"ProtectedRoleError");var nE=x,H=class H extends N{constructor(E){super("Role",E,_.ROLE_NOT_FOUND),this.name="RoleNotFoundError";}};a$1(H,"RoleNotFoundError");var AE=H,b=class b extends T{constructor(E){super(`Record ${E} was modified by another request. Please refresh and try again.`,_.CONFLICT,{recordId:E});}};a$1(b,"ConcurrentModificationError");var NE=b,B=class B extends T{constructor(E,e,t,r){let n=E==="upload"?_.STORAGE_UPLOAD_FAILED:E==="download"?_.STORAGE_DOWNLOAD_FAILED:E==="delete"?_.STORAGE_DELETE_FAILED:_.STORAGE_URL_FAILED;super(`Storage ${E} failed: ${e}`,n,{operation:E,path:t,cause:r}),this.name="StorageError",this.operation=E,this.path=t,this.cause=r;}};a$1(B,"StorageError");var OE=B,V=class V extends T{constructor(E,e){super(e??`Access denied to resource: ${E}`,_.ACCESS_DENIED,{resource:E,reason:e}),this.name="AccessDeniedError",this.resource=E,this.reason=e;}};a$1(V,"AccessDeniedError");var IE=V,$=class $ extends T{constructor(E,e,t,r){let n=E==="create"?_.REPOSITORY_CREATE_FAILED:E==="update"?_.REPOSITORY_UPDATE_FAILED:E==="delete"?_.REPOSITORY_DELETE_FAILED:_.REPOSITORY_QUERY_FAILED;super(`Failed to ${E} ${e}: ${t}${r?` (${r})`:""}`,n,{operation:E,entity:e,cause:r}),this.name="RepositoryError",this.operation=E,this.entity=e,this.cause=r;}};a$1($,"RepositoryError");var oE=$,Y=class Y extends T{constructor(E,e){super(`Search backend unavailable for ${E}`,_.SEARCH_BACKEND_FAILED,{scope:E,cause:e}),this.name="SearchBackendError",this.scope=E,this.cause=e;}};a$1(Y,"SearchBackendError");var DE=Y,f=class f extends T{constructor(E,e){let t=e?`${E}: not implemented (${e})`:`${E}: not implemented`;super(t,_.NOT_IMPLEMENTED,{feature:E,milestone:e}),this.name="NotImplementedError",this.feature=E,this.milestone=e;}};a$1(f,"NotImplementedError");var iE=f,X=class X extends N{constructor(E){super("Memory",E,_.MEMORY_NOT_FOUND),this.name="MemoryNotFoundError";}};a$1(X,"MemoryNotFoundError");var aE=X,j=class j extends T{constructor(E,e){let t=e.reduce((r,n)=>r+n.count,0);super(`Cannot delete record: referenced by ${t} record${t>1?"s":""}`,_.RECORD_REFERENCED,{recordId:E,references:e}),this.name="RecordReferencedError",this.recordId=E,this.references=e;}};a$1(j,"RecordReferencedError");var D=j,W=class W extends T{constructor(E,e){super(`Cannot delete attribute "${E}": used in ${e}`,_.ATTRIBUTE_IN_USE,{attributeName:E,usage:e}),this.name="AttributeInUseError",this.attributeName=E,this.usage=e;}};a$1(W,"AttributeInUseError");var i=W,w=class w extends T{constructor(E,e){super(`Cannot delete object "${E}": target of relations in ${e.join(", ")}`,_.OBJECT_REFERENCED,{objectName:E,referencingObjects:e}),this.name="ObjectReferencedError",this.objectName=E,this.referencingObjects=e;}};a$1(w,"ObjectReferencedError");var a=w;function ME(A){return A instanceof D}a$1(ME,"isRecordReferencedError");function dE(A){return A instanceof i}a$1(dE,"isAttributeInUseError");function UE(A){return A instanceof a}a$1(UE,"isObjectReferencedError");export{NE as A,OE as B,IE as C,oE as D,DE as E,iE as F,aE as G,D as H,i as I,a as J,ME as K,dE as L,UE as M,_ as a,T as b,N as c,J as d,K as e,k as f,v as g,I as h,o as i,Q as j,Z as k,q as l,z as m,EE as n,eE as o,tE as p,_E as q,sE as r,TE as s,CE as t,LE as u,SE as v,cE as w,rE as x,nE as y,AE as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {h}from'./chunk-
|
|
1
|
+
import {h}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
2
|
function d(n){let e=new Set;function t(o){if(o===null)return "null";switch(typeof o){case "string":case "number":case "boolean":return JSON.stringify(o);case "undefined":return;case "object":break;default:throw new h(`Cannot canonicalize value of type ${typeof o}`,[])}let i=o;if(e.has(i))throw new h("Cannot canonicalize circular structure",[]);e.add(i);try{return Array.isArray(i)?`[${i.map(r=>t(r)??"null").join(",")}]`:`{${Object.entries(i).map(([r,s])=>[r,t(s)]).filter(r=>r[1]!==void 0).sort(([r],[s])=>r<s?-1:1).map(([r,s])=>`${JSON.stringify(r)}:${s}`).join(",")}}`}finally{e.delete(i);}}return a(t,"encode"),t(n)??"null"}a(d,"canonicalStringify");function p(n){return n}a(p,"asTenantId");function g(n){return n}a(g,"asUserId");function w(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{let e=Math.random()*16|0;return (n==="x"?e:e&3|8).toString(16)})}a(w,"generateId");function b(n,e){return new Map(n.map(t=>[e(t),t]))}a(b,"indexBy");function f(n,e){if(n===e)return true;if(n==null||e==null||typeof n!=typeof e)return false;if(Array.isArray(n))return !Array.isArray(e)||n.length!==e.length?false:n.every((t,o)=>f(t,e[o]));if(typeof n=="object"&&typeof e=="object"){let t=n,o=e,i=Object.keys(t),c=Object.keys(o);return i.length!==c.length?false:i.every(r=>r in o&&f(t[r],o[r]))}return false}a(f,"deepEqual");export{d as a,p as b,g as c,w as d,b as e,f};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use strict';var chunkLWSOKXPF_js=require('./chunk-LWSOKXPF.js'),chunkXXTKNIBK_js=require('./chunk-XXTKNIBK.js'),chunkJOS2XMXY_js=require('./chunk-JOS2XMXY.js'),chunk47KVYDKG_js=require('./chunk-47KVYDKG.js'),chunkKLR22JMC_js=require('./chunk-KLR22JMC.js'),chunkGXSNLYRR_js=require('./chunk-GXSNLYRR.js'),chunkUXISKZ5Y_js=require('./chunk-UXISKZ5Y.js'),chunkXUAP7KWK_js=require('./chunk-XUAP7KWK.js'),chunkJVLH3DVZ_js=require('./chunk-JVLH3DVZ.js'),chunkLSCBR4VS_js=require('./chunk-LSCBR4VS.js'),chunk23KPS33D_js=require('./chunk-23KPS33D.js'),
|
|
1
|
+
'use strict';var chunkLWSOKXPF_js=require('./chunk-LWSOKXPF.js'),chunkXXTKNIBK_js=require('./chunk-XXTKNIBK.js'),chunkJOS2XMXY_js=require('./chunk-JOS2XMXY.js'),chunk47KVYDKG_js=require('./chunk-47KVYDKG.js'),chunkKLR22JMC_js=require('./chunk-KLR22JMC.js'),chunkGXSNLYRR_js=require('./chunk-GXSNLYRR.js'),chunkUXISKZ5Y_js=require('./chunk-UXISKZ5Y.js'),chunkXUAP7KWK_js=require('./chunk-XUAP7KWK.js'),chunkJVLH3DVZ_js=require('./chunk-JVLH3DVZ.js'),chunkLSCBR4VS_js=require('./chunk-LSCBR4VS.js'),chunk23KPS33D_js=require('./chunk-23KPS33D.js'),chunkGZUTZAPU_js=require('./chunk-GZUTZAPU.js'),chunkXHEBV2HE_js=require('./chunk-XHEBV2HE.js'),chunkSLYRQ72J_js=require('./chunk-SLYRQ72J.js'),chunkJFSQ24XR_js=require('./chunk-JFSQ24XR.js'),chunkDPD6ZWL2_js=require('./chunk-DPD6ZWL2.js'),zod=require('zod');/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
2
|
function N(t){return t==null||typeof t=="string"&&t.trim()===""?true:t instanceof Date?false:typeof t=="object"&&!Array.isArray(t)?Object.values(t).every(e=>e==null||typeof e=="string"&&e.trim()===""):false}chunkDPD6ZWL2_js.a(N,"isEmptyValue");function c(t){return zod.z.preprocess(e=>N(e)?null:e,t.nullish())}chunkDPD6ZWL2_js.a(c,"withEmptyToNull");function s(t,e=chunkJFSQ24XR_js.a){switch(t.type){case "text":return chunkXHEBV2HE_js.c(t,e);case "richtext":return chunkJVLH3DVZ_js.a(t,e);case "number":return chunkSLYRQ72J_js.a(t,e);case "checkbox":return chunk47KVYDKG_js.a(t,e);case "date":return chunkKLR22JMC_js.a(t,e);case "phone":return chunkGXSNLYRR_js.d(t,e);case "currency":return chunkUXISKZ5Y_js.a(t,e);case "status":return chunkLSCBR4VS_js.c(t,e);case "location":return chunkXUAP7KWK_js.a(t,e);case "select":return chunkLSCBR4VS_js.a(t,e);case "multiselect":return chunkLSCBR4VS_js.b(t,e);case "user":return chunk23KPS33D_js.a(t,e);case "relation":return chunkLWSOKXPF_js.c(t,e);case "formula":return chunkXXTKNIBK_js.a(t,e);case "rollup":return chunkJOS2XMXY_js.a(t,e);default:return zod.z.unknown()}}chunkDPD6ZWL2_js.a(s,"createAttributeValidator");function q(t,e=chunkJFSQ24XR_js.a){let o=s(t,e);return t.required?o:c(o)}chunkDPD6ZWL2_js.a(q,"createFormAttributeValidator");function ft(t){return t==null||t===""}chunkDPD6ZWL2_js.a(ft,"isNullishOrEmptyString");function f(t){return t==null?false:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:true}chunkDPD6ZWL2_js.a(f,"isValuePresent");var E=new WeakMap,M=new WeakMap;function p(t){let e=E.get(t);if(e)return e;let o={};for(let n of t.attributes){let a=s(n);n.required?o[n.name]=a.refine(f,{message:chunkJFSQ24XR_js.a.required(n)}):o[n.name]=c(a);}let r=zod.z.object(o).passthrough();return E.set(t,r),r}chunkDPD6ZWL2_js.a(p,"createObjectValidator");function m(t){let e=M.get(t);if(e)return e;let o={};for(let n of t.attributes){let a=s(n);o[n.name]=c(a);}let r=zod.z.object(o).passthrough();return M.set(t,r),r}chunkDPD6ZWL2_js.a(m,"createDraftValidator");function F(t,e){let o=s(t);if(!t.required&&e==null)return {success:true,data:{[t.name]:e}};let r=o.safeParse(e);return r.success?{success:true,data:{[t.name]:r.data}}:{success:false,errors:chunkJFSQ24XR_js.b(r.error).map(n=>({path:[t.name,...n.path],message:n.message}))}}chunkDPD6ZWL2_js.a(F,"validateAttribute");function b(t,e){let r=p(t).safeParse(e);return r.success?{success:true,data:r.data}:{success:false,errors:chunkJFSQ24XR_js.b(r.error)}}chunkDPD6ZWL2_js.a(b,"validateObject");function L(t,e){let o=b(t,e);if(!o.success){let r=o.errors??[],n=r.map(a=>`${a.path.join(".")}: ${a.message}`).join(`
|
|
3
|
-
`)||"Unknown validation error";throw new
|
|
3
|
+
`)||"Unknown validation error";throw new chunkGZUTZAPU_js.h(`Validation failed for ${t.label}:
|
|
4
4
|
${n}`,r.map(a=>({path:a.path,message:a.message})))}return o.data}chunkDPD6ZWL2_js.a(L,"validateObjectOrThrow");function Z(t,e){let r=m(t).safeParse(e);return r.success?{success:true,data:r.data}:{success:false,errors:chunkJFSQ24XR_js.b(r.error)}}chunkDPD6ZWL2_js.a(Z,"validateDraft");function v(t,e){let o=Z(t,e);if(!o.success){let r=o.errors??[],n=r.map(a=>`${a.path.join(".")}: ${a.message}`).join(`
|
|
5
|
-
`)||"Unknown validation error";throw new
|
|
6
|
-
${n}`,r.map(a=>({path:a.path,message:a.message})))}return o.data}chunkDPD6ZWL2_js.a(v,"validateDraftOrThrow");function I(t,e){let o=new Set(t.attributes.map(n=>n.name)),r=Object.keys(e).filter(n=>!o.has(n));if(r.length>0)throw new
|
|
5
|
+
`)||"Unknown validation error";throw new chunkGZUTZAPU_js.h(`Draft validation failed for ${t.label}:
|
|
6
|
+
${n}`,r.map(a=>({path:a.path,message:a.message})))}return o.data}chunkDPD6ZWL2_js.a(v,"validateDraftOrThrow");function I(t,e){let o=new Set(t.attributes.map(n=>n.name)),r=Object.keys(e).filter(n=>!o.has(n));if(r.length>0)throw new chunkGZUTZAPU_js.h(`Unknown attribute${r.length>1?"s":""} for ${t.label}: ${r.join(", ")}`,r.map(n=>({path:[n],message:"Unknown attribute"})))}chunkDPD6ZWL2_js.a(I,"rejectUnknownAttributesOrThrow");function $(t,e){let o=[];for(let r of t.attributes)r.required&&!f(e[r.name])&&o.push(r);return o}chunkDPD6ZWL2_js.a($,"getMissingRequiredAttributes");function _(t,e){return $(t,e).length>0?false:b(t,e).success}chunkDPD6ZWL2_js.a(_,"isRecordComplete");exports.a=ft;exports.b=f;exports.c=s;exports.d=q;exports.e=p;exports.f=m;exports.g=F;exports.h=b;exports.i=L;exports.j=Z;exports.k=v;exports.l=I;exports.m=$;exports.n=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {h as h$1}from'./chunk-
|
|
1
|
+
import {h as h$1}from'./chunk-55SG6IBQ.mjs';import {a}from'./chunk-KSPJP74K.mjs';import {z as z$1}from'zod';import {ICONS,COLORS}from'@stndrds/constants';/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
2
|
var f=class f extends Error{constructor(e){super(e),this.name="ComputedFormulaParseError";}};a(f,"ComputedFormulaParseError");var c=f;function I(o){let e=new h(B(o)),n=e.parseExpression();return e.expectEnd(),n}a(I,"parseComputedFormula");function B(o){let e=[],n=0;for(;n<o.length;){let i=o[n];if(i===" "||i===" "||i===`
|
|
3
3
|
`||i==="\r"){n+=1;continue}if(i==='"'||i==="'"){let s=L(o,n,i);e.push({kind:"string",value:s.value,position:n}),n=s.nextIndex;continue}if(m(i)){let s=V(o,n);e.push({kind:"number",value:s.value,position:n}),n=s.nextIndex;continue}if(M(i)){let s=D(o,n),l=s.value.toLowerCase();l==="true"?e.push({kind:"boolean",value:true,position:n}):l==="false"?e.push({kind:"boolean",value:false,position:n}):l==="null"?e.push({kind:"null",position:n}):e.push({kind:"identifier",value:s.value,position:n}),n=s.nextIndex;continue}let r=o.slice(n,n+2);if(r===">="||r==="<="||r==="=="||r==="!="){e.push({kind:"operator",value:r,position:n}),n+=2;continue}if(i===">"||i==="<"||i==="+"||i==="-"||i==="*"||i==="/"){e.push({kind:"operator",value:i,position:n}),n+=1;continue}if(i==="("||i===")"||i===","||i==="."){e.push({kind:"punctuation",value:i,position:n}),n+=1;continue}throw new c(`Unexpected character "${i}" at position ${n}`)}return e}a(B,"tokenize");function L(o,e,n='"'){let i="",r=e+1;for(;r<o.length;){let s=o[r];if(s===n)return {value:i,nextIndex:r+1};if(s==="\\"){let l=o[r+1];if(l===void 0)throw new c(`Unterminated string literal at position ${r}`);i+=U(l,r),r+=2;continue}i+=s,r+=1;}throw new c(`Unterminated string literal at position ${e}`)}a(L,"scanString");function U(o,e){switch(o){case '"':case "\\":return o;case "n":return `
|
|
4
4
|
`;case "r":return "\r";case "t":return " ";default:throw new c(`Unknown escape sequence "\\${o}" at position ${e}`)}}a(U,"decodeEscape");function V(o,e){let n=e;for(;n<o.length&&m(o[n]);)n+=1;if(o[n]==="."){let s=n;if(n+=1,!m(o[n]))throw new c(`Invalid number literal at position ${s}`);for(;n<o.length&&m(o[n]);)n+=1;}let i=o.slice(e,n),r=Number(i);if(!Number.isFinite(r))throw new c(`Invalid number literal "${i}"`);return {value:r,nextIndex:n}}a(V,"scanNumber");function D(o,e){let n=e+1;for(;n<o.length&&G(o[n]);)n+=1;return {value:o.slice(e,n),nextIndex:n}}a(D,"scanIdentifier");function m(o){return o!==void 0&&o>="0"&&o<="9"}a(m,"isDigit");function M(o){return o!==void 0&&/[A-Za-z_]/.test(o)}a(M,"isIdentifierStart");function G(o){return o!==void 0&&/[A-Za-z0-9_]/.test(o)}a(G,"isIdentifierPart");var g=class g{constructor(e){this.tokens=e;this.position=0;}parseExpression(){return this.parseBinaryExpression(0)}expectEnd(){let e=this.peek();if(e!==void 0)throw new c(`Unexpected token ${q(e)} at position ${e.position}`)}parseBinaryExpression(e){let n=this.parsePrimary();for(;;){let i=this.peek();if(i?.kind!=="operator")return n;let r=H(i.value);if(r<e)return n;let s=i.value;this.consume();let l=this.parseBinaryExpression(r+1);n={kind:"binary",operator:s,left:n,right:l};}}parsePrimary(){let e=this.consume();if(e===void 0)throw new c("Unexpected end of expression");switch(e.kind){case "string":case "number":case "boolean":return {kind:"literal",value:e.value};case "null":return {kind:"literal",value:null};case "identifier":return this.parseIdentifier(e.value);case "punctuation":if(e.value==="("){let n=this.parseExpression();return this.expectPunctuation(")"),n}break;case "operator":if(e.value==="-"){let n=this.consume();if(n?.kind==="number")return {kind:"literal",value:-n.value}}break}throw new c(`Expected literal, path, call, or parenthesized expression at position ${e.position}`)}parseIdentifier(e){if(this.matchPunctuation("(")){let i=[];if(!this.matchPunctuation(")")){do i.push(this.parseExpression());while(this.matchPunctuation(","));this.expectPunctuation(")");}return {kind:"call",functionName:e.toLowerCase(),args:i}}let n=[e];for(;this.matchPunctuation(".");){let i=this.consume();if(i?.kind!=="identifier"){let r=i?.position??this.previousPosition();throw new c(`Expected attribute name after path separator at position ${r}`)}n.push(i.value);}return {kind:"path",parts:n}}expectPunctuation(e){if(!this.matchPunctuation(e)){let i=this.peek()?.position??this.previousPosition();throw new c(`Expected "${e}" at position ${i}`)}}matchPunctuation(e){let n=this.peek();return n?.kind==="punctuation"&&n.value===e?(this.consume(),true):false}peek(){return this.tokens[this.position]}consume(){let e=this.tokens[this.position];return this.position+=1,e}previousPosition(){return this.tokens[this.position-1]?.position??0}};a(g,"Parser");var h=g;function q(o){switch(o.kind){case "identifier":case "number":case "string":case "boolean":case "operator":case "punctuation":return `"${String(o.value)}"`;case "null":return '"null"';default:return o}}a(q,"describeToken");function H(o){switch(o){case "*":case "/":return 3;case "+":case "-":return 2;case ">":case "<":case ">=":case "<=":case "==":case "!=":return 1;default:return o}}a(H,"getOperatorPrecedence");var O={attributesPerObject:300,tabsPerView:24,groupsPerFormTab:12,fieldsPerGroup:60,fieldsPerFormTab:150,columnsPerTab:50,optionsPerAttribute:200,sidePanelAttributes:100,sidePanelPanes:20,filterRulesPerTab:50,sortsPerTab:20,emailAttributesPerTab:30,objectsPerPlan:20,mutationsPerPlan:500,planBytes:524288,historyDefault:20,historyMax:50,iconQueries:5,iconResults:20};var J=Object.keys(COLORS),X=new Set(ICONS),b=z$1.enum(J),x=z$1.string().superRefine((o,e)=>{X.has(o)||e.addIssue({code:"custom",message:"Invalid icon name"});}).transform(o=>o);var u=z$1.object({placeholder:z$1.string().optional(),description:z$1.string().optional(),defaultValue:z$1.unknown().optional(),icon:z$1.string().optional(),order:z$1.number().int().optional(),hidden:z$1.boolean().optional(),archived:z$1.boolean().optional(),deprecated:z$1.boolean().optional(),metadata:z$1.record(z$1.string(),z$1.unknown()).optional()}),y=z$1.object({value:z$1.string().min(1),label:z$1.string().min(1),description:z$1.string().optional(),inverse:z$1.string().optional(),archived:z$1.boolean().optional()}),v=z$1.enum(["idle","in_progress","finished"]),w=y.extend({color:b}).strict(),T=w,E=y.extend({color:b,group:v}).strict(),j=y.extend({color:z$1.string().optional(),group:v.optional()}).strict(),k=z$1.array(j).min(1).refine(o=>{let e=o.map(n=>n.value);return new Set(e).size===e.length},{message:"Duplicate option values are not allowed"});function C(o){return z$1.array(o).min(1).max(O.optionsPerAttribute).refine(e=>{let n=e.map(i=>i.value);return new Set(n).size===n.length},{message:"Duplicate option values are not allowed"})}a(C,"writeOptionsArraySchema");var Y=C(w),tt=C(T),et=C(E),nt=z$1.object({object:z$1.string().min(1),displayTemplate:z$1.string().optional(),filter:z$1.record(z$1.string(),z$1.unknown()).optional()}),ot=z$1.object({object:z$1.string().min(1),attribute:z$1.string().min(1),cardinality:z$1.enum(["one","many"]).optional(),storageOwner:z$1.boolean().optional()}),R=z$1.object({objectName:z$1.string().min(1),attributeName:z$1.string().min(1),attributeId:z$1.string().optional()}),it=u.extend({multiline:z$1.boolean().optional(),minLength:z$1.number().int().min(0).optional(),maxLength:z$1.number().int().min(1).optional(),pattern:z$1.string().optional(),format:z$1.enum(["email","url","slug"]).optional()}),rt=u,at=u.extend({renderAs:z$1.enum(["number","rating"]).optional(),min:z$1.number().optional(),max:z$1.number().optional(),unit:z$1.enum(["integer","decimal","percentage"]).optional(),decimals:z$1.number().int().min(0).max(10).optional()}),st=u,ut=u.extend({dateFormat:z$1.enum(["short","long","full","relative"]).optional(),minDate:z$1.string().optional(),maxDate:z$1.string().optional(),includeTime:z$1.boolean().optional(),endDate:z$1.boolean().optional(),timeFormat:z$1.enum(["12h","24h"]).optional()}),ct=u.extend({defaultCountryCode:z$1.string().length(3).optional()}),lt=u.extend({defaultCurrency:z$1.string().length(3).optional(),allowedCurrencies:z$1.array(z$1.string().length(3)).optional(),allowNegative:z$1.boolean().optional()}),pt=u.extend({options:k}),mt=u.extend({granularity:z$1.enum(["full","address","city","state","country","coordinates"]).optional(),defaultCountry:z$1.string().length(3).optional(),allowedCountries:z$1.array(z$1.string().length(3)).optional()}),dt=u.extend({options:k,renderAs:z$1.literal("badges").optional()}),ht=u.extend({options:k,renderAs:z$1.literal("badges").optional()}),ft=u.extend({types:z$1.array(z$1.enum(["user","agent"])).min(1).optional(),multiple:z$1.boolean().optional()}),gt=u.extend({targets:z$1.array(nt).min(1),cardinality:z$1.enum(["one","many"]),maxItems:z$1.number().int().min(1).optional(),bilateral:ot.optional(),properties:z$1.object({definitions:z$1.array(z$1.record(z$1.string(),z$1.unknown()))}).passthrough().optional()}),bt=u.extend({expression:z$1.string().min(1).superRefine((o,e)=>{try{I(o);}catch(n){e.addIssue({code:z$1.ZodIssueCode.custom,message:n instanceof Error?n.message:"Invalid formula expression"});}}),returnType:z$1.enum(["text","number","boolean","date","select","multiselect"]),decimals:z$1.number().int().min(0).max(10).optional(),allowRelations:z$1.boolean().optional(),optionsSource:R.optional()}),xt=u.extend({relationAttribute:z$1.string().min(1).optional(),relationPath:z$1.string().optional(),targetAttribute:z$1.string().min(1),function:z$1.enum(["sum","avg","earliest","latest","count","countValues","countUniqueValues","countEmpty","percentEmpty","percentNotEmpty","original"]),decimals:z$1.number().int().min(0).max(10).optional(),targetAttributeType:z$1.string().optional(),targetAttributeOptions:z$1.array(j).optional(),targetCurrencyCode:z$1.string().length(3).optional(),optionsSource:R.optional()}),yt=z$1.object({definitions:z$1.array(z$1.record(z$1.string(),z$1.unknown()))}).passthrough(),vt=u.extend({properties:yt.optional(),accepts:z$1.array(z$1.string().min(1)).optional(),maxFileSize:z$1.number().int().min(1).optional()}),z={text:it,richtext:rt,number:at,checkbox:st,date:ut,phone:ct,currency:lt,status:pt,location:mt,select:dt,multiselect:ht,user:ft,relation:gt,formula:bt,rollup:xt,document:vt};function d(o){let e=z[o];if(!e)throw new h$1(`Unsupported attribute type: ${o}`,[]);return e}a(d,"getAttributeConfigSchema");function wt(o,e){return d(o).strip().parse(e)}a(wt,"parseAttributeConfig");function $(o){let e=d(o).extend({icon:x.optional()});switch(o){case "select":return e.extend({options:Y});case "multiselect":return e.extend({options:tt});case "status":return e.extend({options:et});default:return e}}a($,"getAttributeConfigWriteSchema");function W(o){return h$1.fromZodErrors(o.map(e=>({path:e.path.map(n=>typeof n=="symbol"?String(n):n),message:e.message})))}a(W,"validationErrorFromIssues");function _(o,e){let n=$(o).strip().safeParse(e);if(!n.success)throw W(n.error.issues);return n.data}a(_,"parseWriteSchema");function kt(o,e){return _(o,e)}a(kt,"parseAttributeConfigForCreate");function Ct(o){if(!Object.prototype.hasOwnProperty.call(o,"icon"))return;let e=x.optional().safeParse(o.icon);if(!e.success)throw h$1.fromZodErrors(e.error.issues.map(n=>({path:["icon",...n.path.map(i=>typeof i=="symbol"?String(i):i)],message:n.message})))}a(Ct,"validatePatchedIcon");function F(o){return o==="select"||o==="multiselect"||o==="status"}a(F,"isSelectLike");function St(o,e){let n=Object.prototype.hasOwnProperty.call(e,"options"),i=Object.prototype.hasOwnProperty.call(e,"icon"),r={...o,...e};if(Ct(e),n){let{icon:A,...Z}=r,P=_(o.type,i?r:Z);return !i&&A!==void 0&&(P.icon=A),P}let s=o.options;F(o.type)&&(r.options=[{value:"__legacy__",label:"__legacy__"}]);let l=d(o.type).strip().safeParse(r);if(!l.success)throw W(l.error.issues);let S=l.data;return F(o.type)&&(S.options=s),S}a(St,"parseAttributeConfigForUpdate");export{O as a,b,x as c,c as d,I as e,v as f,w as g,T as h,E as i,z as j,d as k,wt as l,$ as m,kt as n,St as o};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';var 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 _={UNKNOWN:"SCHEMA_UNKNOWN_ERROR",OBJECT_NOT_FOUND:"SCHEMA_OBJECT_NOT_FOUND",ATTRIBUTE_NOT_FOUND:"SCHEMA_ATTRIBUTE_NOT_FOUND",RECORD_NOT_FOUND:"SCHEMA_RECORD_NOT_FOUND",SOURCE_NOT_FOUND:"SCHEMA_SOURCE_NOT_FOUND",ROLE_NOT_FOUND:"SCHEMA_ROLE_NOT_FOUND",MEMORY_NOT_FOUND:"SCHEMA_MEMORY_NOT_FOUND",SCHEMA_PLAN_NOT_FOUND:"SCHEMA_PLAN_NOT_FOUND",VALIDATION_FAILED:"SCHEMA_VALIDATION_FAILED",INVALID_ATTRIBUTE_NAME:"SCHEMA_INVALID_ATTRIBUTE_NAME",INVALID_OBJECT_NAME:"SCHEMA_INVALID_OBJECT_NAME",RESERVED_OBJECT_NAME:"SCHEMA_RESERVED_OBJECT_NAME",PROTECTED_OBJECT:"SCHEMA_PROTECTED_OBJECT",PROTECTED_ATTRIBUTE:"SCHEMA_PROTECTED_ATTRIBUTE",PROTECTED_VIEW:"SCHEMA_PROTECTED_VIEW",PROTECTED_ROLE:"SCHEMA_PROTECTED_ROLE",FORBIDDEN:"SCHEMA_FORBIDDEN",ACCESS_DENIED:"SCHEMA_ACCESS_DENIED",WORKSPACE_INVARIANT:"SCHEMA_WORKSPACE_INVARIANT",STATE_GATE:"SCHEMA_STATE_GATE",ACTOR_CONTEXT_REQUIRED:"SCHEMA_ACTOR_CONTEXT_REQUIRED",CONNECTOR_AUTH_FAILED:"SCHEMA_CONNECTOR_AUTH_FAILED",CONNECTOR_INVALID_STATE:"SCHEMA_CONNECTOR_INVALID_STATE",CONNECTOR_GRANT_ORPHANED:"SCHEMA_CONNECTOR_GRANT_ORPHANED",SYNC_FAILED:"SCHEMA_SYNC_FAILED",SYNC_CONFLICT:"SCHEMA_SYNC_CONFLICT",SYNC_CASCADE:"SCHEMA_SYNC_CASCADE",ORPHAN_SYSTEM_ATTRIBUTE:"SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE",SYSTEM_ENTITY_IMMUTABLE:"SCHEMA_SYSTEM_ENTITY_IMMUTABLE",DESTRUCTIVE_NOT_ALLOWED:"SCHEMA_DESTRUCTIVE_NOT_ALLOWED",MIGRATION_TIMEOUT:"SCHEMA_MIGRATION_TIMEOUT",CHANGE_TYPE_NOT_SUPPORTED:"SCHEMA_CHANGE_TYPE_NOT_SUPPORTED",DUPLICATE:"SCHEMA_DUPLICATE",DUPLICATE_OBJECT:"SCHEMA_DUPLICATE_OBJECT",DUPLICATE_ATTRIBUTE:"SCHEMA_DUPLICATE_ATTRIBUTE",CONFLICT:"SCHEMA_CONFLICT",STORAGE_UPLOAD_FAILED:"SCHEMA_STORAGE_UPLOAD_FAILED",STORAGE_DOWNLOAD_FAILED:"SCHEMA_STORAGE_DOWNLOAD_FAILED",STORAGE_DELETE_FAILED:"SCHEMA_STORAGE_DELETE_FAILED",STORAGE_URL_FAILED:"SCHEMA_STORAGE_URL_FAILED",REPOSITORY_CREATE_FAILED:"SCHEMA_REPOSITORY_CREATE_FAILED",REPOSITORY_UPDATE_FAILED:"SCHEMA_REPOSITORY_UPDATE_FAILED",REPOSITORY_DELETE_FAILED:"SCHEMA_REPOSITORY_DELETE_FAILED",REPOSITORY_QUERY_FAILED:"SCHEMA_REPOSITORY_QUERY_FAILED",NOT_IMPLEMENTED:"SCHEMA_NOT_IMPLEMENTED",TIMEOUT:"SCHEMA_TIMEOUT",RECORD_REFERENCED:"SCHEMA_RECORD_REFERENCED",ATTRIBUTE_IN_USE:"SCHEMA_ATTRIBUTE_IN_USE",OBJECT_REFERENCED:"SCHEMA_OBJECT_REFERENCED",CONFIGURATION_REQUIRED:"CONFIGURATION_REQUIRED",SEARCH_ADAPTER_REQUIRED:"SEARCH_ADAPTER_REQUIRED",CRON_REGISTRATION_FAILED:"CRON_REGISTRATION_FAILED",SEARCH_BACKEND_FAILED:"SEARCH_BACKEND_FAILED",INVARIANT_VIOLATION:"INVARIANT_VIOLATION",TENANT_CONTEXT_MISSING:"TENANT_CONTEXT_MISSING",FEATURE_FLAGS_CONTEXT:"FEATURE_FLAGS_CONTEXT",REALTIME_RATE_LIMITED:"REALTIME_RATE_LIMITED",REALTIME_DELIVERY_FAILED:"REALTIME_DELIVERY_FAILED",REALTIME_SUBSCRIPTION_FAILED:"REALTIME_SUBSCRIPTION_FAILED",AGENT_UNKNOWN:"AGENT_UNKNOWN",AGENT_DEPTH_EXCEEDED:"AGENT_DEPTH_EXCEEDED",AGENT_COST_LIMIT_EXCEEDED:"AGENT_COST_LIMIT_EXCEEDED",AGENT_TREE_COST_LIMIT_EXCEEDED:"AGENT_TREE_COST_LIMIT_EXCEEDED",CREDITS_EXHAUSTED:"CREDITS_EXHAUSTED",QUOTA_EXCEEDED:"QUOTA_EXCEEDED",AGENT_SESSION_NOT_FOUND:"AGENT_SESSION_NOT_FOUND",AGENT_DEFINITION_NOT_FOUND:"AGENT_DEFINITION_NOT_FOUND",AGENT_RUN_CONFIG:"AGENT_RUN_CONFIG",AGENT_STREAMING:"AGENT_STREAMING",AGENT_MISSING_ACTOR:"AGENT_MISSING_ACTOR",AGENT_INVALID_STATE:"AGENT_INVALID_STATE",AGENT_COMPACTION_IMPOSSIBLE:"AGENT_COMPACTION_IMPOSSIBLE",AGENT_COMPACTION_TIMEOUT:"AGENT_COMPACTION_TIMEOUT",AGENT_LEASE_HELD:"AGENT_LEASE_HELD",AGENT_WORK_MODE_REQUIRED:"AGENT_WORK_MODE_REQUIRED",AGENT_MESSAGE_NOT_FOUND:"AGENT_MESSAGE_NOT_FOUND",AGENT_MESSAGE_NOT_EDITABLE:"AGENT_MESSAGE_NOT_EDITABLE",DEVICE_NOT_FOUND:"DEVICE_NOT_FOUND",DEVICE_OFFLINE:"DEVICE_OFFLINE",AI_UNKNOWN:"AI_UNKNOWN",AI_USAGE_LIMIT_EXCEEDED:"AI_USAGE_LIMIT_EXCEEDED",AI_INVALID_USAGE:"AI_INVALID_USAGE",AI_INVALID_MODEL:"AI_INVALID_MODEL",AI_INVALID_MODEL_INPUT:"AI_INVALID_MODEL_INPUT",AI_REPOSITORY_ERROR:"AI_REPOSITORY_ERROR",AI_GENERATION_FAILED:"AI_GENERATION_FAILED",AI_IMAGE_USAGE_PENDING:"AI_IMAGE_USAGE_PENDING",AI_IMAGE_GENERATION_INDETERMINATE:"AI_IMAGE_GENERATION_INDETERMINATE",AI_IMAGE_PUBLICATION_FAILED:"AI_IMAGE_PUBLICATION_FAILED",DOCUMENT_MIME_NOT_ACCEPTED:"DOCUMENT_MIME_NOT_ACCEPTED",DOCUMENT_MULTIPLE_NOT_ALLOWED:"DOCUMENT_MULTIPLE_NOT_ALLOWED",DOCUMENT_NOT_FOUND_FOR_OPERATION:"DOCUMENT_NOT_FOUND_FOR_OPERATION",DOCUMENT_STORAGE_FAILED:"DOCUMENT_STORAGE_FAILED",DOCUMENT_SIZE_EXCEEDED:"DOCUMENT_SIZE_EXCEEDED",DOCUMENT_OCR_FAILED:"DOCUMENT_OCR_FAILED",DOCUMENT_BLOB_EMPTY:"DOCUMENT_BLOB_EMPTY",DOCUMENT_FILE_TOO_LARGE:"DOCUMENT_FILE_TOO_LARGE",DOCUMENT_FILE_NOT_FOUND:"DOCUMENT_FILE_NOT_FOUND",DOCUMENT_FILE_ALREADY_PACKED:"DOCUMENT_FILE_ALREADY_PACKED",DOCUMENT_RECORD_NOT_FOUND:"DOCUMENT_RECORD_NOT_FOUND",DOCUMENT_RECORD_OBJECT_MISMATCH:"DOCUMENT_RECORD_OBJECT_MISMATCH",DOCUMENT_FOLDER_SERVICE_UNAVAILABLE:"DOCUMENT_FOLDER_SERVICE_UNAVAILABLE",DOCUMENT_FOLDER_PATH_NOT_FOUND:"DOCUMENT_FOLDER_PATH_NOT_FOUND",EMAIL_PROVIDER_API_FAILED:"EMAIL_PROVIDER_API_FAILED",EMAIL_BATCH_ITEM_FAILED:"EMAIL_BATCH_ITEM_FAILED",CALENDAR_PROVIDER_API_FAILED:"CALENDAR_PROVIDER_API_FAILED",REFLEX_INVALID_TRANSITION:"REFLEX_INVALID_TRANSITION",REFLEX_INVALID_TOKEN:"REFLEX_INVALID_TOKEN",REFLEX_CAPABILITY_DENIED:"REFLEX_CAPABILITY_DENIED",REFLEX_GATEWAY_UNAVAILABLE:"REFLEX_GATEWAY_UNAVAILABLE",REFLEX_BUNDLE_FAILED:"REFLEX_BUNDLE_FAILED",REFLEX_EGRESS_DENIED:"REFLEX_EGRESS_DENIED",REFLEX_PROTOCOL_VIOLATION:"REFLEX_PROTOCOL_VIOLATION",REFLEX_RUN_FAILED:"REFLEX_RUN_FAILED",REFLEX_RUN_TIMEOUT:"REFLEX_RUN_TIMEOUT",REFLEX_DEPENDENCY_DRIFT:"REFLEX_DEPENDENCY_DRIFT",REFLEX_NOT_READY:"REFLEX_NOT_READY",REFLEX_INVARIANT_VIOLATION:"REFLEX_INVARIANT_VIOLATION",EMBEDDING_MODEL_UNAVAILABLE:"EMBEDDING_MODEL_UNAVAILABLE",EMBEDDING_DIMENSION_MISMATCH:"EMBEDDING_DIMENSION_MISMATCH"},R=class R extends Error{constructor(E,e=_.UNKNOWN,t){super(E),this.name="SchemaError",this.code=e,this.details=t,Object.setPrototypeOf(this,new.target.prototype);}toJSON(){return {name:this.name,code:this.code,message:this.message,details:this.details}}};chunkDPD6ZWL2_js.a(R,"SchemaError");var T=R,C=class C extends T{constructor(e,t,r=_.RECORD_NOT_FOUND,n=`${e} with id "${t}" not found`){super(n,r,{resourceType:e,resourceId:t});this._tag="NotFoundError";this.name="NotFoundError",this.resourceType=e,this.resourceId=t;}};chunkDPD6ZWL2_js.a(C,"NotFoundError");var N=C,L=class L extends N{constructor(E){super("Object",E,_.OBJECT_NOT_FOUND),this.name="ObjectNotFoundError";}};chunkDPD6ZWL2_js.a(L,"ObjectNotFoundError");var J=L,S=class S extends N{constructor(E){super("Attribute",E,_.ATTRIBUTE_NOT_FOUND),this.name="AttributeNotFoundError";}};chunkDPD6ZWL2_js.a(S,"AttributeNotFoundError");var K=S,c=class c extends N{constructor(E){super("Record",E,_.RECORD_NOT_FOUND),this.name="RecordNotFoundError";}};chunkDPD6ZWL2_js.a(c,"RecordNotFoundError");var k=c,M=class M extends N{constructor(E){super("Schema plan",E,_.SCHEMA_PLAN_NOT_FOUND),this.name="SchemaPlanNotFoundError";}};chunkDPD6ZWL2_js.a(M,"SchemaPlanNotFoundError");var v=M,O=class O extends T{constructor(e,t){super(e,_.VALIDATION_FAILED,{errors:t});this._tag="ValidationError";this.name="ValidationError",this.errors=t;}static fromZodErrors(e){let t=e.map(n=>({path:n.path.map(String),message:n.message})),r=`Validation failed: ${t.map(n=>`${n.path.join(".")}: ${n.message}`).join(", ")}`;return new O(r,t)}};chunkDPD6ZWL2_js.a(O,"ValidationError");var I=O,d=class d extends T{constructor(E,e,t){let r=E==="object"?_.PROTECTED_OBJECT:E==="view"?_.PROTECTED_VIEW:_.PROTECTED_ATTRIBUTE;super(`Cannot ${t} system ${E} "${e}"`,r,{resourceType:E,resourceName:e,operation:t}),this.name="ProtectedResourceError",this.resourceType=E,this.resourceName=e,this.operation=t;}};chunkDPD6ZWL2_js.a(d,"ProtectedResourceError");var o=d,U=class U extends T{constructor(E,e,t){super(`Failed to sync object "${E}": ${e}`,_.SYNC_FAILED,{objectName:E,cause:t?.message}),this.name="SyncError",this.objectName=E,this.cause=t;}};chunkDPD6ZWL2_js.a(U,"SyncError");var Q=U,l=class l extends T{constructor(E,e){super(`Cannot mutate system ${E} "${e}". System entities are declared in code and immutable at runtime.`,_.SYSTEM_ENTITY_IMMUTABLE,{entityType:E,entityName:e}),this.name="SystemEntityImmutableError",this.entityType=E,this.entityName=e;}};chunkDPD6ZWL2_js.a(l,"SystemEntityImmutableError");var Z=l,F=class F extends T{constructor(E){let e=E.attributeName?`"${E.objectName}.${E.attributeName}"`:`"${E.objectName}"`;super(`Cannot promote runtime entity ${e}: ${E.reason}. Resolve via: (1) relax the code constraint, (2) migrate runtime values manually, or (3) rename the code declaration.`,_.SYNC_CONFLICT,{objectName:E.objectName,attributeName:E.attributeName,reason:E.reason}),this.name="SyncConflictError",this.objectName=E.objectName,this.attributeName=E.attributeName,this.reason=E.reason;}};chunkDPD6ZWL2_js.a(F,"SyncConflictError");var q=F,u=class u extends T{constructor(E,e){super(`Cannot demote object "${E}": attributes ${e.join(", ")} are still declared in code. Remove them from code first, or restore the object.`,_.SYNC_CASCADE,{objectName:E,conflictingAttributes:e}),this.name="SyncCascadeError",this.objectName=E,this.conflictingAttributes=e;}};chunkDPD6ZWL2_js.a(u,"SyncCascadeError");var z=u,g=class g extends T{constructor(E,e){super(`Attribute "${E}.${e}" is system:true but its object parent is system:false. This is an invariant violation.`,_.ORPHAN_SYSTEM_ATTRIBUTE,{objectName:E,attributeName:e}),this.name="OrphanSystemAttributeError",this.objectName=E,this.attributeName=e;}};chunkDPD6ZWL2_js.a(g,"OrphanSystemAttributeError");var EE=g,m=class m extends T{constructor(E){let e=E.map(t=>{let r=t;return r.name?`- ${t.type} "${r.name}"`:`- ${t.type}`}).join(`
|
|
3
|
+
`);super(`Destructive schema operations detected (data will be lost):
|
|
4
|
+
${e}
|
|
5
|
+
|
|
6
|
+
These are applied only under an explicit opt-in; without it boot demotes the object to runtime and keeps its rows. To let Standards apply them automatically, set the environment variable:
|
|
7
|
+
STANDARDS_ALLOW_DESTRUCTIVE_SYNC=1
|
|
8
|
+
|
|
9
|
+
Otherwise, revert your code changes or back up the data first.`,_.DESTRUCTIVE_NOT_ALLOWED,{operations:E}),this.name="DestructiveSyncNotAllowedError",this.operations=E;}};chunkDPD6ZWL2_js.a(m,"DestructiveSyncNotAllowedError");var eE=m,h=class h extends T{constructor(E,e,t,r){super(`Migration for "${E}" exceeded the maximum duration (${r}ms). Migrated ${e}/${t} records before timeout. Increase STANDARDS_MIGRATION_MAX_DURATION_MS or split the migration into smaller batches.`,_.MIGRATION_TIMEOUT,{objectName:E,migrated:e,total:t,maxDurationMs:r}),this.name="MigrationTimeoutError",this.objectName=E,this.migrated=e,this.total=t,this.maxDurationMs=r;}};chunkDPD6ZWL2_js.a(h,"MigrationTimeoutError");var tE=h,p=class p extends T{constructor(E,e){super(`Cannot change type of attribute "${E}.${e}" via runtime API. Declare a migration in your schema code:
|
|
10
|
+
object("${E}").migration(N, (m) =>
|
|
11
|
+
m.changeType("${e}", from, to, { transform: (v) => ... })
|
|
12
|
+
)`,_.CHANGE_TYPE_NOT_SUPPORTED,{objectName:E,attributeName:e}),this.name="ChangeTypeNotSupportedError",this.objectName=E,this.attributeName=e;}};chunkDPD6ZWL2_js.a(p,"ChangeTypeNotSupportedError");var _E=p,P=class P extends T{constructor(E,e,t){let r=E==="object"?_.DUPLICATE_OBJECT:E==="attribute"?_.DUPLICATE_ATTRIBUTE:_.DUPLICATE,n=`${E.charAt(0).toUpperCase()}${E.slice(1)} "${e}" already exists`;super(t??n,r,{resourceType:E,resourceName:e}),this.name="DuplicateError",this.resourceType=E,this.resourceName=e;}};chunkDPD6ZWL2_js.a(P,"DuplicateError");var sE=P,RE={builder:"cannot be built by a consumer",registry:"cannot be registered by a consumer",bundle:"cannot be claimed by a bundle",source:"cannot be declared by a schema source"},G=class G extends T{constructor(E,e){super(`"${E}" is a framework-native object name and ${RE[e]}: the framework ships it, pick another name.`,_.RESERVED_OBJECT_NAME,{objectName:E,context:e}),this.name="ReservedObjectNameError",this.objectName=E;}};chunkDPD6ZWL2_js.a(G,"ReservedObjectNameError");var TE=G;function CE(A){return A instanceof T}chunkDPD6ZWL2_js.a(CE,"isSchemaError");function LE(A){return A instanceof N}chunkDPD6ZWL2_js.a(LE,"isNotFoundError");function SE(A){return A instanceof I}chunkDPD6ZWL2_js.a(SE,"isValidationError");function cE(A){return A instanceof o}chunkDPD6ZWL2_js.a(cE,"isProtectedResourceError");var y=class y extends T{constructor(E,e,t){super(`No ${e} permission on object "${E}"`,_.FORBIDDEN,{objectName:E,action:e,userId:t}),this.name="ForbiddenError",this.objectName=E,this.action=e,this.userId=t;}};chunkDPD6ZWL2_js.a(y,"ForbiddenError");var rE=y,x=class x extends T{constructor(E,e){super(`Cannot ${e} system role "${E}"`,_.PROTECTED_ROLE,{roleName:E,operation:e}),this.name="ProtectedRoleError",this.roleName=E,this.operation=e;}};chunkDPD6ZWL2_js.a(x,"ProtectedRoleError");var nE=x,H=class H extends N{constructor(E){super("Role",E,_.ROLE_NOT_FOUND),this.name="RoleNotFoundError";}};chunkDPD6ZWL2_js.a(H,"RoleNotFoundError");var AE=H,b=class b extends T{constructor(E){super(`Record ${E} was modified by another request. Please refresh and try again.`,_.CONFLICT,{recordId:E});}};chunkDPD6ZWL2_js.a(b,"ConcurrentModificationError");var NE=b,B=class B extends T{constructor(E,e,t,r){let n=E==="upload"?_.STORAGE_UPLOAD_FAILED:E==="download"?_.STORAGE_DOWNLOAD_FAILED:E==="delete"?_.STORAGE_DELETE_FAILED:_.STORAGE_URL_FAILED;super(`Storage ${E} failed: ${e}`,n,{operation:E,path:t,cause:r}),this.name="StorageError",this.operation=E,this.path=t,this.cause=r;}};chunkDPD6ZWL2_js.a(B,"StorageError");var OE=B,V=class V extends T{constructor(E,e){super(e??`Access denied to resource: ${E}`,_.ACCESS_DENIED,{resource:E,reason:e}),this.name="AccessDeniedError",this.resource=E,this.reason=e;}};chunkDPD6ZWL2_js.a(V,"AccessDeniedError");var IE=V,$=class $ extends T{constructor(E,e,t,r){let n=E==="create"?_.REPOSITORY_CREATE_FAILED:E==="update"?_.REPOSITORY_UPDATE_FAILED:E==="delete"?_.REPOSITORY_DELETE_FAILED:_.REPOSITORY_QUERY_FAILED;super(`Failed to ${E} ${e}: ${t}${r?` (${r})`:""}`,n,{operation:E,entity:e,cause:r}),this.name="RepositoryError",this.operation=E,this.entity=e,this.cause=r;}};chunkDPD6ZWL2_js.a($,"RepositoryError");var oE=$,Y=class Y extends T{constructor(E,e){super(`Search backend unavailable for ${E}`,_.SEARCH_BACKEND_FAILED,{scope:E,cause:e}),this.name="SearchBackendError",this.scope=E,this.cause=e;}};chunkDPD6ZWL2_js.a(Y,"SearchBackendError");var DE=Y,f=class f extends T{constructor(E,e){let t=e?`${E}: not implemented (${e})`:`${E}: not implemented`;super(t,_.NOT_IMPLEMENTED,{feature:E,milestone:e}),this.name="NotImplementedError",this.feature=E,this.milestone=e;}};chunkDPD6ZWL2_js.a(f,"NotImplementedError");var iE=f,X=class X extends N{constructor(E){super("Memory",E,_.MEMORY_NOT_FOUND),this.name="MemoryNotFoundError";}};chunkDPD6ZWL2_js.a(X,"MemoryNotFoundError");var aE=X,j=class j extends T{constructor(E,e){let t=e.reduce((r,n)=>r+n.count,0);super(`Cannot delete record: referenced by ${t} record${t>1?"s":""}`,_.RECORD_REFERENCED,{recordId:E,references:e}),this.name="RecordReferencedError",this.recordId=E,this.references=e;}};chunkDPD6ZWL2_js.a(j,"RecordReferencedError");var D=j,W=class W extends T{constructor(E,e){super(`Cannot delete attribute "${E}": used in ${e}`,_.ATTRIBUTE_IN_USE,{attributeName:E,usage:e}),this.name="AttributeInUseError",this.attributeName=E,this.usage=e;}};chunkDPD6ZWL2_js.a(W,"AttributeInUseError");var i=W,w=class w extends T{constructor(E,e){super(`Cannot delete object "${E}": target of relations in ${e.join(", ")}`,_.OBJECT_REFERENCED,{objectName:E,referencingObjects:e}),this.name="ObjectReferencedError",this.objectName=E,this.referencingObjects=e;}};chunkDPD6ZWL2_js.a(w,"ObjectReferencedError");var a=w;function ME(A){return A instanceof D}chunkDPD6ZWL2_js.a(ME,"isRecordReferencedError");function dE(A){return A instanceof i}chunkDPD6ZWL2_js.a(dE,"isAttributeInUseError");function UE(A){return A instanceof a}chunkDPD6ZWL2_js.a(UE,"isObjectReferencedError");exports.A=NE;exports.B=OE;exports.C=IE;exports.D=oE;exports.E=DE;exports.F=iE;exports.G=aE;exports.H=D;exports.I=i;exports.J=a;exports.K=ME;exports.L=dE;exports.M=UE;exports.a=_;exports.b=T;exports.c=N;exports.d=J;exports.e=K;exports.f=k;exports.g=v;exports.h=I;exports.i=o;exports.j=Q;exports.k=Z;exports.l=q;exports.m=z;exports.n=EE;exports.o=eE;exports.p=tE;exports.q=_E;exports.r=sE;exports.s=TE;exports.t=CE;exports.u=LE;exports.v=SE;exports.w=cE;exports.x=rE;exports.y=nE;exports.z=AE;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkGZUTZAPU_js=require('./chunk-GZUTZAPU.js'),chunkDPD6ZWL2_js=require('./chunk-DPD6ZWL2.js'),zod=require('zod'),constants=require('@stndrds/constants');/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
2
|
var f=class f extends Error{constructor(e){super(e),this.name="ComputedFormulaParseError";}};chunkDPD6ZWL2_js.a(f,"ComputedFormulaParseError");var c=f;function I(o){let e=new h(B(o)),n=e.parseExpression();return e.expectEnd(),n}chunkDPD6ZWL2_js.a(I,"parseComputedFormula");function B(o){let e=[],n=0;for(;n<o.length;){let i=o[n];if(i===" "||i===" "||i===`
|
|
3
3
|
`||i==="\r"){n+=1;continue}if(i==='"'||i==="'"){let s=L(o,n,i);e.push({kind:"string",value:s.value,position:n}),n=s.nextIndex;continue}if(m(i)){let s=V(o,n);e.push({kind:"number",value:s.value,position:n}),n=s.nextIndex;continue}if(M(i)){let s=D(o,n),l=s.value.toLowerCase();l==="true"?e.push({kind:"boolean",value:true,position:n}):l==="false"?e.push({kind:"boolean",value:false,position:n}):l==="null"?e.push({kind:"null",position:n}):e.push({kind:"identifier",value:s.value,position:n}),n=s.nextIndex;continue}let r=o.slice(n,n+2);if(r===">="||r==="<="||r==="=="||r==="!="){e.push({kind:"operator",value:r,position:n}),n+=2;continue}if(i===">"||i==="<"||i==="+"||i==="-"||i==="*"||i==="/"){e.push({kind:"operator",value:i,position:n}),n+=1;continue}if(i==="("||i===")"||i===","||i==="."){e.push({kind:"punctuation",value:i,position:n}),n+=1;continue}throw new c(`Unexpected character "${i}" at position ${n}`)}return e}chunkDPD6ZWL2_js.a(B,"tokenize");function L(o,e,n='"'){let i="",r=e+1;for(;r<o.length;){let s=o[r];if(s===n)return {value:i,nextIndex:r+1};if(s==="\\"){let l=o[r+1];if(l===void 0)throw new c(`Unterminated string literal at position ${r}`);i+=U(l,r),r+=2;continue}i+=s,r+=1;}throw new c(`Unterminated string literal at position ${e}`)}chunkDPD6ZWL2_js.a(L,"scanString");function U(o,e){switch(o){case '"':case "\\":return o;case "n":return `
|
|
4
|
-
`;case "r":return "\r";case "t":return " ";default:throw new c(`Unknown escape sequence "\\${o}" at position ${e}`)}}chunkDPD6ZWL2_js.a(U,"decodeEscape");function V(o,e){let n=e;for(;n<o.length&&m(o[n]);)n+=1;if(o[n]==="."){let s=n;if(n+=1,!m(o[n]))throw new c(`Invalid number literal at position ${s}`);for(;n<o.length&&m(o[n]);)n+=1;}let i=o.slice(e,n),r=Number(i);if(!Number.isFinite(r))throw new c(`Invalid number literal "${i}"`);return {value:r,nextIndex:n}}chunkDPD6ZWL2_js.a(V,"scanNumber");function D(o,e){let n=e+1;for(;n<o.length&&G(o[n]);)n+=1;return {value:o.slice(e,n),nextIndex:n}}chunkDPD6ZWL2_js.a(D,"scanIdentifier");function m(o){return o!==void 0&&o>="0"&&o<="9"}chunkDPD6ZWL2_js.a(m,"isDigit");function M(o){return o!==void 0&&/[A-Za-z_]/.test(o)}chunkDPD6ZWL2_js.a(M,"isIdentifierStart");function G(o){return o!==void 0&&/[A-Za-z0-9_]/.test(o)}chunkDPD6ZWL2_js.a(G,"isIdentifierPart");var g=class g{constructor(e){this.tokens=e;this.position=0;}parseExpression(){return this.parseBinaryExpression(0)}expectEnd(){let e=this.peek();if(e!==void 0)throw new c(`Unexpected token ${q(e)} at position ${e.position}`)}parseBinaryExpression(e){let n=this.parsePrimary();for(;;){let i=this.peek();if(i?.kind!=="operator")return n;let r=H(i.value);if(r<e)return n;let s=i.value;this.consume();let l=this.parseBinaryExpression(r+1);n={kind:"binary",operator:s,left:n,right:l};}}parsePrimary(){let e=this.consume();if(e===void 0)throw new c("Unexpected end of expression");switch(e.kind){case "string":case "number":case "boolean":return {kind:"literal",value:e.value};case "null":return {kind:"literal",value:null};case "identifier":return this.parseIdentifier(e.value);case "punctuation":if(e.value==="("){let n=this.parseExpression();return this.expectPunctuation(")"),n}break;case "operator":if(e.value==="-"){let n=this.consume();if(n?.kind==="number")return {kind:"literal",value:-n.value}}break}throw new c(`Expected literal, path, call, or parenthesized expression at position ${e.position}`)}parseIdentifier(e){if(this.matchPunctuation("(")){let i=[];if(!this.matchPunctuation(")")){do i.push(this.parseExpression());while(this.matchPunctuation(","));this.expectPunctuation(")");}return {kind:"call",functionName:e.toLowerCase(),args:i}}let n=[e];for(;this.matchPunctuation(".");){let i=this.consume();if(i?.kind!=="identifier"){let r=i?.position??this.previousPosition();throw new c(`Expected attribute name after path separator at position ${r}`)}n.push(i.value);}return {kind:"path",parts:n}}expectPunctuation(e){if(!this.matchPunctuation(e)){let i=this.peek()?.position??this.previousPosition();throw new c(`Expected "${e}" at position ${i}`)}}matchPunctuation(e){let n=this.peek();return n?.kind==="punctuation"&&n.value===e?(this.consume(),true):false}peek(){return this.tokens[this.position]}consume(){let e=this.tokens[this.position];return this.position+=1,e}previousPosition(){return this.tokens[this.position-1]?.position??0}};chunkDPD6ZWL2_js.a(g,"Parser");var h=g;function q(o){switch(o.kind){case "identifier":case "number":case "string":case "boolean":case "operator":case "punctuation":return `"${String(o.value)}"`;case "null":return '"null"';default:return o}}chunkDPD6ZWL2_js.a(q,"describeToken");function H(o){switch(o){case "*":case "/":return 3;case "+":case "-":return 2;case ">":case "<":case ">=":case "<=":case "==":case "!=":return 1;default:return o}}chunkDPD6ZWL2_js.a(H,"getOperatorPrecedence");var O={attributesPerObject:300,tabsPerView:24,groupsPerFormTab:12,fieldsPerGroup:60,fieldsPerFormTab:150,columnsPerTab:50,optionsPerAttribute:200,sidePanelAttributes:100,sidePanelPanes:20,filterRulesPerTab:50,sortsPerTab:20,emailAttributesPerTab:30,objectsPerPlan:20,mutationsPerPlan:500,planBytes:524288,historyDefault:20,historyMax:50,iconQueries:5,iconResults:20};var J=Object.keys(constants.COLORS),X=new Set(constants.ICONS),b=zod.z.enum(J),x=zod.z.string().superRefine((o,e)=>{X.has(o)||e.addIssue({code:"custom",message:"Invalid icon name"});}).transform(o=>o);var u=zod.z.object({placeholder:zod.z.string().optional(),description:zod.z.string().optional(),defaultValue:zod.z.unknown().optional(),icon:zod.z.string().optional(),order:zod.z.number().int().optional(),hidden:zod.z.boolean().optional(),archived:zod.z.boolean().optional(),deprecated:zod.z.boolean().optional(),metadata:zod.z.record(zod.z.string(),zod.z.unknown()).optional()}),y=zod.z.object({value:zod.z.string().min(1),label:zod.z.string().min(1),description:zod.z.string().optional(),inverse:zod.z.string().optional(),archived:zod.z.boolean().optional()}),v=zod.z.enum(["idle","in_progress","finished"]),w=y.extend({color:b}).strict(),T=w,E=y.extend({color:b,group:v}).strict(),j=y.extend({color:zod.z.string().optional(),group:v.optional()}).strict(),k=zod.z.array(j).min(1).refine(o=>{let e=o.map(n=>n.value);return new Set(e).size===e.length},{message:"Duplicate option values are not allowed"});function C(o){return zod.z.array(o).min(1).max(O.optionsPerAttribute).refine(e=>{let n=e.map(i=>i.value);return new Set(n).size===n.length},{message:"Duplicate option values are not allowed"})}chunkDPD6ZWL2_js.a(C,"writeOptionsArraySchema");var Y=C(w),tt=C(T),et=C(E),nt=zod.z.object({object:zod.z.string().min(1),displayTemplate:zod.z.string().optional(),filter:zod.z.record(zod.z.string(),zod.z.unknown()).optional()}),ot=zod.z.object({object:zod.z.string().min(1),attribute:zod.z.string().min(1),cardinality:zod.z.enum(["one","many"]).optional(),storageOwner:zod.z.boolean().optional()}),R=zod.z.object({objectName:zod.z.string().min(1),attributeName:zod.z.string().min(1),attributeId:zod.z.string().optional()}),it=u.extend({multiline:zod.z.boolean().optional(),minLength:zod.z.number().int().min(0).optional(),maxLength:zod.z.number().int().min(1).optional(),pattern:zod.z.string().optional(),format:zod.z.enum(["email","url","slug"]).optional()}),rt=u,at=u.extend({renderAs:zod.z.enum(["number","rating"]).optional(),min:zod.z.number().optional(),max:zod.z.number().optional(),unit:zod.z.enum(["integer","decimal","percentage"]).optional(),decimals:zod.z.number().int().min(0).max(10).optional()}),st=u,ut=u.extend({dateFormat:zod.z.enum(["short","long","full","relative"]).optional(),minDate:zod.z.string().optional(),maxDate:zod.z.string().optional(),includeTime:zod.z.boolean().optional(),endDate:zod.z.boolean().optional(),timeFormat:zod.z.enum(["12h","24h"]).optional()}),ct=u.extend({defaultCountryCode:zod.z.string().length(3).optional()}),lt=u.extend({defaultCurrency:zod.z.string().length(3).optional(),allowedCurrencies:zod.z.array(zod.z.string().length(3)).optional(),allowNegative:zod.z.boolean().optional()}),pt=u.extend({options:k}),mt=u.extend({granularity:zod.z.enum(["full","address","city","state","country","coordinates"]).optional(),defaultCountry:zod.z.string().length(3).optional(),allowedCountries:zod.z.array(zod.z.string().length(3)).optional()}),dt=u.extend({options:k,renderAs:zod.z.literal("badges").optional()}),ht=u.extend({options:k,renderAs:zod.z.literal("badges").optional()}),ft=u.extend({types:zod.z.array(zod.z.enum(["user","agent"])).min(1).optional(),multiple:zod.z.boolean().optional()}),gt=u.extend({targets:zod.z.array(nt).min(1),cardinality:zod.z.enum(["one","many"]),maxItems:zod.z.number().int().min(1).optional(),bilateral:ot.optional(),properties:zod.z.object({definitions:zod.z.array(zod.z.record(zod.z.string(),zod.z.unknown()))}).passthrough().optional()}),bt=u.extend({expression:zod.z.string().min(1).superRefine((o,e)=>{try{I(o);}catch(n){e.addIssue({code:zod.z.ZodIssueCode.custom,message:n instanceof Error?n.message:"Invalid formula expression"});}}),returnType:zod.z.enum(["text","number","boolean","date","select","multiselect"]),decimals:zod.z.number().int().min(0).max(10).optional(),allowRelations:zod.z.boolean().optional(),optionsSource:R.optional()}),xt=u.extend({relationAttribute:zod.z.string().min(1).optional(),relationPath:zod.z.string().optional(),targetAttribute:zod.z.string().min(1),function:zod.z.enum(["sum","avg","earliest","latest","count","countValues","countUniqueValues","countEmpty","percentEmpty","percentNotEmpty","original"]),decimals:zod.z.number().int().min(0).max(10).optional(),targetAttributeType:zod.z.string().optional(),targetAttributeOptions:zod.z.array(j).optional(),targetCurrencyCode:zod.z.string().length(3).optional(),optionsSource:R.optional()}),yt=zod.z.object({definitions:zod.z.array(zod.z.record(zod.z.string(),zod.z.unknown()))}).passthrough(),vt=u.extend({properties:yt.optional(),accepts:zod.z.array(zod.z.string().min(1)).optional(),maxFileSize:zod.z.number().int().min(1).optional()}),z={text:it,richtext:rt,number:at,checkbox:st,date:ut,phone:ct,currency:lt,status:pt,location:mt,select:dt,multiselect:ht,user:ft,relation:gt,formula:bt,rollup:xt,document:vt};function d(o){let e=z[o];if(!e)throw new chunk72TQRSNX_js.h(`Unsupported attribute type: ${o}`,[]);return e}chunkDPD6ZWL2_js.a(d,"getAttributeConfigSchema");function wt(o,e){return d(o).strip().parse(e)}chunkDPD6ZWL2_js.a(wt,"parseAttributeConfig");function $(o){let e=d(o).extend({icon:x.optional()});switch(o){case "select":return e.extend({options:Y});case "multiselect":return e.extend({options:tt});case "status":return e.extend({options:et});default:return e}}chunkDPD6ZWL2_js.a($,"getAttributeConfigWriteSchema");function W(o){return chunk72TQRSNX_js.h.fromZodErrors(o.map(e=>({path:e.path.map(n=>typeof n=="symbol"?String(n):n),message:e.message})))}chunkDPD6ZWL2_js.a(W,"validationErrorFromIssues");function _(o,e){let n=$(o).strip().safeParse(e);if(!n.success)throw W(n.error.issues);return n.data}chunkDPD6ZWL2_js.a(_,"parseWriteSchema");function kt(o,e){return _(o,e)}chunkDPD6ZWL2_js.a(kt,"parseAttributeConfigForCreate");function Ct(o){if(!Object.prototype.hasOwnProperty.call(o,"icon"))return;let e=x.optional().safeParse(o.icon);if(!e.success)throw chunk72TQRSNX_js.h.fromZodErrors(e.error.issues.map(n=>({path:["icon",...n.path.map(i=>typeof i=="symbol"?String(i):i)],message:n.message})))}chunkDPD6ZWL2_js.a(Ct,"validatePatchedIcon");function F(o){return o==="select"||o==="multiselect"||o==="status"}chunkDPD6ZWL2_js.a(F,"isSelectLike");function St(o,e){let n=Object.prototype.hasOwnProperty.call(e,"options"),i=Object.prototype.hasOwnProperty.call(e,"icon"),r={...o,...e};if(Ct(e),n){let{icon:A,...Z}=r,P=_(o.type,i?r:Z);return !i&&A!==void 0&&(P.icon=A),P}let s=o.options;F(o.type)&&(r.options=[{value:"__legacy__",label:"__legacy__"}]);let l=d(o.type).strip().safeParse(r);if(!l.success)throw W(l.error.issues);let S=l.data;return F(o.type)&&(S.options=s),S}chunkDPD6ZWL2_js.a(St,"parseAttributeConfigForUpdate");exports.a=O;exports.b=b;exports.c=x;exports.d=c;exports.e=I;exports.f=v;exports.g=w;exports.h=T;exports.i=E;exports.j=z;exports.k=d;exports.l=wt;exports.m=$;exports.n=kt;exports.o=St;
|
|
4
|
+
`;case "r":return "\r";case "t":return " ";default:throw new c(`Unknown escape sequence "\\${o}" at position ${e}`)}}chunkDPD6ZWL2_js.a(U,"decodeEscape");function V(o,e){let n=e;for(;n<o.length&&m(o[n]);)n+=1;if(o[n]==="."){let s=n;if(n+=1,!m(o[n]))throw new c(`Invalid number literal at position ${s}`);for(;n<o.length&&m(o[n]);)n+=1;}let i=o.slice(e,n),r=Number(i);if(!Number.isFinite(r))throw new c(`Invalid number literal "${i}"`);return {value:r,nextIndex:n}}chunkDPD6ZWL2_js.a(V,"scanNumber");function D(o,e){let n=e+1;for(;n<o.length&&G(o[n]);)n+=1;return {value:o.slice(e,n),nextIndex:n}}chunkDPD6ZWL2_js.a(D,"scanIdentifier");function m(o){return o!==void 0&&o>="0"&&o<="9"}chunkDPD6ZWL2_js.a(m,"isDigit");function M(o){return o!==void 0&&/[A-Za-z_]/.test(o)}chunkDPD6ZWL2_js.a(M,"isIdentifierStart");function G(o){return o!==void 0&&/[A-Za-z0-9_]/.test(o)}chunkDPD6ZWL2_js.a(G,"isIdentifierPart");var g=class g{constructor(e){this.tokens=e;this.position=0;}parseExpression(){return this.parseBinaryExpression(0)}expectEnd(){let e=this.peek();if(e!==void 0)throw new c(`Unexpected token ${q(e)} at position ${e.position}`)}parseBinaryExpression(e){let n=this.parsePrimary();for(;;){let i=this.peek();if(i?.kind!=="operator")return n;let r=H(i.value);if(r<e)return n;let s=i.value;this.consume();let l=this.parseBinaryExpression(r+1);n={kind:"binary",operator:s,left:n,right:l};}}parsePrimary(){let e=this.consume();if(e===void 0)throw new c("Unexpected end of expression");switch(e.kind){case "string":case "number":case "boolean":return {kind:"literal",value:e.value};case "null":return {kind:"literal",value:null};case "identifier":return this.parseIdentifier(e.value);case "punctuation":if(e.value==="("){let n=this.parseExpression();return this.expectPunctuation(")"),n}break;case "operator":if(e.value==="-"){let n=this.consume();if(n?.kind==="number")return {kind:"literal",value:-n.value}}break}throw new c(`Expected literal, path, call, or parenthesized expression at position ${e.position}`)}parseIdentifier(e){if(this.matchPunctuation("(")){let i=[];if(!this.matchPunctuation(")")){do i.push(this.parseExpression());while(this.matchPunctuation(","));this.expectPunctuation(")");}return {kind:"call",functionName:e.toLowerCase(),args:i}}let n=[e];for(;this.matchPunctuation(".");){let i=this.consume();if(i?.kind!=="identifier"){let r=i?.position??this.previousPosition();throw new c(`Expected attribute name after path separator at position ${r}`)}n.push(i.value);}return {kind:"path",parts:n}}expectPunctuation(e){if(!this.matchPunctuation(e)){let i=this.peek()?.position??this.previousPosition();throw new c(`Expected "${e}" at position ${i}`)}}matchPunctuation(e){let n=this.peek();return n?.kind==="punctuation"&&n.value===e?(this.consume(),true):false}peek(){return this.tokens[this.position]}consume(){let e=this.tokens[this.position];return this.position+=1,e}previousPosition(){return this.tokens[this.position-1]?.position??0}};chunkDPD6ZWL2_js.a(g,"Parser");var h=g;function q(o){switch(o.kind){case "identifier":case "number":case "string":case "boolean":case "operator":case "punctuation":return `"${String(o.value)}"`;case "null":return '"null"';default:return o}}chunkDPD6ZWL2_js.a(q,"describeToken");function H(o){switch(o){case "*":case "/":return 3;case "+":case "-":return 2;case ">":case "<":case ">=":case "<=":case "==":case "!=":return 1;default:return o}}chunkDPD6ZWL2_js.a(H,"getOperatorPrecedence");var O={attributesPerObject:300,tabsPerView:24,groupsPerFormTab:12,fieldsPerGroup:60,fieldsPerFormTab:150,columnsPerTab:50,optionsPerAttribute:200,sidePanelAttributes:100,sidePanelPanes:20,filterRulesPerTab:50,sortsPerTab:20,emailAttributesPerTab:30,objectsPerPlan:20,mutationsPerPlan:500,planBytes:524288,historyDefault:20,historyMax:50,iconQueries:5,iconResults:20};var J=Object.keys(constants.COLORS),X=new Set(constants.ICONS),b=zod.z.enum(J),x=zod.z.string().superRefine((o,e)=>{X.has(o)||e.addIssue({code:"custom",message:"Invalid icon name"});}).transform(o=>o);var u=zod.z.object({placeholder:zod.z.string().optional(),description:zod.z.string().optional(),defaultValue:zod.z.unknown().optional(),icon:zod.z.string().optional(),order:zod.z.number().int().optional(),hidden:zod.z.boolean().optional(),archived:zod.z.boolean().optional(),deprecated:zod.z.boolean().optional(),metadata:zod.z.record(zod.z.string(),zod.z.unknown()).optional()}),y=zod.z.object({value:zod.z.string().min(1),label:zod.z.string().min(1),description:zod.z.string().optional(),inverse:zod.z.string().optional(),archived:zod.z.boolean().optional()}),v=zod.z.enum(["idle","in_progress","finished"]),w=y.extend({color:b}).strict(),T=w,E=y.extend({color:b,group:v}).strict(),j=y.extend({color:zod.z.string().optional(),group:v.optional()}).strict(),k=zod.z.array(j).min(1).refine(o=>{let e=o.map(n=>n.value);return new Set(e).size===e.length},{message:"Duplicate option values are not allowed"});function C(o){return zod.z.array(o).min(1).max(O.optionsPerAttribute).refine(e=>{let n=e.map(i=>i.value);return new Set(n).size===n.length},{message:"Duplicate option values are not allowed"})}chunkDPD6ZWL2_js.a(C,"writeOptionsArraySchema");var Y=C(w),tt=C(T),et=C(E),nt=zod.z.object({object:zod.z.string().min(1),displayTemplate:zod.z.string().optional(),filter:zod.z.record(zod.z.string(),zod.z.unknown()).optional()}),ot=zod.z.object({object:zod.z.string().min(1),attribute:zod.z.string().min(1),cardinality:zod.z.enum(["one","many"]).optional(),storageOwner:zod.z.boolean().optional()}),R=zod.z.object({objectName:zod.z.string().min(1),attributeName:zod.z.string().min(1),attributeId:zod.z.string().optional()}),it=u.extend({multiline:zod.z.boolean().optional(),minLength:zod.z.number().int().min(0).optional(),maxLength:zod.z.number().int().min(1).optional(),pattern:zod.z.string().optional(),format:zod.z.enum(["email","url","slug"]).optional()}),rt=u,at=u.extend({renderAs:zod.z.enum(["number","rating"]).optional(),min:zod.z.number().optional(),max:zod.z.number().optional(),unit:zod.z.enum(["integer","decimal","percentage"]).optional(),decimals:zod.z.number().int().min(0).max(10).optional()}),st=u,ut=u.extend({dateFormat:zod.z.enum(["short","long","full","relative"]).optional(),minDate:zod.z.string().optional(),maxDate:zod.z.string().optional(),includeTime:zod.z.boolean().optional(),endDate:zod.z.boolean().optional(),timeFormat:zod.z.enum(["12h","24h"]).optional()}),ct=u.extend({defaultCountryCode:zod.z.string().length(3).optional()}),lt=u.extend({defaultCurrency:zod.z.string().length(3).optional(),allowedCurrencies:zod.z.array(zod.z.string().length(3)).optional(),allowNegative:zod.z.boolean().optional()}),pt=u.extend({options:k}),mt=u.extend({granularity:zod.z.enum(["full","address","city","state","country","coordinates"]).optional(),defaultCountry:zod.z.string().length(3).optional(),allowedCountries:zod.z.array(zod.z.string().length(3)).optional()}),dt=u.extend({options:k,renderAs:zod.z.literal("badges").optional()}),ht=u.extend({options:k,renderAs:zod.z.literal("badges").optional()}),ft=u.extend({types:zod.z.array(zod.z.enum(["user","agent"])).min(1).optional(),multiple:zod.z.boolean().optional()}),gt=u.extend({targets:zod.z.array(nt).min(1),cardinality:zod.z.enum(["one","many"]),maxItems:zod.z.number().int().min(1).optional(),bilateral:ot.optional(),properties:zod.z.object({definitions:zod.z.array(zod.z.record(zod.z.string(),zod.z.unknown()))}).passthrough().optional()}),bt=u.extend({expression:zod.z.string().min(1).superRefine((o,e)=>{try{I(o);}catch(n){e.addIssue({code:zod.z.ZodIssueCode.custom,message:n instanceof Error?n.message:"Invalid formula expression"});}}),returnType:zod.z.enum(["text","number","boolean","date","select","multiselect"]),decimals:zod.z.number().int().min(0).max(10).optional(),allowRelations:zod.z.boolean().optional(),optionsSource:R.optional()}),xt=u.extend({relationAttribute:zod.z.string().min(1).optional(),relationPath:zod.z.string().optional(),targetAttribute:zod.z.string().min(1),function:zod.z.enum(["sum","avg","earliest","latest","count","countValues","countUniqueValues","countEmpty","percentEmpty","percentNotEmpty","original"]),decimals:zod.z.number().int().min(0).max(10).optional(),targetAttributeType:zod.z.string().optional(),targetAttributeOptions:zod.z.array(j).optional(),targetCurrencyCode:zod.z.string().length(3).optional(),optionsSource:R.optional()}),yt=zod.z.object({definitions:zod.z.array(zod.z.record(zod.z.string(),zod.z.unknown()))}).passthrough(),vt=u.extend({properties:yt.optional(),accepts:zod.z.array(zod.z.string().min(1)).optional(),maxFileSize:zod.z.number().int().min(1).optional()}),z={text:it,richtext:rt,number:at,checkbox:st,date:ut,phone:ct,currency:lt,status:pt,location:mt,select:dt,multiselect:ht,user:ft,relation:gt,formula:bt,rollup:xt,document:vt};function d(o){let e=z[o];if(!e)throw new chunkGZUTZAPU_js.h(`Unsupported attribute type: ${o}`,[]);return e}chunkDPD6ZWL2_js.a(d,"getAttributeConfigSchema");function wt(o,e){return d(o).strip().parse(e)}chunkDPD6ZWL2_js.a(wt,"parseAttributeConfig");function $(o){let e=d(o).extend({icon:x.optional()});switch(o){case "select":return e.extend({options:Y});case "multiselect":return e.extend({options:tt});case "status":return e.extend({options:et});default:return e}}chunkDPD6ZWL2_js.a($,"getAttributeConfigWriteSchema");function W(o){return chunkGZUTZAPU_js.h.fromZodErrors(o.map(e=>({path:e.path.map(n=>typeof n=="symbol"?String(n):n),message:e.message})))}chunkDPD6ZWL2_js.a(W,"validationErrorFromIssues");function _(o,e){let n=$(o).strip().safeParse(e);if(!n.success)throw W(n.error.issues);return n.data}chunkDPD6ZWL2_js.a(_,"parseWriteSchema");function kt(o,e){return _(o,e)}chunkDPD6ZWL2_js.a(kt,"parseAttributeConfigForCreate");function Ct(o){if(!Object.prototype.hasOwnProperty.call(o,"icon"))return;let e=x.optional().safeParse(o.icon);if(!e.success)throw chunkGZUTZAPU_js.h.fromZodErrors(e.error.issues.map(n=>({path:["icon",...n.path.map(i=>typeof i=="symbol"?String(i):i)],message:n.message})))}chunkDPD6ZWL2_js.a(Ct,"validatePatchedIcon");function F(o){return o==="select"||o==="multiselect"||o==="status"}chunkDPD6ZWL2_js.a(F,"isSelectLike");function St(o,e){let n=Object.prototype.hasOwnProperty.call(e,"options"),i=Object.prototype.hasOwnProperty.call(e,"icon"),r={...o,...e};if(Ct(e),n){let{icon:A,...Z}=r,P=_(o.type,i?r:Z);return !i&&A!==void 0&&(P.icon=A),P}let s=o.options;F(o.type)&&(r.options=[{value:"__legacy__",label:"__legacy__"}]);let l=d(o.type).strip().safeParse(r);if(!l.success)throw W(l.error.issues);let S=l.data;return F(o.type)&&(S.options=s),S}chunkDPD6ZWL2_js.a(St,"parseAttributeConfigForUpdate");exports.a=O;exports.b=b;exports.c=x;exports.d=c;exports.e=I;exports.f=v;exports.g=w;exports.h=T;exports.i=E;exports.j=z;exports.k=d;exports.l=wt;exports.m=$;exports.n=kt;exports.o=St;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-GKXTXH4Y.mjs';import {a as a$3}from'./chunk-Q7TQCRSD.mjs';import {a as a$2}from'./chunk-WMQRTFOP.mjs';import {a as a$9}from'./chunk-4VCADZK4.mjs';import {a as a$8}from'./chunk-KYPEBOPW.mjs';import {d}from'./chunk-LB4TNMZU.mjs';import {a as a$7}from'./chunk-PFO7NWQW.mjs';import {a as a$6}from'./chunk-XMQV2WFY.mjs';import {a as a$b}from'./chunk-VKFLXFPP.mjs';import {b as b$1,a as a$5,c as c$2}from'./chunk-YIXNAWH6.mjs';import {a as a$4}from'./chunk-XRDP2Y4J.mjs';import {h}from'./chunk-
|
|
1
|
+
import {c as c$1}from'./chunk-GKXTXH4Y.mjs';import {a as a$3}from'./chunk-Q7TQCRSD.mjs';import {a as a$2}from'./chunk-WMQRTFOP.mjs';import {a as a$9}from'./chunk-4VCADZK4.mjs';import {a as a$8}from'./chunk-KYPEBOPW.mjs';import {d}from'./chunk-LB4TNMZU.mjs';import {a as a$7}from'./chunk-PFO7NWQW.mjs';import {a as a$6}from'./chunk-XMQV2WFY.mjs';import {a as a$b}from'./chunk-VKFLXFPP.mjs';import {b as b$1,a as a$5,c as c$2}from'./chunk-YIXNAWH6.mjs';import {a as a$4}from'./chunk-XRDP2Y4J.mjs';import {h}from'./chunk-55SG6IBQ.mjs';import {c as c$3}from'./chunk-O34B5KOW.mjs';import {a as a$a}from'./chunk-KG2ADZG6.mjs';import {a as a$1,b as b$2}from'./chunk-4OTKOCGB.mjs';import {a}from'./chunk-KSPJP74K.mjs';import {z}from'zod';/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
2
|
function N(t){return t==null||typeof t=="string"&&t.trim()===""?true:t instanceof Date?false:typeof t=="object"&&!Array.isArray(t)?Object.values(t).every(e=>e==null||typeof e=="string"&&e.trim()===""):false}a(N,"isEmptyValue");function c(t){return z.preprocess(e=>N(e)?null:e,t.nullish())}a(c,"withEmptyToNull");function s(t,e=a$1){switch(t.type){case "text":return c$3(t,e);case "richtext":return a$b(t,e);case "number":return a$a(t,e);case "checkbox":return a$9(t,e);case "date":return a$8(t,e);case "phone":return d(t,e);case "currency":return a$7(t,e);case "status":return c$2(t,e);case "location":return a$6(t,e);case "select":return a$5(t,e);case "multiselect":return b$1(t,e);case "user":return a$4(t,e);case "relation":return c$1(t,e);case "formula":return a$3(t,e);case "rollup":return a$2(t,e);default:return z.unknown()}}a(s,"createAttributeValidator");function q(t,e=a$1){let o=s(t,e);return t.required?o:c(o)}a(q,"createFormAttributeValidator");function ft(t){return t==null||t===""}a(ft,"isNullishOrEmptyString");function f(t){return t==null?false:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:true}a(f,"isValuePresent");var E=new WeakMap,M=new WeakMap;function p(t){let e=E.get(t);if(e)return e;let o={};for(let n of t.attributes){let a=s(n);n.required?o[n.name]=a.refine(f,{message:a$1.required(n)}):o[n.name]=c(a);}let r=z.object(o).passthrough();return E.set(t,r),r}a(p,"createObjectValidator");function m(t){let e=M.get(t);if(e)return e;let o={};for(let n of t.attributes){let a=s(n);o[n.name]=c(a);}let r=z.object(o).passthrough();return M.set(t,r),r}a(m,"createDraftValidator");function F(t,e){let o=s(t);if(!t.required&&e==null)return {success:true,data:{[t.name]:e}};let r=o.safeParse(e);return r.success?{success:true,data:{[t.name]:r.data}}:{success:false,errors:b$2(r.error).map(n=>({path:[t.name,...n.path],message:n.message}))}}a(F,"validateAttribute");function b(t,e){let r=p(t).safeParse(e);return r.success?{success:true,data:r.data}:{success:false,errors:b$2(r.error)}}a(b,"validateObject");function L(t,e){let o=b(t,e);if(!o.success){let r=o.errors??[],n=r.map(a=>`${a.path.join(".")}: ${a.message}`).join(`
|
|
3
3
|
`)||"Unknown validation error";throw new h(`Validation failed for ${t.label}:
|
|
4
4
|
${n}`,r.map(a=>({path:a.path,message:a.message})))}return o.data}a(L,"validateObjectOrThrow");function Z(t,e){let r=m(t).safeParse(e);return r.success?{success:true,data:r.data}:{success:false,errors:b$2(r.error)}}a(Z,"validateDraft");function v(t,e){let o=Z(t,e);if(!o.success){let r=o.errors??[],n=r.map(a=>`${a.path.join(".")}: ${a.message}`).join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkPKJYAV5U_js=require('./chunk-PKJYAV5U.js'),chunkGZUTZAPU_js=require('./chunk-GZUTZAPU.js'),chunkDPD6ZWL2_js=require('./chunk-DPD6ZWL2.js'),zod=require('zod');/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
var kt={createdAt:"createdAt",updatedAt:"updatedAt",createdBy:"createdBy",lastUpdatedBy:"lastUpdatedBy",attachments:"attachments"};function cr(t){return kt[t]}chunkDPD6ZWL2_js.a(cr,"getSystemAttributeI18nKey");var Bt={createdAt:{id:"system:createdAt",name:"createdAt",label:"Created time",type:"date",required:false,system:true,icon:"clock-circle",description:"When this record was created"},updatedAt:{id:"system:updatedAt",name:"updatedAt",label:"Last edited time",type:"date",required:false,system:true,icon:"clock-circle",description:"When this record was last modified"},createdBy:{id:"system:createdBy",name:"createdBy",label:"Created by",type:"user",required:false,system:true,multiple:false,icon:"user",description:"Actor who created this record"},lastUpdatedBy:{id:"system:lastUpdatedBy",name:"lastUpdatedBy",label:"Last edited by",type:"user",required:false,system:true,multiple:false,icon:"user",description:"Actor who last modified this record"},attachments:{id:"system:attachments",name:"attachments",label:"Attachments",type:"document",required:false,system:true,hidden:true,icon:"paperclip",description:"Free-form document attachments"}};function pr(){return Object.values(Bt)}chunkDPD6ZWL2_js.a(pr,"getSystemAttributeList");function K(t){return t.id?.startsWith("system:")??false}chunkDPD6ZWL2_js.a(K,"isManagedSystemAttribute");var X=["is","is_not","contains","not_contains","starts_with","ends_with","is_empty","is_not_empty"],J=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_empty","is_not_empty"],Lt=["is"],Nt=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_within","on_day_month","is_empty","is_not_empty"],H=["is","is_not","any_of","none_of","is_empty","is_not_empty"],jt=["any_of","none_of","is_empty","is_not_empty"],Q=["is","is_not","any_of","none_of","is_empty","is_not_empty"],Mt=["is_empty","is_not_empty"],Ut=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","contains","not_contains","is_empty","is_not_empty"],w=["city","postalCode","country"];function C(t){return w.includes(t)}chunkDPD6ZWL2_js.a(C,"isLocationFilterProperty");function yr(t){return X.includes(t)}chunkDPD6ZWL2_js.a(yr,"isLocationPartOperator");var y={text:X,richtext:[],number:J,checkbox:Lt,date:Nt,phone:["is","is_not","contains","not_contains","starts_with","is_empty","is_not_empty"],currency:J,status:H,select:H,multiselect:jt,location:[],user:Q,relation:Q,formula:Ut,document:Mt},qt=new Set(["formula","rollup"]),$t=new Set(["user","relation","document"]),zt=new Set(["text","richtext","number","select","multiselect","status","date","phone","currency","location","user","relation","document"]),Yt=new Set(["text","number","date","phone","currency","select","multiselect"]),Wt=new Set(["text","phone","status","select","multiselect"]),Gt=new Set(["text","number","checkbox","date","phone","currency","status","select"]);function g(t){let r=!!(t.hidden||t.archived),i=!t.archived,n=qt.has(t.type),a=t.type==="document",s=$t.has(t.type),l=Jt(t),u=r?[]:Kt(t),c=u.length>0&&!r,_=!r&&Wt.has(t.type),h=!r&&Gt.has(t.type),T=!r&&ie(t.type),R=!r&&t.type==="status",vt=K(t),$=n||a||vt,O=!(r||$),Dt=Zt(t.type)?"forbidden":"allowed",Pt=te(t.type),z=Qt(t),Y=Yt.has(t.type),W=!!(t.deprecated&&!r),G=oe(t);return {lifecycle:{active:i,deprecated:!!t.deprecated,visibleInArchitect:true,visibleInRuntime:!r,warningWhenDeprecated:W},storage:{mode:n?"computed":s?"edge":"value",cardinality:l,edgeBacked:s,preservesExistingValues:!!t.archived,qualifiedProperties:Xt(t.type),polymorphic:Ht(t),maxItems:z},authoring:{editable:O,readOnly:$,directEdit:O&&G==="inline",required:Dt,defaultValue:Pt,placeholder:Y,maxItems:z},presentation:{formField:!r&&re(t.type),tableCell:!r&&tt(t.type),defaultColumn:!r&&ee(t.type),compactDisplay:!r,popoverEditor:!r&&G==="popover",placeholder:Y,warningWhenDeprecated:W},query:{filterable:c,searchable:_,sortable:h,groupable:T,kanbanGroupable:R,operators:u},agent:{readable:!r,writable:O&&!a,compactReadable:!r,contentReadable:!r&&ne(t.type),requiresDedicatedTool:a},exchange:{importable:!r,exportable:!r,schemaExportable:true,metadataExportable:false}}}chunkDPD6ZWL2_js.a(g,"getAttributeCapabilities");function Z(t){return g(t).query.operators}chunkDPD6ZWL2_js.a(Z,"getAttributeFilterOperators");function fr(t){return g(t).query.filterable}chunkDPD6ZWL2_js.a(fr,"isAttributeFilterable");function _r(t){return g(t).query.searchable}chunkDPD6ZWL2_js.a(_r,"isAttributeSearchable");function hr(t){return g(t).query.sortable}chunkDPD6ZWL2_js.a(hr,"isAttributeSortable");function gr(t){return g(t).query.groupable}chunkDPD6ZWL2_js.a(gr,"isAttributeGroupable");function Tr(t){return g(t).query.kanbanGroupable}chunkDPD6ZWL2_js.a(Tr,"isAttributeKanbanGroupable");function F(t){if(t.type!=="rollup")return t.type;let r=t;if(r.function==="earliest"||r.function==="latest")return "date";if(r.function==="original"){let i=r.targetAttributeType;if(i&&et(i))return i}return "number"}chunkDPD6ZWL2_js.a(F,"resolveEffectiveFilterType");function V(t){let r=F(t);return et(r)?y[r]:y.number}chunkDPD6ZWL2_js.a(V,"getRollupFilterOperators");function Kt(t){return t.type==="rollup"?V(t):y[t.type]??[]}chunkDPD6ZWL2_js.a(Kt,"getRawFilterOperators");function Jt(t){return t.type==="multiselect"||t.type==="document"||t.type==="user"&&t.multiple===true||t.type==="relation"&&t.cardinality==="many"?"many":"one"}chunkDPD6ZWL2_js.a(Jt,"getAttributeCardinality");function Ht(t){if(t.type!=="relation")return "none";let i=t.targets??[];return i.length===1&&i[0]?.object==="*"?"internal":i.length>1?"code-only":"none"}chunkDPD6ZWL2_js.a(Ht,"getPolymorphicCapability");function Qt(t){return t.type==="multiselect"?true:t.type==="relation"?t.cardinality==="many":false}chunkDPD6ZWL2_js.a(Qt,"supportsMaxItems");function Xt(t){return t==="relation"||t==="document"}chunkDPD6ZWL2_js.a(Xt,"supportsQualifiedProperties");function Zt(t){return t==="checkbox"||t==="formula"||t==="rollup"}chunkDPD6ZWL2_js.a(Zt,"isRequiredForbidden");function te(t){return t==="checkbox"?"automatic":t==="formula"||t==="rollup"?"forbidden":zt.has(t)?"static":"forbidden"}chunkDPD6ZWL2_js.a(te,"getDefaultValueCapability");function ee(t){return tt(t)}chunkDPD6ZWL2_js.a(ee,"isDefaultColumnType");function tt(t){return t!=="richtext"&&t!=="document"}chunkDPD6ZWL2_js.a(tt,"isTableCellType");function re(t){return t!=="richtext"}chunkDPD6ZWL2_js.a(re,"isFormFieldType");function oe(t){switch(t.type){case "checkbox":return "inline";case "number":return t.renderAs==="rating"?"inline":"default";case "select":case "multiselect":return t.renderAs==="badges"?"inline":"popover";case "status":case "relation":case "user":case "date":return "popover";default:return "default"}}chunkDPD6ZWL2_js.a(oe,"resolveEditMode");function ie(t){return t==="status"||t==="currency"}chunkDPD6ZWL2_js.a(ie,"isGroupableType");function ne(t){return t==="richtext"||t==="document"}chunkDPD6ZWL2_js.a(ne,"isContentReadableType");function et(t){return Object.prototype.hasOwnProperty.call(y,t)}chunkDPD6ZWL2_js.a(et,"hasFilterOperatorEntry");var f=y,ae=["is_empty","is_not_empty"];function rt(t){return ae.includes(t)}chunkDPD6ZWL2_js.a(rt,"isNoValueOperator");function xr(t){return V(t)}chunkDPD6ZWL2_js.a(xr,"getRollupFilterOperators");function A(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"dynamic"in t}chunkDPD6ZWL2_js.a(A,"isDynamicValue");function wr(){return {dynamic:"actor",ref:"current"}}chunkDPD6ZWL2_js.a(wr,"currentActor");function Cr(){return {dynamic:"date",anchor:"today"}}chunkDPD6ZWL2_js.a(Cr,"today");function Fr(){return {dynamic:"date",anchor:"now"}}chunkDPD6ZWL2_js.a(Fr,"now");function ot(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let r=Number(t);return Number.isFinite(r)?r:null}return null}chunkDPD6ZWL2_js.a(ot,"toAmount");function it(t){return t!==null&&typeof t=="object"?"value"in t?ot(t.value):null:ot(t)}chunkDPD6ZWL2_js.a(it,"extractCurrencyFilterValue");function vr(t){return t==null?null:typeof t=="object"&&"value"in t?t.value??null:t}chunkDPD6ZWL2_js.a(vr,"extractFilterValue");var se=new Set(["is_not","not_contains","none_of","is_empty"]),le={is_not:"is",not_contains:"contains",none_of:"any_of",is_empty:"is_not_empty"};function kr(t){return se.has(t)?"none":"any"}chunkDPD6ZWL2_js.a(kr,"getOperatorPolarity");function Br(t){return le[t]??t}chunkDPD6ZWL2_js.a(Br,"normalizeForEdgeRpc");var nt={is:"any_of",is_not:"none_of"};function Lr(t){return nt[t]??t}chunkDPD6ZWL2_js.a(Lr,"toMultiValueOperator");var ue=new Set(Object.values(nt).filter(t=>t!==void 0));function at(t){return ue.has(t)}chunkDPD6ZWL2_js.a(at,"isSetMembershipOperator");function st(t,r){let i=t.value;if(rt(t.operator)||i==null||A(i))return;if(at(t.operator)){Array.isArray(i)||(t.value=[i]);return}if(r!=="currency")return;let n=it(i);if(n!==null){t.value=n;return}if(!ce(i))return;let a=`Filter on a currency attribute expected a numeric amount, received ${JSON.stringify(i)}`;throw new chunkGZUTZAPU_js.h(a,[{path:["value"],message:a}])}chunkDPD6ZWL2_js.a(st,"canonicalizeFilterValue");function ce(t){return typeof t!="object"?true:"value"in t?t.value!=null:false}chunkDPD6ZWL2_js.a(ce,"hasCurrencyAmount");var pe={eq:"is",equals:"is",equal:"is","==":"is","=":"is",neq:"is_not",notEqual:"is_not",isNot:"is_not","!=":"is_not","<>":"is_not",lt:"less_than","<":"less_than",gt:"greater_than",">":"greater_than",lte:"less_or_equal","<=":"less_or_equal",gte:"greater_or_equal",">=":"greater_or_equal",in:"any_of",isAnyOf:"any_of",anyOf:"any_of",oneOf:"any_of",notIn:"none_of",not_in:"none_of",isNoneOf:"none_of",noneOf:"none_of",notOneOf:"none_of",startsWith:"starts_with",beginsWith:"starts_with",endsWith:"ends_with",doesNotContain:"not_contains",notContain:"not_contains",isEmpty:"is_empty",isNotEmpty:"is_not_empty"};function I(t){return pe[t]??t}chunkDPD6ZWL2_js.a(I,"normalizeOperator");function Gr(t){let r=I(t.operator);return r===t.operator?t:{...t,operator:r}}chunkDPD6ZWL2_js.a(Gr,"normalizeFilterRule");var de=new Set(["days","weeks","months","years"]),me=new Set(["past","future"]);function v(t){if(typeof t!="object"||t===null)return false;let r=t;return typeof r.amount=="number"&&Number.isFinite(r.amount)&&r.amount>0&&typeof r.unit=="string"&&de.has(r.unit)&&typeof r.direction=="string"&&me.has(r.direction)}chunkDPD6ZWL2_js.a(v,"isRelativeDateValue");function ut(t){return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}chunkDPD6ZWL2_js.a(ut,"utcDayStart");function lt(t,r,i){if(i==="days")return t+r*864e5;if(i==="weeks")return t+r*7*864e5;let n=new Date(t),a=n.getUTCFullYear()+(i==="years"?r:0),s=n.getUTCMonth()+(i==="months"?r:0),l=new Date(Date.UTC(a,s+1,0)).getUTCDate();return Date.UTC(a,s,Math.min(n.getUTCDate(),l))}chunkDPD6ZWL2_js.a(lt,"shiftUtcDay");function Hr(t,r=new Date){if(!v(t))return null;let i=ut(r),n=Math.trunc(t.amount),a=t.direction==="past"?{startMs:lt(i,-n,t.unit),endMs:i+864e5}:{startMs:i,endMs:lt(i,n,t.unit)+864e5};return Number.isFinite(a.startMs)&&Number.isFinite(a.endMs)?a:null}chunkDPD6ZWL2_js.a(Hr,"resolveIsWithinBounds");function Qr(t){if(!Number.isFinite(t))return null;let r=ut(new Date(t));return Number.isFinite(r)?{startMs:r,endMs:r+864e5}:null}chunkDPD6ZWL2_js.a(Qr,"resolveUtcDayBounds");function Xr(t){return new Date(t).toISOString().slice(0,10)}chunkDPD6ZWL2_js.a(Xr,"toUtcDayString");var be=new Set(["relation","document","user"]),D=["is","is_not","any_of","none_of","is_empty","is_not_empty"],ye={id:D,objectId:D,tenantId:D,label:f.text,createdAt:f.date,updatedAt:f.date,deletedAt:f.date,createdBy:f.user,lastUpdatedBy:f.user},fe={id:"text",objectId:"text",objectName:"text",tenantId:"text",label:"text",createdAt:"date",updatedAt:"date",deletedAt:"date",deletedBy:"user",createdBy:"user",lastUpdatedBy:"user",visibility:"select",ownedBy:"user"},B={before:'"less_than"',after:'"greater_than"',on_or_before:'"less_or_equal"',on_or_after:'"greater_or_equal"',is_checked:'"is" with value true',is_not_checked:'"is" with value false',day_month_eq:'"on_day_month"'},_e=new Set(Object.entries(y).filter(([,t])=>t.includes("any_of")&&!t.includes("contains")).map(([t])=>t)),he={contains:"any_of",not_contains:"none_of"};function P(t,r){let i=B[t];if(i){let s=`Unknown filter operator "${t}" \u2014 use ${i}`;throw new chunkGZUTZAPU_js.h(s,[{path:["operator"],message:s}])}let n=I(t),a=he[n];if(a&&_e.has(r)){let s=`Operator "${n}" is not valid for type "${r}" \u2014 use "${a}"`;throw new chunkGZUTZAPU_js.h(s,[{path:["operator"],message:s}])}return n}chunkDPD6ZWL2_js.a(P,"resolveCanonicalOperator");function ct(t,r,i){let n=P(t,r),a=f[r];if(!a?.includes(n)){let s=a?.length?a.join(", "):"(no operators registered for this type)",l=`Operator "${t}" is not valid for ${i} type "${r}". Valid operators: ${s}.`;throw new chunkGZUTZAPU_js.h(l,[{path:["operator"],message:l}])}return n}chunkDPD6ZWL2_js.a(ct,"assertOperatorForType");function ge(t){if(t.operator==="is_within"&&!v(t.value)){let r='Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }';throw new chunkGZUTZAPU_js.h(r,[{path:["value"],message:r}])}}chunkDPD6ZWL2_js.a(ge,"assertRelativeDateValue");function E(t,r,i){t.operator=r,st(t,i),ge(t);}chunkDPD6ZWL2_js.a(E,"applyCanonicalForm");function pt(t,r){if(!A(t.value))return;let i=t.value;if(i.dynamic==="actor"&&r!=="user"){let n=`actor token (@me) is only valid on user attributes, not "${r}"`;throw new chunkGZUTZAPU_js.h(n,[{path:["value"],message:n}])}if(i.dynamic==="date"&&r!=="date"){let n=`date token (@today/@now) is only valid on date attributes, not "${r}"`;throw new chunkGZUTZAPU_js.h(n,[{path:["value"],message:n}])}}chunkDPD6ZWL2_js.a(pt,"assertDynamicValueForAttribute");var k=w.map(t=>`"${t}"`).join(", ");function Te(t){return t==="location"?` A location is filtered on one of its parts: set "property" to one of ${k} and use a text operator (e.g. contains).`:""}chunkDPD6ZWL2_js.a(Te,"locationPartsHint");function lo(t,r){try{return Se({...t},r),[]}catch(i){if(!(i instanceof chunkGZUTZAPU_js.h))throw i;return i.errors.map(n=>({...n,path:[...n.path]}))}}chunkDPD6ZWL2_js.a(lo,"collectQualifiedRuleIssues");function Se(t,r){let i=r.attributes.find(u=>u.name===t.attribute),n=ye[t.attribute];if(!(i||n)){let[u,...c]=t.attribute.split("."),h=(c.length>0?r.attributes.find(R=>R.name===u):void 0)?.type==="location"?` Dotted paths are not supported \u2014 set "attribute" to "${u}" and "property" to ${C(c[0]??"")?`"${c[0]}"`:`one of ${k}`}.`:t.attribute.includes(".")?' Dotted paths are not supported \u2014 filter on the attribute name alone, or use the full-text "query" parameter to match text inside a value.':"",T=`Unknown attribute: ${t.attribute}${h}`;throw new chunkGZUTZAPU_js.h(T,[{path:["attribute"],message:T}])}if(t.quantifier!==void 0&&!t.property){let u='quantifier is only valid on qualified edge rules (set "property")';throw new chunkGZUTZAPU_js.h(u,[{path:["quantifier"],message:u}])}if(!i){if(t.property)throw new chunkGZUTZAPU_js.h(`Cannot qualify system attribute "${t.attribute}"`,[{path:["property"],message:`"${t.attribute}" is a system column, not a reference`}]);let u=fe[t.attribute]??"text",c=P(t.operator,u);if(!n.includes(c)){let _=`Operator "${t.operator}" is not valid for system attribute "${t.attribute}". Valid operators: ${n.join(", ")}.`;throw new chunkGZUTZAPU_js.h(_,[{path:["operator"],message:_}])}E(t,c,u);return}if(!t.property){pt(t,i.type);let u=Z(i),c=P(t.operator,i.type);if(!u.includes(c)){let _=u.length?u.join(", "):"(not filterable)",h=`Operator "${t.operator}" is not valid for attribute "${i.name}". Valid operators: ${_}.${Te(i.type)}`;throw new chunkGZUTZAPU_js.h(h,[{path:["operator"],message:h}])}E(t,c,F(i));return}if(i.type==="location"){if(t.quantifier!==void 0){let c="quantifier is not valid on a location part \u2014 a location is one value, not a set of edges";throw new chunkGZUTZAPU_js.h(c,[{path:["quantifier"],message:c}])}if(!C(t.property)){let c=`Property "${t.property}" is not a part of location "${t.attribute}". Valid parts: ${k}.`;throw new chunkGZUTZAPU_js.h(c,[{path:["property"],message:c}])}pt(t,"text");let u=ct(t.operator,"text","property");E(t,u,"text");return}if(!be.has(i.type))throw new chunkGZUTZAPU_js.h(`Cannot qualify ${i.type} attribute "${t.attribute}"`,[{path:["property"],message:`Attribute "${t.attribute}" is not a reference type`}]);let a=i.properties;if(!a)throw new chunkGZUTZAPU_js.h(`Attribute "${t.attribute}" has no qualifyWith schema`,[{path:["property"],message:`"${t.attribute}" has no qualifyWith`}]);let s=a.definitions.find(u=>u.name===t.property);if(!s)throw new chunkGZUTZAPU_js.h(`Property "${t.property}" not defined on "${t.attribute}".qualifyWith()`,[{path:["property"],message:`Unknown property: ${t.property}`}]);let l=ct(t.operator,s.type,"property");E(t,l,s.type);}chunkDPD6ZWL2_js.a(Se,"validateQualifiedRule");var L=["skill","memory","drives","artifact","meeting"];function po(t){return L.includes(t)}chunkDPD6ZWL2_js.a(po,"isNativeObjectName");var N=["workspace","private"],dt=["all",...N];function _o(t){if(typeof t=="string"&&N.includes(t))return t;throw new chunkGZUTZAPU_js.h(`visibility must be one of: ${N.join(", ")} (received: ${String(t)})`,[])}chunkDPD6ZWL2_js.a(_o,"parseResourceVisibility");var Ae=["id","createdAt","updatedAt","createdBy","lastUpdatedBy","visibility","ownedBy"],ho=[...Ae,"objectId","label","embeddingText","values","metadata","deletedAt","deletedBy","schemaVersion","owned_by"],go=L;var ft=zod.z.enum(["redirect","inline","peek"]),Ee=zod.z.array(zod.z.string()).min(1),x=zod.z.array(zod.z.string()).max(chunkPKJYAV5U_js.a.columnsPerTab),xe=zod.z.array(zod.z.string().min(1)).max(chunkPKJYAV5U_js.a.columnsPerTab).refine(t=>new Set(t).size===t.length,{message:"Displayed attribute names must be unique"}),Re=zod.z.object({attribute:zod.z.string(),direction:zod.z.enum(["asc","desc"])}).strict(),_t=zod.z.array(Re).max(chunkPKJYAV5U_js.a.sortsPerTab),Oe=zod.z.object({amount:zod.z.number(),unit:zod.z.enum(["days","weeks","months","years"]),direction:zod.z.enum(["past","future"])}).strict(),we=zod.z.object({value:zod.z.number().nullable(),code:zod.z.array(zod.z.string()).optional()}).strict(),Ce=zod.z.object({phoneNumber:zod.z.string().nullable(),countryCode:zod.z.string().optional()}).strict(),Fe=zod.z.discriminatedUnion("dynamic",[zod.z.object({dynamic:zod.z.literal("actor"),ref:zod.z.literal("current")}).strict(),zod.z.object({dynamic:zod.z.literal("date"),anchor:zod.z.enum(["today","now"])}).strict()]),Ve=zod.z.object({month:zod.z.number(),day:zod.z.number()}).strict(),Ie=zod.z.union([zod.z.string(),zod.z.number(),zod.z.boolean(),zod.z.array(zod.z.string()),Oe,we,Ce,Ve,Fe,zod.z.null()]),ve=zod.z.enum(["is","is_not","contains","not_contains","starts_with","ends_with","is_empty","is_not_empty","less_than","greater_than","less_or_equal","greater_or_equal","is_within","on_day_month","any_of","none_of"],{error:chunkDPD6ZWL2_js.a(t=>{let r=t.input,i=typeof r=="string"?B[r]:void 0;return i?`Unknown filter operator "${r}" \u2014 use ${i}`:void 0},"error")}),De=zod.z.object({attribute:zod.z.string(),property:zod.z.string().optional(),quantifier:zod.z.enum(["any","none"]).optional(),operator:ve,value:Ie}).strict(),ht=zod.z.array(De).max(chunkPKJYAV5U_js.a.filterRulesPerTab),Pe=zod.z.object({combinator:zod.z.enum(["and","or"]),rules:ht}).strict(),gt=zod.z.object({id:zod.z.string(),combinator:zod.z.enum(["and","or"]),rules:ht}).strict();function j(t,r,i=[]){let n=new Set;t.forEach((a,s)=>{n.has(a.id)&&r.addIssue({code:"custom",message:`Duplicate id "${a.id}"`,path:[...i,s,"id"]}),n.add(a.id);});}chunkDPD6ZWL2_js.a(j,"addDuplicateIdIssues");function ke(t,r,i=[]){let n=new Set;t.forEach((a,s)=>{n.has(a.name)&&r.addIssue({code:"custom",message:`Duplicate name "${a.name}"`,path:[...i,s,"name"]}),n.add(a.name);});}chunkDPD6ZWL2_js.a(ke,"addDuplicateNameIssues");var Be=zod.z.object({id:zod.z.string(),label:zod.z.string(),description:zod.z.string().optional(),attributes:Ee,displayTemplate:zod.z.string().optional()}).strict(),Le={span:zod.z.union([zod.z.literal(1),zod.z.literal(2),zod.z.literal(3),zod.z.literal(4),zod.z.literal(5),zod.z.literal(6),zod.z.literal(7),zod.z.literal(8),zod.z.literal(9),zod.z.literal(10),zod.z.literal(11),zod.z.literal(12)]).optional(),label:zod.z.string().optional(),readOnly:zod.z.boolean().optional()},Tt={attribute:zod.z.string().optional(),attributeGroup:Be.optional(),...Le};function St(t,r){t.attribute===void 0==(t.attributeGroup===void 0)&&r.addIssue({code:"custom",message:"A field must define exactly one of attribute or attributeGroup"});}chunkDPD6ZWL2_js.a(St,"refineField");var Ne=zod.z.object({id:zod.z.string().optional(),...Tt}).strict().superRefine(St),wo=zod.z.object({id:zod.z.string().min(1),...Tt}).strict().superRefine(St),je={id:zod.z.string(),label:zod.z.string(),description:zod.z.string().optional(),collapsible:zod.z.boolean().optional(),collapsed:zod.z.boolean().optional(),order:zod.z.number().optional()},Me=zod.z.object({...je,type:zod.z.literal("fields"),fields:zod.z.array(Ne).max(chunkPKJYAV5U_js.a.fieldsPerGroup)}).strict(),Ue=Me,b={id:zod.z.string(),name:zod.z.string(),label:zod.z.string(),icon:chunkPKJYAV5U_js.c.optional(),order:zod.z.number().optional()},At=zod.z.array(Ue).max(chunkPKJYAV5U_js.a.groupsPerFormTab),Et={...b,type:zod.z.literal("form"),groups:At,formColumns:zod.z.union([zod.z.literal(1),zod.z.literal(2),zod.z.literal(3)]).optional(),density:zod.z.enum(["compact","comfortable","spacious"]).optional()},qe=zod.z.object(Et).strict();function xt(t,r){j(t.groups,r,["groups"]),t.groups.reduce((a,s)=>a+(s.type==="fields"?s.fields.length:0),0)>chunkPKJYAV5U_js.a.fieldsPerFormTab&&r.addIssue({code:"too_big",origin:"array",maximum:chunkPKJYAV5U_js.a.fieldsPerFormTab,inclusive:true,message:`A form tab can contain at most ${chunkPKJYAV5U_js.a.fieldsPerFormTab} fields`,path:["groups"]});let n=new Set;t.groups.forEach((a,s)=>{a.type==="fields"&&a.fields.forEach((l,u)=>{if(l.attributeGroup===void 0)return;let{id:c}=l.attributeGroup;n.has(c)&&r.addIssue({code:"custom",message:`Duplicate attribute group id "${c}"`,path:["groups",s,"fields",u,"attributeGroup","id"]}),n.add(c);});});}chunkDPD6ZWL2_js.a(xt,"refineFormTab");var $e=zod.z.object({...Et,groups:At.min(1)}).strict().superRefine(xt),ze=qe.superRefine(xt),Rt=zod.z.object({type:zod.z.literal("relation"),attribute:zod.z.string()}).strict(),Ot=zod.z.object({type:zod.z.literal("inverse"),object:zod.z.string(),attribute:zod.z.string()}).strict(),wt=zod.z.discriminatedUnion("type",[Rt,Ot]),Ye=zod.z.object({...b,type:zod.z.literal("table"),source:wt,columns:x,allowCreate:zod.z.boolean().optional(),createMode:ft.optional(),allowEdit:zod.z.boolean().optional(),allowDelete:zod.z.boolean().optional(),filters:Pe.optional(),sorts:_t.optional()}).strict(),mt=64,bt=1e4;function yt(t){let r=Object.getPrototypeOf(t);return r===Object.prototype||r===null}chunkDPD6ZWL2_js.a(yt,"isPlainJsonObject");function m(t,r,i=[]){t.addIssue({code:"custom",message:r,path:i});}chunkDPD6ZWL2_js.a(m,"addJsonIssue");function We(t,r,i,n){for(let a of Reflect.ownKeys(t))if(a!=="length"){if(a==="__proto__"){m(n,"The __proto__ key is not allowed in custom props",[...r.path,a]);continue}(typeof a=="symbol"||!/^(0|[1-9]\d*)$/.test(a))&&m(n,"Arrays cannot contain non-index JSON properties",[...r.path,a]);}for(let a=t.length-1;a>=0;a--){let s=Object.getOwnPropertyDescriptor(t,String(a)),l=[...r.path,a];if(!(s&&"value"in s)){m(n,"Sparse arrays are not valid JSON values",l);continue}i.push({kind:"enter",value:s.value,path:l,depth:r.depth+1});}}chunkDPD6ZWL2_js.a(We,"pushJsonArrayChildren");function Ge(t,r,i,n){let a=Reflect.ownKeys(t);for(let s=a.length-1;s>=0;s--){let l=a[s],u=[...r.path,l];if(l==="__proto__"){m(n,"The __proto__ key is not allowed in custom props",u);continue}if(typeof l=="symbol"){m(n,"Symbol keys are not valid JSON keys",u);continue}let c=Object.getOwnPropertyDescriptor(t,l);if(!(c?.enumerable&&"value"in c)){m(n,"Custom props must contain enumerable data properties only",u);continue}i.push({kind:"enter",value:c.value,path:u,depth:r.depth+1});}}chunkDPD6ZWL2_js.a(Ge,"pushJsonObjectChildren");function Ke(t,r){if(t===null||typeof t!="object"){m(r,"Expected a plain JSON object");return}try{if(Array.isArray(t)||!yt(t)){m(r,"Expected a plain JSON object");return}}catch{m(r,"Custom props contain an object that cannot be safely inspected");return}let i=new WeakSet,n=[{kind:"enter",value:t,path:[],depth:0}],a=0;for(;n.length>0;){let s=n.pop();if(!s)break;if(s.kind==="exit"){i.delete(s.value);continue}if(a++,a>bt){m(r,`Custom props cannot exceed ${bt.toLocaleString("en-US")} total JSON nodes`,s.path);return}if(s.depth>mt){m(r,`Custom props cannot exceed depth ${mt}`,s.path);continue}let l=s.value;if(!(l===null||typeof l=="string"||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))){if(typeof l!="object"){m(r,"Expected a JSON value",s.path);continue}if(i.has(l)){m(r,"Custom props cannot contain circular references",s.path);continue}try{if(Array.isArray(l)){i.add(l),n.push({kind:"exit",value:l}),We(l,s,n,r);continue}if(!yt(l)){m(r,"Expected an array or plain JSON object",s.path);continue}i.add(l),n.push({kind:"exit",value:l}),Ge(l,s,n,r);}catch{m(r,"Custom props contain an object that cannot be safely inspected",s.path);}}}}chunkDPD6ZWL2_js.a(Ke,"validateJsonProps");var Je=zod.z.unknown().superRefine(Ke).transform(t=>t),He=zod.z.object({...b,type:zod.z.literal("custom"),component:zod.z.string(),props:Je.optional()}).strict(),Qe=zod.z.object({...b,type:zod.z.literal("activity"),limit:zod.z.number().optional()}).strict(),Xe=zod.z.object({...b,type:zod.z.literal("richtext"),attribute:zod.z.string(),titleAttribute:zod.z.string().optional()}).strict(),Ze=zod.z.object({...b,type:zod.z.literal("documents"),allowUpload:zod.z.boolean().optional(),allowRemove:zod.z.boolean().optional(),hideAttachments:zod.z.boolean().optional()}).strict(),tr=zod.z.object({...b,type:zod.z.literal("forms"),objectName:zod.z.string().optional()}).strict(),er=zod.z.object({...b,type:zod.z.literal("emails"),emailAttributeIds:zod.z.array(zod.z.string()).max(chunkPKJYAV5U_js.a.emailAttributesPerTab)}).strict(),rr=zod.z.object({...b,type:zod.z.literal("meetings"),emailAttributeIds:zod.z.array(zod.z.string()).max(chunkPKJYAV5U_js.a.emailAttributesPerTab)}).strict(),Ct=[Ye,He,Qe,Xe,Ze,tr,er,rr],Ft=zod.z.discriminatedUnion("type",[$e,...Ct]),Co=zod.z.discriminatedUnion("type",[ze,...Ct]),M={id:zod.z.string(),label:zod.z.string(),icon:chunkPKJYAV5U_js.c.optional(),default:zod.z.boolean().optional(),visibility:zod.z.enum(dt).default("all"),columns:x,descriptionAttribute:zod.z.string().min(1).optional(),displayAttributes:xe.optional(),filters:gt.optional(),sorts:_t.optional(),readOnly:zod.z.boolean().optional(),createMode:ft.optional()},or=zod.z.object({...M,layout:zod.z.literal("table"),columnSizing:zod.z.record(zod.z.string(),zod.z.number()).optional(),groupByAttribute:zod.z.string().min(1).optional()}).strict(),ir=zod.z.object({...M,layout:zod.z.literal("kanban"),columns:x.default([]),groupByAttribute:zod.z.string(),cardUserAttribute:zod.z.string().optional(),cardDateAttribute:zod.z.string().optional(),kanbanColumnOrder:zod.z.array(zod.z.string()).optional(),kanbanColumnVisibility:zod.z.record(zod.z.string(),zod.z.boolean()).optional(),kanbanPinnedColumns:zod.z.array(zod.z.string()).optional()}).strict(),nr=zod.z.object({...M,layout:zod.z.literal("list"),columns:x.default([]),columnSizing:zod.z.record(zod.z.string(),zod.z.number()).optional(),groupByAttribute:zod.z.string().min(1).optional()}).strict(),Vt=zod.z.discriminatedUnion("layout",[or,nr,ir]),ar=zod.z.object({allowPresentationCustomization:zod.z.boolean().optional(),defaultFilters:gt.optional(),tabs:zod.z.array(Vt).min(1).max(chunkPKJYAV5U_js.a.tabsPerView)}).strict().superRefine((t,r)=>{j(t.tabs,r,["tabs"]);let i=false;t.tabs.forEach((n,a)=>{n.layout!=="kanban"&&n.groupByAttribute!==void 0&&t.allowPresentationCustomization!==true&&r.addIssue({code:"unrecognized_keys",keys:["groupByAttribute"],path:["tabs",a]}),n.default&&(i&&r.addIssue({code:"custom",message:"Only one list tab can be the default",path:["tabs",a,"default"]}),i=true);});}),sr=zod.z.discriminatedUnion("kind",[zod.z.object({kind:zod.z.literal("fields"),id:zod.z.string().optional(),label:zod.z.string().optional(),attributes:zod.z.array(zod.z.string()).max(chunkPKJYAV5U_js.a.sidePanelAttributes)}).strict(),zod.z.object({kind:zod.z.literal("activity"),id:zod.z.string().optional(),label:zod.z.string().optional()}).strict(),zod.z.object({kind:zod.z.literal("documents"),id:zod.z.string(),label:zod.z.string().optional(),allowUpload:zod.z.boolean().optional(),allowRemove:zod.z.boolean().optional()}).strict()]),lr=zod.z.object({tabs:zod.z.array(Ft).min(1).max(chunkPKJYAV5U_js.a.tabsPerView),readOnly:zod.z.boolean().optional(),sidePanel:zod.z.object({attributes:zod.z.array(zod.z.string()).max(chunkPKJYAV5U_js.a.sidePanelAttributes).optional(),panes:zod.z.array(sr).max(chunkPKJYAV5U_js.a.sidePanelPanes).optional(),width:zod.z.number().optional()}).strict().refine(t=>t.attributes!==void 0||t.panes!==void 0,{message:"sidePanel requires attributes or panes"}).refine(t=>t.panes===void 0||t.panes.length>0,{message:"sidePanel panes must not be empty"}).refine(t=>t.attributes===void 0||t.panes===void 0,{message:"sidePanel takes attributes or panes, not both"}).optional()}).strict().superRefine((t,r)=>{j(t.tabs,r,["tabs"]),ke(t.tabs,r,["tabs"]);}),U=ar,q=lr,Fo=zod.z.enum(["list","detail"]);var It=zod.z.discriminatedUnion("type",[zod.z.object({type:zod.z.literal("list"),config:U}).strict(),zod.z.object({type:zod.z.literal("detail"),config:q}).strict()]);function ur(t,r){switch(t){case "list":return U.parse(r);case "detail":return q.parse(r);default:return It.parse({type:t,config:r}).config}}chunkDPD6ZWL2_js.a(ur,"parseViewConfig");var Vo=["columnSizing"],Io=["groupByAttribute","cardUserAttribute","cardDateAttribute","kanbanColumnOrder","kanbanColumnVisibility","kanbanPinnedColumns"];exports.$=_t;exports.A=Ae;exports.B=ho;exports.C=go;exports.D=A;exports.E=wr;exports.F=Cr;exports.G=Fr;exports.H=it;exports.I=vr;exports.J=kr;exports.K=Br;exports.L=Lr;exports.M=at;exports.N=st;exports.O=pe;exports.P=I;exports.Q=Gr;exports.R=v;exports.S=Hr;exports.T=Qr;exports.U=Xr;exports.V=fe;exports.W=B;exports.X=lo;exports.Y=Se;exports.Z=x;exports._=xe;exports.a=kt;exports.aa=Pe;exports.b=cr;exports.ba=gt;exports.c=Bt;exports.ca=Tt;exports.d=pr;exports.da=Ne;exports.e=K;exports.ea=wo;exports.f=w;exports.fa=Ue;exports.g=C;exports.ga=Rt;exports.h=yr;exports.ha=Ot;exports.i=y;exports.ia=wt;exports.j=g;exports.ja=Ft;exports.k=Z;exports.ka=Co;exports.l=fr;exports.la=Vt;exports.m=_r;exports.ma=U;exports.n=hr;exports.na=q;exports.o=gr;exports.oa=Fo;exports.p=Tr;exports.pa=It;exports.q=F;exports.qa=ur;exports.r=f;exports.ra=Vo;exports.s=ae;exports.sa=Io;exports.t=rt;exports.u=xr;exports.v=L;exports.w=po;exports.x=N;exports.y=dt;exports.z=_o;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1,c}from'./chunk-GKMHYCAM.mjs';import {h}from'./chunk-55SG6IBQ.mjs';import {a}from'./chunk-KSPJP74K.mjs';import {z}from'zod';/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
+
var kt={createdAt:"createdAt",updatedAt:"updatedAt",createdBy:"createdBy",lastUpdatedBy:"lastUpdatedBy",attachments:"attachments"};function cr(t){return kt[t]}a(cr,"getSystemAttributeI18nKey");var Bt={createdAt:{id:"system:createdAt",name:"createdAt",label:"Created time",type:"date",required:false,system:true,icon:"clock-circle",description:"When this record was created"},updatedAt:{id:"system:updatedAt",name:"updatedAt",label:"Last edited time",type:"date",required:false,system:true,icon:"clock-circle",description:"When this record was last modified"},createdBy:{id:"system:createdBy",name:"createdBy",label:"Created by",type:"user",required:false,system:true,multiple:false,icon:"user",description:"Actor who created this record"},lastUpdatedBy:{id:"system:lastUpdatedBy",name:"lastUpdatedBy",label:"Last edited by",type:"user",required:false,system:true,multiple:false,icon:"user",description:"Actor who last modified this record"},attachments:{id:"system:attachments",name:"attachments",label:"Attachments",type:"document",required:false,system:true,hidden:true,icon:"paperclip",description:"Free-form document attachments"}};function pr(){return Object.values(Bt)}a(pr,"getSystemAttributeList");function K(t){return t.id?.startsWith("system:")??false}a(K,"isManagedSystemAttribute");var X=["is","is_not","contains","not_contains","starts_with","ends_with","is_empty","is_not_empty"],J=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_empty","is_not_empty"],Lt=["is"],Nt=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_within","on_day_month","is_empty","is_not_empty"],H=["is","is_not","any_of","none_of","is_empty","is_not_empty"],jt=["any_of","none_of","is_empty","is_not_empty"],Q=["is","is_not","any_of","none_of","is_empty","is_not_empty"],Mt=["is_empty","is_not_empty"],Ut=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","contains","not_contains","is_empty","is_not_empty"],w=["city","postalCode","country"];function C(t){return w.includes(t)}a(C,"isLocationFilterProperty");function yr(t){return X.includes(t)}a(yr,"isLocationPartOperator");var y={text:X,richtext:[],number:J,checkbox:Lt,date:Nt,phone:["is","is_not","contains","not_contains","starts_with","is_empty","is_not_empty"],currency:J,status:H,select:H,multiselect:jt,location:[],user:Q,relation:Q,formula:Ut,document:Mt},qt=new Set(["formula","rollup"]),$t=new Set(["user","relation","document"]),zt=new Set(["text","richtext","number","select","multiselect","status","date","phone","currency","location","user","relation","document"]),Yt=new Set(["text","number","date","phone","currency","select","multiselect"]),Wt=new Set(["text","phone","status","select","multiselect"]),Gt=new Set(["text","number","checkbox","date","phone","currency","status","select"]);function g(t){let r=!!(t.hidden||t.archived),i=!t.archived,n=qt.has(t.type),a=t.type==="document",s=$t.has(t.type),l=Jt(t),u=r?[]:Kt(t),c=u.length>0&&!r,_=!r&&Wt.has(t.type),h=!r&&Gt.has(t.type),T=!r&&ie(t.type),R=!r&&t.type==="status",vt=K(t),$=n||a||vt,O=!(r||$),Dt=Zt(t.type)?"forbidden":"allowed",Pt=te(t.type),z=Qt(t),Y=Yt.has(t.type),W=!!(t.deprecated&&!r),G=oe(t);return {lifecycle:{active:i,deprecated:!!t.deprecated,visibleInArchitect:true,visibleInRuntime:!r,warningWhenDeprecated:W},storage:{mode:n?"computed":s?"edge":"value",cardinality:l,edgeBacked:s,preservesExistingValues:!!t.archived,qualifiedProperties:Xt(t.type),polymorphic:Ht(t),maxItems:z},authoring:{editable:O,readOnly:$,directEdit:O&&G==="inline",required:Dt,defaultValue:Pt,placeholder:Y,maxItems:z},presentation:{formField:!r&&re(t.type),tableCell:!r&&tt(t.type),defaultColumn:!r&&ee(t.type),compactDisplay:!r,popoverEditor:!r&&G==="popover",placeholder:Y,warningWhenDeprecated:W},query:{filterable:c,searchable:_,sortable:h,groupable:T,kanbanGroupable:R,operators:u},agent:{readable:!r,writable:O&&!a,compactReadable:!r,contentReadable:!r&&ne(t.type),requiresDedicatedTool:a},exchange:{importable:!r,exportable:!r,schemaExportable:true,metadataExportable:false}}}a(g,"getAttributeCapabilities");function Z(t){return g(t).query.operators}a(Z,"getAttributeFilterOperators");function fr(t){return g(t).query.filterable}a(fr,"isAttributeFilterable");function _r(t){return g(t).query.searchable}a(_r,"isAttributeSearchable");function hr(t){return g(t).query.sortable}a(hr,"isAttributeSortable");function gr(t){return g(t).query.groupable}a(gr,"isAttributeGroupable");function Tr(t){return g(t).query.kanbanGroupable}a(Tr,"isAttributeKanbanGroupable");function F(t){if(t.type!=="rollup")return t.type;let r=t;if(r.function==="earliest"||r.function==="latest")return "date";if(r.function==="original"){let i=r.targetAttributeType;if(i&&et(i))return i}return "number"}a(F,"resolveEffectiveFilterType");function V(t){let r=F(t);return et(r)?y[r]:y.number}a(V,"getRollupFilterOperators");function Kt(t){return t.type==="rollup"?V(t):y[t.type]??[]}a(Kt,"getRawFilterOperators");function Jt(t){return t.type==="multiselect"||t.type==="document"||t.type==="user"&&t.multiple===true||t.type==="relation"&&t.cardinality==="many"?"many":"one"}a(Jt,"getAttributeCardinality");function Ht(t){if(t.type!=="relation")return "none";let i=t.targets??[];return i.length===1&&i[0]?.object==="*"?"internal":i.length>1?"code-only":"none"}a(Ht,"getPolymorphicCapability");function Qt(t){return t.type==="multiselect"?true:t.type==="relation"?t.cardinality==="many":false}a(Qt,"supportsMaxItems");function Xt(t){return t==="relation"||t==="document"}a(Xt,"supportsQualifiedProperties");function Zt(t){return t==="checkbox"||t==="formula"||t==="rollup"}a(Zt,"isRequiredForbidden");function te(t){return t==="checkbox"?"automatic":t==="formula"||t==="rollup"?"forbidden":zt.has(t)?"static":"forbidden"}a(te,"getDefaultValueCapability");function ee(t){return tt(t)}a(ee,"isDefaultColumnType");function tt(t){return t!=="richtext"&&t!=="document"}a(tt,"isTableCellType");function re(t){return t!=="richtext"}a(re,"isFormFieldType");function oe(t){switch(t.type){case "checkbox":return "inline";case "number":return t.renderAs==="rating"?"inline":"default";case "select":case "multiselect":return t.renderAs==="badges"?"inline":"popover";case "status":case "relation":case "user":case "date":return "popover";default:return "default"}}a(oe,"resolveEditMode");function ie(t){return t==="status"||t==="currency"}a(ie,"isGroupableType");function ne(t){return t==="richtext"||t==="document"}a(ne,"isContentReadableType");function et(t){return Object.prototype.hasOwnProperty.call(y,t)}a(et,"hasFilterOperatorEntry");var f=y,ae=["is_empty","is_not_empty"];function rt(t){return ae.includes(t)}a(rt,"isNoValueOperator");function xr(t){return V(t)}a(xr,"getRollupFilterOperators");function A(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"dynamic"in t}a(A,"isDynamicValue");function wr(){return {dynamic:"actor",ref:"current"}}a(wr,"currentActor");function Cr(){return {dynamic:"date",anchor:"today"}}a(Cr,"today");function Fr(){return {dynamic:"date",anchor:"now"}}a(Fr,"now");function ot(t){if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()!==""){let r=Number(t);return Number.isFinite(r)?r:null}return null}a(ot,"toAmount");function it(t){return t!==null&&typeof t=="object"?"value"in t?ot(t.value):null:ot(t)}a(it,"extractCurrencyFilterValue");function vr(t){return t==null?null:typeof t=="object"&&"value"in t?t.value??null:t}a(vr,"extractFilterValue");var se=new Set(["is_not","not_contains","none_of","is_empty"]),le={is_not:"is",not_contains:"contains",none_of:"any_of",is_empty:"is_not_empty"};function kr(t){return se.has(t)?"none":"any"}a(kr,"getOperatorPolarity");function Br(t){return le[t]??t}a(Br,"normalizeForEdgeRpc");var nt={is:"any_of",is_not:"none_of"};function Lr(t){return nt[t]??t}a(Lr,"toMultiValueOperator");var ue=new Set(Object.values(nt).filter(t=>t!==void 0));function at(t){return ue.has(t)}a(at,"isSetMembershipOperator");function st(t,r){let i=t.value;if(rt(t.operator)||i==null||A(i))return;if(at(t.operator)){Array.isArray(i)||(t.value=[i]);return}if(r!=="currency")return;let n=it(i);if(n!==null){t.value=n;return}if(!ce(i))return;let a=`Filter on a currency attribute expected a numeric amount, received ${JSON.stringify(i)}`;throw new h(a,[{path:["value"],message:a}])}a(st,"canonicalizeFilterValue");function ce(t){return typeof t!="object"?true:"value"in t?t.value!=null:false}a(ce,"hasCurrencyAmount");var pe={eq:"is",equals:"is",equal:"is","==":"is","=":"is",neq:"is_not",notEqual:"is_not",isNot:"is_not","!=":"is_not","<>":"is_not",lt:"less_than","<":"less_than",gt:"greater_than",">":"greater_than",lte:"less_or_equal","<=":"less_or_equal",gte:"greater_or_equal",">=":"greater_or_equal",in:"any_of",isAnyOf:"any_of",anyOf:"any_of",oneOf:"any_of",notIn:"none_of",not_in:"none_of",isNoneOf:"none_of",noneOf:"none_of",notOneOf:"none_of",startsWith:"starts_with",beginsWith:"starts_with",endsWith:"ends_with",doesNotContain:"not_contains",notContain:"not_contains",isEmpty:"is_empty",isNotEmpty:"is_not_empty"};function I(t){return pe[t]??t}a(I,"normalizeOperator");function Gr(t){let r=I(t.operator);return r===t.operator?t:{...t,operator:r}}a(Gr,"normalizeFilterRule");var de=new Set(["days","weeks","months","years"]),me=new Set(["past","future"]);function v(t){if(typeof t!="object"||t===null)return false;let r=t;return typeof r.amount=="number"&&Number.isFinite(r.amount)&&r.amount>0&&typeof r.unit=="string"&&de.has(r.unit)&&typeof r.direction=="string"&&me.has(r.direction)}a(v,"isRelativeDateValue");function ut(t){return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}a(ut,"utcDayStart");function lt(t,r,i){if(i==="days")return t+r*864e5;if(i==="weeks")return t+r*7*864e5;let n=new Date(t),a=n.getUTCFullYear()+(i==="years"?r:0),s=n.getUTCMonth()+(i==="months"?r:0),l=new Date(Date.UTC(a,s+1,0)).getUTCDate();return Date.UTC(a,s,Math.min(n.getUTCDate(),l))}a(lt,"shiftUtcDay");function Hr(t,r=new Date){if(!v(t))return null;let i=ut(r),n=Math.trunc(t.amount),a=t.direction==="past"?{startMs:lt(i,-n,t.unit),endMs:i+864e5}:{startMs:i,endMs:lt(i,n,t.unit)+864e5};return Number.isFinite(a.startMs)&&Number.isFinite(a.endMs)?a:null}a(Hr,"resolveIsWithinBounds");function Qr(t){if(!Number.isFinite(t))return null;let r=ut(new Date(t));return Number.isFinite(r)?{startMs:r,endMs:r+864e5}:null}a(Qr,"resolveUtcDayBounds");function Xr(t){return new Date(t).toISOString().slice(0,10)}a(Xr,"toUtcDayString");var be=new Set(["relation","document","user"]),D=["is","is_not","any_of","none_of","is_empty","is_not_empty"],ye={id:D,objectId:D,tenantId:D,label:f.text,createdAt:f.date,updatedAt:f.date,deletedAt:f.date,createdBy:f.user,lastUpdatedBy:f.user},fe={id:"text",objectId:"text",objectName:"text",tenantId:"text",label:"text",createdAt:"date",updatedAt:"date",deletedAt:"date",deletedBy:"user",createdBy:"user",lastUpdatedBy:"user",visibility:"select",ownedBy:"user"},B={before:'"less_than"',after:'"greater_than"',on_or_before:'"less_or_equal"',on_or_after:'"greater_or_equal"',is_checked:'"is" with value true',is_not_checked:'"is" with value false',day_month_eq:'"on_day_month"'},_e=new Set(Object.entries(y).filter(([,t])=>t.includes("any_of")&&!t.includes("contains")).map(([t])=>t)),he={contains:"any_of",not_contains:"none_of"};function P(t,r){let i=B[t];if(i){let s=`Unknown filter operator "${t}" \u2014 use ${i}`;throw new h(s,[{path:["operator"],message:s}])}let n=I(t),a=he[n];if(a&&_e.has(r)){let s=`Operator "${n}" is not valid for type "${r}" \u2014 use "${a}"`;throw new h(s,[{path:["operator"],message:s}])}return n}a(P,"resolveCanonicalOperator");function ct(t,r,i){let n=P(t,r),a=f[r];if(!a?.includes(n)){let s=a?.length?a.join(", "):"(no operators registered for this type)",l=`Operator "${t}" is not valid for ${i} type "${r}". Valid operators: ${s}.`;throw new h(l,[{path:["operator"],message:l}])}return n}a(ct,"assertOperatorForType");function ge(t){if(t.operator==="is_within"&&!v(t.value)){let r='Operator "is_within" requires a relative-date value { amount: positive number, unit: days|weeks|months|years, direction: past|future }';throw new h(r,[{path:["value"],message:r}])}}a(ge,"assertRelativeDateValue");function E(t,r,i){t.operator=r,st(t,i),ge(t);}a(E,"applyCanonicalForm");function pt(t,r){if(!A(t.value))return;let i=t.value;if(i.dynamic==="actor"&&r!=="user"){let n=`actor token (@me) is only valid on user attributes, not "${r}"`;throw new h(n,[{path:["value"],message:n}])}if(i.dynamic==="date"&&r!=="date"){let n=`date token (@today/@now) is only valid on date attributes, not "${r}"`;throw new h(n,[{path:["value"],message:n}])}}a(pt,"assertDynamicValueForAttribute");var k=w.map(t=>`"${t}"`).join(", ");function Te(t){return t==="location"?` A location is filtered on one of its parts: set "property" to one of ${k} and use a text operator (e.g. contains).`:""}a(Te,"locationPartsHint");function lo(t,r){try{return Se({...t},r),[]}catch(i){if(!(i instanceof h))throw i;return i.errors.map(n=>({...n,path:[...n.path]}))}}a(lo,"collectQualifiedRuleIssues");function Se(t,r){let i=r.attributes.find(u=>u.name===t.attribute),n=ye[t.attribute];if(!(i||n)){let[u,...c]=t.attribute.split("."),h$1=(c.length>0?r.attributes.find(R=>R.name===u):void 0)?.type==="location"?` Dotted paths are not supported \u2014 set "attribute" to "${u}" and "property" to ${C(c[0]??"")?`"${c[0]}"`:`one of ${k}`}.`:t.attribute.includes(".")?' Dotted paths are not supported \u2014 filter on the attribute name alone, or use the full-text "query" parameter to match text inside a value.':"",T=`Unknown attribute: ${t.attribute}${h$1}`;throw new h(T,[{path:["attribute"],message:T}])}if(t.quantifier!==void 0&&!t.property){let u='quantifier is only valid on qualified edge rules (set "property")';throw new h(u,[{path:["quantifier"],message:u}])}if(!i){if(t.property)throw new h(`Cannot qualify system attribute "${t.attribute}"`,[{path:["property"],message:`"${t.attribute}" is a system column, not a reference`}]);let u=fe[t.attribute]??"text",c=P(t.operator,u);if(!n.includes(c)){let _=`Operator "${t.operator}" is not valid for system attribute "${t.attribute}". Valid operators: ${n.join(", ")}.`;throw new h(_,[{path:["operator"],message:_}])}E(t,c,u);return}if(!t.property){pt(t,i.type);let u=Z(i),c=P(t.operator,i.type);if(!u.includes(c)){let _=u.length?u.join(", "):"(not filterable)",h$1=`Operator "${t.operator}" is not valid for attribute "${i.name}". Valid operators: ${_}.${Te(i.type)}`;throw new h(h$1,[{path:["operator"],message:h$1}])}E(t,c,F(i));return}if(i.type==="location"){if(t.quantifier!==void 0){let c="quantifier is not valid on a location part \u2014 a location is one value, not a set of edges";throw new h(c,[{path:["quantifier"],message:c}])}if(!C(t.property)){let c=`Property "${t.property}" is not a part of location "${t.attribute}". Valid parts: ${k}.`;throw new h(c,[{path:["property"],message:c}])}pt(t,"text");let u=ct(t.operator,"text","property");E(t,u,"text");return}if(!be.has(i.type))throw new h(`Cannot qualify ${i.type} attribute "${t.attribute}"`,[{path:["property"],message:`Attribute "${t.attribute}" is not a reference type`}]);let a=i.properties;if(!a)throw new h(`Attribute "${t.attribute}" has no qualifyWith schema`,[{path:["property"],message:`"${t.attribute}" has no qualifyWith`}]);let s=a.definitions.find(u=>u.name===t.property);if(!s)throw new h(`Property "${t.property}" not defined on "${t.attribute}".qualifyWith()`,[{path:["property"],message:`Unknown property: ${t.property}`}]);let l=ct(t.operator,s.type,"property");E(t,l,s.type);}a(Se,"validateQualifiedRule");var L=["skill","memory","drives","artifact","meeting"];function po(t){return L.includes(t)}a(po,"isNativeObjectName");var N=["workspace","private"],dt=["all",...N];function _o(t){if(typeof t=="string"&&N.includes(t))return t;throw new h(`visibility must be one of: ${N.join(", ")} (received: ${String(t)})`,[])}a(_o,"parseResourceVisibility");var Ae=["id","createdAt","updatedAt","createdBy","lastUpdatedBy","visibility","ownedBy"],ho=[...Ae,"objectId","label","embeddingText","values","metadata","deletedAt","deletedBy","schemaVersion","owned_by"],go=L;var ft=z.enum(["redirect","inline","peek"]),Ee=z.array(z.string()).min(1),x=z.array(z.string()).max(a$1.columnsPerTab),xe=z.array(z.string().min(1)).max(a$1.columnsPerTab).refine(t=>new Set(t).size===t.length,{message:"Displayed attribute names must be unique"}),Re=z.object({attribute:z.string(),direction:z.enum(["asc","desc"])}).strict(),_t=z.array(Re).max(a$1.sortsPerTab),Oe=z.object({amount:z.number(),unit:z.enum(["days","weeks","months","years"]),direction:z.enum(["past","future"])}).strict(),we=z.object({value:z.number().nullable(),code:z.array(z.string()).optional()}).strict(),Ce=z.object({phoneNumber:z.string().nullable(),countryCode:z.string().optional()}).strict(),Fe=z.discriminatedUnion("dynamic",[z.object({dynamic:z.literal("actor"),ref:z.literal("current")}).strict(),z.object({dynamic:z.literal("date"),anchor:z.enum(["today","now"])}).strict()]),Ve=z.object({month:z.number(),day:z.number()}).strict(),Ie=z.union([z.string(),z.number(),z.boolean(),z.array(z.string()),Oe,we,Ce,Ve,Fe,z.null()]),ve=z.enum(["is","is_not","contains","not_contains","starts_with","ends_with","is_empty","is_not_empty","less_than","greater_than","less_or_equal","greater_or_equal","is_within","on_day_month","any_of","none_of"],{error:a(t=>{let r=t.input,i=typeof r=="string"?B[r]:void 0;return i?`Unknown filter operator "${r}" \u2014 use ${i}`:void 0},"error")}),De=z.object({attribute:z.string(),property:z.string().optional(),quantifier:z.enum(["any","none"]).optional(),operator:ve,value:Ie}).strict(),ht=z.array(De).max(a$1.filterRulesPerTab),Pe=z.object({combinator:z.enum(["and","or"]),rules:ht}).strict(),gt=z.object({id:z.string(),combinator:z.enum(["and","or"]),rules:ht}).strict();function j(t,r,i=[]){let n=new Set;t.forEach((a,s)=>{n.has(a.id)&&r.addIssue({code:"custom",message:`Duplicate id "${a.id}"`,path:[...i,s,"id"]}),n.add(a.id);});}a(j,"addDuplicateIdIssues");function ke(t,r,i=[]){let n=new Set;t.forEach((a,s)=>{n.has(a.name)&&r.addIssue({code:"custom",message:`Duplicate name "${a.name}"`,path:[...i,s,"name"]}),n.add(a.name);});}a(ke,"addDuplicateNameIssues");var Be=z.object({id:z.string(),label:z.string(),description:z.string().optional(),attributes:Ee,displayTemplate:z.string().optional()}).strict(),Le={span:z.union([z.literal(1),z.literal(2),z.literal(3),z.literal(4),z.literal(5),z.literal(6),z.literal(7),z.literal(8),z.literal(9),z.literal(10),z.literal(11),z.literal(12)]).optional(),label:z.string().optional(),readOnly:z.boolean().optional()},Tt={attribute:z.string().optional(),attributeGroup:Be.optional(),...Le};function St(t,r){t.attribute===void 0==(t.attributeGroup===void 0)&&r.addIssue({code:"custom",message:"A field must define exactly one of attribute or attributeGroup"});}a(St,"refineField");var Ne=z.object({id:z.string().optional(),...Tt}).strict().superRefine(St),wo=z.object({id:z.string().min(1),...Tt}).strict().superRefine(St),je={id:z.string(),label:z.string(),description:z.string().optional(),collapsible:z.boolean().optional(),collapsed:z.boolean().optional(),order:z.number().optional()},Me=z.object({...je,type:z.literal("fields"),fields:z.array(Ne).max(a$1.fieldsPerGroup)}).strict(),Ue=Me,b={id:z.string(),name:z.string(),label:z.string(),icon:c.optional(),order:z.number().optional()},At=z.array(Ue).max(a$1.groupsPerFormTab),Et={...b,type:z.literal("form"),groups:At,formColumns:z.union([z.literal(1),z.literal(2),z.literal(3)]).optional(),density:z.enum(["compact","comfortable","spacious"]).optional()},qe=z.object(Et).strict();function xt(t,r){j(t.groups,r,["groups"]),t.groups.reduce((a,s)=>a+(s.type==="fields"?s.fields.length:0),0)>a$1.fieldsPerFormTab&&r.addIssue({code:"too_big",origin:"array",maximum:a$1.fieldsPerFormTab,inclusive:true,message:`A form tab can contain at most ${a$1.fieldsPerFormTab} fields`,path:["groups"]});let n=new Set;t.groups.forEach((a,s)=>{a.type==="fields"&&a.fields.forEach((l,u)=>{if(l.attributeGroup===void 0)return;let{id:c}=l.attributeGroup;n.has(c)&&r.addIssue({code:"custom",message:`Duplicate attribute group id "${c}"`,path:["groups",s,"fields",u,"attributeGroup","id"]}),n.add(c);});});}a(xt,"refineFormTab");var $e=z.object({...Et,groups:At.min(1)}).strict().superRefine(xt),ze=qe.superRefine(xt),Rt=z.object({type:z.literal("relation"),attribute:z.string()}).strict(),Ot=z.object({type:z.literal("inverse"),object:z.string(),attribute:z.string()}).strict(),wt=z.discriminatedUnion("type",[Rt,Ot]),Ye=z.object({...b,type:z.literal("table"),source:wt,columns:x,allowCreate:z.boolean().optional(),createMode:ft.optional(),allowEdit:z.boolean().optional(),allowDelete:z.boolean().optional(),filters:Pe.optional(),sorts:_t.optional()}).strict(),mt=64,bt=1e4;function yt(t){let r=Object.getPrototypeOf(t);return r===Object.prototype||r===null}a(yt,"isPlainJsonObject");function m(t,r,i=[]){t.addIssue({code:"custom",message:r,path:i});}a(m,"addJsonIssue");function We(t,r,i,n){for(let a of Reflect.ownKeys(t))if(a!=="length"){if(a==="__proto__"){m(n,"The __proto__ key is not allowed in custom props",[...r.path,a]);continue}(typeof a=="symbol"||!/^(0|[1-9]\d*)$/.test(a))&&m(n,"Arrays cannot contain non-index JSON properties",[...r.path,a]);}for(let a=t.length-1;a>=0;a--){let s=Object.getOwnPropertyDescriptor(t,String(a)),l=[...r.path,a];if(!(s&&"value"in s)){m(n,"Sparse arrays are not valid JSON values",l);continue}i.push({kind:"enter",value:s.value,path:l,depth:r.depth+1});}}a(We,"pushJsonArrayChildren");function Ge(t,r,i,n){let a=Reflect.ownKeys(t);for(let s=a.length-1;s>=0;s--){let l=a[s],u=[...r.path,l];if(l==="__proto__"){m(n,"The __proto__ key is not allowed in custom props",u);continue}if(typeof l=="symbol"){m(n,"Symbol keys are not valid JSON keys",u);continue}let c=Object.getOwnPropertyDescriptor(t,l);if(!(c?.enumerable&&"value"in c)){m(n,"Custom props must contain enumerable data properties only",u);continue}i.push({kind:"enter",value:c.value,path:u,depth:r.depth+1});}}a(Ge,"pushJsonObjectChildren");function Ke(t,r){if(t===null||typeof t!="object"){m(r,"Expected a plain JSON object");return}try{if(Array.isArray(t)||!yt(t)){m(r,"Expected a plain JSON object");return}}catch{m(r,"Custom props contain an object that cannot be safely inspected");return}let i=new WeakSet,n=[{kind:"enter",value:t,path:[],depth:0}],a=0;for(;n.length>0;){let s=n.pop();if(!s)break;if(s.kind==="exit"){i.delete(s.value);continue}if(a++,a>bt){m(r,`Custom props cannot exceed ${bt.toLocaleString("en-US")} total JSON nodes`,s.path);return}if(s.depth>mt){m(r,`Custom props cannot exceed depth ${mt}`,s.path);continue}let l=s.value;if(!(l===null||typeof l=="string"||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))){if(typeof l!="object"){m(r,"Expected a JSON value",s.path);continue}if(i.has(l)){m(r,"Custom props cannot contain circular references",s.path);continue}try{if(Array.isArray(l)){i.add(l),n.push({kind:"exit",value:l}),We(l,s,n,r);continue}if(!yt(l)){m(r,"Expected an array or plain JSON object",s.path);continue}i.add(l),n.push({kind:"exit",value:l}),Ge(l,s,n,r);}catch{m(r,"Custom props contain an object that cannot be safely inspected",s.path);}}}}a(Ke,"validateJsonProps");var Je=z.unknown().superRefine(Ke).transform(t=>t),He=z.object({...b,type:z.literal("custom"),component:z.string(),props:Je.optional()}).strict(),Qe=z.object({...b,type:z.literal("activity"),limit:z.number().optional()}).strict(),Xe=z.object({...b,type:z.literal("richtext"),attribute:z.string(),titleAttribute:z.string().optional()}).strict(),Ze=z.object({...b,type:z.literal("documents"),allowUpload:z.boolean().optional(),allowRemove:z.boolean().optional(),hideAttachments:z.boolean().optional()}).strict(),tr=z.object({...b,type:z.literal("forms"),objectName:z.string().optional()}).strict(),er=z.object({...b,type:z.literal("emails"),emailAttributeIds:z.array(z.string()).max(a$1.emailAttributesPerTab)}).strict(),rr=z.object({...b,type:z.literal("meetings"),emailAttributeIds:z.array(z.string()).max(a$1.emailAttributesPerTab)}).strict(),Ct=[Ye,He,Qe,Xe,Ze,tr,er,rr],Ft=z.discriminatedUnion("type",[$e,...Ct]),Co=z.discriminatedUnion("type",[ze,...Ct]),M={id:z.string(),label:z.string(),icon:c.optional(),default:z.boolean().optional(),visibility:z.enum(dt).default("all"),columns:x,descriptionAttribute:z.string().min(1).optional(),displayAttributes:xe.optional(),filters:gt.optional(),sorts:_t.optional(),readOnly:z.boolean().optional(),createMode:ft.optional()},or=z.object({...M,layout:z.literal("table"),columnSizing:z.record(z.string(),z.number()).optional(),groupByAttribute:z.string().min(1).optional()}).strict(),ir=z.object({...M,layout:z.literal("kanban"),columns:x.default([]),groupByAttribute:z.string(),cardUserAttribute:z.string().optional(),cardDateAttribute:z.string().optional(),kanbanColumnOrder:z.array(z.string()).optional(),kanbanColumnVisibility:z.record(z.string(),z.boolean()).optional(),kanbanPinnedColumns:z.array(z.string()).optional()}).strict(),nr=z.object({...M,layout:z.literal("list"),columns:x.default([]),columnSizing:z.record(z.string(),z.number()).optional(),groupByAttribute:z.string().min(1).optional()}).strict(),Vt=z.discriminatedUnion("layout",[or,nr,ir]),ar=z.object({allowPresentationCustomization:z.boolean().optional(),defaultFilters:gt.optional(),tabs:z.array(Vt).min(1).max(a$1.tabsPerView)}).strict().superRefine((t,r)=>{j(t.tabs,r,["tabs"]);let i=false;t.tabs.forEach((n,a)=>{n.layout!=="kanban"&&n.groupByAttribute!==void 0&&t.allowPresentationCustomization!==true&&r.addIssue({code:"unrecognized_keys",keys:["groupByAttribute"],path:["tabs",a]}),n.default&&(i&&r.addIssue({code:"custom",message:"Only one list tab can be the default",path:["tabs",a,"default"]}),i=true);});}),sr=z.discriminatedUnion("kind",[z.object({kind:z.literal("fields"),id:z.string().optional(),label:z.string().optional(),attributes:z.array(z.string()).max(a$1.sidePanelAttributes)}).strict(),z.object({kind:z.literal("activity"),id:z.string().optional(),label:z.string().optional()}).strict(),z.object({kind:z.literal("documents"),id:z.string(),label:z.string().optional(),allowUpload:z.boolean().optional(),allowRemove:z.boolean().optional()}).strict()]),lr=z.object({tabs:z.array(Ft).min(1).max(a$1.tabsPerView),readOnly:z.boolean().optional(),sidePanel:z.object({attributes:z.array(z.string()).max(a$1.sidePanelAttributes).optional(),panes:z.array(sr).max(a$1.sidePanelPanes).optional(),width:z.number().optional()}).strict().refine(t=>t.attributes!==void 0||t.panes!==void 0,{message:"sidePanel requires attributes or panes"}).refine(t=>t.panes===void 0||t.panes.length>0,{message:"sidePanel panes must not be empty"}).refine(t=>t.attributes===void 0||t.panes===void 0,{message:"sidePanel takes attributes or panes, not both"}).optional()}).strict().superRefine((t,r)=>{j(t.tabs,r,["tabs"]),ke(t.tabs,r,["tabs"]);}),U=ar,q=lr,Fo=z.enum(["list","detail"]);var It=z.discriminatedUnion("type",[z.object({type:z.literal("list"),config:U}).strict(),z.object({type:z.literal("detail"),config:q}).strict()]);function ur(t,r){switch(t){case "list":return U.parse(r);case "detail":return q.parse(r);default:return It.parse({type:t,config:r}).config}}a(ur,"parseViewConfig");var Vo=["columnSizing"],Io=["groupByAttribute","cardUserAttribute","cardDateAttribute","kanbanColumnOrder","kanbanColumnVisibility","kanbanPinnedColumns"];export{_t as $,Ae as A,ho as B,go as C,A as D,wr as E,Cr as F,Fr as G,it as H,vr as I,kr as J,Br as K,Lr as L,at as M,st as N,pe as O,I as P,Gr as Q,v as R,Hr as S,Qr as T,Xr as U,fe as V,B as W,lo as X,Se as Y,x as Z,xe as _,kt as a,Pe as aa,cr as b,gt as ba,Bt as c,Tt as ca,pr as d,Ne as da,K as e,wo as ea,w as f,Ue as fa,C as g,Rt as ga,yr as h,Ot as ha,y as i,wt as ia,g as j,Ft as ja,Z as k,Co as ka,fr as l,Vt as la,_r as m,U as ma,hr as n,q as na,gr as o,Fo as oa,Tr as p,It as pa,F as q,ur as qa,f as r,Vo as ra,ae as s,Io as sa,rt as t,xr as u,L as v,po as w,N as x,dt as y,_o as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
function d(n){let e=new Set;function t(o){if(o===null)return "null";switch(typeof o){case "string":case "number":case "boolean":return JSON.stringify(o);case "undefined":return;case "object":break;default:throw new
|
|
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
|
+
function d(n){let e=new Set;function t(o){if(o===null)return "null";switch(typeof o){case "string":case "number":case "boolean":return JSON.stringify(o);case "undefined":return;case "object":break;default:throw new chunkGZUTZAPU_js.h(`Cannot canonicalize value of type ${typeof o}`,[])}let i=o;if(e.has(i))throw new chunkGZUTZAPU_js.h("Cannot canonicalize circular structure",[]);e.add(i);try{return Array.isArray(i)?`[${i.map(r=>t(r)??"null").join(",")}]`:`{${Object.entries(i).map(([r,s])=>[r,t(s)]).filter(r=>r[1]!==void 0).sort(([r],[s])=>r<s?-1:1).map(([r,s])=>`${JSON.stringify(r)}:${s}`).join(",")}}`}finally{e.delete(i);}}return chunkDPD6ZWL2_js.a(t,"encode"),t(n)??"null"}chunkDPD6ZWL2_js.a(d,"canonicalStringify");function p(n){return n}chunkDPD6ZWL2_js.a(p,"asTenantId");function g(n){return n}chunkDPD6ZWL2_js.a(g,"asUserId");function w(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{let e=Math.random()*16|0;return (n==="x"?e:e&3|8).toString(16)})}chunkDPD6ZWL2_js.a(w,"generateId");function b(n,e){return new Map(n.map(t=>[e(t),t]))}chunkDPD6ZWL2_js.a(b,"indexBy");function f(n,e){if(n===e)return true;if(n==null||e==null||typeof n!=typeof e)return false;if(Array.isArray(n))return !Array.isArray(e)||n.length!==e.length?false:n.every((t,o)=>f(t,e[o]));if(typeof n=="object"&&typeof e=="object"){let t=n,o=e,i=Object.keys(t),c=Object.keys(o);return i.length!==c.length?false:i.every(r=>r in o&&f(t[r],o[r]))}return false}chunkDPD6ZWL2_js.a(f,"deepEqual");exports.a=d;exports.b=p;exports.c=g;exports.d=w;exports.e=b;exports.f=f;
|
package/dist/exceptions.d.mts
CHANGED
|
@@ -18,6 +18,8 @@ declare const SchemaErrorCode: {
|
|
|
18
18
|
readonly VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
|
|
19
19
|
readonly INVALID_ATTRIBUTE_NAME: "SCHEMA_INVALID_ATTRIBUTE_NAME";
|
|
20
20
|
readonly INVALID_OBJECT_NAME: "SCHEMA_INVALID_OBJECT_NAME";
|
|
21
|
+
/** A consumer declared, registered, bundled or sourced an object under a framework-native name (#3450). */
|
|
22
|
+
readonly RESERVED_OBJECT_NAME: "SCHEMA_RESERVED_OBJECT_NAME";
|
|
21
23
|
readonly PROTECTED_OBJECT: "SCHEMA_PROTECTED_OBJECT";
|
|
22
24
|
readonly PROTECTED_ATTRIBUTE: "SCHEMA_PROTECTED_ATTRIBUTE";
|
|
23
25
|
readonly PROTECTED_VIEW: "SCHEMA_PROTECTED_VIEW";
|
|
@@ -340,6 +342,24 @@ declare class DuplicateError extends SchemaError {
|
|
|
340
342
|
readonly resourceName: string;
|
|
341
343
|
constructor(resourceType: string, resourceName: string, message?: string);
|
|
342
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* A consumer tried to build, register, bundle or source an object under a name
|
|
347
|
+
* the framework owns (`skill`, `memory`, `drives`, `artifact`, `meeting`).
|
|
348
|
+
* Raised at declaration time so the collision fails in the consumer's own
|
|
349
|
+
* tests, never at boot: the platform's `wealth-manager` bundle once shipped
|
|
350
|
+
* `meeting` and hid the native calendar object from every tenant for three
|
|
351
|
+
* days (#3450).
|
|
352
|
+
*/
|
|
353
|
+
declare const RESERVED_NAME_CONTEXTS: {
|
|
354
|
+
readonly builder: "cannot be built by a consumer";
|
|
355
|
+
readonly registry: "cannot be registered by a consumer";
|
|
356
|
+
readonly bundle: "cannot be claimed by a bundle";
|
|
357
|
+
readonly source: "cannot be declared by a schema source";
|
|
358
|
+
};
|
|
359
|
+
declare class ReservedObjectNameError extends SchemaError {
|
|
360
|
+
readonly objectName: string;
|
|
361
|
+
constructor(objectName: string, context: keyof typeof RESERVED_NAME_CONTEXTS);
|
|
362
|
+
}
|
|
343
363
|
/**
|
|
344
364
|
* Check if an error is a SchemaError
|
|
345
365
|
*/
|
|
@@ -514,4 +534,4 @@ declare function isAttributeInUseError(error: unknown): error is AttributeInUseE
|
|
|
514
534
|
*/
|
|
515
535
|
declare function isObjectReferencedError(error: unknown): error is ObjectReferencedError;
|
|
516
536
|
|
|
517
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, type RecordReference, RecordReferencedError, RepositoryError, type RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, type StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, type ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError };
|
|
537
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, type RecordReference, RecordReferencedError, RepositoryError, type RepositoryOperation, ReservedObjectNameError, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, type StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, type ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError };
|
package/dist/exceptions.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ declare const SchemaErrorCode: {
|
|
|
18
18
|
readonly VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
|
|
19
19
|
readonly INVALID_ATTRIBUTE_NAME: "SCHEMA_INVALID_ATTRIBUTE_NAME";
|
|
20
20
|
readonly INVALID_OBJECT_NAME: "SCHEMA_INVALID_OBJECT_NAME";
|
|
21
|
+
/** A consumer declared, registered, bundled or sourced an object under a framework-native name (#3450). */
|
|
22
|
+
readonly RESERVED_OBJECT_NAME: "SCHEMA_RESERVED_OBJECT_NAME";
|
|
21
23
|
readonly PROTECTED_OBJECT: "SCHEMA_PROTECTED_OBJECT";
|
|
22
24
|
readonly PROTECTED_ATTRIBUTE: "SCHEMA_PROTECTED_ATTRIBUTE";
|
|
23
25
|
readonly PROTECTED_VIEW: "SCHEMA_PROTECTED_VIEW";
|
|
@@ -340,6 +342,24 @@ declare class DuplicateError extends SchemaError {
|
|
|
340
342
|
readonly resourceName: string;
|
|
341
343
|
constructor(resourceType: string, resourceName: string, message?: string);
|
|
342
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* A consumer tried to build, register, bundle or source an object under a name
|
|
347
|
+
* the framework owns (`skill`, `memory`, `drives`, `artifact`, `meeting`).
|
|
348
|
+
* Raised at declaration time so the collision fails in the consumer's own
|
|
349
|
+
* tests, never at boot: the platform's `wealth-manager` bundle once shipped
|
|
350
|
+
* `meeting` and hid the native calendar object from every tenant for three
|
|
351
|
+
* days (#3450).
|
|
352
|
+
*/
|
|
353
|
+
declare const RESERVED_NAME_CONTEXTS: {
|
|
354
|
+
readonly builder: "cannot be built by a consumer";
|
|
355
|
+
readonly registry: "cannot be registered by a consumer";
|
|
356
|
+
readonly bundle: "cannot be claimed by a bundle";
|
|
357
|
+
readonly source: "cannot be declared by a schema source";
|
|
358
|
+
};
|
|
359
|
+
declare class ReservedObjectNameError extends SchemaError {
|
|
360
|
+
readonly objectName: string;
|
|
361
|
+
constructor(objectName: string, context: keyof typeof RESERVED_NAME_CONTEXTS);
|
|
362
|
+
}
|
|
343
363
|
/**
|
|
344
364
|
* Check if an error is a SchemaError
|
|
345
365
|
*/
|
|
@@ -514,4 +534,4 @@ declare function isAttributeInUseError(error: unknown): error is AttributeInUseE
|
|
|
514
534
|
*/
|
|
515
535
|
declare function isObjectReferencedError(error: unknown): error is ObjectReferencedError;
|
|
516
536
|
|
|
517
|
-
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, type RecordReference, RecordReferencedError, RepositoryError, type RepositoryOperation, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, type StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, type ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError };
|
|
537
|
+
export { AccessDeniedError, AttributeInUseError, AttributeNotFoundError, type AttributeUsage, ChangeTypeNotSupportedError, ConcurrentModificationError, DestructiveSyncNotAllowedError, DuplicateError, ForbiddenError, MemoryNotFoundError, MigrationTimeoutError, NotFoundError, NotImplementedError, ObjectNotFoundError, ObjectReferencedError, OrphanSystemAttributeError, ProtectedResourceError, ProtectedRoleError, RecordNotFoundError, type RecordReference, RecordReferencedError, RepositoryError, type RepositoryOperation, ReservedObjectNameError, RoleNotFoundError, SchemaError, SchemaErrorCode, SchemaPlanNotFoundError, SearchBackendError, StorageError, type StorageOperation, SyncCascadeError, SyncConflictError, SyncError, SystemEntityImmutableError, ValidationError, type ValidationErrorDetail, isAttributeInUseError, isNotFoundError, isObjectReferencedError, isProtectedResourceError, isRecordReferencedError, isSchemaError, isValidationError };
|