@proteos/sdk 0.54.1 → 0.56.0

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.
@@ -1078,6 +1078,8 @@ var FilterElementSchema = zod.z.object({
1078
1078
  "in",
1079
1079
  "not_in",
1080
1080
  "contains",
1081
+ "not_contains",
1082
+ "contains_all",
1081
1083
  "starts_with",
1082
1084
  "ends_with",
1083
1085
  "empty",
@@ -1319,6 +1321,37 @@ var PageLayoutSchema = zod.z.object({
1319
1321
  side_panel: PageLayoutSidePanelSchema.optional(),
1320
1322
  style: PageStyleSchema.optional()
1321
1323
  });
1324
+
1325
+ // src/meta/record-title.ts
1326
+ var RECORD_TITLE_FIELD = "record_title";
1327
+ function isReservedAttributeName(name) {
1328
+ return name === RECORD_TITLE_FIELD;
1329
+ }
1330
+ function isTitleQueryable(template) {
1331
+ if (!template?.includes("{{")) return false;
1332
+ if (template.includes("{%") || template.includes("%}")) return false;
1333
+ let rest = template;
1334
+ while (rest !== "") {
1335
+ const open = rest.indexOf("{{");
1336
+ if (open < 0) return !rest.includes("}}");
1337
+ if (rest.slice(0, open).includes("}}")) return false;
1338
+ rest = rest.slice(open + 2);
1339
+ const close = rest.indexOf("}}");
1340
+ if (close < 0) return false;
1341
+ if (!/^[a-z][a-z0-9_]*$/.test(rest.slice(0, close).trim())) return false;
1342
+ rest = rest.slice(close + 2);
1343
+ }
1344
+ return true;
1345
+ }
1346
+ function titleTemplateVariables(template) {
1347
+ if (!template || !isTitleQueryable(template)) return [];
1348
+ const out = [];
1349
+ for (const match of template.matchAll(/\{\{\s*([a-z][a-z0-9_]*)\s*\}\}/g)) {
1350
+ const name = match[1];
1351
+ if (name && !out.includes(name)) out.push(name);
1352
+ }
1353
+ return out;
1354
+ }
1322
1355
  var ResponseMetaSchema = zod.z.object({
1323
1356
  page: zod.z.number(),
1324
1357
  page_size: zod.z.number(),
@@ -1889,6 +1922,7 @@ exports.PageLayoutSidePanelSchema = PageLayoutSidePanelSchema;
1889
1922
  exports.PageSchema = PageSchema;
1890
1923
  exports.PageStyleSchema = PageStyleSchema;
1891
1924
  exports.PrincipalRefSchema = PrincipalRefSchema;
1925
+ exports.RECORD_TITLE_FIELD = RECORD_TITLE_FIELD;
1892
1926
  exports.RelationAttributeMetaSchema = RelationAttributeMetaSchema;
1893
1927
  exports.ResponseMetaSchema = ResponseMetaSchema;
1894
1928
  exports.SizeValueSchema = SizeValueSchema;
@@ -1908,6 +1942,8 @@ exports.formatMoney = formatMoney;
1908
1942
  exports.isBuiltInControl = isBuiltInControl;
1909
1943
  exports.isCurrentUserDefault = isCurrentUserDefault;
1910
1944
  exports.isPlatformAttributeName = isPlatformAttributeName;
1945
+ exports.isReservedAttributeName = isReservedAttributeName;
1946
+ exports.isTitleQueryable = isTitleQueryable;
1911
1947
  exports.localeNumberSeparators = localeNumberSeparators;
1912
1948
  exports.lookupCompatibleControls = lookupCompatibleControls;
1913
1949
  exports.lookupControls = lookupControls;
@@ -1920,5 +1956,6 @@ exports.parsePrincipalMeta = parsePrincipalMeta;
1920
1956
  exports.parseRelationMeta = parseRelationMeta;
1921
1957
  exports.parseUserMeta = parseUserMeta;
1922
1958
  exports.platformAttributes = platformAttributes;
1923
- //# sourceMappingURL=chunk-QUCSWC3M.cjs.map
1924
- //# sourceMappingURL=chunk-QUCSWC3M.cjs.map
1959
+ exports.titleTemplateVariables = titleTemplateVariables;
1960
+ //# sourceMappingURL=chunk-OVCAR2R5.cjs.map
1961
+ //# sourceMappingURL=chunk-OVCAR2R5.cjs.map