@tiddlywiki/mws 0.0.21 → 0.1.1
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 +42 -9
- package/dist/metafile-esm.json +1 -0
- package/dist/mws.d.ts +1 -0
- package/dist/mws.js +34710 -0
- package/dist/mws.js.map +1 -0
- package/editions/mws-docs/tiddlers/$__StoryList.tid +1 -2
- package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md.meta +2 -2
- package/editions/mws-docs/tiddlers/2025-04-14 - client plugins /342/234/224/357/270/217.md" +31 -0
- package/editions/mws-docs/tiddlers/2025-04-14 - client plugins /342/234/224/357/270/217.md.meta" +5 -0
- package/editions/mws-docs/tiddlers/{2025-05-04.md → 2025-05-04 - event hooks /342/234/224/357/270/217.md" } +7 -1
- package/editions/mws-docs/tiddlers/2025-05-04 - event hooks /342/234/224/357/270/217.md.meta" +5 -0
- package/editions/mws-docs/tiddlers/{2025-05-06.md → 2025-05-06 - syncer design.md } +0 -4
- package/editions/mws-docs/tiddlers/2025-05-06 - syncer design.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Allowed Methods.tid +8 -0
- package/editions/mws-docs/tiddlers/Application Access & Security.md +14 -84
- package/editions/mws-docs/tiddlers/Application Access & Security.md.meta +1 -1
- package/editions/mws-docs/tiddlers/Body Format.md +19 -0
- package/editions/mws-docs/tiddlers/Body Format.md.meta +4 -0
- package/editions/mws-docs/tiddlers/Checklists and Features.md +0 -3
- package/editions/mws-docs/tiddlers/Checklists and Features.md.meta +1 -1
- package/editions/mws-docs/tiddlers/Client Plugins.md +17 -0
- package/editions/mws-docs/tiddlers/Client Plugins.md.meta +5 -0
- package/editions/mws-docs/tiddlers/HTTP API.md +4 -3
- package/editions/mws-docs/tiddlers/HTTP API.md.meta +1 -1
- package/editions/mws-docs/tiddlers/HelloThere.tid +2 -2
- package/editions/mws-docs/tiddlers/Installation.tid +2 -3
- package/editions/mws-docs/tiddlers/MWS Architecture.tid +6 -1
- package/editions/mws-docs/tiddlers/Multi-user Trust.md +12 -0
- package/editions/mws-docs/tiddlers/Multi-user Trust.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Notes.tid +5 -3
- package/editions/mws-docs/tiddlers/Oracle Attacks.md +29 -0
- package/editions/mws-docs/tiddlers/Oracle Attacks.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Reference.md +1 -0
- package/editions/mws-docs/tiddlers/Reference.md.meta +1 -1
- package/editions/mws-docs/tiddlers/Request Handling.md +53 -0
- package/editions/mws-docs/tiddlers/Request Handling.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Roadmap.tid +7 -0
- package/editions/mws-docs/tiddlers/Route Definers.md +206 -0
- package/editions/mws-docs/tiddlers/Route Definers.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Security.md +75 -0
- package/editions/mws-docs/tiddlers/Security.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Server Plugins.md +7 -0
- package/editions/mws-docs/tiddlers/Server Plugins.md.meta +5 -0
- package/editions/mws-docs/tiddlers/Startup Cache.md +28 -0
- package/editions/mws-docs/tiddlers/Startup Cache.md.meta +5 -0
- package/editions/mws-docs/tiddlers/TiddlerFields.md +5 -0
- package/editions/mws-docs/tiddlers/TiddlerFields.md.meta +4 -0
- package/editions/mws-docs/tiddlers/Usage.tid +2 -2
- package/editions/mws-docs/tiddlers/system/$__mws_cssvar-macro.tid +10 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI +143 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI.meta +7 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI_styles.css +567 -0
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI_styles.css.meta +6 -0
- package/editions/mws-docs/tiddlers/system/$__theme.tid +6 -0
- package/editions/mws-docs/tiddlers/system/SplashScreen.tid +21 -0
- package/editions/mws-docs/tiddlers/system/StaticBanner.tid +1 -1
- package/editions/mws-docs/tiddlers/system/Styles.tid +13 -0
- package/editions/mws-docs/tiddlers/system/palette.tid +4 -1
- package/editions/mws-docs/tiddlers/system/sidebarlayout.tid +4 -1
- package/editions/mws-docs/tiddlers/x-mws-tiddler.md +35 -0
- package/editions/mws-docs/tiddlers/x-mws-tiddler.md.meta +5 -0
- package/mws.run.mjs +30 -0
- package/package.json +47 -36
- package/plugins/client/package-lock.json +46 -83
- package/plugins/client/package.json +1 -6
- package/plugins/client/plugin.info +2 -2
- package/plugins/client/src/fflate.d.ts +1501 -0
- package/plugins/client/src/multiwikiclientadaptor.ts +768 -317
- package/plugins/client/src/mws.d.ts +4 -0
- package/plugins/client/src/types.d.ts +3928 -0
- package/plugins/client/tiddlers/en-US.multids +3 -0
- package/plugins/client/tiddlers/status/SaveWikiButtonTemplate.tid +3 -0
- package/plugins/client/tiddlers/status/icon-cloud.tid +4 -0
- package/plugins/client/tiddlers/status/info-segment.tid +8 -0
- package/plugins/client/tiddlers/status/readonly-styles.tid +27 -0
- package/plugins/client/tiddlers/status/save-offline.tid +7 -0
- package/plugins/client/tiddlers/status/save-wiki-button.tid +26 -0
- package/plugins/client/tiddlers/status/styles.tid +44 -0
- package/plugins/client/tiddlers/status/syncer-actions-copy-logs.tid +6 -0
- package/plugins/client/tiddlers/status/syncer-actions-login-status.tid +9 -0
- package/plugins/client/tiddlers/status/syncer-actions-login.tid +8 -0
- package/plugins/client/tiddlers/status/syncer-actions-logout.tid +8 -0
- package/plugins/client/tiddlers/status/syncer-actions-refresh.tid +9 -0
- package/plugins/client/tiddlers/status/syncer-actions-save-snapshot.tid +9 -0
- package/plugins/client/tiddlers/status/tags-syncerdropdown.tid +2 -0
- package/plugins/client/tiddlers/syncer/multiwikiclientadaptor.js +640 -0
- package/plugins/client/tiddlers/syncer/syncer.js +831 -0
- package/plugins/client/tsconfig.json +19 -16
- package/plugins/filter-ast-to-sql/example-run-series.ts +146 -0
- package/plugins/server/SplashScreen.tid +150 -0
- package/plugins/server/fflate.js +9 -0
- package/plugins/server/plugin.info +8 -0
- package/plugins/server/readme +1 -0
- package/plugins/server/url-polyfill.js +294 -0
- package/prisma/client/client.d.ts +1 -0
- package/prisma/client/client.js +3 -0
- package/prisma/client/default.d.ts +1 -0
- package/prisma/client/default.js +3 -0
- package/prisma/client/edge.d.ts +1 -0
- package/prisma/client/edge.js +297 -0
- package/prisma/client/index-browser.js +275 -0
- package/prisma/client/index.d.ts +17770 -0
- package/prisma/client/index.js +324 -0
- package/prisma/client/package.json +173 -0
- package/prisma/client/query_engine_bg.js +811 -0
- package/prisma/client/query_engine_bg.wasm +0 -0
- package/prisma/client/runtime/edge-esm.js +10000 -0
- package/prisma/client/runtime/edge.js +10036 -0
- package/prisma/client/runtime/index-browser.d.ts +370 -0
- package/prisma/client/runtime/index-browser.js +2300 -0
- package/prisma/client/runtime/library.d.ts +3681 -0
- package/prisma/client/runtime/library.js +10604 -0
- package/prisma/client/runtime/react-native.js +10629 -0
- package/prisma/client/runtime/wasm-compiler-edge.js +11238 -0
- package/prisma/client/runtime/wasm-engine-edge.js +7801 -0
- package/prisma/client/schema.prisma +156 -0
- package/prisma/client/wasm-edge-light-loader.mjs +4 -0
- package/prisma/client/wasm-worker-loader.mjs +4 -0
- package/prisma/client/wasm.d.ts +1 -0
- package/prisma/client/wasm.js +304 -0
- package/prisma/global.ts +53 -0
- package/prisma/migrations/{20250406213424_init → 20250606001949_init}/migration.sql +46 -48
- package/prisma/migrations/20250613000526_remove_group/migration.sql +22 -0
- package/prisma/migrations/20250620014502_settings/migration.sql +5 -0
- package/prisma/migrations/20250707205229_recipes/migration.sql +20 -0
- package/prisma/migrations/migration_lock.toml +1 -1
- package/prisma/notes.md +1 -2
- package/prisma/schema.prisma +52 -49
- package/prisma/test.sqlite +0 -0
- package/prisma/test.sqlite-journal +0 -0
- package/public/react-admin/android-chrome-192x192.png +0 -0
- package/public/react-admin/android-chrome-512x512.png +0 -0
- package/public/react-admin/apple-touch-icon.png +0 -0
- package/{react-user-mgmt/public/esm-QKDFEP3B.js → public/react-admin/esm-L4WLVWJN.js} +1 -1
- package/public/react-admin/esm-L4WLVWJN.js.map +7 -0
- package/public/react-admin/esm-QMNGI3LF.js +3 -0
- package/public/react-admin/favicon-16x16.png +0 -0
- package/public/react-admin/favicon-32x32.png +0 -0
- package/public/react-admin/favicon.ico +0 -0
- package/public/react-admin/index.html +36 -0
- package/public/react-admin/main.js +268 -0
- package/public/react-admin/main.js.map +7 -0
- package/public/react-admin/site.webmanifest +20 -0
- package/public/react-admin/stats.json +1 -0
- package/scripts.mjs +134 -25
- package/dist/server.d.ts +0 -945
- package/dist/server.js +0 -20775
- package/dist/server.js.map +0 -1
- package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md +0 -64
- package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md.meta +0 -5
- package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md +0 -18
- package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md.meta +0 -5
- package/editions/mws-docs/tiddlers/2025-05-04.md.meta +0 -5
- package/editions/mws-docs/tiddlers/2025-05-06.md.meta +0 -5
- package/editions/mws-docs/tiddlers/Moduler Design.md +0 -29
- package/editions/mws-docs/tiddlers/Moduler Design.md.meta +0 -5
- package/editions/mws-docs/tiddlers/Request Server.md +0 -20
- package/editions/mws-docs/tiddlers/Request Server.md.meta +0 -5
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark +0 -173
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark.meta +0 -6
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light +0 -172
- package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light.meta +0 -6
- package/plugins/client/tiddlers/config-tiddlers-filter.tid +0 -2
- package/plugins/client/tiddlers/config-use-server-sent-events.tid +0 -2
- package/plugins/client/tiddlers/info-segment.tid +0 -8
- package/plugins/client/tiddlers/multiwikiclientadaptor.js +0 -444
- package/prisma/migrations/20250407002306_disconnect_user_tables/migration.sql +0 -52
- package/prisma/old-db.sql +0 -144
- package/react-user-mgmt/README.md +0 -50
- package/react-user-mgmt/eslint.config.js +0 -28
- package/react-user-mgmt/package-lock.json +0 -2738
- package/react-user-mgmt/package.json +0 -31
- package/react-user-mgmt/public/index.html +0 -1
- package/react-user-mgmt/public/main.js +0 -295
- package/react-user-mgmt/public/main.js.map +0 -7
- package/react-user-mgmt/public/stats.json +0 -1
- package/react-user-mgmt/tsconfig.json +0 -40
- package/react-user-mgmt/types.d.ts +0 -2
- package/tiddlywiki-types/boot/boot.d.ts +0 -378
- package/tiddlywiki-types/boot/bootprefix.d.ts +0 -110
- package/tiddlywiki-types/core/modules/filters.d.ts +0 -107
- package/tiddlywiki-types/core/modules/tiddler.d.ts +0 -47
- package/tiddlywiki-types/core/modules/wiki-bulkops.d.ts +0 -36
- package/tiddlywiki-types/core/modules/wiki.d.ts +0 -208
- package/tiddlywiki-types/index.d.ts +0 -7
- package/tiddlywiki-types/package.json +0 -3
- /package/plugins/client/tiddlers/{sidebarsegment.tid → status/sidebarsegment.tid} +0 -0
- /package/plugins/client/tiddlers/{GettingStarted.tid → syncer/GettingStarted.tid} +0 -0
- /package/plugins/client/tiddlers/{config-incoming-updates-filter.tid → syncer/config-incoming-updates-filter.tid} +0 -0
- /package/plugins/client/tiddlers/{readme.tid → syncer/readme.tid} +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/chunk-YALWN5OT.js +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/chunk-YALWN5OT.js.map +0 -0
- /package/{react-user-mgmt/public/esm-QKDFEP3B.js.map → public/react-admin/esm-QMNGI3LF.js.map} +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/favicon.png +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/missing-favicon.png +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/motovun-jack.jpg +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/mws-icon.png +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/stats.css +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/stats.html +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/stats.js +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/stats.svg +0 -0
- /package/{react-user-mgmt/public → public/react-admin}/vite.svg +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
Decimal,
|
|
8
|
+
objectEnumValues,
|
|
9
|
+
makeStrictEnum,
|
|
10
|
+
Public,
|
|
11
|
+
getRuntime,
|
|
12
|
+
skip,
|
|
13
|
+
} = require("./runtime/index-browser.js");
|
|
14
|
+
|
|
15
|
+
const Prisma = {};
|
|
16
|
+
|
|
17
|
+
exports.Prisma = Prisma;
|
|
18
|
+
exports.$Enums = {};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Prisma Client JS version: 6.10.1
|
|
22
|
+
* Query Engine version: 9b628578b3b7cae625e8c927178f15a170e74a9c
|
|
23
|
+
*/
|
|
24
|
+
Prisma.prismaVersion = {
|
|
25
|
+
client: "6.10.1",
|
|
26
|
+
engine: "9b628578b3b7cae625e8c927178f15a170e74a9c",
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
30
|
+
const runtimeName = getRuntime().prettyName;
|
|
31
|
+
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
32
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
33
|
+
};
|
|
34
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
35
|
+
const runtimeName = getRuntime().prettyName;
|
|
36
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
37
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
38
|
+
};
|
|
39
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
40
|
+
const runtimeName = getRuntime().prettyName;
|
|
41
|
+
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
42
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
43
|
+
};
|
|
44
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
45
|
+
const runtimeName = getRuntime().prettyName;
|
|
46
|
+
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
47
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
48
|
+
};
|
|
49
|
+
Prisma.PrismaClientValidationError = () => {
|
|
50
|
+
const runtimeName = getRuntime().prettyName;
|
|
51
|
+
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
52
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
53
|
+
};
|
|
54
|
+
Prisma.Decimal = Decimal;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Re-export of sql-template-tag
|
|
58
|
+
*/
|
|
59
|
+
Prisma.sql = () => {
|
|
60
|
+
const runtimeName = getRuntime().prettyName;
|
|
61
|
+
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
62
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
63
|
+
};
|
|
64
|
+
Prisma.empty = () => {
|
|
65
|
+
const runtimeName = getRuntime().prettyName;
|
|
66
|
+
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
67
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
68
|
+
};
|
|
69
|
+
Prisma.join = () => {
|
|
70
|
+
const runtimeName = getRuntime().prettyName;
|
|
71
|
+
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
72
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
73
|
+
};
|
|
74
|
+
Prisma.raw = () => {
|
|
75
|
+
const runtimeName = getRuntime().prettyName;
|
|
76
|
+
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
77
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
78
|
+
};
|
|
79
|
+
Prisma.validator = Public.validator;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Extensions
|
|
83
|
+
*/
|
|
84
|
+
Prisma.getExtensionContext = () => {
|
|
85
|
+
const runtimeName = getRuntime().prettyName;
|
|
86
|
+
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
87
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
88
|
+
};
|
|
89
|
+
Prisma.defineExtension = () => {
|
|
90
|
+
const runtimeName = getRuntime().prettyName;
|
|
91
|
+
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
92
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Shorthand utilities for JSON filtering
|
|
97
|
+
*/
|
|
98
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull;
|
|
99
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull;
|
|
100
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull;
|
|
101
|
+
|
|
102
|
+
Prisma.NullTypes = {
|
|
103
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
104
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
105
|
+
AnyNull: objectEnumValues.classes.AnyNull,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Enums
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
113
|
+
Serializable: "Serializable",
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
exports.Prisma.SettingsScalarFieldEnum = {
|
|
117
|
+
key: "key",
|
|
118
|
+
value: "value",
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
exports.Prisma.RecipesScalarFieldEnum = {
|
|
122
|
+
recipe_id: "recipe_id",
|
|
123
|
+
recipe_name: "recipe_name",
|
|
124
|
+
description: "description",
|
|
125
|
+
owner_id: "owner_id",
|
|
126
|
+
plugin_names: "plugin_names",
|
|
127
|
+
skip_required_plugins: "skip_required_plugins",
|
|
128
|
+
skip_core: "skip_core",
|
|
129
|
+
preload_store: "preload_store",
|
|
130
|
+
custom_wiki: "custom_wiki",
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
exports.Prisma.RecipeAclScalarFieldEnum = {
|
|
134
|
+
acl_id: "acl_id",
|
|
135
|
+
role_id: "role_id",
|
|
136
|
+
permission: "permission",
|
|
137
|
+
recipe_id: "recipe_id",
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
exports.Prisma.Recipe_bagsScalarFieldEnum = {
|
|
141
|
+
recipe_id: "recipe_id",
|
|
142
|
+
bag_id: "bag_id",
|
|
143
|
+
position: "position",
|
|
144
|
+
with_acl: "with_acl",
|
|
145
|
+
load_modules: "load_modules",
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
exports.Prisma.BagsScalarFieldEnum = {
|
|
149
|
+
bag_id: "bag_id",
|
|
150
|
+
bag_name: "bag_name",
|
|
151
|
+
description: "description",
|
|
152
|
+
owner_id: "owner_id",
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
exports.Prisma.BagAclScalarFieldEnum = {
|
|
156
|
+
acl_id: "acl_id",
|
|
157
|
+
bag_id: "bag_id",
|
|
158
|
+
role_id: "role_id",
|
|
159
|
+
permission: "permission",
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
exports.Prisma.TiddlersScalarFieldEnum = {
|
|
163
|
+
revision_id: "revision_id",
|
|
164
|
+
bag_id: "bag_id",
|
|
165
|
+
title: "title",
|
|
166
|
+
is_deleted: "is_deleted",
|
|
167
|
+
attachment_hash: "attachment_hash",
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
exports.Prisma.FieldsScalarFieldEnum = {
|
|
171
|
+
revision_id: "revision_id",
|
|
172
|
+
field_name: "field_name",
|
|
173
|
+
field_value: "field_value",
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
exports.Prisma.RolesScalarFieldEnum = {
|
|
177
|
+
role_id: "role_id",
|
|
178
|
+
role_name: "role_name",
|
|
179
|
+
description: "description",
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
exports.Prisma.UsersScalarFieldEnum = {
|
|
183
|
+
user_id: "user_id",
|
|
184
|
+
username: "username",
|
|
185
|
+
email: "email",
|
|
186
|
+
password: "password",
|
|
187
|
+
created_at: "created_at",
|
|
188
|
+
last_login: "last_login",
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
exports.Prisma.SessionsScalarFieldEnum = {
|
|
192
|
+
session_id: "session_id",
|
|
193
|
+
created_at: "created_at",
|
|
194
|
+
last_accessed: "last_accessed",
|
|
195
|
+
session_key: "session_key",
|
|
196
|
+
user_id: "user_id",
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
exports.Prisma.SortOrder = {
|
|
200
|
+
asc: "asc",
|
|
201
|
+
desc: "desc",
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
exports.Prisma.JsonNullValueInput = {
|
|
205
|
+
JsonNull: Prisma.JsonNull,
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
209
|
+
DbNull: Prisma.DbNull,
|
|
210
|
+
JsonNull: Prisma.JsonNull,
|
|
211
|
+
AnyNull: Prisma.AnyNull,
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
exports.Prisma.QueryMode = {
|
|
215
|
+
default: "default",
|
|
216
|
+
insensitive: "insensitive",
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
exports.Prisma.NullsOrder = {
|
|
220
|
+
first: "first",
|
|
221
|
+
last: "last",
|
|
222
|
+
};
|
|
223
|
+
exports.Permission = exports.$Enums.Permission = {
|
|
224
|
+
READ: "READ",
|
|
225
|
+
WRITE: "WRITE",
|
|
226
|
+
ADMIN: "ADMIN",
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
exports.Prisma.ModelName = {
|
|
230
|
+
Settings: "Settings",
|
|
231
|
+
Recipes: "Recipes",
|
|
232
|
+
RecipeAcl: "RecipeAcl",
|
|
233
|
+
Recipe_bags: "Recipe_bags",
|
|
234
|
+
Bags: "Bags",
|
|
235
|
+
BagAcl: "BagAcl",
|
|
236
|
+
Tiddlers: "Tiddlers",
|
|
237
|
+
Fields: "Fields",
|
|
238
|
+
Roles: "Roles",
|
|
239
|
+
Users: "Users",
|
|
240
|
+
Sessions: "Sessions",
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* This is a stub Prisma Client that will error at runtime if called.
|
|
245
|
+
*/
|
|
246
|
+
class PrismaClient {
|
|
247
|
+
constructor() {
|
|
248
|
+
return new Proxy(this, {
|
|
249
|
+
get(target, prop) {
|
|
250
|
+
let message;
|
|
251
|
+
const runtime = getRuntime();
|
|
252
|
+
if (runtime.isEdge) {
|
|
253
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
254
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
255
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
256
|
+
`;
|
|
257
|
+
} else {
|
|
258
|
+
message =
|
|
259
|
+
"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `" +
|
|
260
|
+
runtime.prettyName +
|
|
261
|
+
"`).";
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message += `
|
|
265
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
|
|
266
|
+
|
|
267
|
+
throw new Error(message);
|
|
268
|
+
},
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
exports.PrismaClient = PrismaClient;
|
|
274
|
+
|
|
275
|
+
Object.assign(exports, Prisma);
|