@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.
- package/dist/{chunk-B2EZDFFH.js → chunk-AB4HIKF3.js} +36 -3
- package/dist/chunk-AB4HIKF3.js.map +1 -0
- package/dist/{chunk-QUCSWC3M.cjs → chunk-OVCAR2R5.cjs} +39 -2
- package/dist/chunk-OVCAR2R5.cjs.map +1 -0
- package/dist/index.cjs +139 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +257 -42
- package/dist/index.d.ts +257 -42
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +91 -75
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-6-ywikNl.d.cts → types-GIkv5spC.d.cts} +32 -7
- package/dist/{types-6-ywikNl.d.ts → types-GIkv5spC.d.ts} +32 -7
- package/package.json +3 -3
- package/src/agent/index.ts +42 -6
- package/src/agent/model-types.ts +193 -0
- package/src/agent/models.ts +67 -0
- package/src/data/types.ts +6 -3
- package/src/index.ts +20 -1
- package/src/meta/filters.ts +9 -2
- package/src/meta/index.ts +6 -0
- package/src/meta/record-title.ts +50 -0
- package/src/workflow/types.ts +3 -1
- package/dist/chunk-B2EZDFFH.js.map +0 -1
- package/dist/chunk-QUCSWC3M.cjs.map +0 -1
|
@@ -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
|
-
|
|
1924
|
-
//# sourceMappingURL=chunk-
|
|
1959
|
+
exports.titleTemplateVariables = titleTemplateVariables;
|
|
1960
|
+
//# sourceMappingURL=chunk-OVCAR2R5.cjs.map
|
|
1961
|
+
//# sourceMappingURL=chunk-OVCAR2R5.cjs.map
|