@proteos/sdk 0.55.0 → 0.57.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-3UBIL3WV.cjs → chunk-2EB3P4AR.cjs} +58 -7
- package/dist/chunk-2EB3P4AR.cjs.map +1 -0
- package/dist/{chunk-WJYUQBEG.js → chunk-U3FT5KAH.js} +49 -8
- package/dist/chunk-U3FT5KAH.js.map +1 -0
- package/dist/index.cjs +125 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +119 -79
- 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-CylP2A4p.d.cts → types-mC4i_Wk3.d.cts} +153 -61
- package/dist/{types-CylP2A4p.d.ts → types-mC4i_Wk3.d.ts} +153 -61
- package/package.json +1 -1
- package/src/data/types.ts +6 -3
- package/src/index.ts +9 -7
- package/src/meta/filters.ts +9 -2
- package/src/meta/index.ts +2 -0
- package/src/meta/layout/common-props.ts +16 -1
- package/src/meta/layout/elements.ts +57 -0
- package/src/meta/layout/index.ts +18 -3
- package/src/meta/layout/page-layout.ts +39 -10
- package/src/meta/layout/size-value.ts +37 -0
- package/src/meta/types.ts +16 -0
- package/dist/chunk-3UBIL3WV.cjs.map +0 -1
- package/dist/chunk-WJYUQBEG.js.map +0 -1
|
@@ -1456,12 +1456,15 @@ type LogicalOperator = 'and' | 'or';
|
|
|
1456
1456
|
* Comparison operator for a single filter element. Mirrors
|
|
1457
1457
|
* `ComparisonOperator` in `packages/go/model/comparison-operator.go`.
|
|
1458
1458
|
*/
|
|
1459
|
-
type ComparisonOperator = 'eq' | 'gt' | 'lt' | 'gte' | 'lte' | 'ne' | 'in' | 'not_in' | 'contains' | 'starts_with' | 'ends_with' | 'empty' | 'not_empty';
|
|
1459
|
+
type ComparisonOperator = 'eq' | 'gt' | 'lt' | 'gte' | 'lte' | 'ne' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_all' | 'starts_with' | 'ends_with' | 'empty' | 'not_empty';
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Single filter element (atomic predicate).
|
|
1462
1462
|
*
|
|
1463
|
-
* `value` is a string at the wire level — pipe-joined for
|
|
1464
|
-
* ignored for `empty` / `not_empty`.
|
|
1463
|
+
* `value` is a string at the wire level — pipe-joined for the list operators
|
|
1464
|
+
* `in` / `not_in` / `contains_all`, ignored for `empty` / `not_empty`. On array
|
|
1465
|
+
* attributes the membership operators are set tests: `contains` = has the
|
|
1466
|
+
* value, `not_contains` = does not have it, `in` = has any of, `not_in` = has
|
|
1467
|
+
* none of, `contains_all` = has all of. This matches the data-service URL query
|
|
1465
1468
|
* convention so the same predicate flows through both the GET-with-filters
|
|
1466
1469
|
* path and the layout `visible_when` JSONB path without a translation layer.
|
|
1467
1470
|
*/
|
|
@@ -1481,15 +1484,15 @@ interface FilterGroup {
|
|
|
1481
1484
|
declare const FilterElementSchema: z.ZodObject<{
|
|
1482
1485
|
field: z.ZodString;
|
|
1483
1486
|
value: z.ZodString;
|
|
1484
|
-
operator: z.ZodEnum<["eq", "gt", "lt", "gte", "lte", "ne", "in", "not_in", "contains", "starts_with", "ends_with", "empty", "not_empty"]>;
|
|
1487
|
+
operator: z.ZodEnum<["eq", "gt", "lt", "gte", "lte", "ne", "in", "not_in", "contains", "not_contains", "contains_all", "starts_with", "ends_with", "empty", "not_empty"]>;
|
|
1485
1488
|
}, "strip", z.ZodTypeAny, {
|
|
1486
1489
|
value: string;
|
|
1487
1490
|
field: string;
|
|
1488
|
-
operator: "eq" | "gt" | "lt" | "gte" | "lte" | "ne" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "empty" | "not_empty";
|
|
1491
|
+
operator: "eq" | "gt" | "lt" | "gte" | "lte" | "ne" | "in" | "not_in" | "contains" | "not_contains" | "contains_all" | "starts_with" | "ends_with" | "empty" | "not_empty";
|
|
1489
1492
|
}, {
|
|
1490
1493
|
value: string;
|
|
1491
1494
|
field: string;
|
|
1492
|
-
operator: "eq" | "gt" | "lt" | "gte" | "lte" | "ne" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | "empty" | "not_empty";
|
|
1495
|
+
operator: "eq" | "gt" | "lt" | "gte" | "lte" | "ne" | "in" | "not_in" | "contains" | "not_contains" | "contains_all" | "starts_with" | "ends_with" | "empty" | "not_empty";
|
|
1493
1496
|
}>;
|
|
1494
1497
|
declare const FilterGroupSchema: z.ZodType<FilterGroup>;
|
|
1495
1498
|
|
|
@@ -1505,6 +1508,22 @@ declare const FilterGroupSchema: z.ZodType<FilterGroup>;
|
|
|
1505
1508
|
* - "fill" — grow to fill remaining space
|
|
1506
1509
|
*/
|
|
1507
1510
|
type SizeValue = number | `${number}/${number}` | `${number}px` | `${number}%` | 'auto' | 'fill';
|
|
1511
|
+
/**
|
|
1512
|
+
* A fixed CSS length — the subset of SizeValue the server accepts for
|
|
1513
|
+
* `min_height` ("Npx" / "N%"). Mirrors `minHeightStringRe` in the
|
|
1514
|
+
* metadata-service layout validator.
|
|
1515
|
+
*/
|
|
1516
|
+
type LengthValue = `${number}px` | `${number}%`;
|
|
1517
|
+
declare function isLengthValue(text: string): text is LengthValue;
|
|
1518
|
+
declare const LengthValueSchema: z.ZodType<LengthValue>;
|
|
1519
|
+
/**
|
|
1520
|
+
* A page-style dimension (`layout.style.max_width` / `padding_*`): a length,
|
|
1521
|
+
* "auto" or "fill" — never a fraction. Mirrors `styleSizeValueStringRe` in the
|
|
1522
|
+
* metadata-service layout validator.
|
|
1523
|
+
*/
|
|
1524
|
+
type StyleSizeValue = LengthValue | 'auto' | 'fill';
|
|
1525
|
+
declare function isStyleSizeValue(text: string): text is StyleSizeValue;
|
|
1526
|
+
declare const StyleSizeValueSchema: z.ZodType<StyleSizeValue>;
|
|
1508
1527
|
declare const SizeValueSchema: z.ZodType<SizeValue>;
|
|
1509
1528
|
|
|
1510
1529
|
/**
|
|
@@ -1521,6 +1540,9 @@ type LayoutGap = 'xs' | 'sm' | 'md' | 'lg';
|
|
|
1521
1540
|
interface SizingProps {
|
|
1522
1541
|
width?: SizeValue;
|
|
1523
1542
|
height?: SizeValue;
|
|
1543
|
+
/** Floor under `height` (px or %). Under `height: 'fill'` in a column it
|
|
1544
|
+
* replaces the default 320px floor. */
|
|
1545
|
+
min_height?: LengthValue;
|
|
1524
1546
|
grow?: number;
|
|
1525
1547
|
shrink?: number;
|
|
1526
1548
|
align?: LayoutAlign;
|
|
@@ -1554,7 +1576,12 @@ interface CommonProps {
|
|
|
1554
1576
|
visible_when?: FilterGroup;
|
|
1555
1577
|
read_only_when?: FilterGroup;
|
|
1556
1578
|
width?: SizeValue;
|
|
1579
|
+
/** `fill` takes the remaining space in the parent: along a column it grows
|
|
1580
|
+
* (floored by `min_height`, default 320px); in a row it stretches to the
|
|
1581
|
+
* row's height. */
|
|
1557
1582
|
height?: SizeValue;
|
|
1583
|
+
/** Floor under `height`, px or %. */
|
|
1584
|
+
min_height?: LengthValue;
|
|
1558
1585
|
grow?: number;
|
|
1559
1586
|
shrink?: number;
|
|
1560
1587
|
align?: LayoutAlign;
|
|
@@ -1614,6 +1641,7 @@ declare const LayoutElementType: {
|
|
|
1614
1641
|
readonly List: "list";
|
|
1615
1642
|
readonly WorkflowTrigger: "workflow_trigger";
|
|
1616
1643
|
readonly SchedulingPicker: "scheduling_picker";
|
|
1644
|
+
readonly Calendar: "calendar";
|
|
1617
1645
|
};
|
|
1618
1646
|
type LayoutElementType = (typeof LayoutElementType)[keyof typeof LayoutElementType];
|
|
1619
1647
|
type RowElement = CommonProps & {
|
|
@@ -1850,13 +1878,54 @@ type SchedulingPickerElement = CommonProps & {
|
|
|
1850
1878
|
contact_id?: string;
|
|
1851
1879
|
is_header_hidden?: boolean;
|
|
1852
1880
|
};
|
|
1881
|
+
/** The grid views a `calendar` element can show; mirrors `metamodel.CalendarViewKinds`. */
|
|
1882
|
+
declare const CALENDAR_VIEW_KINDS: readonly ["day", "week", "month", "agenda"];
|
|
1883
|
+
type CalendarViewKind = (typeof CALENDAR_VIEW_KINDS)[number];
|
|
1884
|
+
/**
|
|
1885
|
+
* Cap on `overlay_user_ids` (one team colour per overlaid user); mirrors
|
|
1886
|
+
* `metamodel.CalendarMaxOverlayUsers`.
|
|
1887
|
+
*/
|
|
1888
|
+
declare const CALENDAR_MAX_OVERLAY_USERS = 8;
|
|
1889
|
+
/**
|
|
1890
|
+
* A user's calendar embedded in a page: the in-page counterpart of
|
|
1891
|
+
* `/org/:orgId/calendar`. `user_id` is `$current_user`, a Liquid template over
|
|
1892
|
+
* the page scope (`{{ record.owner.id }}`) or a literal user id; writes (new
|
|
1893
|
+
* event, drag, edit) are offered only when it resolves to the viewer — unless
|
|
1894
|
+
* `is_hosted_create_allowed` opens creation through the displayed user.
|
|
1895
|
+
*/
|
|
1896
|
+
type CalendarElement = CommonProps & {
|
|
1897
|
+
type: 'calendar';
|
|
1898
|
+
user_id: string;
|
|
1899
|
+
/** Initial view; `day` when absent. */
|
|
1900
|
+
default_view?: CalendarViewKind;
|
|
1901
|
+
/** Views the switcher offers; only `default_view` when absent. Must contain it. */
|
|
1902
|
+
views?: CalendarViewKind[];
|
|
1903
|
+
/** Liquid template for the initial anchor day (day key or datetime); today when absent. */
|
|
1904
|
+
date?: string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Record pages only: show only events linked to the page record
|
|
1907
|
+
* (`record_entity_slug` + `record_id`) instead of the user's whole calendar.
|
|
1908
|
+
*/
|
|
1909
|
+
is_record_scoped?: boolean;
|
|
1910
|
+
/**
|
|
1911
|
+
* Up to `CALENDAR_MAX_OVERLAY_USERS` further users drawn on the same grid in
|
|
1912
|
+
* team colours, read-only. Each resolves like `user_id`.
|
|
1913
|
+
*/
|
|
1914
|
+
overlay_user_ids?: string[];
|
|
1915
|
+
/**
|
|
1916
|
+
* When the calendar shows someone else: "New event" and drag-select create
|
|
1917
|
+
* THROUGH that user (the viewer hosts the request, the event lands on the
|
|
1918
|
+
* displayed user's calendar). Edit and move stay owner-only.
|
|
1919
|
+
*/
|
|
1920
|
+
is_hosted_create_allowed?: boolean;
|
|
1921
|
+
};
|
|
1853
1922
|
type TextVariant = 'heading' | 'subheading' | 'body' | 'caption' | 'callout' | 'block-title';
|
|
1854
1923
|
type TextElement = CommonProps & {
|
|
1855
1924
|
type: 'text';
|
|
1856
1925
|
variant: TextVariant;
|
|
1857
1926
|
content: string;
|
|
1858
1927
|
};
|
|
1859
|
-
type LayoutElement = RowElement | ColumnElement | SectionElement | CardElement | TabsElement | FieldElement | RelatedListElement | RelatedRecordElement | ComponentElement | DividerElement | TextElement | RecordFilterElement | ListElement | WorkflowTriggerElement | SchedulingPickerElement;
|
|
1928
|
+
type LayoutElement = RowElement | ColumnElement | SectionElement | CardElement | TabsElement | FieldElement | RelatedListElement | RelatedRecordElement | ComponentElement | DividerElement | TextElement | RecordFilterElement | ListElement | WorkflowTriggerElement | SchedulingPickerElement | CalendarElement;
|
|
1860
1929
|
declare const LayoutTabSchema: z.ZodType<LayoutTab>;
|
|
1861
1930
|
declare const LayoutElementSchema: z.ZodType<LayoutElement>;
|
|
1862
1931
|
|
|
@@ -1889,6 +1958,16 @@ declare const PageLayoutSidePanelSchema: z.ZodObject<{
|
|
|
1889
1958
|
*/
|
|
1890
1959
|
declare const PAGE_BACKGROUND_TOKENS: readonly ["bg", "bg-2", "bg-3", "ink", "ink-2", "ink-3", "ink-4", "rule", "rule-2", "accent", "accent-2", "accent-ink", "success", "warning", "danger", "info"];
|
|
1891
1960
|
type PageBackgroundToken = (typeof PAGE_BACKGROUND_TOKENS)[number];
|
|
1961
|
+
/**
|
|
1962
|
+
* A raw CSS color a page background may use instead of a token: a hex literal
|
|
1963
|
+
* or one of a few color functions with a restricted argument charset (no `;{}`,
|
|
1964
|
+
* no `url(`), so a background can never smuggle arbitrary CSS. Keep in sync
|
|
1965
|
+
* with `pageBackgroundColorRe` in the metadata-service layout validator.
|
|
1966
|
+
*/
|
|
1967
|
+
declare const PAGE_BACKGROUND_COLOR_RE: RegExp;
|
|
1968
|
+
/** True when `text` is a background the server accepts: a token or a color
|
|
1969
|
+
* matching PAGE_BACKGROUND_COLOR_RE, at most 64 characters. */
|
|
1970
|
+
declare function isPageBackground(text: string): boolean;
|
|
1892
1971
|
/**
|
|
1893
1972
|
* Per-page presentation of a standalone page shell: background color plus the
|
|
1894
1973
|
* content container's max-width and side / top padding. Every field is
|
|
@@ -1901,29 +1980,30 @@ type PageBackgroundToken = (typeof PAGE_BACKGROUND_TOKENS)[number];
|
|
|
1901
1980
|
* area rather than a standalone shell.
|
|
1902
1981
|
*/
|
|
1903
1982
|
interface PageStyle {
|
|
1904
|
-
/** Design-token key (see PAGE_BACKGROUND_TOKENS) or a raw CSS color
|
|
1983
|
+
/** Design-token key (see PAGE_BACKGROUND_TOKENS) or a raw CSS color
|
|
1984
|
+
* matching PAGE_BACKGROUND_COLOR_RE. */
|
|
1905
1985
|
background?: string;
|
|
1906
|
-
/** Content max-width; `"fill"` / `"auto"` removes the cap. */
|
|
1907
|
-
max_width?:
|
|
1986
|
+
/** Content max-width; `"fill"` / `"auto"` removes the cap. Never a fraction. */
|
|
1987
|
+
max_width?: StyleSizeValue;
|
|
1908
1988
|
/** Horizontal / vertical padding of the content container (Tailwind px/py). */
|
|
1909
|
-
padding_x?:
|
|
1910
|
-
padding_y?:
|
|
1989
|
+
padding_x?: StyleSizeValue;
|
|
1990
|
+
padding_y?: StyleSizeValue;
|
|
1911
1991
|
}
|
|
1912
1992
|
declare const PageStyleSchema: z.ZodObject<{
|
|
1913
|
-
background: z.ZodOptional<z.ZodString
|
|
1914
|
-
max_width: z.ZodOptional<z.ZodType<
|
|
1915
|
-
padding_x: z.ZodOptional<z.ZodType<
|
|
1916
|
-
padding_y: z.ZodOptional<z.ZodType<
|
|
1993
|
+
background: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1994
|
+
max_width: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
1995
|
+
padding_x: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
1996
|
+
padding_y: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
1917
1997
|
}, "strip", z.ZodTypeAny, {
|
|
1918
1998
|
background?: string | undefined;
|
|
1919
|
-
max_width?:
|
|
1920
|
-
padding_x?:
|
|
1921
|
-
padding_y?:
|
|
1999
|
+
max_width?: StyleSizeValue | undefined;
|
|
2000
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2001
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1922
2002
|
}, {
|
|
1923
2003
|
background?: string | undefined;
|
|
1924
|
-
max_width?:
|
|
1925
|
-
padding_x?:
|
|
1926
|
-
padding_y?:
|
|
2004
|
+
max_width?: StyleSizeValue | undefined;
|
|
2005
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2006
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1927
2007
|
}>;
|
|
1928
2008
|
/**
|
|
1929
2009
|
* Top-level page layout. Replaces the legacy `mainContent` / `side_panel`
|
|
@@ -1952,20 +2032,20 @@ declare const PageLayoutSchema: z.ZodObject<{
|
|
|
1952
2032
|
is_sticky?: boolean | undefined;
|
|
1953
2033
|
}>>;
|
|
1954
2034
|
style: z.ZodOptional<z.ZodObject<{
|
|
1955
|
-
background: z.ZodOptional<z.ZodString
|
|
1956
|
-
max_width: z.ZodOptional<z.ZodType<
|
|
1957
|
-
padding_x: z.ZodOptional<z.ZodType<
|
|
1958
|
-
padding_y: z.ZodOptional<z.ZodType<
|
|
2035
|
+
background: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2036
|
+
max_width: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
2037
|
+
padding_x: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
2038
|
+
padding_y: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
1959
2039
|
}, "strip", z.ZodTypeAny, {
|
|
1960
2040
|
background?: string | undefined;
|
|
1961
|
-
max_width?:
|
|
1962
|
-
padding_x?:
|
|
1963
|
-
padding_y?:
|
|
2041
|
+
max_width?: StyleSizeValue | undefined;
|
|
2042
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2043
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1964
2044
|
}, {
|
|
1965
2045
|
background?: string | undefined;
|
|
1966
|
-
max_width?:
|
|
1967
|
-
padding_x?:
|
|
1968
|
-
padding_y?:
|
|
2046
|
+
max_width?: StyleSizeValue | undefined;
|
|
2047
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2048
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1969
2049
|
}>>;
|
|
1970
2050
|
}, "strip", z.ZodTypeAny, {
|
|
1971
2051
|
version: 1;
|
|
@@ -1977,9 +2057,9 @@ declare const PageLayoutSchema: z.ZodObject<{
|
|
|
1977
2057
|
} | undefined;
|
|
1978
2058
|
style?: {
|
|
1979
2059
|
background?: string | undefined;
|
|
1980
|
-
max_width?:
|
|
1981
|
-
padding_x?:
|
|
1982
|
-
padding_y?:
|
|
2060
|
+
max_width?: StyleSizeValue | undefined;
|
|
2061
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2062
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1983
2063
|
} | undefined;
|
|
1984
2064
|
}, {
|
|
1985
2065
|
version: 1;
|
|
@@ -1991,9 +2071,9 @@ declare const PageLayoutSchema: z.ZodObject<{
|
|
|
1991
2071
|
} | undefined;
|
|
1992
2072
|
style?: {
|
|
1993
2073
|
background?: string | undefined;
|
|
1994
|
-
max_width?:
|
|
1995
|
-
padding_x?:
|
|
1996
|
-
padding_y?:
|
|
2074
|
+
max_width?: StyleSizeValue | undefined;
|
|
2075
|
+
padding_x?: StyleSizeValue | undefined;
|
|
2076
|
+
padding_y?: StyleSizeValue | undefined;
|
|
1997
2077
|
} | undefined;
|
|
1998
2078
|
}>;
|
|
1999
2079
|
|
|
@@ -4149,20 +4229,20 @@ declare const PageSchema: z.ZodObject<{
|
|
|
4149
4229
|
is_sticky?: boolean | undefined;
|
|
4150
4230
|
}>>;
|
|
4151
4231
|
style: z.ZodOptional<z.ZodObject<{
|
|
4152
|
-
background: z.ZodOptional<z.ZodString
|
|
4153
|
-
max_width: z.ZodOptional<z.ZodType<
|
|
4154
|
-
padding_x: z.ZodOptional<z.ZodType<
|
|
4155
|
-
padding_y: z.ZodOptional<z.ZodType<
|
|
4232
|
+
background: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4233
|
+
max_width: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
4234
|
+
padding_x: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
4235
|
+
padding_y: z.ZodOptional<z.ZodType<StyleSizeValue, z.ZodTypeDef, StyleSizeValue>>;
|
|
4156
4236
|
}, "strip", z.ZodTypeAny, {
|
|
4157
4237
|
background?: string | undefined;
|
|
4158
|
-
max_width?:
|
|
4159
|
-
padding_x?:
|
|
4160
|
-
padding_y?:
|
|
4238
|
+
max_width?: StyleSizeValue | undefined;
|
|
4239
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4240
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4161
4241
|
}, {
|
|
4162
4242
|
background?: string | undefined;
|
|
4163
|
-
max_width?:
|
|
4164
|
-
padding_x?:
|
|
4165
|
-
padding_y?:
|
|
4243
|
+
max_width?: StyleSizeValue | undefined;
|
|
4244
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4245
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4166
4246
|
}>>;
|
|
4167
4247
|
}, "strip", z.ZodTypeAny, {
|
|
4168
4248
|
version: 1;
|
|
@@ -4174,9 +4254,9 @@ declare const PageSchema: z.ZodObject<{
|
|
|
4174
4254
|
} | undefined;
|
|
4175
4255
|
style?: {
|
|
4176
4256
|
background?: string | undefined;
|
|
4177
|
-
max_width?:
|
|
4178
|
-
padding_x?:
|
|
4179
|
-
padding_y?:
|
|
4257
|
+
max_width?: StyleSizeValue | undefined;
|
|
4258
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4259
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4180
4260
|
} | undefined;
|
|
4181
4261
|
}, {
|
|
4182
4262
|
version: 1;
|
|
@@ -4188,9 +4268,9 @@ declare const PageSchema: z.ZodObject<{
|
|
|
4188
4268
|
} | undefined;
|
|
4189
4269
|
style?: {
|
|
4190
4270
|
background?: string | undefined;
|
|
4191
|
-
max_width?:
|
|
4192
|
-
padding_x?:
|
|
4193
|
-
padding_y?:
|
|
4271
|
+
max_width?: StyleSizeValue | undefined;
|
|
4272
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4273
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4194
4274
|
} | undefined;
|
|
4195
4275
|
}>;
|
|
4196
4276
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4229,9 +4309,9 @@ declare const PageSchema: z.ZodObject<{
|
|
|
4229
4309
|
} | undefined;
|
|
4230
4310
|
style?: {
|
|
4231
4311
|
background?: string | undefined;
|
|
4232
|
-
max_width?:
|
|
4233
|
-
padding_x?:
|
|
4234
|
-
padding_y?:
|
|
4312
|
+
max_width?: StyleSizeValue | undefined;
|
|
4313
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4314
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4235
4315
|
} | undefined;
|
|
4236
4316
|
};
|
|
4237
4317
|
entity_slug?: string | undefined;
|
|
@@ -4271,9 +4351,9 @@ declare const PageSchema: z.ZodObject<{
|
|
|
4271
4351
|
} | undefined;
|
|
4272
4352
|
style?: {
|
|
4273
4353
|
background?: string | undefined;
|
|
4274
|
-
max_width?:
|
|
4275
|
-
padding_x?:
|
|
4276
|
-
padding_y?:
|
|
4354
|
+
max_width?: StyleSizeValue | undefined;
|
|
4355
|
+
padding_x?: StyleSizeValue | undefined;
|
|
4356
|
+
padding_y?: StyleSizeValue | undefined;
|
|
4277
4357
|
} | undefined;
|
|
4278
4358
|
};
|
|
4279
4359
|
entity_slug?: string | undefined;
|
|
@@ -5754,6 +5834,18 @@ interface DesignReferenceContent {
|
|
|
5754
5834
|
* hook. An object rather than a bare string because a bare string IS a valid
|
|
5755
5835
|
* user value (clients send bare ids). Mirrors `metamodel.CurrentUserDefault`.
|
|
5756
5836
|
*/
|
|
5837
|
+
/**
|
|
5838
|
+
* The signed-in user as a VALUE: a `FilterElement.value` (any field —
|
|
5839
|
+
* data-service and the page renderer substitute the caller's id), a component
|
|
5840
|
+
* prop, a `calendar` element's `user_id` / `overlay_user_ids`, a string
|
|
5841
|
+
* literal in the records SQL dialect. The `$` prefix keeps it apart from every
|
|
5842
|
+
* id, slug or text, so no slot has to know the attribute type. The Liquid
|
|
5843
|
+
* scope exposes the same person as the object `{{ current_user.id }}`.
|
|
5844
|
+
* Mirrors `common.CurrentUser`.
|
|
5845
|
+
*/
|
|
5846
|
+
declare const CURRENT_USER = "$current_user";
|
|
5847
|
+
/** True when a string slot carries the current-user sentinel. */
|
|
5848
|
+
declare function isCurrentUser(value: unknown): value is typeof CURRENT_USER;
|
|
5757
5849
|
declare const CURRENT_USER_DEFAULT: {
|
|
5758
5850
|
readonly type: "current_user";
|
|
5759
5851
|
};
|
|
@@ -5765,4 +5857,4 @@ declare function isCurrentUserDefault(value: unknown): value is CurrentUserDefau
|
|
|
5765
5857
|
/** Only the identity-valued attribute types can carry the sentinel. */
|
|
5766
5858
|
declare function acceptsCurrentUserDefault(type: AttributeType): boolean;
|
|
5767
5859
|
|
|
5768
|
-
export {
|
|
5860
|
+
export { type CurrencyAttributeMeta as $, type AuditFields as A, ComponentSchema as B, CURRENT_USER as C, type ComponentService as D, type ContactAddressAttributeKind as E, type FileRef as F, type ContactAddressAttributeMeta as G, ContactAddressAttributeMetaSchema as H, type ContactBindingDuplicatePolicy as I, type CreateAppConfigurationRequest as J, type CreateAppRequest as K, type ListOptions as L, type CreateComponentRequest as M, type CreateDesignReferenceRequest as N, type CreateEntityExtensionRequest as O, PageIterator as P, type CreateEntityRequest as Q, type ResponseMeta as R, type CreateListExtensionRequest as S, type CreateListRequest as T, type UserRef as U, type CreateListViewRequest as V, type CreateMenuConfigurationExtensionRequest as W, type CreateMenuConfigurationRequest as X, type CreatePageExtensionRequest as Y, type CreatePageRequest as Z, type CreateVariableRequest as _, type Attribute as a, type MenuConfigurationExtension as a$, CurrencyAttributeMetaSchema as a0, type CurrencySymbolSide as a1, type CurrencyValue as a2, type CurrentUserDefault as a3, DEFAULT_OPTIONS as a4, DEFAULT_PAGE_SIZE as a5, DONE as a6, type DeployModuleRequest as a7, type DesignReference as a8, type DesignReferenceContent as a9, type ListComponentsOptions as aA, type ListDesignReferencesOptions as aB, type ListEntitiesOptions as aC, type ListEntityExtensionsOptions as aD, type ListExtension as aE, type ListExtensionColumnPlacement as aF, ListExtensionColumnPlacementSchema as aG, ListExtensionSchema as aH, type ListExtensionService as aI, type ListFn as aJ, type ListListExtensionsOptions as aK, type ListListViewsOptions as aL, type ListListsOptions as aM, type ListMenuConfigurationExtensionsOptions as aN, type ListMenuConfigurationsOptions as aO, type ListModulesOptions as aP, type ListPageExtensionsOptions as aQ, type ListPagesOptions as aR, ListSchema as aS, type ListService as aT, type ListVariablesOptions as aU, type ListView as aV, ListViewSchema as aW, type ListViewService as aX, type LogicalOperator as aY, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS as aZ, type MenuConfiguration as a_, DesignReferenceSchema as aa, type DesignReferenceService as ab, type Done as ac, type Entity as ad, type EntityContactBinding as ae, EntityContactBindingSchema as af, type EntityExtension as ag, EntityExtensionSchema as ah, type EntityExtensionService as ai, EntitySchema as aj, type EntityService as ak, type EntityWithSchema as al, EntityWithSchemaSchema as am, type EnumAttributeMeta as an, type EnumValue as ao, type ExtensionPosition as ap, ExtensionPositionSchema as aq, type FileAttributeMeta as ar, FileRefSchema as as, type FilterElement as at, FilterElementSchema as au, type FilterGroup as av, FilterGroupSchema as aw, type List as ax, type ListAppConfigurationsOptions as ay, type ListAppsOptions as az, type ListResult as b, UserRefSchema as b$, type MenuConfigurationExtensionPlacement as b0, MenuConfigurationExtensionPlacementSchema as b1, type MenuConfigurationExtensionPosition as b2, MenuConfigurationExtensionPositionSchema as b3, MenuConfigurationExtensionSchema as b4, type MenuConfigurationExtensionService as b5, MenuConfigurationSchema as b6, type MenuConfigurationService as b7, type MenuItem as b8, MenuItemSchema as b9, type PageType as bA, type PublicPageComponent as bB, type PublicPageResponse as bC, type RelationAttributeMeta as bD, RelationAttributeMetaSchema as bE, type RequestOptions as bF, type ResolvedClientOptions as bG, ResponseMetaSchema as bH, type SortConfig as bI, SortConfigSchema as bJ, type SortDirection as bK, type Timestamps as bL, type TokenProvider as bM, type UpdateAppConfigurationRequest as bN, type UpdateAppRequest as bO, type UpdateComponentRequest as bP, type UpdateDesignReferenceRequest as bQ, type UpdateEntityExtensionRequest as bR, type UpdateEntityRequest as bS, type UpdateListExtensionRequest as bT, type UpdateListRequest as bU, type UpdateListViewRequest as bV, type UpdateMenuConfigurationExtensionRequest as bW, type UpdateMenuConfigurationRequest as bX, type UpdatePageExtensionRequest as bY, type UpdatePageRequest as bZ, type UpdateVariableRequest as b_, MenuItemType as ba, MetaClient as bb, type MetaListOptions as bc, type Module as bd, ModuleSchema as be, type ModuleService as bf, type ModuleStatus as bg, type OnDeleteAction as bh, OnDeleteActionSchema as bi, PAGE_EXTENSION_ANCHOR_MAIN as bj, PAGE_EXTENSION_ANCHOR_SIDE_PANEL as bk, PLATFORM_ATTRIBUTE_NAMES as bl, PLATFORM_USER_ID as bm, type Page as bn, type PageAction as bo, type PageActionKind as bp, PageActionSchema as bq, type PageExtension as br, type PageExtensionPlacement as bs, PageExtensionPlacementSchema as bt, PageExtensionSchema as bu, type PageExtensionService as bv, type PageLayout as bw, PageLayoutSchema as bx, PageSchema as by, type PageService as bz, ProteosClient as c, type PrincipalType as c$, type UserType as c0, type Variable as c1, VariableSchema as c2, type VariableService as c3, acceptsCurrentUserDefault as c4, allCurrencyCodes as c5, createIterator as c6, createListResultSchema as c7, currencyLabel as c8, currencySymbol as c9, type ControlBucket as cA, type DatetimeAttributeMeta as cB, type DatetimeFormat as cC, type DividerElement as cD, type FieldElement as cE, FileAttributeMetaSchema as cF, type LayoutAlign as cG, type LayoutElement as cH, LayoutElementSchema as cI, LayoutElementType as cJ, type LayoutGap as cK, type LayoutJustify as cL, type LayoutTab as cM, LayoutTabSchema as cN, type LengthValue as cO, LengthValueSchema as cP, type ListElement as cQ, type NumberAttributeMeta as cR, type ObjectAttributeMeta as cS, PAGE_BACKGROUND_COLOR_RE as cT, PAGE_BACKGROUND_TOKENS as cU, type PageBackgroundToken as cV, type PageLayoutSidePanel as cW, PageLayoutSidePanelSchema as cX, type PageStyle as cY, PageStyleSchema as cZ, type PrincipalAttributeMeta as c_, currencySymbolSide as ca, formatAmount as cb, formatMoney as cc, isCurrentUser as cd, isCurrentUserDefault as ce, isPlatformAttributeName as cf, localeNumberSeparators as cg, parseAmount as ch, parseContactAddressMeta as ci, parseCurrencyMeta as cj, parseFileMeta as ck, parseRelationMeta as cl, platformAttributes as cm, resolveOptions as cn, type AttributeForLookup as co, type AttributeMeta as cp, BUILT_IN_CONTROLS as cq, type BuiltInControlSlug as cr, CALENDAR_MAX_OVERLAY_USERS as cs, CALENDAR_VIEW_KINDS as ct, type CalendarElement as cu, type CalendarViewKind as cv, type CardElement as cw, type ColumnElement as cx, type CommonProps as cy, type ComponentElement as cz, type PrincipalRef as d, RECORD_TITLE_FIELD as d0, type RecordFilterElement as d1, type RelatedListElement as d2, type RelatedRecordElement as d3, type ResponsiveSizing as d4, type RowElement as d5, type SchedulingPickerElement as d6, type SectionElement as d7, type SizeValue as d8, SizeValueSchema as d9, type SizingProps as da, type StringAttributeMeta as db, type StringFormat as dc, type StyleSizeValue as dd, StyleSizeValueSchema as de, type TabsElement as df, type TextElement as dg, type TextVariant as dh, type UserAttributeMeta as di, UserAttributeMetaSchema as dj, type WorkflowTriggerElement as dk, isBuiltInControl as dl, isLengthValue as dm, isPageBackground as dn, isReservedAttributeName as dp, isStyleSizeValue as dq, isTitleQueryable as dr, lookupCompatibleControls as ds, lookupControls as dt, lookupPrimaryControl as du, parsePrincipalMeta as dv, parseUserMeta as dw, titleTemplateVariables as dx, type PublicAccessOperation as e, type App as f, type AppConfiguration as g, AppConfigurationSchema as h, type AppConfigurationService as i, type AppHome as j, AppHomeSchema as k, type AppHomeType as l, AppSchema as m, type AppService as n, type ArrayAttributeMeta as o, type AttributeAccessRule as p, type AttributeRestrictions as q, AttributeSchema as r, type AttributeType as s, AuditFieldsSchema as t, CURRENT_USER_DEFAULT as u, type ClientOptions as v, type Column as w, ColumnSchema as x, type ComparisonOperator as y, type Component as z };
|