@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.1
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/lib/generated/prisma/browser.d.ts +514 -0
- package/lib/generated/prisma/browser.js +57 -0
- package/lib/generated/prisma/browser.js.map +1 -0
- package/lib/generated/prisma/client.d.ts +531 -0
- package/lib/generated/prisma/client.js +69 -0
- package/lib/generated/prisma/client.js.map +1 -0
- package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
- package/lib/generated/prisma/commonInputTypes.js +12 -0
- package/lib/generated/prisma/commonInputTypes.js.map +1 -0
- package/lib/generated/prisma/dmmf.d.ts +4085 -0
- package/lib/generated/prisma/dmmf.js +27551 -0
- package/lib/generated/prisma/dmmf.js.map +1 -0
- package/lib/generated/prisma/enums.d.ts +216 -0
- package/lib/generated/prisma/enums.js +205 -0
- package/lib/generated/prisma/enums.js.map +1 -0
- package/lib/generated/prisma/internal/class.d.ts +1237 -0
- package/lib/generated/prisma/internal/class.js +79 -0
- package/lib/generated/prisma/internal/class.js.map +1 -0
- package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
- package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
- package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
- package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/lib/generated/prisma/kysely-types.d.ts +1499 -0
- package/lib/generated/prisma/kysely-types.js +196 -0
- package/lib/generated/prisma/kysely-types.js.map +1 -0
- package/lib/generated/prisma/models/Address.d.ts +1339 -0
- package/lib/generated/prisma/models/Address.js +12 -0
- package/lib/generated/prisma/models/Address.js.map +1 -0
- package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
- package/lib/generated/prisma/models/Administrator.js +12 -0
- package/lib/generated/prisma/models/Administrator.js.map +1 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
- package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
- package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
- package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
- package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
- package/lib/generated/prisma/models/ApiToken.js +12 -0
- package/lib/generated/prisma/models/ApiToken.js.map +1 -0
- package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
- package/lib/generated/prisma/models/AwsBucket.js +12 -0
- package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
- package/lib/generated/prisma/models/Card.d.ts +1533 -0
- package/lib/generated/prisma/models/Card.js +12 -0
- package/lib/generated/prisma/models/Card.js.map +1 -0
- package/lib/generated/prisma/models/Cart.d.ts +2315 -0
- package/lib/generated/prisma/models/Cart.js +12 -0
- package/lib/generated/prisma/models/Cart.js.map +1 -0
- package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
- package/lib/generated/prisma/models/CartCost.js +12 -0
- package/lib/generated/prisma/models/CartCost.js.map +1 -0
- package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
- package/lib/generated/prisma/models/CartLine.js +12 -0
- package/lib/generated/prisma/models/CartLine.js.map +1 -0
- package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
- package/lib/generated/prisma/models/CartLineModifier.js +12 -0
- package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
- package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
- package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
- package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
- package/lib/generated/prisma/models/Checkout.js +12 -0
- package/lib/generated/prisma/models/Checkout.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
- package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
- package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
- package/lib/generated/prisma/models/CheckoutLine.js +12 -0
- package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
- package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
- package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
- package/lib/generated/prisma/models/Collection.d.ts +1961 -0
- package/lib/generated/prisma/models/Collection.js +12 -0
- package/lib/generated/prisma/models/Collection.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
- package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
- package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
- package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
- package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
- package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/Customer.d.ts +2964 -0
- package/lib/generated/prisma/models/Customer.js +12 -0
- package/lib/generated/prisma/models/Customer.js.map +1 -0
- package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
- package/lib/generated/prisma/models/CustomerGroup.js +12 -0
- package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
- package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
- package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
- package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
- package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
- package/lib/generated/prisma/models/DiscountCode.js +12 -0
- package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
- package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
- package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
- package/lib/generated/prisma/models/EventLog.js +12 -0
- package/lib/generated/prisma/models/EventLog.js.map +1 -0
- package/lib/generated/prisma/models/Facet.d.ts +1266 -0
- package/lib/generated/prisma/models/Facet.js +12 -0
- package/lib/generated/prisma/models/Facet.js.map +1 -0
- package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
- package/lib/generated/prisma/models/FacetOption.js +12 -0
- package/lib/generated/prisma/models/FacetOption.js.map +1 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
- package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
- package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
- package/lib/generated/prisma/models/FeatureFlag.js +12 -0
- package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
- package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
- package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
- package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
- package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
- package/lib/generated/prisma/models/FreeItemRule.js +12 -0
- package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
- package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
- package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
- package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
- package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
- package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
- package/lib/generated/prisma/models/Ingredient.js +12 -0
- package/lib/generated/prisma/models/Ingredient.js.map +1 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
- package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
- package/lib/generated/prisma/models/IngredientToStore.js +12 -0
- package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
- package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
- package/lib/generated/prisma/models/Media.d.ts +2127 -0
- package/lib/generated/prisma/models/Media.js +12 -0
- package/lib/generated/prisma/models/Media.js.map +1 -0
- package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
- package/lib/generated/prisma/models/Modifier.js +12 -0
- package/lib/generated/prisma/models/Modifier.js.map +1 -0
- package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
- package/lib/generated/prisma/models/ModifierGroup.js +12 -0
- package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
- package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
- package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
- package/lib/generated/prisma/models/ModifierOption.js +12 -0
- package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
- package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
- package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
- package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
- package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
- package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
- package/lib/generated/prisma/models/OneTimeToken.js +12 -0
- package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
- package/lib/generated/prisma/models/Payment.d.ts +1560 -0
- package/lib/generated/prisma/models/Payment.js +12 -0
- package/lib/generated/prisma/models/Payment.js.map +1 -0
- package/lib/generated/prisma/models/Platform.d.ts +7442 -0
- package/lib/generated/prisma/models/Platform.js +12 -0
- package/lib/generated/prisma/models/Platform.js.map +1 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
- package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
- package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
- package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
- package/lib/generated/prisma/models/PrepTime.js +12 -0
- package/lib/generated/prisma/models/PrepTime.js.map +1 -0
- package/lib/generated/prisma/models/Product.d.ts +2975 -0
- package/lib/generated/prisma/models/Product.js +12 -0
- package/lib/generated/prisma/models/Product.js.map +1 -0
- package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
- package/lib/generated/prisma/models/ProductCategory.js +12 -0
- package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
- package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
- package/lib/generated/prisma/models/ProductListing.js +12 -0
- package/lib/generated/prisma/models/ProductListing.js.map +1 -0
- package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductToTag.js +12 -0
- package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
- package/lib/generated/prisma/models/ProductVariant.js +12 -0
- package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
- package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
- package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
- package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
- package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
- package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
- package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
- package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
- package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
- package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
- package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
- package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
- package/lib/generated/prisma/models/ProductVarietal.js +12 -0
- package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
- package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
- package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
- package/lib/generated/prisma/models/Refund.d.ts +1707 -0
- package/lib/generated/prisma/models/Refund.js +12 -0
- package/lib/generated/prisma/models/Refund.js.map +1 -0
- package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
- package/lib/generated/prisma/models/RefundLine.js +12 -0
- package/lib/generated/prisma/models/RefundLine.js.map +1 -0
- package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
- package/lib/generated/prisma/models/RelatedItems.js +12 -0
- package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
- package/lib/generated/prisma/models/Role.d.ts +1264 -0
- package/lib/generated/prisma/models/Role.js +12 -0
- package/lib/generated/prisma/models/Role.js.map +1 -0
- package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
- package/lib/generated/prisma/models/ScheduledTask.js +12 -0
- package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
- package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
- package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
- package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
- package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
- package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
- package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
- package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
- package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
- package/lib/generated/prisma/models/SmsConversation.js +12 -0
- package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
- package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
- package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
- package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
- package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
- package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
- package/lib/generated/prisma/models/StockLevel.js +12 -0
- package/lib/generated/prisma/models/StockLevel.js.map +1 -0
- package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
- package/lib/generated/prisma/models/StockLocation.js +12 -0
- package/lib/generated/prisma/models/StockLocation.js.map +1 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
- package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
- package/lib/generated/prisma/models/StockMovement.js +12 -0
- package/lib/generated/prisma/models/StockMovement.js.map +1 -0
- package/lib/generated/prisma/models/Store.d.ts +4487 -0
- package/lib/generated/prisma/models/Store.js +12 -0
- package/lib/generated/prisma/models/Store.js.map +1 -0
- package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
- package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
- package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
- package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
- package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
- package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
- package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
- package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
- package/lib/generated/prisma/models/Tag.d.ts +1581 -0
- package/lib/generated/prisma/models/Tag.js +12 -0
- package/lib/generated/prisma/models/Tag.js.map +1 -0
- package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
- package/lib/generated/prisma/models/TaxCategory.js +12 -0
- package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
- package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
- package/lib/generated/prisma/models/Transaction.js +12 -0
- package/lib/generated/prisma/models/Transaction.js.map +1 -0
- package/lib/generated/prisma/models/User.d.ts +1907 -0
- package/lib/generated/prisma/models/User.js +12 -0
- package/lib/generated/prisma/models/User.js.map +1 -0
- package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
- package/lib/generated/prisma/models/UserToRole.js +12 -0
- package/lib/generated/prisma/models/UserToRole.js.map +1 -0
- package/lib/generated/prisma/models.d.ts +103 -0
- package/lib/generated/prisma/models.js +3 -0
- package/lib/generated/prisma/models.js.map +1 -0
- package/lib/generated/prisma/pjtg.d.ts +145 -0
- package/lib/generated/prisma/pjtg.js +3 -0
- package/lib/generated/prisma/pjtg.js.map +1 -0
- package/lib/helpers.d.ts +37 -0
- package/lib/helpers.js +226 -0
- package/lib/helpers.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js.map +1 -0
- package/lib/kysely/index.d.ts +2 -0
- package/lib/kysely/index.js +19 -0
- package/lib/kysely/index.js.map +1 -0
- package/lib/kysely/kysely-db.d.ts +3 -0
- package/lib/kysely/kysely-db.js +3 -0
- package/lib/kysely/kysely-db.js.map +1 -0
- package/lib/kysely/utils/index.d.ts +4 -0
- package/lib/kysely/utils/index.js +21 -0
- package/lib/kysely/utils/index.js.map +1 -0
- package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
- package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
- package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
- package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
- package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
- package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
- package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
- package/lib/kysely/utils/serialize-bigint-value.js +13 -0
- package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
- package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
- package/lib/kysely/utils/serialize-numeric-value.js +11 -0
- package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
- package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
- package/lib/kysely/utils/shallow-dehydrate.js +3 -0
- package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
- package/lib/prisma-module/index.d.ts +4 -0
- package/lib/prisma-module/index.js +21 -0
- package/lib/prisma-module/index.js.map +1 -0
- package/lib/prisma-module/prisma-options.d.ts +59 -0
- package/lib/prisma-module/prisma-options.js +3 -0
- package/lib/prisma-module/prisma-options.js.map +1 -0
- package/lib/prisma-module/prisma.constants.d.ts +1 -0
- package/lib/prisma-module/prisma.constants.js +5 -0
- package/lib/prisma-module/prisma.constants.js.map +1 -0
- package/lib/prisma-module/prisma.module.d.ts +8 -0
- package/lib/prisma-module/prisma.module.js +73 -0
- package/lib/prisma-module/prisma.module.js.map +1 -0
- package/lib/prisma-module/prisma.service.d.ts +5 -0
- package/lib/prisma-module/prisma.service.js +29 -0
- package/lib/prisma-module/prisma.service.js.map +1 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -0
- package/lib/types.d.ts +7 -0
- package/lib/types.js +3 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
- package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
- package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
- package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
- package/lib/utils/ignore-prisma-builtins.js +3 -0
- package/lib/utils/ignore-prisma-builtins.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +20 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/prisma-where-to-sql.d.ts +5 -0
- package/lib/utils/prisma-where-to-sql.js +94 -0
- package/lib/utils/prisma-where-to-sql.js.map +1 -0
- package/lib/web360-prisma.constants.d.ts +2 -0
- package/lib/web360-prisma.constants.js +6 -0
- package/lib/web360-prisma.constants.js.map +1 -0
- package/lib/web360-prisma.module.d.ts +7 -0
- package/lib/web360-prisma.module.js +81 -0
- package/lib/web360-prisma.module.js.map +1 -0
- package/lib/web360-prisma.options.d.ts +38 -0
- package/lib/web360-prisma.options.js +3 -0
- package/lib/web360-prisma.options.js.map +1 -0
- package/lib/web360-prisma.service.d.ts +57 -0
- package/lib/web360-prisma.service.js +57 -0
- package/lib/web360-prisma.service.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,1264 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model Role
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type RoleModel = runtime.Types.Result.DefaultSelection<Prisma.$RolePayload>;
|
|
8
|
+
export type AggregateRole = {
|
|
9
|
+
_count: RoleCountAggregateOutputType | null;
|
|
10
|
+
_avg: RoleAvgAggregateOutputType | null;
|
|
11
|
+
_sum: RoleSumAggregateOutputType | null;
|
|
12
|
+
_min: RoleMinAggregateOutputType | null;
|
|
13
|
+
_max: RoleMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type RoleAvgAggregateOutputType = {
|
|
16
|
+
id: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type RoleSumAggregateOutputType = {
|
|
19
|
+
id: bigint | null;
|
|
20
|
+
};
|
|
21
|
+
export type RoleMinAggregateOutputType = {
|
|
22
|
+
id: bigint | null;
|
|
23
|
+
code: string | null;
|
|
24
|
+
description: string | null;
|
|
25
|
+
createdAt: Date | null;
|
|
26
|
+
updatedAt: Date | null;
|
|
27
|
+
deletedAt: Date | null;
|
|
28
|
+
};
|
|
29
|
+
export type RoleMaxAggregateOutputType = {
|
|
30
|
+
id: bigint | null;
|
|
31
|
+
code: string | null;
|
|
32
|
+
description: string | null;
|
|
33
|
+
createdAt: Date | null;
|
|
34
|
+
updatedAt: Date | null;
|
|
35
|
+
deletedAt: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type RoleCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
code: number;
|
|
40
|
+
description: number;
|
|
41
|
+
permissions: number;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
updatedAt: number;
|
|
44
|
+
deletedAt: number;
|
|
45
|
+
_all: number;
|
|
46
|
+
};
|
|
47
|
+
export type RoleAvgAggregateInputType = {
|
|
48
|
+
id?: true;
|
|
49
|
+
};
|
|
50
|
+
export type RoleSumAggregateInputType = {
|
|
51
|
+
id?: true;
|
|
52
|
+
};
|
|
53
|
+
export type RoleMinAggregateInputType = {
|
|
54
|
+
id?: true;
|
|
55
|
+
code?: true;
|
|
56
|
+
description?: true;
|
|
57
|
+
createdAt?: true;
|
|
58
|
+
updatedAt?: true;
|
|
59
|
+
deletedAt?: true;
|
|
60
|
+
};
|
|
61
|
+
export type RoleMaxAggregateInputType = {
|
|
62
|
+
id?: true;
|
|
63
|
+
code?: true;
|
|
64
|
+
description?: true;
|
|
65
|
+
createdAt?: true;
|
|
66
|
+
updatedAt?: true;
|
|
67
|
+
deletedAt?: true;
|
|
68
|
+
};
|
|
69
|
+
export type RoleCountAggregateInputType = {
|
|
70
|
+
id?: true;
|
|
71
|
+
code?: true;
|
|
72
|
+
description?: true;
|
|
73
|
+
permissions?: true;
|
|
74
|
+
createdAt?: true;
|
|
75
|
+
updatedAt?: true;
|
|
76
|
+
deletedAt?: true;
|
|
77
|
+
_all?: true;
|
|
78
|
+
};
|
|
79
|
+
export type RoleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
80
|
+
/**
|
|
81
|
+
* Filter which Role to aggregate.
|
|
82
|
+
*/
|
|
83
|
+
where?: Prisma.RoleWhereInput;
|
|
84
|
+
/**
|
|
85
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
86
|
+
*
|
|
87
|
+
* Determine the order of Roles to fetch.
|
|
88
|
+
*/
|
|
89
|
+
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
90
|
+
/**
|
|
91
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
92
|
+
*
|
|
93
|
+
* Sets the start position
|
|
94
|
+
*/
|
|
95
|
+
cursor?: Prisma.RoleWhereUniqueInput;
|
|
96
|
+
/**
|
|
97
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
98
|
+
*
|
|
99
|
+
* Take `±n` Roles from the position of the cursor.
|
|
100
|
+
*/
|
|
101
|
+
take?: number;
|
|
102
|
+
/**
|
|
103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
104
|
+
*
|
|
105
|
+
* Skip the first `n` Roles.
|
|
106
|
+
*/
|
|
107
|
+
skip?: number;
|
|
108
|
+
/**
|
|
109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
110
|
+
*
|
|
111
|
+
* Count returned Roles
|
|
112
|
+
**/
|
|
113
|
+
_count?: true | RoleCountAggregateInputType;
|
|
114
|
+
/**
|
|
115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
116
|
+
*
|
|
117
|
+
* Select which fields to average
|
|
118
|
+
**/
|
|
119
|
+
_avg?: RoleAvgAggregateInputType;
|
|
120
|
+
/**
|
|
121
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
122
|
+
*
|
|
123
|
+
* Select which fields to sum
|
|
124
|
+
**/
|
|
125
|
+
_sum?: RoleSumAggregateInputType;
|
|
126
|
+
/**
|
|
127
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
128
|
+
*
|
|
129
|
+
* Select which fields to find the minimum value
|
|
130
|
+
**/
|
|
131
|
+
_min?: RoleMinAggregateInputType;
|
|
132
|
+
/**
|
|
133
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
134
|
+
*
|
|
135
|
+
* Select which fields to find the maximum value
|
|
136
|
+
**/
|
|
137
|
+
_max?: RoleMaxAggregateInputType;
|
|
138
|
+
};
|
|
139
|
+
export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
|
|
140
|
+
[P in keyof T & keyof AggregateRole]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRole[P]> : Prisma.GetScalarType<T[P], AggregateRole[P]>;
|
|
141
|
+
};
|
|
142
|
+
export type RoleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
143
|
+
where?: Prisma.RoleWhereInput;
|
|
144
|
+
orderBy?: Prisma.RoleOrderByWithAggregationInput | Prisma.RoleOrderByWithAggregationInput[];
|
|
145
|
+
by: Prisma.RoleScalarFieldEnum[] | Prisma.RoleScalarFieldEnum;
|
|
146
|
+
having?: Prisma.RoleScalarWhereWithAggregatesInput;
|
|
147
|
+
take?: number;
|
|
148
|
+
skip?: number;
|
|
149
|
+
_count?: RoleCountAggregateInputType | true;
|
|
150
|
+
_avg?: RoleAvgAggregateInputType;
|
|
151
|
+
_sum?: RoleSumAggregateInputType;
|
|
152
|
+
_min?: RoleMinAggregateInputType;
|
|
153
|
+
_max?: RoleMaxAggregateInputType;
|
|
154
|
+
};
|
|
155
|
+
export type RoleGroupByOutputType = {
|
|
156
|
+
id: bigint;
|
|
157
|
+
code: string;
|
|
158
|
+
description: string | null;
|
|
159
|
+
permissions: string[];
|
|
160
|
+
createdAt: Date;
|
|
161
|
+
updatedAt: Date;
|
|
162
|
+
deletedAt: Date | null;
|
|
163
|
+
_count: RoleCountAggregateOutputType | null;
|
|
164
|
+
_avg: RoleAvgAggregateOutputType | null;
|
|
165
|
+
_sum: RoleSumAggregateOutputType | null;
|
|
166
|
+
_min: RoleMinAggregateOutputType | null;
|
|
167
|
+
_max: RoleMaxAggregateOutputType | null;
|
|
168
|
+
};
|
|
169
|
+
type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RoleGroupByOutputType, T['by']> & {
|
|
170
|
+
[P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RoleGroupByOutputType[P]>;
|
|
171
|
+
}>>;
|
|
172
|
+
export type RoleWhereInput = {
|
|
173
|
+
AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
174
|
+
OR?: Prisma.RoleWhereInput[];
|
|
175
|
+
NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
176
|
+
id?: Prisma.BigIntFilter<"Role"> | bigint | number;
|
|
177
|
+
code?: Prisma.StringFilter<"Role"> | string;
|
|
178
|
+
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
179
|
+
permissions?: Prisma.StringNullableListFilter<"Role">;
|
|
180
|
+
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
181
|
+
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
182
|
+
deletedAt?: Prisma.DateTimeNullableFilter<"Role"> | Date | string | null;
|
|
183
|
+
userToRole?: Prisma.UserToRoleListRelationFilter;
|
|
184
|
+
};
|
|
185
|
+
export type RoleOrderByWithRelationInput = {
|
|
186
|
+
id?: Prisma.SortOrder;
|
|
187
|
+
code?: Prisma.SortOrder;
|
|
188
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
189
|
+
permissions?: Prisma.SortOrder;
|
|
190
|
+
createdAt?: Prisma.SortOrder;
|
|
191
|
+
updatedAt?: Prisma.SortOrder;
|
|
192
|
+
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
193
|
+
userToRole?: Prisma.UserToRoleOrderByRelationAggregateInput;
|
|
194
|
+
_relevance?: Prisma.RoleOrderByRelevanceInput;
|
|
195
|
+
};
|
|
196
|
+
export type RoleWhereUniqueInput = Prisma.AtLeast<{
|
|
197
|
+
id?: bigint | number;
|
|
198
|
+
code?: string;
|
|
199
|
+
AND?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
200
|
+
OR?: Prisma.RoleWhereInput[];
|
|
201
|
+
NOT?: Prisma.RoleWhereInput | Prisma.RoleWhereInput[];
|
|
202
|
+
description?: Prisma.StringNullableFilter<"Role"> | string | null;
|
|
203
|
+
permissions?: Prisma.StringNullableListFilter<"Role">;
|
|
204
|
+
createdAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
205
|
+
updatedAt?: Prisma.DateTimeFilter<"Role"> | Date | string;
|
|
206
|
+
deletedAt?: Prisma.DateTimeNullableFilter<"Role"> | Date | string | null;
|
|
207
|
+
userToRole?: Prisma.UserToRoleListRelationFilter;
|
|
208
|
+
}, "id" | "code">;
|
|
209
|
+
export type RoleOrderByWithAggregationInput = {
|
|
210
|
+
id?: Prisma.SortOrder;
|
|
211
|
+
code?: Prisma.SortOrder;
|
|
212
|
+
description?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
213
|
+
permissions?: Prisma.SortOrder;
|
|
214
|
+
createdAt?: Prisma.SortOrder;
|
|
215
|
+
updatedAt?: Prisma.SortOrder;
|
|
216
|
+
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
217
|
+
_count?: Prisma.RoleCountOrderByAggregateInput;
|
|
218
|
+
_avg?: Prisma.RoleAvgOrderByAggregateInput;
|
|
219
|
+
_max?: Prisma.RoleMaxOrderByAggregateInput;
|
|
220
|
+
_min?: Prisma.RoleMinOrderByAggregateInput;
|
|
221
|
+
_sum?: Prisma.RoleSumOrderByAggregateInput;
|
|
222
|
+
};
|
|
223
|
+
export type RoleScalarWhereWithAggregatesInput = {
|
|
224
|
+
AND?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
225
|
+
OR?: Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
226
|
+
NOT?: Prisma.RoleScalarWhereWithAggregatesInput | Prisma.RoleScalarWhereWithAggregatesInput[];
|
|
227
|
+
id?: Prisma.BigIntWithAggregatesFilter<"Role"> | bigint | number;
|
|
228
|
+
code?: Prisma.StringWithAggregatesFilter<"Role"> | string;
|
|
229
|
+
description?: Prisma.StringNullableWithAggregatesFilter<"Role"> | string | null;
|
|
230
|
+
permissions?: Prisma.StringNullableListFilter<"Role">;
|
|
231
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
|
|
232
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Role"> | Date | string;
|
|
233
|
+
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Role"> | Date | string | null;
|
|
234
|
+
};
|
|
235
|
+
export type RoleCreateInput = {
|
|
236
|
+
id?: bigint | number;
|
|
237
|
+
code: string;
|
|
238
|
+
description?: string | null;
|
|
239
|
+
permissions?: Prisma.RoleCreatepermissionsInput | string[];
|
|
240
|
+
createdAt?: Date | string;
|
|
241
|
+
updatedAt?: Date | string;
|
|
242
|
+
deletedAt?: Date | string | null;
|
|
243
|
+
userToRole?: Prisma.UserToRoleCreateNestedManyWithoutRoleInput;
|
|
244
|
+
};
|
|
245
|
+
export type RoleUncheckedCreateInput = {
|
|
246
|
+
id?: bigint | number;
|
|
247
|
+
code: string;
|
|
248
|
+
description?: string | null;
|
|
249
|
+
permissions?: Prisma.RoleCreatepermissionsInput | string[];
|
|
250
|
+
createdAt?: Date | string;
|
|
251
|
+
updatedAt?: Date | string;
|
|
252
|
+
deletedAt?: Date | string | null;
|
|
253
|
+
userToRole?: Prisma.UserToRoleUncheckedCreateNestedManyWithoutRoleInput;
|
|
254
|
+
};
|
|
255
|
+
export type RoleUpdateInput = {
|
|
256
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
257
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
258
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
259
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
260
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
261
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
262
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
263
|
+
userToRole?: Prisma.UserToRoleUpdateManyWithoutRoleNestedInput;
|
|
264
|
+
};
|
|
265
|
+
export type RoleUncheckedUpdateInput = {
|
|
266
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
267
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
269
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
270
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
271
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
272
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
273
|
+
userToRole?: Prisma.UserToRoleUncheckedUpdateManyWithoutRoleNestedInput;
|
|
274
|
+
};
|
|
275
|
+
export type RoleCreateManyInput = {
|
|
276
|
+
id?: bigint | number;
|
|
277
|
+
code: string;
|
|
278
|
+
description?: string | null;
|
|
279
|
+
permissions?: Prisma.RoleCreatepermissionsInput | string[];
|
|
280
|
+
createdAt?: Date | string;
|
|
281
|
+
updatedAt?: Date | string;
|
|
282
|
+
deletedAt?: Date | string | null;
|
|
283
|
+
};
|
|
284
|
+
export type RoleUpdateManyMutationInput = {
|
|
285
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
286
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
287
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
288
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
289
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
290
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
291
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
292
|
+
};
|
|
293
|
+
export type RoleUncheckedUpdateManyInput = {
|
|
294
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
295
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
296
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
297
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
298
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
299
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
300
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
301
|
+
};
|
|
302
|
+
export type RoleOrderByRelevanceInput = {
|
|
303
|
+
fields: Prisma.RoleOrderByRelevanceFieldEnum | Prisma.RoleOrderByRelevanceFieldEnum[];
|
|
304
|
+
sort: Prisma.SortOrder;
|
|
305
|
+
search: string;
|
|
306
|
+
};
|
|
307
|
+
export type RoleCountOrderByAggregateInput = {
|
|
308
|
+
id?: Prisma.SortOrder;
|
|
309
|
+
code?: Prisma.SortOrder;
|
|
310
|
+
description?: Prisma.SortOrder;
|
|
311
|
+
permissions?: Prisma.SortOrder;
|
|
312
|
+
createdAt?: Prisma.SortOrder;
|
|
313
|
+
updatedAt?: Prisma.SortOrder;
|
|
314
|
+
deletedAt?: Prisma.SortOrder;
|
|
315
|
+
};
|
|
316
|
+
export type RoleAvgOrderByAggregateInput = {
|
|
317
|
+
id?: Prisma.SortOrder;
|
|
318
|
+
};
|
|
319
|
+
export type RoleMaxOrderByAggregateInput = {
|
|
320
|
+
id?: Prisma.SortOrder;
|
|
321
|
+
code?: Prisma.SortOrder;
|
|
322
|
+
description?: Prisma.SortOrder;
|
|
323
|
+
createdAt?: Prisma.SortOrder;
|
|
324
|
+
updatedAt?: Prisma.SortOrder;
|
|
325
|
+
deletedAt?: Prisma.SortOrder;
|
|
326
|
+
};
|
|
327
|
+
export type RoleMinOrderByAggregateInput = {
|
|
328
|
+
id?: Prisma.SortOrder;
|
|
329
|
+
code?: Prisma.SortOrder;
|
|
330
|
+
description?: Prisma.SortOrder;
|
|
331
|
+
createdAt?: Prisma.SortOrder;
|
|
332
|
+
updatedAt?: Prisma.SortOrder;
|
|
333
|
+
deletedAt?: Prisma.SortOrder;
|
|
334
|
+
};
|
|
335
|
+
export type RoleSumOrderByAggregateInput = {
|
|
336
|
+
id?: Prisma.SortOrder;
|
|
337
|
+
};
|
|
338
|
+
export type RoleScalarRelationFilter = {
|
|
339
|
+
is?: Prisma.RoleWhereInput;
|
|
340
|
+
isNot?: Prisma.RoleWhereInput;
|
|
341
|
+
};
|
|
342
|
+
export type RoleCreatepermissionsInput = {
|
|
343
|
+
set: string[];
|
|
344
|
+
};
|
|
345
|
+
export type RoleUpdatepermissionsInput = {
|
|
346
|
+
set?: string[];
|
|
347
|
+
push?: string | string[];
|
|
348
|
+
};
|
|
349
|
+
export type RoleCreateNestedOneWithoutUserToRoleInput = {
|
|
350
|
+
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserToRoleInput, Prisma.RoleUncheckedCreateWithoutUserToRoleInput>;
|
|
351
|
+
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserToRoleInput;
|
|
352
|
+
connect?: Prisma.RoleWhereUniqueInput;
|
|
353
|
+
};
|
|
354
|
+
export type RoleUpdateOneRequiredWithoutUserToRoleNestedInput = {
|
|
355
|
+
create?: Prisma.XOR<Prisma.RoleCreateWithoutUserToRoleInput, Prisma.RoleUncheckedCreateWithoutUserToRoleInput>;
|
|
356
|
+
connectOrCreate?: Prisma.RoleCreateOrConnectWithoutUserToRoleInput;
|
|
357
|
+
upsert?: Prisma.RoleUpsertWithoutUserToRoleInput;
|
|
358
|
+
connect?: Prisma.RoleWhereUniqueInput;
|
|
359
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.RoleUpdateToOneWithWhereWithoutUserToRoleInput, Prisma.RoleUpdateWithoutUserToRoleInput>, Prisma.RoleUncheckedUpdateWithoutUserToRoleInput>;
|
|
360
|
+
};
|
|
361
|
+
export type RoleCreateWithoutUserToRoleInput = {
|
|
362
|
+
id?: bigint | number;
|
|
363
|
+
code: string;
|
|
364
|
+
description?: string | null;
|
|
365
|
+
permissions?: Prisma.RoleCreatepermissionsInput | string[];
|
|
366
|
+
createdAt?: Date | string;
|
|
367
|
+
updatedAt?: Date | string;
|
|
368
|
+
deletedAt?: Date | string | null;
|
|
369
|
+
};
|
|
370
|
+
export type RoleUncheckedCreateWithoutUserToRoleInput = {
|
|
371
|
+
id?: bigint | number;
|
|
372
|
+
code: string;
|
|
373
|
+
description?: string | null;
|
|
374
|
+
permissions?: Prisma.RoleCreatepermissionsInput | string[];
|
|
375
|
+
createdAt?: Date | string;
|
|
376
|
+
updatedAt?: Date | string;
|
|
377
|
+
deletedAt?: Date | string | null;
|
|
378
|
+
};
|
|
379
|
+
export type RoleCreateOrConnectWithoutUserToRoleInput = {
|
|
380
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
381
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutUserToRoleInput, Prisma.RoleUncheckedCreateWithoutUserToRoleInput>;
|
|
382
|
+
};
|
|
383
|
+
export type RoleUpsertWithoutUserToRoleInput = {
|
|
384
|
+
update: Prisma.XOR<Prisma.RoleUpdateWithoutUserToRoleInput, Prisma.RoleUncheckedUpdateWithoutUserToRoleInput>;
|
|
385
|
+
create: Prisma.XOR<Prisma.RoleCreateWithoutUserToRoleInput, Prisma.RoleUncheckedCreateWithoutUserToRoleInput>;
|
|
386
|
+
where?: Prisma.RoleWhereInput;
|
|
387
|
+
};
|
|
388
|
+
export type RoleUpdateToOneWithWhereWithoutUserToRoleInput = {
|
|
389
|
+
where?: Prisma.RoleWhereInput;
|
|
390
|
+
data: Prisma.XOR<Prisma.RoleUpdateWithoutUserToRoleInput, Prisma.RoleUncheckedUpdateWithoutUserToRoleInput>;
|
|
391
|
+
};
|
|
392
|
+
export type RoleUpdateWithoutUserToRoleInput = {
|
|
393
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
394
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
395
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
396
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
397
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
398
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
399
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
400
|
+
};
|
|
401
|
+
export type RoleUncheckedUpdateWithoutUserToRoleInput = {
|
|
402
|
+
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
|
|
403
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
404
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
405
|
+
permissions?: Prisma.RoleUpdatepermissionsInput | string[];
|
|
406
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
407
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
408
|
+
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Count Type RoleCountOutputType
|
|
412
|
+
*/
|
|
413
|
+
export type RoleCountOutputType = {
|
|
414
|
+
userToRole: number;
|
|
415
|
+
};
|
|
416
|
+
export type RoleCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
417
|
+
userToRole?: boolean | RoleCountOutputTypeCountUserToRoleArgs;
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* RoleCountOutputType without action
|
|
421
|
+
*/
|
|
422
|
+
export type RoleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
423
|
+
/**
|
|
424
|
+
* Select specific fields to fetch from the RoleCountOutputType
|
|
425
|
+
*/
|
|
426
|
+
select?: Prisma.RoleCountOutputTypeSelect<ExtArgs> | null;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* RoleCountOutputType without action
|
|
430
|
+
*/
|
|
431
|
+
export type RoleCountOutputTypeCountUserToRoleArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
432
|
+
where?: Prisma.UserToRoleWhereInput;
|
|
433
|
+
};
|
|
434
|
+
export type RoleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
435
|
+
id?: boolean;
|
|
436
|
+
code?: boolean;
|
|
437
|
+
description?: boolean;
|
|
438
|
+
permissions?: boolean;
|
|
439
|
+
createdAt?: boolean;
|
|
440
|
+
updatedAt?: boolean;
|
|
441
|
+
deletedAt?: boolean;
|
|
442
|
+
userToRole?: boolean | Prisma.Role$userToRoleArgs<ExtArgs>;
|
|
443
|
+
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
444
|
+
}, ExtArgs["result"]["role"]>;
|
|
445
|
+
export type RoleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
446
|
+
id?: boolean;
|
|
447
|
+
code?: boolean;
|
|
448
|
+
description?: boolean;
|
|
449
|
+
permissions?: boolean;
|
|
450
|
+
createdAt?: boolean;
|
|
451
|
+
updatedAt?: boolean;
|
|
452
|
+
deletedAt?: boolean;
|
|
453
|
+
}, ExtArgs["result"]["role"]>;
|
|
454
|
+
export type RoleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
455
|
+
id?: boolean;
|
|
456
|
+
code?: boolean;
|
|
457
|
+
description?: boolean;
|
|
458
|
+
permissions?: boolean;
|
|
459
|
+
createdAt?: boolean;
|
|
460
|
+
updatedAt?: boolean;
|
|
461
|
+
deletedAt?: boolean;
|
|
462
|
+
}, ExtArgs["result"]["role"]>;
|
|
463
|
+
export type RoleSelectScalar = {
|
|
464
|
+
id?: boolean;
|
|
465
|
+
code?: boolean;
|
|
466
|
+
description?: boolean;
|
|
467
|
+
permissions?: boolean;
|
|
468
|
+
createdAt?: boolean;
|
|
469
|
+
updatedAt?: boolean;
|
|
470
|
+
deletedAt?: boolean;
|
|
471
|
+
};
|
|
472
|
+
export type RoleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "description" | "permissions" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["role"]>;
|
|
473
|
+
export type RoleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
474
|
+
userToRole?: boolean | Prisma.Role$userToRoleArgs<ExtArgs>;
|
|
475
|
+
_count?: boolean | Prisma.RoleCountOutputTypeDefaultArgs<ExtArgs>;
|
|
476
|
+
};
|
|
477
|
+
export type RoleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
478
|
+
export type RoleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {};
|
|
479
|
+
export type $RolePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
480
|
+
name: "Role";
|
|
481
|
+
objects: {
|
|
482
|
+
userToRole: Prisma.$UserToRolePayload<ExtArgs>[];
|
|
483
|
+
};
|
|
484
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
485
|
+
id: bigint;
|
|
486
|
+
code: string;
|
|
487
|
+
description: string | null;
|
|
488
|
+
permissions: string[];
|
|
489
|
+
createdAt: Date;
|
|
490
|
+
updatedAt: Date;
|
|
491
|
+
deletedAt: Date | null;
|
|
492
|
+
}, ExtArgs["result"]["role"]>;
|
|
493
|
+
composites: {};
|
|
494
|
+
};
|
|
495
|
+
export type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RolePayload, S>;
|
|
496
|
+
export type RoleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
497
|
+
select?: RoleCountAggregateInputType | true;
|
|
498
|
+
};
|
|
499
|
+
export interface RoleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
500
|
+
[K: symbol]: {
|
|
501
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Role'];
|
|
502
|
+
meta: {
|
|
503
|
+
name: 'Role';
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Find zero or one Role that matches the filter.
|
|
508
|
+
* @param {RoleFindUniqueArgs} args - Arguments to find a Role
|
|
509
|
+
* @example
|
|
510
|
+
* // Get one Role
|
|
511
|
+
* const role = await prisma.role.findUnique({
|
|
512
|
+
* where: {
|
|
513
|
+
* // ... provide filter here
|
|
514
|
+
* }
|
|
515
|
+
* })
|
|
516
|
+
*/
|
|
517
|
+
findUnique<T extends RoleFindUniqueArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
518
|
+
/**
|
|
519
|
+
* Find one Role that matches the filter or throw an error with `error.code='P2025'`
|
|
520
|
+
* if no matches were found.
|
|
521
|
+
* @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
|
|
522
|
+
* @example
|
|
523
|
+
* // Get one Role
|
|
524
|
+
* const role = await prisma.role.findUniqueOrThrow({
|
|
525
|
+
* where: {
|
|
526
|
+
* // ... provide filter here
|
|
527
|
+
* }
|
|
528
|
+
* })
|
|
529
|
+
*/
|
|
530
|
+
findUniqueOrThrow<T extends RoleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
531
|
+
/**
|
|
532
|
+
* Find the first Role that matches the filter.
|
|
533
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
534
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
535
|
+
* @param {RoleFindFirstArgs} args - Arguments to find a Role
|
|
536
|
+
* @example
|
|
537
|
+
* // Get one Role
|
|
538
|
+
* const role = await prisma.role.findFirst({
|
|
539
|
+
* where: {
|
|
540
|
+
* // ... provide filter here
|
|
541
|
+
* }
|
|
542
|
+
* })
|
|
543
|
+
*/
|
|
544
|
+
findFirst<T extends RoleFindFirstArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
545
|
+
/**
|
|
546
|
+
* Find the first Role that matches the filter or
|
|
547
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
548
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
549
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
550
|
+
* @param {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
|
|
551
|
+
* @example
|
|
552
|
+
* // Get one Role
|
|
553
|
+
* const role = await prisma.role.findFirstOrThrow({
|
|
554
|
+
* where: {
|
|
555
|
+
* // ... provide filter here
|
|
556
|
+
* }
|
|
557
|
+
* })
|
|
558
|
+
*/
|
|
559
|
+
findFirstOrThrow<T extends RoleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RoleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
560
|
+
/**
|
|
561
|
+
* Find zero or more Roles that matches the filter.
|
|
562
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
563
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
564
|
+
* @param {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
565
|
+
* @example
|
|
566
|
+
* // Get all Roles
|
|
567
|
+
* const roles = await prisma.role.findMany()
|
|
568
|
+
*
|
|
569
|
+
* // Get first 10 Roles
|
|
570
|
+
* const roles = await prisma.role.findMany({ take: 10 })
|
|
571
|
+
*
|
|
572
|
+
* // Only select the `id`
|
|
573
|
+
* const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
|
|
574
|
+
*
|
|
575
|
+
*/
|
|
576
|
+
findMany<T extends RoleFindManyArgs>(args?: Prisma.SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
577
|
+
/**
|
|
578
|
+
* Create a Role.
|
|
579
|
+
* @param {RoleCreateArgs} args - Arguments to create a Role.
|
|
580
|
+
* @example
|
|
581
|
+
* // Create one Role
|
|
582
|
+
* const Role = await prisma.role.create({
|
|
583
|
+
* data: {
|
|
584
|
+
* // ... data to create a Role
|
|
585
|
+
* }
|
|
586
|
+
* })
|
|
587
|
+
*
|
|
588
|
+
*/
|
|
589
|
+
create<T extends RoleCreateArgs>(args: Prisma.SelectSubset<T, RoleCreateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
590
|
+
/**
|
|
591
|
+
* Create many Roles.
|
|
592
|
+
* @param {RoleCreateManyArgs} args - Arguments to create many Roles.
|
|
593
|
+
* @example
|
|
594
|
+
* // Create many Roles
|
|
595
|
+
* const role = await prisma.role.createMany({
|
|
596
|
+
* data: [
|
|
597
|
+
* // ... provide data here
|
|
598
|
+
* ]
|
|
599
|
+
* })
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
createMany<T extends RoleCreateManyArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
603
|
+
/**
|
|
604
|
+
* Create many Roles and returns the data saved in the database.
|
|
605
|
+
* @param {RoleCreateManyAndReturnArgs} args - Arguments to create many Roles.
|
|
606
|
+
* @example
|
|
607
|
+
* // Create many Roles
|
|
608
|
+
* const role = await prisma.role.createManyAndReturn({
|
|
609
|
+
* data: [
|
|
610
|
+
* // ... provide data here
|
|
611
|
+
* ]
|
|
612
|
+
* })
|
|
613
|
+
*
|
|
614
|
+
* // Create many Roles and only return the `id`
|
|
615
|
+
* const roleWithIdOnly = await prisma.role.createManyAndReturn({
|
|
616
|
+
* select: { id: true },
|
|
617
|
+
* data: [
|
|
618
|
+
* // ... provide data here
|
|
619
|
+
* ]
|
|
620
|
+
* })
|
|
621
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
622
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
623
|
+
*
|
|
624
|
+
*/
|
|
625
|
+
createManyAndReturn<T extends RoleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RoleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
626
|
+
/**
|
|
627
|
+
* Delete a Role.
|
|
628
|
+
* @param {RoleDeleteArgs} args - Arguments to delete one Role.
|
|
629
|
+
* @example
|
|
630
|
+
* // Delete one Role
|
|
631
|
+
* const Role = await prisma.role.delete({
|
|
632
|
+
* where: {
|
|
633
|
+
* // ... filter to delete one Role
|
|
634
|
+
* }
|
|
635
|
+
* })
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
delete<T extends RoleDeleteArgs>(args: Prisma.SelectSubset<T, RoleDeleteArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
639
|
+
/**
|
|
640
|
+
* Update one Role.
|
|
641
|
+
* @param {RoleUpdateArgs} args - Arguments to update one Role.
|
|
642
|
+
* @example
|
|
643
|
+
* // Update one Role
|
|
644
|
+
* const role = await prisma.role.update({
|
|
645
|
+
* where: {
|
|
646
|
+
* // ... provide filter here
|
|
647
|
+
* },
|
|
648
|
+
* data: {
|
|
649
|
+
* // ... provide data here
|
|
650
|
+
* }
|
|
651
|
+
* })
|
|
652
|
+
*
|
|
653
|
+
*/
|
|
654
|
+
update<T extends RoleUpdateArgs>(args: Prisma.SelectSubset<T, RoleUpdateArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
655
|
+
/**
|
|
656
|
+
* Delete zero or more Roles.
|
|
657
|
+
* @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
|
|
658
|
+
* @example
|
|
659
|
+
* // Delete a few Roles
|
|
660
|
+
* const { count } = await prisma.role.deleteMany({
|
|
661
|
+
* where: {
|
|
662
|
+
* // ... provide filter here
|
|
663
|
+
* }
|
|
664
|
+
* })
|
|
665
|
+
*
|
|
666
|
+
*/
|
|
667
|
+
deleteMany<T extends RoleDeleteManyArgs>(args?: Prisma.SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
668
|
+
/**
|
|
669
|
+
* Update zero or more Roles.
|
|
670
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
671
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
672
|
+
* @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
|
|
673
|
+
* @example
|
|
674
|
+
* // Update many Roles
|
|
675
|
+
* const role = await prisma.role.updateMany({
|
|
676
|
+
* where: {
|
|
677
|
+
* // ... provide filter here
|
|
678
|
+
* },
|
|
679
|
+
* data: {
|
|
680
|
+
* // ... provide data here
|
|
681
|
+
* }
|
|
682
|
+
* })
|
|
683
|
+
*
|
|
684
|
+
*/
|
|
685
|
+
updateMany<T extends RoleUpdateManyArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
686
|
+
/**
|
|
687
|
+
* Update zero or more Roles and returns the data updated in the database.
|
|
688
|
+
* @param {RoleUpdateManyAndReturnArgs} args - Arguments to update many Roles.
|
|
689
|
+
* @example
|
|
690
|
+
* // Update many Roles
|
|
691
|
+
* const role = await prisma.role.updateManyAndReturn({
|
|
692
|
+
* where: {
|
|
693
|
+
* // ... provide filter here
|
|
694
|
+
* },
|
|
695
|
+
* data: [
|
|
696
|
+
* // ... provide data here
|
|
697
|
+
* ]
|
|
698
|
+
* })
|
|
699
|
+
*
|
|
700
|
+
* // Update zero or more Roles and only return the `id`
|
|
701
|
+
* const roleWithIdOnly = await prisma.role.updateManyAndReturn({
|
|
702
|
+
* select: { id: true },
|
|
703
|
+
* where: {
|
|
704
|
+
* // ... provide filter here
|
|
705
|
+
* },
|
|
706
|
+
* data: [
|
|
707
|
+
* // ... provide data here
|
|
708
|
+
* ]
|
|
709
|
+
* })
|
|
710
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
711
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
712
|
+
*
|
|
713
|
+
*/
|
|
714
|
+
updateManyAndReturn<T extends RoleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RoleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
715
|
+
/**
|
|
716
|
+
* Create or update one Role.
|
|
717
|
+
* @param {RoleUpsertArgs} args - Arguments to update or create a Role.
|
|
718
|
+
* @example
|
|
719
|
+
* // Update or create a Role
|
|
720
|
+
* const role = await prisma.role.upsert({
|
|
721
|
+
* create: {
|
|
722
|
+
* // ... data to create a Role
|
|
723
|
+
* },
|
|
724
|
+
* update: {
|
|
725
|
+
* // ... in case it already exists, update
|
|
726
|
+
* },
|
|
727
|
+
* where: {
|
|
728
|
+
* // ... the filter for the Role we want to update
|
|
729
|
+
* }
|
|
730
|
+
* })
|
|
731
|
+
*/
|
|
732
|
+
upsert<T extends RoleUpsertArgs>(args: Prisma.SelectSubset<T, RoleUpsertArgs<ExtArgs>>): Prisma.Prisma__RoleClient<runtime.Types.Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
733
|
+
/**
|
|
734
|
+
* Count the number of Roles.
|
|
735
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
736
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
737
|
+
* @param {RoleCountArgs} args - Arguments to filter Roles to count.
|
|
738
|
+
* @example
|
|
739
|
+
* // Count the number of Roles
|
|
740
|
+
* const count = await prisma.role.count({
|
|
741
|
+
* where: {
|
|
742
|
+
* // ... the filter for the Roles we want to count
|
|
743
|
+
* }
|
|
744
|
+
* })
|
|
745
|
+
**/
|
|
746
|
+
count<T extends RoleCountArgs>(args?: Prisma.Subset<T, RoleCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RoleCountAggregateOutputType> : number>;
|
|
747
|
+
/**
|
|
748
|
+
* Allows you to perform aggregations operations on a Role.
|
|
749
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
750
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
751
|
+
* @param {RoleAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
752
|
+
* @example
|
|
753
|
+
* // Ordered by age ascending
|
|
754
|
+
* // Where email contains prisma.io
|
|
755
|
+
* // Limited to the 10 users
|
|
756
|
+
* const aggregations = await prisma.user.aggregate({
|
|
757
|
+
* _avg: {
|
|
758
|
+
* age: true,
|
|
759
|
+
* },
|
|
760
|
+
* where: {
|
|
761
|
+
* email: {
|
|
762
|
+
* contains: "prisma.io",
|
|
763
|
+
* },
|
|
764
|
+
* },
|
|
765
|
+
* orderBy: {
|
|
766
|
+
* age: "asc",
|
|
767
|
+
* },
|
|
768
|
+
* take: 10,
|
|
769
|
+
* })
|
|
770
|
+
**/
|
|
771
|
+
aggregate<T extends RoleAggregateArgs>(args: Prisma.Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>;
|
|
772
|
+
/**
|
|
773
|
+
* Group by Role.
|
|
774
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
775
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
776
|
+
* @param {RoleGroupByArgs} args - Group by arguments.
|
|
777
|
+
* @example
|
|
778
|
+
* // Group by city, order by createdAt, get count
|
|
779
|
+
* const result = await prisma.user.groupBy({
|
|
780
|
+
* by: ['city', 'createdAt'],
|
|
781
|
+
* orderBy: {
|
|
782
|
+
* createdAt: true
|
|
783
|
+
* },
|
|
784
|
+
* _count: {
|
|
785
|
+
* _all: true
|
|
786
|
+
* },
|
|
787
|
+
* })
|
|
788
|
+
*
|
|
789
|
+
**/
|
|
790
|
+
groupBy<T extends RoleGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
791
|
+
orderBy: RoleGroupByArgs['orderBy'];
|
|
792
|
+
} : {
|
|
793
|
+
orderBy?: RoleGroupByArgs['orderBy'];
|
|
794
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
795
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
796
|
+
Error,
|
|
797
|
+
'Field ',
|
|
798
|
+
P,
|
|
799
|
+
` in "having" needs to be provided in "by"`
|
|
800
|
+
];
|
|
801
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
802
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
803
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
804
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
805
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
806
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
807
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
808
|
+
/**
|
|
809
|
+
* Fields of the Role model
|
|
810
|
+
*/
|
|
811
|
+
readonly fields: RoleFieldRefs;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* The delegate class that acts as a "Promise-like" for Role.
|
|
815
|
+
* Why is this prefixed with `Prisma__`?
|
|
816
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
817
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
818
|
+
*/
|
|
819
|
+
export interface Prisma__RoleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
820
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
821
|
+
userToRole<T extends Prisma.Role$userToRoleArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Role$userToRoleArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserToRolePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
822
|
+
/**
|
|
823
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
824
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
825
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
826
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
827
|
+
*/
|
|
828
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
829
|
+
/**
|
|
830
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
831
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
832
|
+
* @returns A Promise for the completion of the callback.
|
|
833
|
+
*/
|
|
834
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
835
|
+
/**
|
|
836
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
837
|
+
* resolved value cannot be modified from the callback.
|
|
838
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
839
|
+
* @returns A Promise for the completion of the callback.
|
|
840
|
+
*/
|
|
841
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Fields of the Role model
|
|
845
|
+
*/
|
|
846
|
+
export interface RoleFieldRefs {
|
|
847
|
+
readonly id: Prisma.FieldRef<"Role", 'BigInt'>;
|
|
848
|
+
readonly code: Prisma.FieldRef<"Role", 'String'>;
|
|
849
|
+
readonly description: Prisma.FieldRef<"Role", 'String'>;
|
|
850
|
+
readonly permissions: Prisma.FieldRef<"Role", 'String[]'>;
|
|
851
|
+
readonly createdAt: Prisma.FieldRef<"Role", 'DateTime'>;
|
|
852
|
+
readonly updatedAt: Prisma.FieldRef<"Role", 'DateTime'>;
|
|
853
|
+
readonly deletedAt: Prisma.FieldRef<"Role", 'DateTime'>;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Role findUnique
|
|
857
|
+
*/
|
|
858
|
+
export type RoleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
859
|
+
/**
|
|
860
|
+
* Select specific fields to fetch from the Role
|
|
861
|
+
*/
|
|
862
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
863
|
+
/**
|
|
864
|
+
* Omit specific fields from the Role
|
|
865
|
+
*/
|
|
866
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
867
|
+
/**
|
|
868
|
+
* Choose, which related nodes to fetch as well
|
|
869
|
+
*/
|
|
870
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
871
|
+
/**
|
|
872
|
+
* Filter, which Role to fetch.
|
|
873
|
+
*/
|
|
874
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Role findUniqueOrThrow
|
|
878
|
+
*/
|
|
879
|
+
export type RoleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
880
|
+
/**
|
|
881
|
+
* Select specific fields to fetch from the Role
|
|
882
|
+
*/
|
|
883
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
884
|
+
/**
|
|
885
|
+
* Omit specific fields from the Role
|
|
886
|
+
*/
|
|
887
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
888
|
+
/**
|
|
889
|
+
* Choose, which related nodes to fetch as well
|
|
890
|
+
*/
|
|
891
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
892
|
+
/**
|
|
893
|
+
* Filter, which Role to fetch.
|
|
894
|
+
*/
|
|
895
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Role findFirst
|
|
899
|
+
*/
|
|
900
|
+
export type RoleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
901
|
+
/**
|
|
902
|
+
* Select specific fields to fetch from the Role
|
|
903
|
+
*/
|
|
904
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
905
|
+
/**
|
|
906
|
+
* Omit specific fields from the Role
|
|
907
|
+
*/
|
|
908
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
909
|
+
/**
|
|
910
|
+
* Choose, which related nodes to fetch as well
|
|
911
|
+
*/
|
|
912
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
913
|
+
/**
|
|
914
|
+
* Filter, which Role to fetch.
|
|
915
|
+
*/
|
|
916
|
+
where?: Prisma.RoleWhereInput;
|
|
917
|
+
/**
|
|
918
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
919
|
+
*
|
|
920
|
+
* Determine the order of Roles to fetch.
|
|
921
|
+
*/
|
|
922
|
+
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
923
|
+
/**
|
|
924
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
925
|
+
*
|
|
926
|
+
* Sets the position for searching for Roles.
|
|
927
|
+
*/
|
|
928
|
+
cursor?: Prisma.RoleWhereUniqueInput;
|
|
929
|
+
/**
|
|
930
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
931
|
+
*
|
|
932
|
+
* Take `±n` Roles from the position of the cursor.
|
|
933
|
+
*/
|
|
934
|
+
take?: number;
|
|
935
|
+
/**
|
|
936
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
937
|
+
*
|
|
938
|
+
* Skip the first `n` Roles.
|
|
939
|
+
*/
|
|
940
|
+
skip?: number;
|
|
941
|
+
/**
|
|
942
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
943
|
+
*
|
|
944
|
+
* Filter by unique combinations of Roles.
|
|
945
|
+
*/
|
|
946
|
+
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Role findFirstOrThrow
|
|
950
|
+
*/
|
|
951
|
+
export type RoleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
952
|
+
/**
|
|
953
|
+
* Select specific fields to fetch from the Role
|
|
954
|
+
*/
|
|
955
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
956
|
+
/**
|
|
957
|
+
* Omit specific fields from the Role
|
|
958
|
+
*/
|
|
959
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
960
|
+
/**
|
|
961
|
+
* Choose, which related nodes to fetch as well
|
|
962
|
+
*/
|
|
963
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
964
|
+
/**
|
|
965
|
+
* Filter, which Role to fetch.
|
|
966
|
+
*/
|
|
967
|
+
where?: Prisma.RoleWhereInput;
|
|
968
|
+
/**
|
|
969
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
970
|
+
*
|
|
971
|
+
* Determine the order of Roles to fetch.
|
|
972
|
+
*/
|
|
973
|
+
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
974
|
+
/**
|
|
975
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
976
|
+
*
|
|
977
|
+
* Sets the position for searching for Roles.
|
|
978
|
+
*/
|
|
979
|
+
cursor?: Prisma.RoleWhereUniqueInput;
|
|
980
|
+
/**
|
|
981
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
982
|
+
*
|
|
983
|
+
* Take `±n` Roles from the position of the cursor.
|
|
984
|
+
*/
|
|
985
|
+
take?: number;
|
|
986
|
+
/**
|
|
987
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
988
|
+
*
|
|
989
|
+
* Skip the first `n` Roles.
|
|
990
|
+
*/
|
|
991
|
+
skip?: number;
|
|
992
|
+
/**
|
|
993
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
994
|
+
*
|
|
995
|
+
* Filter by unique combinations of Roles.
|
|
996
|
+
*/
|
|
997
|
+
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* Role findMany
|
|
1001
|
+
*/
|
|
1002
|
+
export type RoleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1003
|
+
/**
|
|
1004
|
+
* Select specific fields to fetch from the Role
|
|
1005
|
+
*/
|
|
1006
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1007
|
+
/**
|
|
1008
|
+
* Omit specific fields from the Role
|
|
1009
|
+
*/
|
|
1010
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1011
|
+
/**
|
|
1012
|
+
* Choose, which related nodes to fetch as well
|
|
1013
|
+
*/
|
|
1014
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1015
|
+
/**
|
|
1016
|
+
* Filter, which Roles to fetch.
|
|
1017
|
+
*/
|
|
1018
|
+
where?: Prisma.RoleWhereInput;
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Determine the order of Roles to fetch.
|
|
1023
|
+
*/
|
|
1024
|
+
orderBy?: Prisma.RoleOrderByWithRelationInput | Prisma.RoleOrderByWithRelationInput[];
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Sets the position for listing Roles.
|
|
1029
|
+
*/
|
|
1030
|
+
cursor?: Prisma.RoleWhereUniqueInput;
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Take `±n` Roles from the position of the cursor.
|
|
1035
|
+
*/
|
|
1036
|
+
take?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1039
|
+
*
|
|
1040
|
+
* Skip the first `n` Roles.
|
|
1041
|
+
*/
|
|
1042
|
+
skip?: number;
|
|
1043
|
+
distinct?: Prisma.RoleScalarFieldEnum | Prisma.RoleScalarFieldEnum[];
|
|
1044
|
+
};
|
|
1045
|
+
/**
|
|
1046
|
+
* Role create
|
|
1047
|
+
*/
|
|
1048
|
+
export type RoleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1049
|
+
/**
|
|
1050
|
+
* Select specific fields to fetch from the Role
|
|
1051
|
+
*/
|
|
1052
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Omit specific fields from the Role
|
|
1055
|
+
*/
|
|
1056
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Choose, which related nodes to fetch as well
|
|
1059
|
+
*/
|
|
1060
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* The data needed to create a Role.
|
|
1063
|
+
*/
|
|
1064
|
+
data: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
|
|
1065
|
+
};
|
|
1066
|
+
/**
|
|
1067
|
+
* Role createMany
|
|
1068
|
+
*/
|
|
1069
|
+
export type RoleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1070
|
+
/**
|
|
1071
|
+
* The data used to create many Roles.
|
|
1072
|
+
*/
|
|
1073
|
+
data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[];
|
|
1074
|
+
skipDuplicates?: boolean;
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* Role createManyAndReturn
|
|
1078
|
+
*/
|
|
1079
|
+
export type RoleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1080
|
+
/**
|
|
1081
|
+
* Select specific fields to fetch from the Role
|
|
1082
|
+
*/
|
|
1083
|
+
select?: Prisma.RoleSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1084
|
+
/**
|
|
1085
|
+
* Omit specific fields from the Role
|
|
1086
|
+
*/
|
|
1087
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1088
|
+
/**
|
|
1089
|
+
* The data used to create many Roles.
|
|
1090
|
+
*/
|
|
1091
|
+
data: Prisma.RoleCreateManyInput | Prisma.RoleCreateManyInput[];
|
|
1092
|
+
skipDuplicates?: boolean;
|
|
1093
|
+
};
|
|
1094
|
+
/**
|
|
1095
|
+
* Role update
|
|
1096
|
+
*/
|
|
1097
|
+
export type RoleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1098
|
+
/**
|
|
1099
|
+
* Select specific fields to fetch from the Role
|
|
1100
|
+
*/
|
|
1101
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* Omit specific fields from the Role
|
|
1104
|
+
*/
|
|
1105
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* Choose, which related nodes to fetch as well
|
|
1108
|
+
*/
|
|
1109
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1110
|
+
/**
|
|
1111
|
+
* The data needed to update a Role.
|
|
1112
|
+
*/
|
|
1113
|
+
data: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Choose, which Role to update.
|
|
1116
|
+
*/
|
|
1117
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
1118
|
+
};
|
|
1119
|
+
/**
|
|
1120
|
+
* Role updateMany
|
|
1121
|
+
*/
|
|
1122
|
+
export type RoleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1123
|
+
/**
|
|
1124
|
+
* The data used to update Roles.
|
|
1125
|
+
*/
|
|
1126
|
+
data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Filter which Roles to update
|
|
1129
|
+
*/
|
|
1130
|
+
where?: Prisma.RoleWhereInput;
|
|
1131
|
+
/**
|
|
1132
|
+
* Limit how many Roles to update.
|
|
1133
|
+
*/
|
|
1134
|
+
limit?: number;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Role updateManyAndReturn
|
|
1138
|
+
*/
|
|
1139
|
+
export type RoleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1140
|
+
/**
|
|
1141
|
+
* Select specific fields to fetch from the Role
|
|
1142
|
+
*/
|
|
1143
|
+
select?: Prisma.RoleSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Omit specific fields from the Role
|
|
1146
|
+
*/
|
|
1147
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* The data used to update Roles.
|
|
1150
|
+
*/
|
|
1151
|
+
data: Prisma.XOR<Prisma.RoleUpdateManyMutationInput, Prisma.RoleUncheckedUpdateManyInput>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Filter which Roles to update
|
|
1154
|
+
*/
|
|
1155
|
+
where?: Prisma.RoleWhereInput;
|
|
1156
|
+
/**
|
|
1157
|
+
* Limit how many Roles to update.
|
|
1158
|
+
*/
|
|
1159
|
+
limit?: number;
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Role upsert
|
|
1163
|
+
*/
|
|
1164
|
+
export type RoleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1165
|
+
/**
|
|
1166
|
+
* Select specific fields to fetch from the Role
|
|
1167
|
+
*/
|
|
1168
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* Omit specific fields from the Role
|
|
1171
|
+
*/
|
|
1172
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Choose, which related nodes to fetch as well
|
|
1175
|
+
*/
|
|
1176
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* The filter to search for the Role to update in case it exists.
|
|
1179
|
+
*/
|
|
1180
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
1181
|
+
/**
|
|
1182
|
+
* In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
|
|
1183
|
+
*/
|
|
1184
|
+
create: Prisma.XOR<Prisma.RoleCreateInput, Prisma.RoleUncheckedCreateInput>;
|
|
1185
|
+
/**
|
|
1186
|
+
* In case the Role was found with the provided `where` argument, update it with this data.
|
|
1187
|
+
*/
|
|
1188
|
+
update: Prisma.XOR<Prisma.RoleUpdateInput, Prisma.RoleUncheckedUpdateInput>;
|
|
1189
|
+
};
|
|
1190
|
+
/**
|
|
1191
|
+
* Role delete
|
|
1192
|
+
*/
|
|
1193
|
+
export type RoleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* Select specific fields to fetch from the Role
|
|
1196
|
+
*/
|
|
1197
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Omit specific fields from the Role
|
|
1200
|
+
*/
|
|
1201
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
* Choose, which related nodes to fetch as well
|
|
1204
|
+
*/
|
|
1205
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* Filter which Role to delete.
|
|
1208
|
+
*/
|
|
1209
|
+
where: Prisma.RoleWhereUniqueInput;
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Role deleteMany
|
|
1213
|
+
*/
|
|
1214
|
+
export type RoleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1215
|
+
/**
|
|
1216
|
+
* Filter which Roles to delete
|
|
1217
|
+
*/
|
|
1218
|
+
where?: Prisma.RoleWhereInput;
|
|
1219
|
+
/**
|
|
1220
|
+
* Limit how many Roles to delete.
|
|
1221
|
+
*/
|
|
1222
|
+
limit?: number;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Role.userToRole
|
|
1226
|
+
*/
|
|
1227
|
+
export type Role$userToRoleArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Select specific fields to fetch from the UserToRole
|
|
1230
|
+
*/
|
|
1231
|
+
select?: Prisma.UserToRoleSelect<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Omit specific fields from the UserToRole
|
|
1234
|
+
*/
|
|
1235
|
+
omit?: Prisma.UserToRoleOmit<ExtArgs> | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Choose, which related nodes to fetch as well
|
|
1238
|
+
*/
|
|
1239
|
+
include?: Prisma.UserToRoleInclude<ExtArgs> | null;
|
|
1240
|
+
where?: Prisma.UserToRoleWhereInput;
|
|
1241
|
+
orderBy?: Prisma.UserToRoleOrderByWithRelationInput | Prisma.UserToRoleOrderByWithRelationInput[];
|
|
1242
|
+
cursor?: Prisma.UserToRoleWhereUniqueInput;
|
|
1243
|
+
take?: number;
|
|
1244
|
+
skip?: number;
|
|
1245
|
+
distinct?: Prisma.UserToRoleScalarFieldEnum | Prisma.UserToRoleScalarFieldEnum[];
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* Role without action
|
|
1249
|
+
*/
|
|
1250
|
+
export type RoleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1251
|
+
/**
|
|
1252
|
+
* Select specific fields to fetch from the Role
|
|
1253
|
+
*/
|
|
1254
|
+
select?: Prisma.RoleSelect<ExtArgs> | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Omit specific fields from the Role
|
|
1257
|
+
*/
|
|
1258
|
+
omit?: Prisma.RoleOmit<ExtArgs> | null;
|
|
1259
|
+
/**
|
|
1260
|
+
* Choose, which related nodes to fetch as well
|
|
1261
|
+
*/
|
|
1262
|
+
include?: Prisma.RoleInclude<ExtArgs> | null;
|
|
1263
|
+
};
|
|
1264
|
+
export {};
|