@creator.co/creatorco-prisma-client 1.0.22-alpha-c4b16cb → 1.0.22-alpha-c781f9f
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/default.js +1 -1
- package/edge.js +15 -57
- package/index-browser.js +39 -73
- package/index.d.ts +416 -5540
- package/index.js +15 -57
- package/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/libquery_engine-darwin.dylib.node +0 -0
- package/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-1.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +18 -13
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +18 -34
- package/runtime/edge.js +18 -34
- package/runtime/index-browser.d.ts +8 -21
- package/runtime/index-browser.js +1 -1
- package/runtime/library.d.ts +203 -111
- package/runtime/library.js +65 -69
- package/runtime/wasm.js +19 -84
- package/schema.prisma +2 -49
- package/wasm.js +39 -73
package/index-browser.js
CHANGED
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
objectEnumValues,
|
|
7
7
|
makeStrictEnum,
|
|
8
8
|
Public,
|
|
9
|
-
|
|
9
|
+
getRuntime,
|
|
10
10
|
} = require('./runtime/index-browser.js')
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,36 +16,42 @@ exports.Prisma = Prisma
|
|
|
16
16
|
exports.$Enums = {}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Prisma Client JS version: 5.
|
|
20
|
-
* Query Engine version:
|
|
19
|
+
* Prisma Client JS version: 5.11.0
|
|
20
|
+
* Query Engine version: efd2449663b3d73d637ea1fd226bafbcf45b3102
|
|
21
21
|
*/
|
|
22
22
|
Prisma.prismaVersion = {
|
|
23
|
-
client: "5.
|
|
24
|
-
engine: "
|
|
23
|
+
client: "5.11.0",
|
|
24
|
+
engine: "efd2449663b3d73d637ea1fd226bafbcf45b3102"
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
28
|
-
|
|
28
|
+
const runtimeName = getRuntime().prettyName;
|
|
29
|
+
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
29
30
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
30
31
|
)};
|
|
31
32
|
Prisma.PrismaClientUnknownRequestError = () => {
|
|
32
|
-
|
|
33
|
+
const runtimeName = getRuntime().prettyName;
|
|
34
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
33
35
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
34
36
|
)}
|
|
35
37
|
Prisma.PrismaClientRustPanicError = () => {
|
|
36
|
-
|
|
38
|
+
const runtimeName = getRuntime().prettyName;
|
|
39
|
+
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
37
40
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
38
41
|
)}
|
|
39
42
|
Prisma.PrismaClientInitializationError = () => {
|
|
40
|
-
|
|
43
|
+
const runtimeName = getRuntime().prettyName;
|
|
44
|
+
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
41
45
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
42
46
|
)}
|
|
43
47
|
Prisma.PrismaClientValidationError = () => {
|
|
44
|
-
|
|
48
|
+
const runtimeName = getRuntime().prettyName;
|
|
49
|
+
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
45
50
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
46
51
|
)}
|
|
47
52
|
Prisma.NotFoundError = () => {
|
|
48
|
-
|
|
53
|
+
const runtimeName = getRuntime().prettyName;
|
|
54
|
+
throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
49
55
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
50
56
|
)}
|
|
51
57
|
Prisma.Decimal = Decimal
|
|
@@ -54,19 +60,23 @@ Prisma.Decimal = Decimal
|
|
|
54
60
|
* Re-export of sql-template-tag
|
|
55
61
|
*/
|
|
56
62
|
Prisma.sql = () => {
|
|
57
|
-
|
|
63
|
+
const runtimeName = getRuntime().prettyName;
|
|
64
|
+
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
58
65
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
59
66
|
)}
|
|
60
67
|
Prisma.empty = () => {
|
|
61
|
-
|
|
68
|
+
const runtimeName = getRuntime().prettyName;
|
|
69
|
+
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
62
70
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
63
71
|
)}
|
|
64
72
|
Prisma.join = () => {
|
|
65
|
-
|
|
73
|
+
const runtimeName = getRuntime().prettyName;
|
|
74
|
+
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
66
75
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
67
76
|
)}
|
|
68
77
|
Prisma.raw = () => {
|
|
69
|
-
|
|
78
|
+
const runtimeName = getRuntime().prettyName;
|
|
79
|
+
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
70
80
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
71
81
|
)}
|
|
72
82
|
Prisma.validator = Public.validator
|
|
@@ -75,11 +85,13 @@ Prisma.validator = Public.validator
|
|
|
75
85
|
* Extensions
|
|
76
86
|
*/
|
|
77
87
|
Prisma.getExtensionContext = () => {
|
|
78
|
-
|
|
88
|
+
const runtimeName = getRuntime().prettyName;
|
|
89
|
+
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
79
90
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
80
91
|
)}
|
|
81
92
|
Prisma.defineExtension = () => {
|
|
82
|
-
|
|
93
|
+
const runtimeName = getRuntime().prettyName;
|
|
94
|
+
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
83
95
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
84
96
|
)}
|
|
85
97
|
|
|
@@ -511,6 +523,7 @@ exports.Prisma.OptInScalarFieldEnum = {
|
|
|
511
523
|
paymentAmount: 'paymentAmount',
|
|
512
524
|
paymentStatus: 'paymentStatus',
|
|
513
525
|
extraData: 'extraData',
|
|
526
|
+
favoritedDate: 'favoritedDate',
|
|
514
527
|
userId: 'userId',
|
|
515
528
|
campaignId: 'campaignId',
|
|
516
529
|
currentStepId: 'currentStepId'
|
|
@@ -836,32 +849,6 @@ exports.Prisma.SequenceImapCheckpointScalarFieldEnum = {
|
|
|
836
849
|
updatedAt: 'updatedAt'
|
|
837
850
|
};
|
|
838
851
|
|
|
839
|
-
exports.Prisma.ShopifyStoreScalarFieldEnum = {
|
|
840
|
-
id: 'id',
|
|
841
|
-
shopifyId: 'shopifyId',
|
|
842
|
-
name: 'name',
|
|
843
|
-
url: 'url',
|
|
844
|
-
accessToken: 'accessToken',
|
|
845
|
-
metaData: 'metaData',
|
|
846
|
-
brandId: 'brandId'
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
exports.Prisma.ShopifyProductScalarFieldEnum = {
|
|
850
|
-
id: 'id',
|
|
851
|
-
shopifyId: 'shopifyId',
|
|
852
|
-
title: 'title',
|
|
853
|
-
handle: 'handle',
|
|
854
|
-
imageUrl: 'imageUrl',
|
|
855
|
-
metaData: 'metaData',
|
|
856
|
-
lastSynced: 'lastSynced',
|
|
857
|
-
shopifyStoreId: 'shopifyStoreId'
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
861
|
-
campaignId: 'campaignId',
|
|
862
|
-
shopifyProductId: 'shopifyProductId'
|
|
863
|
-
};
|
|
864
|
-
|
|
865
852
|
exports.Prisma.SortOrder = {
|
|
866
853
|
asc: 'asc',
|
|
867
854
|
desc: 'desc'
|
|
@@ -1188,20 +1175,6 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
|
|
|
1188
1175
|
exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
|
|
1189
1176
|
msgHash: 'msgHash'
|
|
1190
1177
|
};
|
|
1191
|
-
|
|
1192
|
-
exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
1193
|
-
shopifyId: 'shopifyId',
|
|
1194
|
-
name: 'name',
|
|
1195
|
-
url: 'url',
|
|
1196
|
-
accessToken: 'accessToken'
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1200
|
-
shopifyId: 'shopifyId',
|
|
1201
|
-
title: 'title',
|
|
1202
|
-
handle: 'handle',
|
|
1203
|
-
imageUrl: 'imageUrl'
|
|
1204
|
-
};
|
|
1205
1178
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1206
1179
|
optIn: 'optIn',
|
|
1207
1180
|
tip: 'tip',
|
|
@@ -1276,10 +1249,7 @@ exports.Prisma.ModelName = {
|
|
|
1276
1249
|
SequenceStep: 'SequenceStep',
|
|
1277
1250
|
SequenceOutboundEmail: 'SequenceOutboundEmail',
|
|
1278
1251
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1279
|
-
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1280
|
-
ShopifyStore: 'ShopifyStore',
|
|
1281
|
-
ShopifyProduct: 'ShopifyProduct',
|
|
1282
|
-
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1252
|
+
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1283
1253
|
};
|
|
1284
1254
|
|
|
1285
1255
|
/**
|
|
@@ -1289,19 +1259,15 @@ class PrismaClient {
|
|
|
1289
1259
|
constructor() {
|
|
1290
1260
|
return new Proxy(this, {
|
|
1291
1261
|
get(target, prop) {
|
|
1292
|
-
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
let message = 'PrismaClient is unable to run in '
|
|
1301
|
-
if (edgeRuntimeName !== undefined) {
|
|
1302
|
-
message += edgeRuntimeName + '. As an alternative, try Accelerate: https://pris.ly/d/accelerate.'
|
|
1262
|
+
let message
|
|
1263
|
+
const runtime = getRuntime()
|
|
1264
|
+
if (runtime.isEdge) {
|
|
1265
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
1266
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
1267
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
1268
|
+
`;
|
|
1303
1269
|
} else {
|
|
1304
|
-
message
|
|
1270
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
1305
1271
|
}
|
|
1306
1272
|
|
|
1307
1273
|
message += `
|