@proteos/sdk 0.52.0 → 0.53.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.
@@ -857,7 +857,8 @@ var control_registry_default = {
857
857
  "knowledge-text",
858
858
  "file",
859
859
  "file-viewer",
860
- "record-filter"
860
+ "record-filter",
861
+ "contact-address"
861
862
  ],
862
863
  controls: {
863
864
  string: {
@@ -1006,6 +1007,13 @@ var control_registry_default = {
1006
1007
  "currency"
1007
1008
  ]
1008
1009
  },
1010
+ "contact-address": {
1011
+ primary: "contact-address",
1012
+ compatible: [
1013
+ "contact-address",
1014
+ "text"
1015
+ ]
1016
+ },
1009
1017
  "knowledge-text": {
1010
1018
  primary: "knowledge-text",
1011
1019
  compatible: [
@@ -1362,6 +1370,10 @@ var CurrencyAttributeMetaSchema = z.object({
1362
1370
  default_currency_code: z.string().optional(),
1363
1371
  allowed_currency_codes: z.array(z.string()).optional()
1364
1372
  });
1373
+ var ContactAddressAttributeMetaSchema = z.object({
1374
+ kind: z.enum(["email", "phone", "linkedin_public_identifier"]),
1375
+ description: z.string().optional()
1376
+ });
1365
1377
  z.object({
1366
1378
  description: z.string().optional()
1367
1379
  });
@@ -1477,7 +1489,15 @@ function parseFileMeta(attr) {
1477
1489
  const parsed = FileAttributeMetaSchema.safeParse(attr.meta);
1478
1490
  return parsed.success ? parsed.data : {};
1479
1491
  }
1492
+ function parseContactAddressMeta(attr) {
1493
+ if (attr.type !== "contact-address") return null;
1494
+ const parsed = ContactAddressAttributeMetaSchema.safeParse(attr.meta);
1495
+ return parsed.success ? parsed.data : null;
1496
+ }
1480
1497
  var PublicAccessOperationSchema = z.enum(["read", "write", "delete"]);
1498
+ var EntityContactBindingSchema = z.object({
1499
+ duplicate_policy: z.enum(["reject", "flag"])
1500
+ });
1481
1501
  var EntitySchema = AuditFieldsSchema.extend({
1482
1502
  slug: z.string(),
1483
1503
  name: z.string(),
@@ -1486,6 +1506,7 @@ var EntitySchema = AuditFieldsSchema.extend({
1486
1506
  // Default keeps older API responses (pre-`public_record_access` rollout)
1487
1507
  // parsing cleanly.
1488
1508
  public_record_access: z.array(PublicAccessOperationSchema).default([]),
1509
+ contact_binding: EntityContactBindingSchema.optional(),
1489
1510
  module_slug: z.string(),
1490
1511
  // Default keeps older API responses (pre-`title_template` rollout) parsing
1491
1512
  // cleanly — the field is non-optional in the TS surface but tolerant on
@@ -1802,6 +1823,6 @@ var MetaClient = class {
1802
1823
  }
1803
1824
  };
1804
1825
 
1805
- export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, BUILT_IN_CONTROLS, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, 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, parseCurrencyMeta, parseFileMeta, parsePrincipalMeta, parseRelationMeta, parseUserMeta, platformAttributes };
1806
- //# sourceMappingURL=chunk-VKS2VX24.js.map
1807
- //# sourceMappingURL=chunk-VKS2VX24.js.map
1826
+ 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 };
1827
+ //# sourceMappingURL=chunk-HEUXXELG.js.map
1828
+ //# sourceMappingURL=chunk-HEUXXELG.js.map