document-drive 6.0.0-dev.107 → 6.0.0-dev.109
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/dist/index-HOJm2mt2.d.mts.map +1 -1
- package/dist/index.d.ts +6 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/storage/prisma.d.mts +1239 -1239
- package/dist/storage/prisma.d.mts.map +1 -1
- package/dist/storage/prisma.mjs +39 -39
- package/dist/storage/prisma.mjs.map +1 -1
- package/dist/utils-BI7cwVSp.mjs.map +1 -1
- package/package.json +5 -5
- package/src/storage/prisma/client/default.d.ts +1 -1
- package/src/storage/prisma/client/default.js +1 -1
- package/src/storage/prisma/client/edge.d.ts +1 -1
- package/src/storage/prisma/client/edge.js +159 -148
- package/src/storage/prisma/client/index-browser.js +111 -111
- package/src/storage/prisma/client/index.d.ts +7254 -5368
- package/src/storage/prisma/client/index.js +174 -161
- package/src/storage/prisma/client/package.json +1 -1
- package/src/storage/prisma/client/runtime/edge-esm.js +9638 -18
- package/src/storage/prisma/client/runtime/edge.js +9658 -18
- package/src/storage/prisma/client/runtime/index-browser.d.ts +426 -365
- package/src/storage/prisma/client/runtime/index-browser.js +2220 -1
- package/src/storage/prisma/client/runtime/library.d.ts +4168 -3273
- package/src/storage/prisma/client/runtime/library.js +9849 -55
- package/src/storage/prisma/client/runtime/react-native.js +9998 -29
- package/src/storage/prisma/client/runtime/wasm.js +7220 -19
- package/src/storage/prisma/client/wasm.d.ts +1 -1
- package/src/storage/prisma/client/wasm.js +111 -111
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
|
|
4
3
|
const {
|
|
@@ -7,13 +6,12 @@ const {
|
|
|
7
6
|
makeStrictEnum,
|
|
8
7
|
Public,
|
|
9
8
|
getRuntime,
|
|
10
|
-
} = require(
|
|
11
|
-
|
|
9
|
+
} = require("./runtime/index-browser.js");
|
|
12
10
|
|
|
13
|
-
const Prisma = {}
|
|
11
|
+
const Prisma = {};
|
|
14
12
|
|
|
15
|
-
exports.Prisma = Prisma
|
|
16
|
-
exports.$Enums = {}
|
|
13
|
+
exports.Prisma = Prisma;
|
|
14
|
+
exports.$Enums = {};
|
|
17
15
|
|
|
18
16
|
/**
|
|
19
17
|
* Prisma Client JS version: 5.17.0
|
|
@@ -21,40 +19,40 @@ exports.$Enums = {}
|
|
|
21
19
|
*/
|
|
22
20
|
Prisma.prismaVersion = {
|
|
23
21
|
client: "5.17.0",
|
|
24
|
-
engine: "393aa359c9ad4a4bb28630fb5613f9c281cde053"
|
|
25
|
-
}
|
|
22
|
+
engine: "393aa359c9ad4a4bb28630fb5613f9c281cde053",
|
|
23
|
+
};
|
|
26
24
|
|
|
27
25
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
28
26
|
const runtimeName = getRuntime().prettyName;
|
|
29
27
|
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
30
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
31
|
-
|
|
28
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
29
|
+
};
|
|
32
30
|
Prisma.PrismaClientUnknownRequestError = () => {
|
|
33
31
|
const runtimeName = getRuntime().prettyName;
|
|
34
32
|
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
35
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
36
|
-
|
|
33
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
34
|
+
};
|
|
37
35
|
Prisma.PrismaClientRustPanicError = () => {
|
|
38
36
|
const runtimeName = getRuntime().prettyName;
|
|
39
37
|
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
40
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
41
|
-
|
|
38
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
39
|
+
};
|
|
42
40
|
Prisma.PrismaClientInitializationError = () => {
|
|
43
41
|
const runtimeName = getRuntime().prettyName;
|
|
44
42
|
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
45
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
46
|
-
|
|
43
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
44
|
+
};
|
|
47
45
|
Prisma.PrismaClientValidationError = () => {
|
|
48
46
|
const runtimeName = getRuntime().prettyName;
|
|
49
47
|
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
50
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
51
|
-
|
|
48
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
49
|
+
};
|
|
52
50
|
Prisma.NotFoundError = () => {
|
|
53
51
|
const runtimeName = getRuntime().prettyName;
|
|
54
52
|
throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
55
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
56
|
-
|
|
57
|
-
Prisma.Decimal = Decimal
|
|
53
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
54
|
+
};
|
|
55
|
+
Prisma.Decimal = Decimal;
|
|
58
56
|
|
|
59
57
|
/**
|
|
60
58
|
* Re-export of sql-template-tag
|
|
@@ -62,156 +60,155 @@ Prisma.Decimal = Decimal
|
|
|
62
60
|
Prisma.sql = () => {
|
|
63
61
|
const runtimeName = getRuntime().prettyName;
|
|
64
62
|
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
65
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
66
|
-
|
|
63
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
64
|
+
};
|
|
67
65
|
Prisma.empty = () => {
|
|
68
66
|
const runtimeName = getRuntime().prettyName;
|
|
69
67
|
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
70
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
71
|
-
|
|
68
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
69
|
+
};
|
|
72
70
|
Prisma.join = () => {
|
|
73
71
|
const runtimeName = getRuntime().prettyName;
|
|
74
72
|
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
75
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
76
|
-
|
|
73
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
74
|
+
};
|
|
77
75
|
Prisma.raw = () => {
|
|
78
76
|
const runtimeName = getRuntime().prettyName;
|
|
79
77
|
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
80
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
81
|
-
|
|
82
|
-
Prisma.validator = Public.validator
|
|
78
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
79
|
+
};
|
|
80
|
+
Prisma.validator = Public.validator;
|
|
83
81
|
|
|
84
82
|
/**
|
|
85
|
-
* Extensions
|
|
86
|
-
*/
|
|
83
|
+
* Extensions
|
|
84
|
+
*/
|
|
87
85
|
Prisma.getExtensionContext = () => {
|
|
88
86
|
const runtimeName = getRuntime().prettyName;
|
|
89
87
|
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
90
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
91
|
-
|
|
88
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
89
|
+
};
|
|
92
90
|
Prisma.defineExtension = () => {
|
|
93
91
|
const runtimeName = getRuntime().prettyName;
|
|
94
92
|
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
95
|
-
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report
|
|
96
|
-
|
|
93
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
|
|
94
|
+
};
|
|
97
95
|
|
|
98
96
|
/**
|
|
99
97
|
* Shorthand utilities for JSON filtering
|
|
100
98
|
*/
|
|
101
|
-
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
102
|
-
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
103
|
-
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
99
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull;
|
|
100
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull;
|
|
101
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull;
|
|
104
102
|
|
|
105
103
|
Prisma.NullTypes = {
|
|
106
104
|
DbNull: objectEnumValues.classes.DbNull,
|
|
107
105
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|
108
|
-
AnyNull: objectEnumValues.classes.AnyNull
|
|
109
|
-
}
|
|
106
|
+
AnyNull: objectEnumValues.classes.AnyNull,
|
|
107
|
+
};
|
|
110
108
|
|
|
111
109
|
/**
|
|
112
110
|
* Enums
|
|
113
111
|
*/
|
|
114
112
|
|
|
115
113
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
116
|
-
ReadUncommitted:
|
|
117
|
-
ReadCommitted:
|
|
118
|
-
RepeatableRead:
|
|
119
|
-
Serializable:
|
|
114
|
+
ReadUncommitted: "ReadUncommitted",
|
|
115
|
+
ReadCommitted: "ReadCommitted",
|
|
116
|
+
RepeatableRead: "RepeatableRead",
|
|
117
|
+
Serializable: "Serializable",
|
|
120
118
|
});
|
|
121
119
|
|
|
122
120
|
exports.Prisma.DriveScalarFieldEnum = {
|
|
123
|
-
id:
|
|
121
|
+
id: "id",
|
|
124
122
|
};
|
|
125
123
|
|
|
126
124
|
exports.Prisma.DocumentScalarFieldEnum = {
|
|
127
|
-
id:
|
|
128
|
-
ordinal:
|
|
129
|
-
created:
|
|
130
|
-
lastModified:
|
|
131
|
-
slug:
|
|
132
|
-
revision:
|
|
133
|
-
name:
|
|
134
|
-
initialState:
|
|
135
|
-
documentType:
|
|
136
|
-
meta:
|
|
137
|
-
scopes:
|
|
125
|
+
id: "id",
|
|
126
|
+
ordinal: "ordinal",
|
|
127
|
+
created: "created",
|
|
128
|
+
lastModified: "lastModified",
|
|
129
|
+
slug: "slug",
|
|
130
|
+
revision: "revision",
|
|
131
|
+
name: "name",
|
|
132
|
+
initialState: "initialState",
|
|
133
|
+
documentType: "documentType",
|
|
134
|
+
meta: "meta",
|
|
135
|
+
scopes: "scopes",
|
|
138
136
|
};
|
|
139
137
|
|
|
140
138
|
exports.Prisma.DriveDocumentScalarFieldEnum = {
|
|
141
|
-
driveId:
|
|
142
|
-
documentId:
|
|
139
|
+
driveId: "driveId",
|
|
140
|
+
documentId: "documentId",
|
|
143
141
|
};
|
|
144
142
|
|
|
145
143
|
exports.Prisma.OperationScalarFieldEnum = {
|
|
146
|
-
id:
|
|
147
|
-
opId:
|
|
148
|
-
documentId:
|
|
149
|
-
scope:
|
|
150
|
-
branch:
|
|
151
|
-
index:
|
|
152
|
-
skip:
|
|
153
|
-
hash:
|
|
154
|
-
timestamp:
|
|
155
|
-
actionId:
|
|
156
|
-
input:
|
|
157
|
-
type:
|
|
158
|
-
syncId:
|
|
159
|
-
clipboard:
|
|
160
|
-
context:
|
|
161
|
-
resultingState:
|
|
144
|
+
id: "id",
|
|
145
|
+
opId: "opId",
|
|
146
|
+
documentId: "documentId",
|
|
147
|
+
scope: "scope",
|
|
148
|
+
branch: "branch",
|
|
149
|
+
index: "index",
|
|
150
|
+
skip: "skip",
|
|
151
|
+
hash: "hash",
|
|
152
|
+
timestamp: "timestamp",
|
|
153
|
+
actionId: "actionId",
|
|
154
|
+
input: "input",
|
|
155
|
+
type: "type",
|
|
156
|
+
syncId: "syncId",
|
|
157
|
+
clipboard: "clipboard",
|
|
158
|
+
context: "context",
|
|
159
|
+
resultingState: "resultingState",
|
|
162
160
|
};
|
|
163
161
|
|
|
164
162
|
exports.Prisma.SynchronizationUnitScalarFieldEnum = {
|
|
165
|
-
id:
|
|
166
|
-
documentId:
|
|
167
|
-
scope:
|
|
168
|
-
branch:
|
|
163
|
+
id: "id",
|
|
164
|
+
documentId: "documentId",
|
|
165
|
+
scope: "scope",
|
|
166
|
+
branch: "branch",
|
|
169
167
|
};
|
|
170
168
|
|
|
171
169
|
exports.Prisma.AttachmentScalarFieldEnum = {
|
|
172
|
-
id:
|
|
173
|
-
operationId:
|
|
174
|
-
mimeType:
|
|
175
|
-
data:
|
|
176
|
-
filename:
|
|
177
|
-
extension:
|
|
178
|
-
hash:
|
|
170
|
+
id: "id",
|
|
171
|
+
operationId: "operationId",
|
|
172
|
+
mimeType: "mimeType",
|
|
173
|
+
data: "data",
|
|
174
|
+
filename: "filename",
|
|
175
|
+
extension: "extension",
|
|
176
|
+
hash: "hash",
|
|
179
177
|
};
|
|
180
178
|
|
|
181
179
|
exports.Prisma.SortOrder = {
|
|
182
|
-
asc:
|
|
183
|
-
desc:
|
|
180
|
+
asc: "asc",
|
|
181
|
+
desc: "desc",
|
|
184
182
|
};
|
|
185
183
|
|
|
186
184
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
187
185
|
DbNull: Prisma.DbNull,
|
|
188
|
-
JsonNull: Prisma.JsonNull
|
|
186
|
+
JsonNull: Prisma.JsonNull,
|
|
189
187
|
};
|
|
190
188
|
|
|
191
189
|
exports.Prisma.QueryMode = {
|
|
192
|
-
default:
|
|
193
|
-
insensitive:
|
|
190
|
+
default: "default",
|
|
191
|
+
insensitive: "insensitive",
|
|
194
192
|
};
|
|
195
193
|
|
|
196
194
|
exports.Prisma.NullsOrder = {
|
|
197
|
-
first:
|
|
198
|
-
last:
|
|
195
|
+
first: "first",
|
|
196
|
+
last: "last",
|
|
199
197
|
};
|
|
200
198
|
|
|
201
199
|
exports.Prisma.JsonNullValueFilter = {
|
|
202
200
|
DbNull: Prisma.DbNull,
|
|
203
201
|
JsonNull: Prisma.JsonNull,
|
|
204
|
-
AnyNull: Prisma.AnyNull
|
|
202
|
+
AnyNull: Prisma.AnyNull,
|
|
205
203
|
};
|
|
206
204
|
|
|
207
|
-
|
|
208
205
|
exports.Prisma.ModelName = {
|
|
209
|
-
Drive:
|
|
210
|
-
Document:
|
|
211
|
-
DriveDocument:
|
|
212
|
-
Operation:
|
|
213
|
-
SynchronizationUnit:
|
|
214
|
-
Attachment:
|
|
206
|
+
Drive: "Drive",
|
|
207
|
+
Document: "Document",
|
|
208
|
+
DriveDocument: "DriveDocument",
|
|
209
|
+
Operation: "Operation",
|
|
210
|
+
SynchronizationUnit: "SynchronizationUnit",
|
|
211
|
+
Attachment: "Attachment",
|
|
215
212
|
};
|
|
216
213
|
|
|
217
214
|
/**
|
|
@@ -221,26 +218,29 @@ class PrismaClient {
|
|
|
221
218
|
constructor() {
|
|
222
219
|
return new Proxy(this, {
|
|
223
220
|
get(target, prop) {
|
|
224
|
-
let message
|
|
225
|
-
const runtime = getRuntime()
|
|
221
|
+
let message;
|
|
222
|
+
const runtime = getRuntime();
|
|
226
223
|
if (runtime.isEdge) {
|
|
227
224
|
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
228
225
|
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
229
226
|
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
230
227
|
`;
|
|
231
228
|
} else {
|
|
232
|
-
message =
|
|
229
|
+
message =
|
|
230
|
+
"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `" +
|
|
231
|
+
runtime.prettyName +
|
|
232
|
+
"`).";
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
|
|
235
235
|
message += `
|
|
236
|
-
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
|
|
236
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
|
|
237
237
|
|
|
238
|
-
throw new Error(message)
|
|
239
|
-
}
|
|
240
|
-
})
|
|
238
|
+
throw new Error(message);
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
exports.PrismaClient = PrismaClient
|
|
244
|
+
exports.PrismaClient = PrismaClient;
|
|
245
245
|
|
|
246
|
-
Object.assign(exports, Prisma)
|
|
246
|
+
Object.assign(exports, Prisma);
|