@pos-360/prisma 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pos-360/prisma",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/POS-360/project-platform-graph"
@@ -10,7 +10,8 @@
10
10
  "types": "lib/index.d.ts",
11
11
  "files": [
12
12
  "prisma-schema.json",
13
- "lib/**/*"
13
+ "lib/**/*",
14
+ "patches/**/*"
14
15
  ],
15
16
  "scripts": {
16
17
  "build": "rimraf lib && rimraf src/generated && prisma generate && ./scripts/patch-kysely-types.sh && ts-node ./scripts/generate-json-schema.ts && tsc -p ./tsconfig.build.json",
@@ -23,7 +24,7 @@
23
24
  "@nestjs/common": "^11.0.6",
24
25
  "@nestjs/core": "^11.0.6",
25
26
  "@nestjs/platform-express": "^11.0.6",
26
- "@pos360/common": "workspace:*",
27
+ "@pos360/common": "1.0.0-beta.0",
27
28
  "@prisma/adapter-pg": "^7.2.0",
28
29
  "@prisma/client": "^7.2.0",
29
30
  "@prisma/extension-read-replicas": "^0.5.0",
@@ -58,5 +59,8 @@
58
59
  },
59
60
  "publishConfig": {
60
61
  "access": "public"
62
+ },
63
+ "patchedDependencies": {
64
+ "prisma-extension-kysely": "patches/prisma-extension-kysely.patch"
61
65
  }
62
66
  }
@@ -0,0 +1,66 @@
1
+ diff --git a/dist/cjs/connection.d.ts b/dist/cjs/connection.d.ts
2
+ index b62593002ba4ade4ec30880e61f41c993ae1562e..f814a98e420094b8008dc0618e80f0894b40bb4c 100644
3
+ --- a/dist/cjs/connection.d.ts
4
+ +++ b/dist/cjs/connection.d.ts
5
+ @@ -1,4 +1,4 @@
6
+ -import { PrismaClient } from "@prisma/client/extension";
7
+ +import { PrismaClient } from "@pos360/prisma";
8
+ import { CompiledQuery, DatabaseConnection, QueryResult } from "kysely";
9
+ /**
10
+ * A Kysely database connection that uses Prisma as the driver
11
+ diff --git a/dist/cjs/driver.d.ts b/dist/cjs/driver.d.ts
12
+ index 0bedf7c7f69570ee187c253d73eccf0375a72934..e9fd9210a7ecc4199fe7c3a0788d32f909d1da91 100644
13
+ --- a/dist/cjs/driver.d.ts
14
+ +++ b/dist/cjs/driver.d.ts
15
+ @@ -1,4 +1,4 @@
16
+ -import type { PrismaClient } from "@prisma/client/extension";
17
+ +import type { PrismaClient } from "@pos360/prisma";
18
+ import { DatabaseConnection, Driver, TransactionSettings } from "kysely";
19
+ export declare class PrismaDriver<T extends PrismaClient> implements Driver {
20
+ private readonly prisma;
21
+ diff --git a/dist/cjs/index.js b/dist/cjs/index.js
22
+ index ab08b5d36b43ea10a2b3c5e480b2e9af2c12929c..1d43ed7727a2390550a8d6d5bfd8874e4e57983a 100644
23
+ --- a/dist/cjs/index.js
24
+ +++ b/dist/cjs/index.js
25
+ @@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.PrismaKyselyExtensionError = void 0;
29
+ -const client_1 = require("@prisma/client");
30
+ +const client_1 = require("@pos360/prisma");
31
+ const driver_js_1 = require("./driver.js");
32
+ class PrismaKyselyExtensionError extends Error {
33
+ constructor(message) {
34
+ diff --git a/dist/esm/connection.d.ts b/dist/esm/connection.d.ts
35
+ index b62593002ba4ade4ec30880e61f41c993ae1562e..f814a98e420094b8008dc0618e80f0894b40bb4c 100644
36
+ --- a/dist/esm/connection.d.ts
37
+ +++ b/dist/esm/connection.d.ts
38
+ @@ -1,4 +1,4 @@
39
+ -import { PrismaClient } from "@prisma/client/extension";
40
+ +import { PrismaClient } from "@pos360/prisma";
41
+ import { CompiledQuery, DatabaseConnection, QueryResult } from "kysely";
42
+ /**
43
+ * A Kysely database connection that uses Prisma as the driver
44
+ diff --git a/dist/esm/driver.d.ts b/dist/esm/driver.d.ts
45
+ index 0bedf7c7f69570ee187c253d73eccf0375a72934..e9fd9210a7ecc4199fe7c3a0788d32f909d1da91 100644
46
+ --- a/dist/esm/driver.d.ts
47
+ +++ b/dist/esm/driver.d.ts
48
+ @@ -1,4 +1,4 @@
49
+ -import type { PrismaClient } from "@prisma/client/extension";
50
+ +import type { PrismaClient } from "@pos360/prisma";
51
+ import { DatabaseConnection, Driver, TransactionSettings } from "kysely";
52
+ export declare class PrismaDriver<T extends PrismaClient> implements Driver {
53
+ private readonly prisma;
54
+ diff --git a/dist/esm/index.js b/dist/esm/index.js
55
+ index bead5527355754c7e33104311d39ae6261acf781..a3877a36340fd80225c68e9a4606ca8019094101 100644
56
+ --- a/dist/esm/index.js
57
+ +++ b/dist/esm/index.js
58
+ @@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
59
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
60
+ });
61
+ };
62
+ -import { Prisma } from "@prisma/client";
63
+ +import { Prisma } from "@pos360/prisma";
64
+ import { PrismaDriver } from "./driver.js";
65
+ export class PrismaKyselyExtensionError extends Error {
66
+ constructor(message) {