@proteos/sdk 0.26.2 → 0.27.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.
@@ -1,216 +1,216 @@
1
1
  'use strict';
2
2
 
3
- var chunk4TXXJ47A_cjs = require('../chunk-4TXXJ47A.cjs');
3
+ var chunkNVMOW4XC_cjs = require('../chunk-NVMOW4XC.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AppSchema", {
8
8
  enumerable: true,
9
- get: function () { return chunk4TXXJ47A_cjs.AppSchema; }
9
+ get: function () { return chunkNVMOW4XC_cjs.AppSchema; }
10
10
  });
11
11
  Object.defineProperty(exports, "AttributeSchema", {
12
12
  enumerable: true,
13
- get: function () { return chunk4TXXJ47A_cjs.AttributeSchema; }
13
+ get: function () { return chunkNVMOW4XC_cjs.AttributeSchema; }
14
14
  });
15
15
  Object.defineProperty(exports, "BUILT_IN_CONTROLS", {
16
16
  enumerable: true,
17
- get: function () { return chunk4TXXJ47A_cjs.BUILT_IN_CONTROLS; }
17
+ get: function () { return chunkNVMOW4XC_cjs.BUILT_IN_CONTROLS; }
18
18
  });
19
19
  Object.defineProperty(exports, "ColumnSchema", {
20
20
  enumerable: true,
21
- get: function () { return chunk4TXXJ47A_cjs.ColumnSchema; }
21
+ get: function () { return chunkNVMOW4XC_cjs.ColumnSchema; }
22
22
  });
23
23
  Object.defineProperty(exports, "ComponentSchema", {
24
24
  enumerable: true,
25
- get: function () { return chunk4TXXJ47A_cjs.ComponentSchema; }
25
+ get: function () { return chunkNVMOW4XC_cjs.ComponentSchema; }
26
26
  });
27
27
  Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
28
28
  enumerable: true,
29
- get: function () { return chunk4TXXJ47A_cjs.CurrencyAttributeMetaSchema; }
29
+ get: function () { return chunkNVMOW4XC_cjs.CurrencyAttributeMetaSchema; }
30
30
  });
31
31
  Object.defineProperty(exports, "DesignReferenceSchema", {
32
32
  enumerable: true,
33
- get: function () { return chunk4TXXJ47A_cjs.DesignReferenceSchema; }
33
+ get: function () { return chunkNVMOW4XC_cjs.DesignReferenceSchema; }
34
34
  });
35
35
  Object.defineProperty(exports, "EntitySchema", {
36
36
  enumerable: true,
37
- get: function () { return chunk4TXXJ47A_cjs.EntitySchema; }
37
+ get: function () { return chunkNVMOW4XC_cjs.EntitySchema; }
38
38
  });
39
39
  Object.defineProperty(exports, "EntityWithSchemaSchema", {
40
40
  enumerable: true,
41
- get: function () { return chunk4TXXJ47A_cjs.EntityWithSchemaSchema; }
41
+ get: function () { return chunkNVMOW4XC_cjs.EntityWithSchemaSchema; }
42
42
  });
43
43
  Object.defineProperty(exports, "FileAttributeMetaSchema", {
44
44
  enumerable: true,
45
- get: function () { return chunk4TXXJ47A_cjs.FileAttributeMetaSchema; }
45
+ get: function () { return chunkNVMOW4XC_cjs.FileAttributeMetaSchema; }
46
46
  });
47
47
  Object.defineProperty(exports, "FilterElementSchema", {
48
48
  enumerable: true,
49
- get: function () { return chunk4TXXJ47A_cjs.FilterElementSchema; }
49
+ get: function () { return chunkNVMOW4XC_cjs.FilterElementSchema; }
50
50
  });
51
51
  Object.defineProperty(exports, "FilterGroupSchema", {
52
52
  enumerable: true,
53
- get: function () { return chunk4TXXJ47A_cjs.FilterGroupSchema; }
53
+ get: function () { return chunkNVMOW4XC_cjs.FilterGroupSchema; }
54
54
  });
55
55
  Object.defineProperty(exports, "LayoutElementSchema", {
56
56
  enumerable: true,
57
- get: function () { return chunk4TXXJ47A_cjs.LayoutElementSchema; }
57
+ get: function () { return chunkNVMOW4XC_cjs.LayoutElementSchema; }
58
58
  });
59
59
  Object.defineProperty(exports, "LayoutElementType", {
60
60
  enumerable: true,
61
- get: function () { return chunk4TXXJ47A_cjs.LayoutElementType; }
61
+ get: function () { return chunkNVMOW4XC_cjs.LayoutElementType; }
62
62
  });
63
63
  Object.defineProperty(exports, "ListSchema", {
64
64
  enumerable: true,
65
- get: function () { return chunk4TXXJ47A_cjs.ListSchema; }
65
+ get: function () { return chunkNVMOW4XC_cjs.ListSchema; }
66
66
  });
67
67
  Object.defineProperty(exports, "ListViewSchema", {
68
68
  enumerable: true,
69
- get: function () { return chunk4TXXJ47A_cjs.ListViewSchema; }
69
+ get: function () { return chunkNVMOW4XC_cjs.ListViewSchema; }
70
70
  });
71
71
  Object.defineProperty(exports, "MenuConfigurationSchema", {
72
72
  enumerable: true,
73
- get: function () { return chunk4TXXJ47A_cjs.MenuConfigurationSchema; }
73
+ get: function () { return chunkNVMOW4XC_cjs.MenuConfigurationSchema; }
74
74
  });
75
75
  Object.defineProperty(exports, "MenuItemSchema", {
76
76
  enumerable: true,
77
- get: function () { return chunk4TXXJ47A_cjs.MenuItemSchema; }
77
+ get: function () { return chunkNVMOW4XC_cjs.MenuItemSchema; }
78
78
  });
79
79
  Object.defineProperty(exports, "MenuItemType", {
80
80
  enumerable: true,
81
- get: function () { return chunk4TXXJ47A_cjs.MenuItemType; }
81
+ get: function () { return chunkNVMOW4XC_cjs.MenuItemType; }
82
82
  });
83
83
  Object.defineProperty(exports, "MetaClient", {
84
84
  enumerable: true,
85
- get: function () { return chunk4TXXJ47A_cjs.MetaClient; }
85
+ get: function () { return chunkNVMOW4XC_cjs.MetaClient; }
86
86
  });
87
87
  Object.defineProperty(exports, "ModuleSchema", {
88
88
  enumerable: true,
89
- get: function () { return chunk4TXXJ47A_cjs.ModuleSchema; }
89
+ get: function () { return chunkNVMOW4XC_cjs.ModuleSchema; }
90
90
  });
91
91
  Object.defineProperty(exports, "OnDeleteActionSchema", {
92
92
  enumerable: true,
93
- get: function () { return chunk4TXXJ47A_cjs.OnDeleteActionSchema; }
93
+ get: function () { return chunkNVMOW4XC_cjs.OnDeleteActionSchema; }
94
94
  });
95
95
  Object.defineProperty(exports, "PAGE_BACKGROUND_TOKENS", {
96
96
  enumerable: true,
97
- get: function () { return chunk4TXXJ47A_cjs.PAGE_BACKGROUND_TOKENS; }
97
+ get: function () { return chunkNVMOW4XC_cjs.PAGE_BACKGROUND_TOKENS; }
98
98
  });
99
99
  Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
100
100
  enumerable: true,
101
- get: function () { return chunk4TXXJ47A_cjs.PLATFORM_ATTRIBUTE_NAMES; }
101
+ get: function () { return chunkNVMOW4XC_cjs.PLATFORM_ATTRIBUTE_NAMES; }
102
102
  });
103
103
  Object.defineProperty(exports, "PageActionSchema", {
104
104
  enumerable: true,
105
- get: function () { return chunk4TXXJ47A_cjs.PageActionSchema; }
105
+ get: function () { return chunkNVMOW4XC_cjs.PageActionSchema; }
106
106
  });
107
107
  Object.defineProperty(exports, "PageLayoutSchema", {
108
108
  enumerable: true,
109
- get: function () { return chunk4TXXJ47A_cjs.PageLayoutSchema; }
109
+ get: function () { return chunkNVMOW4XC_cjs.PageLayoutSchema; }
110
110
  });
111
111
  Object.defineProperty(exports, "PageLayoutSidePanelSchema", {
112
112
  enumerable: true,
113
- get: function () { return chunk4TXXJ47A_cjs.PageLayoutSidePanelSchema; }
113
+ get: function () { return chunkNVMOW4XC_cjs.PageLayoutSidePanelSchema; }
114
114
  });
115
115
  Object.defineProperty(exports, "PageSchema", {
116
116
  enumerable: true,
117
- get: function () { return chunk4TXXJ47A_cjs.PageSchema; }
117
+ get: function () { return chunkNVMOW4XC_cjs.PageSchema; }
118
118
  });
119
119
  Object.defineProperty(exports, "PageStyleSchema", {
120
120
  enumerable: true,
121
- get: function () { return chunk4TXXJ47A_cjs.PageStyleSchema; }
121
+ get: function () { return chunkNVMOW4XC_cjs.PageStyleSchema; }
122
122
  });
123
123
  Object.defineProperty(exports, "RelationAttributeMetaSchema", {
124
124
  enumerable: true,
125
- get: function () { return chunk4TXXJ47A_cjs.RelationAttributeMetaSchema; }
125
+ get: function () { return chunkNVMOW4XC_cjs.RelationAttributeMetaSchema; }
126
126
  });
127
127
  Object.defineProperty(exports, "SizeValueSchema", {
128
128
  enumerable: true,
129
- get: function () { return chunk4TXXJ47A_cjs.SizeValueSchema; }
129
+ get: function () { return chunkNVMOW4XC_cjs.SizeValueSchema; }
130
130
  });
131
131
  Object.defineProperty(exports, "SortConfigSchema", {
132
132
  enumerable: true,
133
- get: function () { return chunk4TXXJ47A_cjs.SortConfigSchema; }
133
+ get: function () { return chunkNVMOW4XC_cjs.SortConfigSchema; }
134
134
  });
135
135
  Object.defineProperty(exports, "UserAttributeMetaSchema", {
136
136
  enumerable: true,
137
- get: function () { return chunk4TXXJ47A_cjs.UserAttributeMetaSchema; }
137
+ get: function () { return chunkNVMOW4XC_cjs.UserAttributeMetaSchema; }
138
138
  });
139
139
  Object.defineProperty(exports, "VariableSchema", {
140
140
  enumerable: true,
141
- get: function () { return chunk4TXXJ47A_cjs.VariableSchema; }
141
+ get: function () { return chunkNVMOW4XC_cjs.VariableSchema; }
142
142
  });
143
143
  Object.defineProperty(exports, "allCurrencyCodes", {
144
144
  enumerable: true,
145
- get: function () { return chunk4TXXJ47A_cjs.allCurrencyCodes; }
145
+ get: function () { return chunkNVMOW4XC_cjs.allCurrencyCodes; }
146
146
  });
147
147
  Object.defineProperty(exports, "currencyLabel", {
148
148
  enumerable: true,
149
- get: function () { return chunk4TXXJ47A_cjs.currencyLabel; }
149
+ get: function () { return chunkNVMOW4XC_cjs.currencyLabel; }
150
150
  });
151
151
  Object.defineProperty(exports, "currencySymbol", {
152
152
  enumerable: true,
153
- get: function () { return chunk4TXXJ47A_cjs.currencySymbol; }
153
+ get: function () { return chunkNVMOW4XC_cjs.currencySymbol; }
154
154
  });
155
155
  Object.defineProperty(exports, "currencySymbolSide", {
156
156
  enumerable: true,
157
- get: function () { return chunk4TXXJ47A_cjs.currencySymbolSide; }
157
+ get: function () { return chunkNVMOW4XC_cjs.currencySymbolSide; }
158
158
  });
159
159
  Object.defineProperty(exports, "formatAmount", {
160
160
  enumerable: true,
161
- get: function () { return chunk4TXXJ47A_cjs.formatAmount; }
161
+ get: function () { return chunkNVMOW4XC_cjs.formatAmount; }
162
162
  });
163
163
  Object.defineProperty(exports, "formatMoney", {
164
164
  enumerable: true,
165
- get: function () { return chunk4TXXJ47A_cjs.formatMoney; }
165
+ get: function () { return chunkNVMOW4XC_cjs.formatMoney; }
166
166
  });
167
167
  Object.defineProperty(exports, "isBuiltInControl", {
168
168
  enumerable: true,
169
- get: function () { return chunk4TXXJ47A_cjs.isBuiltInControl; }
169
+ get: function () { return chunkNVMOW4XC_cjs.isBuiltInControl; }
170
170
  });
171
171
  Object.defineProperty(exports, "isPlatformAttributeName", {
172
172
  enumerable: true,
173
- get: function () { return chunk4TXXJ47A_cjs.isPlatformAttributeName; }
173
+ get: function () { return chunkNVMOW4XC_cjs.isPlatformAttributeName; }
174
174
  });
175
175
  Object.defineProperty(exports, "localeNumberSeparators", {
176
176
  enumerable: true,
177
- get: function () { return chunk4TXXJ47A_cjs.localeNumberSeparators; }
177
+ get: function () { return chunkNVMOW4XC_cjs.localeNumberSeparators; }
178
178
  });
179
179
  Object.defineProperty(exports, "lookupCompatibleControls", {
180
180
  enumerable: true,
181
- get: function () { return chunk4TXXJ47A_cjs.lookupCompatibleControls; }
181
+ get: function () { return chunkNVMOW4XC_cjs.lookupCompatibleControls; }
182
182
  });
183
183
  Object.defineProperty(exports, "lookupControls", {
184
184
  enumerable: true,
185
- get: function () { return chunk4TXXJ47A_cjs.lookupControls; }
185
+ get: function () { return chunkNVMOW4XC_cjs.lookupControls; }
186
186
  });
187
187
  Object.defineProperty(exports, "lookupPrimaryControl", {
188
188
  enumerable: true,
189
- get: function () { return chunk4TXXJ47A_cjs.lookupPrimaryControl; }
189
+ get: function () { return chunkNVMOW4XC_cjs.lookupPrimaryControl; }
190
190
  });
191
191
  Object.defineProperty(exports, "parseAmount", {
192
192
  enumerable: true,
193
- get: function () { return chunk4TXXJ47A_cjs.parseAmount; }
193
+ get: function () { return chunkNVMOW4XC_cjs.parseAmount; }
194
194
  });
195
195
  Object.defineProperty(exports, "parseCurrencyMeta", {
196
196
  enumerable: true,
197
- get: function () { return chunk4TXXJ47A_cjs.parseCurrencyMeta; }
197
+ get: function () { return chunkNVMOW4XC_cjs.parseCurrencyMeta; }
198
198
  });
199
199
  Object.defineProperty(exports, "parseFileMeta", {
200
200
  enumerable: true,
201
- get: function () { return chunk4TXXJ47A_cjs.parseFileMeta; }
201
+ get: function () { return chunkNVMOW4XC_cjs.parseFileMeta; }
202
202
  });
203
203
  Object.defineProperty(exports, "parseRelationMeta", {
204
204
  enumerable: true,
205
- get: function () { return chunk4TXXJ47A_cjs.parseRelationMeta; }
205
+ get: function () { return chunkNVMOW4XC_cjs.parseRelationMeta; }
206
206
  });
207
207
  Object.defineProperty(exports, "parseUserMeta", {
208
208
  enumerable: true,
209
- get: function () { return chunk4TXXJ47A_cjs.parseUserMeta; }
209
+ get: function () { return chunkNVMOW4XC_cjs.parseUserMeta; }
210
210
  });
211
211
  Object.defineProperty(exports, "platformAttributes", {
212
212
  enumerable: true,
213
- get: function () { return chunk4TXXJ47A_cjs.platformAttributes; }
213
+ get: function () { return chunkNVMOW4XC_cjs.platformAttributes; }
214
214
  });
215
215
  //# sourceMappingURL=index.cjs.map
216
216
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-B0LqBATf.cjs';
1
+ export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-BGHMMBHF.cjs';
2
2
  import 'zod';
@@ -1,2 +1,2 @@
1
- export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-B0LqBATf.js';
1
+ export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-BGHMMBHF.js';
2
2
  import 'zod';
@@ -1,3 +1,3 @@
1
- export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, 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-YMRMKSZL.js';
1
+ export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, 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-WK6KEEKM.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -362,13 +362,16 @@ declare const PLATFORM_USER_ID = "platform";
362
362
  /**
363
363
  * A reference to a stored file — the value stored by every `file` attribute.
364
364
  * `id` is the storage-service file id; `name` is the denormalised filename the
365
- * record carries so it has a human label without a storage round-trip. Size and
365
+ * record carries so it has a human label without a storage round-trip.
366
+ * `content_type` is an optional denormalised MIME hint so renderers can pick a
367
+ * viewer without a storage round-trip; when absent (legacy values), size and
366
368
  * content type are resolved from the storage-service by `id` on read. Mirrors
367
369
  * the backend's `common.FileRef`.
368
370
  */
369
371
  interface FileRef {
370
372
  id: string;
371
373
  name: string;
374
+ content_type?: string;
372
375
  }
373
376
  /**
374
377
  * Zod schema for a FileRef value.
@@ -376,12 +379,15 @@ interface FileRef {
376
379
  declare const FileRefSchema: z.ZodObject<{
377
380
  id: z.ZodString;
378
381
  name: z.ZodString;
382
+ content_type: z.ZodOptional<z.ZodString>;
379
383
  }, "strip", z.ZodTypeAny, {
380
384
  id: string;
381
385
  name: string;
386
+ content_type?: string | undefined;
382
387
  }, {
383
388
  id: string;
384
389
  name: string;
390
+ content_type?: string | undefined;
385
391
  }>;
386
392
  /**
387
393
  * Common audit fields for entities. `created_by`/`updated_by` hold a
@@ -362,13 +362,16 @@ declare const PLATFORM_USER_ID = "platform";
362
362
  /**
363
363
  * A reference to a stored file — the value stored by every `file` attribute.
364
364
  * `id` is the storage-service file id; `name` is the denormalised filename the
365
- * record carries so it has a human label without a storage round-trip. Size and
365
+ * record carries so it has a human label without a storage round-trip.
366
+ * `content_type` is an optional denormalised MIME hint so renderers can pick a
367
+ * viewer without a storage round-trip; when absent (legacy values), size and
366
368
  * content type are resolved from the storage-service by `id` on read. Mirrors
367
369
  * the backend's `common.FileRef`.
368
370
  */
369
371
  interface FileRef {
370
372
  id: string;
371
373
  name: string;
374
+ content_type?: string;
372
375
  }
373
376
  /**
374
377
  * Zod schema for a FileRef value.
@@ -376,12 +379,15 @@ interface FileRef {
376
379
  declare const FileRefSchema: z.ZodObject<{
377
380
  id: z.ZodString;
378
381
  name: z.ZodString;
382
+ content_type: z.ZodOptional<z.ZodString>;
379
383
  }, "strip", z.ZodTypeAny, {
380
384
  id: string;
381
385
  name: string;
386
+ content_type?: string | undefined;
382
387
  }, {
383
388
  id: string;
384
389
  name: string;
390
+ content_type?: string | undefined;
385
391
  }>;
386
392
  /**
387
393
  * Common audit fields for entities. `created_by`/`updated_by` hold a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteos/sdk",
3
- "version": "0.26.2",
3
+ "version": "0.27.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "TypeScript SDK for the Proteos platform",
6
6
  "repository": {
@@ -23,7 +23,8 @@
23
23
  "user-picker",
24
24
  "currency",
25
25
  "knowledge-text",
26
- "file"
26
+ "file",
27
+ "file-viewer"
27
28
  ],
28
29
  "controls": {
29
30
  "string": {
@@ -65,6 +66,6 @@
65
66
  "user": { "primary": "user-picker", "compatible": ["user-picker"] },
66
67
  "currency": { "primary": "currency", "compatible": ["currency"] },
67
68
  "knowledge-text": { "primary": "knowledge-text", "compatible": ["knowledge-text"] },
68
- "file": { "primary": "file", "compatible": ["file"] }
69
+ "file": { "primary": "file", "compatible": ["file", "file-viewer"] }
69
70
  }
70
71
  }
@@ -40,11 +40,15 @@ export interface FileService {
40
40
  create(metadata: CreateFileMetadata): Promise<StorageFile>
41
41
 
42
42
  /**
43
- * Updates a file's metadata (name, `public_access`). Only the fields present
44
- * in `metadata` are changed. Setting `public_access: ["read"]` exposes the
45
- * file on the UNAUTHENTICATED public download route; `[]` revokes it.
43
+ * Updates a file's metadata (name, `public_access`) and, when `file` is
44
+ * given, replaces the bytes IN PLACE a new version under the SAME id, so
45
+ * every `FileRef { id }` pointing at it now resolves to the new content.
46
+ * Only the metadata fields present are changed. Setting
47
+ * `public_access: ["read"]` exposes the file on the UNAUTHENTICATED public
48
+ * download route; `[]` revokes it. Replacing a locked file is rejected by
49
+ * the storage-service.
46
50
  */
47
- update(id: string, metadata: UpdateFileMetadata): Promise<StorageFile>
51
+ update(id: string, metadata: UpdateFileMetadata, file?: File): Promise<StorageFile>
48
52
 
49
53
  /**
50
54
  * Mints a short-lived upload URL for a file. The bytes are PUT directly to this URL
@@ -157,12 +161,16 @@ export class FileServiceImpl implements FileService {
157
161
  return response.data
158
162
  }
159
163
 
160
- async update(id: string, metadata: UpdateFileMetadata): Promise<StorageFile> {
164
+ async update(id: string, metadata: UpdateFileMetadata, file?: File): Promise<StorageFile> {
165
+ // Part order is load-bearing: the storage-service reads `metadata` first
166
+ // and stops consuming parts at `file` — metadata appended after the file
167
+ // part would be silently dropped.
161
168
  const formData = new FormData()
162
169
  formData.append(
163
170
  'metadata',
164
171
  new Blob([JSON.stringify(metadata)], { type: 'application/json' }),
165
172
  )
173
+ if (file) formData.append('file', file, metadata.name ?? file.name)
166
174
  const response = await this.client.requestMultipart<{ data: StorageFile }>(
167
175
  'PATCH',
168
176
  `${FILES_BASE_PATH}/${id}`,
@@ -103,13 +103,16 @@ export const PLATFORM_USER_ID = 'platform'
103
103
  /**
104
104
  * A reference to a stored file — the value stored by every `file` attribute.
105
105
  * `id` is the storage-service file id; `name` is the denormalised filename the
106
- * record carries so it has a human label without a storage round-trip. Size and
106
+ * record carries so it has a human label without a storage round-trip.
107
+ * `content_type` is an optional denormalised MIME hint so renderers can pick a
108
+ * viewer without a storage round-trip; when absent (legacy values), size and
107
109
  * content type are resolved from the storage-service by `id` on read. Mirrors
108
110
  * the backend's `common.FileRef`.
109
111
  */
110
112
  export interface FileRef {
111
113
  id: string
112
114
  name: string
115
+ content_type?: string
113
116
  }
114
117
 
115
118
  /**
@@ -118,6 +121,8 @@ export interface FileRef {
118
121
  export const FileRefSchema = z.object({
119
122
  id: z.string(),
120
123
  name: z.string(),
124
+ // Mirrors the server-side validator: when present, must be non-empty.
125
+ content_type: z.string().min(1).optional(),
121
126
  })
122
127
 
123
128
  /**