@creator.co/creatorco-prisma-client 1.0.22-alpha-6b3aed6 → 1.0.22
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 -55
- package/index-browser.js +39 -71
- package/index.d.ts +416 -5501
- package/index.js +15 -55
- 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 -48
- package/wasm.js +39 -71
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,31 +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
|
-
metaData: 'metaData',
|
|
855
|
-
lastSynced: 'lastSynced',
|
|
856
|
-
shopifyStoreId: 'shopifyStoreId'
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
exports.Prisma.CampaignToShopifyProductScalarFieldEnum = {
|
|
860
|
-
campaignId: 'campaignId',
|
|
861
|
-
shopifyProductId: 'shopifyProductId'
|
|
862
|
-
};
|
|
863
|
-
|
|
864
852
|
exports.Prisma.SortOrder = {
|
|
865
853
|
asc: 'asc',
|
|
866
854
|
desc: 'desc'
|
|
@@ -1187,19 +1175,6 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
|
|
|
1187
1175
|
exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
|
|
1188
1176
|
msgHash: 'msgHash'
|
|
1189
1177
|
};
|
|
1190
|
-
|
|
1191
|
-
exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
|
|
1192
|
-
shopifyId: 'shopifyId',
|
|
1193
|
-
name: 'name',
|
|
1194
|
-
url: 'url',
|
|
1195
|
-
accessToken: 'accessToken'
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
|
|
1199
|
-
shopifyId: 'shopifyId',
|
|
1200
|
-
title: 'title',
|
|
1201
|
-
handle: 'handle'
|
|
1202
|
-
};
|
|
1203
1178
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1204
1179
|
optIn: 'optIn',
|
|
1205
1180
|
tip: 'tip',
|
|
@@ -1274,10 +1249,7 @@ exports.Prisma.ModelName = {
|
|
|
1274
1249
|
SequenceStep: 'SequenceStep',
|
|
1275
1250
|
SequenceOutboundEmail: 'SequenceOutboundEmail',
|
|
1276
1251
|
SequenceInboundEmail: 'SequenceInboundEmail',
|
|
1277
|
-
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1278
|
-
ShopifyStore: 'ShopifyStore',
|
|
1279
|
-
ShopifyProduct: 'ShopifyProduct',
|
|
1280
|
-
CampaignToShopifyProduct: 'CampaignToShopifyProduct'
|
|
1252
|
+
SequenceImapCheckpoint: 'SequenceImapCheckpoint'
|
|
1281
1253
|
};
|
|
1282
1254
|
|
|
1283
1255
|
/**
|
|
@@ -1287,19 +1259,15 @@ class PrismaClient {
|
|
|
1287
1259
|
constructor() {
|
|
1288
1260
|
return new Proxy(this, {
|
|
1289
1261
|
get(target, prop) {
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
let message = 'PrismaClient is unable to run in '
|
|
1299
|
-
if (edgeRuntimeName !== undefined) {
|
|
1300
|
-
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
|
+
`;
|
|
1301
1269
|
} else {
|
|
1302
|
-
message
|
|
1270
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
1303
1271
|
}
|
|
1304
1272
|
|
|
1305
1273
|
message += `
|