procbay-schema 1.0.165 → 1.0.166
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 +1 -1
- package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +55 -0
- package/prisma/schema.prisma +26 -19
- package/src/generated/prisma/browser.ts +2 -2
- package/src/generated/prisma/client.bundle.mjs +35 -25
- package/src/generated/prisma/client.ts +2 -2
- package/src/generated/prisma/commonInputTypes.ts +24 -24
- package/src/generated/prisma/enums.ts +2 -2
- package/src/generated/prisma/internal/class.ts +8 -8
- package/src/generated/prisma/internal/prismaNamespace.ts +48 -45
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +8 -5
- package/src/generated/prisma/models/ApprovalManagement.ts +1728 -0
- package/src/generated/prisma/models/User.ts +221 -221
- package/src/generated/prisma/models.ts +1 -1
- package/src/generated/prisma/models/UserApprovalManagement.ts +0 -1617
|
@@ -494,7 +494,7 @@ export const ModelName = {
|
|
|
494
494
|
BusinessEntityLocation: 'BusinessEntityLocation',
|
|
495
495
|
Invoice: 'Invoice',
|
|
496
496
|
InvoiceItem: 'InvoiceItem',
|
|
497
|
-
|
|
497
|
+
ApprovalManagement: 'ApprovalManagement'
|
|
498
498
|
} as const
|
|
499
499
|
|
|
500
500
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -510,7 +510,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
510
510
|
omit: GlobalOmitOptions
|
|
511
511
|
}
|
|
512
512
|
meta: {
|
|
513
|
-
modelProps: "serialNumberConfiguration" | "user" | "role" | "userRole" | "permission" | "rolePermission" | "department" | "userDepartmentEntity" | "businessEntityDepartment" | "industry" | "category" | "attribute" | "attributeValue" | "item" | "purchaseIntake" | "purchaseIntakeItem" | "sendBack" | "emailTemplate" | "smtpConfig" | "approvalHierarchy" | "approvalCondition" | "approvalLevel" | "approvalLevelUser" | "approvalLevelEscalation" | "approvalLevelEscalationUser" | "uom" | "uomCategory" | "itemAttribute" | "itemAttributeValue" | "itemDocument" | "approvalJourney" | "approvalDelegation" | "approvalDelegationDelegate" | "template" | "templateStrategies" | "templateField" | "faqCategory" | "faq" | "event" | "eventItems" | "boqEventItem" | "eventVendors" | "eventConfigurations" | "eventStrategies" | "strategies" | "cms" | "currency" | "supportTicket" | "ticketAssignment" | "ticketHistory" | "ticketReply" | "supportCategory" | "adminAlert" | "customerNotification" | "bid" | "bidLog" | "quotation" | "quotationLog" | "formMaster" | "dynamicForm" | "module" | "tenantConfiguration" | "userLoginActivity" | "region" | "subregion" | "country" | "state" | "city" | "location" | "subModule" | "counterOffer" | "purchaseOrder" | "purchaseOrderItem" | "purchaseOrderActivityLog" | "userVendorSocketTokens" | "activityLog" | "contactUs" | "uploadLog" | "userEventConfiguration" | "exportLog" | "fiscalYear" | "budget" | "departmentBudget" | "categoryBudget" | "budgetHold" | "supportingDocument" | "expense" | "vendorReference" | "requestedCatalogue" | "requestedCatalogueDetails" | "catalogue" | "catalogueVendor" | "catalogueCart" | "eventRfiForm" | "eventRfiFormLog" | "eventCriteria" | "eventVendorCriteria" | "conversation" | "conversationParticipant" | "message" | "messageRecipient" | "blanketPurchaseOrder" | "blanketPurchaseOrderItem" | "blanketPurchaseOrderRelease" | "gRN" | "gRNItem" | "businessEntity" | "businessEntityLocation" | "invoice" | "invoiceItem" | "
|
|
513
|
+
modelProps: "serialNumberConfiguration" | "user" | "role" | "userRole" | "permission" | "rolePermission" | "department" | "userDepartmentEntity" | "businessEntityDepartment" | "industry" | "category" | "attribute" | "attributeValue" | "item" | "purchaseIntake" | "purchaseIntakeItem" | "sendBack" | "emailTemplate" | "smtpConfig" | "approvalHierarchy" | "approvalCondition" | "approvalLevel" | "approvalLevelUser" | "approvalLevelEscalation" | "approvalLevelEscalationUser" | "uom" | "uomCategory" | "itemAttribute" | "itemAttributeValue" | "itemDocument" | "approvalJourney" | "approvalDelegation" | "approvalDelegationDelegate" | "template" | "templateStrategies" | "templateField" | "faqCategory" | "faq" | "event" | "eventItems" | "boqEventItem" | "eventVendors" | "eventConfigurations" | "eventStrategies" | "strategies" | "cms" | "currency" | "supportTicket" | "ticketAssignment" | "ticketHistory" | "ticketReply" | "supportCategory" | "adminAlert" | "customerNotification" | "bid" | "bidLog" | "quotation" | "quotationLog" | "formMaster" | "dynamicForm" | "module" | "tenantConfiguration" | "userLoginActivity" | "region" | "subregion" | "country" | "state" | "city" | "location" | "subModule" | "counterOffer" | "purchaseOrder" | "purchaseOrderItem" | "purchaseOrderActivityLog" | "userVendorSocketTokens" | "activityLog" | "contactUs" | "uploadLog" | "userEventConfiguration" | "exportLog" | "fiscalYear" | "budget" | "departmentBudget" | "categoryBudget" | "budgetHold" | "supportingDocument" | "expense" | "vendorReference" | "requestedCatalogue" | "requestedCatalogueDetails" | "catalogue" | "catalogueVendor" | "catalogueCart" | "eventRfiForm" | "eventRfiFormLog" | "eventCriteria" | "eventVendorCriteria" | "conversation" | "conversationParticipant" | "message" | "messageRecipient" | "blanketPurchaseOrder" | "blanketPurchaseOrderItem" | "blanketPurchaseOrderRelease" | "gRN" | "gRNItem" | "businessEntity" | "businessEntityLocation" | "invoice" | "invoiceItem" | "approvalManagement"
|
|
514
514
|
txIsolationLevel: TransactionIsolationLevel
|
|
515
515
|
}
|
|
516
516
|
model: {
|
|
@@ -8654,77 +8654,77 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
8656
|
}
|
|
8657
|
-
|
|
8658
|
-
payload: Prisma.$
|
|
8659
|
-
fields: Prisma.
|
|
8657
|
+
ApprovalManagement: {
|
|
8658
|
+
payload: Prisma.$ApprovalManagementPayload<ExtArgs>
|
|
8659
|
+
fields: Prisma.ApprovalManagementFieldRefs
|
|
8660
8660
|
operations: {
|
|
8661
8661
|
findUnique: {
|
|
8662
|
-
args: Prisma.
|
|
8663
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8662
|
+
args: Prisma.ApprovalManagementFindUniqueArgs<ExtArgs>
|
|
8663
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload> | null
|
|
8664
8664
|
}
|
|
8665
8665
|
findUniqueOrThrow: {
|
|
8666
|
-
args: Prisma.
|
|
8667
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8666
|
+
args: Prisma.ApprovalManagementFindUniqueOrThrowArgs<ExtArgs>
|
|
8667
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8668
8668
|
}
|
|
8669
8669
|
findFirst: {
|
|
8670
|
-
args: Prisma.
|
|
8671
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8670
|
+
args: Prisma.ApprovalManagementFindFirstArgs<ExtArgs>
|
|
8671
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload> | null
|
|
8672
8672
|
}
|
|
8673
8673
|
findFirstOrThrow: {
|
|
8674
|
-
args: Prisma.
|
|
8675
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8674
|
+
args: Prisma.ApprovalManagementFindFirstOrThrowArgs<ExtArgs>
|
|
8675
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8676
8676
|
}
|
|
8677
8677
|
findMany: {
|
|
8678
|
-
args: Prisma.
|
|
8679
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8678
|
+
args: Prisma.ApprovalManagementFindManyArgs<ExtArgs>
|
|
8679
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>[]
|
|
8680
8680
|
}
|
|
8681
8681
|
create: {
|
|
8682
|
-
args: Prisma.
|
|
8683
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8682
|
+
args: Prisma.ApprovalManagementCreateArgs<ExtArgs>
|
|
8683
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8684
8684
|
}
|
|
8685
8685
|
createMany: {
|
|
8686
|
-
args: Prisma.
|
|
8686
|
+
args: Prisma.ApprovalManagementCreateManyArgs<ExtArgs>
|
|
8687
8687
|
result: BatchPayload
|
|
8688
8688
|
}
|
|
8689
8689
|
createManyAndReturn: {
|
|
8690
|
-
args: Prisma.
|
|
8691
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8690
|
+
args: Prisma.ApprovalManagementCreateManyAndReturnArgs<ExtArgs>
|
|
8691
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>[]
|
|
8692
8692
|
}
|
|
8693
8693
|
delete: {
|
|
8694
|
-
args: Prisma.
|
|
8695
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8694
|
+
args: Prisma.ApprovalManagementDeleteArgs<ExtArgs>
|
|
8695
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8696
8696
|
}
|
|
8697
8697
|
update: {
|
|
8698
|
-
args: Prisma.
|
|
8699
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8698
|
+
args: Prisma.ApprovalManagementUpdateArgs<ExtArgs>
|
|
8699
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8700
8700
|
}
|
|
8701
8701
|
deleteMany: {
|
|
8702
|
-
args: Prisma.
|
|
8702
|
+
args: Prisma.ApprovalManagementDeleteManyArgs<ExtArgs>
|
|
8703
8703
|
result: BatchPayload
|
|
8704
8704
|
}
|
|
8705
8705
|
updateMany: {
|
|
8706
|
-
args: Prisma.
|
|
8706
|
+
args: Prisma.ApprovalManagementUpdateManyArgs<ExtArgs>
|
|
8707
8707
|
result: BatchPayload
|
|
8708
8708
|
}
|
|
8709
8709
|
updateManyAndReturn: {
|
|
8710
|
-
args: Prisma.
|
|
8711
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8710
|
+
args: Prisma.ApprovalManagementUpdateManyAndReturnArgs<ExtArgs>
|
|
8711
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>[]
|
|
8712
8712
|
}
|
|
8713
8713
|
upsert: {
|
|
8714
|
-
args: Prisma.
|
|
8715
|
-
result: runtime.Types.Utils.PayloadToResult<Prisma.$
|
|
8714
|
+
args: Prisma.ApprovalManagementUpsertArgs<ExtArgs>
|
|
8715
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ApprovalManagementPayload>
|
|
8716
8716
|
}
|
|
8717
8717
|
aggregate: {
|
|
8718
|
-
args: Prisma.
|
|
8719
|
-
result: runtime.Types.Utils.Optional<Prisma.
|
|
8718
|
+
args: Prisma.ApprovalManagementAggregateArgs<ExtArgs>
|
|
8719
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateApprovalManagement>
|
|
8720
8720
|
}
|
|
8721
8721
|
groupBy: {
|
|
8722
|
-
args: Prisma.
|
|
8723
|
-
result: runtime.Types.Utils.Optional<Prisma.
|
|
8722
|
+
args: Prisma.ApprovalManagementGroupByArgs<ExtArgs>
|
|
8723
|
+
result: runtime.Types.Utils.Optional<Prisma.ApprovalManagementGroupByOutputType>[]
|
|
8724
8724
|
}
|
|
8725
8725
|
count: {
|
|
8726
|
-
args: Prisma.
|
|
8727
|
-
result: runtime.Types.Utils.Optional<Prisma.
|
|
8726
|
+
args: Prisma.ApprovalManagementCountArgs<ExtArgs>
|
|
8727
|
+
result: runtime.Types.Utils.Optional<Prisma.ApprovalManagementCountAggregateOutputType> | number
|
|
8728
8728
|
}
|
|
8729
8729
|
}
|
|
8730
8730
|
}
|
|
@@ -11146,21 +11146,24 @@ export const InvoiceItemScalarFieldEnum = {
|
|
|
11146
11146
|
export type InvoiceItemScalarFieldEnum = (typeof InvoiceItemScalarFieldEnum)[keyof typeof InvoiceItemScalarFieldEnum]
|
|
11147
11147
|
|
|
11148
11148
|
|
|
11149
|
-
export const
|
|
11149
|
+
export const ApprovalManagementScalarFieldEnum = {
|
|
11150
11150
|
id: 'id',
|
|
11151
11151
|
uuid: 'uuid',
|
|
11152
|
+
journy_type: 'journy_type',
|
|
11153
|
+
journey_task: 'journey_task',
|
|
11154
|
+
parent_id: 'parent_id',
|
|
11152
11155
|
user_id: 'user_id',
|
|
11153
|
-
batch_id: 'batch_id',
|
|
11154
|
-
task_type: 'task_type',
|
|
11155
11156
|
proposed_payload: 'proposed_payload',
|
|
11156
11157
|
previous_snapshot: 'previous_snapshot',
|
|
11158
|
+
estimated_budget: 'estimated_budget',
|
|
11159
|
+
batch_id: 'batch_id',
|
|
11157
11160
|
request_status: 'request_status',
|
|
11158
11161
|
reject_reason: 'reject_reason',
|
|
11159
11162
|
created_at: 'created_at',
|
|
11160
11163
|
created_by: 'created_by'
|
|
11161
11164
|
} as const
|
|
11162
11165
|
|
|
11163
|
-
export type
|
|
11166
|
+
export type ApprovalManagementScalarFieldEnum = (typeof ApprovalManagementScalarFieldEnum)[keyof typeof ApprovalManagementScalarFieldEnum]
|
|
11164
11167
|
|
|
11165
11168
|
|
|
11166
11169
|
export const SortOrder = {
|
|
@@ -12205,16 +12208,16 @@ export type ListEnumInvoiceMatchingStatusFieldRefInput<$PrismaModel> = FieldRefI
|
|
|
12205
12208
|
|
|
12206
12209
|
|
|
12207
12210
|
/**
|
|
12208
|
-
* Reference to a field of type '
|
|
12211
|
+
* Reference to a field of type 'ApprovalManagementStatusEnum'
|
|
12209
12212
|
*/
|
|
12210
|
-
export type
|
|
12213
|
+
export type EnumApprovalManagementStatusEnumFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalManagementStatusEnum'>
|
|
12211
12214
|
|
|
12212
12215
|
|
|
12213
12216
|
|
|
12214
12217
|
/**
|
|
12215
|
-
* Reference to a field of type '
|
|
12218
|
+
* Reference to a field of type 'ApprovalManagementStatusEnum[]'
|
|
12216
12219
|
*/
|
|
12217
|
-
export type
|
|
12220
|
+
export type ListEnumApprovalManagementStatusEnumFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApprovalManagementStatusEnum[]'>
|
|
12218
12221
|
|
|
12219
12222
|
|
|
12220
12223
|
/**
|
|
@@ -12437,7 +12440,7 @@ export type GlobalOmitConfig = {
|
|
|
12437
12440
|
businessEntityLocation?: Prisma.BusinessEntityLocationOmit
|
|
12438
12441
|
invoice?: Prisma.InvoiceOmit
|
|
12439
12442
|
invoiceItem?: Prisma.InvoiceItemOmit
|
|
12440
|
-
|
|
12443
|
+
approvalManagement?: Prisma.ApprovalManagementOmit
|
|
12441
12444
|
}
|
|
12442
12445
|
|
|
12443
12446
|
/* Types for Logging */
|
|
@@ -161,7 +161,7 @@ export const ModelName = {
|
|
|
161
161
|
BusinessEntityLocation: 'BusinessEntityLocation',
|
|
162
162
|
Invoice: 'Invoice',
|
|
163
163
|
InvoiceItem: 'InvoiceItem',
|
|
164
|
-
|
|
164
|
+
ApprovalManagement: 'ApprovalManagement'
|
|
165
165
|
} as const
|
|
166
166
|
|
|
167
167
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -2559,21 +2559,24 @@ export const InvoiceItemScalarFieldEnum = {
|
|
|
2559
2559
|
export type InvoiceItemScalarFieldEnum = (typeof InvoiceItemScalarFieldEnum)[keyof typeof InvoiceItemScalarFieldEnum]
|
|
2560
2560
|
|
|
2561
2561
|
|
|
2562
|
-
export const
|
|
2562
|
+
export const ApprovalManagementScalarFieldEnum = {
|
|
2563
2563
|
id: 'id',
|
|
2564
2564
|
uuid: 'uuid',
|
|
2565
|
+
journy_type: 'journy_type',
|
|
2566
|
+
journey_task: 'journey_task',
|
|
2567
|
+
parent_id: 'parent_id',
|
|
2565
2568
|
user_id: 'user_id',
|
|
2566
|
-
batch_id: 'batch_id',
|
|
2567
|
-
task_type: 'task_type',
|
|
2568
2569
|
proposed_payload: 'proposed_payload',
|
|
2569
2570
|
previous_snapshot: 'previous_snapshot',
|
|
2571
|
+
estimated_budget: 'estimated_budget',
|
|
2572
|
+
batch_id: 'batch_id',
|
|
2570
2573
|
request_status: 'request_status',
|
|
2571
2574
|
reject_reason: 'reject_reason',
|
|
2572
2575
|
created_at: 'created_at',
|
|
2573
2576
|
created_by: 'created_by'
|
|
2574
2577
|
} as const
|
|
2575
2578
|
|
|
2576
|
-
export type
|
|
2579
|
+
export type ApprovalManagementScalarFieldEnum = (typeof ApprovalManagementScalarFieldEnum)[keyof typeof ApprovalManagementScalarFieldEnum]
|
|
2577
2580
|
|
|
2578
2581
|
|
|
2579
2582
|
export const SortOrder = {
|