document-drive 4.1.0-dev.77 → 4.1.0-dev.79
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/prisma/schema.prisma +93 -0
- package/dist/src/storage/prisma/client/default.d.ts +1 -0
- package/dist/src/storage/prisma/client/default.js +1 -0
- package/dist/src/storage/prisma/client/edge.d.ts +1 -0
- package/dist/src/storage/prisma/client/edge.js +259 -0
- package/dist/src/storage/prisma/client/index-browser.js +246 -0
- package/dist/src/storage/prisma/client/index.d.ts +10318 -0
- package/dist/src/storage/prisma/client/index.js +284 -0
- package/dist/src/storage/prisma/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/src/storage/prisma/client/libquery_engine-linux-musl.so.node +0 -0
- package/dist/src/storage/prisma/client/package.json +84 -0
- package/dist/src/storage/prisma/client/runtime/edge-esm.js +31 -0
- package/dist/src/storage/prisma/client/runtime/edge.js +31 -0
- package/dist/src/storage/prisma/client/runtime/index-browser.d.ts +365 -0
- package/dist/src/storage/prisma/client/runtime/index-browser.js +13 -0
- package/dist/src/storage/prisma/client/runtime/library.d.ts +3273 -0
- package/dist/src/storage/prisma/client/runtime/library.js +143 -0
- package/dist/src/storage/prisma/client/runtime/react-native.js +80 -0
- package/dist/src/storage/prisma/client/runtime/wasm.js +32 -0
- package/dist/src/storage/prisma/client/schema.prisma +93 -0
- package/dist/src/storage/prisma/client/wasm.d.ts +1 -0
- package/dist/src/storage/prisma/client/wasm.js +246 -0
- package/package.json +6 -4
- package/prisma/schema.prisma +93 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// This is your Prisma schema file,
|
|
2
|
+
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
3
|
+
|
|
4
|
+
generator client {
|
|
5
|
+
provider = "prisma-client-js"
|
|
6
|
+
binaryTargets = ["native", "linux-musl"]
|
|
7
|
+
output = "../src/storage/prisma/client"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
datasource db {
|
|
11
|
+
provider = "postgresql"
|
|
12
|
+
url = env("DATABASE_URL")
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
model Drive {
|
|
16
|
+
id String @id
|
|
17
|
+
driveDocuments DriveDocument[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
model Document {
|
|
21
|
+
id String @id
|
|
22
|
+
// ordinal used only for paging
|
|
23
|
+
ordinal Int @default(autoincrement()) @unique
|
|
24
|
+
created DateTime @default(now())
|
|
25
|
+
lastModified DateTime @default(now())
|
|
26
|
+
slug String? @unique
|
|
27
|
+
revision String
|
|
28
|
+
name String?
|
|
29
|
+
operations Operation[]
|
|
30
|
+
initialState String // json object with the scope as keys of the root object
|
|
31
|
+
documentType String
|
|
32
|
+
meta String?
|
|
33
|
+
synchronizationUnits SynchronizationUnit[]
|
|
34
|
+
scopes String[]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Model to map the many-to-many relationship between drives and documents
|
|
38
|
+
model DriveDocument {
|
|
39
|
+
driveId String
|
|
40
|
+
documentId String
|
|
41
|
+
drive Drive @relation(fields: [driveId], references: [id], onDelete: Cascade)
|
|
42
|
+
|
|
43
|
+
@@id([driveId, documentId])
|
|
44
|
+
@@index([driveId])
|
|
45
|
+
@@index([documentId])
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
model Operation {
|
|
49
|
+
id String @id @default(uuid())
|
|
50
|
+
opId String?
|
|
51
|
+
Document Document? @relation(fields: [documentId], references: [id], onDelete: Cascade)
|
|
52
|
+
documentId String
|
|
53
|
+
scope String
|
|
54
|
+
branch String
|
|
55
|
+
index Int
|
|
56
|
+
skip Int
|
|
57
|
+
hash String
|
|
58
|
+
timestamp DateTime
|
|
59
|
+
actionId String
|
|
60
|
+
input String
|
|
61
|
+
type String
|
|
62
|
+
attachments Attachment[]
|
|
63
|
+
syncId String?
|
|
64
|
+
clipboard Boolean? @default(false)
|
|
65
|
+
context Json?
|
|
66
|
+
resultingState Bytes?
|
|
67
|
+
|
|
68
|
+
SynchronizationUnit SynchronizationUnit? @relation(fields: [syncId], references: [id], onDelete: Cascade)
|
|
69
|
+
|
|
70
|
+
@@unique([documentId, scope, branch, index(sort: Asc)], name: "unique_operation")
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
model SynchronizationUnit {
|
|
74
|
+
id String @id
|
|
75
|
+
documentId String
|
|
76
|
+
|
|
77
|
+
Document Document @relation(fields: [documentId], references: [id], onDelete: Cascade)
|
|
78
|
+
scope String
|
|
79
|
+
branch String
|
|
80
|
+
operations Operation[]
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
model Attachment {
|
|
84
|
+
id String @id @default(uuid())
|
|
85
|
+
operationId String
|
|
86
|
+
Operation Operation @relation(fields: [operationId], references: [id], onDelete: Cascade)
|
|
87
|
+
|
|
88
|
+
mimeType String
|
|
89
|
+
data String
|
|
90
|
+
filename String?
|
|
91
|
+
extension String?
|
|
92
|
+
hash String
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { ...require('.') }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './default'
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
PrismaClientKnownRequestError,
|
|
6
|
+
PrismaClientUnknownRequestError,
|
|
7
|
+
PrismaClientRustPanicError,
|
|
8
|
+
PrismaClientInitializationError,
|
|
9
|
+
PrismaClientValidationError,
|
|
10
|
+
NotFoundError,
|
|
11
|
+
getPrismaClient,
|
|
12
|
+
sqltag,
|
|
13
|
+
empty,
|
|
14
|
+
join,
|
|
15
|
+
raw,
|
|
16
|
+
Decimal,
|
|
17
|
+
Debug,
|
|
18
|
+
objectEnumValues,
|
|
19
|
+
makeStrictEnum,
|
|
20
|
+
Extensions,
|
|
21
|
+
warnOnce,
|
|
22
|
+
defineDmmfProperty,
|
|
23
|
+
Public,
|
|
24
|
+
getRuntime
|
|
25
|
+
} = require('./runtime/edge.js')
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const Prisma = {}
|
|
29
|
+
|
|
30
|
+
exports.Prisma = Prisma
|
|
31
|
+
exports.$Enums = {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Prisma Client JS version: 5.17.0
|
|
35
|
+
* Query Engine version: 393aa359c9ad4a4bb28630fb5613f9c281cde053
|
|
36
|
+
*/
|
|
37
|
+
Prisma.prismaVersion = {
|
|
38
|
+
client: "5.17.0",
|
|
39
|
+
engine: "393aa359c9ad4a4bb28630fb5613f9c281cde053"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
43
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
44
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
45
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
46
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
47
|
+
Prisma.NotFoundError = NotFoundError
|
|
48
|
+
Prisma.Decimal = Decimal
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Re-export of sql-template-tag
|
|
52
|
+
*/
|
|
53
|
+
Prisma.sql = sqltag
|
|
54
|
+
Prisma.empty = empty
|
|
55
|
+
Prisma.join = join
|
|
56
|
+
Prisma.raw = raw
|
|
57
|
+
Prisma.validator = Public.validator
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Extensions
|
|
61
|
+
*/
|
|
62
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
63
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Shorthand utilities for JSON filtering
|
|
67
|
+
*/
|
|
68
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
69
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
70
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
71
|
+
|
|
72
|
+
Prisma.NullTypes = {
|
|
73
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
74
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
75
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Enums
|
|
82
|
+
*/
|
|
83
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
84
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
85
|
+
ReadCommitted: 'ReadCommitted',
|
|
86
|
+
RepeatableRead: 'RepeatableRead',
|
|
87
|
+
Serializable: 'Serializable'
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
exports.Prisma.DriveScalarFieldEnum = {
|
|
91
|
+
id: 'id'
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
exports.Prisma.DocumentScalarFieldEnum = {
|
|
95
|
+
id: 'id',
|
|
96
|
+
ordinal: 'ordinal',
|
|
97
|
+
created: 'created',
|
|
98
|
+
lastModified: 'lastModified',
|
|
99
|
+
slug: 'slug',
|
|
100
|
+
revision: 'revision',
|
|
101
|
+
name: 'name',
|
|
102
|
+
initialState: 'initialState',
|
|
103
|
+
documentType: 'documentType',
|
|
104
|
+
meta: 'meta',
|
|
105
|
+
scopes: 'scopes'
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.Prisma.DriveDocumentScalarFieldEnum = {
|
|
109
|
+
driveId: 'driveId',
|
|
110
|
+
documentId: 'documentId'
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
exports.Prisma.OperationScalarFieldEnum = {
|
|
114
|
+
id: 'id',
|
|
115
|
+
opId: 'opId',
|
|
116
|
+
documentId: 'documentId',
|
|
117
|
+
scope: 'scope',
|
|
118
|
+
branch: 'branch',
|
|
119
|
+
index: 'index',
|
|
120
|
+
skip: 'skip',
|
|
121
|
+
hash: 'hash',
|
|
122
|
+
timestamp: 'timestamp',
|
|
123
|
+
actionId: 'actionId',
|
|
124
|
+
input: 'input',
|
|
125
|
+
type: 'type',
|
|
126
|
+
syncId: 'syncId',
|
|
127
|
+
clipboard: 'clipboard',
|
|
128
|
+
context: 'context',
|
|
129
|
+
resultingState: 'resultingState'
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
exports.Prisma.SynchronizationUnitScalarFieldEnum = {
|
|
133
|
+
id: 'id',
|
|
134
|
+
documentId: 'documentId',
|
|
135
|
+
scope: 'scope',
|
|
136
|
+
branch: 'branch'
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
exports.Prisma.AttachmentScalarFieldEnum = {
|
|
140
|
+
id: 'id',
|
|
141
|
+
operationId: 'operationId',
|
|
142
|
+
mimeType: 'mimeType',
|
|
143
|
+
data: 'data',
|
|
144
|
+
filename: 'filename',
|
|
145
|
+
extension: 'extension',
|
|
146
|
+
hash: 'hash'
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
exports.Prisma.SortOrder = {
|
|
150
|
+
asc: 'asc',
|
|
151
|
+
desc: 'desc'
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
exports.Prisma.NullableJsonNullValueInput = {
|
|
155
|
+
DbNull: Prisma.DbNull,
|
|
156
|
+
JsonNull: Prisma.JsonNull
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
exports.Prisma.QueryMode = {
|
|
160
|
+
default: 'default',
|
|
161
|
+
insensitive: 'insensitive'
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
exports.Prisma.NullsOrder = {
|
|
165
|
+
first: 'first',
|
|
166
|
+
last: 'last'
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
170
|
+
DbNull: Prisma.DbNull,
|
|
171
|
+
JsonNull: Prisma.JsonNull,
|
|
172
|
+
AnyNull: Prisma.AnyNull
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
exports.Prisma.ModelName = {
|
|
177
|
+
Drive: 'Drive',
|
|
178
|
+
Document: 'Document',
|
|
179
|
+
DriveDocument: 'DriveDocument',
|
|
180
|
+
Operation: 'Operation',
|
|
181
|
+
SynchronizationUnit: 'SynchronizationUnit',
|
|
182
|
+
Attachment: 'Attachment'
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Create the Client
|
|
186
|
+
*/
|
|
187
|
+
const config = {
|
|
188
|
+
"generator": {
|
|
189
|
+
"name": "client",
|
|
190
|
+
"provider": {
|
|
191
|
+
"fromEnvVar": null,
|
|
192
|
+
"value": "prisma-client-js"
|
|
193
|
+
},
|
|
194
|
+
"output": {
|
|
195
|
+
"value": "/Users/benjaminjordan/projects/powerhouse/powerhouse/packages/document-drive/src/storage/prisma/client",
|
|
196
|
+
"fromEnvVar": null
|
|
197
|
+
},
|
|
198
|
+
"config": {
|
|
199
|
+
"engineType": "library"
|
|
200
|
+
},
|
|
201
|
+
"binaryTargets": [
|
|
202
|
+
{
|
|
203
|
+
"fromEnvVar": null,
|
|
204
|
+
"value": "darwin-arm64",
|
|
205
|
+
"native": true
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"fromEnvVar": null,
|
|
209
|
+
"value": "linux-musl"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"previewFeatures": [],
|
|
213
|
+
"sourceFilePath": "/Users/benjaminjordan/projects/powerhouse/powerhouse/packages/document-drive/prisma/schema.prisma",
|
|
214
|
+
"isCustomOutput": true
|
|
215
|
+
},
|
|
216
|
+
"relativeEnvPaths": {
|
|
217
|
+
"rootEnvPath": null,
|
|
218
|
+
"schemaEnvPath": "../../../../.env"
|
|
219
|
+
},
|
|
220
|
+
"relativePath": "../../../../prisma",
|
|
221
|
+
"clientVersion": "5.17.0",
|
|
222
|
+
"engineVersion": "393aa359c9ad4a4bb28630fb5613f9c281cde053",
|
|
223
|
+
"datasourceNames": [
|
|
224
|
+
"db"
|
|
225
|
+
],
|
|
226
|
+
"activeProvider": "postgresql",
|
|
227
|
+
"postinstall": false,
|
|
228
|
+
"inlineDatasources": {
|
|
229
|
+
"db": {
|
|
230
|
+
"url": {
|
|
231
|
+
"fromEnvVar": "DATABASE_URL",
|
|
232
|
+
"value": null
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"linux-musl\"]\n output = \"../src/storage/prisma/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel Drive {\n id String @id\n driveDocuments DriveDocument[]\n}\n\nmodel Document {\n id String @id\n // ordinal used only for paging\n ordinal Int @unique @default(autoincrement())\n created DateTime @default(now())\n lastModified DateTime @default(now())\n slug String? @unique\n revision String\n name String?\n operations Operation[]\n initialState String // json object with the scope as keys of the root object\n documentType String\n meta String?\n synchronizationUnits SynchronizationUnit[]\n scopes String[]\n}\n\n// Model to map the many-to-many relationship between drives and documents\nmodel DriveDocument {\n driveId String\n documentId String\n drive Drive @relation(fields: [driveId], references: [id], onDelete: Cascade)\n\n @@id([driveId, documentId])\n @@index([driveId])\n @@index([documentId])\n}\n\nmodel Operation {\n id String @id @default(uuid())\n opId String?\n Document Document? @relation(fields: [documentId], references: [id], onDelete: Cascade)\n documentId String\n scope String\n branch String\n index Int\n skip Int\n hash String\n timestamp DateTime\n actionId String\n input String\n type String\n attachments Attachment[]\n syncId String?\n clipboard Boolean? @default(false)\n context Json?\n resultingState Bytes?\n\n SynchronizationUnit SynchronizationUnit? @relation(fields: [syncId], references: [id], onDelete: Cascade)\n\n @@unique([documentId, scope, branch, index(sort: Asc)], name: \"unique_operation\")\n}\n\nmodel SynchronizationUnit {\n id String @id\n documentId String\n\n Document Document @relation(fields: [documentId], references: [id], onDelete: Cascade)\n scope String\n branch String\n operations Operation[]\n}\n\nmodel Attachment {\n id String @id @default(uuid())\n operationId String\n Operation Operation @relation(fields: [operationId], references: [id], onDelete: Cascade)\n\n mimeType String\n data String\n filename String?\n extension String?\n hash String\n}\n",
|
|
237
|
+
"inlineSchemaHash": "def9250859812e8f340f32ed129ff919181a0536056618a496218e59a3582c17",
|
|
238
|
+
"copyEngine": true
|
|
239
|
+
}
|
|
240
|
+
config.dirname = '/'
|
|
241
|
+
|
|
242
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Drive\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"driveDocuments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DriveDocument\",\"relationName\":\"DriveToDriveDocument\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Document\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ordinal\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Int\",\"default\":{\"name\":\"autoincrement\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"lastModified\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"slug\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"revision\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"operations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Operation\",\"relationName\":\"DocumentToOperation\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"initialState\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"documentType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"meta\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"synchronizationUnits\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SynchronizationUnit\",\"relationName\":\"DocumentToSynchronizationUnit\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scopes\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"DriveDocument\":{\"dbName\":null,\"fields\":[{\"name\":\"driveId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"documentId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"drive\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Drive\",\"relationName\":\"DriveToDriveDocument\",\"relationFromFields\":[\"driveId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":{\"name\":null,\"fields\":[\"driveId\",\"documentId\"]},\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Operation\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"opId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Document\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Document\",\"relationName\":\"DocumentToOperation\",\"relationFromFields\":[\"documentId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"documentId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"branch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"index\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"skip\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"actionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"input\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"attachments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Attachment\",\"relationName\":\"AttachmentToOperation\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"syncId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"clipboard\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"context\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"resultingState\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Bytes\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"SynchronizationUnit\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SynchronizationUnit\",\"relationName\":\"OperationToSynchronizationUnit\",\"relationFromFields\":[\"syncId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"documentId\",\"scope\",\"branch\",\"index\"]],\"uniqueIndexes\":[{\"name\":\"unique_operation\",\"fields\":[\"documentId\",\"scope\",\"branch\",\"index\"]}],\"isGenerated\":false},\"SynchronizationUnit\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"documentId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Document\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Document\",\"relationName\":\"DocumentToSynchronizationUnit\",\"relationFromFields\":[\"documentId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"scope\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"branch\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"operations\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Operation\",\"relationName\":\"OperationToSynchronizationUnit\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Attachment\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"operationId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Operation\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Operation\",\"relationName\":\"AttachmentToOperation\",\"relationFromFields\":[\"operationId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mimeType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"data\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filename\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"extension\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}")
|
|
243
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
244
|
+
config.engineWasm = undefined
|
|
245
|
+
|
|
246
|
+
config.injectableEdgeEnv = () => ({
|
|
247
|
+
parsed: {
|
|
248
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
|
|
252
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
|
253
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const PrismaClient = getPrismaClient(config)
|
|
257
|
+
exports.PrismaClient = PrismaClient
|
|
258
|
+
Object.assign(exports, Prisma)
|
|
259
|
+
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Decimal,
|
|
6
|
+
objectEnumValues,
|
|
7
|
+
makeStrictEnum,
|
|
8
|
+
Public,
|
|
9
|
+
getRuntime,
|
|
10
|
+
} = require('./runtime/index-browser.js')
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const Prisma = {}
|
|
14
|
+
|
|
15
|
+
exports.Prisma = Prisma
|
|
16
|
+
exports.$Enums = {}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Prisma Client JS version: 5.17.0
|
|
20
|
+
* Query Engine version: 393aa359c9ad4a4bb28630fb5613f9c281cde053
|
|
21
|
+
*/
|
|
22
|
+
Prisma.prismaVersion = {
|
|
23
|
+
client: "5.17.0",
|
|
24
|
+
engine: "393aa359c9ad4a4bb28630fb5613f9c281cde053"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
28
|
+
const runtimeName = getRuntime().prettyName;
|
|
29
|
+
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
|
+
)};
|
|
32
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
33
|
+
const runtimeName = getRuntime().prettyName;
|
|
34
|
+
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
|
+
)}
|
|
37
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
38
|
+
const runtimeName = getRuntime().prettyName;
|
|
39
|
+
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
|
+
)}
|
|
42
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
43
|
+
const runtimeName = getRuntime().prettyName;
|
|
44
|
+
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
|
+
)}
|
|
47
|
+
Prisma.PrismaClientValidationError = () => {
|
|
48
|
+
const runtimeName = getRuntime().prettyName;
|
|
49
|
+
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
|
+
)}
|
|
52
|
+
Prisma.NotFoundError = () => {
|
|
53
|
+
const runtimeName = getRuntime().prettyName;
|
|
54
|
+
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
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Re-export of sql-template-tag
|
|
61
|
+
*/
|
|
62
|
+
Prisma.sql = () => {
|
|
63
|
+
const runtimeName = getRuntime().prettyName;
|
|
64
|
+
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
|
+
)}
|
|
67
|
+
Prisma.empty = () => {
|
|
68
|
+
const runtimeName = getRuntime().prettyName;
|
|
69
|
+
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
|
+
)}
|
|
72
|
+
Prisma.join = () => {
|
|
73
|
+
const runtimeName = getRuntime().prettyName;
|
|
74
|
+
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
|
+
)}
|
|
77
|
+
Prisma.raw = () => {
|
|
78
|
+
const runtimeName = getRuntime().prettyName;
|
|
79
|
+
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
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Extensions
|
|
86
|
+
*/
|
|
87
|
+
Prisma.getExtensionContext = () => {
|
|
88
|
+
const runtimeName = getRuntime().prettyName;
|
|
89
|
+
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
|
+
)}
|
|
92
|
+
Prisma.defineExtension = () => {
|
|
93
|
+
const runtimeName = getRuntime().prettyName;
|
|
94
|
+
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
|
+
)}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Shorthand utilities for JSON filtering
|
|
100
|
+
*/
|
|
101
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
102
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
103
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
104
|
+
|
|
105
|
+
Prisma.NullTypes = {
|
|
106
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
107
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
108
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Enums
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
116
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
117
|
+
ReadCommitted: 'ReadCommitted',
|
|
118
|
+
RepeatableRead: 'RepeatableRead',
|
|
119
|
+
Serializable: 'Serializable'
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
exports.Prisma.DriveScalarFieldEnum = {
|
|
123
|
+
id: 'id'
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
exports.Prisma.DocumentScalarFieldEnum = {
|
|
127
|
+
id: 'id',
|
|
128
|
+
ordinal: 'ordinal',
|
|
129
|
+
created: 'created',
|
|
130
|
+
lastModified: 'lastModified',
|
|
131
|
+
slug: 'slug',
|
|
132
|
+
revision: 'revision',
|
|
133
|
+
name: 'name',
|
|
134
|
+
initialState: 'initialState',
|
|
135
|
+
documentType: 'documentType',
|
|
136
|
+
meta: 'meta',
|
|
137
|
+
scopes: 'scopes'
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
exports.Prisma.DriveDocumentScalarFieldEnum = {
|
|
141
|
+
driveId: 'driveId',
|
|
142
|
+
documentId: 'documentId'
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
exports.Prisma.OperationScalarFieldEnum = {
|
|
146
|
+
id: 'id',
|
|
147
|
+
opId: 'opId',
|
|
148
|
+
documentId: 'documentId',
|
|
149
|
+
scope: 'scope',
|
|
150
|
+
branch: 'branch',
|
|
151
|
+
index: 'index',
|
|
152
|
+
skip: 'skip',
|
|
153
|
+
hash: 'hash',
|
|
154
|
+
timestamp: 'timestamp',
|
|
155
|
+
actionId: 'actionId',
|
|
156
|
+
input: 'input',
|
|
157
|
+
type: 'type',
|
|
158
|
+
syncId: 'syncId',
|
|
159
|
+
clipboard: 'clipboard',
|
|
160
|
+
context: 'context',
|
|
161
|
+
resultingState: 'resultingState'
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
exports.Prisma.SynchronizationUnitScalarFieldEnum = {
|
|
165
|
+
id: 'id',
|
|
166
|
+
documentId: 'documentId',
|
|
167
|
+
scope: 'scope',
|
|
168
|
+
branch: 'branch'
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.Prisma.AttachmentScalarFieldEnum = {
|
|
172
|
+
id: 'id',
|
|
173
|
+
operationId: 'operationId',
|
|
174
|
+
mimeType: 'mimeType',
|
|
175
|
+
data: 'data',
|
|
176
|
+
filename: 'filename',
|
|
177
|
+
extension: 'extension',
|
|
178
|
+
hash: 'hash'
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
exports.Prisma.SortOrder = {
|
|
182
|
+
asc: 'asc',
|
|
183
|
+
desc: 'desc'
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
exports.Prisma.NullableJsonNullValueInput = {
|
|
187
|
+
DbNull: Prisma.DbNull,
|
|
188
|
+
JsonNull: Prisma.JsonNull
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
exports.Prisma.QueryMode = {
|
|
192
|
+
default: 'default',
|
|
193
|
+
insensitive: 'insensitive'
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
exports.Prisma.NullsOrder = {
|
|
197
|
+
first: 'first',
|
|
198
|
+
last: 'last'
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
202
|
+
DbNull: Prisma.DbNull,
|
|
203
|
+
JsonNull: Prisma.JsonNull,
|
|
204
|
+
AnyNull: Prisma.AnyNull
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
exports.Prisma.ModelName = {
|
|
209
|
+
Drive: 'Drive',
|
|
210
|
+
Document: 'Document',
|
|
211
|
+
DriveDocument: 'DriveDocument',
|
|
212
|
+
Operation: 'Operation',
|
|
213
|
+
SynchronizationUnit: 'SynchronizationUnit',
|
|
214
|
+
Attachment: 'Attachment'
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* This is a stub Prisma Client that will error at runtime if called.
|
|
219
|
+
*/
|
|
220
|
+
class PrismaClient {
|
|
221
|
+
constructor() {
|
|
222
|
+
return new Proxy(this, {
|
|
223
|
+
get(target, prop) {
|
|
224
|
+
let message
|
|
225
|
+
const runtime = getRuntime()
|
|
226
|
+
if (runtime.isEdge) {
|
|
227
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
228
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
229
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
230
|
+
`;
|
|
231
|
+
} else {
|
|
232
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
message += `
|
|
236
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
237
|
+
|
|
238
|
+
throw new Error(message)
|
|
239
|
+
}
|
|
240
|
+
})
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
exports.PrismaClient = PrismaClient
|
|
245
|
+
|
|
246
|
+
Object.assign(exports, Prisma)
|