document-drive 4.0.0-staging.6 → 4.0.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.
Files changed (254) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/prisma/schema.prisma +2 -1
  6. package/dist/src/drive-document-model/gen/document-model.js +3 -3
  7. package/dist/src/drive-document-model/gen/document-model.js.map +1 -1
  8. package/dist/src/drive-document-model/gen/node/creators.d.ts +2 -6
  9. package/dist/src/drive-document-model/gen/node/creators.d.ts.map +1 -1
  10. package/dist/src/drive-document-model/gen/node/creators.js +1 -8
  11. package/dist/src/drive-document-model/gen/node/creators.js.map +1 -1
  12. package/dist/src/drive-document-model/gen/schema/types.d.ts +14 -1
  13. package/dist/src/drive-document-model/gen/schema/types.d.ts.map +1 -1
  14. package/dist/src/drive-document-model/gen/schema/zod.d.ts +5 -1
  15. package/dist/src/drive-document-model/gen/schema/zod.d.ts.map +1 -1
  16. package/dist/src/drive-document-model/gen/schema/zod.js +12 -0
  17. package/dist/src/drive-document-model/gen/schema/zod.js.map +1 -1
  18. package/dist/src/drive-document-model/gen/types.d.ts +4 -13
  19. package/dist/src/drive-document-model/gen/types.d.ts.map +1 -1
  20. package/dist/src/drive-document-model/gen/types.js.map +1 -1
  21. package/dist/src/drive-document-model/module.d.ts +1 -2
  22. package/dist/src/drive-document-model/module.d.ts.map +1 -1
  23. package/dist/src/drive-document-model/src/reducers/node.d.ts.map +1 -1
  24. package/dist/src/drive-document-model/src/reducers/node.js +25 -1
  25. package/dist/src/drive-document-model/src/reducers/node.js.map +1 -1
  26. package/dist/src/drive-document-model/src/tests/actions.test.js +23 -1
  27. package/dist/src/drive-document-model/src/tests/actions.test.js.map +1 -1
  28. package/dist/src/drive-document-model/src/tests/base.test.js +32 -0
  29. package/dist/src/drive-document-model/src/tests/base.test.js.map +1 -1
  30. package/dist/src/drive-document-model/src/tests/utils.test.js +37 -7
  31. package/dist/src/drive-document-model/src/tests/utils.test.js.map +1 -1
  32. package/dist/src/drive-document-model/src/utils.d.ts +8 -2
  33. package/dist/src/drive-document-model/src/utils.d.ts.map +1 -1
  34. package/dist/src/drive-document-model/src/utils.js +55 -6
  35. package/dist/src/drive-document-model/src/utils.js.map +1 -1
  36. package/dist/src/queue/base.d.ts +27 -6
  37. package/dist/src/queue/base.d.ts.map +1 -1
  38. package/dist/src/queue/base.js +203 -15
  39. package/dist/src/queue/base.js.map +1 -1
  40. package/dist/src/queue/redis.d.ts +27 -1
  41. package/dist/src/queue/redis.d.ts.map +1 -1
  42. package/dist/src/queue/redis.js +110 -122
  43. package/dist/src/queue/redis.js.map +1 -1
  44. package/dist/src/queue/types.d.ts +12 -18
  45. package/dist/src/queue/types.d.ts.map +1 -1
  46. package/dist/src/queue/types.js +0 -3
  47. package/dist/src/queue/types.js.map +1 -1
  48. package/dist/src/server/base-server.d.ts +11 -87
  49. package/dist/src/server/base-server.d.ts.map +1 -1
  50. package/dist/src/server/base-server.js +250 -549
  51. package/dist/src/server/base-server.js.map +1 -1
  52. package/dist/src/server/builder.js +2 -2
  53. package/dist/src/server/builder.js.map +1 -1
  54. package/dist/src/server/error.d.ts +3 -3
  55. package/dist/src/server/error.d.ts.map +1 -1
  56. package/dist/src/server/error.js +2 -2
  57. package/dist/src/server/error.js.map +1 -1
  58. package/dist/src/server/listener/listener-manager.d.ts +6 -5
  59. package/dist/src/server/listener/listener-manager.d.ts.map +1 -1
  60. package/dist/src/server/listener/listener-manager.js +79 -62
  61. package/dist/src/server/listener/listener-manager.js.map +1 -1
  62. package/dist/src/server/listener/transmitter/internal.d.ts +1 -1
  63. package/dist/src/server/listener/transmitter/internal.d.ts.map +1 -1
  64. package/dist/src/server/listener/transmitter/internal.js +12 -14
  65. package/dist/src/server/listener/transmitter/internal.js.map +1 -1
  66. package/dist/src/server/listener/transmitter/pull-responder.d.ts.map +1 -1
  67. package/dist/src/server/listener/transmitter/pull-responder.js +8 -14
  68. package/dist/src/server/listener/transmitter/pull-responder.js.map +1 -1
  69. package/dist/src/server/listener/transmitter/switchboard-push.d.ts.map +1 -1
  70. package/dist/src/server/listener/transmitter/switchboard-push.js +8 -13
  71. package/dist/src/server/listener/transmitter/switchboard-push.js.map +1 -1
  72. package/dist/src/server/sync-manager.d.ts +10 -8
  73. package/dist/src/server/sync-manager.d.ts.map +1 -1
  74. package/dist/src/server/sync-manager.js +147 -62
  75. package/dist/src/server/sync-manager.js.map +1 -1
  76. package/dist/src/server/types.d.ts +31 -114
  77. package/dist/src/server/types.d.ts.map +1 -1
  78. package/dist/src/server/types.js.map +1 -1
  79. package/dist/src/server/utils.d.ts +1 -10
  80. package/dist/src/server/utils.d.ts.map +1 -1
  81. package/dist/src/server/utils.js +0 -41
  82. package/dist/src/server/utils.js.map +1 -1
  83. package/dist/src/storage/browser.d.ts +2 -7
  84. package/dist/src/storage/browser.d.ts.map +1 -1
  85. package/dist/src/storage/browser.js +22 -80
  86. package/dist/src/storage/browser.js.map +1 -1
  87. package/dist/src/storage/filesystem.d.ts +2 -7
  88. package/dist/src/storage/filesystem.d.ts.map +1 -1
  89. package/dist/src/storage/filesystem.js +22 -79
  90. package/dist/src/storage/filesystem.js.map +1 -1
  91. package/dist/src/storage/memory.d.ts +2 -7
  92. package/dist/src/storage/memory.d.ts.map +1 -1
  93. package/dist/src/storage/memory.js +22 -76
  94. package/dist/src/storage/memory.js.map +1 -1
  95. package/dist/src/storage/prisma/client/edge.js +4 -5
  96. package/dist/src/storage/prisma/client/index-browser.js +1 -2
  97. package/dist/src/storage/prisma/client/index.d.ts +249 -58
  98. package/dist/src/storage/prisma/client/index.js +4 -5
  99. package/dist/src/storage/prisma/client/package.json +1 -1
  100. package/dist/src/storage/prisma/client/schema.prisma +3 -2
  101. package/dist/src/storage/prisma/client/wasm.js +1 -2
  102. package/dist/src/storage/prisma/prisma.d.ts +4 -9
  103. package/dist/src/storage/prisma/prisma.d.ts.map +1 -1
  104. package/dist/src/storage/prisma/prisma.js +51 -119
  105. package/dist/src/storage/prisma/prisma.js.map +1 -1
  106. package/dist/src/storage/types.d.ts +4 -43
  107. package/dist/src/storage/types.d.ts.map +1 -1
  108. package/dist/src/storage/utils.d.ts +0 -3
  109. package/dist/src/storage/utils.d.ts.map +1 -1
  110. package/dist/src/storage/utils.js +0 -14
  111. package/dist/src/storage/utils.js.map +1 -1
  112. package/dist/src/utils/gql-transformations.d.ts +5 -14
  113. package/dist/src/utils/gql-transformations.d.ts.map +1 -1
  114. package/dist/src/utils/gql-transformations.js +0 -1
  115. package/dist/src/utils/gql-transformations.js.map +1 -1
  116. package/dist/src/utils/misc.d.ts +0 -2
  117. package/dist/src/utils/misc.d.ts.map +1 -1
  118. package/dist/src/utils/misc.js +0 -4
  119. package/dist/src/utils/misc.js.map +1 -1
  120. package/dist/test/cache.test.d.ts +2 -0
  121. package/dist/test/cache.test.d.ts.map +1 -0
  122. package/dist/test/cache.test.js +281 -0
  123. package/dist/test/cache.test.js.map +1 -0
  124. package/dist/test/default-remote-drives.test.d.ts +2 -0
  125. package/dist/test/default-remote-drives.test.d.ts.map +1 -0
  126. package/dist/test/default-remote-drives.test.js +446 -0
  127. package/dist/test/default-remote-drives.test.js.map +1 -0
  128. package/dist/test/document-helpers/addUndo.test.d.ts +2 -0
  129. package/dist/test/document-helpers/addUndo.test.d.ts.map +1 -0
  130. package/dist/test/document-helpers/addUndo.test.js +120 -0
  131. package/dist/test/document-helpers/addUndo.test.js.map +1 -0
  132. package/dist/test/document-helpers/attachBranch.test.d.ts +2 -0
  133. package/dist/test/document-helpers/attachBranch.test.d.ts.map +1 -0
  134. package/dist/test/document-helpers/attachBranch.test.js +333 -0
  135. package/dist/test/document-helpers/attachBranch.test.js.map +1 -0
  136. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts +2 -0
  137. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts.map +1 -0
  138. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js +252 -0
  139. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js.map +1 -0
  140. package/dist/test/document-helpers/garbageCollect.test.d.ts +2 -0
  141. package/dist/test/document-helpers/garbageCollect.test.d.ts.map +1 -0
  142. package/dist/test/document-helpers/garbageCollect.test.js +136 -0
  143. package/dist/test/document-helpers/garbageCollect.test.js.map +1 -0
  144. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts +2 -0
  145. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts.map +1 -0
  146. package/dist/test/document-helpers/groupOperationsByScope.test.js +98 -0
  147. package/dist/test/document-helpers/groupOperationsByScope.test.js.map +1 -0
  148. package/dist/test/document-helpers/merge.test.d.ts +2 -0
  149. package/dist/test/document-helpers/merge.test.d.ts.map +1 -0
  150. package/dist/test/document-helpers/merge.test.js +757 -0
  151. package/dist/test/document-helpers/merge.test.js.map +1 -0
  152. package/dist/test/document-helpers/nextSkipNumber.test.d.ts +2 -0
  153. package/dist/test/document-helpers/nextSkipNumber.test.d.ts.map +1 -0
  154. package/dist/test/document-helpers/nextSkipNumber.test.js +123 -0
  155. package/dist/test/document-helpers/nextSkipNumber.test.js.map +1 -0
  156. package/dist/test/document-helpers/prepareOperations.test.d.ts +2 -0
  157. package/dist/test/document-helpers/prepareOperations.test.d.ts.map +1 -0
  158. package/dist/test/document-helpers/prepareOperations.test.js +304 -0
  159. package/dist/test/document-helpers/prepareOperations.test.js.map +1 -0
  160. package/dist/test/document-helpers/removeExistingOperations.test.d.ts +2 -0
  161. package/dist/test/document-helpers/removeExistingOperations.test.d.ts.map +1 -0
  162. package/dist/test/document-helpers/removeExistingOperations.test.js +150 -0
  163. package/dist/test/document-helpers/removeExistingOperations.test.js.map +1 -0
  164. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts +2 -0
  165. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts.map +1 -0
  166. package/dist/test/document-helpers/reshuffleByTimestamp.test.js +148 -0
  167. package/dist/test/document-helpers/reshuffleByTimestamp.test.js.map +1 -0
  168. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts +2 -0
  169. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts.map +1 -0
  170. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js +200 -0
  171. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js.map +1 -0
  172. package/dist/test/document-helpers/sortOperations.test.d.ts +2 -0
  173. package/dist/test/document-helpers/sortOperations.test.d.ts.map +1 -0
  174. package/dist/test/document-helpers/sortOperations.test.js +101 -0
  175. package/dist/test/document-helpers/sortOperations.test.js.map +1 -0
  176. package/dist/test/document-helpers/split.test.d.ts +2 -0
  177. package/dist/test/document-helpers/split.test.d.ts.map +1 -0
  178. package/dist/test/document-helpers/split.test.js +121 -0
  179. package/dist/test/document-helpers/split.test.js.map +1 -0
  180. package/dist/test/document-helpers/utils.d.ts +8 -0
  181. package/dist/test/document-helpers/utils.d.ts.map +1 -0
  182. package/dist/test/document-helpers/utils.js +22 -0
  183. package/dist/test/document-helpers/utils.js.map +1 -0
  184. package/dist/test/drive-operations.test.d.ts +2 -0
  185. package/dist/test/drive-operations.test.d.ts.map +1 -0
  186. package/dist/test/drive-operations.test.js +145 -0
  187. package/dist/test/drive-operations.test.js.map +1 -0
  188. package/dist/test/graphql.test.d.ts +2 -0
  189. package/dist/test/graphql.test.d.ts.map +1 -0
  190. package/dist/test/graphql.test.js +10 -0
  191. package/dist/test/graphql.test.js.map +1 -0
  192. package/dist/test/internal-listener.test.d.ts +2 -0
  193. package/dist/test/internal-listener.test.d.ts.map +1 -0
  194. package/dist/test/internal-listener.test.js +277 -0
  195. package/dist/test/internal-listener.test.js.map +1 -0
  196. package/dist/test/queue.test.d.ts +2 -0
  197. package/dist/test/queue.test.d.ts.map +1 -0
  198. package/dist/test/queue.test.js +338 -0
  199. package/dist/test/queue.test.js.map +1 -0
  200. package/dist/test/read-mode.test.d.ts +2 -0
  201. package/dist/test/read-mode.test.d.ts.map +1 -0
  202. package/dist/test/read-mode.test.js +578 -0
  203. package/dist/test/read-mode.test.js.map +1 -0
  204. package/dist/test/server/driveOperationsConflictResolution.test.d.ts +2 -0
  205. package/dist/test/server/driveOperationsConflictResolution.test.d.ts.map +1 -0
  206. package/dist/test/server/driveOperationsConflictResolution.test.js +460 -0
  207. package/dist/test/server/driveOperationsConflictResolution.test.js.map +1 -0
  208. package/dist/test/server/mergeOperations.test.d.ts +2 -0
  209. package/dist/test/server/mergeOperations.test.d.ts.map +1 -0
  210. package/dist/test/server/mergeOperations.test.js +107 -0
  211. package/dist/test/server/mergeOperations.test.js.map +1 -0
  212. package/dist/test/server/processOperations.test.d.ts +2 -0
  213. package/dist/test/server/processOperations.test.d.ts.map +1 -0
  214. package/dist/test/server/processOperations.test.js +380 -0
  215. package/dist/test/server/processOperations.test.js.map +1 -0
  216. package/dist/test/server.test.d.ts +2 -0
  217. package/dist/test/server.test.d.ts.map +1 -0
  218. package/dist/test/server.test.js +899 -0
  219. package/dist/test/server.test.js.map +1 -0
  220. package/dist/test/signature-migration.test.d.ts +2 -0
  221. package/dist/test/signature-migration.test.d.ts.map +1 -0
  222. package/dist/test/signature-migration.test.js +239 -0
  223. package/dist/test/signature-migration.test.js.map +1 -0
  224. package/dist/test/storage.test.d.ts +2 -0
  225. package/dist/test/storage.test.d.ts.map +1 -0
  226. package/dist/test/storage.test.js +523 -0
  227. package/dist/test/storage.test.js.map +1 -0
  228. package/dist/test/utils.d.ts +48 -0
  229. package/dist/test/utils.d.ts.map +1 -0
  230. package/dist/test/utils.js +133 -0
  231. package/dist/test/utils.js.map +1 -0
  232. package/dist/test/utils.test.d.ts +2 -0
  233. package/dist/test/utils.test.d.ts.map +1 -0
  234. package/dist/test/utils.test.js +89 -0
  235. package/dist/test/utils.test.js.map +1 -0
  236. package/dist/test/vitest-setup.d.ts +2 -0
  237. package/dist/test/vitest-setup.d.ts.map +1 -0
  238. package/dist/test/vitest-setup.js +5 -0
  239. package/dist/test/vitest-setup.js.map +1 -0
  240. package/dist/tsconfig.tsbuildinfo +1 -0
  241. package/dist/vitest.config.d.ts +3 -0
  242. package/dist/vitest.config.d.ts.map +1 -0
  243. package/dist/vitest.config.js +27 -0
  244. package/dist/vitest.config.js.map +1 -0
  245. package/package.json +4 -4
  246. package/dist/src/queue/event.d.ts +0 -42
  247. package/dist/src/queue/event.d.ts.map +0 -1
  248. package/dist/src/queue/event.js +0 -222
  249. package/dist/src/queue/event.js.map +0 -1
  250. package/dist/src/server/sync-unit-map.d.ts +0 -137
  251. package/dist/src/server/sync-unit-map.d.ts.map +0 -1
  252. package/dist/src/server/sync-unit-map.js +0 -234
  253. package/dist/src/server/sync-unit-map.js.map +0 -1
  254. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1341,11 +1341,13 @@ export namespace Prisma {
1341
1341
  export type DocumentCountOutputType = {
1342
1342
  operations: number
1343
1343
  synchronizationUnits: number
1344
+ driveDocuments: number
1344
1345
  }
1345
1346
 
1346
1347
  export type DocumentCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1347
1348
  operations?: boolean | DocumentCountOutputTypeCountOperationsArgs
1348
1349
  synchronizationUnits?: boolean | DocumentCountOutputTypeCountSynchronizationUnitsArgs
1350
+ driveDocuments?: boolean | DocumentCountOutputTypeCountDriveDocumentsArgs
1349
1351
  }
1350
1352
 
1351
1353
  // Custom InputTypes
@@ -1373,6 +1375,13 @@ export namespace Prisma {
1373
1375
  where?: SynchronizationUnitWhereInput
1374
1376
  }
1375
1377
 
1378
+ /**
1379
+ * DocumentCountOutputType without action
1380
+ */
1381
+ export type DocumentCountOutputTypeCountDriveDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1382
+ where?: DriveDocumentWhereInput
1383
+ }
1384
+
1376
1385
 
1377
1386
  /**
1378
1387
  * Count Type OperationCountOutputType
@@ -2397,7 +2406,6 @@ export namespace Prisma {
2397
2406
  initialState: number
2398
2407
  documentType: number
2399
2408
  meta: number
2400
- scopes: number
2401
2409
  _all: number
2402
2410
  }
2403
2411
 
@@ -2447,7 +2455,6 @@ export namespace Prisma {
2447
2455
  initialState?: true
2448
2456
  documentType?: true
2449
2457
  meta?: true
2450
- scopes?: true
2451
2458
  _all?: true
2452
2459
  }
2453
2460
 
@@ -2548,7 +2555,6 @@ export namespace Prisma {
2548
2555
  initialState: string
2549
2556
  documentType: string
2550
2557
  meta: string | null
2551
- scopes: string[]
2552
2558
  _count: DocumentCountAggregateOutputType | null
2553
2559
  _avg: DocumentAvgAggregateOutputType | null
2554
2560
  _sum: DocumentSumAggregateOutputType | null
@@ -2581,9 +2587,9 @@ export namespace Prisma {
2581
2587
  initialState?: boolean
2582
2588
  documentType?: boolean
2583
2589
  meta?: boolean
2584
- scopes?: boolean
2585
2590
  operations?: boolean | Document$operationsArgs<ExtArgs>
2586
2591
  synchronizationUnits?: boolean | Document$synchronizationUnitsArgs<ExtArgs>
2592
+ driveDocuments?: boolean | Document$driveDocumentsArgs<ExtArgs>
2587
2593
  _count?: boolean | DocumentCountOutputTypeDefaultArgs<ExtArgs>
2588
2594
  }, ExtArgs["result"]["document"]>
2589
2595
 
@@ -2598,7 +2604,6 @@ export namespace Prisma {
2598
2604
  initialState?: boolean
2599
2605
  documentType?: boolean
2600
2606
  meta?: boolean
2601
- scopes?: boolean
2602
2607
  }, ExtArgs["result"]["document"]>
2603
2608
 
2604
2609
  export type DocumentSelectScalar = {
@@ -2612,12 +2617,12 @@ export namespace Prisma {
2612
2617
  initialState?: boolean
2613
2618
  documentType?: boolean
2614
2619
  meta?: boolean
2615
- scopes?: boolean
2616
2620
  }
2617
2621
 
2618
2622
  export type DocumentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2619
2623
  operations?: boolean | Document$operationsArgs<ExtArgs>
2620
2624
  synchronizationUnits?: boolean | Document$synchronizationUnitsArgs<ExtArgs>
2625
+ driveDocuments?: boolean | Document$driveDocumentsArgs<ExtArgs>
2621
2626
  _count?: boolean | DocumentCountOutputTypeDefaultArgs<ExtArgs>
2622
2627
  }
2623
2628
  export type DocumentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
@@ -2627,6 +2632,7 @@ export namespace Prisma {
2627
2632
  objects: {
2628
2633
  operations: Prisma.$OperationPayload<ExtArgs>[]
2629
2634
  synchronizationUnits: Prisma.$SynchronizationUnitPayload<ExtArgs>[]
2635
+ driveDocuments: Prisma.$DriveDocumentPayload<ExtArgs>[]
2630
2636
  }
2631
2637
  scalars: $Extensions.GetPayloadResult<{
2632
2638
  id: string
@@ -2639,7 +2645,6 @@ export namespace Prisma {
2639
2645
  initialState: string
2640
2646
  documentType: string
2641
2647
  meta: string | null
2642
- scopes: string[]
2643
2648
  }, ExtArgs["result"]["document"]>
2644
2649
  composites: {}
2645
2650
  }
@@ -3006,6 +3011,7 @@ export namespace Prisma {
3006
3011
  readonly [Symbol.toStringTag]: "PrismaPromise"
3007
3012
  operations<T extends Document$operationsArgs<ExtArgs> = {}>(args?: Subset<T, Document$operationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findMany"> | Null>
3008
3013
  synchronizationUnits<T extends Document$synchronizationUnitsArgs<ExtArgs> = {}>(args?: Subset<T, Document$synchronizationUnitsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SynchronizationUnitPayload<ExtArgs>, T, "findMany"> | Null>
3014
+ driveDocuments<T extends Document$driveDocumentsArgs<ExtArgs> = {}>(args?: Subset<T, Document$driveDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DriveDocumentPayload<ExtArgs>, T, "findMany"> | Null>
3009
3015
  /**
3010
3016
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3011
3017
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3045,7 +3051,6 @@ export namespace Prisma {
3045
3051
  readonly initialState: FieldRef<"Document", 'String'>
3046
3052
  readonly documentType: FieldRef<"Document", 'String'>
3047
3053
  readonly meta: FieldRef<"Document", 'String'>
3048
- readonly scopes: FieldRef<"Document", 'String[]'>
3049
3054
  }
3050
3055
 
3051
3056
 
@@ -3399,6 +3404,26 @@ export namespace Prisma {
3399
3404
  distinct?: SynchronizationUnitScalarFieldEnum | SynchronizationUnitScalarFieldEnum[]
3400
3405
  }
3401
3406
 
3407
+ /**
3408
+ * Document.driveDocuments
3409
+ */
3410
+ export type Document$driveDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3411
+ /**
3412
+ * Select specific fields to fetch from the DriveDocument
3413
+ */
3414
+ select?: DriveDocumentSelect<ExtArgs> | null
3415
+ /**
3416
+ * Choose, which related nodes to fetch as well
3417
+ */
3418
+ include?: DriveDocumentInclude<ExtArgs> | null
3419
+ where?: DriveDocumentWhereInput
3420
+ orderBy?: DriveDocumentOrderByWithRelationInput | DriveDocumentOrderByWithRelationInput[]
3421
+ cursor?: DriveDocumentWhereUniqueInput
3422
+ take?: number
3423
+ skip?: number
3424
+ distinct?: DriveDocumentScalarFieldEnum | DriveDocumentScalarFieldEnum[]
3425
+ }
3426
+
3402
3427
  /**
3403
3428
  * Document without action
3404
3429
  */
@@ -3555,12 +3580,14 @@ export namespace Prisma {
3555
3580
  driveId?: boolean
3556
3581
  documentId?: boolean
3557
3582
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3583
+ document?: boolean | DocumentDefaultArgs<ExtArgs>
3558
3584
  }, ExtArgs["result"]["driveDocument"]>
3559
3585
 
3560
3586
  export type DriveDocumentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
3561
3587
  driveId?: boolean
3562
3588
  documentId?: boolean
3563
3589
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3590
+ document?: boolean | DocumentDefaultArgs<ExtArgs>
3564
3591
  }, ExtArgs["result"]["driveDocument"]>
3565
3592
 
3566
3593
  export type DriveDocumentSelectScalar = {
@@ -3570,15 +3597,18 @@ export namespace Prisma {
3570
3597
 
3571
3598
  export type DriveDocumentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3572
3599
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3600
+ document?: boolean | DocumentDefaultArgs<ExtArgs>
3573
3601
  }
3574
3602
  export type DriveDocumentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3575
3603
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3604
+ document?: boolean | DocumentDefaultArgs<ExtArgs>
3576
3605
  }
3577
3606
 
3578
3607
  export type $DriveDocumentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3579
3608
  name: "DriveDocument"
3580
3609
  objects: {
3581
3610
  drive: Prisma.$DrivePayload<ExtArgs>
3611
+ document: Prisma.$DocumentPayload<ExtArgs>
3582
3612
  }
3583
3613
  scalars: $Extensions.GetPayloadResult<{
3584
3614
  driveId: string
@@ -3948,6 +3978,7 @@ export namespace Prisma {
3948
3978
  export interface Prisma__DriveDocumentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
3949
3979
  readonly [Symbol.toStringTag]: "PrismaPromise"
3950
3980
  drive<T extends DriveDefaultArgs<ExtArgs> = {}>(args?: Subset<T, DriveDefaultArgs<ExtArgs>>): Prisma__DriveClient<$Result.GetResult<Prisma.$DrivePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
3981
+ document<T extends DocumentDefaultArgs<ExtArgs> = {}>(args?: Subset<T, DocumentDefaultArgs<ExtArgs>>): Prisma__DocumentClient<$Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
3951
3982
  /**
3952
3983
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3953
3984
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -7395,8 +7426,7 @@ export namespace Prisma {
7395
7426
  name: 'name',
7396
7427
  initialState: 'initialState',
7397
7428
  documentType: 'documentType',
7398
- meta: 'meta',
7399
- scopes: 'scopes'
7429
+ meta: 'meta'
7400
7430
  };
7401
7431
 
7402
7432
  export type DocumentScalarFieldEnum = (typeof DocumentScalarFieldEnum)[keyof typeof DocumentScalarFieldEnum]
@@ -7636,9 +7666,9 @@ export namespace Prisma {
7636
7666
  initialState?: StringFilter<"Document"> | string
7637
7667
  documentType?: StringFilter<"Document"> | string
7638
7668
  meta?: StringNullableFilter<"Document"> | string | null
7639
- scopes?: StringNullableListFilter<"Document">
7640
7669
  operations?: OperationListRelationFilter
7641
7670
  synchronizationUnits?: SynchronizationUnitListRelationFilter
7671
+ driveDocuments?: DriveDocumentListRelationFilter
7642
7672
  }
7643
7673
 
7644
7674
  export type DocumentOrderByWithRelationInput = {
@@ -7652,9 +7682,9 @@ export namespace Prisma {
7652
7682
  initialState?: SortOrder
7653
7683
  documentType?: SortOrder
7654
7684
  meta?: SortOrderInput | SortOrder
7655
- scopes?: SortOrder
7656
7685
  operations?: OperationOrderByRelationAggregateInput
7657
7686
  synchronizationUnits?: SynchronizationUnitOrderByRelationAggregateInput
7687
+ driveDocuments?: DriveDocumentOrderByRelationAggregateInput
7658
7688
  }
7659
7689
 
7660
7690
  export type DocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -7671,9 +7701,9 @@ export namespace Prisma {
7671
7701
  initialState?: StringFilter<"Document"> | string
7672
7702
  documentType?: StringFilter<"Document"> | string
7673
7703
  meta?: StringNullableFilter<"Document"> | string | null
7674
- scopes?: StringNullableListFilter<"Document">
7675
7704
  operations?: OperationListRelationFilter
7676
7705
  synchronizationUnits?: SynchronizationUnitListRelationFilter
7706
+ driveDocuments?: DriveDocumentListRelationFilter
7677
7707
  }, "id" | "ordinal" | "slug">
7678
7708
 
7679
7709
  export type DocumentOrderByWithAggregationInput = {
@@ -7687,7 +7717,6 @@ export namespace Prisma {
7687
7717
  initialState?: SortOrder
7688
7718
  documentType?: SortOrder
7689
7719
  meta?: SortOrderInput | SortOrder
7690
- scopes?: SortOrder
7691
7720
  _count?: DocumentCountOrderByAggregateInput
7692
7721
  _avg?: DocumentAvgOrderByAggregateInput
7693
7722
  _max?: DocumentMaxOrderByAggregateInput
@@ -7709,7 +7738,6 @@ export namespace Prisma {
7709
7738
  initialState?: StringWithAggregatesFilter<"Document"> | string
7710
7739
  documentType?: StringWithAggregatesFilter<"Document"> | string
7711
7740
  meta?: StringNullableWithAggregatesFilter<"Document"> | string | null
7712
- scopes?: StringNullableListFilter<"Document">
7713
7741
  }
7714
7742
 
7715
7743
  export type DriveDocumentWhereInput = {
@@ -7719,12 +7747,14 @@ export namespace Prisma {
7719
7747
  driveId?: StringFilter<"DriveDocument"> | string
7720
7748
  documentId?: StringFilter<"DriveDocument"> | string
7721
7749
  drive?: XOR<DriveRelationFilter, DriveWhereInput>
7750
+ document?: XOR<DocumentRelationFilter, DocumentWhereInput>
7722
7751
  }
7723
7752
 
7724
7753
  export type DriveDocumentOrderByWithRelationInput = {
7725
7754
  driveId?: SortOrder
7726
7755
  documentId?: SortOrder
7727
7756
  drive?: DriveOrderByWithRelationInput
7757
+ document?: DocumentOrderByWithRelationInput
7728
7758
  }
7729
7759
 
7730
7760
  export type DriveDocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -7735,6 +7765,7 @@ export namespace Prisma {
7735
7765
  driveId?: StringFilter<"DriveDocument"> | string
7736
7766
  documentId?: StringFilter<"DriveDocument"> | string
7737
7767
  drive?: XOR<DriveRelationFilter, DriveWhereInput>
7768
+ document?: XOR<DocumentRelationFilter, DocumentWhereInput>
7738
7769
  }, "driveId_documentId">
7739
7770
 
7740
7771
  export type DriveDocumentOrderByWithAggregationInput = {
@@ -8028,9 +8059,9 @@ export namespace Prisma {
8028
8059
  initialState: string
8029
8060
  documentType: string
8030
8061
  meta?: string | null
8031
- scopes?: DocumentCreatescopesInput | string[]
8032
8062
  operations?: OperationCreateNestedManyWithoutDocumentInput
8033
8063
  synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
8064
+ driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
8034
8065
  }
8035
8066
 
8036
8067
  export type DocumentUncheckedCreateInput = {
@@ -8044,9 +8075,9 @@ export namespace Prisma {
8044
8075
  initialState: string
8045
8076
  documentType: string
8046
8077
  meta?: string | null
8047
- scopes?: DocumentCreatescopesInput | string[]
8048
8078
  operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
8049
8079
  synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
8080
+ driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
8050
8081
  }
8051
8082
 
8052
8083
  export type DocumentUpdateInput = {
@@ -8059,9 +8090,9 @@ export namespace Prisma {
8059
8090
  initialState?: StringFieldUpdateOperationsInput | string
8060
8091
  documentType?: StringFieldUpdateOperationsInput | string
8061
8092
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8062
- scopes?: DocumentUpdatescopesInput | string[]
8063
8093
  operations?: OperationUpdateManyWithoutDocumentNestedInput
8064
8094
  synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
8095
+ driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
8065
8096
  }
8066
8097
 
8067
8098
  export type DocumentUncheckedUpdateInput = {
@@ -8075,9 +8106,9 @@ export namespace Prisma {
8075
8106
  initialState?: StringFieldUpdateOperationsInput | string
8076
8107
  documentType?: StringFieldUpdateOperationsInput | string
8077
8108
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8078
- scopes?: DocumentUpdatescopesInput | string[]
8079
8109
  operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
8080
8110
  synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
8111
+ driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
8081
8112
  }
8082
8113
 
8083
8114
  export type DocumentCreateManyInput = {
@@ -8091,7 +8122,6 @@ export namespace Prisma {
8091
8122
  initialState: string
8092
8123
  documentType: string
8093
8124
  meta?: string | null
8094
- scopes?: DocumentCreatescopesInput | string[]
8095
8125
  }
8096
8126
 
8097
8127
  export type DocumentUpdateManyMutationInput = {
@@ -8104,7 +8134,6 @@ export namespace Prisma {
8104
8134
  initialState?: StringFieldUpdateOperationsInput | string
8105
8135
  documentType?: StringFieldUpdateOperationsInput | string
8106
8136
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8107
- scopes?: DocumentUpdatescopesInput | string[]
8108
8137
  }
8109
8138
 
8110
8139
  export type DocumentUncheckedUpdateManyInput = {
@@ -8118,12 +8147,11 @@ export namespace Prisma {
8118
8147
  initialState?: StringFieldUpdateOperationsInput | string
8119
8148
  documentType?: StringFieldUpdateOperationsInput | string
8120
8149
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8121
- scopes?: DocumentUpdatescopesInput | string[]
8122
8150
  }
8123
8151
 
8124
8152
  export type DriveDocumentCreateInput = {
8125
- documentId: string
8126
8153
  drive: DriveCreateNestedOneWithoutDriveDocumentsInput
8154
+ document: DocumentCreateNestedOneWithoutDriveDocumentsInput
8127
8155
  }
8128
8156
 
8129
8157
  export type DriveDocumentUncheckedCreateInput = {
@@ -8132,8 +8160,8 @@ export namespace Prisma {
8132
8160
  }
8133
8161
 
8134
8162
  export type DriveDocumentUpdateInput = {
8135
- documentId?: StringFieldUpdateOperationsInput | string
8136
8163
  drive?: DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput
8164
+ document?: DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput
8137
8165
  }
8138
8166
 
8139
8167
  export type DriveDocumentUncheckedUpdateInput = {
@@ -8147,7 +8175,7 @@ export namespace Prisma {
8147
8175
  }
8148
8176
 
8149
8177
  export type DriveDocumentUpdateManyMutationInput = {
8150
- documentId?: StringFieldUpdateOperationsInput | string
8178
+
8151
8179
  }
8152
8180
 
8153
8181
  export type DriveDocumentUncheckedUpdateManyInput = {
@@ -8496,14 +8524,6 @@ export namespace Prisma {
8496
8524
  not?: NestedStringNullableFilter<$PrismaModel> | string | null
8497
8525
  }
8498
8526
 
8499
- export type StringNullableListFilter<$PrismaModel = never> = {
8500
- equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
8501
- has?: string | StringFieldRefInput<$PrismaModel> | null
8502
- hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
8503
- hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
8504
- isEmpty?: boolean
8505
- }
8506
-
8507
8527
  export type OperationListRelationFilter = {
8508
8528
  every?: OperationWhereInput
8509
8529
  some?: OperationWhereInput
@@ -8540,7 +8560,6 @@ export namespace Prisma {
8540
8560
  initialState?: SortOrder
8541
8561
  documentType?: SortOrder
8542
8562
  meta?: SortOrder
8543
- scopes?: SortOrder
8544
8563
  }
8545
8564
 
8546
8565
  export type DocumentAvgOrderByAggregateInput = {
@@ -8630,6 +8649,11 @@ export namespace Prisma {
8630
8649
  isNot?: DriveWhereInput
8631
8650
  }
8632
8651
 
8652
+ export type DocumentRelationFilter = {
8653
+ is?: DocumentWhereInput
8654
+ isNot?: DocumentWhereInput
8655
+ }
8656
+
8633
8657
  export type DriveDocumentDriveIdDocumentIdCompoundUniqueInput = {
8634
8658
  driveId: string
8635
8659
  documentId: string
@@ -8816,11 +8840,6 @@ export namespace Prisma {
8816
8840
  _max?: NestedBytesNullableFilter<$PrismaModel>
8817
8841
  }
8818
8842
 
8819
- export type DocumentRelationFilter = {
8820
- is?: DocumentWhereInput
8821
- isNot?: DocumentWhereInput
8822
- }
8823
-
8824
8843
  export type SynchronizationUnitCountOrderByAggregateInput = {
8825
8844
  id?: SortOrder
8826
8845
  documentId?: SortOrder
@@ -8923,10 +8942,6 @@ export namespace Prisma {
8923
8942
  deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
8924
8943
  }
8925
8944
 
8926
- export type DocumentCreatescopesInput = {
8927
- set: string[]
8928
- }
8929
-
8930
8945
  export type OperationCreateNestedManyWithoutDocumentInput = {
8931
8946
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8932
8947
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -8941,6 +8956,13 @@ export namespace Prisma {
8941
8956
  connect?: SynchronizationUnitWhereUniqueInput | SynchronizationUnitWhereUniqueInput[]
8942
8957
  }
8943
8958
 
8959
+ export type DriveDocumentCreateNestedManyWithoutDocumentInput = {
8960
+ create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
8961
+ connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
8962
+ createMany?: DriveDocumentCreateManyDocumentInputEnvelope
8963
+ connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
8964
+ }
8965
+
8944
8966
  export type OperationUncheckedCreateNestedManyWithoutDocumentInput = {
8945
8967
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8946
8968
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -8955,6 +8977,13 @@ export namespace Prisma {
8955
8977
  connect?: SynchronizationUnitWhereUniqueInput | SynchronizationUnitWhereUniqueInput[]
8956
8978
  }
8957
8979
 
8980
+ export type DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput = {
8981
+ create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
8982
+ connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
8983
+ createMany?: DriveDocumentCreateManyDocumentInputEnvelope
8984
+ connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
8985
+ }
8986
+
8958
8987
  export type DateTimeFieldUpdateOperationsInput = {
8959
8988
  set?: Date | string
8960
8989
  }
@@ -8963,11 +8992,6 @@ export namespace Prisma {
8963
8992
  set?: string | null
8964
8993
  }
8965
8994
 
8966
- export type DocumentUpdatescopesInput = {
8967
- set?: string[]
8968
- push?: string | string[]
8969
- }
8970
-
8971
8995
  export type OperationUpdateManyWithoutDocumentNestedInput = {
8972
8996
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8973
8997
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -8996,6 +9020,20 @@ export namespace Prisma {
8996
9020
  deleteMany?: SynchronizationUnitScalarWhereInput | SynchronizationUnitScalarWhereInput[]
8997
9021
  }
8998
9022
 
9023
+ export type DriveDocumentUpdateManyWithoutDocumentNestedInput = {
9024
+ create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
9025
+ connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
9026
+ upsert?: DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput | DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput[]
9027
+ createMany?: DriveDocumentCreateManyDocumentInputEnvelope
9028
+ set?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9029
+ disconnect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9030
+ delete?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9031
+ connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9032
+ update?: DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput | DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput[]
9033
+ updateMany?: DriveDocumentUpdateManyWithWhereWithoutDocumentInput | DriveDocumentUpdateManyWithWhereWithoutDocumentInput[]
9034
+ deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
9035
+ }
9036
+
8999
9037
  export type IntFieldUpdateOperationsInput = {
9000
9038
  set?: number
9001
9039
  increment?: number
@@ -9032,12 +9070,32 @@ export namespace Prisma {
9032
9070
  deleteMany?: SynchronizationUnitScalarWhereInput | SynchronizationUnitScalarWhereInput[]
9033
9071
  }
9034
9072
 
9073
+ export type DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput = {
9074
+ create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
9075
+ connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
9076
+ upsert?: DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput | DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput[]
9077
+ createMany?: DriveDocumentCreateManyDocumentInputEnvelope
9078
+ set?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9079
+ disconnect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9080
+ delete?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9081
+ connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9082
+ update?: DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput | DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput[]
9083
+ updateMany?: DriveDocumentUpdateManyWithWhereWithoutDocumentInput | DriveDocumentUpdateManyWithWhereWithoutDocumentInput[]
9084
+ deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
9085
+ }
9086
+
9035
9087
  export type DriveCreateNestedOneWithoutDriveDocumentsInput = {
9036
9088
  create?: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9037
9089
  connectOrCreate?: DriveCreateOrConnectWithoutDriveDocumentsInput
9038
9090
  connect?: DriveWhereUniqueInput
9039
9091
  }
9040
9092
 
9093
+ export type DocumentCreateNestedOneWithoutDriveDocumentsInput = {
9094
+ create?: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9095
+ connectOrCreate?: DocumentCreateOrConnectWithoutDriveDocumentsInput
9096
+ connect?: DocumentWhereUniqueInput
9097
+ }
9098
+
9041
9099
  export type DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput = {
9042
9100
  create?: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9043
9101
  connectOrCreate?: DriveCreateOrConnectWithoutDriveDocumentsInput
@@ -9046,6 +9104,14 @@ export namespace Prisma {
9046
9104
  update?: XOR<XOR<DriveUpdateToOneWithWhereWithoutDriveDocumentsInput, DriveUpdateWithoutDriveDocumentsInput>, DriveUncheckedUpdateWithoutDriveDocumentsInput>
9047
9105
  }
9048
9106
 
9107
+ export type DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput = {
9108
+ create?: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9109
+ connectOrCreate?: DocumentCreateOrConnectWithoutDriveDocumentsInput
9110
+ upsert?: DocumentUpsertWithoutDriveDocumentsInput
9111
+ connect?: DocumentWhereUniqueInput
9112
+ update?: XOR<XOR<DocumentUpdateToOneWithWhereWithoutDriveDocumentsInput, DocumentUpdateWithoutDriveDocumentsInput>, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9113
+ }
9114
+
9049
9115
  export type DocumentCreateNestedOneWithoutOperationsInput = {
9050
9116
  create?: XOR<DocumentCreateWithoutOperationsInput, DocumentUncheckedCreateWithoutOperationsInput>
9051
9117
  connectOrCreate?: DocumentCreateOrConnectWithoutOperationsInput
@@ -9387,7 +9453,7 @@ export namespace Prisma {
9387
9453
  }
9388
9454
 
9389
9455
  export type DriveDocumentCreateWithoutDriveInput = {
9390
- documentId: string
9456
+ document: DocumentCreateNestedOneWithoutDriveDocumentsInput
9391
9457
  }
9392
9458
 
9393
9459
  export type DriveDocumentUncheckedCreateWithoutDriveInput = {
@@ -9498,6 +9564,24 @@ export namespace Prisma {
9498
9564
  skipDuplicates?: boolean
9499
9565
  }
9500
9566
 
9567
+ export type DriveDocumentCreateWithoutDocumentInput = {
9568
+ drive: DriveCreateNestedOneWithoutDriveDocumentsInput
9569
+ }
9570
+
9571
+ export type DriveDocumentUncheckedCreateWithoutDocumentInput = {
9572
+ driveId: string
9573
+ }
9574
+
9575
+ export type DriveDocumentCreateOrConnectWithoutDocumentInput = {
9576
+ where: DriveDocumentWhereUniqueInput
9577
+ create: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput>
9578
+ }
9579
+
9580
+ export type DriveDocumentCreateManyDocumentInputEnvelope = {
9581
+ data: DriveDocumentCreateManyDocumentInput | DriveDocumentCreateManyDocumentInput[]
9582
+ skipDuplicates?: boolean
9583
+ }
9584
+
9501
9585
  export type OperationUpsertWithWhereUniqueWithoutDocumentInput = {
9502
9586
  where: OperationWhereUniqueInput
9503
9587
  update: XOR<OperationUpdateWithoutDocumentInput, OperationUncheckedUpdateWithoutDocumentInput>
@@ -9561,6 +9645,22 @@ export namespace Prisma {
9561
9645
  branch?: StringFilter<"SynchronizationUnit"> | string
9562
9646
  }
9563
9647
 
9648
+ export type DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput = {
9649
+ where: DriveDocumentWhereUniqueInput
9650
+ update: XOR<DriveDocumentUpdateWithoutDocumentInput, DriveDocumentUncheckedUpdateWithoutDocumentInput>
9651
+ create: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput>
9652
+ }
9653
+
9654
+ export type DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput = {
9655
+ where: DriveDocumentWhereUniqueInput
9656
+ data: XOR<DriveDocumentUpdateWithoutDocumentInput, DriveDocumentUncheckedUpdateWithoutDocumentInput>
9657
+ }
9658
+
9659
+ export type DriveDocumentUpdateManyWithWhereWithoutDocumentInput = {
9660
+ where: DriveDocumentScalarWhereInput
9661
+ data: XOR<DriveDocumentUpdateManyMutationInput, DriveDocumentUncheckedUpdateManyWithoutDocumentInput>
9662
+ }
9663
+
9564
9664
  export type DriveCreateWithoutDriveDocumentsInput = {
9565
9665
  id: string
9566
9666
  }
@@ -9574,6 +9674,41 @@ export namespace Prisma {
9574
9674
  create: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9575
9675
  }
9576
9676
 
9677
+ export type DocumentCreateWithoutDriveDocumentsInput = {
9678
+ id: string
9679
+ ordinal?: number
9680
+ created?: Date | string
9681
+ lastModified?: Date | string
9682
+ slug?: string | null
9683
+ revision: string
9684
+ name?: string | null
9685
+ initialState: string
9686
+ documentType: string
9687
+ meta?: string | null
9688
+ operations?: OperationCreateNestedManyWithoutDocumentInput
9689
+ synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
9690
+ }
9691
+
9692
+ export type DocumentUncheckedCreateWithoutDriveDocumentsInput = {
9693
+ id: string
9694
+ ordinal?: number
9695
+ created?: Date | string
9696
+ lastModified?: Date | string
9697
+ slug?: string | null
9698
+ revision: string
9699
+ name?: string | null
9700
+ initialState: string
9701
+ documentType: string
9702
+ meta?: string | null
9703
+ operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
9704
+ synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
9705
+ }
9706
+
9707
+ export type DocumentCreateOrConnectWithoutDriveDocumentsInput = {
9708
+ where: DocumentWhereUniqueInput
9709
+ create: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9710
+ }
9711
+
9577
9712
  export type DriveUpsertWithoutDriveDocumentsInput = {
9578
9713
  update: XOR<DriveUpdateWithoutDriveDocumentsInput, DriveUncheckedUpdateWithoutDriveDocumentsInput>
9579
9714
  create: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
@@ -9593,6 +9728,46 @@ export namespace Prisma {
9593
9728
  id?: StringFieldUpdateOperationsInput | string
9594
9729
  }
9595
9730
 
9731
+ export type DocumentUpsertWithoutDriveDocumentsInput = {
9732
+ update: XOR<DocumentUpdateWithoutDriveDocumentsInput, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9733
+ create: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9734
+ where?: DocumentWhereInput
9735
+ }
9736
+
9737
+ export type DocumentUpdateToOneWithWhereWithoutDriveDocumentsInput = {
9738
+ where?: DocumentWhereInput
9739
+ data: XOR<DocumentUpdateWithoutDriveDocumentsInput, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9740
+ }
9741
+
9742
+ export type DocumentUpdateWithoutDriveDocumentsInput = {
9743
+ id?: StringFieldUpdateOperationsInput | string
9744
+ created?: DateTimeFieldUpdateOperationsInput | Date | string
9745
+ lastModified?: DateTimeFieldUpdateOperationsInput | Date | string
9746
+ slug?: NullableStringFieldUpdateOperationsInput | string | null
9747
+ revision?: StringFieldUpdateOperationsInput | string
9748
+ name?: NullableStringFieldUpdateOperationsInput | string | null
9749
+ initialState?: StringFieldUpdateOperationsInput | string
9750
+ documentType?: StringFieldUpdateOperationsInput | string
9751
+ meta?: NullableStringFieldUpdateOperationsInput | string | null
9752
+ operations?: OperationUpdateManyWithoutDocumentNestedInput
9753
+ synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
9754
+ }
9755
+
9756
+ export type DocumentUncheckedUpdateWithoutDriveDocumentsInput = {
9757
+ id?: StringFieldUpdateOperationsInput | string
9758
+ ordinal?: IntFieldUpdateOperationsInput | number
9759
+ created?: DateTimeFieldUpdateOperationsInput | Date | string
9760
+ lastModified?: DateTimeFieldUpdateOperationsInput | Date | string
9761
+ slug?: NullableStringFieldUpdateOperationsInput | string | null
9762
+ revision?: StringFieldUpdateOperationsInput | string
9763
+ name?: NullableStringFieldUpdateOperationsInput | string | null
9764
+ initialState?: StringFieldUpdateOperationsInput | string
9765
+ documentType?: StringFieldUpdateOperationsInput | string
9766
+ meta?: NullableStringFieldUpdateOperationsInput | string | null
9767
+ operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
9768
+ synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
9769
+ }
9770
+
9596
9771
  export type DocumentCreateWithoutOperationsInput = {
9597
9772
  id: string
9598
9773
  ordinal?: number
@@ -9604,8 +9779,8 @@ export namespace Prisma {
9604
9779
  initialState: string
9605
9780
  documentType: string
9606
9781
  meta?: string | null
9607
- scopes?: DocumentCreatescopesInput | string[]
9608
9782
  synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
9783
+ driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
9609
9784
  }
9610
9785
 
9611
9786
  export type DocumentUncheckedCreateWithoutOperationsInput = {
@@ -9619,8 +9794,8 @@ export namespace Prisma {
9619
9794
  initialState: string
9620
9795
  documentType: string
9621
9796
  meta?: string | null
9622
- scopes?: DocumentCreatescopesInput | string[]
9623
9797
  synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
9798
+ driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
9624
9799
  }
9625
9800
 
9626
9801
  export type DocumentCreateOrConnectWithoutOperationsInput = {
@@ -9696,8 +9871,8 @@ export namespace Prisma {
9696
9871
  initialState?: StringFieldUpdateOperationsInput | string
9697
9872
  documentType?: StringFieldUpdateOperationsInput | string
9698
9873
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9699
- scopes?: DocumentUpdatescopesInput | string[]
9700
9874
  synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
9875
+ driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
9701
9876
  }
9702
9877
 
9703
9878
  export type DocumentUncheckedUpdateWithoutOperationsInput = {
@@ -9711,8 +9886,8 @@ export namespace Prisma {
9711
9886
  initialState?: StringFieldUpdateOperationsInput | string
9712
9887
  documentType?: StringFieldUpdateOperationsInput | string
9713
9888
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9714
- scopes?: DocumentUpdatescopesInput | string[]
9715
9889
  synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
9890
+ driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
9716
9891
  }
9717
9892
 
9718
9893
  export type AttachmentUpsertWithWhereUniqueWithoutOperationInput = {
@@ -9780,8 +9955,8 @@ export namespace Prisma {
9780
9955
  initialState: string
9781
9956
  documentType: string
9782
9957
  meta?: string | null
9783
- scopes?: DocumentCreatescopesInput | string[]
9784
9958
  operations?: OperationCreateNestedManyWithoutDocumentInput
9959
+ driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
9785
9960
  }
9786
9961
 
9787
9962
  export type DocumentUncheckedCreateWithoutSynchronizationUnitsInput = {
@@ -9795,8 +9970,8 @@ export namespace Prisma {
9795
9970
  initialState: string
9796
9971
  documentType: string
9797
9972
  meta?: string | null
9798
- scopes?: DocumentCreatescopesInput | string[]
9799
9973
  operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
9974
+ driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
9800
9975
  }
9801
9976
 
9802
9977
  export type DocumentCreateOrConnectWithoutSynchronizationUnitsInput = {
@@ -9871,8 +10046,8 @@ export namespace Prisma {
9871
10046
  initialState?: StringFieldUpdateOperationsInput | string
9872
10047
  documentType?: StringFieldUpdateOperationsInput | string
9873
10048
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9874
- scopes?: DocumentUpdatescopesInput | string[]
9875
10049
  operations?: OperationUpdateManyWithoutDocumentNestedInput
10050
+ driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
9876
10051
  }
9877
10052
 
9878
10053
  export type DocumentUncheckedUpdateWithoutSynchronizationUnitsInput = {
@@ -9886,8 +10061,8 @@ export namespace Prisma {
9886
10061
  initialState?: StringFieldUpdateOperationsInput | string
9887
10062
  documentType?: StringFieldUpdateOperationsInput | string
9888
10063
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9889
- scopes?: DocumentUpdatescopesInput | string[]
9890
10064
  operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
10065
+ driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
9891
10066
  }
9892
10067
 
9893
10068
  export type OperationUpsertWithWhereUniqueWithoutSynchronizationUnitInput = {
@@ -9999,7 +10174,7 @@ export namespace Prisma {
9999
10174
  }
10000
10175
 
10001
10176
  export type DriveDocumentUpdateWithoutDriveInput = {
10002
- documentId?: StringFieldUpdateOperationsInput | string
10177
+ document?: DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput
10003
10178
  }
10004
10179
 
10005
10180
  export type DriveDocumentUncheckedUpdateWithoutDriveInput = {
@@ -10033,6 +10208,10 @@ export namespace Prisma {
10033
10208
  branch: string
10034
10209
  }
10035
10210
 
10211
+ export type DriveDocumentCreateManyDocumentInput = {
10212
+ driveId: string
10213
+ }
10214
+
10036
10215
  export type OperationUpdateWithoutDocumentInput = {
10037
10216
  id?: StringFieldUpdateOperationsInput | string
10038
10217
  opId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -10106,6 +10285,18 @@ export namespace Prisma {
10106
10285
  branch?: StringFieldUpdateOperationsInput | string
10107
10286
  }
10108
10287
 
10288
+ export type DriveDocumentUpdateWithoutDocumentInput = {
10289
+ drive?: DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput
10290
+ }
10291
+
10292
+ export type DriveDocumentUncheckedUpdateWithoutDocumentInput = {
10293
+ driveId?: StringFieldUpdateOperationsInput | string
10294
+ }
10295
+
10296
+ export type DriveDocumentUncheckedUpdateManyWithoutDocumentInput = {
10297
+ driveId?: StringFieldUpdateOperationsInput | string
10298
+ }
10299
+
10109
10300
  export type AttachmentCreateManyOperationInput = {
10110
10301
  id?: string
10111
10302
  mimeType: string