feat: refactor ComplexPosesService to remove unused defaultInsert method and improve findAll logic

fix: update PartnersService to use 'isNot' instead of 'not' for allocation checks

refactor: enhance BusinessActivityComplexesService to validate license activation before creating a complex

fix: adjust ComplexPosesService to ensure account allocation checks are accurate and handle errors properly

refactor: modify ConsumerMiddleware to set consumerData instead of partnerData for better clarity

feat: expand SaleInvoicesService to include additional fields in the invoice selection

chore: update business-activities module to include accounts-charge module for better organization

fix: ensure ComplexPosesService correctly handles account allocation during POS creation

feat: implement PartnerBusinessActivityAccountsCharge module with create functionality for account charges

refactor: streamline getPartnerBusinessActivityAllocationLimits utility for better clarity and functionality

chore: add migration script to update database schema with necessary constraints and foreign keys

feat: create DTO for accounts charge to validate incoming data
This commit is contained in:
2026-04-25 15:16:59 +03:30
parent 12506de863
commit b72e6c7194
36 changed files with 975 additions and 568 deletions
@@ -30,6 +30,7 @@ export type LicenseAccountAllocationMinAggregateOutputType = {
updated_at: Date | null
license_activation_id: string | null
account_id: string | null
credit_id: string | null
}
export type LicenseAccountAllocationMaxAggregateOutputType = {
@@ -38,6 +39,7 @@ export type LicenseAccountAllocationMaxAggregateOutputType = {
updated_at: Date | null
license_activation_id: string | null
account_id: string | null
credit_id: string | null
}
export type LicenseAccountAllocationCountAggregateOutputType = {
@@ -46,6 +48,7 @@ export type LicenseAccountAllocationCountAggregateOutputType = {
updated_at: number
license_activation_id: number
account_id: number
credit_id: number
_all: number
}
@@ -56,6 +59,7 @@ export type LicenseAccountAllocationMinAggregateInputType = {
updated_at?: true
license_activation_id?: true
account_id?: true
credit_id?: true
}
export type LicenseAccountAllocationMaxAggregateInputType = {
@@ -64,6 +68,7 @@ export type LicenseAccountAllocationMaxAggregateInputType = {
updated_at?: true
license_activation_id?: true
account_id?: true
credit_id?: true
}
export type LicenseAccountAllocationCountAggregateInputType = {
@@ -72,6 +77,7 @@ export type LicenseAccountAllocationCountAggregateInputType = {
updated_at?: true
license_activation_id?: true
account_id?: true
credit_id?: true
_all?: true
}
@@ -153,6 +159,7 @@ export type LicenseAccountAllocationGroupByOutputType = {
updated_at: Date
license_activation_id: string | null
account_id: string | null
credit_id: string | null
_count: LicenseAccountAllocationCountAggregateOutputType | null
_min: LicenseAccountAllocationMinAggregateOutputType | null
_max: LicenseAccountAllocationMaxAggregateOutputType | null
@@ -182,9 +189,10 @@ export type LicenseAccountAllocationWhereInput = {
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
credit_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
partner_account_quota_credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
}
export type LicenseAccountAllocationOrderByWithRelationInput = {
@@ -193,15 +201,17 @@ export type LicenseAccountAllocationOrderByWithRelationInput = {
updated_at?: Prisma.SortOrder
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
credit_id?: Prisma.SortOrderInput | Prisma.SortOrder
license_activation?: Prisma.LicenseActivationOrderByWithRelationInput
account?: Prisma.ConsumerAccountOrderByWithRelationInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput
credit?: Prisma.PartnerAccountQuotaCreditOrderByWithRelationInput
_relevance?: Prisma.LicenseAccountAllocationOrderByRelevanceInput
}
export type LicenseAccountAllocationWhereUniqueInput = Prisma.AtLeast<{
id?: string
account_id?: string
credit_id?: string
AND?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
OR?: Prisma.LicenseAccountAllocationWhereInput[]
NOT?: Prisma.LicenseAccountAllocationWhereInput | Prisma.LicenseAccountAllocationWhereInput[]
@@ -210,8 +220,8 @@ export type LicenseAccountAllocationWhereUniqueInput = Prisma.AtLeast<{
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
license_activation?: Prisma.XOR<Prisma.LicenseActivationNullableScalarRelationFilter, Prisma.LicenseActivationWhereInput> | null
account?: Prisma.XOR<Prisma.ConsumerAccountNullableScalarRelationFilter, Prisma.ConsumerAccountWhereInput> | null
partner_account_quota_credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
}, "id" | "account_id">
credit?: Prisma.XOR<Prisma.PartnerAccountQuotaCreditNullableScalarRelationFilter, Prisma.PartnerAccountQuotaCreditWhereInput> | null
}, "id" | "account_id" | "credit_id">
export type LicenseAccountAllocationOrderByWithAggregationInput = {
id?: Prisma.SortOrder
@@ -219,6 +229,7 @@ export type LicenseAccountAllocationOrderByWithAggregationInput = {
updated_at?: Prisma.SortOrder
license_activation_id?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
credit_id?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.LicenseAccountAllocationCountOrderByAggregateInput
_max?: Prisma.LicenseAccountAllocationMaxOrderByAggregateInput
_min?: Prisma.LicenseAccountAllocationMinOrderByAggregateInput
@@ -233,6 +244,7 @@ export type LicenseAccountAllocationScalarWhereWithAggregatesInput = {
updated_at?: Prisma.DateTimeWithAggregatesFilter<"LicenseAccountAllocation"> | Date | string
license_activation_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
account_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
credit_id?: Prisma.StringNullableWithAggregatesFilter<"LicenseAccountAllocation"> | string | null
}
export type LicenseAccountAllocationCreateInput = {
@@ -241,7 +253,7 @@ export type LicenseAccountAllocationCreateInput = {
updated_at?: Date | string
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
}
export type LicenseAccountAllocationUncheckedCreateInput = {
@@ -250,7 +262,7 @@ export type LicenseAccountAllocationUncheckedCreateInput = {
updated_at?: Date | string
license_activation_id?: string | null
account_id?: string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
credit_id?: string | null
}
export type LicenseAccountAllocationUpdateInput = {
@@ -259,7 +271,7 @@ export type LicenseAccountAllocationUpdateInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
}
export type LicenseAccountAllocationUncheckedUpdateInput = {
@@ -268,7 +280,7 @@ export type LicenseAccountAllocationUncheckedUpdateInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseAccountAllocationCreateManyInput = {
@@ -277,6 +289,7 @@ export type LicenseAccountAllocationCreateManyInput = {
updated_at?: Date | string
license_activation_id?: string | null
account_id?: string | null
credit_id?: string | null
}
export type LicenseAccountAllocationUpdateManyMutationInput = {
@@ -291,6 +304,7 @@ export type LicenseAccountAllocationUncheckedUpdateManyInput = {
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseAccountAllocationNullableScalarRelationFilter = {
@@ -320,6 +334,7 @@ export type LicenseAccountAllocationCountOrderByAggregateInput = {
updated_at?: Prisma.SortOrder
license_activation_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
credit_id?: Prisma.SortOrder
}
export type LicenseAccountAllocationMaxOrderByAggregateInput = {
@@ -328,6 +343,7 @@ export type LicenseAccountAllocationMaxOrderByAggregateInput = {
updated_at?: Prisma.SortOrder
license_activation_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
credit_id?: Prisma.SortOrder
}
export type LicenseAccountAllocationMinOrderByAggregateInput = {
@@ -336,6 +352,7 @@ export type LicenseAccountAllocationMinOrderByAggregateInput = {
updated_at?: Prisma.SortOrder
license_activation_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
credit_id?: Prisma.SortOrder
}
export type LicenseAccountAllocationCreateNestedOneWithoutAccountInput = {
@@ -412,20 +429,36 @@ export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activation
deleteMany?: Prisma.LicenseAccountAllocationScalarWhereInput | Prisma.LicenseAccountAllocationScalarWhereInput[]
}
export type LicenseAccountAllocationCreateNestedOneWithoutPartner_account_quota_creditInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput
export type LicenseAccountAllocationCreateNestedOneWithoutCreditInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
}
export type LicenseAccountAllocationUpdateOneWithoutPartner_account_quota_creditNestedInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutPartner_account_quota_creditInput
export type LicenseAccountAllocationUncheckedCreateNestedOneWithoutCreditInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
}
export type LicenseAccountAllocationUpdateOneWithoutCreditNestedInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutCreditInput
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
}
export type LicenseAccountAllocationUncheckedUpdateOneWithoutCreditNestedInput = {
create?: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
connectOrCreate?: Prisma.LicenseAccountAllocationCreateOrConnectWithoutCreditInput
upsert?: Prisma.LicenseAccountAllocationUpsertWithoutCreditInput
disconnect?: Prisma.LicenseAccountAllocationWhereInput | boolean
delete?: Prisma.LicenseAccountAllocationWhereInput | boolean
connect?: Prisma.LicenseAccountAllocationWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput, Prisma.LicenseAccountAllocationUpdateWithoutCreditInput>, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
}
export type LicenseAccountAllocationCreateWithoutAccountInput = {
@@ -433,7 +466,7 @@ export type LicenseAccountAllocationCreateWithoutAccountInput = {
created_at?: Date | string
updated_at?: Date | string
license_activation?: Prisma.LicenseActivationCreateNestedOneWithoutAccount_allocationsInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
}
export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
@@ -441,7 +474,7 @@ export type LicenseAccountAllocationUncheckedCreateWithoutAccountInput = {
created_at?: Date | string
updated_at?: Date | string
license_activation_id?: string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
credit_id?: string | null
}
export type LicenseAccountAllocationCreateOrConnectWithoutAccountInput = {
@@ -465,7 +498,7 @@ export type LicenseAccountAllocationUpdateWithoutAccountInput = {
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
license_activation?: Prisma.LicenseActivationUpdateOneWithoutAccount_allocationsNestedInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
}
export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
@@ -473,7 +506,7 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutAccountInput = {
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
license_activation_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
@@ -481,7 +514,7 @@ export type LicenseAccountAllocationCreateWithoutLicense_activationInput = {
created_at?: Date | string
updated_at?: Date | string
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
credit?: Prisma.PartnerAccountQuotaCreditCreateNestedOneWithoutAllocationInput
}
export type LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInput = {
@@ -489,7 +522,7 @@ export type LicenseAccountAllocationUncheckedCreateWithoutLicense_activationInpu
created_at?: Date | string
updated_at?: Date | string
account_id?: string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedCreateNestedOneWithoutAllocationInput
credit_id?: string | null
}
export type LicenseAccountAllocationCreateOrConnectWithoutLicense_activationInput = {
@@ -527,9 +560,10 @@ export type LicenseAccountAllocationScalarWhereInput = {
updated_at?: Prisma.DateTimeFilter<"LicenseAccountAllocation"> | Date | string
license_activation_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
account_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
credit_id?: Prisma.StringNullableFilter<"LicenseAccountAllocation"> | string | null
}
export type LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationCreateWithoutCreditInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
@@ -537,7 +571,7 @@ export type LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInp
account?: Prisma.ConsumerAccountCreateNestedOneWithoutAccount_allocationInput
}
export type LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationUncheckedCreateWithoutCreditInput = {
id?: string
created_at?: Date | string
updated_at?: Date | string
@@ -545,23 +579,23 @@ export type LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_
account_id?: string | null
}
export type LicenseAccountAllocationCreateOrConnectWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationCreateOrConnectWithoutCreditInput = {
where: Prisma.LicenseAccountAllocationWhereUniqueInput
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
}
export type LicenseAccountAllocationUpsertWithoutPartner_account_quota_creditInput = {
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutPartner_account_quota_creditInput>
export type LicenseAccountAllocationUpsertWithoutCreditInput = {
update: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
create: Prisma.XOR<Prisma.LicenseAccountAllocationCreateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedCreateWithoutCreditInput>
where?: Prisma.LicenseAccountAllocationWhereInput
}
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationUpdateToOneWithWhereWithoutCreditInput = {
where?: Prisma.LicenseAccountAllocationWhereInput
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput>
data: Prisma.XOR<Prisma.LicenseAccountAllocationUpdateWithoutCreditInput, Prisma.LicenseAccountAllocationUncheckedUpdateWithoutCreditInput>
}
export type LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationUpdateWithoutCreditInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -569,7 +603,7 @@ export type LicenseAccountAllocationUpdateWithoutPartner_account_quota_creditInp
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
}
export type LicenseAccountAllocationUncheckedUpdateWithoutPartner_account_quota_creditInput = {
export type LicenseAccountAllocationUncheckedUpdateWithoutCreditInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -582,6 +616,7 @@ export type LicenseAccountAllocationCreateManyLicense_activationInput = {
created_at?: Date | string
updated_at?: Date | string
account_id?: string | null
credit_id?: string | null
}
export type LicenseAccountAllocationUpdateWithoutLicense_activationInput = {
@@ -589,7 +624,7 @@ export type LicenseAccountAllocationUpdateWithoutLicense_activationInput = {
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account?: Prisma.ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
credit?: Prisma.PartnerAccountQuotaCreditUpdateOneWithoutAllocationNestedInput
}
export type LicenseAccountAllocationUncheckedUpdateWithoutLicense_activationInput = {
@@ -597,7 +632,7 @@ export type LicenseAccountAllocationUncheckedUpdateWithoutLicense_activationInpu
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
partner_account_quota_credit?: Prisma.PartnerAccountQuotaCreditUncheckedUpdateOneWithoutAllocationNestedInput
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activationInput = {
@@ -605,6 +640,7 @@ export type LicenseAccountAllocationUncheckedUpdateManyWithoutLicense_activation
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
credit_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
@@ -615,9 +651,10 @@ export type LicenseAccountAllocationSelect<ExtArgs extends runtime.Types.Extensi
updated_at?: boolean
license_activation_id?: boolean
account_id?: boolean
credit_id?: boolean
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
partner_account_quota_credit?: boolean | Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>
credit?: boolean | Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>
}, ExtArgs["result"]["licenseAccountAllocation"]>
@@ -628,13 +665,14 @@ export type LicenseAccountAllocationSelectScalar = {
updated_at?: boolean
license_activation_id?: boolean
account_id?: boolean
credit_id?: boolean
}
export type LicenseAccountAllocationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "license_activation_id" | "account_id", ExtArgs["result"]["licenseAccountAllocation"]>
export type LicenseAccountAllocationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "license_activation_id" | "account_id" | "credit_id", ExtArgs["result"]["licenseAccountAllocation"]>
export type LicenseAccountAllocationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
license_activation?: boolean | Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>
account?: boolean | Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>
partner_account_quota_credit?: boolean | Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>
credit?: boolean | Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>
}
export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -642,7 +680,7 @@ export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Exten
objects: {
license_activation: Prisma.$LicenseActivationPayload<ExtArgs> | null
account: Prisma.$ConsumerAccountPayload<ExtArgs> | null
partner_account_quota_credit: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs> | null
credit: Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
@@ -650,6 +688,7 @@ export type $LicenseAccountAllocationPayload<ExtArgs extends runtime.Types.Exten
updated_at: Date
license_activation_id: string | null
account_id: string | null
credit_id: string | null
}, ExtArgs["result"]["licenseAccountAllocation"]>
composites: {}
}
@@ -992,7 +1031,7 @@ export interface Prisma__LicenseAccountAllocationClient<T, Null = never, ExtArgs
readonly [Symbol.toStringTag]: "PrismaPromise"
license_activation<T extends Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$license_activationArgs<ExtArgs>>): Prisma.Prisma__LicenseActivationClient<runtime.Types.Result.GetResult<Prisma.$LicenseActivationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
account<T extends Prisma.LicenseAccountAllocation$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$accountArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
partner_account_quota_credit<T extends Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountQuotaCreditClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
credit<T extends Prisma.LicenseAccountAllocation$creditArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LicenseAccountAllocation$creditArgs<ExtArgs>>): Prisma.Prisma__PartnerAccountQuotaCreditClient<runtime.Types.Result.GetResult<Prisma.$PartnerAccountQuotaCreditPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1027,6 +1066,7 @@ export interface LicenseAccountAllocationFieldRefs {
readonly updated_at: Prisma.FieldRef<"LicenseAccountAllocation", 'DateTime'>
readonly license_activation_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
readonly account_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
readonly credit_id: Prisma.FieldRef<"LicenseAccountAllocation", 'String'>
}
@@ -1413,9 +1453,9 @@ export type LicenseAccountAllocation$accountArgs<ExtArgs extends runtime.Types.E
}
/**
* LicenseAccountAllocation.partner_account_quota_credit
* LicenseAccountAllocation.credit
*/
export type LicenseAccountAllocation$partner_account_quota_creditArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type LicenseAccountAllocation$creditArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PartnerAccountQuotaCredit
*/