document-drive 6.0.0-dev.108 → 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 +4 -4
- 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
package/dist/storage/prisma.mjs
CHANGED
|
@@ -909,7 +909,7 @@ var require_library = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
909
909
|
});
|
|
910
910
|
var Zi = Z((GP, Ga) => {
|
|
911
911
|
"use strict";
|
|
912
|
-
Ga.exports = function() {
|
|
912
|
+
Ga.exports = (function() {
|
|
913
913
|
function e(t, r, n, i, o) {
|
|
914
914
|
return t < r || n < r ? t > n ? n + 1 : t + 1 : i === o ? r : r + 1;
|
|
915
915
|
}
|
|
@@ -928,7 +928,7 @@ var require_library = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
928
928
|
for (; a < o;) for (O = r.charCodeAt(s + (u = a)), f = ++a, l = 0; l < me; l += 2) g = E[l], E[l] = f = e(g, u, f, O, E[l + 1]), u = g;
|
|
929
929
|
return f;
|
|
930
930
|
};
|
|
931
|
-
}();
|
|
931
|
+
})();
|
|
932
932
|
});
|
|
933
933
|
var wm = {};
|
|
934
934
|
qt(wm, {
|
|
@@ -2677,7 +2677,7 @@ ${(0, rs.default)(zu(n), 2)}
|
|
|
2677
2677
|
}
|
|
2678
2678
|
return e.precision -= r, t;
|
|
2679
2679
|
}
|
|
2680
|
-
var N = function() {
|
|
2680
|
+
var N = (function() {
|
|
2681
2681
|
function e(n, i, o) {
|
|
2682
2682
|
var s, a = 0, l = n.length;
|
|
2683
2683
|
for (n = n.slice(); l--;) s = n[l] * i + a, n[l] = s % o | 0, a = s / o | 0;
|
|
@@ -2722,7 +2722,7 @@ ${(0, rs.default)(zu(n), 2)}
|
|
|
2722
2722
|
}
|
|
2723
2723
|
return T;
|
|
2724
2724
|
};
|
|
2725
|
-
}();
|
|
2725
|
+
})();
|
|
2726
2726
|
function y(e, t, r, n) {
|
|
2727
2727
|
var i, o, s, a, l, u, c, p, d, f = e.constructor;
|
|
2728
2728
|
e: if (t != null) {
|
|
@@ -7482,53 +7482,53 @@ var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7482
7482
|
* Create the Client
|
|
7483
7483
|
*/
|
|
7484
7484
|
const config = {
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7485
|
+
generator: {
|
|
7486
|
+
name: "client",
|
|
7487
|
+
provider: {
|
|
7488
|
+
fromEnvVar: null,
|
|
7489
|
+
value: "prisma-client-js"
|
|
7490
7490
|
},
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7491
|
+
output: {
|
|
7492
|
+
value: "/Users/benjaminjordan/projects/powerhouse/powerhouse/packages/document-drive/src/storage/prisma/client",
|
|
7493
|
+
fromEnvVar: null
|
|
7494
7494
|
},
|
|
7495
|
-
|
|
7496
|
-
|
|
7495
|
+
config: { engineType: "library" },
|
|
7496
|
+
binaryTargets: [
|
|
7497
7497
|
{
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7498
|
+
fromEnvVar: null,
|
|
7499
|
+
value: "darwin-arm64",
|
|
7500
|
+
native: true
|
|
7501
7501
|
},
|
|
7502
7502
|
{
|
|
7503
|
-
|
|
7504
|
-
|
|
7503
|
+
fromEnvVar: null,
|
|
7504
|
+
value: "linux-musl"
|
|
7505
7505
|
},
|
|
7506
7506
|
{
|
|
7507
|
-
|
|
7508
|
-
|
|
7507
|
+
fromEnvVar: null,
|
|
7508
|
+
value: "debian-openssl-3.0.x"
|
|
7509
7509
|
}
|
|
7510
7510
|
],
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7511
|
+
previewFeatures: [],
|
|
7512
|
+
sourceFilePath: "/Users/benjaminjordan/projects/powerhouse/powerhouse/packages/document-drive/prisma/schema.prisma",
|
|
7513
|
+
isCustomOutput: true
|
|
7514
7514
|
},
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7515
|
+
relativeEnvPaths: {
|
|
7516
|
+
rootEnvPath: null,
|
|
7517
|
+
schemaEnvPath: "../../../../.env"
|
|
7518
7518
|
},
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7519
|
+
relativePath: "../../../../prisma",
|
|
7520
|
+
clientVersion: "5.17.0",
|
|
7521
|
+
engineVersion: "393aa359c9ad4a4bb28630fb5613f9c281cde053",
|
|
7522
|
+
datasourceNames: ["db"],
|
|
7523
|
+
activeProvider: "postgresql",
|
|
7524
|
+
postinstall: false,
|
|
7525
|
+
inlineDatasources: { db: { url: {
|
|
7526
|
+
fromEnvVar: "DATABASE_URL",
|
|
7527
|
+
value: null
|
|
7528
7528
|
} } },
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7529
|
+
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\", \"debian-openssl-3.0.x\"]\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",
|
|
7530
|
+
inlineSchemaHash: "b973e57265383a7127dec57811ef41ddf1192f30398c1d32ee1a425c026d13a8",
|
|
7531
|
+
copyEngine: true
|
|
7532
7532
|
};
|
|
7533
7533
|
const fs = __require("fs");
|
|
7534
7534
|
config.dirname = __dirname;
|