@dismissible/nestjs-postgres-storage 0.0.2-canary.738340d.0 → 0.1.0-canary.4b708a5.0

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 (59) hide show
  1. package/bin/dismissible-prisma.js +0 -0
  2. package/package.json +7 -6
  3. package/prisma/generated/prisma/client.d.ts +26 -0
  4. package/prisma/generated/prisma/client.js +34 -0
  5. package/prisma/generated/prisma/client.js.map +1 -0
  6. package/prisma/generated/prisma/commonInputTypes.d.ts +232 -0
  7. package/prisma/generated/prisma/commonInputTypes.js +12 -0
  8. package/prisma/generated/prisma/commonInputTypes.js.map +1 -0
  9. package/prisma/generated/prisma/enums.d.ts +1 -0
  10. package/prisma/generated/prisma/{enums.ts → enums.js} +3 -6
  11. package/prisma/generated/prisma/enums.js.map +1 -0
  12. package/prisma/generated/prisma/internal/class.d.ts +126 -0
  13. package/prisma/generated/prisma/internal/class.js +45 -0
  14. package/prisma/generated/prisma/internal/class.js.map +1 -0
  15. package/prisma/generated/prisma/internal/prismaNamespace.d.ts +548 -0
  16. package/prisma/generated/prisma/internal/prismaNamespace.js +114 -0
  17. package/prisma/generated/prisma/internal/prismaNamespace.js.map +1 -0
  18. package/prisma/generated/prisma/models/DismissibleItem.d.ts +1001 -0
  19. package/prisma/generated/prisma/models/DismissibleItem.js +3 -0
  20. package/prisma/generated/prisma/models/DismissibleItem.js.map +1 -0
  21. package/prisma/generated/prisma/models.d.ts +2 -0
  22. package/prisma/generated/prisma/models.js +3 -0
  23. package/prisma/generated/prisma/models.js.map +1 -0
  24. package/src/index.js +9 -0
  25. package/src/index.js.map +1 -0
  26. package/src/postgres-storage.adapter.d.ts +21 -0
  27. package/src/postgres-storage.adapter.js +85 -0
  28. package/src/postgres-storage.adapter.js.map +1 -0
  29. package/src/postgres-storage.config.d.ts +7 -0
  30. package/src/postgres-storage.config.js +17 -0
  31. package/src/postgres-storage.config.js.map +1 -0
  32. package/src/postgres-storage.module.d.ts +12 -0
  33. package/src/postgres-storage.module.js +72 -0
  34. package/src/postgres-storage.module.js.map +1 -0
  35. package/src/prisma.service.d.ts +15 -0
  36. package/src/prisma.service.js +40 -0
  37. package/src/prisma.service.js.map +1 -0
  38. package/src/{schema-path.ts → schema-path.d.ts} +1 -5
  39. package/src/schema-path.js +20 -0
  40. package/src/schema-path.js.map +1 -0
  41. package/README.md +0 -211
  42. package/jest.config.ts +0 -10
  43. package/prisma/generated/prisma/browser.ts +0 -24
  44. package/prisma/generated/prisma/client.ts +0 -44
  45. package/prisma/generated/prisma/commonInputTypes.ts +0 -283
  46. package/prisma/generated/prisma/internal/class.ts +0 -190
  47. package/prisma/generated/prisma/internal/prismaNamespace.ts +0 -791
  48. package/prisma/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -123
  49. package/prisma/generated/prisma/models/DismissibleItem.ts +0 -1156
  50. package/prisma/generated/prisma/models.ts +0 -12
  51. package/project.json +0 -73
  52. package/src/postgres-storage.adapter.spec.ts +0 -248
  53. package/src/postgres-storage.adapter.ts +0 -101
  54. package/src/postgres-storage.config.ts +0 -11
  55. package/src/postgres-storage.module.ts +0 -79
  56. package/src/prisma.service.ts +0 -34
  57. package/tsconfig.json +0 -13
  58. package/tsconfig.lib.json +0 -14
  59. /package/src/{index.ts → index.d.ts} +0 -0
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dismissible/nestjs-postgres-storage",
3
- "version": "0.0.2-canary.738340d.0",
3
+ "version": "0.1.0-canary.4b708a5.0",
4
4
  "description": "PostgreSQL storage adapter for Dismissible using Prisma",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@nestjs/common": "^11.0.0",
23
- "@dismissible/nestjs-storage": "^0.0.2-canary.738340d.0",
24
- "@dismissible/nestjs-dismissible-item": "^0.0.2-canary.738340d.0",
25
- "@dismissible/nestjs-logger": "^0.0.2-canary.738340d.0",
23
+ "@dismissible/nestjs-storage": "^0.0.1",
24
+ "@dismissible/nestjs-dismissible-item": "^0.0.1",
25
+ "@dismissible/nestjs-logger": "^0.0.1",
26
26
  "prisma": "^7.0.0"
27
27
  },
28
28
  "peerDependenciesMeta": {
@@ -63,5 +63,6 @@
63
63
  "repository": {
64
64
  "type": "git",
65
65
  "url": ""
66
- }
67
- }
66
+ },
67
+ "type": "commonjs"
68
+ }
@@ -0,0 +1,26 @@
1
+ import * as runtime from "@prisma/client/runtime/client";
2
+ import * as $Class from "./internal/class";
3
+ import * as Prisma from "./internal/prismaNamespace";
4
+ export * as $Enums from './enums';
5
+ export * from "./enums";
6
+ /**
7
+ * ## Prisma Client
8
+ *
9
+ * Type-safe database client for TypeScript
10
+ * @example
11
+ * ```
12
+ * const prisma = new PrismaClient()
13
+ * // Fetch zero or more DismissibleItems
14
+ * const dismissibleItems = await prisma.dismissibleItem.findMany()
15
+ * ```
16
+ *
17
+ * Read more in our [docs](https://pris.ly/d/client).
18
+ */
19
+ export declare const PrismaClient: $Class.PrismaClientConstructor;
20
+ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
21
+ export { Prisma };
22
+ /**
23
+ * Model DismissibleItem
24
+ *
25
+ */
26
+ export type DismissibleItem = Prisma.DismissibleItemModel;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
8
+ * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
9
+ *
10
+ * 🟢 You can import this file directly.
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.Prisma = exports.PrismaClient = exports.$Enums = void 0;
14
+ const tslib_1 = require("tslib");
15
+ const $Class = tslib_1.__importStar(require("./internal/class"));
16
+ const Prisma = tslib_1.__importStar(require("./internal/prismaNamespace"));
17
+ exports.Prisma = Prisma;
18
+ exports.$Enums = tslib_1.__importStar(require("./enums"));
19
+ tslib_1.__exportStar(require("./enums"), exports);
20
+ /**
21
+ * ## Prisma Client
22
+ *
23
+ * Type-safe database client for TypeScript
24
+ * @example
25
+ * ```
26
+ * const prisma = new PrismaClient()
27
+ * // Fetch zero or more DismissibleItems
28
+ * const dismissibleItems = await prisma.dismissibleItem.findMany()
29
+ * ```
30
+ *
31
+ * Read more in our [docs](https://pris.ly/d/client).
32
+ */
33
+ exports.PrismaClient = $Class.getPrismaClientClass();
34
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../libs/postgres-storage/prisma/generated/prisma/client.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;GAKG;;;;AAOH,iEAA0C;AAC1C,2EAAoD;AAmB3C,wBAAM;AAjBf,0DAAiC;AACjC,kDAAuB;AACvB;;;;;;;;;;;;GAYG;AACU,QAAA,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAA"}
@@ -0,0 +1,232 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "./internal/prismaNamespace";
3
+ export type StringFilter<$PrismaModel = never> = {
4
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
5
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
6
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
7
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
8
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
9
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
10
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
11
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
12
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
13
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
14
+ mode?: Prisma.QueryMode;
15
+ not?: Prisma.NestedStringFilter<$PrismaModel> | string;
16
+ };
17
+ export type DateTimeFilter<$PrismaModel = never> = {
18
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
19
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
20
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
21
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
22
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
23
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
24
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
25
+ not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
26
+ };
27
+ export type DateTimeNullableFilter<$PrismaModel = never> = {
28
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
29
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
30
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
31
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
32
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
33
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
34
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
35
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
36
+ };
37
+ export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
38
+ export type JsonNullableFilterBase<$PrismaModel = never> = {
39
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
40
+ path?: string[];
41
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
42
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
43
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
44
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
45
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
46
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
47
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
48
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
49
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
50
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
51
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
52
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
53
+ };
54
+ export type SortOrderInput = {
55
+ sort: Prisma.SortOrder;
56
+ nulls?: Prisma.NullsOrder;
57
+ };
58
+ export type StringWithAggregatesFilter<$PrismaModel = never> = {
59
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
60
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
61
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
62
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
63
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
64
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
65
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
66
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
67
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
68
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
69
+ mode?: Prisma.QueryMode;
70
+ not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
71
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
72
+ _min?: Prisma.NestedStringFilter<$PrismaModel>;
73
+ _max?: Prisma.NestedStringFilter<$PrismaModel>;
74
+ };
75
+ export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
76
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
77
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
78
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
79
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
80
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
81
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
82
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
83
+ not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
84
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
85
+ _min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
86
+ _max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
87
+ };
88
+ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
89
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
90
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
91
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
92
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
93
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
94
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
95
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
96
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
97
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
98
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
99
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
100
+ };
101
+ export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
102
+ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
103
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
104
+ path?: string[];
105
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
106
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
107
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
108
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
109
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
110
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
111
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
112
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
113
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
114
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
115
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
116
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
117
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
118
+ _min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
119
+ _max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
120
+ };
121
+ export type NestedStringFilter<$PrismaModel = never> = {
122
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
123
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
124
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
125
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
126
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
127
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
128
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
129
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
130
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
131
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
132
+ not?: Prisma.NestedStringFilter<$PrismaModel> | string;
133
+ };
134
+ export type NestedDateTimeFilter<$PrismaModel = never> = {
135
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
136
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
137
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
138
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
139
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
140
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
141
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
142
+ not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
143
+ };
144
+ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
145
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
146
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
147
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
148
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
149
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
150
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
151
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
152
+ not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
153
+ };
154
+ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
155
+ equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
156
+ in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
157
+ notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
158
+ lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
159
+ lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
160
+ gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
161
+ gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
162
+ contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
163
+ startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
164
+ endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
165
+ not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
166
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
167
+ _min?: Prisma.NestedStringFilter<$PrismaModel>;
168
+ _max?: Prisma.NestedStringFilter<$PrismaModel>;
169
+ };
170
+ export type NestedIntFilter<$PrismaModel = never> = {
171
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
172
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
173
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
174
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
175
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
176
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
177
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
178
+ not?: Prisma.NestedIntFilter<$PrismaModel> | number;
179
+ };
180
+ export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
181
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
182
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
183
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
184
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
185
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
186
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
187
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
188
+ not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
189
+ _count?: Prisma.NestedIntFilter<$PrismaModel>;
190
+ _min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
191
+ _max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
192
+ };
193
+ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
194
+ equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
195
+ in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
196
+ notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null;
197
+ lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
198
+ lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
199
+ gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
200
+ gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
201
+ not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
202
+ _count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
203
+ _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
204
+ _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
205
+ };
206
+ export type NestedIntNullableFilter<$PrismaModel = never> = {
207
+ equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
208
+ in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
209
+ notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
210
+ lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
211
+ lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
212
+ gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
213
+ gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
214
+ not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
215
+ };
216
+ export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
217
+ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
218
+ equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
219
+ path?: string[];
220
+ mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
221
+ string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
222
+ string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
223
+ string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
224
+ array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
225
+ array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
226
+ array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
227
+ lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
228
+ lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
229
+ gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
230
+ gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
231
+ not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
232
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports various common sort, input & filter types that are not directly linked to a particular model.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=commonInputTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonInputTypes.js","sourceRoot":"","sources":["../../../../../../libs/postgres-storage/prisma/generated/prisma/commonInputTypes.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;GAIG"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
-
1
+ "use strict";
2
2
  /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
3
  /* eslint-disable */
4
4
  // biome-ignore-all lint: generated file
@@ -8,8 +8,5 @@
8
8
  *
9
9
  * 🟢 You can import this file directly.
10
10
  */
11
-
12
-
13
-
14
- // This file is empty because there are no enums in the schema.
15
- export {}
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../../libs/postgres-storage/prisma/generated/prisma/enums.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;EAIE"}
@@ -0,0 +1,126 @@
1
+ import * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "./prismaNamespace";
3
+ export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
+ export interface PrismaClientConstructor {
5
+ /**
6
+ * ## Prisma Client
7
+ *
8
+ * Type-safe database client for TypeScript
9
+ * @example
10
+ * ```
11
+ * const prisma = new PrismaClient()
12
+ * // Fetch zero or more DismissibleItems
13
+ * const dismissibleItems = await prisma.dismissibleItem.findMany()
14
+ * ```
15
+ *
16
+ * Read more in our [docs](https://pris.ly/d/client).
17
+ */
18
+ new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
19
+ omit: infer U;
20
+ } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
21
+ }
22
+ /**
23
+ * ## Prisma Client
24
+ *
25
+ * Type-safe database client for TypeScript
26
+ * @example
27
+ * ```
28
+ * const prisma = new PrismaClient()
29
+ * // Fetch zero or more DismissibleItems
30
+ * const dismissibleItems = await prisma.dismissibleItem.findMany()
31
+ * ```
32
+ *
33
+ * Read more in our [docs](https://pris.ly/d/client).
34
+ */
35
+ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
36
+ [K: symbol]: {
37
+ types: Prisma.TypeMap<ExtArgs>['other'];
38
+ };
39
+ $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
40
+ /**
41
+ * Connect with the database
42
+ */
43
+ $connect(): runtime.Types.Utils.JsPromise<void>;
44
+ /**
45
+ * Disconnect from the database
46
+ */
47
+ $disconnect(): runtime.Types.Utils.JsPromise<void>;
48
+ /**
49
+ * Executes a prepared raw query and returns the number of affected rows.
50
+ * @example
51
+ * ```
52
+ * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
53
+ * ```
54
+ *
55
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
56
+ */
57
+ $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
58
+ /**
59
+ * Executes a raw query and returns the number of affected rows.
60
+ * Susceptible to SQL injections, see documentation.
61
+ * @example
62
+ * ```
63
+ * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
64
+ * ```
65
+ *
66
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
67
+ */
68
+ $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
69
+ /**
70
+ * Performs a prepared raw query and returns the `SELECT` data.
71
+ * @example
72
+ * ```
73
+ * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
74
+ * ```
75
+ *
76
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
77
+ */
78
+ $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
79
+ /**
80
+ * Performs a raw query and returns the `SELECT` data.
81
+ * Susceptible to SQL injections, see documentation.
82
+ * @example
83
+ * ```
84
+ * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
85
+ * ```
86
+ *
87
+ * Read more in our [docs](https://pris.ly/d/raw-queries).
88
+ */
89
+ $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
90
+ /**
91
+ * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
92
+ * @example
93
+ * ```
94
+ * const [george, bob, alice] = await prisma.$transaction([
95
+ * prisma.user.create({ data: { name: 'George' } }),
96
+ * prisma.user.create({ data: { name: 'Bob' } }),
97
+ * prisma.user.create({ data: { name: 'Alice' } }),
98
+ * ])
99
+ * ```
100
+ *
101
+ * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
102
+ */
103
+ $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
104
+ isolationLevel?: Prisma.TransactionIsolationLevel;
105
+ }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
106
+ $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
107
+ maxWait?: number;
108
+ timeout?: number;
109
+ isolationLevel?: Prisma.TransactionIsolationLevel;
110
+ }): runtime.Types.Utils.JsPromise<R>;
111
+ $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
112
+ extArgs: ExtArgs;
113
+ }>>;
114
+ /**
115
+ * `prisma.dismissibleItem`: Exposes CRUD operations for the **DismissibleItem** model.
116
+ * Example usage:
117
+ * ```ts
118
+ * // Fetch zero or more DismissibleItems
119
+ * const dismissibleItems = await prisma.dismissibleItem.findMany()
120
+ * ```
121
+ */
122
+ get dismissibleItem(): Prisma.DismissibleItemDelegate<ExtArgs, {
123
+ omit: OmitOpts;
124
+ }>;
125
+ }
126
+ export declare function getPrismaClientClass(): PrismaClientConstructor;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * WARNING: This is an internal file that is subject to change!
8
+ *
9
+ * 🛑 Under no circumstances should you import this file directly! 🛑
10
+ *
11
+ * Please import the `PrismaClient` class from the `client.ts` file instead.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getPrismaClientClass = getPrismaClientClass;
15
+ const tslib_1 = require("tslib");
16
+ const runtime = tslib_1.__importStar(require("@prisma/client/runtime/client"));
17
+ const config = {
18
+ "previewFeatures": [],
19
+ "clientVersion": "7.1.0",
20
+ "engineVersion": "ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",
21
+ "activeProvider": "postgresql",
22
+ "inlineSchema": "// Prisma schema for Dismissible PostgreSQL storage\n// https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"./generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel DismissibleItem {\n id String\n userId String @map(\"user_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n dismissedAt DateTime? @map(\"dismissed_at\")\n metadata Json?\n\n @@id([userId, id])\n @@index([userId])\n @@map(\"dismissible_items\")\n}\n",
23
+ "runtimeDataModel": {
24
+ "models": {},
25
+ "enums": {},
26
+ "types": {}
27
+ }
28
+ };
29
+ config.runtimeDataModel = JSON.parse("{\"models\":{\"DismissibleItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"dismissedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"dismissed_at\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"}],\"dbName\":\"dismissible_items\"}},\"enums\":{},\"types\":{}}");
30
+ async function decodeBase64AsWasm(wasmBase64) {
31
+ const { Buffer } = await Promise.resolve().then(() => tslib_1.__importStar(require('node:buffer')));
32
+ const wasmArray = Buffer.from(wasmBase64, 'base64');
33
+ return new WebAssembly.Module(wasmArray);
34
+ }
35
+ config.compilerWasm = {
36
+ getRuntime: async () => await Promise.resolve().then(() => tslib_1.__importStar(require("@prisma/client/runtime/query_compiler_bg.postgresql.js"))),
37
+ getQueryCompilerWasmModule: async () => {
38
+ const { wasm } = await Promise.resolve().then(() => tslib_1.__importStar(require("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js")));
39
+ return await decodeBase64AsWasm(wasm);
40
+ }
41
+ };
42
+ function getPrismaClientClass() {
43
+ return runtime.getPrismaClient(config);
44
+ }
45
+ //# sourceMappingURL=class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../../../../libs/postgres-storage/prisma/generated/prisma/internal/class.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;GAMG;;AAgLH,oDAEC;;AAhLD,+EAAwD;AAIxD,MAAM,MAAM,GAAkC;IAC5C,iBAAiB,EAAE,EAAE;IACrB,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,0CAA0C;IAC3D,gBAAgB,EAAE,YAAY;IAC9B,cAAc,EAAE,2hBAA2hB;IAC3iB,kBAAkB,EAAE;QAClB,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ;CACF,CAAA;AAED,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,yfAAyf,CAAC,CAAA;AAE/hB,KAAK,UAAU,kBAAkB,CAAC,UAAkB;IAClD,MAAM,EAAE,MAAM,EAAE,GAAG,gEAAa,aAAa,GAAC,CAAA;IAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;IACnD,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,CAAC,YAAY,GAAG;IACpB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,gEAAa,wDAAwD,GAAC;IAE9F,0BAA0B,EAAE,KAAK,IAAI,EAAE;QACrC,MAAM,EAAE,IAAI,EAAE,GAAG,gEAAa,oEAAoE,GAAC,CAAA;QACnG,OAAO,MAAM,kBAAkB,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;CACF,CAAA;AA8ID,SAAgB,oBAAoB;IAClC,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,CAAuC,CAAA;AAC9E,CAAC"}