@medyll/idae-machine 0.87.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/README.md +230 -0
- package/dist/db/dataModel.d.ts +23 -0
- package/dist/db/dataModel.js +40 -0
- package/dist/db/dbFields.d.ts +130 -0
- package/dist/db/dbFields.js +606 -0
- package/dist/db/dbSchema.d.ts +456 -0
- package/dist/db/dbSchema.js +456 -0
- package/dist/form/CollectionButton.svelte +26 -0
- package/dist/form/CollectionButton.svelte.d.ts +22 -0
- package/dist/form/CollectionFieldGuess.svelte +29 -0
- package/dist/form/CollectionFieldGuess.svelte.d.ts +11 -0
- package/dist/form/CollectionFks.svelte +24 -0
- package/dist/form/CollectionFks.svelte.d.ts +9 -0
- package/dist/form/CollectionList.svelte +93 -0
- package/dist/form/CollectionList.svelte.d.ts +30 -0
- package/dist/form/CollectionListMenu.svelte +46 -0
- package/dist/form/CollectionListMenu.svelte.d.ts +27 -0
- package/dist/form/CollectionReverseFks.svelte +56 -0
- package/dist/form/CollectionReverseFks.svelte.d.ts +18 -0
- package/dist/form/CreateUpdate.svelte +191 -0
- package/dist/form/CreateUpdate.svelte.d.ts +20 -0
- package/dist/form/CrudZone.svelte +23 -0
- package/dist/form/CrudZone.svelte.d.ts +22 -0
- package/dist/form/DataProvider.svelte +20 -0
- package/dist/form/DataProvider.svelte.d.ts +9 -0
- package/dist/form/FieldInPlace.svelte +49 -0
- package/dist/form/FieldInPlace.svelte.d.ts +11 -0
- package/dist/form/FieldValue.svelte +213 -0
- package/dist/form/FieldValue.svelte.d.ts +28 -0
- package/dist/form/types.d.ts +17 -0
- package/dist/form/types.js +1 -0
- package/dist/fragments/Confirm.svelte +58 -0
- package/dist/fragments/Confirm.svelte.d.ts +11 -0
- package/dist/fragments/Frame.svelte +19 -0
- package/dist/fragments/Frame.svelte.d.ts +32 -0
- package/dist/fragments/InfoLine.svelte +21 -0
- package/dist/fragments/InfoLine.svelte.d.ts +35 -0
- package/dist/fragments/List.svelte +21 -0
- package/dist/fragments/List.svelte.d.ts +38 -0
- package/dist/fragments/Selector.svelte +26 -0
- package/dist/fragments/Selector.svelte.d.ts +38 -0
- package/dist/fragments/Skeleton.svelte +21 -0
- package/dist/fragments/Skeleton.svelte.d.ts +20 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +23 -0
- package/dist/types/appschemeTypes.d.ts +71 -0
- package/dist/types/appschemeTypes.js +83 -0
- package/package.json +63 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import type { DbCharacterLink, DBAgent, DbAgentOf, DbAgentPrompt, DbBook, DbBookPrompts, DbCategory, DbChapter, DbCharacter, DbCharacterChapterStatus, DbChat, DbTags, DbWritingGoal, PromptType, DbSpaces } from '$types/db';
|
|
2
|
+
import type { DBMessage } from '$types/db';
|
|
3
|
+
import type { SettingsType } from '$types/settings.js';
|
|
4
|
+
import type { UserType } from '$types/user';
|
|
5
|
+
import { type IdbqModel } from '@medyll/idae-idbql';
|
|
6
|
+
import type { DbDataModelTs } from './dataModel.js';
|
|
7
|
+
export declare const schemeModelDb: {
|
|
8
|
+
agent: {
|
|
9
|
+
keyPath: string;
|
|
10
|
+
model: DBAgent;
|
|
11
|
+
ts: DBAgent;
|
|
12
|
+
template: {
|
|
13
|
+
index: string;
|
|
14
|
+
presentation: string;
|
|
15
|
+
fields: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
code: string;
|
|
19
|
+
model: string;
|
|
20
|
+
prompt: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
ia_lock: string;
|
|
23
|
+
agentPromptId: string;
|
|
24
|
+
};
|
|
25
|
+
fks: {
|
|
26
|
+
agentPrompt: {
|
|
27
|
+
code: string;
|
|
28
|
+
rules: string;
|
|
29
|
+
multiple: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
agentPrompt: {
|
|
35
|
+
keyPath: string;
|
|
36
|
+
model: DbAgentPrompt;
|
|
37
|
+
ts: DbAgentPrompt;
|
|
38
|
+
template: {
|
|
39
|
+
index: string;
|
|
40
|
+
presentation: string;
|
|
41
|
+
fields: {
|
|
42
|
+
id: string;
|
|
43
|
+
created_at: string;
|
|
44
|
+
value: string;
|
|
45
|
+
name: string;
|
|
46
|
+
code: string;
|
|
47
|
+
ia_lock: string;
|
|
48
|
+
};
|
|
49
|
+
fks: {};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
agentOf: {
|
|
53
|
+
keyPath: string;
|
|
54
|
+
model: DbAgentOf;
|
|
55
|
+
ts: DbAgentOf;
|
|
56
|
+
template: {
|
|
57
|
+
index: string;
|
|
58
|
+
presentation: string;
|
|
59
|
+
fields: {
|
|
60
|
+
code: string;
|
|
61
|
+
name: string;
|
|
62
|
+
context: string;
|
|
63
|
+
};
|
|
64
|
+
fks: {};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
chat: {
|
|
68
|
+
keyPath: string;
|
|
69
|
+
model: DbChat;
|
|
70
|
+
ts: DbChat;
|
|
71
|
+
template: {
|
|
72
|
+
index: string;
|
|
73
|
+
presentation: string;
|
|
74
|
+
fields: {
|
|
75
|
+
id: string;
|
|
76
|
+
chatId: string;
|
|
77
|
+
chatPassKey: string;
|
|
78
|
+
created_at: string;
|
|
79
|
+
category: string;
|
|
80
|
+
categoryId: string;
|
|
81
|
+
dateLastMessage: string;
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
ia_lock: string;
|
|
85
|
+
spaceId: string;
|
|
86
|
+
};
|
|
87
|
+
fks: {
|
|
88
|
+
space: {
|
|
89
|
+
code: string;
|
|
90
|
+
rules: string;
|
|
91
|
+
multiple: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
category: {
|
|
97
|
+
keyPath: string;
|
|
98
|
+
model: DbCategory;
|
|
99
|
+
ts: DbCategory;
|
|
100
|
+
template: {
|
|
101
|
+
index: string;
|
|
102
|
+
presentation: string;
|
|
103
|
+
fields: {
|
|
104
|
+
id: string;
|
|
105
|
+
code: string;
|
|
106
|
+
name: string;
|
|
107
|
+
ia_lock: string;
|
|
108
|
+
};
|
|
109
|
+
fks: {};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
space: {
|
|
113
|
+
keyPath: string;
|
|
114
|
+
model: DbSpaces;
|
|
115
|
+
ts: DbSpaces;
|
|
116
|
+
template: {
|
|
117
|
+
index: string;
|
|
118
|
+
presentation: string;
|
|
119
|
+
fields: {
|
|
120
|
+
id: string;
|
|
121
|
+
code: string;
|
|
122
|
+
name: string;
|
|
123
|
+
ia_lock: string;
|
|
124
|
+
};
|
|
125
|
+
fks: {};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
tags: {
|
|
129
|
+
keyPath: string;
|
|
130
|
+
model: DbTags;
|
|
131
|
+
ts: DbTags;
|
|
132
|
+
template: {
|
|
133
|
+
index: string;
|
|
134
|
+
presentation: string;
|
|
135
|
+
fields: {
|
|
136
|
+
id: string;
|
|
137
|
+
code: string;
|
|
138
|
+
name: string;
|
|
139
|
+
ia_lock: string;
|
|
140
|
+
};
|
|
141
|
+
fks: {};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
messages: {
|
|
145
|
+
keyPath: string;
|
|
146
|
+
model: DBMessage;
|
|
147
|
+
ts: DBMessage;
|
|
148
|
+
template: {
|
|
149
|
+
index: string;
|
|
150
|
+
presentation: string;
|
|
151
|
+
fields: {
|
|
152
|
+
id: string;
|
|
153
|
+
chatId: string;
|
|
154
|
+
messageId: string;
|
|
155
|
+
created_at: string;
|
|
156
|
+
content: string;
|
|
157
|
+
status: string;
|
|
158
|
+
context: string;
|
|
159
|
+
resume: string;
|
|
160
|
+
model: string;
|
|
161
|
+
ia_lock: string;
|
|
162
|
+
};
|
|
163
|
+
fks: {};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
prompts: {
|
|
167
|
+
keyPath: string;
|
|
168
|
+
model: PromptType;
|
|
169
|
+
ts: PromptType;
|
|
170
|
+
template: {
|
|
171
|
+
index: string;
|
|
172
|
+
presentation: string;
|
|
173
|
+
fields: {
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
code: string;
|
|
177
|
+
value: string;
|
|
178
|
+
created_at: string;
|
|
179
|
+
ia_lock: string;
|
|
180
|
+
};
|
|
181
|
+
fks: {};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
settings: {
|
|
185
|
+
keyPath: string;
|
|
186
|
+
model: SettingsType;
|
|
187
|
+
ts: SettingsType;
|
|
188
|
+
template: {
|
|
189
|
+
index: string;
|
|
190
|
+
presentation: string;
|
|
191
|
+
fields: {
|
|
192
|
+
id: string;
|
|
193
|
+
userId: string;
|
|
194
|
+
created_at: string;
|
|
195
|
+
updated_at: string;
|
|
196
|
+
code: string;
|
|
197
|
+
value: string;
|
|
198
|
+
ia_lock: string;
|
|
199
|
+
};
|
|
200
|
+
fks: {};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
user: {
|
|
204
|
+
keyPath: string;
|
|
205
|
+
model: UserType;
|
|
206
|
+
ts: UserType;
|
|
207
|
+
template: {
|
|
208
|
+
index: string;
|
|
209
|
+
presentation: string;
|
|
210
|
+
fields: {
|
|
211
|
+
id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
color: string;
|
|
214
|
+
created_at: string;
|
|
215
|
+
email: string;
|
|
216
|
+
password: string;
|
|
217
|
+
ia_lock: string;
|
|
218
|
+
};
|
|
219
|
+
fks: {};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
book: {
|
|
223
|
+
keyPath: string;
|
|
224
|
+
model: DbBook;
|
|
225
|
+
ts: DbBook;
|
|
226
|
+
template: {
|
|
227
|
+
index: string;
|
|
228
|
+
presentation: string;
|
|
229
|
+
fields: {
|
|
230
|
+
id: string;
|
|
231
|
+
userId: string;
|
|
232
|
+
title: string;
|
|
233
|
+
description: string;
|
|
234
|
+
created_at: string;
|
|
235
|
+
updated_at: string;
|
|
236
|
+
status: string;
|
|
237
|
+
ia_lock: string;
|
|
238
|
+
};
|
|
239
|
+
fks: {
|
|
240
|
+
user: {
|
|
241
|
+
code: string;
|
|
242
|
+
multiple: boolean;
|
|
243
|
+
rules: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
chapter: {
|
|
249
|
+
keyPath: string;
|
|
250
|
+
model: DbChapter;
|
|
251
|
+
ts: DbChapter;
|
|
252
|
+
template: {
|
|
253
|
+
index: string;
|
|
254
|
+
presentation: string;
|
|
255
|
+
fields: {
|
|
256
|
+
id: string;
|
|
257
|
+
bookId: string;
|
|
258
|
+
title: string;
|
|
259
|
+
content: string;
|
|
260
|
+
order: string;
|
|
261
|
+
created_at: string;
|
|
262
|
+
updated_at: string;
|
|
263
|
+
ia_lock: string;
|
|
264
|
+
};
|
|
265
|
+
fks: {
|
|
266
|
+
book: {
|
|
267
|
+
code: string;
|
|
268
|
+
multiple: boolean;
|
|
269
|
+
rules: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
writingGoal: {
|
|
275
|
+
keyPath: string;
|
|
276
|
+
model: DbWritingGoal;
|
|
277
|
+
ts: DbWritingGoal;
|
|
278
|
+
template: {
|
|
279
|
+
index: string;
|
|
280
|
+
presentation: string;
|
|
281
|
+
fields: {
|
|
282
|
+
id: string;
|
|
283
|
+
userId: string;
|
|
284
|
+
bookId: string;
|
|
285
|
+
description: string;
|
|
286
|
+
targetWordCount: string;
|
|
287
|
+
deadline: string;
|
|
288
|
+
created_at: string;
|
|
289
|
+
updated_at: string;
|
|
290
|
+
ia_lock: string;
|
|
291
|
+
};
|
|
292
|
+
fks: {
|
|
293
|
+
user: {
|
|
294
|
+
code: string;
|
|
295
|
+
multiple: boolean;
|
|
296
|
+
rules: string;
|
|
297
|
+
};
|
|
298
|
+
book: {
|
|
299
|
+
code: string;
|
|
300
|
+
multiple: boolean;
|
|
301
|
+
rules: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
character: {
|
|
307
|
+
keyPath: string;
|
|
308
|
+
model: DbCharacter;
|
|
309
|
+
ts: DbCharacter;
|
|
310
|
+
template: {
|
|
311
|
+
index: string;
|
|
312
|
+
presentation: string;
|
|
313
|
+
fields: {
|
|
314
|
+
id: string;
|
|
315
|
+
bookId: string;
|
|
316
|
+
characterLinkIds: string;
|
|
317
|
+
characterAttributesIds: string;
|
|
318
|
+
firstName: string;
|
|
319
|
+
lastName: string;
|
|
320
|
+
nickname: string;
|
|
321
|
+
age: string;
|
|
322
|
+
gender: string;
|
|
323
|
+
occupation: string;
|
|
324
|
+
role: string;
|
|
325
|
+
description: string;
|
|
326
|
+
backstory: string;
|
|
327
|
+
physicalDescription: string;
|
|
328
|
+
personalityTraits: string;
|
|
329
|
+
goals: string;
|
|
330
|
+
conflicts: string;
|
|
331
|
+
created_at: string;
|
|
332
|
+
updated_at: string;
|
|
333
|
+
ia_lock: string;
|
|
334
|
+
};
|
|
335
|
+
fks: {
|
|
336
|
+
characterAttributes: {
|
|
337
|
+
code: string;
|
|
338
|
+
multiple: boolean;
|
|
339
|
+
rules: string;
|
|
340
|
+
};
|
|
341
|
+
book: {
|
|
342
|
+
code: string;
|
|
343
|
+
multiple: boolean;
|
|
344
|
+
rules: string;
|
|
345
|
+
};
|
|
346
|
+
characterLink: {
|
|
347
|
+
code: string;
|
|
348
|
+
multiple: boolean;
|
|
349
|
+
rules: string;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
characterAttributes: {
|
|
355
|
+
keyPath: string;
|
|
356
|
+
model: DbCharacter;
|
|
357
|
+
ts: DbCharacter;
|
|
358
|
+
template: {
|
|
359
|
+
index: string;
|
|
360
|
+
presentation: string;
|
|
361
|
+
fields: {
|
|
362
|
+
id: string;
|
|
363
|
+
attribute: string;
|
|
364
|
+
name: string;
|
|
365
|
+
created_at: string;
|
|
366
|
+
updated_at: string;
|
|
367
|
+
};
|
|
368
|
+
fks: {};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
characterLink: {
|
|
372
|
+
keyPath: string;
|
|
373
|
+
model: DbCharacterLink;
|
|
374
|
+
ts: DbCharacterLink;
|
|
375
|
+
template: {
|
|
376
|
+
index: string;
|
|
377
|
+
presentation: string;
|
|
378
|
+
fields: {
|
|
379
|
+
id: string;
|
|
380
|
+
characterId: string;
|
|
381
|
+
type: string;
|
|
382
|
+
description: string;
|
|
383
|
+
active: string;
|
|
384
|
+
};
|
|
385
|
+
fks: {
|
|
386
|
+
character: {
|
|
387
|
+
code: string;
|
|
388
|
+
multiple: boolean;
|
|
389
|
+
rules: string;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
characterChapterStatus: {
|
|
395
|
+
keyPath: string;
|
|
396
|
+
model: DbCharacterChapterStatus;
|
|
397
|
+
ts: DbCharacterChapterStatus;
|
|
398
|
+
template: {
|
|
399
|
+
index: string;
|
|
400
|
+
presentation: string;
|
|
401
|
+
fields: {
|
|
402
|
+
id: string;
|
|
403
|
+
characterId: string;
|
|
404
|
+
chapterId: string;
|
|
405
|
+
status: string;
|
|
406
|
+
role: string;
|
|
407
|
+
actions: string;
|
|
408
|
+
development: string;
|
|
409
|
+
notes: string;
|
|
410
|
+
created_at: string;
|
|
411
|
+
updated_at: string;
|
|
412
|
+
};
|
|
413
|
+
fks: {
|
|
414
|
+
character: {
|
|
415
|
+
code: string;
|
|
416
|
+
multiple: boolean;
|
|
417
|
+
rules: string;
|
|
418
|
+
};
|
|
419
|
+
chapter: {
|
|
420
|
+
code: string;
|
|
421
|
+
multiple: boolean;
|
|
422
|
+
rules: string;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
bookPrompts: {
|
|
428
|
+
keyPath: string;
|
|
429
|
+
model: DbBookPrompts;
|
|
430
|
+
ts: DbBookPrompts;
|
|
431
|
+
template: {
|
|
432
|
+
index: string;
|
|
433
|
+
presentation: string;
|
|
434
|
+
fields: {
|
|
435
|
+
id: string;
|
|
436
|
+
bookId: string;
|
|
437
|
+
name: string;
|
|
438
|
+
category: string;
|
|
439
|
+
content: string;
|
|
440
|
+
created_at: string;
|
|
441
|
+
updated_at: string;
|
|
442
|
+
ia_lock: string;
|
|
443
|
+
};
|
|
444
|
+
fks: {
|
|
445
|
+
book: {
|
|
446
|
+
code: string;
|
|
447
|
+
multiple: boolean;
|
|
448
|
+
rules: string;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
export declare const schemeModel: IdbqModel;
|
|
455
|
+
export type DataModelFinal = DbDataModelTs<typeof schemeModelDb>;
|
|
456
|
+
export declare const idbql: import("@medyll/idae-idbql").ReadonlyCollections<IdbqModel<Record<string, Record<string, any>>>>, idbqlState: import("@medyll/idae-idbql").StateCollections<IdbqModel<Record<string, Record<string, any>>>>, idbDatabase: import("@medyll/idae-idbql").IdbqlIndexedCore<IdbqModel<Record<string, Record<string, any>>>>, idbqModel: IdbqModel<Record<string, Record<string, any>>>;
|