@proteos/sdk 0.20.5 → 0.21.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-7RGN4E22.cjs → chunk-DD6H5PIF.cjs} +14 -4
- package/dist/chunk-DD6H5PIF.cjs.map +1 -0
- package/dist/{chunk-XJP5WCRZ.js → chunk-OUVD2XJX.js} +14 -4
- package/dist/chunk-OUVD2XJX.js.map +1 -0
- package/dist/index.cjs +96 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +50 -50
- 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-BNsjfU8N.d.cts → types-PzImL4QI.d.cts} +64 -9
- package/dist/{types-BNsjfU8N.d.ts → types-PzImL4QI.d.ts} +64 -9
- package/package.json +1 -1
- package/src/client.ts +5 -3
- package/src/functions/actions.ts +25 -0
- package/src/index.ts +3 -0
- package/src/meta/index.ts +3 -0
- package/src/meta/pages.ts +28 -1
- package/src/meta/types.ts +45 -6
- package/src/types/options.ts +6 -0
- package/dist/chunk-7RGN4E22.cjs.map +0 -1
- package/dist/chunk-XJP5WCRZ.js.map +0 -1
package/dist/meta/index.cjs
CHANGED
|
@@ -1,204 +1,204 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDD6H5PIF_cjs = require('../chunk-DD6H5PIF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AppSchema", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkDD6H5PIF_cjs.AppSchema; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDD6H5PIF_cjs.AttributeSchema; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BUILT_IN_CONTROLS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkDD6H5PIF_cjs.BUILT_IN_CONTROLS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ColumnSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkDD6H5PIF_cjs.ColumnSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ComponentSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkDD6H5PIF_cjs.ComponentSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkDD6H5PIF_cjs.CurrencyAttributeMetaSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "EntitySchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkDD6H5PIF_cjs.EntitySchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "EntityWithSchemaSchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkDD6H5PIF_cjs.EntityWithSchemaSchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "FileAttributeMetaSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkDD6H5PIF_cjs.FileAttributeMetaSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FilterElementSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkDD6H5PIF_cjs.FilterElementSchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FilterGroupSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkDD6H5PIF_cjs.FilterGroupSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "LayoutElementSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkDD6H5PIF_cjs.LayoutElementSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "LayoutElementType", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkDD6H5PIF_cjs.LayoutElementType; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ListSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkDD6H5PIF_cjs.ListSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ListViewSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkDD6H5PIF_cjs.ListViewSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MenuConfigurationSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkDD6H5PIF_cjs.MenuConfigurationSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "MenuItemSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkDD6H5PIF_cjs.MenuItemSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "MenuItemType", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkDD6H5PIF_cjs.MenuItemType; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "MetaClient", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkDD6H5PIF_cjs.MetaClient; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "ModuleSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkDD6H5PIF_cjs.ModuleSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "OnDeleteActionSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkDD6H5PIF_cjs.OnDeleteActionSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkDD6H5PIF_cjs.PLATFORM_ATTRIBUTE_NAMES; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PageActionSchema", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkDD6H5PIF_cjs.PageActionSchema; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "PageLayoutSchema", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkDD6H5PIF_cjs.PageLayoutSchema; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "PageLayoutSidePanelSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkDD6H5PIF_cjs.PageLayoutSidePanelSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "PageSchema", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkDD6H5PIF_cjs.PageSchema; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "RelationAttributeMetaSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkDD6H5PIF_cjs.RelationAttributeMetaSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "SizeValueSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkDD6H5PIF_cjs.SizeValueSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "SortConfigSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkDD6H5PIF_cjs.SortConfigSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "UserAttributeMetaSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkDD6H5PIF_cjs.UserAttributeMetaSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "VariableSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkDD6H5PIF_cjs.VariableSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "allCurrencyCodes", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkDD6H5PIF_cjs.allCurrencyCodes; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "currencyLabel", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkDD6H5PIF_cjs.currencyLabel; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "currencySymbol", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkDD6H5PIF_cjs.currencySymbol; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "currencySymbolSide", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkDD6H5PIF_cjs.currencySymbolSide; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "formatAmount", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkDD6H5PIF_cjs.formatAmount; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "formatMoney", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkDD6H5PIF_cjs.formatMoney; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "isBuiltInControl", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkDD6H5PIF_cjs.isBuiltInControl; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "isPlatformAttributeName", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkDD6H5PIF_cjs.isPlatformAttributeName; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "localeNumberSeparators", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkDD6H5PIF_cjs.localeNumberSeparators; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "lookupCompatibleControls", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkDD6H5PIF_cjs.lookupCompatibleControls; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "lookupControls", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkDD6H5PIF_cjs.lookupControls; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "lookupPrimaryControl", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkDD6H5PIF_cjs.lookupPrimaryControl; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "parseAmount", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkDD6H5PIF_cjs.parseAmount; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "parseCurrencyMeta", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkDD6H5PIF_cjs.parseCurrencyMeta; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "parseFileMeta", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkDD6H5PIF_cjs.parseFileMeta; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "parseRelationMeta", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkDD6H5PIF_cjs.parseRelationMeta; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "parseUserMeta", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkDD6H5PIF_cjs.parseUserMeta; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "platformAttributes", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkDD6H5PIF_cjs.platformAttributes; }
|
|
202
202
|
});
|
|
203
203
|
//# sourceMappingURL=index.cjs.map
|
|
204
204
|
//# sourceMappingURL=index.cjs.map
|
package/dist/meta/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { d as App, e as AppSchema, f as AppService,
|
|
1
|
+
export { d as App, e as AppSchema, f as AppService, be as ArrayAttributeMeta, a as Attribute, bf as AttributeForLookup, bg as AttributeMeta, g as AttributeSchema, h as AttributeType, bh as BUILT_IN_CONTROLS, bi as BuiltInControlSlug, j as Column, bj as ColumnElement, k as ColumnSchema, bk as CommonProps, l as ComparisonOperator, m as Component, bl as ComponentElement, n as ComponentSchema, o as ComponentService, bm as ControlBucket, p as CreateAppRequest, q as CreateComponentRequest, r as CreateEntityRequest, s as CreateListRequest, t as CreateListViewRequest, u as CreateMenuConfigurationRequest, v as CreatePageRequest, w as CreateVariableRequest, x as CurrencyAttributeMeta, y as CurrencyAttributeMetaSchema, z as CurrencySymbolSide, B as CurrencyValue, bn as DatetimeAttributeMeta, bo as DatetimeFormat, H as DeployModuleRequest, bp as DividerElement, J as Entity, K as EntitySchema, M as EntityService, N as EntityWithSchema, O as EntityWithSchemaSchema, bq as EnumAttributeMeta, br as EnumValue, bs as FieldElement, Q as FileAttributeMeta, bt as FileAttributeMetaSchema, S as FilterElement, T as FilterElementSchema, V as FilterGroup, W as FilterGroupSchema, bu as LayoutAlign, bv as LayoutElement, bw as LayoutElementSchema, bx as LayoutElementType, by as LayoutGap, bz as LayoutJustify, bA as LayoutTab, X as List, Y as ListAppsOptions, Z as ListComponentsOptions, _ as ListEntitiesOptions, a0 as ListListViewsOptions, a1 as ListListsOptions, a2 as ListMenuConfigurationsOptions, a3 as ListModulesOptions, a4 as ListPagesOptions, a5 as ListSchema, a6 as ListService, a7 as ListVariablesOptions, a8 as ListView, a9 as ListViewSchema, aa as ListViewService, ab as LogicalOperator, ac as MenuConfiguration, ad as MenuConfigurationSchema, ae as MenuConfigurationService, af as MenuItem, ag as MenuItemSchema, ah as MenuItemType, ai as MetaClient, aj as MetaListOptions, ak as Module, al as ModuleSchema, am as ModuleService, an as ModuleStatus, bB as NumberAttributeMeta, bC as ObjectAttributeMeta, ao as OnDeleteAction, ap as OnDeleteActionSchema, aq as PLATFORM_ATTRIBUTE_NAMES, as as Page, at as PageAction, au as PageActionSchema, av as PageLayout, aw as PageLayoutSchema, bD as PageLayoutSidePanel, bE as PageLayoutSidePanelSchema, ax as PageSchema, ay as PageService, az as PageType, aA as PublicPageComponent, aB as PublicPageResponse, bF as RelatedListElement, aC as RelationAttributeMeta, aD as RelationAttributeMetaSchema, bG as ResponsiveSizing, bH as RowElement, bI as SectionElement, bJ as SizeValue, bK as SizeValueSchema, bL as SizingProps, aI as SortConfig, aJ as SortConfigSchema, aK as SortDirection, bM as StringAttributeMeta, bN as StringFormat, bO as TabsElement, bP as TextElement, bQ as TextVariant, aN as UpdateAppRequest, aO as UpdateComponentRequest, aP as UpdateEntityRequest, aQ as UpdateListRequest, aR as UpdateListViewRequest, aS as UpdateMenuConfigurationRequest, aT as UpdatePageRequest, aU as UpdateVariableRequest, bR as UserAttributeMeta, bS as UserAttributeMetaSchema, aX as Variable, aY as VariableSchema, aZ as VariableService, a_ as allCurrencyCodes, b1 as currencyLabel, b2 as currencySymbol, b3 as currencySymbolSide, b4 as formatAmount, b5 as formatMoney, bT as isBuiltInControl, b6 as isPlatformAttributeName, b7 as localeNumberSeparators, bU as lookupCompatibleControls, bV as lookupControls, bW as lookupPrimaryControl, b8 as parseAmount, b9 as parseCurrencyMeta, ba as parseFileMeta, bb as parseRelationMeta, bX as parseUserMeta, bc as platformAttributes } from '../types-PzImL4QI.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { d as App, e as AppSchema, f as AppService,
|
|
1
|
+
export { d as App, e as AppSchema, f as AppService, be as ArrayAttributeMeta, a as Attribute, bf as AttributeForLookup, bg as AttributeMeta, g as AttributeSchema, h as AttributeType, bh as BUILT_IN_CONTROLS, bi as BuiltInControlSlug, j as Column, bj as ColumnElement, k as ColumnSchema, bk as CommonProps, l as ComparisonOperator, m as Component, bl as ComponentElement, n as ComponentSchema, o as ComponentService, bm as ControlBucket, p as CreateAppRequest, q as CreateComponentRequest, r as CreateEntityRequest, s as CreateListRequest, t as CreateListViewRequest, u as CreateMenuConfigurationRequest, v as CreatePageRequest, w as CreateVariableRequest, x as CurrencyAttributeMeta, y as CurrencyAttributeMetaSchema, z as CurrencySymbolSide, B as CurrencyValue, bn as DatetimeAttributeMeta, bo as DatetimeFormat, H as DeployModuleRequest, bp as DividerElement, J as Entity, K as EntitySchema, M as EntityService, N as EntityWithSchema, O as EntityWithSchemaSchema, bq as EnumAttributeMeta, br as EnumValue, bs as FieldElement, Q as FileAttributeMeta, bt as FileAttributeMetaSchema, S as FilterElement, T as FilterElementSchema, V as FilterGroup, W as FilterGroupSchema, bu as LayoutAlign, bv as LayoutElement, bw as LayoutElementSchema, bx as LayoutElementType, by as LayoutGap, bz as LayoutJustify, bA as LayoutTab, X as List, Y as ListAppsOptions, Z as ListComponentsOptions, _ as ListEntitiesOptions, a0 as ListListViewsOptions, a1 as ListListsOptions, a2 as ListMenuConfigurationsOptions, a3 as ListModulesOptions, a4 as ListPagesOptions, a5 as ListSchema, a6 as ListService, a7 as ListVariablesOptions, a8 as ListView, a9 as ListViewSchema, aa as ListViewService, ab as LogicalOperator, ac as MenuConfiguration, ad as MenuConfigurationSchema, ae as MenuConfigurationService, af as MenuItem, ag as MenuItemSchema, ah as MenuItemType, ai as MetaClient, aj as MetaListOptions, ak as Module, al as ModuleSchema, am as ModuleService, an as ModuleStatus, bB as NumberAttributeMeta, bC as ObjectAttributeMeta, ao as OnDeleteAction, ap as OnDeleteActionSchema, aq as PLATFORM_ATTRIBUTE_NAMES, as as Page, at as PageAction, au as PageActionSchema, av as PageLayout, aw as PageLayoutSchema, bD as PageLayoutSidePanel, bE as PageLayoutSidePanelSchema, ax as PageSchema, ay as PageService, az as PageType, aA as PublicPageComponent, aB as PublicPageResponse, bF as RelatedListElement, aC as RelationAttributeMeta, aD as RelationAttributeMetaSchema, bG as ResponsiveSizing, bH as RowElement, bI as SectionElement, bJ as SizeValue, bK as SizeValueSchema, bL as SizingProps, aI as SortConfig, aJ as SortConfigSchema, aK as SortDirection, bM as StringAttributeMeta, bN as StringFormat, bO as TabsElement, bP as TextElement, bQ as TextVariant, aN as UpdateAppRequest, aO as UpdateComponentRequest, aP as UpdateEntityRequest, aQ as UpdateListRequest, aR as UpdateListViewRequest, aS as UpdateMenuConfigurationRequest, aT as UpdatePageRequest, aU as UpdateVariableRequest, bR as UserAttributeMeta, bS as UserAttributeMetaSchema, aX as Variable, aY as VariableSchema, aZ as VariableService, a_ as allCurrencyCodes, b1 as currencyLabel, b2 as currencySymbol, b3 as currencySymbolSide, b4 as formatAmount, b5 as formatMoney, bT as isBuiltInControl, b6 as isPlatformAttributeName, b7 as localeNumberSeparators, bU as lookupCompatibleControls, bV as lookupControls, bW as lookupPrimaryControl, b8 as parseAmount, b9 as parseCurrencyMeta, ba as parseFileMeta, bb as parseRelationMeta, bX as parseUserMeta, bc as platformAttributes } from '../types-PzImL4QI.js';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-
|
|
1
|
+
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-OUVD2XJX.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -71,6 +71,12 @@ declare function resolveOptions(options: ClientOptions): ResolvedClientOptions;
|
|
|
71
71
|
interface RequestOptions {
|
|
72
72
|
/** Request timeout in milliseconds (overrides client default) */
|
|
73
73
|
timeout?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Skip attaching the Authorization header. Only meaningful for the public,
|
|
76
|
+
* unauthenticated endpoints (`/meta/v1/public/*`, `/functions/v1/public/*`)
|
|
77
|
+
* — every other endpoint 401s without a bearer.
|
|
78
|
+
*/
|
|
79
|
+
skipAuth?: boolean;
|
|
74
80
|
/** Additional headers for this request */
|
|
75
81
|
headers?: Record<string, string>;
|
|
76
82
|
/** AbortSignal for request cancellation */
|
|
@@ -1070,6 +1076,17 @@ interface PageService {
|
|
|
1070
1076
|
* @throws {ProteosError} If page not found (404)
|
|
1071
1077
|
*/
|
|
1072
1078
|
get(slug: string): Promise<Page>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Gets a PUBLIC page (type='public') without authentication — no
|
|
1081
|
+
* Authorization header is sent. Returns the page plus the props_schema of
|
|
1082
|
+
* every component its layout references. Non-public pages 404
|
|
1083
|
+
* (indistinguishable from absent).
|
|
1084
|
+
*
|
|
1085
|
+
* @param orgId - Org id (public routes carry the org in the path — there is
|
|
1086
|
+
* no token to scope from)
|
|
1087
|
+
* @param slug - Page slug
|
|
1088
|
+
*/
|
|
1089
|
+
getPublic(orgId: string, slug: string): Promise<PublicPageResponse>;
|
|
1073
1090
|
/**
|
|
1074
1091
|
* Creates a new page.
|
|
1075
1092
|
*
|
|
@@ -2404,6 +2421,13 @@ interface Component extends AuditFields {
|
|
|
2404
2421
|
source_file_id: string;
|
|
2405
2422
|
/** The component's JSON Schema, driving the page-designer props editor + runtime validation. `null` until set. */
|
|
2406
2423
|
props_schema: Record<string, unknown> | null;
|
|
2424
|
+
/**
|
|
2425
|
+
* Opts the compiled bundle into UNAUTHENTICATED serving. Public
|
|
2426
|
+
* (type='public') pages may only reference public components (enforced at
|
|
2427
|
+
* page save), and a public component's only platform reach at runtime is
|
|
2428
|
+
* `functions.actions.invokePublic`.
|
|
2429
|
+
*/
|
|
2430
|
+
is_public: boolean;
|
|
2407
2431
|
}
|
|
2408
2432
|
declare const ComponentSchema: z.ZodObject<{
|
|
2409
2433
|
created_at: z.ZodString;
|
|
@@ -2436,6 +2460,7 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
2436
2460
|
bundle_file_id: z.ZodString;
|
|
2437
2461
|
source_file_id: z.ZodString;
|
|
2438
2462
|
props_schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2463
|
+
is_public: z.ZodDefault<z.ZodBoolean>;
|
|
2439
2464
|
}, "strip", z.ZodTypeAny, {
|
|
2440
2465
|
name: string;
|
|
2441
2466
|
created_at: string;
|
|
@@ -2454,6 +2479,7 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
2454
2479
|
bundle_file_id: string;
|
|
2455
2480
|
source_file_id: string;
|
|
2456
2481
|
props_schema: Record<string, unknown> | null;
|
|
2482
|
+
is_public: boolean;
|
|
2457
2483
|
}, {
|
|
2458
2484
|
name: string;
|
|
2459
2485
|
created_at: string;
|
|
@@ -2472,6 +2498,7 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
2472
2498
|
bundle_file_id: string;
|
|
2473
2499
|
source_file_id: string;
|
|
2474
2500
|
props_schema: Record<string, unknown> | null;
|
|
2501
|
+
is_public?: boolean | undefined;
|
|
2475
2502
|
}>;
|
|
2476
2503
|
/**
|
|
2477
2504
|
* Options for listing components.
|
|
@@ -2492,6 +2519,8 @@ interface CreateComponentRequest {
|
|
|
2492
2519
|
bundle_file_id?: string;
|
|
2493
2520
|
source_file_id?: string;
|
|
2494
2521
|
props_schema?: Record<string, unknown>;
|
|
2522
|
+
/** See {@link Component.is_public}. Manifest-driven: omitting it sets false. */
|
|
2523
|
+
is_public?: boolean;
|
|
2495
2524
|
}
|
|
2496
2525
|
/**
|
|
2497
2526
|
* Request to update a component.
|
|
@@ -2502,6 +2531,7 @@ interface UpdateComponentRequest {
|
|
|
2502
2531
|
bundle_file_id?: string;
|
|
2503
2532
|
source_file_id?: string;
|
|
2504
2533
|
props_schema?: Record<string, unknown>;
|
|
2534
|
+
is_public?: boolean;
|
|
2505
2535
|
}
|
|
2506
2536
|
/**
|
|
2507
2537
|
* List column definition.
|
|
@@ -2865,12 +2895,19 @@ declare const PageActionSchema: z.ZodObject<{
|
|
|
2865
2895
|
action: string;
|
|
2866
2896
|
}>;
|
|
2867
2897
|
/**
|
|
2868
|
-
* Page type
|
|
2869
|
-
*
|
|
2870
|
-
*
|
|
2871
|
-
*
|
|
2898
|
+
* Page type — encodes what the page binds to and how it is served (chrome +
|
|
2899
|
+
* auth posture both follow from it):
|
|
2900
|
+
*
|
|
2901
|
+
* - `record`: rendered against a single record of `entity_slug`; app chrome;
|
|
2902
|
+
* authenticated.
|
|
2903
|
+
* - `platform`: standalone, no record context (e.g. a dashboard launched from
|
|
2904
|
+
* a menu item); app chrome; authenticated.
|
|
2905
|
+
* - `kiosk`: standalone, NO app chrome (bare page at `/k/…`); authenticated.
|
|
2906
|
+
* - `public`: standalone, NO app chrome (bare page at `/p/…`);
|
|
2907
|
+
* UNAUTHENTICATED — the layout is world-readable and its components may only
|
|
2908
|
+
* call `is_public` global actions.
|
|
2872
2909
|
*/
|
|
2873
|
-
type PageType = 'record' | 'platform';
|
|
2910
|
+
type PageType = 'record' | 'platform' | 'kiosk' | 'public';
|
|
2874
2911
|
/**
|
|
2875
2912
|
* Page configuration. A `record` page is the detail-page shape for a single
|
|
2876
2913
|
* entity; a `platform` page is standalone (no entity, no record).
|
|
@@ -2916,7 +2953,7 @@ declare const PageSchema: z.ZodObject<{
|
|
|
2916
2953
|
slug: z.ZodString;
|
|
2917
2954
|
name: z.ZodString;
|
|
2918
2955
|
module_slug: z.ZodString;
|
|
2919
|
-
type: z.ZodEnum<["record", "platform"]>;
|
|
2956
|
+
type: z.ZodEnum<["record", "platform", "kiosk", "public"]>;
|
|
2920
2957
|
entity_slug: z.ZodOptional<z.ZodString>;
|
|
2921
2958
|
actions: z.ZodArray<z.ZodObject<{
|
|
2922
2959
|
label: z.ZodString;
|
|
@@ -2965,7 +3002,7 @@ declare const PageSchema: z.ZodObject<{
|
|
|
2965
3002
|
} | undefined;
|
|
2966
3003
|
}>;
|
|
2967
3004
|
}, "strip", z.ZodTypeAny, {
|
|
2968
|
-
type: "platform" | "record";
|
|
3005
|
+
type: "platform" | "record" | "kiosk" | "public";
|
|
2969
3006
|
name: string;
|
|
2970
3007
|
created_at: string;
|
|
2971
3008
|
updated_at: string;
|
|
@@ -2995,7 +3032,7 @@ declare const PageSchema: z.ZodObject<{
|
|
|
2995
3032
|
};
|
|
2996
3033
|
entity_slug?: string | undefined;
|
|
2997
3034
|
}, {
|
|
2998
|
-
type: "platform" | "record";
|
|
3035
|
+
type: "platform" | "record" | "kiosk" | "public";
|
|
2999
3036
|
name: string;
|
|
3000
3037
|
created_at: string;
|
|
3001
3038
|
updated_at: string;
|
|
@@ -3025,6 +3062,24 @@ declare const PageSchema: z.ZodObject<{
|
|
|
3025
3062
|
};
|
|
3026
3063
|
entity_slug?: string | undefined;
|
|
3027
3064
|
}>;
|
|
3065
|
+
/**
|
|
3066
|
+
* Component metadata slice riding on the public page payload — just the slug
|
|
3067
|
+
* and props schema (deliberately not the full Component: this is served
|
|
3068
|
+
* unauthenticated).
|
|
3069
|
+
*/
|
|
3070
|
+
interface PublicPageComponent {
|
|
3071
|
+
slug: string;
|
|
3072
|
+
props_schema?: Record<string, unknown>;
|
|
3073
|
+
}
|
|
3074
|
+
/**
|
|
3075
|
+
* Payload of the unauthenticated `GET /meta/v1/public/orgs/{orgId}/pages/{slug}`:
|
|
3076
|
+
* the page plus the props_schema of every component its layout references, so
|
|
3077
|
+
* a public renderer needs no follow-up authenticated calls.
|
|
3078
|
+
*/
|
|
3079
|
+
interface PublicPageResponse {
|
|
3080
|
+
page: Page;
|
|
3081
|
+
components: PublicPageComponent[];
|
|
3082
|
+
}
|
|
3028
3083
|
/**
|
|
3029
3084
|
* Options for listing pages.
|
|
3030
3085
|
*/
|
|
@@ -3296,4 +3351,4 @@ interface UpdateAppRequest {
|
|
|
3296
3351
|
icon_slug?: string;
|
|
3297
3352
|
}
|
|
3298
3353
|
|
|
3299
|
-
export { type ListFn as $, type AuditFields as A, type CurrencyValue as B, type ClientOptions as C, DEFAULT_OPTIONS as D, DEFAULT_PAGE_SIZE as E, type FileRef as F, DONE as G, type DeployModuleRequest as H, type Done as I, type Entity as J, EntitySchema as K, type ListOptions as L, type EntityService as M, type EntityWithSchema as N, EntityWithSchemaSchema as O, PageIterator as P, type FileAttributeMeta as Q, FileRefSchema as R, type FilterElement as S, FilterElementSchema as T, type UserRef as U, type FilterGroup as V, FilterGroupSchema as W, type List as X, type ListAppsOptions as Y, type ListComponentsOptions as Z, type ListEntitiesOptions as _, type Attribute as a,
|
|
3354
|
+
export { type ListFn as $, type AuditFields as A, type CurrencyValue as B, type ClientOptions as C, DEFAULT_OPTIONS as D, DEFAULT_PAGE_SIZE as E, type FileRef as F, DONE as G, type DeployModuleRequest as H, type Done as I, type Entity as J, EntitySchema as K, type ListOptions as L, type EntityService as M, type EntityWithSchema as N, EntityWithSchemaSchema as O, PageIterator as P, type FileAttributeMeta as Q, FileRefSchema as R, type FilterElement as S, FilterElementSchema as T, type UserRef as U, type FilterGroup as V, FilterGroupSchema as W, type List as X, type ListAppsOptions as Y, type ListComponentsOptions as Z, type ListEntitiesOptions as _, type Attribute as a, createIterator as a$, type ListListViewsOptions as a0, type ListListsOptions as a1, type ListMenuConfigurationsOptions as a2, type ListModulesOptions as a3, type ListPagesOptions as a4, ListSchema as a5, type ListService as a6, type ListVariablesOptions as a7, type ListView as a8, ListViewSchema as a9, type PublicPageComponent as aA, type PublicPageResponse as aB, type RelationAttributeMeta as aC, RelationAttributeMetaSchema as aD, type RequestOptions as aE, type ResolvedClientOptions as aF, type ResponseMeta as aG, ResponseMetaSchema as aH, type SortConfig as aI, SortConfigSchema as aJ, type SortDirection as aK, type Timestamps as aL, type TokenProvider as aM, type UpdateAppRequest as aN, type UpdateComponentRequest as aO, type UpdateEntityRequest as aP, type UpdateListRequest as aQ, type UpdateListViewRequest as aR, type UpdateMenuConfigurationRequest as aS, type UpdatePageRequest as aT, type UpdateVariableRequest as aU, UserRefSchema as aV, type UserType as aW, type Variable as aX, VariableSchema as aY, type VariableService as aZ, allCurrencyCodes as a_, type ListViewService as aa, type LogicalOperator as ab, type MenuConfiguration as ac, MenuConfigurationSchema as ad, type MenuConfigurationService as ae, type MenuItem as af, MenuItemSchema as ag, MenuItemType as ah, MetaClient as ai, type MetaListOptions as aj, type Module as ak, ModuleSchema as al, type ModuleService as am, type ModuleStatus as an, type OnDeleteAction as ao, OnDeleteActionSchema as ap, PLATFORM_ATTRIBUTE_NAMES as aq, PLATFORM_USER_ID as ar, type Page as as, type PageAction as at, PageActionSchema as au, type PageLayout as av, PageLayoutSchema as aw, PageSchema as ax, type PageService as ay, type PageType as az, type ListResult as b, createListResultSchema as b0, currencyLabel as b1, currencySymbol as b2, currencySymbolSide as b3, formatAmount as b4, formatMoney as b5, isPlatformAttributeName as b6, localeNumberSeparators as b7, parseAmount as b8, parseCurrencyMeta as b9, type LayoutTab as bA, type NumberAttributeMeta as bB, type ObjectAttributeMeta as bC, type PageLayoutSidePanel as bD, PageLayoutSidePanelSchema as bE, type RelatedListElement as bF, type ResponsiveSizing as bG, type RowElement as bH, type SectionElement as bI, type SizeValue as bJ, SizeValueSchema as bK, type SizingProps as bL, type StringAttributeMeta as bM, type StringFormat as bN, type TabsElement as bO, type TextElement as bP, type TextVariant as bQ, type UserAttributeMeta as bR, UserAttributeMetaSchema as bS, isBuiltInControl as bT, lookupCompatibleControls as bU, lookupControls as bV, lookupPrimaryControl as bW, parseUserMeta as bX, parseFileMeta as ba, parseRelationMeta as bb, platformAttributes as bc, resolveOptions as bd, type ArrayAttributeMeta as be, type AttributeForLookup as bf, type AttributeMeta as bg, BUILT_IN_CONTROLS as bh, type BuiltInControlSlug as bi, type ColumnElement as bj, type CommonProps as bk, type ComponentElement as bl, type ControlBucket as bm, type DatetimeAttributeMeta as bn, type DatetimeFormat as bo, type DividerElement as bp, type EnumAttributeMeta as bq, type EnumValue as br, type FieldElement as bs, FileAttributeMetaSchema as bt, type LayoutAlign as bu, type LayoutElement as bv, LayoutElementSchema as bw, LayoutElementType as bx, type LayoutGap as by, type LayoutJustify as bz, ProteosClient as c, type App as d, AppSchema as e, type AppService as f, AttributeSchema as g, type AttributeType as h, AuditFieldsSchema as i, type Column as j, ColumnSchema as k, type ComparisonOperator as l, type Component as m, ComponentSchema as n, type ComponentService as o, type CreateAppRequest as p, type CreateComponentRequest as q, type CreateEntityRequest as r, type CreateListRequest as s, type CreateListViewRequest as t, type CreateMenuConfigurationRequest as u, type CreatePageRequest as v, type CreateVariableRequest as w, type CurrencyAttributeMeta as x, CurrencyAttributeMetaSchema as y, type CurrencySymbolSide as z };
|