@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.
@@ -1076,6 +1076,8 @@ var FilterElementSchema = z.object({
1076
1076
  "in",
1077
1077
  "not_in",
1078
1078
  "contains",
1079
+ "not_contains",
1080
+ "contains_all",
1079
1081
  "starts_with",
1080
1082
  "ends_with",
1081
1083
  "empty",
@@ -1317,6 +1319,37 @@ var PageLayoutSchema = z.object({
1317
1319
  side_panel: PageLayoutSidePanelSchema.optional(),
1318
1320
  style: PageStyleSchema.optional()
1319
1321
  });
1322
+
1323
+ // src/meta/record-title.ts
1324
+ var RECORD_TITLE_FIELD = "record_title";
1325
+ function isReservedAttributeName(name) {
1326
+ return name === RECORD_TITLE_FIELD;
1327
+ }
1328
+ function isTitleQueryable(template) {
1329
+ if (!template?.includes("{{")) return false;
1330
+ if (template.includes("{%") || template.includes("%}")) return false;
1331
+ let rest = template;
1332
+ while (rest !== "") {
1333
+ const open = rest.indexOf("{{");
1334
+ if (open < 0) return !rest.includes("}}");
1335
+ if (rest.slice(0, open).includes("}}")) return false;
1336
+ rest = rest.slice(open + 2);
1337
+ const close = rest.indexOf("}}");
1338
+ if (close < 0) return false;
1339
+ if (!/^[a-z][a-z0-9_]*$/.test(rest.slice(0, close).trim())) return false;
1340
+ rest = rest.slice(close + 2);
1341
+ }
1342
+ return true;
1343
+ }
1344
+ function titleTemplateVariables(template) {
1345
+ if (!template || !isTitleQueryable(template)) return [];
1346
+ const out = [];
1347
+ for (const match of template.matchAll(/\{\{\s*([a-z][a-z0-9_]*)\s*\}\}/g)) {
1348
+ const name = match[1];
1349
+ if (name && !out.includes(name)) out.push(name);
1350
+ }
1351
+ return out;
1352
+ }
1320
1353
  var ResponseMetaSchema = z.object({
1321
1354
  page: z.number(),
1322
1355
  page_size: z.number(),
@@ -1833,6 +1866,6 @@ var MetaClient = class {
1833
1866
  }
1834
1867
  };
1835
1868
 
1836
- export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, BUILT_IN_CONTROLS, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileAttributeMetaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, LayoutTabSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, PrincipalRefSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parsePrincipalMeta, parseRelationMeta, parseUserMeta, platformAttributes };
1837
- //# sourceMappingURL=chunk-B2EZDFFH.js.map
1838
- //# sourceMappingURL=chunk-B2EZDFFH.js.map
1869
+ export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, BUILT_IN_CONTROLS, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileAttributeMetaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, LayoutTabSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, PrincipalRefSchema, RECORD_TITLE_FIELD, RelationAttributeMetaSchema, ResponseMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isCurrentUserDefault, isPlatformAttributeName, isReservedAttributeName, isTitleQueryable, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parsePrincipalMeta, parseRelationMeta, parseUserMeta, platformAttributes, titleTemplateVariables };
1870
+ //# sourceMappingURL=chunk-AB4HIKF3.js.map
1871
+ //# sourceMappingURL=chunk-AB4HIKF3.js.map