@stndrds/schema 1.0.0-alpha.294 → 1.0.0-alpha.296
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/LICENSE +111 -0
- package/README.md +7 -0
- package/dist/{all-Cru_CaSY.d.mts → all-BekDmUP1.d.mts} +32 -32
- package/dist/{all-CDJSpI46.d.ts → all-Bl3DlCEn.d.ts} +32 -32
- package/dist/{attributes-CWPLbp7c.d.mts → attributes-CtS5Gf_i.d.mts} +1 -1
- package/dist/{attributes-CNYwg_Nr.d.ts → attributes-SIbTof03.d.ts} +1 -1
- package/dist/capabilities.js +2 -77
- package/dist/capabilities.mjs +2 -70
- package/dist/chunk-23KPS33D.js +2 -0
- package/dist/chunk-47EGJRW7.js +4 -0
- package/dist/chunk-47KVYDKG.js +2 -0
- package/dist/chunk-4OTKOCGB.mjs +2 -0
- package/dist/chunk-4VCADZK4.mjs +2 -0
- package/dist/chunk-5QAE5NPN.js +6 -0
- package/dist/chunk-72TQRSNX.js +12 -0
- package/dist/chunk-DPD6ZWL2.js +2 -0
- package/dist/chunk-GKXTXH4Y.mjs +2 -0
- package/dist/chunk-GWAHL4A2.mjs +2 -0
- package/dist/chunk-GXSNLYRR.js +2 -0
- package/dist/chunk-JCPAOH76.mjs +2 -0
- package/dist/chunk-JFSQ24XR.js +2 -0
- package/dist/chunk-JOS2XMXY.js +2 -0
- package/dist/chunk-JVLH3DVZ.js +2 -0
- package/dist/chunk-KG2ADZG6.mjs +2 -0
- package/dist/chunk-KLR22JMC.js +2 -0
- package/dist/chunk-KSPJP74K.mjs +2 -0
- package/dist/chunk-KYPEBOPW.mjs +2 -0
- package/dist/chunk-LB4TNMZU.mjs +2 -0
- package/dist/chunk-LQYUPOWB.js +2 -0
- package/dist/chunk-LSCBR4VS.js +2 -0
- package/dist/chunk-LWSOKXPF.js +2 -0
- package/dist/chunk-O34B5KOW.mjs +2 -0
- package/dist/chunk-PFO7NWQW.mjs +2 -0
- package/dist/chunk-PT25FZ62.mjs +12 -0
- package/dist/chunk-Q7TQCRSD.mjs +2 -0
- package/dist/chunk-RFKNNT2Q.mjs +4 -0
- package/dist/chunk-SDOYGWU4.js +2 -0
- package/dist/chunk-SLYRQ72J.js +2 -0
- package/dist/chunk-UXISKZ5Y.js +2 -0
- package/dist/chunk-V43RXKN2.mjs +6 -0
- package/dist/chunk-VKFLXFPP.mjs +2 -0
- package/dist/chunk-WMQRTFOP.mjs +2 -0
- package/dist/chunk-XHEBV2HE.js +2 -0
- package/dist/chunk-XMQV2WFY.mjs +2 -0
- package/dist/chunk-XRDP2Y4J.mjs +2 -0
- package/dist/chunk-XUAP7KWK.js +2 -0
- package/dist/chunk-XXTKNIBK.js +2 -0
- package/dist/chunk-YIXNAWH6.mjs +2 -0
- package/dist/exceptions.d.mts +8 -2
- package/dist/exceptions.d.ts +8 -2
- package/dist/exceptions.js +1 -158
- package/dist/exceptions.mjs +1 -1
- package/dist/{helpers-Dul_r9rJ.d.mts → helpers-BUsoR80N.d.mts} +3 -3
- package/dist/{helpers-CXkVwpsl.d.ts → helpers-DZFOorZt.d.ts} +3 -3
- package/dist/{index-CFhPHQaI.d.ts → index-DaY37pqb.d.ts} +2 -2
- package/dist/{index-BdVnHL3F.d.mts → index-EHhbbH-p.d.mts} +2 -2
- package/dist/index.d.mts +500 -146
- package/dist/index.d.ts +500 -146
- package/dist/index.js +30 -10514
- package/dist/index.mjs +30 -9626
- package/dist/{migrations-fRvadl6i.d.mts → migrations-DRBic-QO.d.mts} +1 -1
- package/dist/{migrations-DaFneOfx.d.ts → migrations-DhQ05TqN.d.ts} +1 -1
- package/dist/{objects-DJv6WrDE.d.ts → objects-DMOfJNYg.d.ts} +2 -2
- package/dist/{objects-CDwMSnqv.d.mts → objects-KU7alqZq.d.mts} +2 -2
- package/dist/{types-NGEww_ln.d.ts → types-BNaHEz_n.d.ts} +1 -1
- package/dist/{types-CVYiFc69.d.mts → types-ldo4nJxP.d.mts} +1 -1
- package/dist/utils.js +1 -31
- package/dist/utils.mjs +1 -2
- package/dist/validation/all.d.mts +7 -7
- package/dist/validation/all.d.ts +7 -7
- package/dist/validation/all.js +1 -131
- package/dist/validation/all.mjs +1 -18
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/currency.js +1 -11
- package/dist/validation/complex/currency.mjs +1 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/location.js +1 -11
- package/dist/validation/complex/location.mjs +1 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/phone.js +1 -11
- package/dist/validation/complex/phone.mjs +1 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/relation.js +1 -19
- package/dist/validation/complex/relation.mjs +1 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/richtext.js +1 -11
- package/dist/validation/complex/richtext.mjs +1 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/select.js +1 -19
- package/dist/validation/complex/select.mjs +1 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/complex/user.js +1 -11
- package/dist/validation/complex/user.mjs +1 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/formula.js +1 -11
- package/dist/validation/computed/formula.mjs +1 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/computed/rollup.js +1 -11
- package/dist/validation/computed/rollup.mjs +1 -2
- package/dist/validation/config/index.d.mts +4 -4
- package/dist/validation/config/index.d.ts +4 -4
- package/dist/validation/config/index.js +1 -52
- package/dist/validation/config/index.mjs +1 -7
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/core/index.js +1 -14
- package/dist/validation/core/index.mjs +1 -1
- package/dist/validation/object/index.d.mts +5 -5
- package/dist/validation/object/index.d.ts +5 -5
- package/dist/validation/object/index.js +1 -69
- package/dist/validation/object/index.mjs +1 -16
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/checkbox.js +1 -11
- package/dist/validation/primitives/checkbox.mjs +1 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/date.js +1 -11
- package/dist/validation/primitives/date.mjs +1 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/number.js +1 -11
- package/dist/validation/primitives/number.mjs +1 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/dist/validation/primitives/text.js +1 -11
- package/dist/validation/primitives/text.mjs +1 -2
- package/package.json +7 -5
- package/dist/chunk-2WWGHULM.mjs +0 -226
- package/dist/chunk-4KMUATDG.js +0 -609
- package/dist/chunk-5WATIVCA.js +0 -10
- package/dist/chunk-ACKMC6FL.js +0 -17
- package/dist/chunk-AYVHMVKQ.mjs +0 -15
- package/dist/chunk-CLZORRMS.mjs +0 -570
- package/dist/chunk-DVXGSTWJ.js +0 -81
- package/dist/chunk-E6JUYGJX.js +0 -22
- package/dist/chunk-EEH4XQ7W.js +0 -61
- package/dist/chunk-EW5XR2X3.js +0 -12
- package/dist/chunk-GO6LQADH.mjs +0 -57
- package/dist/chunk-HRQEZUAA.mjs +0 -29
- package/dist/chunk-HTSTPTNZ.js +0 -10
- package/dist/chunk-HURC6CW3.js +0 -241
- package/dist/chunk-JZNR4HKQ.mjs +0 -1432
- package/dist/chunk-KAWYU7TE.js +0 -657
- package/dist/chunk-KNGWHQLR.js +0 -16
- package/dist/chunk-LV3FEUKU.mjs +0 -14
- package/dist/chunk-NS63SPNN.mjs +0 -8
- package/dist/chunk-O73ROMWQ.mjs +0 -85
- package/dist/chunk-OSSGN43B.mjs +0 -8
- package/dist/chunk-Q44QKLN4.mjs +0 -43
- package/dist/chunk-Q4SZAMJT.js +0 -72
- package/dist/chunk-QT35SI3K.mjs +0 -641
- package/dist/chunk-QVLQPW3O.mjs +0 -10
- package/dist/chunk-QWKLQRBX.js +0 -35
- package/dist/chunk-R2DAEDRF.mjs +0 -74
- package/dist/chunk-R5LAJCBU.mjs +0 -67
- package/dist/chunk-SI34M4IC.js +0 -45
- package/dist/chunk-T5PM73EF.js +0 -1504
- package/dist/chunk-UANQJ2GH.mjs +0 -25
- package/dist/chunk-UXAHLSWC.mjs +0 -8
- package/dist/chunk-V2UA2D4E.js +0 -10
- package/dist/chunk-YIP5FJ5H.js +0 -27
- package/dist/chunk-YKWSHBT5.js +0 -32
- package/dist/chunk-YUFTHPOE.mjs +0 -20
- package/dist/chunk-ZDQ5AP26.mjs +0 -31
- package/dist/chunk-ZPFOKBIN.js +0 -89
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {h as h$1}from'./chunk-PT25FZ62.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
|
+
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
|
+
`||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
|
+
`;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,2 @@
|
|
|
1
|
+
'use strict';var chunk47EGJRW7_js=require('./chunk-47EGJRW7.js'),chunk72TQRSNX_js=require('./chunk-72TQRSNX.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 Pt={createdAt:"createdAt",updatedAt:"updatedAt",createdBy:"createdBy",lastUpdatedBy:"lastUpdatedBy",attachments:"attachments"};function ur(t){return Pt[t]}chunkDPD6ZWL2_js.a(ur,"getSystemAttributeI18nKey");var kt={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 cr(){return Object.values(kt)}chunkDPD6ZWL2_js.a(cr,"getSystemAttributeList");function G(t){return t.id?.startsWith("system:")??false}chunkDPD6ZWL2_js.a(G,"isManagedSystemAttribute");var Q=["is","is_not","contains","not_contains","starts_with","ends_with","is_empty","is_not_empty"],K=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_empty","is_not_empty"],Bt=["is"],Lt=["is","is_not","less_than","greater_than","less_or_equal","greater_or_equal","is_within","on_day_month","is_empty","is_not_empty"],J=["is","is_not","any_of","none_of","is_empty","is_not_empty"],jt=["any_of","none_of","is_empty","is_not_empty"],H=["is","is_not","any_of","none_of","is_empty","is_not_empty"],Nt=["is_empty","is_not_empty"],Mt=["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 F(t){return w.includes(t)}chunkDPD6ZWL2_js.a(F,"isLocationFilterProperty");function br(t){return Q.includes(t)}chunkDPD6ZWL2_js.a(br,"isLocationPartOperator");var y={text:Q,richtext:[],number:K,checkbox:Bt,date:Lt,phone:["is","is_not","contains","not_contains","starts_with","is_empty","is_not_empty"],currency:K,status:J,select:J,multiselect:jt,location:[],user:H,relation:H,formula:Mt,document:Nt},Ut=new Set(["formula","rollup"]),qt=new Set(["user","relation","document"]),$t=new Set(["text","richtext","number","select","multiselect","status","date","phone","currency","location","user","relation","document"]),zt=new Set(["text","number","date","phone","currency","select","multiselect"]),Yt=new Set(["text","phone","status","select","multiselect"]),Wt=new Set(["text","number","checkbox","date","phone","currency","status","select"]);function g(t){let r=!!(t.hidden||t.archived),i=!t.archived,n=Ut.has(t.type),a=t.type==="document",s=qt.has(t.type),l=Kt(t),u=r?[]:Gt(t),c=u.length>0&&!r,h=!r&&Yt.has(t.type),_=!r&&Wt.has(t.type),T=!r&&oe(t.type),R=!r&&t.type==="status",It=G(t),q=n||a||It,O=!(r||q),vt=Xt(t.type)?"forbidden":"allowed",Dt=Zt(t.type),$=Ht(t),z=zt.has(t.type),Y=!!(t.deprecated&&!r),W=re(t);return {lifecycle:{active:i,deprecated:!!t.deprecated,visibleInArchitect:true,visibleInRuntime:!r,warningWhenDeprecated:Y},storage:{mode:n?"computed":s?"edge":"value",cardinality:l,edgeBacked:s,preservesExistingValues:!!t.archived,qualifiedProperties:Qt(t.type),polymorphic:Jt(t),maxItems:$},authoring:{editable:O,readOnly:q,directEdit:O&&W==="inline",required:vt,defaultValue:Dt,placeholder:z,maxItems:$},presentation:{formField:!r&&ee(t.type),tableCell:!r&&Z(t.type),defaultColumn:!r&&te(t.type),compactDisplay:!r,popoverEditor:!r&&W==="popover",placeholder:z,warningWhenDeprecated:Y},query:{filterable:c,searchable:h,sortable:_,groupable:T,kanbanGroupable:R,operators:u},agent:{readable:!r,writable:O&&!a,compactReadable:!r,contentReadable:!r&&ie(t.type),requiresDedicatedTool:a},exchange:{importable:!r,exportable:!r,schemaExportable:true,metadataExportable:false}}}chunkDPD6ZWL2_js.a(g,"getAttributeCapabilities");function X(t){return g(t).query.operators}chunkDPD6ZWL2_js.a(X,"getAttributeFilterOperators");function yr(t){return g(t).query.filterable}chunkDPD6ZWL2_js.a(yr,"isAttributeFilterable");function fr(t){return g(t).query.searchable}chunkDPD6ZWL2_js.a(fr,"isAttributeSearchable");function hr(t){return g(t).query.sortable}chunkDPD6ZWL2_js.a(hr,"isAttributeSortable");function _r(t){return g(t).query.groupable}chunkDPD6ZWL2_js.a(_r,"isAttributeGroupable");function gr(t){return g(t).query.kanbanGroupable}chunkDPD6ZWL2_js.a(gr,"isAttributeKanbanGroupable");function C(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&&tt(i))return i}return "number"}chunkDPD6ZWL2_js.a(C,"resolveEffectiveFilterType");function V(t){let r=C(t);return tt(r)?y[r]:y.number}chunkDPD6ZWL2_js.a(V,"getRollupFilterOperators");function Gt(t){return t.type==="rollup"?V(t):y[t.type]??[]}chunkDPD6ZWL2_js.a(Gt,"getRawFilterOperators");function Kt(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(Kt,"getAttributeCardinality");function Jt(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(Jt,"getPolymorphicCapability");function Ht(t){return t.type==="multiselect"?true:t.type==="relation"?t.cardinality==="many":false}chunkDPD6ZWL2_js.a(Ht,"supportsMaxItems");function Qt(t){return t==="relation"||t==="document"}chunkDPD6ZWL2_js.a(Qt,"supportsQualifiedProperties");function Xt(t){return t==="checkbox"||t==="formula"||t==="rollup"}chunkDPD6ZWL2_js.a(Xt,"isRequiredForbidden");function Zt(t){return t==="checkbox"?"automatic":t==="formula"||t==="rollup"?"forbidden":$t.has(t)?"static":"forbidden"}chunkDPD6ZWL2_js.a(Zt,"getDefaultValueCapability");function te(t){return Z(t)}chunkDPD6ZWL2_js.a(te,"isDefaultColumnType");function Z(t){return t!=="richtext"&&t!=="document"}chunkDPD6ZWL2_js.a(Z,"isTableCellType");function ee(t){return t!=="richtext"}chunkDPD6ZWL2_js.a(ee,"isFormFieldType");function re(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(re,"resolveEditMode");function oe(t){return t==="status"||t==="currency"}chunkDPD6ZWL2_js.a(oe,"isGroupableType");function ie(t){return t==="richtext"||t==="document"}chunkDPD6ZWL2_js.a(ie,"isContentReadableType");function tt(t){return Object.prototype.hasOwnProperty.call(y,t)}chunkDPD6ZWL2_js.a(tt,"hasFilterOperatorEntry");var f=y,ne=["is_empty","is_not_empty"];function et(t){return ne.includes(t)}chunkDPD6ZWL2_js.a(et,"isNoValueOperator");function Er(t){return V(t)}chunkDPD6ZWL2_js.a(Er,"getRollupFilterOperators");function A(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"dynamic"in t}chunkDPD6ZWL2_js.a(A,"isDynamicValue");function Or(){return {dynamic:"actor",ref:"current"}}chunkDPD6ZWL2_js.a(Or,"currentActor");function wr(){return {dynamic:"date",anchor:"today"}}chunkDPD6ZWL2_js.a(wr,"today");function Fr(){return {dynamic:"date",anchor:"now"}}chunkDPD6ZWL2_js.a(Fr,"now");function rt(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(rt,"toAmount");function ot(t){return t!==null&&typeof t=="object"?"value"in t?rt(t.value):null:rt(t)}chunkDPD6ZWL2_js.a(ot,"extractCurrencyFilterValue");function Ir(t){return t==null?null:typeof t=="object"&&"value"in t?t.value??null:t}chunkDPD6ZWL2_js.a(Ir,"extractFilterValue");var ae=new Set(["is_not","not_contains","none_of","is_empty"]),se={is_not:"is",not_contains:"contains",none_of:"any_of",is_empty:"is_not_empty"};function Pr(t){return ae.has(t)?"none":"any"}chunkDPD6ZWL2_js.a(Pr,"getOperatorPolarity");function kr(t){return se[t]??t}chunkDPD6ZWL2_js.a(kr,"normalizeForEdgeRpc");var it={is:"any_of",is_not:"none_of"};function Br(t){return it[t]??t}chunkDPD6ZWL2_js.a(Br,"toMultiValueOperator");var le=new Set(Object.values(it).filter(t=>t!==void 0));function nt(t){return le.has(t)}chunkDPD6ZWL2_js.a(nt,"isSetMembershipOperator");function at(t,r){let i=t.value;if(et(t.operator)||i==null||A(i))return;if(nt(t.operator)){Array.isArray(i)||(t.value=[i]);return}if(r!=="currency")return;let n=ot(i);if(n!==null){t.value=n;return}if(!ue(i))return;let a=`Filter on a currency attribute expected a numeric amount, received ${JSON.stringify(i)}`;throw new chunk72TQRSNX_js.h(a,[{path:["value"],message:a}])}chunkDPD6ZWL2_js.a(at,"canonicalizeFilterValue");function ue(t){return typeof t!="object"?true:"value"in t?t.value!=null:false}chunkDPD6ZWL2_js.a(ue,"hasCurrencyAmount");var ce={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 ce[t]??t}chunkDPD6ZWL2_js.a(I,"normalizeOperator");function Wr(t){let r=I(t.operator);return r===t.operator?t:{...t,operator:r}}chunkDPD6ZWL2_js.a(Wr,"normalizeFilterRule");var pe=new Set(["days","weeks","months","years"]),de=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"&&pe.has(r.unit)&&typeof r.direction=="string"&&de.has(r.direction)}chunkDPD6ZWL2_js.a(v,"isRelativeDateValue");function lt(t){return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}chunkDPD6ZWL2_js.a(lt,"utcDayStart");function st(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(st,"shiftUtcDay");function Jr(t,r=new Date){if(!v(t))return null;let i=lt(r),n=Math.trunc(t.amount),a=t.direction==="past"?{startMs:st(i,-n,t.unit),endMs:i+864e5}:{startMs:i,endMs:st(i,n,t.unit)+864e5};return Number.isFinite(a.startMs)&&Number.isFinite(a.endMs)?a:null}chunkDPD6ZWL2_js.a(Jr,"resolveIsWithinBounds");function Hr(t){if(!Number.isFinite(t))return null;let r=lt(new Date(t));return Number.isFinite(r)?{startMs:r,endMs:r+864e5}:null}chunkDPD6ZWL2_js.a(Hr,"resolveUtcDayBounds");function Qr(t){return new Date(t).toISOString().slice(0,10)}chunkDPD6ZWL2_js.a(Qr,"toUtcDayString");var me=new Set(["relation","document","user"]),D=["is","is_not","any_of","none_of","is_empty","is_not_empty"],be={id:D,objectId:D,tenantId:D,label:f.text,createdAt:f.date,updatedAt:f.date,deletedAt:f.date,createdBy:f.user,lastUpdatedBy:f.user},ye={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"'},fe=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 chunk72TQRSNX_js.h(s,[{path:["operator"],message:s}])}let n=I(t),a=he[n];if(a&&fe.has(r)){let s=`Operator "${n}" is not valid for type "${r}" \u2014 use "${a}"`;throw new chunk72TQRSNX_js.h(s,[{path:["operator"],message:s}])}return n}chunkDPD6ZWL2_js.a(P,"resolveCanonicalOperator");function ut(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 chunk72TQRSNX_js.h(l,[{path:["operator"],message:l}])}return n}chunkDPD6ZWL2_js.a(ut,"assertOperatorForType");function _e(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 chunk72TQRSNX_js.h(r,[{path:["value"],message:r}])}}chunkDPD6ZWL2_js.a(_e,"assertRelativeDateValue");function E(t,r,i){t.operator=r,at(t,i),_e(t);}chunkDPD6ZWL2_js.a(E,"applyCanonicalForm");function ct(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 chunk72TQRSNX_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 chunk72TQRSNX_js.h(n,[{path:["value"],message:n}])}}chunkDPD6ZWL2_js.a(ct,"assertDynamicValueForAttribute");var k=w.map(t=>`"${t}"`).join(", ");function ge(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(ge,"locationPartsHint");function so(t,r){try{return Te({...t},r),[]}catch(i){if(!(i instanceof chunk72TQRSNX_js.h))throw i;return i.errors.map(n=>({...n,path:[...n.path]}))}}chunkDPD6ZWL2_js.a(so,"collectQualifiedRuleIssues");function Te(t,r){let i=r.attributes.find(u=>u.name===t.attribute),n=be[t.attribute];if(!(i||n)){let[u,...c]=t.attribute.split("."),_=(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 ${F(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}${_}`;throw new chunk72TQRSNX_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 chunk72TQRSNX_js.h(u,[{path:["quantifier"],message:u}])}if(!i){if(t.property)throw new chunk72TQRSNX_js.h(`Cannot qualify system attribute "${t.attribute}"`,[{path:["property"],message:`"${t.attribute}" is a system column, not a reference`}]);let u=ye[t.attribute]??"text",c=P(t.operator,u);if(!n.includes(c)){let h=`Operator "${t.operator}" is not valid for system attribute "${t.attribute}". Valid operators: ${n.join(", ")}.`;throw new chunk72TQRSNX_js.h(h,[{path:["operator"],message:h}])}E(t,c,u);return}if(!t.property){ct(t,i.type);let u=X(i),c=P(t.operator,i.type);if(!u.includes(c)){let h=u.length?u.join(", "):"(not filterable)",_=`Operator "${t.operator}" is not valid for attribute "${i.name}". Valid operators: ${h}.${ge(i.type)}`;throw new chunk72TQRSNX_js.h(_,[{path:["operator"],message:_}])}E(t,c,C(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 chunk72TQRSNX_js.h(c,[{path:["quantifier"],message:c}])}if(!F(t.property)){let c=`Property "${t.property}" is not a part of location "${t.attribute}". Valid parts: ${k}.`;throw new chunk72TQRSNX_js.h(c,[{path:["property"],message:c}])}ct(t,"text");let u=ut(t.operator,"text","property");E(t,u,"text");return}if(!me.has(i.type))throw new chunk72TQRSNX_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 chunk72TQRSNX_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 chunk72TQRSNX_js.h(`Property "${t.property}" not defined on "${t.attribute}".qualifyWith()`,[{path:["property"],message:`Unknown property: ${t.property}`}]);let l=ut(t.operator,s.type,"property");E(t,l,s.type);}chunkDPD6ZWL2_js.a(Te,"validateQualifiedRule");var L=["workspace","private"],pt=["all",...L];function po(t){if(typeof t=="string"&&L.includes(t))return t;throw new chunk72TQRSNX_js.h(`visibility must be one of: ${L.join(", ")} (received: ${String(t)})`,[])}chunkDPD6ZWL2_js.a(po,"parseResourceVisibility");var Se=["id","createdAt","updatedAt","createdBy","lastUpdatedBy","visibility","ownedBy"],mo=[...Se,"objectId","label","embeddingText","values","metadata","deletedAt","deletedBy","schemaVersion","owned_by"],bo=["skill"];var yt=zod.z.enum(["redirect","inline","peek"]),Ae=zod.z.array(zod.z.string()).min(1),x=zod.z.array(zod.z.string()).max(chunk47EGJRW7_js.a.columnsPerTab),Ee=zod.z.array(zod.z.string().min(1)).max(chunk47EGJRW7_js.a.columnsPerTab).refine(t=>new Set(t).size===t.length,{message:"Displayed attribute names must be unique"}),xe=zod.z.object({attribute:zod.z.string(),direction:zod.z.enum(["asc","desc"])}).strict(),ft=zod.z.array(xe).max(chunk47EGJRW7_js.a.sortsPerTab),Re=zod.z.object({amount:zod.z.number(),unit:zod.z.enum(["days","weeks","months","years"]),direction:zod.z.enum(["past","future"])}).strict(),Oe=zod.z.object({value:zod.z.number().nullable(),code:zod.z.array(zod.z.string()).optional()}).strict(),we=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()]),Ce=zod.z.object({month:zod.z.number(),day:zod.z.number()}).strict(),Ve=zod.z.union([zod.z.string(),zod.z.number(),zod.z.boolean(),zod.z.array(zod.z.string()),Re,Oe,we,Ce,Fe,zod.z.null()]),Ie=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")}),ve=zod.z.object({attribute:zod.z.string(),property:zod.z.string().optional(),quantifier:zod.z.enum(["any","none"]).optional(),operator:Ie,value:Ve}).strict(),ht=zod.z.array(ve).max(chunk47EGJRW7_js.a.filterRulesPerTab),De=zod.z.object({combinator:zod.z.enum(["and","or"]),rules:ht}).strict(),_t=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 Pe(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(Pe,"addDuplicateNameIssues");var ke=zod.z.object({id:zod.z.string(),label:zod.z.string(),description:zod.z.string().optional(),attributes:Ae,displayTemplate:zod.z.string().optional()}).strict(),Be={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()},gt={attribute:zod.z.string().optional(),attributeGroup:ke.optional(),...Be};function Tt(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(Tt,"refineField");var Le=zod.z.object({id:zod.z.string().optional(),...gt}).strict().superRefine(Tt),Ao=zod.z.object({id:zod.z.string().min(1),...gt}).strict().superRefine(Tt),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()},Ne=zod.z.object({...je,type:zod.z.literal("fields"),fields:zod.z.array(Le).max(chunk47EGJRW7_js.a.fieldsPerGroup)}).strict(),Me=Ne,b={id:zod.z.string(),name:zod.z.string(),label:zod.z.string(),icon:chunk47EGJRW7_js.c.optional(),order:zod.z.number().optional()},St=zod.z.array(Me).max(chunk47EGJRW7_js.a.groupsPerFormTab),At={...b,type:zod.z.literal("form"),groups:St,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()},Ue=zod.z.object(At).strict();function Et(t,r){j(t.groups,r,["groups"]),t.groups.reduce((a,s)=>a+(s.type==="fields"?s.fields.length:0),0)>chunk47EGJRW7_js.a.fieldsPerFormTab&&r.addIssue({code:"too_big",origin:"array",maximum:chunk47EGJRW7_js.a.fieldsPerFormTab,inclusive:true,message:`A form tab can contain at most ${chunk47EGJRW7_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(Et,"refineFormTab");var qe=zod.z.object({...At,groups:St.min(1)}).strict().superRefine(Et),$e=Ue.superRefine(Et),xt=zod.z.object({type:zod.z.literal("relation"),attribute:zod.z.string()}).strict(),Rt=zod.z.object({type:zod.z.literal("inverse"),object:zod.z.string(),attribute:zod.z.string()}).strict(),Ot=zod.z.discriminatedUnion("type",[xt,Rt]),ze=zod.z.object({...b,type:zod.z.literal("table"),source:Ot,columns:x,allowCreate:zod.z.boolean().optional(),createMode:yt.optional(),allowEdit:zod.z.boolean().optional(),allowDelete:zod.z.boolean().optional(),filters:De.optional(),sorts:ft.optional()}).strict(),dt=64,mt=1e4;function bt(t){let r=Object.getPrototypeOf(t);return r===Object.prototype||r===null}chunkDPD6ZWL2_js.a(bt,"isPlainJsonObject");function m(t,r,i=[]){t.addIssue({code:"custom",message:r,path:i});}chunkDPD6ZWL2_js.a(m,"addJsonIssue");function Ye(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(Ye,"pushJsonArrayChildren");function We(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(We,"pushJsonObjectChildren");function Ge(t,r){if(t===null||typeof t!="object"){m(r,"Expected a plain JSON object");return}try{if(Array.isArray(t)||!bt(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>mt){m(r,`Custom props cannot exceed ${mt.toLocaleString("en-US")} total JSON nodes`,s.path);return}if(s.depth>dt){m(r,`Custom props cannot exceed depth ${dt}`,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}),Ye(l,s,n,r);continue}if(!bt(l)){m(r,"Expected an array or plain JSON object",s.path);continue}i.add(l),n.push({kind:"exit",value:l}),We(l,s,n,r);}catch{m(r,"Custom props contain an object that cannot be safely inspected",s.path);}}}}chunkDPD6ZWL2_js.a(Ge,"validateJsonProps");var Ke=zod.z.unknown().superRefine(Ge).transform(t=>t),Je=zod.z.object({...b,type:zod.z.literal("custom"),component:zod.z.string(),props:Ke.optional()}).strict(),He=zod.z.object({...b,type:zod.z.literal("activity"),limit:zod.z.number().optional()}).strict(),Qe=zod.z.object({...b,type:zod.z.literal("richtext"),attribute:zod.z.string(),titleAttribute:zod.z.string().optional()}).strict(),Xe=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(),Ze=zod.z.object({...b,type:zod.z.literal("forms"),objectName:zod.z.string().optional()}).strict(),tr=zod.z.object({...b,type:zod.z.literal("emails"),emailAttributeIds:zod.z.array(zod.z.string()).max(chunk47EGJRW7_js.a.emailAttributesPerTab)}).strict(),er=zod.z.object({...b,type:zod.z.literal("meetings"),emailAttributeIds:zod.z.array(zod.z.string()).max(chunk47EGJRW7_js.a.emailAttributesPerTab)}).strict(),wt=[ze,Je,He,Qe,Xe,Ze,tr,er],Ft=zod.z.discriminatedUnion("type",[qe,...wt]),Eo=zod.z.discriminatedUnion("type",[$e,...wt]),N={id:zod.z.string(),label:zod.z.string(),icon:chunk47EGJRW7_js.c.optional(),default:zod.z.boolean().optional(),visibility:zod.z.enum(pt).default("all"),columns:x,descriptionAttribute:zod.z.string().min(1).optional(),displayAttributes:Ee.optional(),filters:_t.optional(),sorts:ft.optional(),readOnly:zod.z.boolean().optional(),createMode:yt.optional()},rr=zod.z.object({...N,layout:zod.z.literal("table"),columnSizing:zod.z.record(zod.z.string(),zod.z.number()).optional(),groupByAttribute:zod.z.string().min(1).optional()}).strict(),or=zod.z.object({...N,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(),ir=zod.z.object({...N,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(),Ct=zod.z.discriminatedUnion("layout",[rr,ir,or]),nr=zod.z.object({allowPresentationCustomization:zod.z.boolean().optional(),defaultFilters:_t.optional(),tabs:zod.z.array(Ct).min(1).max(chunk47EGJRW7_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);});}),ar=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(chunk47EGJRW7_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()]),sr=zod.z.object({tabs:zod.z.array(Ft).min(1).max(chunk47EGJRW7_js.a.tabsPerView),sidePanel:zod.z.object({attributes:zod.z.array(zod.z.string()).max(chunk47EGJRW7_js.a.sidePanelAttributes).optional(),panes:zod.z.array(ar).max(chunk47EGJRW7_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"]),Pe(t.tabs,r,["tabs"]);}),M=nr,U=sr,xo=zod.z.enum(["list","detail"]);var Vt=zod.z.discriminatedUnion("type",[zod.z.object({type:zod.z.literal("list"),config:M}).strict(),zod.z.object({type:zod.z.literal("detail"),config:U}).strict()]);function lr(t,r){switch(t){case "list":return M.parse(r);case "detail":return U.parse(r);default:return Vt.parse({type:t,config:r}).config}}chunkDPD6ZWL2_js.a(lr,"parseViewConfig");var Ro=["columnSizing"],Oo=["groupByAttribute","cardUserAttribute","cardDateAttribute","kanbanColumnOrder","kanbanColumnVisibility","kanbanPinnedColumns"];exports.$=_t;exports.A=bo;exports.B=A;exports.C=Or;exports.D=wr;exports.E=Fr;exports.F=ot;exports.G=Ir;exports.H=Pr;exports.I=kr;exports.J=Br;exports.K=nt;exports.L=at;exports.M=ce;exports.N=I;exports.O=Wr;exports.P=v;exports.Q=Jr;exports.R=Hr;exports.S=Qr;exports.T=ye;exports.U=B;exports.V=so;exports.W=Te;exports.X=x;exports.Y=Ee;exports.Z=ft;exports._=De;exports.a=Pt;exports.aa=gt;exports.b=ur;exports.ba=Le;exports.c=kt;exports.ca=Ao;exports.d=cr;exports.da=Me;exports.e=G;exports.ea=xt;exports.f=w;exports.fa=Rt;exports.g=F;exports.ga=Ot;exports.h=br;exports.ha=Ft;exports.i=y;exports.ia=Eo;exports.j=g;exports.ja=Ct;exports.k=X;exports.ka=M;exports.l=yr;exports.la=U;exports.m=fr;exports.ma=xo;exports.n=hr;exports.na=Vt;exports.o=_r;exports.oa=lr;exports.p=gr;exports.pa=Ro;exports.q=C;exports.qa=Oo;exports.r=f;exports.s=ne;exports.t=et;exports.u=Er;exports.v=L;exports.w=pt;exports.x=po;exports.y=Se;exports.z=mo;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var 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
|
+
function x(e,m=chunkJFSQ24XR_js.a){let i=zod.z.number();return e.min!==void 0&&(i=i.min(e.min,m.minValue(e,e.min))),e.max!==void 0&&(i=i.max(e.max,m.maxValue(e,e.max))),e.renderAs==="rating"&&(i=i.min(e.min??0),i=i.max(e.max??5)),e.unit==="percentage"&&(i=i.min(e.min??0).max(e.max??100)),e.unit==="integer"&&(i=i.int(m.mustBeInteger(e))),i}chunkDPD6ZWL2_js.a(x,"createNumberValidator");exports.a=x;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var 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
|
+
function s(r,n=chunkJFSQ24XR_js.a){let a=r.allowNegative?zod.z.number():zod.z.number().min(0);return zod.z.object({code:zod.z.string().length(3),value:a},{message:n.invalidCurrency(r)})}chunkDPD6ZWL2_js.a(s,"createCurrencyValidator");exports.a=s;
|
|
@@ -0,0 +1,6 @@
|
|
|
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-PT25FZ62.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
|
+
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
|
+
`)||"Unknown validation error";throw new h(`Validation failed for ${t.label}:
|
|
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(`
|
|
5
|
+
`)||"Unknown validation error";throw new h(`Draft validation failed for ${t.label}:
|
|
6
|
+
${n}`,r.map(a=>({path:a.path,message:a.message})))}return o.data}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 h(`Unknown attribute${r.length>1?"s":""} for ${t.label}: ${r.join(", ")}`,r.map(n=>({path:[n],message:"Unknown attribute"})))}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}a($,"getMissingRequiredAttributes");function _(t,e){return $(t,e).length>0?false:b(t,e).success}a(_,"isRecordComplete");export{ft as a,f as b,s as c,q as d,p as e,m as f,F as g,b as h,L as i,Z as j,v as k,I as l,$ as m,_ as n};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}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
|
+
function n(i,r=a$1){return z.string({message:r.invalidRichtext(i)})}a(n,"createRichtextValidator");export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}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
|
+
function s(r,a=a$1){return z.unknown()}a(s,"createRollupValidator");export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var 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
|
+
var g={email:"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",url:"^https?:\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+[/#?]?.*$",slug:"^[a-z0-9]+(?:-[a-z0-9]+)*$"};function h(t){return t.pattern?t.pattern:t.format?g[t.format]:void 0}chunkDPD6ZWL2_js.a(h,"resolveTextPattern");var c=class c{constructor(e){if(!Number.isInteger(e)||e<=0)throw new Error("LRU cache capacity must be greater than 0");this.capacity=e,this.cache=new Map;}get(e){if(!this.cache.has(e))return;let i=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,i),i}set(e,i){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let r=this.cache.keys().next();r.done||this.cache.delete(r.value);}this.cache.set(e,i);}has(e){return this.cache.has(e)}clear(){this.cache.clear();}get size(){return this.cache.size}};chunkDPD6ZWL2_js.a(c,"LRUCache");var a=c;function o(t=100){return new a(t)}chunkDPD6ZWL2_js.a(o,"createRegexCache");function u(t,e){let i=t.get(e);return i||(i=new RegExp(e),t.set(e,i)),i}chunkDPD6ZWL2_js.a(u,"getCachedRegex");var m=o();function v(t,e=chunkJFSQ24XR_js.a){let i=zod.z.string();t.minLength!==void 0&&(i=i.min(t.minLength,e.minLength(t,t.minLength))),t.maxLength!==void 0&&(i=i.max(t.maxLength,e.maxLength(t,t.maxLength)));let r=h(t);return r&&(i=i.regex(u(m,r),e.invalidPattern(t))),i}chunkDPD6ZWL2_js.a(v,"createTextValidator");exports.a=g;exports.b=h;exports.c=v;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}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
|
+
function s(n,a=a$1){return z.object({address:z.string().optional(),address2:z.string().optional(),city:z.string().optional(),state:z.string().optional(),postalCode:z.string().optional(),country:z.string().length(3).optional(),latitude:z.number().min(-90).max(90).optional(),longitude:z.number().min(-180).max(180).optional()},{message:a.invalidLocation(n)})}a(s,"createLocationValidator");export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}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
|
+
function m(e,s=a$1){let t=z.guid({message:s.invalidId(e)});return e.multiple?z.array(t):t}a(m,"createUserValidator");export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var 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
|
+
function s(n,a=chunkJFSQ24XR_js.a){return zod.z.object({address:zod.z.string().optional(),address2:zod.z.string().optional(),city:zod.z.string().optional(),state:zod.z.string().optional(),postalCode:zod.z.string().optional(),country:zod.z.string().length(3).optional(),latitude:zod.z.number().min(-90).max(90).optional(),longitude:zod.z.number().min(-180).max(180).optional()},{message:a.invalidLocation(n)})}chunkDPD6ZWL2_js.a(s,"createLocationValidator");exports.a=s;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var 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
|
+
function s(e,a=chunkJFSQ24XR_js.a){return zod.z.unknown()}chunkDPD6ZWL2_js.a(s,"createFormulaValidator");exports.a=s;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}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
|
+
function p(e,s=a$1){let i=e.options.map(t=>t.value);if(i.length===0)return z.never();let n=e.options.map(t=>t.label);return z.enum(i,{message:s.invalidOption(e,n)})}a(p,"createSelectValidator");function d(e,s=a$1){let i=e.options.map(t=>t.value);if(i.length===0)return z.never();let n=e.options.map(t=>t.label);return z.array(z.enum(i,{message:s.invalidOption(e,n)}))}a(d,"createMultiselectValidator");function c(e,s=a$1){let i=e.options.map(t=>t.value);if(i.length===0)return z.never();let n=e.options.map(t=>t.label);return z.enum(i,{message:s.invalidOption(e,n)})}a(c,"createStatusValidator");export{p as a,d as b,c};
|
package/dist/exceptions.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchemaOperation } from './migrations-
|
|
2
|
-
import './attributes-
|
|
1
|
+
import { S as SchemaOperation } from './migrations-DRBic-QO.mjs';
|
|
2
|
+
import './attributes-CtS5Gf_i.mjs';
|
|
3
3
|
import '@stndrds/constants';
|
|
4
4
|
import './utils.mjs';
|
|
5
5
|
|
|
@@ -11,6 +11,7 @@ declare const SchemaErrorCode: {
|
|
|
11
11
|
readonly OBJECT_NOT_FOUND: "SCHEMA_OBJECT_NOT_FOUND";
|
|
12
12
|
readonly ATTRIBUTE_NOT_FOUND: "SCHEMA_ATTRIBUTE_NOT_FOUND";
|
|
13
13
|
readonly RECORD_NOT_FOUND: "SCHEMA_RECORD_NOT_FOUND";
|
|
14
|
+
readonly SOURCE_NOT_FOUND: "SCHEMA_SOURCE_NOT_FOUND";
|
|
14
15
|
readonly ROLE_NOT_FOUND: "SCHEMA_ROLE_NOT_FOUND";
|
|
15
16
|
readonly MEMORY_NOT_FOUND: "SCHEMA_MEMORY_NOT_FOUND";
|
|
16
17
|
readonly SCHEMA_PLAN_NOT_FOUND: "SCHEMA_PLAN_NOT_FOUND";
|
|
@@ -84,6 +85,8 @@ declare const SchemaErrorCode: {
|
|
|
84
85
|
readonly AGENT_DEPTH_EXCEEDED: "AGENT_DEPTH_EXCEEDED";
|
|
85
86
|
readonly AGENT_COST_LIMIT_EXCEEDED: "AGENT_COST_LIMIT_EXCEEDED";
|
|
86
87
|
readonly AGENT_TREE_COST_LIMIT_EXCEEDED: "AGENT_TREE_COST_LIMIT_EXCEEDED";
|
|
88
|
+
readonly CREDITS_EXHAUSTED: "CREDITS_EXHAUSTED";
|
|
89
|
+
readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
|
|
87
90
|
readonly AGENT_SESSION_NOT_FOUND: "AGENT_SESSION_NOT_FOUND";
|
|
88
91
|
readonly AGENT_DEFINITION_NOT_FOUND: "AGENT_DEFINITION_NOT_FOUND";
|
|
89
92
|
readonly AGENT_RUN_CONFIG: "AGENT_RUN_CONFIG";
|
|
@@ -105,6 +108,9 @@ declare const SchemaErrorCode: {
|
|
|
105
108
|
readonly AI_INVALID_MODEL_INPUT: "AI_INVALID_MODEL_INPUT";
|
|
106
109
|
readonly AI_REPOSITORY_ERROR: "AI_REPOSITORY_ERROR";
|
|
107
110
|
readonly AI_GENERATION_FAILED: "AI_GENERATION_FAILED";
|
|
111
|
+
readonly AI_IMAGE_USAGE_PENDING: "AI_IMAGE_USAGE_PENDING";
|
|
112
|
+
readonly AI_IMAGE_GENERATION_INDETERMINATE: "AI_IMAGE_GENERATION_INDETERMINATE";
|
|
113
|
+
readonly AI_IMAGE_PUBLICATION_FAILED: "AI_IMAGE_PUBLICATION_FAILED";
|
|
108
114
|
readonly DOCUMENT_MIME_NOT_ACCEPTED: "DOCUMENT_MIME_NOT_ACCEPTED";
|
|
109
115
|
readonly DOCUMENT_MULTIPLE_NOT_ALLOWED: "DOCUMENT_MULTIPLE_NOT_ALLOWED";
|
|
110
116
|
readonly DOCUMENT_NOT_FOUND_FOR_OPERATION: "DOCUMENT_NOT_FOUND_FOR_OPERATION";
|
package/dist/exceptions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SchemaOperation } from './migrations-
|
|
2
|
-
import './attributes-
|
|
1
|
+
import { S as SchemaOperation } from './migrations-DhQ05TqN.js';
|
|
2
|
+
import './attributes-SIbTof03.js';
|
|
3
3
|
import '@stndrds/constants';
|
|
4
4
|
import './utils.js';
|
|
5
5
|
|
|
@@ -11,6 +11,7 @@ declare const SchemaErrorCode: {
|
|
|
11
11
|
readonly OBJECT_NOT_FOUND: "SCHEMA_OBJECT_NOT_FOUND";
|
|
12
12
|
readonly ATTRIBUTE_NOT_FOUND: "SCHEMA_ATTRIBUTE_NOT_FOUND";
|
|
13
13
|
readonly RECORD_NOT_FOUND: "SCHEMA_RECORD_NOT_FOUND";
|
|
14
|
+
readonly SOURCE_NOT_FOUND: "SCHEMA_SOURCE_NOT_FOUND";
|
|
14
15
|
readonly ROLE_NOT_FOUND: "SCHEMA_ROLE_NOT_FOUND";
|
|
15
16
|
readonly MEMORY_NOT_FOUND: "SCHEMA_MEMORY_NOT_FOUND";
|
|
16
17
|
readonly SCHEMA_PLAN_NOT_FOUND: "SCHEMA_PLAN_NOT_FOUND";
|
|
@@ -84,6 +85,8 @@ declare const SchemaErrorCode: {
|
|
|
84
85
|
readonly AGENT_DEPTH_EXCEEDED: "AGENT_DEPTH_EXCEEDED";
|
|
85
86
|
readonly AGENT_COST_LIMIT_EXCEEDED: "AGENT_COST_LIMIT_EXCEEDED";
|
|
86
87
|
readonly AGENT_TREE_COST_LIMIT_EXCEEDED: "AGENT_TREE_COST_LIMIT_EXCEEDED";
|
|
88
|
+
readonly CREDITS_EXHAUSTED: "CREDITS_EXHAUSTED";
|
|
89
|
+
readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
|
|
87
90
|
readonly AGENT_SESSION_NOT_FOUND: "AGENT_SESSION_NOT_FOUND";
|
|
88
91
|
readonly AGENT_DEFINITION_NOT_FOUND: "AGENT_DEFINITION_NOT_FOUND";
|
|
89
92
|
readonly AGENT_RUN_CONFIG: "AGENT_RUN_CONFIG";
|
|
@@ -105,6 +108,9 @@ declare const SchemaErrorCode: {
|
|
|
105
108
|
readonly AI_INVALID_MODEL_INPUT: "AI_INVALID_MODEL_INPUT";
|
|
106
109
|
readonly AI_REPOSITORY_ERROR: "AI_REPOSITORY_ERROR";
|
|
107
110
|
readonly AI_GENERATION_FAILED: "AI_GENERATION_FAILED";
|
|
111
|
+
readonly AI_IMAGE_USAGE_PENDING: "AI_IMAGE_USAGE_PENDING";
|
|
112
|
+
readonly AI_IMAGE_GENERATION_INDETERMINATE: "AI_IMAGE_GENERATION_INDETERMINATE";
|
|
113
|
+
readonly AI_IMAGE_PUBLICATION_FAILED: "AI_IMAGE_PUBLICATION_FAILED";
|
|
108
114
|
readonly DOCUMENT_MIME_NOT_ACCEPTED: "DOCUMENT_MIME_NOT_ACCEPTED";
|
|
109
115
|
readonly DOCUMENT_MULTIPLE_NOT_ALLOWED: "DOCUMENT_MULTIPLE_NOT_ALLOWED";
|
|
110
116
|
readonly DOCUMENT_NOT_FOUND_FOR_OPERATION: "DOCUMENT_NOT_FOUND_FOR_OPERATION";
|
package/dist/exceptions.js
CHANGED
|
@@ -1,158 +1 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk4KMUATDG_js = require('./chunk-4KMUATDG.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "AccessDeniedError", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk4KMUATDG_js.AccessDeniedError; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "AttributeInUseError", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk4KMUATDG_js.AttributeInUseError; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "AttributeNotFoundError", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunk4KMUATDG_js.AttributeNotFoundError; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "ChangeTypeNotSupportedError", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk4KMUATDG_js.ChangeTypeNotSupportedError; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "ConcurrentModificationError", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunk4KMUATDG_js.ConcurrentModificationError; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "DestructiveSyncNotAllowedError", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunk4KMUATDG_js.DestructiveSyncNotAllowedError; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "DuplicateError", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunk4KMUATDG_js.DuplicateError; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "ForbiddenError", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunk4KMUATDG_js.ForbiddenError; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "MemoryNotFoundError", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunk4KMUATDG_js.MemoryNotFoundError; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "MigrationTimeoutError", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunk4KMUATDG_js.MigrationTimeoutError; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "NotFoundError", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunk4KMUATDG_js.NotFoundError; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, "NotImplementedError", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return chunk4KMUATDG_js.NotImplementedError; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "ObjectNotFoundError", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return chunk4KMUATDG_js.ObjectNotFoundError; }
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(exports, "ObjectReferencedError", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function () { return chunk4KMUATDG_js.ObjectReferencedError; }
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(exports, "OrphanSystemAttributeError", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () { return chunk4KMUATDG_js.OrphanSystemAttributeError; }
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, "ProtectedResourceError", {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () { return chunk4KMUATDG_js.ProtectedResourceError; }
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, "ProtectedRoleError", {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function () { return chunk4KMUATDG_js.ProtectedRoleError; }
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(exports, "RecordNotFoundError", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
get: function () { return chunk4KMUATDG_js.RecordNotFoundError; }
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, "RecordReferencedError", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () { return chunk4KMUATDG_js.RecordReferencedError; }
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, "RepositoryError", {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function () { return chunk4KMUATDG_js.RepositoryError; }
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(exports, "RoleNotFoundError", {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () { return chunk4KMUATDG_js.RoleNotFoundError; }
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(exports, "SchemaError", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () { return chunk4KMUATDG_js.SchemaError; }
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, "SchemaErrorCode", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () { return chunk4KMUATDG_js.SchemaErrorCode; }
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, "SchemaPlanNotFoundError", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () { return chunk4KMUATDG_js.SchemaPlanNotFoundError; }
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, "SearchBackendError", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () { return chunk4KMUATDG_js.SearchBackendError; }
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, "StorageError", {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () { return chunk4KMUATDG_js.StorageError; }
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(exports, "SyncCascadeError", {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function () { return chunk4KMUATDG_js.SyncCascadeError; }
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, "SyncConflictError", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function () { return chunk4KMUATDG_js.SyncConflictError; }
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(exports, "SyncError", {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () { return chunk4KMUATDG_js.SyncError; }
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(exports, "SystemEntityImmutableError", {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function () { return chunk4KMUATDG_js.SystemEntityImmutableError; }
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, "ValidationError", {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () { return chunk4KMUATDG_js.ValidationError; }
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(exports, "isAttributeInUseError", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () { return chunk4KMUATDG_js.isAttributeInUseError; }
|
|
134
|
-
});
|
|
135
|
-
Object.defineProperty(exports, "isNotFoundError", {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
get: function () { return chunk4KMUATDG_js.isNotFoundError; }
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(exports, "isObjectReferencedError", {
|
|
140
|
-
enumerable: true,
|
|
141
|
-
get: function () { return chunk4KMUATDG_js.isObjectReferencedError; }
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, "isProtectedResourceError", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () { return chunk4KMUATDG_js.isProtectedResourceError; }
|
|
146
|
-
});
|
|
147
|
-
Object.defineProperty(exports, "isRecordReferencedError", {
|
|
148
|
-
enumerable: true,
|
|
149
|
-
get: function () { return chunk4KMUATDG_js.isRecordReferencedError; }
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(exports, "isSchemaError", {
|
|
152
|
-
enumerable: true,
|
|
153
|
-
get: function () { return chunk4KMUATDG_js.isSchemaError; }
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(exports, "isValidationError", {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () { return chunk4KMUATDG_js.isValidationError; }
|
|
158
|
-
});
|
|
1
|
+
'use strict';var chunk72TQRSNX_js=require('./chunk-72TQRSNX.js');require('./chunk-DPD6ZWL2.js');Object.defineProperty(exports,"AccessDeniedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.B}});Object.defineProperty(exports,"AttributeInUseError",{enumerable:true,get:function(){return chunk72TQRSNX_js.H}});Object.defineProperty(exports,"AttributeNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.e}});Object.defineProperty(exports,"ChangeTypeNotSupportedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.q}});Object.defineProperty(exports,"ConcurrentModificationError",{enumerable:true,get:function(){return chunk72TQRSNX_js.z}});Object.defineProperty(exports,"DestructiveSyncNotAllowedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.o}});Object.defineProperty(exports,"DuplicateError",{enumerable:true,get:function(){return chunk72TQRSNX_js.r}});Object.defineProperty(exports,"ForbiddenError",{enumerable:true,get:function(){return chunk72TQRSNX_js.w}});Object.defineProperty(exports,"MemoryNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.F}});Object.defineProperty(exports,"MigrationTimeoutError",{enumerable:true,get:function(){return chunk72TQRSNX_js.p}});Object.defineProperty(exports,"NotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.c}});Object.defineProperty(exports,"NotImplementedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.E}});Object.defineProperty(exports,"ObjectNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.d}});Object.defineProperty(exports,"ObjectReferencedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.I}});Object.defineProperty(exports,"OrphanSystemAttributeError",{enumerable:true,get:function(){return chunk72TQRSNX_js.n}});Object.defineProperty(exports,"ProtectedResourceError",{enumerable:true,get:function(){return chunk72TQRSNX_js.i}});Object.defineProperty(exports,"ProtectedRoleError",{enumerable:true,get:function(){return chunk72TQRSNX_js.x}});Object.defineProperty(exports,"RecordNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.f}});Object.defineProperty(exports,"RecordReferencedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.G}});Object.defineProperty(exports,"RepositoryError",{enumerable:true,get:function(){return chunk72TQRSNX_js.C}});Object.defineProperty(exports,"RoleNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.y}});Object.defineProperty(exports,"SchemaError",{enumerable:true,get:function(){return chunk72TQRSNX_js.b}});Object.defineProperty(exports,"SchemaErrorCode",{enumerable:true,get:function(){return chunk72TQRSNX_js.a}});Object.defineProperty(exports,"SchemaPlanNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.g}});Object.defineProperty(exports,"SearchBackendError",{enumerable:true,get:function(){return chunk72TQRSNX_js.D}});Object.defineProperty(exports,"StorageError",{enumerable:true,get:function(){return chunk72TQRSNX_js.A}});Object.defineProperty(exports,"SyncCascadeError",{enumerable:true,get:function(){return chunk72TQRSNX_js.m}});Object.defineProperty(exports,"SyncConflictError",{enumerable:true,get:function(){return chunk72TQRSNX_js.l}});Object.defineProperty(exports,"SyncError",{enumerable:true,get:function(){return chunk72TQRSNX_js.j}});Object.defineProperty(exports,"SystemEntityImmutableError",{enumerable:true,get:function(){return chunk72TQRSNX_js.k}});Object.defineProperty(exports,"ValidationError",{enumerable:true,get:function(){return chunk72TQRSNX_js.h}});Object.defineProperty(exports,"isAttributeInUseError",{enumerable:true,get:function(){return chunk72TQRSNX_js.K}});Object.defineProperty(exports,"isNotFoundError",{enumerable:true,get:function(){return chunk72TQRSNX_js.t}});Object.defineProperty(exports,"isObjectReferencedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.L}});Object.defineProperty(exports,"isProtectedResourceError",{enumerable:true,get:function(){return chunk72TQRSNX_js.v}});Object.defineProperty(exports,"isRecordReferencedError",{enumerable:true,get:function(){return chunk72TQRSNX_js.J}});Object.defineProperty(exports,"isSchemaError",{enumerable:true,get:function(){return chunk72TQRSNX_js.s}});Object.defineProperty(exports,"isValidationError",{enumerable:true,get:function(){return chunk72TQRSNX_js.u}});
|
package/dist/exceptions.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{B as AccessDeniedError,H as AttributeInUseError,e as AttributeNotFoundError,q as ChangeTypeNotSupportedError,z as ConcurrentModificationError,o as DestructiveSyncNotAllowedError,r as DuplicateError,w as ForbiddenError,F as MemoryNotFoundError,p as MigrationTimeoutError,c as NotFoundError,E as NotImplementedError,d as ObjectNotFoundError,I as ObjectReferencedError,n as OrphanSystemAttributeError,i as ProtectedResourceError,x as ProtectedRoleError,f as RecordNotFoundError,G as RecordReferencedError,C as RepositoryError,y as RoleNotFoundError,b as SchemaError,a as SchemaErrorCode,g as SchemaPlanNotFoundError,D as SearchBackendError,A as StorageError,m as SyncCascadeError,l as SyncConflictError,j as SyncError,k as SystemEntityImmutableError,h as ValidationError,K as isAttributeInUseError,t as isNotFoundError,L as isObjectReferencedError,v as isProtectedResourceError,J as isRecordReferencedError,s as isSchemaError,u as isValidationError}from'./chunk-PT25FZ62.mjs';import'./chunk-KSPJP74K.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
4
|
-
import { O as ObjectDefinition } from './objects-
|
|
2
|
+
import { A as Attribute } from './attributes-CtS5Gf_i.mjs';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-ldo4nJxP.mjs';
|
|
4
|
+
import { O as ObjectDefinition } from './objects-KU7alqZq.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute } from './attributes-
|
|
3
|
-
import { V as ValidationMessages, a as ValidationResult } from './types-
|
|
4
|
-
import { O as ObjectDefinition } from './objects-
|
|
2
|
+
import { A as Attribute } from './attributes-SIbTof03.js';
|
|
3
|
+
import { V as ValidationMessages, a as ValidationResult } from './types-BNaHEz_n.js';
|
|
4
|
+
import { O as ObjectDefinition } from './objects-DMOfJNYg.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a Zod schema for any attribute type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute,
|
|
2
|
+
import { A as Attribute, g as AttributeType, f as RollupAttribute } from './attributes-SIbTof03.js';
|
|
3
3
|
import { IconName } from '@stndrds/constants';
|
|
4
|
-
import { L as ListViewTabVisibility } from './objects-
|
|
4
|
+
import { L as ListViewTabVisibility } from './objects-DMOfJNYg.js';
|
|
5
5
|
|
|
6
6
|
/** Operators for text-based attributes */
|
|
7
7
|
type TextFilterOperator = "is" | "is_not" | "contains" | "not_contains" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { A as Attribute,
|
|
2
|
+
import { A as Attribute, g as AttributeType, f as RollupAttribute } from './attributes-CtS5Gf_i.mjs';
|
|
3
3
|
import { IconName } from '@stndrds/constants';
|
|
4
|
-
import { L as ListViewTabVisibility } from './objects-
|
|
4
|
+
import { L as ListViewTabVisibility } from './objects-KU7alqZq.mjs';
|
|
5
5
|
|
|
6
6
|
/** Operators for text-based attributes */
|
|
7
7
|
type TextFilterOperator = "is" | "is_not" | "contains" | "not_contains" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty";
|