@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.2
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 +4 -3
|
@@ -0,0 +1,1499 @@
|
|
|
1
|
+
import { Prisma } from './client';
|
|
2
|
+
import type { ColumnType } from 'kysely';
|
|
3
|
+
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
|
|
4
|
+
export type Timestamp = ColumnType<Date, Date | string, Date | string>;
|
|
5
|
+
export declare const ApiTokenPurpose: {
|
|
6
|
+
readonly POS360_ADMIN_PANEL: "POS360_ADMIN_PANEL";
|
|
7
|
+
readonly PLATFORM_ADMIN_PANEL: "PLATFORM_ADMIN_PANEL";
|
|
8
|
+
readonly STOREFRONT_PUBLIC: "STOREFRONT_PUBLIC";
|
|
9
|
+
readonly STOREFRONT_PRIVATE: "STOREFRONT_PRIVATE";
|
|
10
|
+
};
|
|
11
|
+
export type ApiTokenPurpose = (typeof ApiTokenPurpose)[keyof typeof ApiTokenPurpose];
|
|
12
|
+
export declare const EventLogEvent: {
|
|
13
|
+
readonly ORDER_CREATED: "ORDER_CREATED";
|
|
14
|
+
readonly ORDER_ACCEPTED: "ORDER_ACCEPTED";
|
|
15
|
+
readonly OUT_FOR_DELIVERY: "OUT_FOR_DELIVERY";
|
|
16
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
17
|
+
readonly FULFILLED: "FULFILLED";
|
|
18
|
+
readonly REFUNDED: "REFUNDED";
|
|
19
|
+
readonly CANCELED: "CANCELED";
|
|
20
|
+
readonly PACKED: "PACKED";
|
|
21
|
+
readonly READY_FOR_PICKUP: "READY_FOR_PICKUP";
|
|
22
|
+
};
|
|
23
|
+
export type EventLogEvent = (typeof EventLogEvent)[keyof typeof EventLogEvent];
|
|
24
|
+
export declare const DiscountType: {
|
|
25
|
+
readonly AMOUNT_OFF_TOTAL: "AMOUNT_OFF_TOTAL";
|
|
26
|
+
readonly AMOUNT_OFF_PRODUCT: "AMOUNT_OFF_PRODUCT";
|
|
27
|
+
readonly AMOUNT_OFF_PRODUCT_VARIANT: "AMOUNT_OFF_PRODUCT_VARIANT";
|
|
28
|
+
readonly PERCENTAGE_OFF_TOTAL: "PERCENTAGE_OFF_TOTAL";
|
|
29
|
+
readonly PERCENTAGE_OFF_PRODUCT: "PERCENTAGE_OFF_PRODUCT";
|
|
30
|
+
readonly PERCENTAGE_OFF_PRODUCT_VARIANT: "PERCENTAGE_OFF_PRODUCT_VARIANT";
|
|
31
|
+
readonly FREE_DELIVERY: "FREE_DELIVERY";
|
|
32
|
+
readonly BUY_X_GET_Y_FREE: "BUY_X_GET_Y_FREE";
|
|
33
|
+
};
|
|
34
|
+
export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType];
|
|
35
|
+
export declare const DiscountTargetType: {
|
|
36
|
+
readonly PRODUCT: "PRODUCT";
|
|
37
|
+
readonly PRODUCT_VARIANT: "PRODUCT_VARIANT";
|
|
38
|
+
readonly CATEGORY: "CATEGORY";
|
|
39
|
+
readonly COLLECTION: "COLLECTION";
|
|
40
|
+
};
|
|
41
|
+
export type DiscountTargetType = (typeof DiscountTargetType)[keyof typeof DiscountTargetType];
|
|
42
|
+
export declare const DiscountApplicationType: {
|
|
43
|
+
readonly AUTOMATIC: "AUTOMATIC";
|
|
44
|
+
readonly USER_INPUT: "USER_INPUT";
|
|
45
|
+
};
|
|
46
|
+
export type DiscountApplicationType = (typeof DiscountApplicationType)[keyof typeof DiscountApplicationType];
|
|
47
|
+
export declare const ActiveDays: {
|
|
48
|
+
readonly SUN: "SUN";
|
|
49
|
+
readonly MON: "MON";
|
|
50
|
+
readonly TUE: "TUE";
|
|
51
|
+
readonly WED: "WED";
|
|
52
|
+
readonly THU: "THU";
|
|
53
|
+
readonly FRI: "FRI";
|
|
54
|
+
readonly SAT: "SAT";
|
|
55
|
+
};
|
|
56
|
+
export type ActiveDays = (typeof ActiveDays)[keyof typeof ActiveDays];
|
|
57
|
+
export declare const ActiveWeeks: {
|
|
58
|
+
readonly WEEK_1: "WEEK_1";
|
|
59
|
+
readonly WEEK_2: "WEEK_2";
|
|
60
|
+
readonly WEEK_3: "WEEK_3";
|
|
61
|
+
readonly WEEK_4: "WEEK_4";
|
|
62
|
+
readonly WEEK_5: "WEEK_5";
|
|
63
|
+
};
|
|
64
|
+
export type ActiveWeeks = (typeof ActiveWeeks)[keyof typeof ActiveWeeks];
|
|
65
|
+
export declare const FeatureType: {
|
|
66
|
+
readonly ORDER_AUTO_FULFILLMENT: "ORDER_AUTO_FULFILLMENT";
|
|
67
|
+
};
|
|
68
|
+
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
69
|
+
export declare const FeeCode: {
|
|
70
|
+
readonly FULFILLMENT_TYPE: "FULFILLMENT_TYPE";
|
|
71
|
+
readonly FULFILLMENT_OPT_IN_OPTION_TYPE: "FULFILLMENT_OPT_IN_OPTION_TYPE";
|
|
72
|
+
};
|
|
73
|
+
export type FeeCode = (typeof FeeCode)[keyof typeof FeeCode];
|
|
74
|
+
export declare const MediaContentType: {
|
|
75
|
+
readonly IMAGE: "IMAGE";
|
|
76
|
+
readonly VIDEO: "VIDEO";
|
|
77
|
+
};
|
|
78
|
+
export type MediaContentType = (typeof MediaContentType)[keyof typeof MediaContentType];
|
|
79
|
+
export declare const TransactionType: {
|
|
80
|
+
readonly SALE: "SALE";
|
|
81
|
+
readonly AUTH: "AUTH";
|
|
82
|
+
readonly CAPTURE: "CAPTURE";
|
|
83
|
+
readonly REFUND: "REFUND";
|
|
84
|
+
readonly VOID: "VOID";
|
|
85
|
+
};
|
|
86
|
+
export type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];
|
|
87
|
+
export declare const PlatformMailerMessageRecipient: {
|
|
88
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
89
|
+
readonly MERCHANT: "MERCHANT";
|
|
90
|
+
readonly BOTH: "BOTH";
|
|
91
|
+
};
|
|
92
|
+
export type PlatformMailerMessageRecipient = (typeof PlatformMailerMessageRecipient)[keyof typeof PlatformMailerMessageRecipient];
|
|
93
|
+
export declare const PlatformMailerMessageEventType: {
|
|
94
|
+
readonly NEW_ORDER: "NEW_ORDER";
|
|
95
|
+
readonly ORDER_REFUND: "ORDER_REFUND";
|
|
96
|
+
readonly ORDER_CANCEL: "ORDER_CANCEL";
|
|
97
|
+
readonly ORDER_STATUS_UPDATE: "ORDER_STATUS_UPDATE";
|
|
98
|
+
readonly TRACKING_INFO: "TRACKING_INFO";
|
|
99
|
+
};
|
|
100
|
+
export type PlatformMailerMessageEventType = (typeof PlatformMailerMessageEventType)[keyof typeof PlatformMailerMessageEventType];
|
|
101
|
+
export declare const RestrictionType: {
|
|
102
|
+
readonly NONE: "NONE";
|
|
103
|
+
readonly ALCOHOL: "ALCOHOL";
|
|
104
|
+
readonly TOBACCO: "TOBACCO";
|
|
105
|
+
readonly CBD: "CBD";
|
|
106
|
+
readonly THC: "THC";
|
|
107
|
+
};
|
|
108
|
+
export type RestrictionType = (typeof RestrictionType)[keyof typeof RestrictionType];
|
|
109
|
+
export declare const ContainerType: {
|
|
110
|
+
readonly CAN: "CAN";
|
|
111
|
+
readonly BOTTLE: "BOTTLE";
|
|
112
|
+
readonly KEG: "KEG";
|
|
113
|
+
readonly BAG: "BAG";
|
|
114
|
+
readonly BOX: "BOX";
|
|
115
|
+
readonly BOTTLE_CAN: "BOTTLE_CAN";
|
|
116
|
+
readonly NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
117
|
+
readonly POUCH: "POUCH";
|
|
118
|
+
readonly CARTON: "CARTON";
|
|
119
|
+
readonly JUG: "JUG";
|
|
120
|
+
readonly PLASTIC_BOTTLE: "PLASTIC_BOTTLE";
|
|
121
|
+
readonly GLASS_BOTTLE: "GLASS_BOTTLE";
|
|
122
|
+
readonly JAR: "JAR";
|
|
123
|
+
readonly BUNDLE: "BUNDLE";
|
|
124
|
+
};
|
|
125
|
+
export type ContainerType = (typeof ContainerType)[keyof typeof ContainerType];
|
|
126
|
+
export declare const UnitOfMeasurement: {
|
|
127
|
+
readonly FL_OZ: "FL_OZ";
|
|
128
|
+
readonly OZ: "OZ";
|
|
129
|
+
readonly ML: "ML";
|
|
130
|
+
readonly L: "L";
|
|
131
|
+
readonly GAL: "GAL";
|
|
132
|
+
readonly LB: "LB";
|
|
133
|
+
readonly CT: "CT";
|
|
134
|
+
readonly PT: "PT";
|
|
135
|
+
readonly QT: "QT";
|
|
136
|
+
readonly KG: "KG";
|
|
137
|
+
readonly G: "G";
|
|
138
|
+
readonly MG: "MG";
|
|
139
|
+
readonly BUNDLE: "BUNDLE";
|
|
140
|
+
};
|
|
141
|
+
export type UnitOfMeasurement = (typeof UnitOfMeasurement)[keyof typeof UnitOfMeasurement];
|
|
142
|
+
export declare const CurrencyCode: {
|
|
143
|
+
readonly USD: "USD";
|
|
144
|
+
readonly CAD: "CAD";
|
|
145
|
+
};
|
|
146
|
+
export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
|
|
147
|
+
export declare const FulfillmentType: {
|
|
148
|
+
readonly SHIPPING: "SHIPPING";
|
|
149
|
+
readonly DELIVERY: "DELIVERY";
|
|
150
|
+
readonly PICKUP: "PICKUP";
|
|
151
|
+
readonly NONE: "NONE";
|
|
152
|
+
};
|
|
153
|
+
export type FulfillmentType = (typeof FulfillmentType)[keyof typeof FulfillmentType];
|
|
154
|
+
export declare const merchantSmsPurpose: {
|
|
155
|
+
readonly ORDER_CONFIRMATION: "ORDER_CONFIRMATION";
|
|
156
|
+
readonly ORDER_DELIVERY: "ORDER_DELIVERY";
|
|
157
|
+
readonly ORDER_PICKUP: "ORDER_PICKUP";
|
|
158
|
+
};
|
|
159
|
+
export type merchantSmsPurpose = (typeof merchantSmsPurpose)[keyof typeof merchantSmsPurpose];
|
|
160
|
+
export declare const FulfillmentOptInOptionType: {
|
|
161
|
+
readonly NONE: "NONE";
|
|
162
|
+
readonly STANDARD_DELIVERY: "STANDARD_DELIVERY";
|
|
163
|
+
readonly EXPRESS_DELIVERY: "EXPRESS_DELIVERY";
|
|
164
|
+
readonly SCHEDULED_DELIVERY: "SCHEDULED_DELIVERY";
|
|
165
|
+
readonly STANDARD_PICKUP: "STANDARD_PICKUP";
|
|
166
|
+
readonly NO_RUSH_PICKUP: "NO_RUSH_PICKUP";
|
|
167
|
+
readonly SCHEDULED_PICKUP: "SCHEDULED_PICKUP";
|
|
168
|
+
readonly HANDOFF_PICKUP: "HANDOFF_PICKUP";
|
|
169
|
+
readonly NO_RUSH_SHIPPING: "NO_RUSH_SHIPPING";
|
|
170
|
+
readonly STANDARD_SHIPPING: "STANDARD_SHIPPING";
|
|
171
|
+
readonly EXPRESS_SHIPPING: "EXPRESS_SHIPPING";
|
|
172
|
+
readonly TELEPORTED_SHIPPING: "TELEPORTED_SHIPPING";
|
|
173
|
+
readonly FEDEX_FIRST_OVERNIGHT: "FEDEX_FIRST_OVERNIGHT";
|
|
174
|
+
readonly FEDEX_PRIORITY_OVERNIGHT: "FEDEX_PRIORITY_OVERNIGHT";
|
|
175
|
+
readonly FEDEX_STANDARD_OVERNIGHT: "FEDEX_STANDARD_OVERNIGHT";
|
|
176
|
+
readonly FEDEX_TWO_DAY: "FEDEX_TWO_DAY";
|
|
177
|
+
readonly FEDEX_TWO_DAY_AM: "FEDEX_TWO_DAY_AM";
|
|
178
|
+
readonly FEDEX_EXPRESS_SAVER: "FEDEX_EXPRESS_SAVER";
|
|
179
|
+
readonly FEDEX_GROUND: "FEDEX_GROUND";
|
|
180
|
+
readonly FEDEX_GROUND_ECONOMY: "FEDEX_GROUND_ECONOMY";
|
|
181
|
+
readonly FEDEX_HOME_DELIVERY: "FEDEX_HOME_DELIVERY";
|
|
182
|
+
readonly UPS_GROUND: "UPS_GROUND";
|
|
183
|
+
readonly UPS_3_DAY_SELECT: "UPS_3_DAY_SELECT";
|
|
184
|
+
readonly UPS_NEXT_DAY_AIR: "UPS_NEXT_DAY_AIR";
|
|
185
|
+
readonly UPS_NEXT_DAY_AIR_SAVER: "UPS_NEXT_DAY_AIR_SAVER";
|
|
186
|
+
readonly UPS_NEXT_DAY_AIR_EARLY: "UPS_NEXT_DAY_AIR_EARLY";
|
|
187
|
+
readonly UPS_2ND_DAY_AIR: "UPS_2ND_DAY_AIR";
|
|
188
|
+
readonly UPS_2ND_DAY_AIR_AM: "UPS_2ND_DAY_AIR_AM";
|
|
189
|
+
readonly UPS_SUREPOST: "UPS_SUREPOST";
|
|
190
|
+
};
|
|
191
|
+
export type FulfillmentOptInOptionType = (typeof FulfillmentOptInOptionType)[keyof typeof FulfillmentOptInOptionType];
|
|
192
|
+
export declare const AssociatedStoreType: {
|
|
193
|
+
readonly RETAIL: "RETAIL";
|
|
194
|
+
readonly DELI: "DELI";
|
|
195
|
+
};
|
|
196
|
+
export type AssociatedStoreType = (typeof AssociatedStoreType)[keyof typeof AssociatedStoreType];
|
|
197
|
+
export declare const TransactionState: {
|
|
198
|
+
readonly Created: "Created";
|
|
199
|
+
readonly Pending: "Pending";
|
|
200
|
+
readonly Settled: "Settled";
|
|
201
|
+
readonly Error: "Error";
|
|
202
|
+
readonly Cancelled: "Cancelled";
|
|
203
|
+
};
|
|
204
|
+
export type TransactionState = (typeof TransactionState)[keyof typeof TransactionState];
|
|
205
|
+
export declare const RestockingStatus: {
|
|
206
|
+
readonly PENDING: "PENDING";
|
|
207
|
+
readonly COMPLETED: "COMPLETED";
|
|
208
|
+
readonly FAILED: "FAILED";
|
|
209
|
+
};
|
|
210
|
+
export type RestockingStatus = (typeof RestockingStatus)[keyof typeof RestockingStatus];
|
|
211
|
+
export declare const Timezone: {
|
|
212
|
+
readonly AMERICA_NEW_YORK: "AMERICA_NEW_YORK";
|
|
213
|
+
readonly AMERICA_LOS_ANGELES: "AMERICA_LOS_ANGELES";
|
|
214
|
+
readonly AMERICA_CHICAGO: "AMERICA_CHICAGO";
|
|
215
|
+
readonly AMERICA_DENVER: "AMERICA_DENVER";
|
|
216
|
+
readonly AMERICA_PHOENIX: "AMERICA_PHOENIX";
|
|
217
|
+
readonly AMERICA_ANCHORAGE: "AMERICA_ANCHORAGE";
|
|
218
|
+
readonly PACIFIC_HONOLULU: "PACIFIC_HONOLULU";
|
|
219
|
+
};
|
|
220
|
+
export type Timezone = (typeof Timezone)[keyof typeof Timezone];
|
|
221
|
+
export type Address = {
|
|
222
|
+
id: Generated<bigint>;
|
|
223
|
+
line1: string;
|
|
224
|
+
line2: string | null;
|
|
225
|
+
city: string;
|
|
226
|
+
state: string;
|
|
227
|
+
zip: string;
|
|
228
|
+
country: string;
|
|
229
|
+
latitude: number;
|
|
230
|
+
longitude: number;
|
|
231
|
+
};
|
|
232
|
+
export type Administrator = {
|
|
233
|
+
id: Generated<bigint>;
|
|
234
|
+
firstName: string;
|
|
235
|
+
lastName: string;
|
|
236
|
+
displayName: string | null;
|
|
237
|
+
email: string | null;
|
|
238
|
+
createdAt: Generated<Timestamp>;
|
|
239
|
+
updatedAt: Generated<Timestamp>;
|
|
240
|
+
deletedAt: Timestamp | null;
|
|
241
|
+
userId: bigint;
|
|
242
|
+
};
|
|
243
|
+
export type AdministratorToPlatform = {
|
|
244
|
+
administratorId: bigint;
|
|
245
|
+
platformRecordId: bigint;
|
|
246
|
+
};
|
|
247
|
+
export type AdministratorToStore = {
|
|
248
|
+
administratorId: bigint;
|
|
249
|
+
storeId: bigint;
|
|
250
|
+
};
|
|
251
|
+
export type ApiToken = {
|
|
252
|
+
id: Generated<bigint>;
|
|
253
|
+
platformId: string | null;
|
|
254
|
+
token: string;
|
|
255
|
+
purpose: ApiTokenPurpose;
|
|
256
|
+
createdAt: Generated<Timestamp>;
|
|
257
|
+
updatedAt: Timestamp;
|
|
258
|
+
deletedAt: Timestamp | null;
|
|
259
|
+
expriresAt: Timestamp | null;
|
|
260
|
+
};
|
|
261
|
+
export type AwsBucket = {
|
|
262
|
+
id: Generated<bigint>;
|
|
263
|
+
createdAt: Generated<Timestamp>;
|
|
264
|
+
updatedAt: Generated<Timestamp>;
|
|
265
|
+
bucketName: string;
|
|
266
|
+
region: string;
|
|
267
|
+
accessKeyId: string;
|
|
268
|
+
encryptionData: unknown;
|
|
269
|
+
secretAccessKeyEncrypted: string;
|
|
270
|
+
cloudFrontDomain: string;
|
|
271
|
+
presignedUrlExpiration: number;
|
|
272
|
+
maxFileSize: number;
|
|
273
|
+
maxFilenameLength: number;
|
|
274
|
+
};
|
|
275
|
+
export type Card = {
|
|
276
|
+
id: Generated<bigint>;
|
|
277
|
+
customerId: bigint;
|
|
278
|
+
billingId: string;
|
|
279
|
+
brand: string;
|
|
280
|
+
lastDigits: string;
|
|
281
|
+
expiryDate: string;
|
|
282
|
+
isDefault: Generated<boolean>;
|
|
283
|
+
hasCvvBeenProvided: Generated<boolean>;
|
|
284
|
+
billingFirstName: string;
|
|
285
|
+
billingLastName: string;
|
|
286
|
+
isTemporary: Generated<boolean>;
|
|
287
|
+
bin: string | null;
|
|
288
|
+
hash: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* [Address]
|
|
291
|
+
*/
|
|
292
|
+
billingAddress: unknown;
|
|
293
|
+
};
|
|
294
|
+
export type Cart = {
|
|
295
|
+
id: Generated<bigint>;
|
|
296
|
+
customerId: bigint | null;
|
|
297
|
+
platformId: string;
|
|
298
|
+
storeId: string;
|
|
299
|
+
createdAt: Generated<Timestamp>;
|
|
300
|
+
updatedAt: Timestamp;
|
|
301
|
+
openedAt: Generated<Timestamp | null>;
|
|
302
|
+
active: Generated<boolean>;
|
|
303
|
+
closedAt: Timestamp | null;
|
|
304
|
+
note: string | null;
|
|
305
|
+
currencyCode: CurrencyCode;
|
|
306
|
+
version: Generated<number>;
|
|
307
|
+
isValid: Generated<boolean>;
|
|
308
|
+
invalidReason: string | null;
|
|
309
|
+
};
|
|
310
|
+
export type CartCost = {
|
|
311
|
+
id: Generated<bigint>;
|
|
312
|
+
discountAmount: Generated<Prisma.Decimal>;
|
|
313
|
+
checkoutChargeAmount: Prisma.Decimal;
|
|
314
|
+
subtotalAmount: Prisma.Decimal;
|
|
315
|
+
isSubtotalAmountEstimated: boolean;
|
|
316
|
+
totalAmount: Prisma.Decimal;
|
|
317
|
+
isTotalAmountEstimated: boolean;
|
|
318
|
+
totalTaxAmount: Prisma.Decimal;
|
|
319
|
+
isTotalTaxAmountEstimated: boolean;
|
|
320
|
+
cartId: bigint;
|
|
321
|
+
};
|
|
322
|
+
export type CartLine = {
|
|
323
|
+
id: Generated<bigint>;
|
|
324
|
+
quantity: number;
|
|
325
|
+
productVariantId: bigint;
|
|
326
|
+
cartId: bigint;
|
|
327
|
+
createdAt: Generated<Timestamp>;
|
|
328
|
+
updatedAt: Generated<Timestamp>;
|
|
329
|
+
discountCodeId: bigint | null;
|
|
330
|
+
discountCodeRedemptionId: bigint | null;
|
|
331
|
+
/**
|
|
332
|
+
* [CartLineCost]
|
|
333
|
+
*/
|
|
334
|
+
cost: unknown;
|
|
335
|
+
};
|
|
336
|
+
export type CartLineModifier = {
|
|
337
|
+
id: Generated<bigint>;
|
|
338
|
+
modifierId: bigint;
|
|
339
|
+
modifierGroupId: bigint;
|
|
340
|
+
cartLineId: bigint;
|
|
341
|
+
cartLineModifierOptionId: bigint | null;
|
|
342
|
+
checkoutLineModifierId: bigint | null;
|
|
343
|
+
quantity: number;
|
|
344
|
+
price: Prisma.Decimal;
|
|
345
|
+
createdAt: Generated<Timestamp>;
|
|
346
|
+
updatedAt: Generated<Timestamp>;
|
|
347
|
+
deletedAt: Generated<Timestamp>;
|
|
348
|
+
};
|
|
349
|
+
export type CartLineModifierOption = {
|
|
350
|
+
id: Generated<bigint>;
|
|
351
|
+
modifierOptionId: bigint;
|
|
352
|
+
price: Prisma.Decimal;
|
|
353
|
+
quantity: number;
|
|
354
|
+
createdAt: Generated<Timestamp>;
|
|
355
|
+
updatedAt: Generated<Timestamp>;
|
|
356
|
+
deletedAt: Timestamp | null;
|
|
357
|
+
};
|
|
358
|
+
export type Checkout = {
|
|
359
|
+
id: Generated<bigint>;
|
|
360
|
+
customerId: bigint | null;
|
|
361
|
+
platformId: string;
|
|
362
|
+
storeId: string;
|
|
363
|
+
completedAt: Timestamp | null;
|
|
364
|
+
createdAt: Generated<Timestamp>;
|
|
365
|
+
updatedAt: Timestamp;
|
|
366
|
+
fulfillmentType: FulfillmentType;
|
|
367
|
+
note: string | null;
|
|
368
|
+
includeUtensils: Generated<boolean>;
|
|
369
|
+
orderId: string | null;
|
|
370
|
+
isReady: Generated<boolean>;
|
|
371
|
+
lineItemsSubtotal: Generated<Prisma.Decimal>;
|
|
372
|
+
subtotalPrice: Generated<Prisma.Decimal>;
|
|
373
|
+
isTaxExempt: Generated<boolean>;
|
|
374
|
+
isTaxesIncluded: Generated<boolean>;
|
|
375
|
+
totalPrice: Generated<Prisma.Decimal>;
|
|
376
|
+
totalTax: Generated<Prisma.Decimal>;
|
|
377
|
+
paymentDue: Prisma.Decimal;
|
|
378
|
+
cartId: bigint;
|
|
379
|
+
checkoutGroupId: bigint;
|
|
380
|
+
deliveryFee: Generated<Prisma.Decimal>;
|
|
381
|
+
currencyCode: CurrencyCode;
|
|
382
|
+
/**
|
|
383
|
+
* [TotalTaxBreakdown]
|
|
384
|
+
*/
|
|
385
|
+
totalTaxBreakdown: unknown;
|
|
386
|
+
tip: Generated<Prisma.Decimal>;
|
|
387
|
+
expressFee: Generated<Prisma.Decimal>;
|
|
388
|
+
discountAmount: Generated<Prisma.Decimal>;
|
|
389
|
+
fulfillmentOptInOptionType: FulfillmentOptInOptionType | null;
|
|
390
|
+
/**
|
|
391
|
+
* [ShippoShipment]
|
|
392
|
+
*/
|
|
393
|
+
shippoShipment: unknown | null;
|
|
394
|
+
purchasedRateId: string | null;
|
|
395
|
+
/**
|
|
396
|
+
* ![Array<PrismaJson.ShippingRate>]
|
|
397
|
+
*/
|
|
398
|
+
calculatedShippingRates: unknown | null;
|
|
399
|
+
shipmentServiceCode: string | null;
|
|
400
|
+
/**
|
|
401
|
+
* ![Array<PrismaJson.BoxDetails>]
|
|
402
|
+
*/
|
|
403
|
+
calculatedParcels: unknown | null;
|
|
404
|
+
isValid: Generated<boolean>;
|
|
405
|
+
invalidReason: string | null;
|
|
406
|
+
isGift: Generated<boolean>;
|
|
407
|
+
giftFrom: string | null;
|
|
408
|
+
giftMessage: string | null;
|
|
409
|
+
};
|
|
410
|
+
export type CheckoutGroup = {
|
|
411
|
+
id: Generated<bigint>;
|
|
412
|
+
createdAt: Generated<Timestamp>;
|
|
413
|
+
updatedAt: Timestamp | null;
|
|
414
|
+
completedAt: Timestamp | null;
|
|
415
|
+
customerId: bigint | null;
|
|
416
|
+
platformId: string;
|
|
417
|
+
fulfillmentType: FulfillmentType;
|
|
418
|
+
fulfillmentOptInOptionType: FulfillmentOptInOptionType | null;
|
|
419
|
+
discountCodes: string[];
|
|
420
|
+
customerFirstName: string | null;
|
|
421
|
+
customerLastName: string | null;
|
|
422
|
+
customerEmail: string | null;
|
|
423
|
+
customerPhone: string | null;
|
|
424
|
+
/**
|
|
425
|
+
* [Address]
|
|
426
|
+
*/
|
|
427
|
+
billingAddress: unknown | null;
|
|
428
|
+
/**
|
|
429
|
+
* [Address]
|
|
430
|
+
*/
|
|
431
|
+
deliveryAddress: unknown | null;
|
|
432
|
+
total: Generated<Prisma.Decimal>;
|
|
433
|
+
totalSubtotal: Generated<Prisma.Decimal>;
|
|
434
|
+
totalTax: Generated<Prisma.Decimal>;
|
|
435
|
+
/**
|
|
436
|
+
* [TotalTaxBreakdown]
|
|
437
|
+
*/
|
|
438
|
+
totalTaxBreakdown: unknown | null;
|
|
439
|
+
totalDeliveryFee: Generated<Prisma.Decimal>;
|
|
440
|
+
totalDiscount: Generated<Prisma.Decimal>;
|
|
441
|
+
currencyCode: CurrencyCode;
|
|
442
|
+
tip: Generated<Prisma.Decimal>;
|
|
443
|
+
confirmationId: string | null;
|
|
444
|
+
accessTokenHash: string | null;
|
|
445
|
+
billingFirstName: string;
|
|
446
|
+
billingLastName: string;
|
|
447
|
+
cardBrand: string;
|
|
448
|
+
cardLastDigits: string;
|
|
449
|
+
express: Generated<boolean | null>;
|
|
450
|
+
scheduled: Timestamp | null;
|
|
451
|
+
validatedAt: Timestamp | null;
|
|
452
|
+
isGift: Generated<boolean>;
|
|
453
|
+
giftFrom: string | null;
|
|
454
|
+
giftMessage: string | null;
|
|
455
|
+
/**
|
|
456
|
+
* [FraudEvaluation]
|
|
457
|
+
*/
|
|
458
|
+
fraudEvaluation: unknown | null;
|
|
459
|
+
};
|
|
460
|
+
export type CheckoutLine = {
|
|
461
|
+
id: Generated<bigint>;
|
|
462
|
+
quantity: number;
|
|
463
|
+
productVariantId: bigint | null;
|
|
464
|
+
checkoutId: bigint;
|
|
465
|
+
createdAt: Generated<Timestamp>;
|
|
466
|
+
updatedAt: Generated<Timestamp>;
|
|
467
|
+
unitPrice: Generated<Prisma.Decimal>;
|
|
468
|
+
totalTax: Generated<Prisma.Decimal>;
|
|
469
|
+
/**
|
|
470
|
+
* [TaxRateBreakdown]
|
|
471
|
+
*/
|
|
472
|
+
taxRateBreakdown: unknown;
|
|
473
|
+
};
|
|
474
|
+
export type CheckoutLineModifierOption = {
|
|
475
|
+
id: Generated<bigint>;
|
|
476
|
+
modifierId: bigint;
|
|
477
|
+
modifierOptionId: bigint;
|
|
478
|
+
price: Prisma.Decimal;
|
|
479
|
+
tax: Prisma.Decimal;
|
|
480
|
+
quantity: number;
|
|
481
|
+
total: Prisma.Decimal;
|
|
482
|
+
createdAt: Generated<Timestamp>;
|
|
483
|
+
updatedAt: Generated<Timestamp>;
|
|
484
|
+
deletedAt: Timestamp | null;
|
|
485
|
+
};
|
|
486
|
+
export type CheckoutLinesModifier = {
|
|
487
|
+
id: Generated<bigint>;
|
|
488
|
+
modifierId: bigint;
|
|
489
|
+
modifierGroupId: bigint;
|
|
490
|
+
checkoutLineId: bigint;
|
|
491
|
+
checkoutLineModifierOptionId: bigint | null;
|
|
492
|
+
quantity: number;
|
|
493
|
+
price: Prisma.Decimal;
|
|
494
|
+
tax: Prisma.Decimal;
|
|
495
|
+
total: Prisma.Decimal;
|
|
496
|
+
createdAt: Generated<Timestamp>;
|
|
497
|
+
updatedAt: Generated<Timestamp>;
|
|
498
|
+
deletedAt: Timestamp | null;
|
|
499
|
+
};
|
|
500
|
+
export type Collection = {
|
|
501
|
+
id: Generated<bigint>;
|
|
502
|
+
name: string;
|
|
503
|
+
description: string | null;
|
|
504
|
+
imageId: bigint | null;
|
|
505
|
+
createdAt: Generated<Timestamp>;
|
|
506
|
+
updatedAt: Timestamp;
|
|
507
|
+
rules: string | null;
|
|
508
|
+
isSmart: Generated<boolean>;
|
|
509
|
+
isActive: Generated<boolean>;
|
|
510
|
+
tags: string[];
|
|
511
|
+
};
|
|
512
|
+
export type CollectionToPlatform = {
|
|
513
|
+
id: Generated<bigint>;
|
|
514
|
+
collectionId: bigint;
|
|
515
|
+
platformId: string | null;
|
|
516
|
+
slug: string;
|
|
517
|
+
};
|
|
518
|
+
export type CollectionToProduct = {
|
|
519
|
+
platformId: string;
|
|
520
|
+
collectionId: bigint;
|
|
521
|
+
productId: bigint;
|
|
522
|
+
};
|
|
523
|
+
export type CollectionToProductVariant = {
|
|
524
|
+
collectionId: bigint;
|
|
525
|
+
productVariantId: bigint;
|
|
526
|
+
};
|
|
527
|
+
export type Customer = {
|
|
528
|
+
id: Generated<bigint>;
|
|
529
|
+
platformId: string;
|
|
530
|
+
firstName: string;
|
|
531
|
+
lastName: string;
|
|
532
|
+
displayName: string | null;
|
|
533
|
+
email: string | null;
|
|
534
|
+
phone: string | null;
|
|
535
|
+
tags: string[];
|
|
536
|
+
createdAt: Generated<Timestamp>;
|
|
537
|
+
updatedAt: Generated<Timestamp>;
|
|
538
|
+
deletedAt: Timestamp | null;
|
|
539
|
+
nmiId: string | null;
|
|
540
|
+
userId: bigint;
|
|
541
|
+
doesConsentToSmsCommunication: Generated<boolean>;
|
|
542
|
+
discriminator: Generated<string>;
|
|
543
|
+
};
|
|
544
|
+
export type CustomerGroup = {
|
|
545
|
+
id: Generated<bigint>;
|
|
546
|
+
createdAt: Generated<Timestamp>;
|
|
547
|
+
updatedAt: Generated<Timestamp>;
|
|
548
|
+
name: string;
|
|
549
|
+
};
|
|
550
|
+
export type CustomerToAddress = {
|
|
551
|
+
customerId: bigint;
|
|
552
|
+
addressId: bigint;
|
|
553
|
+
isDefault: Generated<boolean | null>;
|
|
554
|
+
};
|
|
555
|
+
export type CustomerToCustomerGroup = {
|
|
556
|
+
customerId: bigint;
|
|
557
|
+
customerGroupId: bigint;
|
|
558
|
+
};
|
|
559
|
+
export type DiscountCode = {
|
|
560
|
+
id: Generated<bigint>;
|
|
561
|
+
code: string;
|
|
562
|
+
name: string;
|
|
563
|
+
message: string | null;
|
|
564
|
+
createdAt: Generated<Timestamp>;
|
|
565
|
+
updatedAt: Timestamp;
|
|
566
|
+
platformId: string | null;
|
|
567
|
+
storeIds: string[];
|
|
568
|
+
isActive: Generated<boolean>;
|
|
569
|
+
startDate: Timestamp;
|
|
570
|
+
expiryDate: Timestamp;
|
|
571
|
+
isGlobal: Generated<boolean>;
|
|
572
|
+
maxGlobalRedemptions: Generated<number | null>;
|
|
573
|
+
maxRedemptionsPerUser: Generated<number | null>;
|
|
574
|
+
maxRedemptionsPerCart: Generated<number | null>;
|
|
575
|
+
minCartValue: number | null;
|
|
576
|
+
customerOnly: Generated<boolean>;
|
|
577
|
+
activeDays: Generated<ActiveDays[]>;
|
|
578
|
+
activeWeeks: Generated<ActiveWeeks[]>;
|
|
579
|
+
timeStart: Timestamp | null;
|
|
580
|
+
timeEnd: Timestamp | null;
|
|
581
|
+
timezone: Generated<Timezone>;
|
|
582
|
+
discountRootType: Generated<DiscountType>;
|
|
583
|
+
discountApplicationType: Generated<DiscountApplicationType>;
|
|
584
|
+
discountPercentage: Generated<number | null>;
|
|
585
|
+
discountAmount: Generated<number | null>;
|
|
586
|
+
productIds: bigint[];
|
|
587
|
+
productVariantIds: bigint[];
|
|
588
|
+
categoryIds: bigint[];
|
|
589
|
+
collectionIds: bigint[];
|
|
590
|
+
buyXId: bigint | null;
|
|
591
|
+
buyXAmount: number | null;
|
|
592
|
+
buyXQty: number | null;
|
|
593
|
+
buyXTargetType: DiscountTargetType | null;
|
|
594
|
+
getYId: bigint | null;
|
|
595
|
+
getYAmount: number | null;
|
|
596
|
+
getYQty: number | null;
|
|
597
|
+
getYTargetType: DiscountTargetType | null;
|
|
598
|
+
};
|
|
599
|
+
export type DiscountCodeAppliedToCart = {
|
|
600
|
+
cartId: bigint;
|
|
601
|
+
discountCountId: bigint;
|
|
602
|
+
isValid: Generated<boolean>;
|
|
603
|
+
appliedAt: Generated<Timestamp>;
|
|
604
|
+
warnings: string[];
|
|
605
|
+
};
|
|
606
|
+
export type DiscountCodeRedeemedOnCart = {
|
|
607
|
+
cartId: bigint;
|
|
608
|
+
discountCountId: bigint;
|
|
609
|
+
discountCodeId: bigint;
|
|
610
|
+
redeemedAt: Generated<Timestamp>;
|
|
611
|
+
};
|
|
612
|
+
export type DiscountCodeRedemption = {
|
|
613
|
+
id: Generated<bigint>;
|
|
614
|
+
customerId: bigint | null;
|
|
615
|
+
discountCodeId: bigint;
|
|
616
|
+
redeemedAt: Generated<Timestamp>;
|
|
617
|
+
};
|
|
618
|
+
export type EventLog = {
|
|
619
|
+
id: Generated<bigint>;
|
|
620
|
+
createdAt: Generated<Timestamp>;
|
|
621
|
+
event: EventLogEvent;
|
|
622
|
+
eventDate: Timestamp;
|
|
623
|
+
platformId: string;
|
|
624
|
+
storeId: string;
|
|
625
|
+
checkoutId: bigint;
|
|
626
|
+
};
|
|
627
|
+
export type Facet = {
|
|
628
|
+
id: Generated<bigint>;
|
|
629
|
+
createdAt: Generated<Timestamp>;
|
|
630
|
+
updatedAt: Generated<Timestamp>;
|
|
631
|
+
code: string;
|
|
632
|
+
};
|
|
633
|
+
export type FacetOption = {
|
|
634
|
+
id: Generated<bigint>;
|
|
635
|
+
createdAt: Generated<Timestamp>;
|
|
636
|
+
updatedAt: Generated<Timestamp>;
|
|
637
|
+
facetId: bigint;
|
|
638
|
+
value: string;
|
|
639
|
+
};
|
|
640
|
+
export type FacetOptionToPlatform = {
|
|
641
|
+
facetOptionId: bigint;
|
|
642
|
+
platformId: bigint;
|
|
643
|
+
};
|
|
644
|
+
export type FacetToPlatform = {
|
|
645
|
+
facetId: bigint;
|
|
646
|
+
platformId: bigint;
|
|
647
|
+
};
|
|
648
|
+
export type FeatureFlag = {
|
|
649
|
+
id: Generated<bigint>;
|
|
650
|
+
storeCode: string;
|
|
651
|
+
platformCode: string;
|
|
652
|
+
featureType: FeatureType;
|
|
653
|
+
enabled: Generated<boolean>;
|
|
654
|
+
createdAt: Generated<Timestamp>;
|
|
655
|
+
updatedAt: Generated<Timestamp>;
|
|
656
|
+
};
|
|
657
|
+
export type FirebaseAdminConfiguration = {
|
|
658
|
+
id: Generated<bigint>;
|
|
659
|
+
projectId: string;
|
|
660
|
+
cipherText: string;
|
|
661
|
+
encryptionData: unknown;
|
|
662
|
+
createdAt: Generated<Timestamp>;
|
|
663
|
+
updatedAt: Generated<Timestamp>;
|
|
664
|
+
};
|
|
665
|
+
export type FlaggedPayment = {
|
|
666
|
+
id: Generated<bigint>;
|
|
667
|
+
customerEmail: string;
|
|
668
|
+
createdAt: Generated<Timestamp>;
|
|
669
|
+
clearedAt: Timestamp | null;
|
|
670
|
+
ccHash: string | null;
|
|
671
|
+
metadata: unknown | null;
|
|
672
|
+
};
|
|
673
|
+
export type FreeItemRule = {
|
|
674
|
+
id: Generated<bigint>;
|
|
675
|
+
ruleId: bigint;
|
|
676
|
+
fromPvid: bigint;
|
|
677
|
+
toPvid: bigint;
|
|
678
|
+
};
|
|
679
|
+
export type FreeItemToCustomer = {
|
|
680
|
+
freeItemRuleId: bigint;
|
|
681
|
+
ruleId: bigint;
|
|
682
|
+
email: string;
|
|
683
|
+
};
|
|
684
|
+
export type FulfillmentFees = {
|
|
685
|
+
id: Generated<bigint>;
|
|
686
|
+
checkoutId: bigint;
|
|
687
|
+
feeCode: FeeCode;
|
|
688
|
+
fulfillmentType: FulfillmentType;
|
|
689
|
+
fulfillmentOptInOptionType: FulfillmentOptInOptionType | null;
|
|
690
|
+
currencyCode: CurrencyCode;
|
|
691
|
+
fee: Prisma.Decimal;
|
|
692
|
+
createdAt: Generated<Timestamp>;
|
|
693
|
+
updatedAt: Timestamp;
|
|
694
|
+
};
|
|
695
|
+
export type Ingredient = {
|
|
696
|
+
id: Generated<bigint>;
|
|
697
|
+
name: string;
|
|
698
|
+
description: string | null;
|
|
699
|
+
categoryId: bigint | null;
|
|
700
|
+
linkedProductVariantId: bigint | null;
|
|
701
|
+
unitOfMeasurement: UnitOfMeasurement;
|
|
702
|
+
createdAt: Generated<Timestamp>;
|
|
703
|
+
updatedAt: Generated<Timestamp>;
|
|
704
|
+
};
|
|
705
|
+
export type IngredientToProductVariant = {
|
|
706
|
+
id: Generated<bigint>;
|
|
707
|
+
ingredientId: bigint;
|
|
708
|
+
productVariantId: bigint;
|
|
709
|
+
quantity: number;
|
|
710
|
+
isRequired: Generated<boolean>;
|
|
711
|
+
position: Generated<number>;
|
|
712
|
+
costPerUnit: number;
|
|
713
|
+
inheritProductVariantPrice: Generated<boolean>;
|
|
714
|
+
createdAt: Generated<Timestamp>;
|
|
715
|
+
updatedAt: Timestamp;
|
|
716
|
+
};
|
|
717
|
+
export type IngredientToStore = {
|
|
718
|
+
ingredientId: bigint;
|
|
719
|
+
storeId: string;
|
|
720
|
+
stock: number | null;
|
|
721
|
+
inheritStock: Generated<boolean>;
|
|
722
|
+
mediaId: bigint | null;
|
|
723
|
+
isActive: Generated<boolean>;
|
|
724
|
+
};
|
|
725
|
+
export type ManualCollectionProduct = {
|
|
726
|
+
collectionId: bigint;
|
|
727
|
+
productId: bigint;
|
|
728
|
+
position: number | null;
|
|
729
|
+
};
|
|
730
|
+
export type Media = {
|
|
731
|
+
id: Generated<bigint>;
|
|
732
|
+
mediaContentType: MediaContentType;
|
|
733
|
+
key: string;
|
|
734
|
+
filename: string;
|
|
735
|
+
resourceUrl: string;
|
|
736
|
+
mime: string;
|
|
737
|
+
width: number | null;
|
|
738
|
+
height: number | null;
|
|
739
|
+
alt: string | null;
|
|
740
|
+
createdAt: Generated<Timestamp>;
|
|
741
|
+
updatedAt: Generated<Timestamp>;
|
|
742
|
+
processedAt: Timestamp | null;
|
|
743
|
+
bucket: Generated<string>;
|
|
744
|
+
isInternal: Generated<boolean>;
|
|
745
|
+
};
|
|
746
|
+
export type Modifier = {
|
|
747
|
+
id: Generated<bigint>;
|
|
748
|
+
name: string;
|
|
749
|
+
price: Prisma.Decimal | null;
|
|
750
|
+
description: string | null;
|
|
751
|
+
attributes: unknown | null;
|
|
752
|
+
createdAt: Generated<Timestamp>;
|
|
753
|
+
updatedAt: Timestamp;
|
|
754
|
+
deletedAt: Timestamp | null;
|
|
755
|
+
productVariantId: bigint | null;
|
|
756
|
+
mediaId: bigint | null;
|
|
757
|
+
matchVariantPrice: Generated<boolean>;
|
|
758
|
+
platformId: string | null;
|
|
759
|
+
};
|
|
760
|
+
export type ModifierGroup = {
|
|
761
|
+
id: Generated<bigint>;
|
|
762
|
+
platformId: string;
|
|
763
|
+
storeId: string;
|
|
764
|
+
name: string;
|
|
765
|
+
description: string | null;
|
|
766
|
+
max: Generated<number>;
|
|
767
|
+
min: Generated<number>;
|
|
768
|
+
createdAt: Generated<Timestamp>;
|
|
769
|
+
updatedAt: Timestamp;
|
|
770
|
+
deletedAt: Timestamp | null;
|
|
771
|
+
};
|
|
772
|
+
export type ModifierGroupToProduct = {
|
|
773
|
+
modifierGroupId: bigint;
|
|
774
|
+
productId: bigint;
|
|
775
|
+
position: Generated<number>;
|
|
776
|
+
};
|
|
777
|
+
export type ModifierOption = {
|
|
778
|
+
id: Generated<bigint>;
|
|
779
|
+
modifierId: bigint;
|
|
780
|
+
name: string;
|
|
781
|
+
price: Prisma.Decimal | null;
|
|
782
|
+
description: string | null;
|
|
783
|
+
attributes: unknown | null;
|
|
784
|
+
createdAt: Generated<Timestamp>;
|
|
785
|
+
updatedAt: Timestamp;
|
|
786
|
+
deletedAt: Timestamp | null;
|
|
787
|
+
productVariantId: bigint | null;
|
|
788
|
+
};
|
|
789
|
+
export type ModifierToModifierGroup = {
|
|
790
|
+
modifierGroupId: bigint;
|
|
791
|
+
modifierId: bigint;
|
|
792
|
+
maxModifierQuantity: Generated<number>;
|
|
793
|
+
minModifierQuantity: Generated<number>;
|
|
794
|
+
position: Generated<number>;
|
|
795
|
+
};
|
|
796
|
+
export type NmiSecurityKey = {
|
|
797
|
+
id: Generated<bigint>;
|
|
798
|
+
platformId: string;
|
|
799
|
+
isProduction: Generated<boolean>;
|
|
800
|
+
key: string;
|
|
801
|
+
encryptionData: unknown;
|
|
802
|
+
createdAt: Generated<Timestamp>;
|
|
803
|
+
updatedAt: Generated<Timestamp>;
|
|
804
|
+
};
|
|
805
|
+
export type OneTimeToken = {
|
|
806
|
+
id: Generated<bigint>;
|
|
807
|
+
purpose: string;
|
|
808
|
+
expiresAt: Timestamp | null;
|
|
809
|
+
createdAt: Generated<Timestamp>;
|
|
810
|
+
updatedAt: Generated<Timestamp>;
|
|
811
|
+
deletedAt: Timestamp | null;
|
|
812
|
+
token: string;
|
|
813
|
+
metadata: unknown | null;
|
|
814
|
+
};
|
|
815
|
+
export type Payment = {
|
|
816
|
+
id: Generated<bigint>;
|
|
817
|
+
amount: Prisma.Decimal;
|
|
818
|
+
transactionId: bigint;
|
|
819
|
+
/**
|
|
820
|
+
* [KeyValueMetadata]
|
|
821
|
+
*/
|
|
822
|
+
metadata: unknown[];
|
|
823
|
+
checkoutId: bigint;
|
|
824
|
+
createdAt: Generated<Timestamp>;
|
|
825
|
+
updatedAt: Generated<Timestamp>;
|
|
826
|
+
};
|
|
827
|
+
export type Platform = {
|
|
828
|
+
id: Generated<bigint>;
|
|
829
|
+
createdAt: Generated<Timestamp>;
|
|
830
|
+
updatedAt: Generated<Timestamp>;
|
|
831
|
+
platformId: string;
|
|
832
|
+
name: Generated<string>;
|
|
833
|
+
displayName: string;
|
|
834
|
+
logoUrl: Generated<string>;
|
|
835
|
+
domain: string;
|
|
836
|
+
deletedAt: Timestamp | null;
|
|
837
|
+
defaultLanguageCode: Generated<string>;
|
|
838
|
+
availableLanguages: Generated<string[]>;
|
|
839
|
+
defaultCurrencyCode: Generated<string>;
|
|
840
|
+
availableCurrencies: Generated<string[]>;
|
|
841
|
+
isThirdParty: Generated<boolean>;
|
|
842
|
+
thirdPartyType: string | null;
|
|
843
|
+
associatedStoreId: string | null;
|
|
844
|
+
mailConfig: unknown | null;
|
|
845
|
+
phoneConfig: unknown | null;
|
|
846
|
+
googleMerchantCenterId: string | null;
|
|
847
|
+
googleMerchantCenterCreds: unknown | null;
|
|
848
|
+
};
|
|
849
|
+
export type PlatformAwsConfiguration = {
|
|
850
|
+
id: Generated<bigint>;
|
|
851
|
+
createdAt: Generated<Timestamp>;
|
|
852
|
+
updatedAt: Generated<Timestamp>;
|
|
853
|
+
platformId: string;
|
|
854
|
+
awsBucketName: string;
|
|
855
|
+
uploadPath: string;
|
|
856
|
+
};
|
|
857
|
+
export type PlatformMailerMessage = {
|
|
858
|
+
id: Generated<bigint>;
|
|
859
|
+
platformId: string;
|
|
860
|
+
eventType: PlatformMailerMessageEventType;
|
|
861
|
+
message: string;
|
|
862
|
+
recipient: PlatformMailerMessageRecipient;
|
|
863
|
+
fulfillmentType: FulfillmentType;
|
|
864
|
+
isActive: boolean;
|
|
865
|
+
};
|
|
866
|
+
export type PrepTime = {
|
|
867
|
+
id: Generated<bigint>;
|
|
868
|
+
createdAt: Generated<Timestamp>;
|
|
869
|
+
updatedAt: Generated<Timestamp>;
|
|
870
|
+
storeId: string;
|
|
871
|
+
platformId: string;
|
|
872
|
+
orderSubtotal: Prisma.Decimal;
|
|
873
|
+
prepTimeInMinutes: number;
|
|
874
|
+
};
|
|
875
|
+
export type Product = {
|
|
876
|
+
id: Generated<bigint>;
|
|
877
|
+
name: string;
|
|
878
|
+
brand: string;
|
|
879
|
+
description: string | null;
|
|
880
|
+
createdAt: Generated<Timestamp>;
|
|
881
|
+
updatedAt: Timestamp;
|
|
882
|
+
restriction: RestrictionType;
|
|
883
|
+
categoryId: bigint;
|
|
884
|
+
isCustom: Generated<boolean>;
|
|
885
|
+
storeOwnerId: string | null;
|
|
886
|
+
};
|
|
887
|
+
export type ProductCategory = {
|
|
888
|
+
id: Generated<bigint>;
|
|
889
|
+
name: string;
|
|
890
|
+
displayName: string | null;
|
|
891
|
+
restriction: RestrictionType;
|
|
892
|
+
taxCategoryId: bigint;
|
|
893
|
+
parentCategoryId: bigint | null;
|
|
894
|
+
};
|
|
895
|
+
export type ProductCategoryToTag = {
|
|
896
|
+
categoryId: bigint;
|
|
897
|
+
tagId: bigint;
|
|
898
|
+
};
|
|
899
|
+
export type ProductListing = {
|
|
900
|
+
id: Generated<bigint>;
|
|
901
|
+
createdAt: Generated<Timestamp>;
|
|
902
|
+
updatedAt: Generated<Timestamp>;
|
|
903
|
+
active: Generated<boolean>;
|
|
904
|
+
platformCode: string;
|
|
905
|
+
productId: bigint;
|
|
906
|
+
slug: string;
|
|
907
|
+
name: string | null;
|
|
908
|
+
brand: string | null;
|
|
909
|
+
description: string | null;
|
|
910
|
+
categoryId: bigint | null;
|
|
911
|
+
};
|
|
912
|
+
export type ProductsWithOverrides = {
|
|
913
|
+
id: Generated<bigint>;
|
|
914
|
+
platformId: string;
|
|
915
|
+
productId: bigint;
|
|
916
|
+
productName: string | null;
|
|
917
|
+
productBrand: string | null;
|
|
918
|
+
categoryId: bigint | null;
|
|
919
|
+
categoryName: string | null;
|
|
920
|
+
productDescription: string | null;
|
|
921
|
+
productActive: boolean | null;
|
|
922
|
+
productRestriction: RestrictionType | null;
|
|
923
|
+
productCreatedAt: Timestamp | null;
|
|
924
|
+
productUpdatedAt: Timestamp | null;
|
|
925
|
+
productSlug: string | null;
|
|
926
|
+
isCustom: boolean | null;
|
|
927
|
+
storeOwnerId: string | null;
|
|
928
|
+
productVariantActive: boolean | null;
|
|
929
|
+
productVariantId: bigint;
|
|
930
|
+
displayName: string | null;
|
|
931
|
+
productVariantPublishedAt: Timestamp | null;
|
|
932
|
+
productVariantName: string | null;
|
|
933
|
+
productVariantDescription: string | null;
|
|
934
|
+
sku: string | null;
|
|
935
|
+
upc: string | null;
|
|
936
|
+
attributes: unknown | null;
|
|
937
|
+
packSize: number | null;
|
|
938
|
+
size: number | null;
|
|
939
|
+
uom: UnitOfMeasurement | null;
|
|
940
|
+
containerType: ContainerType | null;
|
|
941
|
+
productVariantListingPosition: number | null;
|
|
942
|
+
productVariantPosition: number | null;
|
|
943
|
+
};
|
|
944
|
+
export type ProductToTag = {
|
|
945
|
+
productId: bigint;
|
|
946
|
+
tagId: bigint;
|
|
947
|
+
};
|
|
948
|
+
export type ProductVariant = {
|
|
949
|
+
id: Generated<bigint>;
|
|
950
|
+
position: Generated<number>;
|
|
951
|
+
name: string;
|
|
952
|
+
nameSuffix: string | null;
|
|
953
|
+
upc: string;
|
|
954
|
+
sku: string;
|
|
955
|
+
description: string | null;
|
|
956
|
+
/**
|
|
957
|
+
* [ProductVariantAttributes]
|
|
958
|
+
*/
|
|
959
|
+
attributes: unknown | null;
|
|
960
|
+
packSize: Generated<number>;
|
|
961
|
+
size: number;
|
|
962
|
+
uom: UnitOfMeasurement;
|
|
963
|
+
containerType: ContainerType;
|
|
964
|
+
displayName: string | null;
|
|
965
|
+
productId: bigint;
|
|
966
|
+
isCustom: Generated<boolean>;
|
|
967
|
+
storeOwnerId: string | null;
|
|
968
|
+
};
|
|
969
|
+
export type ProductVariantConfiguration = {
|
|
970
|
+
id: Generated<bigint>;
|
|
971
|
+
createdAt: Generated<Timestamp>;
|
|
972
|
+
updatedAt: Generated<Timestamp>;
|
|
973
|
+
platformId: string;
|
|
974
|
+
storeId: string;
|
|
975
|
+
productVariantId: bigint;
|
|
976
|
+
hideFromListing: Generated<boolean>;
|
|
977
|
+
trackQuantity: Generated<boolean>;
|
|
978
|
+
allowedFulfillmentTypes: Generated<FulfillmentType[]>;
|
|
979
|
+
overrideFulfillmentType: Generated<boolean>;
|
|
980
|
+
continueSellingWhenOutOfStock: Generated<boolean>;
|
|
981
|
+
overrideMedia: Generated<boolean>;
|
|
982
|
+
};
|
|
983
|
+
export type ProductVariantListing = {
|
|
984
|
+
id: Generated<bigint>;
|
|
985
|
+
createdAt: Generated<Timestamp>;
|
|
986
|
+
updatedAt: Generated<Timestamp>;
|
|
987
|
+
active: Generated<boolean>;
|
|
988
|
+
platformId: string;
|
|
989
|
+
productId: bigint;
|
|
990
|
+
productVariantId: bigint;
|
|
991
|
+
name: string | null;
|
|
992
|
+
nameSuffix: string | null;
|
|
993
|
+
description: string | null;
|
|
994
|
+
position: Generated<number>;
|
|
995
|
+
attributes: unknown | null;
|
|
996
|
+
packSize: number | null;
|
|
997
|
+
size: number | null;
|
|
998
|
+
uom: UnitOfMeasurement | null;
|
|
999
|
+
containerType: ContainerType | null;
|
|
1000
|
+
};
|
|
1001
|
+
export type ProductVariantListingToMedia = {
|
|
1002
|
+
productVariantListingId: bigint;
|
|
1003
|
+
productVariantId: bigint;
|
|
1004
|
+
mediaId: bigint;
|
|
1005
|
+
position: Generated<number>;
|
|
1006
|
+
};
|
|
1007
|
+
export type ProductVariantPlatformPricing = {
|
|
1008
|
+
id: Generated<bigint>;
|
|
1009
|
+
createdAt: Generated<Timestamp>;
|
|
1010
|
+
updatedAt: Generated<Timestamp>;
|
|
1011
|
+
productVariantId: bigint;
|
|
1012
|
+
platformId: string;
|
|
1013
|
+
price: Prisma.Decimal;
|
|
1014
|
+
currencyCode: Generated<string>;
|
|
1015
|
+
};
|
|
1016
|
+
export type ProductVariantRanking = {
|
|
1017
|
+
id: Generated<bigint>;
|
|
1018
|
+
productId: bigint;
|
|
1019
|
+
productVariantId: bigint;
|
|
1020
|
+
sku: string;
|
|
1021
|
+
ranking: number;
|
|
1022
|
+
grossRevenue: number;
|
|
1023
|
+
numOrders: number;
|
|
1024
|
+
};
|
|
1025
|
+
export type ProductVariantStoreAndPlatformPricing = {
|
|
1026
|
+
id: Generated<bigint>;
|
|
1027
|
+
createdAt: Generated<Timestamp>;
|
|
1028
|
+
updatedAt: Generated<Timestamp>;
|
|
1029
|
+
productVariantId: bigint;
|
|
1030
|
+
storeId: string;
|
|
1031
|
+
platformId: string;
|
|
1032
|
+
price: Prisma.Decimal | null;
|
|
1033
|
+
compareAtPrice: Prisma.Decimal | null;
|
|
1034
|
+
currencyCode: Generated<string>;
|
|
1035
|
+
};
|
|
1036
|
+
export type ProductVariantStorePricing = {
|
|
1037
|
+
id: Generated<bigint>;
|
|
1038
|
+
createdAt: Generated<Timestamp>;
|
|
1039
|
+
updatedAt: Generated<Timestamp>;
|
|
1040
|
+
storeId: string;
|
|
1041
|
+
productVariantId: bigint;
|
|
1042
|
+
compareAtPrice: Prisma.Decimal | null;
|
|
1043
|
+
price: Prisma.Decimal;
|
|
1044
|
+
currencyCode: Generated<string>;
|
|
1045
|
+
};
|
|
1046
|
+
export type ProductVariantStoreRanking = {
|
|
1047
|
+
id: Generated<bigint>;
|
|
1048
|
+
createdAt: Generated<Timestamp>;
|
|
1049
|
+
updatedAt: Generated<Timestamp>;
|
|
1050
|
+
productId: bigint;
|
|
1051
|
+
productVariantId: bigint;
|
|
1052
|
+
storeId: string;
|
|
1053
|
+
platformId: string;
|
|
1054
|
+
ranking: Generated<number>;
|
|
1055
|
+
boostValue: Generated<number>;
|
|
1056
|
+
grossRevenue: Generated<number>;
|
|
1057
|
+
numOrders: Generated<number>;
|
|
1058
|
+
};
|
|
1059
|
+
export type ProductVariantToMedia = {
|
|
1060
|
+
productVariantId: bigint;
|
|
1061
|
+
mediaId: bigint;
|
|
1062
|
+
position: Generated<number>;
|
|
1063
|
+
};
|
|
1064
|
+
export type ProductVariantToTag = {
|
|
1065
|
+
productVariantId: bigint;
|
|
1066
|
+
tagId: bigint;
|
|
1067
|
+
};
|
|
1068
|
+
export type ProductVarietal = {
|
|
1069
|
+
id: Generated<bigint>;
|
|
1070
|
+
sku: string;
|
|
1071
|
+
vintage: number;
|
|
1072
|
+
packSize: Generated<number>;
|
|
1073
|
+
size: number;
|
|
1074
|
+
uom: UnitOfMeasurement;
|
|
1075
|
+
region: string | null;
|
|
1076
|
+
country: string | null;
|
|
1077
|
+
productVariantId: bigint;
|
|
1078
|
+
};
|
|
1079
|
+
export type PvStoreScheduledAvailability = {
|
|
1080
|
+
id: Generated<bigint>;
|
|
1081
|
+
createdAt: Generated<Timestamp>;
|
|
1082
|
+
updatedAt: Timestamp;
|
|
1083
|
+
storeId: string;
|
|
1084
|
+
platformId: string;
|
|
1085
|
+
productVariantId: bigint;
|
|
1086
|
+
activeDays: Generated<ActiveDays[]>;
|
|
1087
|
+
activeWeeks: Generated<ActiveWeeks[]>;
|
|
1088
|
+
startTime: Timestamp;
|
|
1089
|
+
endTime: Timestamp;
|
|
1090
|
+
isAvailable: Generated<boolean>;
|
|
1091
|
+
isActive: Generated<boolean>;
|
|
1092
|
+
};
|
|
1093
|
+
export type PvStoreScheduledAvailabilityLog = {
|
|
1094
|
+
id: Generated<bigint>;
|
|
1095
|
+
scheduledAvailabilityId: bigint;
|
|
1096
|
+
jobId: string;
|
|
1097
|
+
startTime: Timestamp;
|
|
1098
|
+
endTime: Timestamp | null;
|
|
1099
|
+
isAvailable: Generated<boolean>;
|
|
1100
|
+
status: Generated<RestockingStatus>;
|
|
1101
|
+
reason: Generated<string | null>;
|
|
1102
|
+
createdAt: Generated<Timestamp>;
|
|
1103
|
+
updatedAt: Generated<Timestamp>;
|
|
1104
|
+
};
|
|
1105
|
+
export type Refund = {
|
|
1106
|
+
id: Generated<bigint>;
|
|
1107
|
+
amount: Prisma.Decimal;
|
|
1108
|
+
reason: string;
|
|
1109
|
+
metadata: unknown | null;
|
|
1110
|
+
paymentId: bigint;
|
|
1111
|
+
flatAmount: Generated<Prisma.Decimal>;
|
|
1112
|
+
tipAmount: Generated<Prisma.Decimal>;
|
|
1113
|
+
shippingAmount: Generated<Prisma.Decimal>;
|
|
1114
|
+
transactionId: bigint;
|
|
1115
|
+
createdAt: Generated<Timestamp>;
|
|
1116
|
+
updatedAt: Generated<Timestamp>;
|
|
1117
|
+
};
|
|
1118
|
+
export type RefundLine = {
|
|
1119
|
+
id: Generated<bigint>;
|
|
1120
|
+
createdAt: Generated<Timestamp>;
|
|
1121
|
+
updatedAt: Generated<Timestamp>;
|
|
1122
|
+
quantity: number;
|
|
1123
|
+
checkoutLineId: bigint;
|
|
1124
|
+
refundId: bigint;
|
|
1125
|
+
};
|
|
1126
|
+
export type RelatedItems = {
|
|
1127
|
+
id: Generated<bigint>;
|
|
1128
|
+
fromProductVariantId: bigint;
|
|
1129
|
+
toProductVariantId: bigint;
|
|
1130
|
+
fromSku: string;
|
|
1131
|
+
toSku: string;
|
|
1132
|
+
frequency: number;
|
|
1133
|
+
quantityTo: number;
|
|
1134
|
+
};
|
|
1135
|
+
export type Role = {
|
|
1136
|
+
id: Generated<bigint>;
|
|
1137
|
+
code: string;
|
|
1138
|
+
description: Generated<string | null>;
|
|
1139
|
+
permissions: Generated<string[]>;
|
|
1140
|
+
createdAt: Generated<Timestamp>;
|
|
1141
|
+
updatedAt: Generated<Timestamp>;
|
|
1142
|
+
deletedAt: Timestamp | null;
|
|
1143
|
+
};
|
|
1144
|
+
export type ScheduledTask = {
|
|
1145
|
+
id: Generated<bigint>;
|
|
1146
|
+
createdAt: Generated<Timestamp>;
|
|
1147
|
+
updatedAt: Timestamp;
|
|
1148
|
+
taskId: string;
|
|
1149
|
+
enabled: Generated<boolean>;
|
|
1150
|
+
lockedAt: Timestamp | null;
|
|
1151
|
+
lastExecutedAt: Timestamp | null;
|
|
1152
|
+
manuallyTriggeredAt: Timestamp | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* ![Record<string, any> | string | number | null]
|
|
1155
|
+
*/
|
|
1156
|
+
lastResult: unknown | null;
|
|
1157
|
+
};
|
|
1158
|
+
export type ShippingConfiguration = {
|
|
1159
|
+
id: Generated<bigint>;
|
|
1160
|
+
createdAt: Generated<Timestamp>;
|
|
1161
|
+
updatedAt: Timestamp;
|
|
1162
|
+
storeCode: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* ![('FEDEX' | 'UPS')[]]
|
|
1165
|
+
*/
|
|
1166
|
+
activeCarriers: unknown;
|
|
1167
|
+
/**
|
|
1168
|
+
* [ShippoCarrierAccount]
|
|
1169
|
+
*/
|
|
1170
|
+
shippoCarrierAccounts: unknown[];
|
|
1171
|
+
/**
|
|
1172
|
+
* [CarrierConfigurationInternal]
|
|
1173
|
+
*/
|
|
1174
|
+
carrierConfigurations: unknown[];
|
|
1175
|
+
/**
|
|
1176
|
+
* [ShippingConfigurationShippingAddon]
|
|
1177
|
+
*/
|
|
1178
|
+
shippingAddons: unknown[];
|
|
1179
|
+
/**
|
|
1180
|
+
* [ShippingConfigurationFullfillmentTypeRestriction]
|
|
1181
|
+
*/
|
|
1182
|
+
fulfillmentTypeRestrictions: unknown[];
|
|
1183
|
+
/**
|
|
1184
|
+
* [USStateName]
|
|
1185
|
+
*/
|
|
1186
|
+
stateBlockList: string[];
|
|
1187
|
+
isShippingEnabled: Generated<boolean>;
|
|
1188
|
+
isPurchasingLabelsManually: boolean;
|
|
1189
|
+
isAutoPurchasingLabels: boolean;
|
|
1190
|
+
shippoAccountId: string | null;
|
|
1191
|
+
shippoServiceUpcharge: number | null;
|
|
1192
|
+
passServiceUpchargeToCustomer: Generated<boolean>;
|
|
1193
|
+
isObfuscatingRates: Generated<boolean>;
|
|
1194
|
+
};
|
|
1195
|
+
export type ShippingLabelFee = {
|
|
1196
|
+
id: Generated<bigint>;
|
|
1197
|
+
createdAt: Generated<Timestamp>;
|
|
1198
|
+
updatedAt: Generated<Timestamp>;
|
|
1199
|
+
storeCode: string;
|
|
1200
|
+
state: Generated<TransactionState>;
|
|
1201
|
+
labelCostAmount: Prisma.Decimal;
|
|
1202
|
+
serviceChargeAmount: Prisma.Decimal;
|
|
1203
|
+
totalAmount: Prisma.Decimal;
|
|
1204
|
+
orderId: string | null;
|
|
1205
|
+
rateId: string;
|
|
1206
|
+
labelPurchasedAt: Timestamp;
|
|
1207
|
+
billedAt: Timestamp | null;
|
|
1208
|
+
shippoAccountId: string;
|
|
1209
|
+
wasLabelPurchasedManually: Generated<boolean>;
|
|
1210
|
+
didMerchantMarkOrderAsContainingAlcohol: boolean | null;
|
|
1211
|
+
didMerchantMarkOrderAsRequiringSignature: boolean | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* ![Array<{ transactionId: string; trackingNumber: string }>]
|
|
1214
|
+
*/
|
|
1215
|
+
labels: Generated<unknown>;
|
|
1216
|
+
};
|
|
1217
|
+
export type ShippingLabelRefund = {
|
|
1218
|
+
id: Generated<bigint>;
|
|
1219
|
+
createdAt: Generated<Timestamp>;
|
|
1220
|
+
updatedAt: Generated<Timestamp>;
|
|
1221
|
+
storeCode: string;
|
|
1222
|
+
state: Generated<TransactionState>;
|
|
1223
|
+
labelRefundAmount: Prisma.Decimal;
|
|
1224
|
+
serviceChargeRefundAmount: Prisma.Decimal;
|
|
1225
|
+
totalRefundAmount: Prisma.Decimal;
|
|
1226
|
+
orderId: string | null;
|
|
1227
|
+
rateId: string;
|
|
1228
|
+
shippoTransactionId: string;
|
|
1229
|
+
processedAt: Timestamp | null;
|
|
1230
|
+
shippoAccountId: string;
|
|
1231
|
+
};
|
|
1232
|
+
export type SmsConversation = {
|
|
1233
|
+
id: Generated<bigint>;
|
|
1234
|
+
customerId: bigint;
|
|
1235
|
+
customerPhone: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* !['CUSTOMER_PAYMENT_VALIDATION']
|
|
1238
|
+
*/
|
|
1239
|
+
purpose: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* !['Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed']
|
|
1242
|
+
*/
|
|
1243
|
+
state: string;
|
|
1244
|
+
createdAt: Generated<Timestamp>;
|
|
1245
|
+
updatedAt: Timestamp;
|
|
1246
|
+
closedAt: Timestamp | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* [KeyValueMetadata]
|
|
1249
|
+
*/
|
|
1250
|
+
metadata: Generated<unknown[]>;
|
|
1251
|
+
errorMessage: string | null;
|
|
1252
|
+
};
|
|
1253
|
+
export type SmsConversationMessage = {
|
|
1254
|
+
id: Generated<bigint>;
|
|
1255
|
+
conversationId: bigint;
|
|
1256
|
+
createdAt: Generated<Timestamp>;
|
|
1257
|
+
updatedAt: Timestamp;
|
|
1258
|
+
didSendSuccessfully: Generated<boolean>;
|
|
1259
|
+
errorMessage: string | null;
|
|
1260
|
+
body: string;
|
|
1261
|
+
direction: string;
|
|
1262
|
+
};
|
|
1263
|
+
export type SmsMerchantNotificationMessage = {
|
|
1264
|
+
id: Generated<bigint>;
|
|
1265
|
+
platformId: string;
|
|
1266
|
+
storeId: string;
|
|
1267
|
+
createdAt: Generated<Timestamp>;
|
|
1268
|
+
purpose: merchantSmsPurpose;
|
|
1269
|
+
orderNumber: string;
|
|
1270
|
+
body: string;
|
|
1271
|
+
sid: string;
|
|
1272
|
+
};
|
|
1273
|
+
export type StockLevel = {
|
|
1274
|
+
id: Generated<bigint>;
|
|
1275
|
+
createdAt: Generated<Timestamp>;
|
|
1276
|
+
updatedAt: Generated<Timestamp>;
|
|
1277
|
+
stockOnHand: number;
|
|
1278
|
+
stockOnHold: number;
|
|
1279
|
+
productVariantId: bigint;
|
|
1280
|
+
stockLocationId: bigint;
|
|
1281
|
+
};
|
|
1282
|
+
export type StockLocation = {
|
|
1283
|
+
id: Generated<bigint>;
|
|
1284
|
+
createdAt: Generated<Timestamp>;
|
|
1285
|
+
updatedAt: Generated<Timestamp>;
|
|
1286
|
+
name: string;
|
|
1287
|
+
storeId: string;
|
|
1288
|
+
description: Generated<string>;
|
|
1289
|
+
isDefault: Generated<boolean>;
|
|
1290
|
+
};
|
|
1291
|
+
export type StockLocationToPlatform = {
|
|
1292
|
+
stockLocationId: bigint;
|
|
1293
|
+
platformId: string;
|
|
1294
|
+
};
|
|
1295
|
+
export type StockMovement = {
|
|
1296
|
+
id: Generated<bigint>;
|
|
1297
|
+
createdAt: Generated<Timestamp>;
|
|
1298
|
+
updatedAt: Generated<Timestamp>;
|
|
1299
|
+
stockLocationId: bigint;
|
|
1300
|
+
productVariantId: bigint;
|
|
1301
|
+
type: string;
|
|
1302
|
+
checkoutLineId: bigint | null;
|
|
1303
|
+
quantity: bigint;
|
|
1304
|
+
};
|
|
1305
|
+
export type Store = {
|
|
1306
|
+
id: Generated<bigint>;
|
|
1307
|
+
createdAt: Generated<Timestamp>;
|
|
1308
|
+
updatedAt: Generated<Timestamp>;
|
|
1309
|
+
storeId: string;
|
|
1310
|
+
name: string;
|
|
1311
|
+
phone: string;
|
|
1312
|
+
address: unknown;
|
|
1313
|
+
};
|
|
1314
|
+
export type StoreRestockingLog = {
|
|
1315
|
+
id: Generated<bigint>;
|
|
1316
|
+
restockingId: bigint;
|
|
1317
|
+
jobId: string;
|
|
1318
|
+
createdAt: Generated<Timestamp>;
|
|
1319
|
+
updatedAt: Generated<Timestamp>;
|
|
1320
|
+
restockingTime: Timestamp;
|
|
1321
|
+
status: RestockingStatus;
|
|
1322
|
+
};
|
|
1323
|
+
export type StoreRestockingSchedule = {
|
|
1324
|
+
id: Generated<bigint>;
|
|
1325
|
+
createdAt: Generated<Timestamp>;
|
|
1326
|
+
updatedAt: Generated<Timestamp>;
|
|
1327
|
+
storeId: string;
|
|
1328
|
+
platformId: string;
|
|
1329
|
+
activeDays: Generated<ActiveDays[]>;
|
|
1330
|
+
activeWeeks: Generated<ActiveWeeks[]>;
|
|
1331
|
+
restockingTime: Timestamp;
|
|
1332
|
+
isActive: Generated<boolean>;
|
|
1333
|
+
ingredientId: bigint;
|
|
1334
|
+
timezone: Generated<Timezone>;
|
|
1335
|
+
restockingAmount: Generated<number>;
|
|
1336
|
+
};
|
|
1337
|
+
export type StoreToAssociatedStoreType = {
|
|
1338
|
+
storeId: bigint;
|
|
1339
|
+
platformId: bigint;
|
|
1340
|
+
associatedStoreType: AssociatedStoreType;
|
|
1341
|
+
associatedStoreCode: string;
|
|
1342
|
+
};
|
|
1343
|
+
export type StoreToPlatform = {
|
|
1344
|
+
storeId: bigint;
|
|
1345
|
+
platformId: bigint;
|
|
1346
|
+
trackInventory: Generated<boolean>;
|
|
1347
|
+
outOfStockThreshold: Generated<number>;
|
|
1348
|
+
pricesIncludeTax: Generated<boolean>;
|
|
1349
|
+
};
|
|
1350
|
+
export type Tag = {
|
|
1351
|
+
id: Generated<bigint>;
|
|
1352
|
+
createdAt: Generated<Timestamp>;
|
|
1353
|
+
updatedAt: Generated<Timestamp>;
|
|
1354
|
+
platformId: string | null;
|
|
1355
|
+
value: string;
|
|
1356
|
+
};
|
|
1357
|
+
export type TaxCategory = {
|
|
1358
|
+
id: Generated<bigint>;
|
|
1359
|
+
name: string;
|
|
1360
|
+
taxcode: string | null;
|
|
1361
|
+
description: string;
|
|
1362
|
+
};
|
|
1363
|
+
export type Transaction = {
|
|
1364
|
+
id: Generated<bigint>;
|
|
1365
|
+
type: Generated<TransactionType>;
|
|
1366
|
+
amount: Prisma.Decimal;
|
|
1367
|
+
state: Generated<TransactionState>;
|
|
1368
|
+
errorMessage: string | null;
|
|
1369
|
+
nmiTransactionId: string;
|
|
1370
|
+
nmiMerchantId: Generated<string>;
|
|
1371
|
+
isTokenized: Generated<boolean>;
|
|
1372
|
+
tokenProvider: string | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* [PaymentMetadata]
|
|
1375
|
+
*/
|
|
1376
|
+
metadata: Generated<unknown>;
|
|
1377
|
+
createdAt: Generated<Timestamp>;
|
|
1378
|
+
updatedAt: Generated<Timestamp>;
|
|
1379
|
+
};
|
|
1380
|
+
export type User = {
|
|
1381
|
+
id: Generated<bigint>;
|
|
1382
|
+
identifier: string;
|
|
1383
|
+
isVerified: Generated<boolean>;
|
|
1384
|
+
isAnonymous: Generated<boolean>;
|
|
1385
|
+
firebaseUid: string;
|
|
1386
|
+
firebaseProjectId: string;
|
|
1387
|
+
associatedGuestUserId: bigint | null;
|
|
1388
|
+
createdAt: Generated<Timestamp>;
|
|
1389
|
+
updatedAt: Generated<Timestamp>;
|
|
1390
|
+
deletedAt: Timestamp | null;
|
|
1391
|
+
};
|
|
1392
|
+
export type UserToRole = {
|
|
1393
|
+
userId: bigint;
|
|
1394
|
+
roleId: bigint;
|
|
1395
|
+
};
|
|
1396
|
+
export type DB = {
|
|
1397
|
+
addresses: Address;
|
|
1398
|
+
administratorToStore: AdministratorToStore;
|
|
1399
|
+
administrators: Administrator;
|
|
1400
|
+
administratorsToPlatforms: AdministratorToPlatform;
|
|
1401
|
+
apiTokens: ApiToken;
|
|
1402
|
+
awsBuckets: AwsBucket;
|
|
1403
|
+
cards: Card;
|
|
1404
|
+
cartCosts: CartCost;
|
|
1405
|
+
cartLineModifierOptions: CartLineModifierOption;
|
|
1406
|
+
cartLines: CartLine;
|
|
1407
|
+
cartLinesModifiers: CartLineModifier;
|
|
1408
|
+
carts: Cart;
|
|
1409
|
+
categories: ProductCategory;
|
|
1410
|
+
categoryToTag: ProductCategoryToTag;
|
|
1411
|
+
checkoutGroup: CheckoutGroup;
|
|
1412
|
+
checkoutLineModifierOption: CheckoutLineModifierOption;
|
|
1413
|
+
checkoutLines: CheckoutLine;
|
|
1414
|
+
checkoutLinesModifiers: CheckoutLinesModifier;
|
|
1415
|
+
checkouts: Checkout;
|
|
1416
|
+
collectionToPlatform: CollectionToPlatform;
|
|
1417
|
+
collectionToProduct: CollectionToProduct;
|
|
1418
|
+
collectionToProductVariant: CollectionToProductVariant;
|
|
1419
|
+
collections: Collection;
|
|
1420
|
+
customerGroups: CustomerGroup;
|
|
1421
|
+
customerToAddress: CustomerToAddress;
|
|
1422
|
+
customerToCustomerGroup: CustomerToCustomerGroup;
|
|
1423
|
+
customers: Customer;
|
|
1424
|
+
discountCodeAppliedOnCart: DiscountCodeAppliedToCart;
|
|
1425
|
+
discountCodeRedeemedOnCart: DiscountCodeRedeemedOnCart;
|
|
1426
|
+
discountCodeRedemptions: DiscountCodeRedemption;
|
|
1427
|
+
discountCodes: DiscountCode;
|
|
1428
|
+
eventLog: EventLog;
|
|
1429
|
+
facetOptionToPlatform: FacetOptionToPlatform;
|
|
1430
|
+
facetOptions: FacetOption;
|
|
1431
|
+
facetToPlatform: FacetToPlatform;
|
|
1432
|
+
facets: Facet;
|
|
1433
|
+
featureFlags: FeatureFlag;
|
|
1434
|
+
firebaseConfiguration: FirebaseAdminConfiguration;
|
|
1435
|
+
flaggedPayments: FlaggedPayment;
|
|
1436
|
+
freeItemRuleToCustomer: FreeItemToCustomer;
|
|
1437
|
+
freeItemRules: FreeItemRule;
|
|
1438
|
+
fulfillmentFees: FulfillmentFees;
|
|
1439
|
+
ingredients: Ingredient;
|
|
1440
|
+
ingredientsToProductVariants: IngredientToProductVariant;
|
|
1441
|
+
ingredientsToStores: IngredientToStore;
|
|
1442
|
+
manualCollectionProducts: ManualCollectionProduct;
|
|
1443
|
+
media: Media;
|
|
1444
|
+
modifier: Modifier;
|
|
1445
|
+
modifierGroupToProduct: ModifierGroupToProduct;
|
|
1446
|
+
modifierGroups: ModifierGroup;
|
|
1447
|
+
modifierOption: ModifierOption;
|
|
1448
|
+
modifierToModifierGroup: ModifierToModifierGroup;
|
|
1449
|
+
nmiSecurityKeys: NmiSecurityKey;
|
|
1450
|
+
oneTimeTokens: OneTimeToken;
|
|
1451
|
+
payments: Payment;
|
|
1452
|
+
platformAwsConfiguration: PlatformAwsConfiguration;
|
|
1453
|
+
platformMailerMessages: PlatformMailerMessage;
|
|
1454
|
+
platforms: Platform;
|
|
1455
|
+
prepTimes: PrepTime;
|
|
1456
|
+
productListings: ProductListing;
|
|
1457
|
+
productToTag: ProductToTag;
|
|
1458
|
+
productVariantConfiguration: ProductVariantConfiguration;
|
|
1459
|
+
productVariantListingToMedia: ProductVariantListingToMedia;
|
|
1460
|
+
productVariantListings: ProductVariantListing;
|
|
1461
|
+
productVariantPlatformPricing: ProductVariantPlatformPricing;
|
|
1462
|
+
productVariantRanking: ProductVariantRanking;
|
|
1463
|
+
productVariantStorePlatformPricing: ProductVariantStoreAndPlatformPricing;
|
|
1464
|
+
productVariantStorePricing: ProductVariantStorePricing;
|
|
1465
|
+
productVariantStoreRanking: ProductVariantStoreRanking;
|
|
1466
|
+
productVariantToMedia: ProductVariantToMedia;
|
|
1467
|
+
productVariantToTag: ProductVariantToTag;
|
|
1468
|
+
productVariants: ProductVariant;
|
|
1469
|
+
productVarietals: ProductVarietal;
|
|
1470
|
+
products: Product;
|
|
1471
|
+
productsWithOverrides: ProductsWithOverrides;
|
|
1472
|
+
pvStoreScheduledAvailability: PvStoreScheduledAvailability;
|
|
1473
|
+
pvStoreScheduledAvailabilityLogs: PvStoreScheduledAvailabilityLog;
|
|
1474
|
+
refundLines: RefundLine;
|
|
1475
|
+
refunds: Refund;
|
|
1476
|
+
relatedItems: RelatedItems;
|
|
1477
|
+
roles: Role;
|
|
1478
|
+
scheduledTask: ScheduledTask;
|
|
1479
|
+
shippingConfigurations: ShippingConfiguration;
|
|
1480
|
+
shippingLabelFees: ShippingLabelFee;
|
|
1481
|
+
shippingLabelRefunds: ShippingLabelRefund;
|
|
1482
|
+
smsConversationMessages: SmsConversationMessage;
|
|
1483
|
+
smsConversations: SmsConversation;
|
|
1484
|
+
smsMerchantNotificationMessages: SmsMerchantNotificationMessage;
|
|
1485
|
+
stockLevels: StockLevel;
|
|
1486
|
+
stockLocationToPlatform: StockLocationToPlatform;
|
|
1487
|
+
stockLocations: StockLocation;
|
|
1488
|
+
stockMovements: StockMovement;
|
|
1489
|
+
storeRestockingLogs: StoreRestockingLog;
|
|
1490
|
+
storeRestockingSchedules: StoreRestockingSchedule;
|
|
1491
|
+
storeToAssociatedStoreType: StoreToAssociatedStoreType;
|
|
1492
|
+
storeToPlatform: StoreToPlatform;
|
|
1493
|
+
stores: Store;
|
|
1494
|
+
tags: Tag;
|
|
1495
|
+
taxCategories: TaxCategory;
|
|
1496
|
+
transactions: Transaction;
|
|
1497
|
+
userRolesRole: UserToRole;
|
|
1498
|
+
users: User;
|
|
1499
|
+
};
|