@a_team/prisma 3.8.6-win → 3.9.0-linux
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/dist/client/edge.js +22 -4
- package/dist/client/index-browser.js +18 -0
- package/dist/client/index.d.ts +2402 -224
- package/dist/client/index.js +24 -6
- package/dist/client/{query_engine-windows.dll.node → libquery_engine-linux-musl-openssl-3.0.x.so.node} +0 -0
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +68 -27
- package/dist/client/wasm.js +18 -0
- package/package.json +2 -2
|
Binary file
|
package/dist/client/package.json
CHANGED
|
@@ -12,38 +12,79 @@ type AccountsWorkspace {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
model Account {
|
|
15
|
-
id
|
|
16
|
-
clientCompany
|
|
17
|
-
clientCompanyModel
|
|
18
|
-
companyId
|
|
19
|
-
company
|
|
20
|
-
members
|
|
21
|
-
workspace
|
|
22
|
-
billingAccount
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
16
|
+
clientCompany String? @db.ObjectId
|
|
17
|
+
clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
|
|
18
|
+
companyId String? @map("company") @db.ObjectId
|
|
19
|
+
company Company? @relation(fields: [companyId], references: [id])
|
|
20
|
+
members AccountsMember[]
|
|
21
|
+
workspace AccountsWorkspace?
|
|
22
|
+
billingAccount String? @db.ObjectId
|
|
23
|
+
billingAccountModel BillingAccount? @relation(fields: [billingAccount], references: [id])
|
|
24
|
+
createdAt DateTime? @default(now()) @db.Date
|
|
25
|
+
updatedAt DateTime? @updatedAt @db.Date
|
|
26
|
+
deletedAt DateTime? @db.Date
|
|
27
|
+
migrations String[]
|
|
28
|
+
missions Mission[]
|
|
29
|
+
missionSpecs MissionSpec[]
|
|
30
|
+
contracts Contract[]
|
|
30
31
|
|
|
31
32
|
@@map("accounts")
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
model
|
|
35
|
-
id
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
model BillingAccount {
|
|
36
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
37
|
+
billingInfo BillingAccountBillingInfo?
|
|
38
|
+
stripe BillingAccountStripeInfo?
|
|
39
|
+
paymentTerms BillingAccountPaymentTerms?
|
|
40
|
+
clientCompany String? @db.ObjectId
|
|
41
|
+
clientCompanyModel ClientCompany? @relation(fields: [clientCompany], references: [id])
|
|
42
|
+
createdAt DateTime? @default(now()) @db.Date
|
|
43
|
+
updatedAt DateTime? @updatedAt @db.Date
|
|
44
|
+
Account Account[]
|
|
45
|
+
|
|
46
|
+
@@map("billingAccounts")
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type BillingAccountBillingInfo {
|
|
38
50
|
name String
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
contactName String?
|
|
52
|
+
contactEmail String?
|
|
53
|
+
tin String?
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type BillingAccountStripeInfo {
|
|
57
|
+
customerId String
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type BillingAccountPaymentTerms {
|
|
61
|
+
due BillingPaymentDue
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
enum BillingPaymentDue {
|
|
65
|
+
Net0
|
|
66
|
+
Net15
|
|
67
|
+
Net30
|
|
68
|
+
Net45
|
|
69
|
+
Net60
|
|
70
|
+
Net90
|
|
71
|
+
Net120
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
model ClientCompany {
|
|
75
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
76
|
+
createdAt DateTime? @default(now()) @db.Date
|
|
77
|
+
author String? @db.ObjectId
|
|
78
|
+
name String
|
|
79
|
+
slug String?
|
|
80
|
+
product String?
|
|
81
|
+
website String?
|
|
82
|
+
size String?
|
|
83
|
+
description String?
|
|
84
|
+
logo String?
|
|
85
|
+
accounts Account[]
|
|
86
|
+
missionSpecs MissionSpec[]
|
|
87
|
+
BillingAccount BillingAccount[]
|
|
47
88
|
|
|
48
89
|
@@map("clientCompanies")
|
|
49
90
|
}
|
package/dist/client/wasm.js
CHANGED
|
@@ -126,6 +126,13 @@ exports.Prisma.AccountScalarFieldEnum = {
|
|
|
126
126
|
migrations: 'migrations'
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
exports.Prisma.BillingAccountScalarFieldEnum = {
|
|
130
|
+
id: 'id',
|
|
131
|
+
clientCompany: 'clientCompany',
|
|
132
|
+
createdAt: 'createdAt',
|
|
133
|
+
updatedAt: 'updatedAt'
|
|
134
|
+
};
|
|
135
|
+
|
|
129
136
|
exports.Prisma.ClientCompanyScalarFieldEnum = {
|
|
130
137
|
id: 'id',
|
|
131
138
|
createdAt: 'createdAt',
|
|
@@ -474,6 +481,16 @@ exports.InternalOnboardingStage = exports.$Enums.InternalOnboardingStage = {
|
|
|
474
481
|
ProfileCompleteWithPendingApplication: 'ProfileCompleteWithPendingApplication'
|
|
475
482
|
};
|
|
476
483
|
|
|
484
|
+
exports.BillingPaymentDue = exports.$Enums.BillingPaymentDue = {
|
|
485
|
+
Net0: 'Net0',
|
|
486
|
+
Net15: 'Net15',
|
|
487
|
+
Net30: 'Net30',
|
|
488
|
+
Net45: 'Net45',
|
|
489
|
+
Net60: 'Net60',
|
|
490
|
+
Net90: 'Net90',
|
|
491
|
+
Net120: 'Net120'
|
|
492
|
+
};
|
|
493
|
+
|
|
477
494
|
exports.ContractPartyType = exports.$Enums.ContractPartyType = {
|
|
478
495
|
BillingCustomer: 'BillingCustomer',
|
|
479
496
|
MissionRole: 'MissionRole',
|
|
@@ -560,6 +577,7 @@ exports.MissionRoleVisibilityStatus = exports.$Enums.MissionRoleVisibilityStatus
|
|
|
560
577
|
|
|
561
578
|
exports.Prisma.ModelName = {
|
|
562
579
|
Account: 'Account',
|
|
580
|
+
BillingAccount: 'BillingAccount',
|
|
563
581
|
ClientCompany: 'ClientCompany',
|
|
564
582
|
Company: 'Company',
|
|
565
583
|
Contract: 'Contract',
|