@roastery-adapters/models 0.0.2

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 (40) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +141 -0
  3. package/dist/chunk-4TPWYJTM.js +24 -0
  4. package/dist/chunk-BFYMLU3E.js +137 -0
  5. package/dist/chunk-GNRBD6BW.js +15 -0
  6. package/dist/chunk-MLKGABMK.js +9 -0
  7. package/dist/chunk-RXLVLZHT.js +6 -0
  8. package/dist/chunk-SGFKK5SQ.js +43 -0
  9. package/dist/chunk-VSIWSQ2T.js +95 -0
  10. package/dist/class-0p_HeQd8.d.ts +3643 -0
  11. package/dist/decorators/index.d.ts +3 -0
  12. package/dist/decorators/index.js +48 -0
  13. package/dist/generated/prisma/browser.d.ts +19 -0
  14. package/dist/generated/prisma/browser.js +11 -0
  15. package/dist/generated/prisma/client.d.ts +35 -0
  16. package/dist/generated/prisma/client.js +16 -0
  17. package/dist/generated/prisma/commonInputTypes.d.ts +2 -0
  18. package/dist/generated/prisma/commonInputTypes.js +1 -0
  19. package/dist/generated/prisma/enums.d.ts +5 -0
  20. package/dist/generated/prisma/enums.js +1 -0
  21. package/dist/generated/prisma/internal/class.d.ts +2 -0
  22. package/dist/generated/prisma/internal/class.js +7 -0
  23. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2 -0
  24. package/dist/generated/prisma/internal/prismaNamespace.js +60 -0
  25. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +5 -0
  26. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +33 -0
  27. package/dist/generated/prisma/models/Model.d.ts +2 -0
  28. package/dist/generated/prisma/models/Model.js +0 -0
  29. package/dist/generated/prisma/models/ModelType.d.ts +2 -0
  30. package/dist/generated/prisma/models/ModelType.js +0 -0
  31. package/dist/generated/prisma/models.d.ts +2 -0
  32. package/dist/generated/prisma/models.js +0 -0
  33. package/dist/helpers/index.d.ts +21 -0
  34. package/dist/helpers/index.js +25 -0
  35. package/dist/index.d.ts +8 -0
  36. package/dist/index.js +11 -0
  37. package/dist/plugins/index.d.ts +38 -0
  38. package/dist/plugins/index.js +18 -0
  39. package/dist/prismaNamespaceBrowser-BF7-8ATJ.d.ts +357 -0
  40. package/package.json +83 -0
@@ -0,0 +1,3 @@
1
+ declare function SafePrisma(layerName?: string): (target: object, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
2
+
3
+ export { SafePrisma };
@@ -0,0 +1,48 @@
1
+ import "../chunk-MLKGABMK.js";
2
+
3
+ // src/prisma-error-manager.ts
4
+ import { UnknownException } from "@roastery/terroir/exceptions";
5
+ import { CoreException } from "@roastery/terroir/exceptions/core";
6
+ import {
7
+ ConflictException,
8
+ ForeignDependencyConstraintException,
9
+ ResourceNotFoundException
10
+ } from "@roastery/terroir/exceptions/infra";
11
+ function prismaErrorManager(layerName, err) {
12
+ const error = err;
13
+ const possibleErrors = {
14
+ P2025: () => {
15
+ throw new ResourceNotFoundException(layerName, error.message);
16
+ },
17
+ P2002: () => {
18
+ throw new ConflictException(layerName, error.message);
19
+ },
20
+ P2003: () => {
21
+ throw new ForeignDependencyConstraintException(layerName, error.message);
22
+ }
23
+ };
24
+ if (error.code && possibleErrors[error.code]) {
25
+ return possibleErrors[error.code]?.();
26
+ }
27
+ if (error instanceof CoreException) throw error;
28
+ throw new UnknownException();
29
+ }
30
+
31
+ // src/decorators/safe-prisma.decorator.ts
32
+ function SafePrisma(layerName) {
33
+ return (target, _propertyKey, descriptor) => {
34
+ const originalMethod = descriptor.value;
35
+ descriptor.value = async function(...args) {
36
+ try {
37
+ return await originalMethod.apply(this, args);
38
+ } catch (error) {
39
+ const contextName = layerName || target.constructor.name;
40
+ prismaErrorManager(contextName, error);
41
+ }
42
+ };
43
+ return descriptor;
44
+ };
45
+ }
46
+ export {
47
+ SafePrisma
48
+ };
@@ -0,0 +1,19 @@
1
+ export { p as Prisma } from '../../prismaNamespaceBrowser-BF7-8ATJ.js';
2
+ export { e as $Enums } from './enums.js';
3
+ import { M as ModelModel, a as ModelTypeModel } from '../../class-0p_HeQd8.js';
4
+ import '@prisma/client-runtime-utils';
5
+ import '@prisma/client/runtime/index-browser';
6
+ import '@prisma/client/runtime/client';
7
+
8
+ /**
9
+ * Model ModelType
10
+ *
11
+ */
12
+ type ModelType = ModelTypeModel;
13
+ /**
14
+ * Model Model
15
+ *
16
+ */
17
+ type Model = ModelModel;
18
+
19
+ export type { Model, ModelType };
@@ -0,0 +1,11 @@
1
+ import {
2
+ prismaNamespaceBrowser_exports
3
+ } from "../../chunk-VSIWSQ2T.js";
4
+ import "../../chunk-MLKGABMK.js";
5
+ import {
6
+ enums_exports
7
+ } from "../../chunk-RXLVLZHT.js";
8
+ export {
9
+ enums_exports as $Enums,
10
+ prismaNamespaceBrowser_exports as Prisma
11
+ };
@@ -0,0 +1,35 @@
1
+ import * as runtime from '@prisma/client/runtime/client';
2
+ import { P as PrismaClientConstructor, L as LogLevel, b as PrismaClientOptions, c as PrismaClient$1, M as ModelModel, a as ModelTypeModel } from '../../class-0p_HeQd8.js';
3
+ export { p as Prisma } from '../../class-0p_HeQd8.js';
4
+ export { e as $Enums } from './enums.js';
5
+
6
+ /**
7
+ * ## Prisma Client
8
+ *
9
+ * Type-safe database client for TypeScript
10
+ * @example
11
+ * ```
12
+ * const prisma = new PrismaClient({
13
+ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
14
+ * })
15
+ * // Fetch zero or more ModelTypes
16
+ * const modelTypes = await prisma.modelType.findMany()
17
+ * ```
18
+ *
19
+ * Read more in our [docs](https://pris.ly/d/client).
20
+ */
21
+ declare const PrismaClient: PrismaClientConstructor;
22
+ type PrismaClient<LogOpts extends LogLevel = never, OmitOpts extends PrismaClientOptions["omit"] = PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = PrismaClient$1<LogOpts, OmitOpts, ExtArgs>;
23
+
24
+ /**
25
+ * Model ModelType
26
+ *
27
+ */
28
+ type ModelType = ModelTypeModel;
29
+ /**
30
+ * Model Model
31
+ *
32
+ */
33
+ type Model = ModelModel;
34
+
35
+ export { type Model, type ModelType, PrismaClient };
@@ -0,0 +1,16 @@
1
+ import {
2
+ PrismaClient
3
+ } from "../../chunk-GNRBD6BW.js";
4
+ import {
5
+ prismaNamespace_exports
6
+ } from "../../chunk-BFYMLU3E.js";
7
+ import "../../chunk-SGFKK5SQ.js";
8
+ import "../../chunk-MLKGABMK.js";
9
+ import {
10
+ enums_exports
11
+ } from "../../chunk-RXLVLZHT.js";
12
+ export {
13
+ enums_exports as $Enums,
14
+ prismaNamespace_exports as Prisma,
15
+ PrismaClient
16
+ };
@@ -0,0 +1,2 @@
1
+ import '@prisma/client/runtime/client';
2
+ export { n as DateTimeFilter, o as DateTimeNullableFilter, q as DateTimeNullableWithAggregatesFilter, r as DateTimeWithAggregatesFilter, a1 as JsonFilter, a2 as JsonFilterBase, a5 as JsonWithAggregatesFilter, a6 as JsonWithAggregatesFilterBase, cm as NestedDateTimeFilter, cn as NestedDateTimeNullableFilter, co as NestedDateTimeNullableWithAggregatesFilter, cp as NestedDateTimeWithAggregatesFilter, cq as NestedIntFilter, cr as NestedIntNullableFilter, cs as NestedJsonFilter, ct as NestedJsonFilterBase, cu as NestedStringFilter, cv as NestedStringWithAggregatesFilter, cR as SortOrderInput, cW as StringFilter, cX as StringWithAggregatesFilter } from '../../class-0p_HeQd8.js';
@@ -0,0 +1 @@
1
+ import "../../chunk-RXLVLZHT.js";
@@ -0,0 +1,5 @@
1
+ declare namespace enums {
2
+ export { };
3
+ }
4
+
5
+ export { enums as e };
@@ -0,0 +1 @@
1
+ import "../../chunk-RXLVLZHT.js";
@@ -0,0 +1,2 @@
1
+ import '@prisma/client/runtime/client';
2
+ export { dr as LogOptions, c as PrismaClient, P as PrismaClientConstructor, ds as getPrismaClientClass } from '../../../class-0p_HeQd8.js';
@@ -0,0 +1,7 @@
1
+ import {
2
+ getPrismaClientClass
3
+ } from "../../../chunk-SGFKK5SQ.js";
4
+ import "../../../chunk-MLKGABMK.js";
5
+ export {
6
+ getPrismaClientClass
7
+ };
@@ -0,0 +1,2 @@
1
+ import '@prisma/client/runtime/client';
2
+ export { $ as $ModelPayload, d as $ModelTypePayload, A as AggregateModel, e as AggregateModelType, dc as AnyNull, f as Args, g as At, h as AtLeast, B as BatchPayload, i as Boolean, j as Bytes, C as CheckIsLogLevel, k as ComputeRaw, D as DMMF, l as DateTimeFieldRefInput, m as DateTimeFieldUpdateOperationsInput, n as DateTimeFilter, o as DateTimeNullableFilter, q as DateTimeNullableWithAggregatesFilter, r as DateTimeWithAggregatesFilter, dd as DbNull, de as Decimal, s as DecimalJsLike, t as DefaultPrismaClient, E as Either, u as EnumQueryModeFieldRefInput, v as Enumerable, w as ErrorFormat, x as Exact, y as ExcludeUnderscoreKeys, z as Extends, F as Extension, G as False, H as FieldRef, I as GetEvents, J as GetHavingFields, K as GetLogType, N as GetModelAggregateType, O as GetModelGroupByPayload, Q as GetModelTypeAggregateType, R as GetModelTypeGroupByPayload, S as GetScalarType, T as GlobalOmitConfig, U as Has, V as InputJsonArray, W as InputJsonObject, X as InputJsonValue, Y as IntFieldRefInput, Z as IntersectOf, _ as JsonArray, a0 as JsonFieldRefInput, a1 as JsonFilter, a2 as JsonFilterBase, df as JsonNull, dg as JsonNullValueFilter, dh as JsonNullValueInput, a3 as JsonObject, a4 as JsonValue, a5 as JsonWithAggregatesFilter, a6 as JsonWithAggregatesFilterBase, a7 as Keys, a8 as ListDateTimeFieldRefInput, a9 as ListIntFieldRefInput, aa as ListStringFieldRefInput, ab as LogDefinition, ac as LogEvent, L as LogLevel, ad as MaybeTupleToUnion, ae as Merge, af as ModelAggregateArgs, ag as ModelCountAggregateInputType, ah as ModelCountAggregateOutputType, ai as ModelCountArgs, aj as ModelCountOrderByAggregateInput, ak as ModelCreateArgs, al as ModelCreateInput, am as ModelCreateManyAndReturnArgs, an as ModelCreateManyArgs, ao as ModelCreateManyInput, ap as ModelCreateManyModelTypeInput, aq as ModelCreateManyModelTypeInputEnvelope, ar as ModelCreateNestedManyWithoutModelTypeInput, as as ModelCreateOrConnectWithoutModelTypeInput, at as ModelCreateWithoutModelTypeInput, au as ModelDefaultArgs, av as ModelDelegate, aw as ModelDeleteArgs, ax as ModelDeleteManyArgs, ay as ModelFieldRefs, az as ModelFindFirstArgs, aA as ModelFindFirstOrThrowArgs, aB as ModelFindManyArgs, aC as ModelFindUniqueArgs, aD as ModelFindUniqueOrThrowArgs, aE as ModelGetPayload, aF as ModelGroupByArgs, aG as ModelGroupByOutputType, aH as ModelInclude, aI as ModelIncludeCreateManyAndReturn, aJ as ModelIncludeUpdateManyAndReturn, aK as ModelListRelationFilter, aL as ModelMaxAggregateInputType, aM as ModelMaxAggregateOutputType, aN as ModelMaxOrderByAggregateInput, aO as ModelMinAggregateInputType, aP as ModelMinAggregateOutputType, aQ as ModelMinOrderByAggregateInput, M as ModelModel, di as ModelName, aR as ModelOmit, aS as ModelOrderByRelationAggregateInput, aT as ModelOrderByWithAggregationInput, aU as ModelOrderByWithRelationInput, dj as ModelScalarFieldEnum, aV as ModelScalarWhereInput, aW as ModelScalarWhereWithAggregatesInput, aX as ModelSelect, aY as ModelSelectCreateManyAndReturn, aZ as ModelSelectScalar, a_ as ModelSelectUpdateManyAndReturn, a$ as ModelType$modelsArgs, b0 as ModelTypeAggregateArgs, b1 as ModelTypeCountAggregateInputType, b2 as ModelTypeCountAggregateOutputType, b3 as ModelTypeCountArgs, b4 as ModelTypeCountOrderByAggregateInput, b5 as ModelTypeCountOutputType, b6 as ModelTypeCountOutputTypeCountModelsArgs, b7 as ModelTypeCountOutputTypeDefaultArgs, b8 as ModelTypeCountOutputTypeSelect, b9 as ModelTypeCreateArgs, ba as ModelTypeCreateInput, bb as ModelTypeCreateManyAndReturnArgs, bc as ModelTypeCreateManyArgs, bd as ModelTypeCreateManyInput, be as ModelTypeCreateNestedOneWithoutModelsInput, bf as ModelTypeCreateOrConnectWithoutModelsInput, bg as ModelTypeCreateWithoutModelsInput, bh as ModelTypeDefaultArgs, bi as ModelTypeDelegate, bj as ModelTypeDeleteArgs, bk as ModelTypeDeleteManyArgs, bl as ModelTypeFieldRefs, bm as ModelTypeFindFirstArgs, bn as ModelTypeFindFirstOrThrowArgs, bo as ModelTypeFindManyArgs, bp as ModelTypeFindUniqueArgs, bq as ModelTypeFindUniqueOrThrowArgs, br as ModelTypeGetPayload, bs as ModelTypeGroupByArgs, bt as ModelTypeGroupByOutputType, bu as ModelTypeInclude, bv as ModelTypeIncludeCreateManyAndReturn, bw as ModelTypeIncludeUpdateManyAndReturn, bx as ModelTypeMaxAggregateInputType, by as ModelTypeMaxAggregateOutputType, bz as ModelTypeMaxOrderByAggregateInput, bA as ModelTypeMinAggregateInputType, bB as ModelTypeMinAggregateOutputType, bC as ModelTypeMinOrderByAggregateInput, a as ModelTypeModel, bD as ModelTypeOmit, bE as ModelTypeOrderByWithAggregationInput, bF as ModelTypeOrderByWithRelationInput, dk as ModelTypeScalarFieldEnum, bG as ModelTypeScalarRelationFilter, bH as ModelTypeScalarWhereWithAggregatesInput, bI as ModelTypeSelect, bJ as ModelTypeSelectCreateManyAndReturn, bK as ModelTypeSelectScalar, bL as ModelTypeSelectUpdateManyAndReturn, bM as ModelTypeUncheckedCreateInput, bN as ModelTypeUncheckedCreateWithoutModelsInput, bO as ModelTypeUncheckedUpdateInput, bP as ModelTypeUncheckedUpdateManyInput, bQ as ModelTypeUncheckedUpdateWithoutModelsInput, bR as ModelTypeUpdateArgs, bS as ModelTypeUpdateInput, bT as ModelTypeUpdateManyAndReturnArgs, bU as ModelTypeUpdateManyArgs, bV as ModelTypeUpdateManyMutationInput, bW as ModelTypeUpdateOneRequiredWithoutModelsNestedInput, bX as ModelTypeUpdateToOneWithWhereWithoutModelsInput, bY as ModelTypeUpdateWithoutModelsInput, bZ as ModelTypeUpsertArgs, b_ as ModelTypeUpsertWithoutModelsInput, b$ as ModelTypeWhereInput, c0 as ModelTypeWhereUniqueInput, c1 as ModelUncheckedCreateInput, c2 as ModelUncheckedCreateNestedManyWithoutModelTypeInput, c3 as ModelUncheckedCreateWithoutModelTypeInput, c4 as ModelUncheckedUpdateInput, c5 as ModelUncheckedUpdateManyInput, c6 as ModelUncheckedUpdateManyWithoutModelTypeInput, c7 as ModelUncheckedUpdateManyWithoutModelTypeNestedInput, c8 as ModelUncheckedUpdateWithoutModelTypeInput, c9 as ModelUpdateArgs, ca as ModelUpdateInput, cb as ModelUpdateManyAndReturnArgs, cc as ModelUpdateManyArgs, cd as ModelUpdateManyMutationInput, ce as ModelUpdateManyWithWhereWithoutModelTypeInput, cf as ModelUpdateManyWithoutModelTypeNestedInput, cg as ModelUpdateWithWhereUniqueWithoutModelTypeInput, ch as ModelUpdateWithoutModelTypeInput, ci as ModelUpsertArgs, cj as ModelUpsertWithWhereUniqueWithoutModelTypeInput, ck as ModelWhereInput, cl as ModelWhereUniqueInput, cm as NestedDateTimeFilter, cn as NestedDateTimeNullableFilter, co as NestedDateTimeNullableWithAggregatesFilter, cp as NestedDateTimeWithAggregatesFilter, cq as NestedIntFilter, cr as NestedIntNullableFilter, cs as NestedJsonFilter, ct as NestedJsonFilterBase, cu as NestedStringFilter, cv as NestedStringWithAggregatesFilter, cw as Not, dl as NullTypes, cx as NullableDateTimeFieldUpdateOperationsInput, dm as NullsOrder, cy as OptionalFlat, cz as Or, cA as Overwrite, cB as PatchUndefined, cC as Payload, cD as PickEnumerable, cE as PrismaAction, cF as PrismaClientInitializationError, cG as PrismaClientKnownRequestError, b as PrismaClientOptions, cH as PrismaClientRustPanicError, cI as PrismaClientUnknownRequestError, cJ as PrismaClientValidationError, cK as PrismaPromise, cL as PrismaVersion, cM as Prisma__ModelClient, cN as Prisma__ModelTypeClient, cO as QueryEvent, dn as QueryMode, cP as Result, cQ as SelectSubset, dp as SortOrder, cR as SortOrderInput, cS as Sql, cT as Strict, cU as StringFieldRefInput, cV as StringFieldUpdateOperationsInput, cW as StringFilter, cX as StringWithAggregatesFilter, cY as Subset, cZ as SubsetIntersection, c_ as TransactionClient, dq as TransactionIsolationLevel, c$ as True, d0 as TypeMap, d1 as TypeMapCb, d2 as UnEnumerate, d3 as Union, d4 as XOR, d5 as defineExtension, d6 as empty, d7 as getExtensionContext, d8 as join, d9 as prismaVersion, da as raw, db as sql } from '../../../class-0p_HeQd8.js';
@@ -0,0 +1,60 @@
1
+ import {
2
+ AnyNull,
3
+ DbNull,
4
+ Decimal,
5
+ JsonNull,
6
+ JsonNullValueFilter,
7
+ JsonNullValueInput,
8
+ ModelName,
9
+ ModelScalarFieldEnum,
10
+ ModelTypeScalarFieldEnum,
11
+ NullTypes,
12
+ NullsOrder,
13
+ PrismaClientInitializationError,
14
+ PrismaClientKnownRequestError,
15
+ PrismaClientRustPanicError,
16
+ PrismaClientUnknownRequestError,
17
+ PrismaClientValidationError,
18
+ QueryMode,
19
+ SortOrder,
20
+ Sql,
21
+ TransactionIsolationLevel,
22
+ defineExtension,
23
+ empty,
24
+ getExtensionContext,
25
+ join,
26
+ prismaVersion,
27
+ raw,
28
+ sql
29
+ } from "../../../chunk-BFYMLU3E.js";
30
+ import "../../../chunk-SGFKK5SQ.js";
31
+ import "../../../chunk-MLKGABMK.js";
32
+ export {
33
+ AnyNull,
34
+ DbNull,
35
+ Decimal,
36
+ JsonNull,
37
+ JsonNullValueFilter,
38
+ JsonNullValueInput,
39
+ ModelName,
40
+ ModelScalarFieldEnum,
41
+ ModelTypeScalarFieldEnum,
42
+ NullTypes,
43
+ NullsOrder,
44
+ PrismaClientInitializationError,
45
+ PrismaClientKnownRequestError,
46
+ PrismaClientRustPanicError,
47
+ PrismaClientUnknownRequestError,
48
+ PrismaClientValidationError,
49
+ QueryMode,
50
+ SortOrder,
51
+ Sql,
52
+ TransactionIsolationLevel,
53
+ defineExtension,
54
+ empty,
55
+ getExtensionContext,
56
+ join,
57
+ prismaVersion,
58
+ raw,
59
+ sql
60
+ };
@@ -0,0 +1,5 @@
1
+ import '@prisma/client-runtime-utils';
2
+ import '@prisma/client/runtime/index-browser';
3
+ export { $ as $ModelPayload, d as $ModelTypePayload, A as AggregateModel, e as AggregateModelType, f as Args, g as At, h as AtLeast, B as BatchPayload, i as Boolean, j as Bytes, C as CheckIsLogLevel, k as ComputeRaw, D as DMMF, l as DateTimeFieldRefInput, m as DateTimeFieldUpdateOperationsInput, n as DateTimeFilter, o as DateTimeNullableFilter, q as DateTimeNullableWithAggregatesFilter, r as DateTimeWithAggregatesFilter, s as DecimalJsLike, t as DefaultPrismaClient, E as Either, u as EnumQueryModeFieldRefInput, v as Enumerable, w as ErrorFormat, x as Exact, y as ExcludeUnderscoreKeys, z as Extends, F as Extension, G as False, H as FieldRef, I as GetEvents, J as GetHavingFields, K as GetLogType, N as GetModelAggregateType, O as GetModelGroupByPayload, Q as GetModelTypeAggregateType, R as GetModelTypeGroupByPayload, S as GetScalarType, T as GlobalOmitConfig, U as Has, V as InputJsonArray, W as InputJsonObject, X as InputJsonValue, Y as IntFieldRefInput, Z as IntersectOf, _ as JsonArray, a0 as JsonFieldRefInput, a1 as JsonFilter, a2 as JsonFilterBase, a3 as JsonObject, a4 as JsonValue, a5 as JsonWithAggregatesFilter, a6 as JsonWithAggregatesFilterBase, a7 as Keys, a8 as ListDateTimeFieldRefInput, a9 as ListIntFieldRefInput, aa as ListStringFieldRefInput, ab as LogDefinition, ac as LogEvent, L as LogLevel, ad as MaybeTupleToUnion, ae as Merge, af as ModelAggregateArgs, ag as ModelCountAggregateInputType, ah as ModelCountAggregateOutputType, ai as ModelCountArgs, aj as ModelCountOrderByAggregateInput, ak as ModelCreateArgs, al as ModelCreateInput, am as ModelCreateManyAndReturnArgs, an as ModelCreateManyArgs, ao as ModelCreateManyInput, ap as ModelCreateManyModelTypeInput, aq as ModelCreateManyModelTypeInputEnvelope, ar as ModelCreateNestedManyWithoutModelTypeInput, as as ModelCreateOrConnectWithoutModelTypeInput, at as ModelCreateWithoutModelTypeInput, au as ModelDefaultArgs, av as ModelDelegate, aw as ModelDeleteArgs, ax as ModelDeleteManyArgs, ay as ModelFieldRefs, az as ModelFindFirstArgs, aA as ModelFindFirstOrThrowArgs, aB as ModelFindManyArgs, aC as ModelFindUniqueArgs, aD as ModelFindUniqueOrThrowArgs, aE as ModelGetPayload, aF as ModelGroupByArgs, aG as ModelGroupByOutputType, aH as ModelInclude, aI as ModelIncludeCreateManyAndReturn, aJ as ModelIncludeUpdateManyAndReturn, aK as ModelListRelationFilter, aL as ModelMaxAggregateInputType, aM as ModelMaxAggregateOutputType, aN as ModelMaxOrderByAggregateInput, aO as ModelMinAggregateInputType, aP as ModelMinAggregateOutputType, aQ as ModelMinOrderByAggregateInput, M as ModelModel, aR as ModelOmit, aS as ModelOrderByRelationAggregateInput, aT as ModelOrderByWithAggregationInput, aU as ModelOrderByWithRelationInput, aV as ModelScalarWhereInput, aW as ModelScalarWhereWithAggregatesInput, aX as ModelSelect, aY as ModelSelectCreateManyAndReturn, aZ as ModelSelectScalar, a_ as ModelSelectUpdateManyAndReturn, a$ as ModelType$modelsArgs, b0 as ModelTypeAggregateArgs, b1 as ModelTypeCountAggregateInputType, b2 as ModelTypeCountAggregateOutputType, b3 as ModelTypeCountArgs, b4 as ModelTypeCountOrderByAggregateInput, b5 as ModelTypeCountOutputType, b6 as ModelTypeCountOutputTypeCountModelsArgs, b7 as ModelTypeCountOutputTypeDefaultArgs, b8 as ModelTypeCountOutputTypeSelect, b9 as ModelTypeCreateArgs, ba as ModelTypeCreateInput, bb as ModelTypeCreateManyAndReturnArgs, bc as ModelTypeCreateManyArgs, bd as ModelTypeCreateManyInput, be as ModelTypeCreateNestedOneWithoutModelsInput, bf as ModelTypeCreateOrConnectWithoutModelsInput, bg as ModelTypeCreateWithoutModelsInput, bh as ModelTypeDefaultArgs, bi as ModelTypeDelegate, bj as ModelTypeDeleteArgs, bk as ModelTypeDeleteManyArgs, bl as ModelTypeFieldRefs, bm as ModelTypeFindFirstArgs, bn as ModelTypeFindFirstOrThrowArgs, bo as ModelTypeFindManyArgs, bp as ModelTypeFindUniqueArgs, bq as ModelTypeFindUniqueOrThrowArgs, br as ModelTypeGetPayload, bs as ModelTypeGroupByArgs, bt as ModelTypeGroupByOutputType, bu as ModelTypeInclude, bv as ModelTypeIncludeCreateManyAndReturn, bw as ModelTypeIncludeUpdateManyAndReturn, bx as ModelTypeMaxAggregateInputType, by as ModelTypeMaxAggregateOutputType, bz as ModelTypeMaxOrderByAggregateInput, bA as ModelTypeMinAggregateInputType, bB as ModelTypeMinAggregateOutputType, bC as ModelTypeMinOrderByAggregateInput, a as ModelTypeModel, bD as ModelTypeOmit, bE as ModelTypeOrderByWithAggregationInput, bF as ModelTypeOrderByWithRelationInput, bG as ModelTypeScalarRelationFilter, bH as ModelTypeScalarWhereWithAggregatesInput, bI as ModelTypeSelect, bJ as ModelTypeSelectCreateManyAndReturn, bK as ModelTypeSelectScalar, bL as ModelTypeSelectUpdateManyAndReturn, bM as ModelTypeUncheckedCreateInput, bN as ModelTypeUncheckedCreateWithoutModelsInput, bO as ModelTypeUncheckedUpdateInput, bP as ModelTypeUncheckedUpdateManyInput, bQ as ModelTypeUncheckedUpdateWithoutModelsInput, bR as ModelTypeUpdateArgs, bS as ModelTypeUpdateInput, bT as ModelTypeUpdateManyAndReturnArgs, bU as ModelTypeUpdateManyArgs, bV as ModelTypeUpdateManyMutationInput, bW as ModelTypeUpdateOneRequiredWithoutModelsNestedInput, bX as ModelTypeUpdateToOneWithWhereWithoutModelsInput, bY as ModelTypeUpdateWithoutModelsInput, bZ as ModelTypeUpsertArgs, b_ as ModelTypeUpsertWithoutModelsInput, b$ as ModelTypeWhereInput, c0 as ModelTypeWhereUniqueInput, c1 as ModelUncheckedCreateInput, c2 as ModelUncheckedCreateNestedManyWithoutModelTypeInput, c3 as ModelUncheckedCreateWithoutModelTypeInput, c4 as ModelUncheckedUpdateInput, c5 as ModelUncheckedUpdateManyInput, c6 as ModelUncheckedUpdateManyWithoutModelTypeInput, c7 as ModelUncheckedUpdateManyWithoutModelTypeNestedInput, c8 as ModelUncheckedUpdateWithoutModelTypeInput, c9 as ModelUpdateArgs, ca as ModelUpdateInput, cb as ModelUpdateManyAndReturnArgs, cc as ModelUpdateManyArgs, cd as ModelUpdateManyMutationInput, ce as ModelUpdateManyWithWhereWithoutModelTypeInput, cf as ModelUpdateManyWithoutModelTypeNestedInput, cg as ModelUpdateWithWhereUniqueWithoutModelTypeInput, ch as ModelUpdateWithoutModelTypeInput, ci as ModelUpsertArgs, cj as ModelUpsertWithWhereUniqueWithoutModelTypeInput, ck as ModelWhereInput, cl as ModelWhereUniqueInput, cm as NestedDateTimeFilter, cn as NestedDateTimeNullableFilter, co as NestedDateTimeNullableWithAggregatesFilter, cp as NestedDateTimeWithAggregatesFilter, cq as NestedIntFilter, cr as NestedIntNullableFilter, cs as NestedJsonFilter, ct as NestedJsonFilterBase, cu as NestedStringFilter, cv as NestedStringWithAggregatesFilter, cw as Not, cx as NullableDateTimeFieldUpdateOperationsInput, cy as OptionalFlat, cz as Or, cA as Overwrite, cB as PatchUndefined, cC as Payload, cD as PickEnumerable, cE as PrismaAction, cF as PrismaClientInitializationError, cG as PrismaClientKnownRequestError, b as PrismaClientOptions, cH as PrismaClientRustPanicError, cI as PrismaClientUnknownRequestError, cJ as PrismaClientValidationError, cK as PrismaPromise, cL as PrismaVersion, cM as Prisma__ModelClient, cN as Prisma__ModelTypeClient, cO as QueryEvent, cP as Result, cQ as SelectSubset, cR as SortOrderInput, cS as Sql, cT as Strict, cU as StringFieldRefInput, cV as StringFieldUpdateOperationsInput, cW as StringFilter, cX as StringWithAggregatesFilter, cY as Subset, cZ as SubsetIntersection, c_ as TransactionClient, c$ as True, d0 as TypeMap, d1 as TypeMapCb, d2 as UnEnumerate, d3 as Union, d4 as XOR, d5 as defineExtension, d6 as empty, d7 as getExtensionContext, d8 as join, d9 as prismaVersion, da as raw, db as sql } from '../../../class-0p_HeQd8.js';
4
+ export { A as AnyNull, D as DbNull, a as Decimal, J as JsonNull, b as JsonNullValueFilter, c as JsonNullValueInput, M as ModelName, d as ModelScalarFieldEnum, e as ModelTypeScalarFieldEnum, N as NullTypes, f as NullsOrder, Q as QueryMode, S as SortOrder, T as TransactionIsolationLevel } from '../../../prismaNamespaceBrowser-BF7-8ATJ.js';
5
+ import '@prisma/client/runtime/client';
@@ -0,0 +1,33 @@
1
+ import {
2
+ AnyNull,
3
+ DbNull,
4
+ Decimal,
5
+ JsonNull,
6
+ JsonNullValueFilter,
7
+ JsonNullValueInput,
8
+ ModelName,
9
+ ModelScalarFieldEnum,
10
+ ModelTypeScalarFieldEnum,
11
+ NullTypes,
12
+ NullsOrder,
13
+ QueryMode,
14
+ SortOrder,
15
+ TransactionIsolationLevel
16
+ } from "../../../chunk-VSIWSQ2T.js";
17
+ import "../../../chunk-MLKGABMK.js";
18
+ export {
19
+ AnyNull,
20
+ DbNull,
21
+ Decimal,
22
+ JsonNull,
23
+ JsonNullValueFilter,
24
+ JsonNullValueInput,
25
+ ModelName,
26
+ ModelScalarFieldEnum,
27
+ ModelTypeScalarFieldEnum,
28
+ NullTypes,
29
+ NullsOrder,
30
+ QueryMode,
31
+ SortOrder,
32
+ TransactionIsolationLevel
33
+ };
@@ -0,0 +1,2 @@
1
+ import '@prisma/client/runtime/client';
2
+ export { $ as $ModelPayload, A as AggregateModel, N as GetModelAggregateType, O as GetModelGroupByPayload, af as ModelAggregateArgs, ag as ModelCountAggregateInputType, ah as ModelCountAggregateOutputType, ai as ModelCountArgs, aj as ModelCountOrderByAggregateInput, ak as ModelCreateArgs, al as ModelCreateInput, am as ModelCreateManyAndReturnArgs, an as ModelCreateManyArgs, ao as ModelCreateManyInput, ap as ModelCreateManyModelTypeInput, aq as ModelCreateManyModelTypeInputEnvelope, ar as ModelCreateNestedManyWithoutModelTypeInput, as as ModelCreateOrConnectWithoutModelTypeInput, at as ModelCreateWithoutModelTypeInput, au as ModelDefaultArgs, av as ModelDelegate, aw as ModelDeleteArgs, ax as ModelDeleteManyArgs, ay as ModelFieldRefs, az as ModelFindFirstArgs, aA as ModelFindFirstOrThrowArgs, aB as ModelFindManyArgs, aC as ModelFindUniqueArgs, aD as ModelFindUniqueOrThrowArgs, aE as ModelGetPayload, aF as ModelGroupByArgs, aG as ModelGroupByOutputType, aH as ModelInclude, aI as ModelIncludeCreateManyAndReturn, aJ as ModelIncludeUpdateManyAndReturn, aK as ModelListRelationFilter, aL as ModelMaxAggregateInputType, aM as ModelMaxAggregateOutputType, aN as ModelMaxOrderByAggregateInput, aO as ModelMinAggregateInputType, aP as ModelMinAggregateOutputType, aQ as ModelMinOrderByAggregateInput, M as ModelModel, aR as ModelOmit, aS as ModelOrderByRelationAggregateInput, aT as ModelOrderByWithAggregationInput, aU as ModelOrderByWithRelationInput, aV as ModelScalarWhereInput, aW as ModelScalarWhereWithAggregatesInput, aX as ModelSelect, aY as ModelSelectCreateManyAndReturn, aZ as ModelSelectScalar, a_ as ModelSelectUpdateManyAndReturn, c1 as ModelUncheckedCreateInput, c2 as ModelUncheckedCreateNestedManyWithoutModelTypeInput, c3 as ModelUncheckedCreateWithoutModelTypeInput, c4 as ModelUncheckedUpdateInput, c5 as ModelUncheckedUpdateManyInput, c6 as ModelUncheckedUpdateManyWithoutModelTypeInput, c7 as ModelUncheckedUpdateManyWithoutModelTypeNestedInput, c8 as ModelUncheckedUpdateWithoutModelTypeInput, c9 as ModelUpdateArgs, ca as ModelUpdateInput, cb as ModelUpdateManyAndReturnArgs, cc as ModelUpdateManyArgs, cd as ModelUpdateManyMutationInput, ce as ModelUpdateManyWithWhereWithoutModelTypeInput, cf as ModelUpdateManyWithoutModelTypeNestedInput, cg as ModelUpdateWithWhereUniqueWithoutModelTypeInput, ch as ModelUpdateWithoutModelTypeInput, ci as ModelUpsertArgs, cj as ModelUpsertWithWhereUniqueWithoutModelTypeInput, ck as ModelWhereInput, cl as ModelWhereUniqueInput, cM as Prisma__ModelClient } from '../../../class-0p_HeQd8.js';
File without changes
@@ -0,0 +1,2 @@
1
+ import '@prisma/client/runtime/client';
2
+ export { d as $ModelTypePayload, e as AggregateModelType, m as DateTimeFieldUpdateOperationsInput, Q as GetModelTypeAggregateType, R as GetModelTypeGroupByPayload, a$ as ModelType$modelsArgs, b0 as ModelTypeAggregateArgs, b1 as ModelTypeCountAggregateInputType, b2 as ModelTypeCountAggregateOutputType, b3 as ModelTypeCountArgs, b4 as ModelTypeCountOrderByAggregateInput, b5 as ModelTypeCountOutputType, b6 as ModelTypeCountOutputTypeCountModelsArgs, b7 as ModelTypeCountOutputTypeDefaultArgs, b8 as ModelTypeCountOutputTypeSelect, b9 as ModelTypeCreateArgs, ba as ModelTypeCreateInput, bb as ModelTypeCreateManyAndReturnArgs, bc as ModelTypeCreateManyArgs, bd as ModelTypeCreateManyInput, be as ModelTypeCreateNestedOneWithoutModelsInput, bf as ModelTypeCreateOrConnectWithoutModelsInput, bg as ModelTypeCreateWithoutModelsInput, bh as ModelTypeDefaultArgs, bi as ModelTypeDelegate, bj as ModelTypeDeleteArgs, bk as ModelTypeDeleteManyArgs, bl as ModelTypeFieldRefs, bm as ModelTypeFindFirstArgs, bn as ModelTypeFindFirstOrThrowArgs, bo as ModelTypeFindManyArgs, bp as ModelTypeFindUniqueArgs, bq as ModelTypeFindUniqueOrThrowArgs, br as ModelTypeGetPayload, bs as ModelTypeGroupByArgs, bt as ModelTypeGroupByOutputType, bu as ModelTypeInclude, bv as ModelTypeIncludeCreateManyAndReturn, bw as ModelTypeIncludeUpdateManyAndReturn, bx as ModelTypeMaxAggregateInputType, by as ModelTypeMaxAggregateOutputType, bz as ModelTypeMaxOrderByAggregateInput, bA as ModelTypeMinAggregateInputType, bB as ModelTypeMinAggregateOutputType, bC as ModelTypeMinOrderByAggregateInput, a as ModelTypeModel, bD as ModelTypeOmit, bE as ModelTypeOrderByWithAggregationInput, bF as ModelTypeOrderByWithRelationInput, bG as ModelTypeScalarRelationFilter, bH as ModelTypeScalarWhereWithAggregatesInput, bI as ModelTypeSelect, bJ as ModelTypeSelectCreateManyAndReturn, bK as ModelTypeSelectScalar, bL as ModelTypeSelectUpdateManyAndReturn, bM as ModelTypeUncheckedCreateInput, bN as ModelTypeUncheckedCreateWithoutModelsInput, bO as ModelTypeUncheckedUpdateInput, bP as ModelTypeUncheckedUpdateManyInput, bQ as ModelTypeUncheckedUpdateWithoutModelsInput, bR as ModelTypeUpdateArgs, bS as ModelTypeUpdateInput, bT as ModelTypeUpdateManyAndReturnArgs, bU as ModelTypeUpdateManyArgs, bV as ModelTypeUpdateManyMutationInput, bW as ModelTypeUpdateOneRequiredWithoutModelsNestedInput, bX as ModelTypeUpdateToOneWithWhereWithoutModelsInput, bY as ModelTypeUpdateWithoutModelsInput, bZ as ModelTypeUpsertArgs, b_ as ModelTypeUpsertWithoutModelsInput, b$ as ModelTypeWhereInput, c0 as ModelTypeWhereUniqueInput, cx as NullableDateTimeFieldUpdateOperationsInput, cN as Prisma__ModelTypeClient, cV as StringFieldUpdateOperationsInput } from '../../../class-0p_HeQd8.js';
File without changes
@@ -0,0 +1,2 @@
1
+ export { $ as $ModelPayload, d as $ModelTypePayload, A as AggregateModel, e as AggregateModelType, m as DateTimeFieldUpdateOperationsInput, n as DateTimeFilter, o as DateTimeNullableFilter, q as DateTimeNullableWithAggregatesFilter, r as DateTimeWithAggregatesFilter, N as GetModelAggregateType, O as GetModelGroupByPayload, Q as GetModelTypeAggregateType, R as GetModelTypeGroupByPayload, a1 as JsonFilter, a2 as JsonFilterBase, a5 as JsonWithAggregatesFilter, a6 as JsonWithAggregatesFilterBase, af as ModelAggregateArgs, ag as ModelCountAggregateInputType, ah as ModelCountAggregateOutputType, ai as ModelCountArgs, aj as ModelCountOrderByAggregateInput, ak as ModelCreateArgs, al as ModelCreateInput, am as ModelCreateManyAndReturnArgs, an as ModelCreateManyArgs, ao as ModelCreateManyInput, ap as ModelCreateManyModelTypeInput, aq as ModelCreateManyModelTypeInputEnvelope, ar as ModelCreateNestedManyWithoutModelTypeInput, as as ModelCreateOrConnectWithoutModelTypeInput, at as ModelCreateWithoutModelTypeInput, au as ModelDefaultArgs, av as ModelDelegate, aw as ModelDeleteArgs, ax as ModelDeleteManyArgs, ay as ModelFieldRefs, az as ModelFindFirstArgs, aA as ModelFindFirstOrThrowArgs, aB as ModelFindManyArgs, aC as ModelFindUniqueArgs, aD as ModelFindUniqueOrThrowArgs, aE as ModelGetPayload, aF as ModelGroupByArgs, aG as ModelGroupByOutputType, aH as ModelInclude, aI as ModelIncludeCreateManyAndReturn, aJ as ModelIncludeUpdateManyAndReturn, aK as ModelListRelationFilter, aL as ModelMaxAggregateInputType, aM as ModelMaxAggregateOutputType, aN as ModelMaxOrderByAggregateInput, aO as ModelMinAggregateInputType, aP as ModelMinAggregateOutputType, aQ as ModelMinOrderByAggregateInput, M as ModelModel, aR as ModelOmit, aS as ModelOrderByRelationAggregateInput, aT as ModelOrderByWithAggregationInput, aU as ModelOrderByWithRelationInput, aV as ModelScalarWhereInput, aW as ModelScalarWhereWithAggregatesInput, aX as ModelSelect, aY as ModelSelectCreateManyAndReturn, aZ as ModelSelectScalar, a_ as ModelSelectUpdateManyAndReturn, a$ as ModelType$modelsArgs, b0 as ModelTypeAggregateArgs, b1 as ModelTypeCountAggregateInputType, b2 as ModelTypeCountAggregateOutputType, b3 as ModelTypeCountArgs, b4 as ModelTypeCountOrderByAggregateInput, b5 as ModelTypeCountOutputType, b6 as ModelTypeCountOutputTypeCountModelsArgs, b7 as ModelTypeCountOutputTypeDefaultArgs, b8 as ModelTypeCountOutputTypeSelect, b9 as ModelTypeCreateArgs, ba as ModelTypeCreateInput, bb as ModelTypeCreateManyAndReturnArgs, bc as ModelTypeCreateManyArgs, bd as ModelTypeCreateManyInput, be as ModelTypeCreateNestedOneWithoutModelsInput, bf as ModelTypeCreateOrConnectWithoutModelsInput, bg as ModelTypeCreateWithoutModelsInput, bh as ModelTypeDefaultArgs, bi as ModelTypeDelegate, bj as ModelTypeDeleteArgs, bk as ModelTypeDeleteManyArgs, bl as ModelTypeFieldRefs, bm as ModelTypeFindFirstArgs, bn as ModelTypeFindFirstOrThrowArgs, bo as ModelTypeFindManyArgs, bp as ModelTypeFindUniqueArgs, bq as ModelTypeFindUniqueOrThrowArgs, br as ModelTypeGetPayload, bs as ModelTypeGroupByArgs, bt as ModelTypeGroupByOutputType, bu as ModelTypeInclude, bv as ModelTypeIncludeCreateManyAndReturn, bw as ModelTypeIncludeUpdateManyAndReturn, bx as ModelTypeMaxAggregateInputType, by as ModelTypeMaxAggregateOutputType, bz as ModelTypeMaxOrderByAggregateInput, bA as ModelTypeMinAggregateInputType, bB as ModelTypeMinAggregateOutputType, bC as ModelTypeMinOrderByAggregateInput, a as ModelTypeModel, bD as ModelTypeOmit, bE as ModelTypeOrderByWithAggregationInput, bF as ModelTypeOrderByWithRelationInput, bG as ModelTypeScalarRelationFilter, bH as ModelTypeScalarWhereWithAggregatesInput, bI as ModelTypeSelect, bJ as ModelTypeSelectCreateManyAndReturn, bK as ModelTypeSelectScalar, bL as ModelTypeSelectUpdateManyAndReturn, bM as ModelTypeUncheckedCreateInput, bN as ModelTypeUncheckedCreateWithoutModelsInput, bO as ModelTypeUncheckedUpdateInput, bP as ModelTypeUncheckedUpdateManyInput, bQ as ModelTypeUncheckedUpdateWithoutModelsInput, bR as ModelTypeUpdateArgs, bS as ModelTypeUpdateInput, bT as ModelTypeUpdateManyAndReturnArgs, bU as ModelTypeUpdateManyArgs, bV as ModelTypeUpdateManyMutationInput, bW as ModelTypeUpdateOneRequiredWithoutModelsNestedInput, bX as ModelTypeUpdateToOneWithWhereWithoutModelsInput, bY as ModelTypeUpdateWithoutModelsInput, bZ as ModelTypeUpsertArgs, b_ as ModelTypeUpsertWithoutModelsInput, b$ as ModelTypeWhereInput, c0 as ModelTypeWhereUniqueInput, c1 as ModelUncheckedCreateInput, c2 as ModelUncheckedCreateNestedManyWithoutModelTypeInput, c3 as ModelUncheckedCreateWithoutModelTypeInput, c4 as ModelUncheckedUpdateInput, c5 as ModelUncheckedUpdateManyInput, c6 as ModelUncheckedUpdateManyWithoutModelTypeInput, c7 as ModelUncheckedUpdateManyWithoutModelTypeNestedInput, c8 as ModelUncheckedUpdateWithoutModelTypeInput, c9 as ModelUpdateArgs, ca as ModelUpdateInput, cb as ModelUpdateManyAndReturnArgs, cc as ModelUpdateManyArgs, cd as ModelUpdateManyMutationInput, ce as ModelUpdateManyWithWhereWithoutModelTypeInput, cf as ModelUpdateManyWithoutModelTypeNestedInput, cg as ModelUpdateWithWhereUniqueWithoutModelTypeInput, ch as ModelUpdateWithoutModelTypeInput, ci as ModelUpsertArgs, cj as ModelUpsertWithWhereUniqueWithoutModelTypeInput, ck as ModelWhereInput, cl as ModelWhereUniqueInput, cm as NestedDateTimeFilter, cn as NestedDateTimeNullableFilter, co as NestedDateTimeNullableWithAggregatesFilter, cp as NestedDateTimeWithAggregatesFilter, cq as NestedIntFilter, cr as NestedIntNullableFilter, cs as NestedJsonFilter, ct as NestedJsonFilterBase, cu as NestedStringFilter, cv as NestedStringWithAggregatesFilter, cx as NullableDateTimeFieldUpdateOperationsInput, cM as Prisma__ModelClient, cN as Prisma__ModelTypeClient, cR as SortOrderInput, cV as StringFieldUpdateOperationsInput, cW as StringFilter, cX as StringWithAggregatesFilter } from '../../class-0p_HeQd8.js';
2
+ import '@prisma/client/runtime/client';
File without changes
@@ -0,0 +1,21 @@
1
+ type IsoDateProperties = {
2
+ createdAt: string;
3
+ updatedAt?: string | undefined | null;
4
+ };
5
+ type OutputPrismaDateProperties = {
6
+ createdAt: Date;
7
+ updatedAt: Date | undefined | null;
8
+ };
9
+ declare function parseIsoDateTimeToPrismaDateTime<ContentType extends IsoDateProperties>(content: ContentType): Omit<ContentType, keyof IsoDateProperties> & OutputPrismaDateProperties;
10
+
11
+ type DateTimeProperties = {
12
+ createdAt: Date;
13
+ updatedAt: Date | undefined | null;
14
+ };
15
+ type OutputDateTimeProperties = {
16
+ createdAt: string;
17
+ updatedAt: string | undefined;
18
+ };
19
+ declare function parsePrismaDateTimeToISOString<ContentType extends DateTimeProperties>(content: ContentType): Omit<ContentType, keyof DateTimeProperties> & OutputDateTimeProperties;
20
+
21
+ export { parseIsoDateTimeToPrismaDateTime, parsePrismaDateTimeToISOString };
@@ -0,0 +1,25 @@
1
+ import "../chunk-MLKGABMK.js";
2
+
3
+ // src/helpers/parse-iso-datetime-to-prisma-datetime.ts
4
+ function parseIsoDateTimeToPrismaDateTime(content) {
5
+ const { createdAt, updatedAt, ...properties } = content;
6
+ return {
7
+ ...properties,
8
+ createdAt: new Date(createdAt),
9
+ updatedAt: typeof updatedAt === "string" ? new Date(updatedAt) : updatedAt
10
+ };
11
+ }
12
+
13
+ // src/helpers/parse-prisma-datetime-to-iso-string.ts
14
+ function parsePrismaDateTimeToISOString(content) {
15
+ const { createdAt, updatedAt, ...properties } = content;
16
+ return {
17
+ ...properties,
18
+ createdAt: createdAt.toISOString(),
19
+ updatedAt: updatedAt?.toISOString()
20
+ };
21
+ }
22
+ export {
23
+ parseIsoDateTimeToPrismaDateTime,
24
+ parsePrismaDateTimeToISOString
25
+ };
@@ -0,0 +1,8 @@
1
+ import { PrismaClient } from './generated/prisma/client.js';
2
+ import '@prisma/client/runtime/client';
3
+ import './class-0p_HeQd8.js';
4
+ import './generated/prisma/enums.js';
5
+
6
+ declare function connectPrisma(connectionString: string): Promise<PrismaClient>;
7
+
8
+ export { PrismaClient, connectPrisma };
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import {
2
+ connectPrisma
3
+ } from "./chunk-4TPWYJTM.js";
4
+ import "./chunk-GNRBD6BW.js";
5
+ import "./chunk-BFYMLU3E.js";
6
+ import "./chunk-SGFKK5SQ.js";
7
+ import "./chunk-MLKGABMK.js";
8
+ import "./chunk-RXLVLZHT.js";
9
+ export {
10
+ connectPrisma
11
+ };
@@ -0,0 +1,38 @@
1
+ import * as elysia from 'elysia';
2
+ import { PrismaClient } from '../generated/prisma/client.js';
3
+ import '@prisma/client/runtime/client';
4
+ import '../class-0p_HeQd8.js';
5
+ import '../generated/prisma/enums.js';
6
+
7
+ declare function modelsAdapter(connectionString: string): Promise<elysia.default<"", {
8
+ decorator: {
9
+ modelsPrismaClient: PrismaClient;
10
+ };
11
+ store: {};
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ typebox: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: {};
21
+ macroFn: {};
22
+ parser: {};
23
+ response: {};
24
+ }, {}, {
25
+ derive: {};
26
+ resolve: {};
27
+ schema: {};
28
+ standaloneSchema: {};
29
+ response: {};
30
+ }, {
31
+ derive: {};
32
+ resolve: {};
33
+ schema: {};
34
+ standaloneSchema: {};
35
+ response: {};
36
+ }>>;
37
+
38
+ export { modelsAdapter };
@@ -0,0 +1,18 @@
1
+ import {
2
+ connectPrisma
3
+ } from "../chunk-4TPWYJTM.js";
4
+ import "../chunk-GNRBD6BW.js";
5
+ import "../chunk-BFYMLU3E.js";
6
+ import "../chunk-SGFKK5SQ.js";
7
+ import "../chunk-MLKGABMK.js";
8
+ import "../chunk-RXLVLZHT.js";
9
+
10
+ // src/plugins/models-adapter.ts
11
+ import { barista } from "@roastery/barista";
12
+ async function modelsAdapter(connectionString) {
13
+ const prisma = await connectPrisma(connectionString);
14
+ return barista().decorate("modelsPrismaClient", prisma);
15
+ }
16
+ export {
17
+ modelsAdapter
18
+ };