@milaboratories/pl-model-middle-layer 1.2.16 → 1.2.18

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.
Files changed (58) hide show
  1. package/dist/author_marker.d.ts +10 -0
  2. package/dist/author_marker.d.ts.map +1 -0
  3. package/dist/block_meta/block_components.d.ts +277 -0
  4. package/dist/block_meta/block_components.d.ts.map +1 -0
  5. package/dist/block_meta/block_pack_id.d.ts +29 -0
  6. package/dist/block_meta/block_pack_id.d.ts.map +1 -0
  7. package/dist/block_meta/common.d.ts +3 -0
  8. package/dist/block_meta/common.d.ts.map +1 -0
  9. package/dist/block_meta/content_conversion.d.ts +3 -0
  10. package/dist/block_meta/content_conversion.d.ts.map +1 -0
  11. package/dist/block_meta/content_types.d.ts +478 -0
  12. package/dist/block_meta/content_types.d.ts.map +1 -0
  13. package/dist/block_meta/index.d.ts +1669 -0
  14. package/dist/block_meta/index.d.ts.map +1 -0
  15. package/dist/block_meta/meta.d.ts +656 -0
  16. package/dist/block_meta/meta.d.ts.map +1 -0
  17. package/dist/block_meta/semver.d.ts +3 -0
  18. package/dist/block_meta/semver.d.ts.map +1 -0
  19. package/dist/block_pack.d.ts +24 -0
  20. package/dist/block_pack.d.ts.map +1 -0
  21. package/dist/block_state.d.ts +9 -0
  22. package/dist/block_state.d.ts.map +1 -0
  23. package/dist/index.d.ts +9 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +1 -209
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +213 -0
  28. package/dist/index.mjs.map +1 -0
  29. package/dist/pframe/index.d.ts +2 -0
  30. package/dist/pframe/index.d.ts.map +1 -0
  31. package/dist/pframe/internal_api/api_factory.d.ts +52 -0
  32. package/dist/pframe/internal_api/api_factory.d.ts.map +1 -0
  33. package/dist/pframe/internal_api/api_read.d.ts +28 -0
  34. package/dist/pframe/internal_api/api_read.d.ts.map +1 -0
  35. package/dist/pframe/internal_api/common.d.ts +19 -0
  36. package/dist/pframe/internal_api/common.d.ts.map +1 -0
  37. package/dist/pframe/internal_api/create_table.d.ts +26 -0
  38. package/dist/pframe/internal_api/create_table.d.ts.map +1 -0
  39. package/dist/pframe/internal_api/delete_column.d.ts +10 -0
  40. package/dist/pframe/internal_api/delete_column.d.ts.map +1 -0
  41. package/dist/pframe/internal_api/find_columns.d.ts +23 -0
  42. package/dist/pframe/internal_api/find_columns.d.ts.map +1 -0
  43. package/dist/pframe/internal_api/index.d.ts +9 -0
  44. package/dist/pframe/internal_api/index.d.ts.map +1 -0
  45. package/dist/pframe/internal_api/pframe.d.ts +4 -0
  46. package/dist/pframe/internal_api/pframe.d.ts.map +1 -0
  47. package/dist/pframe/internal_api/table.d.ts +37 -0
  48. package/dist/pframe/internal_api/table.d.ts.map +1 -0
  49. package/dist/project.d.ts +5 -0
  50. package/dist/project.d.ts.map +1 -0
  51. package/dist/project_list.d.ts +17 -0
  52. package/dist/project_list.d.ts.map +1 -0
  53. package/dist/project_overview.d.ts +103 -0
  54. package/dist/project_overview.d.ts.map +1 -0
  55. package/package.json +13 -10
  56. package/src/block_meta/index.ts +27 -21
  57. package/dist/index.cjs +0 -249
  58. package/dist/index.cjs.map +0 -1
@@ -0,0 +1,10 @@
1
+ /** Structure to help resolve conflicts if multiple participants writes to
2
+ * the same state */
3
+ export interface AuthorMarker {
4
+ /** Unique identifier of client or even a specific window that sets this
5
+ * particular state */
6
+ authorId: string;
7
+ /** Sequential version of the state local to the author */
8
+ localVersion: number;
9
+ }
10
+ //# sourceMappingURL=author_marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"author_marker.d.ts","sourceRoot":"","sources":["../src/author_marker.ts"],"names":[],"mappings":"AAAA;oBACoB;AACpB,MAAM,WAAW,YAAY;IAC3B;0BACsB;IACtB,QAAQ,EAAE,MAAM,CAAC;IAEjB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,277 @@
1
+ import { z } from 'zod';
2
+ export type BlockPackComponents = {};
3
+ export declare function Workflow<const Content extends z.ZodTypeAny>(contentType: Content): z.ZodUnion<[z.ZodEffects<Content, {
4
+ type: string;
5
+ main: any;
6
+ }, z.input<Content>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7
+ type: z.ZodLiteral<"workflow-v1">;
8
+ main: Content;
9
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
10
+ type: z.ZodLiteral<"workflow-v1">;
11
+ main: Content;
12
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
13
+ type: z.ZodLiteral<"workflow-v1">;
14
+ main: Content;
15
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
16
+ type: z.ZodLiteral<"workflow-v1">;
17
+ main: Content;
18
+ }>]: z.baseObjectInputType<{
19
+ type: z.ZodLiteral<"workflow-v1">;
20
+ main: Content;
21
+ }>[k_1]; }>]>]>;
22
+ export declare function BlockComponents<const WfAndModel extends z.ZodTypeAny, const UI extends z.ZodTypeAny>(wfAndModel: WfAndModel, ui: UI): z.ZodObject<{
23
+ workflow: WfAndModel;
24
+ model: WfAndModel;
25
+ ui: UI;
26
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
27
+ workflow: WfAndModel;
28
+ model: WfAndModel;
29
+ ui: UI;
30
+ }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
31
+ workflow: WfAndModel;
32
+ model: WfAndModel;
33
+ ui: UI;
34
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
35
+ workflow: WfAndModel;
36
+ model: WfAndModel;
37
+ ui: UI;
38
+ }>]: z.baseObjectInputType<{
39
+ workflow: WfAndModel;
40
+ model: WfAndModel;
41
+ ui: UI;
42
+ }>[k_1]; }>;
43
+ export declare const BlockComponentsDescriptionRaw: z.ZodObject<{
44
+ workflow: z.ZodString;
45
+ model: z.ZodString;
46
+ ui: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ ui: string;
49
+ workflow: string;
50
+ model: string;
51
+ }, {
52
+ ui: string;
53
+ workflow: string;
54
+ model: string;
55
+ }>;
56
+ export type BlockComponentsDescriptionRaw = z.infer<typeof BlockComponentsDescriptionRaw>;
57
+ export declare const BlockComponentsManifest: z.ZodObject<{
58
+ workflow: z.ZodObject<{
59
+ type: z.ZodLiteral<"relative">;
60
+ path: z.ZodString;
61
+ }, "strict", z.ZodTypeAny, {
62
+ type: "relative";
63
+ path: string;
64
+ }, {
65
+ type: "relative";
66
+ path: string;
67
+ }>;
68
+ model: z.ZodObject<{
69
+ type: z.ZodLiteral<"relative">;
70
+ path: z.ZodString;
71
+ }, "strict", z.ZodTypeAny, {
72
+ type: "relative";
73
+ path: string;
74
+ }, {
75
+ type: "relative";
76
+ path: string;
77
+ }>;
78
+ ui: z.ZodObject<{
79
+ type: z.ZodLiteral<"relative">;
80
+ path: z.ZodString;
81
+ }, "strict", z.ZodTypeAny, {
82
+ type: "relative";
83
+ path: string;
84
+ }, {
85
+ type: "relative";
86
+ path: string;
87
+ }>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ ui: {
90
+ type: "relative";
91
+ path: string;
92
+ };
93
+ workflow: {
94
+ type: "relative";
95
+ path: string;
96
+ };
97
+ model: {
98
+ type: "relative";
99
+ path: string;
100
+ };
101
+ }, {
102
+ ui: {
103
+ type: "relative";
104
+ path: string;
105
+ };
106
+ workflow: {
107
+ type: "relative";
108
+ path: string;
109
+ };
110
+ model: {
111
+ type: "relative";
112
+ path: string;
113
+ };
114
+ }>;
115
+ export type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;
116
+ export declare function BlockComponentsAbsoluteUrl(prefix: string): z.ZodObject<{
117
+ workflow: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
118
+ type: z.ZodLiteral<"explicit-base64">;
119
+ mimeType: z.ZodString;
120
+ content: z.ZodString;
121
+ }, "strict", z.ZodTypeAny, {
122
+ type: "explicit-base64";
123
+ content: string;
124
+ mimeType: string;
125
+ }, {
126
+ type: "explicit-base64";
127
+ content: string;
128
+ mimeType: string;
129
+ }>, z.ZodObject<{
130
+ type: z.ZodLiteral<"relative">;
131
+ path: z.ZodString;
132
+ }, "strict", z.ZodTypeAny, {
133
+ type: "relative";
134
+ path: string;
135
+ }, {
136
+ type: "relative";
137
+ path: string;
138
+ }>]>, {
139
+ type: "explicit-base64";
140
+ content: string;
141
+ mimeType: string;
142
+ } | {
143
+ type: "absolute-url";
144
+ url: string;
145
+ }, {
146
+ type: "explicit-base64";
147
+ content: string;
148
+ mimeType: string;
149
+ } | {
150
+ type: "relative";
151
+ path: string;
152
+ }>;
153
+ model: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
154
+ type: z.ZodLiteral<"explicit-base64">;
155
+ mimeType: z.ZodString;
156
+ content: z.ZodString;
157
+ }, "strict", z.ZodTypeAny, {
158
+ type: "explicit-base64";
159
+ content: string;
160
+ mimeType: string;
161
+ }, {
162
+ type: "explicit-base64";
163
+ content: string;
164
+ mimeType: string;
165
+ }>, z.ZodObject<{
166
+ type: z.ZodLiteral<"relative">;
167
+ path: z.ZodString;
168
+ }, "strict", z.ZodTypeAny, {
169
+ type: "relative";
170
+ path: string;
171
+ }, {
172
+ type: "relative";
173
+ path: string;
174
+ }>]>, {
175
+ type: "explicit-base64";
176
+ content: string;
177
+ mimeType: string;
178
+ } | {
179
+ type: "absolute-url";
180
+ url: string;
181
+ }, {
182
+ type: "explicit-base64";
183
+ content: string;
184
+ mimeType: string;
185
+ } | {
186
+ type: "relative";
187
+ path: string;
188
+ }>;
189
+ ui: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
190
+ type: z.ZodLiteral<"explicit-base64">;
191
+ mimeType: z.ZodString;
192
+ content: z.ZodString;
193
+ }, "strict", z.ZodTypeAny, {
194
+ type: "explicit-base64";
195
+ content: string;
196
+ mimeType: string;
197
+ }, {
198
+ type: "explicit-base64";
199
+ content: string;
200
+ mimeType: string;
201
+ }>, z.ZodObject<{
202
+ type: z.ZodLiteral<"relative">;
203
+ path: z.ZodString;
204
+ }, "strict", z.ZodTypeAny, {
205
+ type: "relative";
206
+ path: string;
207
+ }, {
208
+ type: "relative";
209
+ path: string;
210
+ }>]>, {
211
+ type: "explicit-base64";
212
+ content: string;
213
+ mimeType: string;
214
+ } | {
215
+ type: "absolute-url";
216
+ url: string;
217
+ }, {
218
+ type: "explicit-base64";
219
+ content: string;
220
+ mimeType: string;
221
+ } | {
222
+ type: "relative";
223
+ path: string;
224
+ }>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ ui: {
227
+ type: "explicit-base64";
228
+ content: string;
229
+ mimeType: string;
230
+ } | {
231
+ type: "absolute-url";
232
+ url: string;
233
+ };
234
+ workflow: {
235
+ type: "explicit-base64";
236
+ content: string;
237
+ mimeType: string;
238
+ } | {
239
+ type: "absolute-url";
240
+ url: string;
241
+ };
242
+ model: {
243
+ type: "explicit-base64";
244
+ content: string;
245
+ mimeType: string;
246
+ } | {
247
+ type: "absolute-url";
248
+ url: string;
249
+ };
250
+ }, {
251
+ ui: {
252
+ type: "explicit-base64";
253
+ content: string;
254
+ mimeType: string;
255
+ } | {
256
+ type: "relative";
257
+ path: string;
258
+ };
259
+ workflow: {
260
+ type: "explicit-base64";
261
+ content: string;
262
+ mimeType: string;
263
+ } | {
264
+ type: "relative";
265
+ path: string;
266
+ };
267
+ model: {
268
+ type: "explicit-base64";
269
+ content: string;
270
+ mimeType: string;
271
+ } | {
272
+ type: "relative";
273
+ path: string;
274
+ };
275
+ }>;
276
+ export type BlockComponentsAbsolute = z.infer<ReturnType<typeof BlockComponentsAbsoluteUrl>>;
277
+ //# sourceMappingURL=block_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block_components.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAErC,wBAAgB,QAAQ,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO;;;;;;;;;;;;;;;;;;gBAehF;AAED,wBAAgB,eAAe,CAC7B,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,UAAU,EACrC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,UAAU,EAC7B,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;;;;;;;;;;;;;;;;;;;;YAM/B;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAA0C,CAAC;AACrF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE1F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACzF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKxD;AACD,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ /** Global identifier of the block */
3
+ export declare const BlockPackId: z.ZodObject<{
4
+ organization: z.ZodString;
5
+ name: z.ZodString;
6
+ version: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ organization: string;
9
+ name: string;
10
+ version: string;
11
+ }, {
12
+ organization: string;
13
+ name: string;
14
+ version: string;
15
+ }>;
16
+ export type BlockPackId = z.infer<typeof BlockPackId>;
17
+ export declare const BlockPackIdNoVersion: z.ZodObject<Omit<{
18
+ organization: z.ZodString;
19
+ name: z.ZodString;
20
+ version: z.ZodString;
21
+ }, "version">, "strict", z.ZodTypeAny, {
22
+ organization: string;
23
+ name: string;
24
+ }, {
25
+ organization: string;
26
+ name: string;
27
+ }>;
28
+ export type BlockPackIdNoVersion = z.infer<typeof BlockPackIdNoVersion>;
29
+ //# sourceMappingURL=block_pack_id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block_pack_id.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_pack_id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,qCAAqC;AACrC,eAAO,MAAM,WAAW;;;;;;;;;;;;EAMb,CAAC;AACZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,oBAAoB;;;;;;;;;;EAAsC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type ContextType = 'local' | 'remote';
2
+ export type ContentType = 'text' | 'binary';
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/block_meta/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ContentAbsoluteUrl, ContentAnyLocal, ContentRelative } from './content_types';
2
+ export declare function mapRemoteToAbsolute(rootUrl: string): <T extends ContentAnyLocal>(value: T) => Exclude<T, ContentRelative> | ContentAbsoluteUrl;
3
+ //# sourceMappingURL=content_conversion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content_conversion.d.ts","sourceRoot":"","sources":["../../src/block_meta/content_conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GACd,CAAC,CAAC,SAAS,eAAe,EAC3B,KAAK,EAAE,CAAC,KACL,OAAO,CAAC,CAAC,EAAE,eAAe,CAAC,GAAG,kBAAkB,CAMpD"}