@tiddlywiki/mws 0.1.14 → 0.2.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.
Files changed (117) hide show
  1. package/README.md +41 -20
  2. package/dist/metafile-esm.json +1 -1
  3. package/dist/mws.js +40120 -20116
  4. package/dist/mws.js.map +1 -1
  5. package/mws.run.mjs +28 -8
  6. package/package.json +20 -33
  7. package/plugins/client/plugin.info +1 -1
  8. package/plugins/client/src/multiwikiclientadaptor.ts +6 -34
  9. package/plugins/client/src/mws.d.ts +2 -1
  10. package/plugins/client/src/new-multiwikiclientadaptor.ts +634 -0
  11. package/plugins/client/src/types.d.ts +2531 -1036
  12. package/plugins/client/tiddlers/managetiddleraction.js +0 -5
  13. package/plugins/client/tiddlers/syncer/new-multiwikiclientadaptor.js +432 -0
  14. package/plugins/client/tiddlers/syncer/syncer.js +123 -241
  15. package/plugins/client/tsconfig.json +5 -1
  16. package/prisma/browser.ts +2 -0
  17. package/prisma/client/browser.ts +84 -0
  18. package/prisma/client/client.ts +108 -0
  19. package/prisma/client/commonInputTypes.ts +598 -0
  20. package/prisma/client/enums.ts +42 -0
  21. package/prisma/client/internal/class.ts +326 -0
  22. package/prisma/client/internal/prismaNamespace.ts +1870 -0
  23. package/prisma/client/internal/prismaNamespaceBrowser.ts +259 -0
  24. package/prisma/client/models/Bag.ts +1701 -0
  25. package/prisma/client/models/BagPermission.ts +1284 -0
  26. package/prisma/client/models/Recipe.ts +1722 -0
  27. package/prisma/client/models/RecipeBag.ts +1518 -0
  28. package/prisma/client/models/RecipePermission.ts +1284 -0
  29. package/prisma/client/models/Roles.ts +1316 -0
  30. package/prisma/client/models/Sessions.ts +1344 -0
  31. package/prisma/client/models/Settings.ts +1093 -0
  32. package/prisma/client/models/Template.ts +1477 -0
  33. package/prisma/client/models/TemplatePermission.ts +1284 -0
  34. package/prisma/client/models/Tiddler.ts +1434 -0
  35. package/prisma/client/models/TiddlerEvent.ts +1360 -0
  36. package/prisma/client/models/Users.ts +1579 -0
  37. package/prisma/client/models.ts +24 -0
  38. package/prisma/client/pjtg.ts +183 -0
  39. package/prisma/index.ts +74 -0
  40. package/prisma/migrations/20260708160259_init/migration.sql +172 -0
  41. package/prisma/migrations-v1/migration_lock.toml +3 -0
  42. package/prisma/package.json +12 -0
  43. package/prisma/schema.prisma +147 -89
  44. package/prisma/types.ts +9 -0
  45. package/public/.default.html +1 -0
  46. package/public/admin-vanilla/fish.svg +399 -0
  47. package/public/admin-vanilla/fish2.svg +389 -0
  48. package/public/admin-vanilla/main-64WYHWYI.js +1791 -0
  49. package/public/admin-vanilla/main-64WYHWYI.js.map +7 -0
  50. package/public/admin-vanilla/main-LYDE4NDJ.css +1 -0
  51. package/public/admin-vanilla/normalize.css +349 -0
  52. package/public/admin-vanilla/polyfill-ADOI2A4V.js +2 -0
  53. package/public/admin-vanilla/polyfill-ADOI2A4V.js.map +7 -0
  54. package/public/{react-admin → admin-vanilla}/site.webmanifest +1 -1
  55. package/public/admin-vanilla.html +62 -0
  56. package/public/admin-vanilla.json +1 -0
  57. package/public/{react-admin → stats}/stats.html +5 -2
  58. package/public/{react-admin → stats}/stats.js +2 -1
  59. package/scripts/build-docs.sh +30 -0
  60. package/scripts/helpers.mjs +107 -0
  61. package/scripts/json.js +8 -0
  62. package/scripts/scripts.mjs +114 -0
  63. package/prisma/client/client.d.ts +0 -1
  64. package/prisma/client/client.js +0 -3
  65. package/prisma/client/default.d.ts +0 -1
  66. package/prisma/client/default.js +0 -3
  67. package/prisma/client/edge.d.ts +0 -1
  68. package/prisma/client/edge.js +0 -297
  69. package/prisma/client/index-browser.js +0 -275
  70. package/prisma/client/index.d.ts +0 -17770
  71. package/prisma/client/index.js +0 -324
  72. package/prisma/client/package.json +0 -173
  73. package/prisma/client/query_engine_bg.js +0 -811
  74. package/prisma/client/query_engine_bg.wasm +0 -0
  75. package/prisma/client/runtime/edge-esm.js +0 -10000
  76. package/prisma/client/runtime/edge.js +0 -10036
  77. package/prisma/client/runtime/index-browser.d.ts +0 -370
  78. package/prisma/client/runtime/index-browser.js +0 -2300
  79. package/prisma/client/runtime/library.d.ts +0 -3681
  80. package/prisma/client/runtime/library.js +0 -10604
  81. package/prisma/client/runtime/react-native.js +0 -10629
  82. package/prisma/client/runtime/wasm-compiler-edge.js +0 -11238
  83. package/prisma/client/runtime/wasm-engine-edge.js +0 -7801
  84. package/prisma/client/schema.prisma +0 -156
  85. package/prisma/client/wasm-edge-light-loader.mjs +0 -4
  86. package/prisma/client/wasm-worker-loader.mjs +0 -4
  87. package/prisma/client/wasm.d.ts +0 -1
  88. package/prisma/client/wasm.js +0 -304
  89. package/prisma/global.ts +0 -53
  90. package/public/react-admin/chunk-YALWN5OT.js +0 -2
  91. package/public/react-admin/esm-L4WLVWJN.js +0 -3
  92. package/public/react-admin/esm-L4WLVWJN.js.map +0 -7
  93. package/public/react-admin/esm-QMNGI3LF.js +0 -3
  94. package/public/react-admin/esm-QMNGI3LF.js.map +0 -7
  95. package/public/react-admin/index.html +0 -36
  96. package/public/react-admin/main.js +0 -268
  97. package/public/react-admin/main.js.map +0 -7
  98. package/public/react-admin/stats.json +0 -1
  99. package/scripts.mjs +0 -142
  100. /package/prisma/{migrations → migrations-v1}/20250606001949_init/migration.sql +0 -0
  101. /package/prisma/{migrations → migrations-v1}/20250613000526_remove_group/migration.sql +0 -0
  102. /package/prisma/{migrations → migrations-v1}/20250620014502_settings/migration.sql +0 -0
  103. /package/prisma/{migrations → migrations-v1}/20250707205229_recipes/migration.sql +0 -0
  104. /package/public/{react-admin → admin-vanilla}/android-chrome-192x192.png +0 -0
  105. /package/public/{react-admin → admin-vanilla}/android-chrome-512x512.png +0 -0
  106. /package/public/{react-admin → admin-vanilla}/apple-touch-icon.png +0 -0
  107. /package/public/{react-admin → admin-vanilla}/favicon-16x16.png +0 -0
  108. /package/public/{react-admin → admin-vanilla}/favicon-32x32.png +0 -0
  109. /package/public/{react-admin → admin-vanilla}/favicon.ico +0 -0
  110. /package/public/{react-admin → admin-vanilla}/favicon.png +0 -0
  111. /package/public/{react-admin/chunk-YALWN5OT.js.map → admin-vanilla/main-LYDE4NDJ.css.map} +0 -0
  112. /package/public/{react-admin → admin-vanilla}/missing-favicon.png +0 -0
  113. /package/public/{react-admin → admin-vanilla}/motovun-jack.jpg +0 -0
  114. /package/public/{react-admin → admin-vanilla}/mws-icon.png +0 -0
  115. /package/public/{react-admin → admin-vanilla}/vite.svg +0 -0
  116. /package/public/{react-admin → stats}/stats.css +0 -0
  117. /package/public/{react-admin → stats}/stats.svg +0 -0
@@ -0,0 +1,259 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * WARNING: This is an internal file that is subject to change!
8
+ *
9
+ * 🛑 Under no circumstances should you import this file directly! 🛑
10
+ *
11
+ * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
12
+ * While this enables partial backward compatibility, it is not part of the stable public API.
13
+ *
14
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
15
+ * model files in the `model` directory!
16
+ */
17
+
18
+ import * as runtime from "@prisma/client/runtime/index-browser"
19
+
20
+ export type * from '../models.ts'
21
+ export type * from './prismaNamespace.ts'
22
+
23
+ export const Decimal = runtime.Decimal
24
+
25
+
26
+ export const NullTypes = {
27
+ DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
28
+ JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
29
+ AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
30
+ }
31
+ /**
32
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
33
+ *
34
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
35
+ */
36
+ export const DbNull = runtime.DbNull
37
+
38
+ /**
39
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
40
+ *
41
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
42
+ */
43
+ export const JsonNull = runtime.JsonNull
44
+
45
+ /**
46
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
47
+ *
48
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
49
+ */
50
+ export const AnyNull = runtime.AnyNull
51
+
52
+
53
+ export const ModelName = {
54
+ Bag: 'Bag',
55
+ BagPermission: 'BagPermission',
56
+ Tiddler: 'Tiddler',
57
+ TiddlerEvent: 'TiddlerEvent',
58
+ Template: 'Template',
59
+ TemplatePermission: 'TemplatePermission',
60
+ Recipe: 'Recipe',
61
+ RecipePermission: 'RecipePermission',
62
+ RecipeBag: 'RecipeBag',
63
+ Settings: 'Settings',
64
+ Roles: 'Roles',
65
+ Users: 'Users',
66
+ Sessions: 'Sessions'
67
+ } as const
68
+
69
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName]
70
+
71
+ /*
72
+ * Enums
73
+ */
74
+
75
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
76
+ Serializable: 'Serializable'
77
+ } as const)
78
+
79
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
80
+
81
+
82
+ export const BagScalarFieldEnum = {
83
+ id: 'id',
84
+ name: 'name',
85
+ created: 'created',
86
+ updated: 'updated',
87
+ description: 'description'
88
+ } as const
89
+
90
+ export type BagScalarFieldEnum = (typeof BagScalarFieldEnum)[keyof typeof BagScalarFieldEnum]
91
+
92
+
93
+ export const BagPermissionScalarFieldEnum = {
94
+ bag_id: 'bag_id',
95
+ role_id: 'role_id',
96
+ level: 'level'
97
+ } as const
98
+
99
+ export type BagPermissionScalarFieldEnum = (typeof BagPermissionScalarFieldEnum)[keyof typeof BagPermissionScalarFieldEnum]
100
+
101
+
102
+ export const TiddlerScalarFieldEnum = {
103
+ bag_id: 'bag_id',
104
+ title: 'title',
105
+ created: 'created',
106
+ updated: 'updated',
107
+ revision: 'revision',
108
+ fields: 'fields'
109
+ } as const
110
+
111
+ export type TiddlerScalarFieldEnum = (typeof TiddlerScalarFieldEnum)[keyof typeof TiddlerScalarFieldEnum]
112
+
113
+
114
+ export const TiddlerEventScalarFieldEnum = {
115
+ seq: 'seq',
116
+ bag_id: 'bag_id',
117
+ title: 'title',
118
+ type: 'type'
119
+ } as const
120
+
121
+ export type TiddlerEventScalarFieldEnum = (typeof TiddlerEventScalarFieldEnum)[keyof typeof TiddlerEventScalarFieldEnum]
122
+
123
+
124
+ export const TemplateScalarFieldEnum = {
125
+ id: 'id',
126
+ name: 'name',
127
+ created: 'created',
128
+ updated: 'updated',
129
+ type: 'type',
130
+ definition: 'definition'
131
+ } as const
132
+
133
+ export type TemplateScalarFieldEnum = (typeof TemplateScalarFieldEnum)[keyof typeof TemplateScalarFieldEnum]
134
+
135
+
136
+ export const TemplatePermissionScalarFieldEnum = {
137
+ template_id: 'template_id',
138
+ role_id: 'role_id',
139
+ level: 'level'
140
+ } as const
141
+
142
+ export type TemplatePermissionScalarFieldEnum = (typeof TemplatePermissionScalarFieldEnum)[keyof typeof TemplatePermissionScalarFieldEnum]
143
+
144
+
145
+ export const RecipeScalarFieldEnum = {
146
+ id: 'id',
147
+ slug: 'slug',
148
+ created: 'created',
149
+ updated: 'updated',
150
+ template_id: 'template_id',
151
+ definition: 'definition',
152
+ plugins: 'plugins',
153
+ compiledAt: 'compiledAt'
154
+ } as const
155
+
156
+ export type RecipeScalarFieldEnum = (typeof RecipeScalarFieldEnum)[keyof typeof RecipeScalarFieldEnum]
157
+
158
+
159
+ export const RecipePermissionScalarFieldEnum = {
160
+ recipe_id: 'recipe_id',
161
+ role_id: 'role_id',
162
+ level: 'level'
163
+ } as const
164
+
165
+ export type RecipePermissionScalarFieldEnum = (typeof RecipePermissionScalarFieldEnum)[keyof typeof RecipePermissionScalarFieldEnum]
166
+
167
+
168
+ export const RecipeBagScalarFieldEnum = {
169
+ recipe_id: 'recipe_id',
170
+ bag_id: 'bag_id',
171
+ priority: 'priority',
172
+ is_writable: 'is_writable',
173
+ prefix: 'prefix'
174
+ } as const
175
+
176
+ export type RecipeBagScalarFieldEnum = (typeof RecipeBagScalarFieldEnum)[keyof typeof RecipeBagScalarFieldEnum]
177
+
178
+
179
+ export const SettingsScalarFieldEnum = {
180
+ key: 'key',
181
+ value: 'value',
182
+ updated: 'updated'
183
+ } as const
184
+
185
+ export type SettingsScalarFieldEnum = (typeof SettingsScalarFieldEnum)[keyof typeof SettingsScalarFieldEnum]
186
+
187
+
188
+ export const RolesScalarFieldEnum = {
189
+ role_id: 'role_id',
190
+ role_name: 'role_name',
191
+ description: 'description'
192
+ } as const
193
+
194
+ export type RolesScalarFieldEnum = (typeof RolesScalarFieldEnum)[keyof typeof RolesScalarFieldEnum]
195
+
196
+
197
+ export const UsersScalarFieldEnum = {
198
+ user_id: 'user_id',
199
+ username: 'username',
200
+ email: 'email',
201
+ password: 'password',
202
+ resetCode: 'resetCode',
203
+ created_at: 'created_at',
204
+ last_login: 'last_login'
205
+ } as const
206
+
207
+ export type UsersScalarFieldEnum = (typeof UsersScalarFieldEnum)[keyof typeof UsersScalarFieldEnum]
208
+
209
+
210
+ export const SessionsScalarFieldEnum = {
211
+ session_id: 'session_id',
212
+ created_at: 'created_at',
213
+ last_accessed: 'last_accessed',
214
+ session_key: 'session_key',
215
+ user_id: 'user_id'
216
+ } as const
217
+
218
+ export type SessionsScalarFieldEnum = (typeof SessionsScalarFieldEnum)[keyof typeof SessionsScalarFieldEnum]
219
+
220
+
221
+ export const SortOrder = {
222
+ asc: 'asc',
223
+ desc: 'desc'
224
+ } as const
225
+
226
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
227
+
228
+
229
+ export const JsonNullValueInput = {
230
+ JsonNull: JsonNull
231
+ } as const
232
+
233
+ export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
234
+
235
+
236
+ export const JsonNullValueFilter = {
237
+ DbNull: DbNull,
238
+ JsonNull: JsonNull,
239
+ AnyNull: AnyNull
240
+ } as const
241
+
242
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
243
+
244
+
245
+ export const QueryMode = {
246
+ default: 'default',
247
+ insensitive: 'insensitive'
248
+ } as const
249
+
250
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
251
+
252
+
253
+ export const NullsOrder = {
254
+ first: 'first',
255
+ last: 'last'
256
+ } as const
257
+
258
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
259
+