@shophost/rest-api 2.0.69 → 2.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/schema.prisma +1 -0
- package/src/core/auth/better-auth.lib.js +1 -1
- package/src/core/auth/password-reset.lib.d.ts +3 -0
- package/src/core/auth/password-reset.lib.js +1 -0
- package/src/core/db/__generated__/client/internal/class.js +19 -18
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -1
- package/src/core/db/__generated__/client/models/Reservation.d.ts +42 -1
- package/src/core/notifications/email.service.d.ts +13 -0
- package/src/core/notifications/email.service.js +1 -1
- package/src/features/access/access.route.d.ts +2 -2
- package/src/features/auth/emails/password-reset.email.d.ts +17 -0
- package/src/features/auth/emails/password-reset.email.js +1 -0
- package/src/features/cart/cart.route.d.ts +4 -4
- package/src/features/cart/cart.schema.d.ts +6 -6
- package/src/features/cart/cart.service.d.ts +1 -1
- package/src/features/customer/customer.route.d.ts +5 -4
- package/src/features/customer/customer.schema.d.ts +5 -4
- package/src/features/customer/customer.service.d.ts +2 -1
- package/src/features/manufacturer/manufacturer.route.d.ts +4 -4
- package/src/features/order/order.route.d.ts +28 -28
- package/src/features/order/order.schema.d.ts +6 -6
- package/src/features/order/order.service.d.ts +5 -5
- package/src/features/organization/organization-configuration.schema.d.ts +8 -8
- package/src/features/organization/organization.route.d.ts +22 -22
- package/src/features/organization/organization.schema.d.ts +8 -8
- package/src/features/organization/organization.service.d.ts +8 -8
- package/src/features/product/product-modifier.schema.d.ts +10 -10
- package/src/features/product/product.route.d.ts +58 -58
- package/src/features/product/product.schema.d.ts +20 -20
- package/src/features/product/product.service.d.ts +20 -20
- package/src/features/product-category/product-category.route.d.ts +4 -4
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -1
- package/src/features/reservation/reservation.handler.js +1 -1
- package/src/features/reservation/reservation.route.d.ts +14 -5
- package/src/features/reservation/reservation.route.js +1 -1
- package/src/features/reservation/reservation.schema.d.ts +7 -2
- package/src/features/reservation/reservation.schema.js +1 -1
- package/src/features/reservation/reservation.service.d.ts +9 -2
- package/src/features/reservation/reservation.service.js +1 -1
- package/src/features/shipping-method/shipping-method.route.d.ts +2 -2
- package/src/schemas/locales.schema.d.ts +2 -2
- package/src/schemas/pagination.schema.d.ts +2 -2
- package/src/schemas/queries.schema.d.ts +2 -2
|
@@ -3205,6 +3205,7 @@ export declare const ReservationScalarFieldEnum: {
|
|
|
3205
3205
|
readonly createdAt: "createdAt";
|
|
3206
3206
|
readonly acceptedAt: "acceptedAt";
|
|
3207
3207
|
readonly cancelledAt: "cancelledAt";
|
|
3208
|
+
readonly cancellationMessage: "cancellationMessage";
|
|
3208
3209
|
readonly updatedAt: "updatedAt";
|
|
3209
3210
|
};
|
|
3210
3211
|
export type ReservationScalarFieldEnum = (typeof ReservationScalarFieldEnum)[keyof typeof ReservationScalarFieldEnum];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"@prisma/client/runtime/client";export const PrismaClientKnownRequestError=e.PrismaClientKnownRequestError,PrismaClientUnknownRequestError=e.PrismaClientUnknownRequestError,PrismaClientRustPanicError=e.PrismaClientRustPanicError,PrismaClientInitializationError=e.PrismaClientInitializationError,PrismaClientValidationError=e.PrismaClientValidationError,sql=e.sqltag,empty=e.empty,join=e.join,raw=e.raw,Sql=e.Sql,Decimal=e.Decimal,getExtensionContext=e.Extensions.getExtensionContext,prismaVersion={client:"7.4.2",engine:"94a226be1cf2967af2541cca5529f0f7ba866919"},NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull},DbNull=e.DbNull,JsonNull=e.JsonNull,AnyNull=e.AnyNull,ModelName={User:"User",Session:"Session",Account:"Account",Verification:"Verification",Member:"Member",Invitation:"Invitation",Organization:"Organization",OpeningTimes:"OpeningTimes",ClosingTimes:"ClosingTimes",OrganizationConfiguration:"OrganizationConfiguration",Integration:"Integration",Address:"Address",LegalEntity:"LegalEntity",File:"File",Manufacturer:"Manufacturer",ManufacturerTranslation:"ManufacturerTranslation",ProductCategory:"ProductCategory",ProductCategoryTranslation:"ProductCategoryTranslation",Product:"Product",ProductSnapshot:"ProductSnapshot",ProductTranslation:"ProductTranslation",ModifierGroup:"ModifierGroup",ModifierGroupTranslation:"ModifierGroupTranslation",Modifier:"Modifier",Order:"Order",OrderItem:"OrderItem",OrderItemTranslation:"OrderItemTranslation",Payment:"Payment",PaymentSession:"PaymentSession",Campaign:"Campaign",ShippingMethod:"ShippingMethod",ShippingZone:"ShippingZone",Reservation:"Reservation"},TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"},SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"},AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"},InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"},OrganizationScalarFieldEnum={id:"id",name:"name",slug:"slug",phone:"phone",email:"email",legalEntityId:"legalEntityId",addressId:"addressId",configurationId:"configurationId",logo:"logo",logoId:"logoId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},OrganizationConfigurationScalarFieldEnum={id:"id",hostname:"hostname",countriesShipping:"countriesShipping",stripeAccountId:"stripeAccountId",enableHostCheckout:"enableHostCheckout",enableHostTracking:"enableHostTracking",isAcceptingOrders:"isAcceptingOrders",isAcceptingReservations:"isAcceptingReservations",defaultCurrency:"defaultCurrency",defaultLocale:"defaultLocale",defaultTimeZone:"defaultTimeZone",supportedLocales:"supportedLocales",openingTimesId:"openingTimesId",closingTimesId:"closingTimesId",facebookProfile:"facebookProfile",instagramProfile:"instagramProfile",xProfile:"xProfile",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},IntegrationScalarFieldEnum={organizationId:"organizationId",type:"type",config:"config",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},AddressScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",phone:"phone",addressLineOne:"addressLineOne",doorNumber:"doorNumber",addressLineTwo:"addressLineTwo",zipCode:"zipCode",placeId:"placeId",deliveryInstructions:"deliveryInstructions",city:"city",country:"country",latitude:"latitude",longitude:"longitude",isDefault:"isDefault",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},LegalEntityScalarFieldEnum={id:"id",name:"name",taxId:"taxId",addressId:"addressId",email:"email",phone:"phone",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},FileScalarFieldEnum={id:"id",mimeType:"mimeType",size:"size",filename:"filename",url:"url",status:"status",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductCategoryScalarFieldEnum={id:"id",slug:"slug",organizationId:"organizationId",priority:"priority",imageId:"imageId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",publishedAt:"publishedAt",publishedBy:"publishedBy"},ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductScalarFieldEnum={id:"id",content:"content",slug:"slug",sku:"sku",availableQuantity:"availableQuantity",basePrice:"basePrice",discountedBasePrice:"discountedBasePrice",currency:"currency",organizationId:"organizationId",manufacturerId:"manufacturerId",tags:"tags",metadata:"metadata",publishedAt:"publishedAt",publishedBy:"publishedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",latestSnapshotId:"latestSnapshotId"},ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"},ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"},ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"},ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"},OrderScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",paymentId:"paymentId",token:"token",expiresAt:"expiresAt",referenceId:"referenceId",fulfilmentMethod:"fulfilmentMethod",shippingMethodId:"shippingMethodId",shippingAddressId:"shippingAddressId",dateOfExecution:"dateOfExecution",currency:"currency",sourceIp:"sourceIp",acceptedAt:"acceptedAt",readyForDispatchAt:"readyForDispatchAt",dispatchedAt:"dispatchedAt",completedAt:"completedAt",cancelledAt:"cancelledAt",inventoryDeductedAt:"inventoryDeductedAt",inventoryConflictAt:"inventoryConflictAt",inventoryConflictItems:"inventoryConflictItems",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",updatedAt:"updatedAt"},OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"},OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"},PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},CampaignScalarFieldEnum={id:"id",title:"title",type:"type",validFrom:"validFrom",validTo:"validTo",organizationId:"organizationId",amount:"amount",percentage:"percentage",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",updatedAt:"updatedAt"},ShippingMethodScalarFieldEnum={id:"id",title:"title",providerName:"providerName",providerLogoId:"providerLogoId",requireDateOfDelivery:"requireDateOfDelivery",organizationId:"organizationId",archivedAt:"archivedAt",archivedBy:"archivedBy",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"},ReservationScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",userId:"userId",guests:"guests",phone:"phone",date:"date",referenceId:"referenceId",organizationId:"organizationId",createdAt:"createdAt",acceptedAt:"acceptedAt",cancelledAt:"cancelledAt",updatedAt:"updatedAt"},SortOrder={asc:"asc",desc:"desc"},JsonNullValueInput={JsonNull},NullableJsonNullValueInput={DbNull,JsonNull},QueryMode={default:"default",insensitive:"insensitive"},NullsOrder={first:"first",last:"last"},JsonNullValueFilter={DbNull,JsonNull,AnyNull},defineExtension=e.Extensions.defineExtension;
|
|
1
|
+
import*as e from"@prisma/client/runtime/client";export const PrismaClientKnownRequestError=e.PrismaClientKnownRequestError,PrismaClientUnknownRequestError=e.PrismaClientUnknownRequestError,PrismaClientRustPanicError=e.PrismaClientRustPanicError,PrismaClientInitializationError=e.PrismaClientInitializationError,PrismaClientValidationError=e.PrismaClientValidationError,sql=e.sqltag,empty=e.empty,join=e.join,raw=e.raw,Sql=e.Sql,Decimal=e.Decimal,getExtensionContext=e.Extensions.getExtensionContext,prismaVersion={client:"7.4.2",engine:"94a226be1cf2967af2541cca5529f0f7ba866919"},NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull},DbNull=e.DbNull,JsonNull=e.JsonNull,AnyNull=e.AnyNull,ModelName={User:"User",Session:"Session",Account:"Account",Verification:"Verification",Member:"Member",Invitation:"Invitation",Organization:"Organization",OpeningTimes:"OpeningTimes",ClosingTimes:"ClosingTimes",OrganizationConfiguration:"OrganizationConfiguration",Integration:"Integration",Address:"Address",LegalEntity:"LegalEntity",File:"File",Manufacturer:"Manufacturer",ManufacturerTranslation:"ManufacturerTranslation",ProductCategory:"ProductCategory",ProductCategoryTranslation:"ProductCategoryTranslation",Product:"Product",ProductSnapshot:"ProductSnapshot",ProductTranslation:"ProductTranslation",ModifierGroup:"ModifierGroup",ModifierGroupTranslation:"ModifierGroupTranslation",Modifier:"Modifier",Order:"Order",OrderItem:"OrderItem",OrderItemTranslation:"OrderItemTranslation",Payment:"Payment",PaymentSession:"PaymentSession",Campaign:"Campaign",ShippingMethod:"ShippingMethod",ShippingZone:"ShippingZone",Reservation:"Reservation"},TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"},SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"},AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"},InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"},OrganizationScalarFieldEnum={id:"id",name:"name",slug:"slug",phone:"phone",email:"email",legalEntityId:"legalEntityId",addressId:"addressId",configurationId:"configurationId",logo:"logo",logoId:"logoId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},OrganizationConfigurationScalarFieldEnum={id:"id",hostname:"hostname",countriesShipping:"countriesShipping",stripeAccountId:"stripeAccountId",enableHostCheckout:"enableHostCheckout",enableHostTracking:"enableHostTracking",isAcceptingOrders:"isAcceptingOrders",isAcceptingReservations:"isAcceptingReservations",defaultCurrency:"defaultCurrency",defaultLocale:"defaultLocale",defaultTimeZone:"defaultTimeZone",supportedLocales:"supportedLocales",openingTimesId:"openingTimesId",closingTimesId:"closingTimesId",facebookProfile:"facebookProfile",instagramProfile:"instagramProfile",xProfile:"xProfile",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},IntegrationScalarFieldEnum={organizationId:"organizationId",type:"type",config:"config",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},AddressScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",phone:"phone",addressLineOne:"addressLineOne",doorNumber:"doorNumber",addressLineTwo:"addressLineTwo",zipCode:"zipCode",placeId:"placeId",deliveryInstructions:"deliveryInstructions",city:"city",country:"country",latitude:"latitude",longitude:"longitude",isDefault:"isDefault",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},LegalEntityScalarFieldEnum={id:"id",name:"name",taxId:"taxId",addressId:"addressId",email:"email",phone:"phone",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},FileScalarFieldEnum={id:"id",mimeType:"mimeType",size:"size",filename:"filename",url:"url",status:"status",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductCategoryScalarFieldEnum={id:"id",slug:"slug",organizationId:"organizationId",priority:"priority",imageId:"imageId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",publishedAt:"publishedAt",publishedBy:"publishedBy"},ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductScalarFieldEnum={id:"id",content:"content",slug:"slug",sku:"sku",availableQuantity:"availableQuantity",basePrice:"basePrice",discountedBasePrice:"discountedBasePrice",currency:"currency",organizationId:"organizationId",manufacturerId:"manufacturerId",tags:"tags",metadata:"metadata",publishedAt:"publishedAt",publishedBy:"publishedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",latestSnapshotId:"latestSnapshotId"},ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"},ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"},ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"},ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"},OrderScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",paymentId:"paymentId",token:"token",expiresAt:"expiresAt",referenceId:"referenceId",fulfilmentMethod:"fulfilmentMethod",shippingMethodId:"shippingMethodId",shippingAddressId:"shippingAddressId",dateOfExecution:"dateOfExecution",currency:"currency",sourceIp:"sourceIp",acceptedAt:"acceptedAt",readyForDispatchAt:"readyForDispatchAt",dispatchedAt:"dispatchedAt",completedAt:"completedAt",cancelledAt:"cancelledAt",inventoryDeductedAt:"inventoryDeductedAt",inventoryConflictAt:"inventoryConflictAt",inventoryConflictItems:"inventoryConflictItems",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",updatedAt:"updatedAt"},OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"},OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"},PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},CampaignScalarFieldEnum={id:"id",title:"title",type:"type",validFrom:"validFrom",validTo:"validTo",organizationId:"organizationId",amount:"amount",percentage:"percentage",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",updatedAt:"updatedAt"},ShippingMethodScalarFieldEnum={id:"id",title:"title",providerName:"providerName",providerLogoId:"providerLogoId",requireDateOfDelivery:"requireDateOfDelivery",organizationId:"organizationId",archivedAt:"archivedAt",archivedBy:"archivedBy",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"},ReservationScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",userId:"userId",guests:"guests",phone:"phone",date:"date",referenceId:"referenceId",organizationId:"organizationId",createdAt:"createdAt",acceptedAt:"acceptedAt",cancelledAt:"cancelledAt",cancellationMessage:"cancellationMessage",updatedAt:"updatedAt"},SortOrder={asc:"asc",desc:"desc"},JsonNullValueInput={JsonNull},NullableJsonNullValueInput={DbNull,JsonNull},QueryMode={default:"default",insensitive:"insensitive"},NullsOrder={first:"first",last:"last"},JsonNullValueFilter={DbNull,JsonNull,AnyNull},defineExtension=e.Extensions.defineExtension;
|
|
@@ -517,6 +517,7 @@ export declare const ReservationScalarFieldEnum: {
|
|
|
517
517
|
readonly createdAt: "createdAt";
|
|
518
518
|
readonly acceptedAt: "acceptedAt";
|
|
519
519
|
readonly cancelledAt: "cancelledAt";
|
|
520
|
+
readonly cancellationMessage: "cancellationMessage";
|
|
520
521
|
readonly updatedAt: "updatedAt";
|
|
521
522
|
};
|
|
522
523
|
export type ReservationScalarFieldEnum = (typeof ReservationScalarFieldEnum)[keyof typeof ReservationScalarFieldEnum];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"@prisma/client/runtime/index-browser";export const Decimal=e.Decimal,NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull},DbNull=e.DbNull,JsonNull=e.JsonNull,AnyNull=e.AnyNull,ModelName={User:"User",Session:"Session",Account:"Account",Verification:"Verification",Member:"Member",Invitation:"Invitation",Organization:"Organization",OpeningTimes:"OpeningTimes",ClosingTimes:"ClosingTimes",OrganizationConfiguration:"OrganizationConfiguration",Integration:"Integration",Address:"Address",LegalEntity:"LegalEntity",File:"File",Manufacturer:"Manufacturer",ManufacturerTranslation:"ManufacturerTranslation",ProductCategory:"ProductCategory",ProductCategoryTranslation:"ProductCategoryTranslation",Product:"Product",ProductSnapshot:"ProductSnapshot",ProductTranslation:"ProductTranslation",ModifierGroup:"ModifierGroup",ModifierGroupTranslation:"ModifierGroupTranslation",Modifier:"Modifier",Order:"Order",OrderItem:"OrderItem",OrderItemTranslation:"OrderItemTranslation",Payment:"Payment",PaymentSession:"PaymentSession",Campaign:"Campaign",ShippingMethod:"ShippingMethod",ShippingZone:"ShippingZone",Reservation:"Reservation"},TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"},SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"},AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"},InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"},OrganizationScalarFieldEnum={id:"id",name:"name",slug:"slug",phone:"phone",email:"email",legalEntityId:"legalEntityId",addressId:"addressId",configurationId:"configurationId",logo:"logo",logoId:"logoId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},OrganizationConfigurationScalarFieldEnum={id:"id",hostname:"hostname",countriesShipping:"countriesShipping",stripeAccountId:"stripeAccountId",enableHostCheckout:"enableHostCheckout",enableHostTracking:"enableHostTracking",isAcceptingOrders:"isAcceptingOrders",isAcceptingReservations:"isAcceptingReservations",defaultCurrency:"defaultCurrency",defaultLocale:"defaultLocale",defaultTimeZone:"defaultTimeZone",supportedLocales:"supportedLocales",openingTimesId:"openingTimesId",closingTimesId:"closingTimesId",facebookProfile:"facebookProfile",instagramProfile:"instagramProfile",xProfile:"xProfile",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},IntegrationScalarFieldEnum={organizationId:"organizationId",type:"type",config:"config",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},AddressScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",phone:"phone",addressLineOne:"addressLineOne",doorNumber:"doorNumber",addressLineTwo:"addressLineTwo",zipCode:"zipCode",placeId:"placeId",deliveryInstructions:"deliveryInstructions",city:"city",country:"country",latitude:"latitude",longitude:"longitude",isDefault:"isDefault",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},LegalEntityScalarFieldEnum={id:"id",name:"name",taxId:"taxId",addressId:"addressId",email:"email",phone:"phone",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},FileScalarFieldEnum={id:"id",mimeType:"mimeType",size:"size",filename:"filename",url:"url",status:"status",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductCategoryScalarFieldEnum={id:"id",slug:"slug",organizationId:"organizationId",priority:"priority",imageId:"imageId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",publishedAt:"publishedAt",publishedBy:"publishedBy"},ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductScalarFieldEnum={id:"id",content:"content",slug:"slug",sku:"sku",availableQuantity:"availableQuantity",basePrice:"basePrice",discountedBasePrice:"discountedBasePrice",currency:"currency",organizationId:"organizationId",manufacturerId:"manufacturerId",tags:"tags",metadata:"metadata",publishedAt:"publishedAt",publishedBy:"publishedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",latestSnapshotId:"latestSnapshotId"},ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"},ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"},ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"},ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"},OrderScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",paymentId:"paymentId",token:"token",expiresAt:"expiresAt",referenceId:"referenceId",fulfilmentMethod:"fulfilmentMethod",shippingMethodId:"shippingMethodId",shippingAddressId:"shippingAddressId",dateOfExecution:"dateOfExecution",currency:"currency",sourceIp:"sourceIp",acceptedAt:"acceptedAt",readyForDispatchAt:"readyForDispatchAt",dispatchedAt:"dispatchedAt",completedAt:"completedAt",cancelledAt:"cancelledAt",inventoryDeductedAt:"inventoryDeductedAt",inventoryConflictAt:"inventoryConflictAt",inventoryConflictItems:"inventoryConflictItems",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",updatedAt:"updatedAt"},OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"},OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"},PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},CampaignScalarFieldEnum={id:"id",title:"title",type:"type",validFrom:"validFrom",validTo:"validTo",organizationId:"organizationId",amount:"amount",percentage:"percentage",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",updatedAt:"updatedAt"},ShippingMethodScalarFieldEnum={id:"id",title:"title",providerName:"providerName",providerLogoId:"providerLogoId",requireDateOfDelivery:"requireDateOfDelivery",organizationId:"organizationId",archivedAt:"archivedAt",archivedBy:"archivedBy",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"},ReservationScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",userId:"userId",guests:"guests",phone:"phone",date:"date",referenceId:"referenceId",organizationId:"organizationId",createdAt:"createdAt",acceptedAt:"acceptedAt",cancelledAt:"cancelledAt",updatedAt:"updatedAt"},SortOrder={asc:"asc",desc:"desc"},JsonNullValueInput={JsonNull},NullableJsonNullValueInput={DbNull,JsonNull},QueryMode={default:"default",insensitive:"insensitive"},NullsOrder={first:"first",last:"last"},JsonNullValueFilter={DbNull,JsonNull,AnyNull};
|
|
1
|
+
import*as e from"@prisma/client/runtime/index-browser";export const Decimal=e.Decimal,NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull},DbNull=e.DbNull,JsonNull=e.JsonNull,AnyNull=e.AnyNull,ModelName={User:"User",Session:"Session",Account:"Account",Verification:"Verification",Member:"Member",Invitation:"Invitation",Organization:"Organization",OpeningTimes:"OpeningTimes",ClosingTimes:"ClosingTimes",OrganizationConfiguration:"OrganizationConfiguration",Integration:"Integration",Address:"Address",LegalEntity:"LegalEntity",File:"File",Manufacturer:"Manufacturer",ManufacturerTranslation:"ManufacturerTranslation",ProductCategory:"ProductCategory",ProductCategoryTranslation:"ProductCategoryTranslation",Product:"Product",ProductSnapshot:"ProductSnapshot",ProductTranslation:"ProductTranslation",ModifierGroup:"ModifierGroup",ModifierGroupTranslation:"ModifierGroupTranslation",Modifier:"Modifier",Order:"Order",OrderItem:"OrderItem",OrderItemTranslation:"OrderItemTranslation",Payment:"Payment",PaymentSession:"PaymentSession",Campaign:"Campaign",ShippingMethod:"ShippingMethod",ShippingZone:"ShippingZone",Reservation:"Reservation"},TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"},SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"},AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"},InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"},OrganizationScalarFieldEnum={id:"id",name:"name",slug:"slug",phone:"phone",email:"email",legalEntityId:"legalEntityId",addressId:"addressId",configurationId:"configurationId",logo:"logo",logoId:"logoId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},OrganizationConfigurationScalarFieldEnum={id:"id",hostname:"hostname",countriesShipping:"countriesShipping",stripeAccountId:"stripeAccountId",enableHostCheckout:"enableHostCheckout",enableHostTracking:"enableHostTracking",isAcceptingOrders:"isAcceptingOrders",isAcceptingReservations:"isAcceptingReservations",defaultCurrency:"defaultCurrency",defaultLocale:"defaultLocale",defaultTimeZone:"defaultTimeZone",supportedLocales:"supportedLocales",openingTimesId:"openingTimesId",closingTimesId:"closingTimesId",facebookProfile:"facebookProfile",instagramProfile:"instagramProfile",xProfile:"xProfile",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},IntegrationScalarFieldEnum={organizationId:"organizationId",type:"type",config:"config",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},AddressScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",phone:"phone",addressLineOne:"addressLineOne",doorNumber:"doorNumber",addressLineTwo:"addressLineTwo",zipCode:"zipCode",placeId:"placeId",deliveryInstructions:"deliveryInstructions",city:"city",country:"country",latitude:"latitude",longitude:"longitude",isDefault:"isDefault",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},LegalEntityScalarFieldEnum={id:"id",name:"name",taxId:"taxId",addressId:"addressId",email:"email",phone:"phone",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},FileScalarFieldEnum={id:"id",mimeType:"mimeType",size:"size",filename:"filename",url:"url",status:"status",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductCategoryScalarFieldEnum={id:"id",slug:"slug",organizationId:"organizationId",priority:"priority",imageId:"imageId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",publishedAt:"publishedAt",publishedBy:"publishedBy"},ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductScalarFieldEnum={id:"id",content:"content",slug:"slug",sku:"sku",availableQuantity:"availableQuantity",basePrice:"basePrice",discountedBasePrice:"discountedBasePrice",currency:"currency",organizationId:"organizationId",manufacturerId:"manufacturerId",tags:"tags",metadata:"metadata",publishedAt:"publishedAt",publishedBy:"publishedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",latestSnapshotId:"latestSnapshotId"},ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"},ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"},ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"},ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"},OrderScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",paymentId:"paymentId",token:"token",expiresAt:"expiresAt",referenceId:"referenceId",fulfilmentMethod:"fulfilmentMethod",shippingMethodId:"shippingMethodId",shippingAddressId:"shippingAddressId",dateOfExecution:"dateOfExecution",currency:"currency",sourceIp:"sourceIp",acceptedAt:"acceptedAt",readyForDispatchAt:"readyForDispatchAt",dispatchedAt:"dispatchedAt",completedAt:"completedAt",cancelledAt:"cancelledAt",inventoryDeductedAt:"inventoryDeductedAt",inventoryConflictAt:"inventoryConflictAt",inventoryConflictItems:"inventoryConflictItems",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",updatedAt:"updatedAt"},OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"},OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"},PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},CampaignScalarFieldEnum={id:"id",title:"title",type:"type",validFrom:"validFrom",validTo:"validTo",organizationId:"organizationId",amount:"amount",percentage:"percentage",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",updatedAt:"updatedAt"},ShippingMethodScalarFieldEnum={id:"id",title:"title",providerName:"providerName",providerLogoId:"providerLogoId",requireDateOfDelivery:"requireDateOfDelivery",organizationId:"organizationId",archivedAt:"archivedAt",archivedBy:"archivedBy",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"},ReservationScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",userId:"userId",guests:"guests",phone:"phone",date:"date",referenceId:"referenceId",organizationId:"organizationId",createdAt:"createdAt",acceptedAt:"acceptedAt",cancelledAt:"cancelledAt",cancellationMessage:"cancellationMessage",updatedAt:"updatedAt"},SortOrder={asc:"asc",desc:"desc"},JsonNullValueInput={JsonNull},NullableJsonNullValueInput={DbNull,JsonNull},QueryMode={default:"default",insensitive:"insensitive"},NullsOrder={first:"first",last:"last"},JsonNullValueFilter={DbNull,JsonNull,AnyNull};
|
|
@@ -31,6 +31,7 @@ export type ReservationMinAggregateOutputType = {
|
|
|
31
31
|
createdAt: Date | null;
|
|
32
32
|
acceptedAt: Date | null;
|
|
33
33
|
cancelledAt: Date | null;
|
|
34
|
+
cancellationMessage: string | null;
|
|
34
35
|
updatedAt: Date | null;
|
|
35
36
|
};
|
|
36
37
|
export type ReservationMaxAggregateOutputType = {
|
|
@@ -46,6 +47,7 @@ export type ReservationMaxAggregateOutputType = {
|
|
|
46
47
|
createdAt: Date | null;
|
|
47
48
|
acceptedAt: Date | null;
|
|
48
49
|
cancelledAt: Date | null;
|
|
50
|
+
cancellationMessage: string | null;
|
|
49
51
|
updatedAt: Date | null;
|
|
50
52
|
};
|
|
51
53
|
export type ReservationCountAggregateOutputType = {
|
|
@@ -61,6 +63,7 @@ export type ReservationCountAggregateOutputType = {
|
|
|
61
63
|
createdAt: number;
|
|
62
64
|
acceptedAt: number;
|
|
63
65
|
cancelledAt: number;
|
|
66
|
+
cancellationMessage: number;
|
|
64
67
|
updatedAt: number;
|
|
65
68
|
_all: number;
|
|
66
69
|
};
|
|
@@ -83,6 +86,7 @@ export type ReservationMinAggregateInputType = {
|
|
|
83
86
|
createdAt?: true;
|
|
84
87
|
acceptedAt?: true;
|
|
85
88
|
cancelledAt?: true;
|
|
89
|
+
cancellationMessage?: true;
|
|
86
90
|
updatedAt?: true;
|
|
87
91
|
};
|
|
88
92
|
export type ReservationMaxAggregateInputType = {
|
|
@@ -98,6 +102,7 @@ export type ReservationMaxAggregateInputType = {
|
|
|
98
102
|
createdAt?: true;
|
|
99
103
|
acceptedAt?: true;
|
|
100
104
|
cancelledAt?: true;
|
|
105
|
+
cancellationMessage?: true;
|
|
101
106
|
updatedAt?: true;
|
|
102
107
|
};
|
|
103
108
|
export type ReservationCountAggregateInputType = {
|
|
@@ -113,6 +118,7 @@ export type ReservationCountAggregateInputType = {
|
|
|
113
118
|
createdAt?: true;
|
|
114
119
|
acceptedAt?: true;
|
|
115
120
|
cancelledAt?: true;
|
|
121
|
+
cancellationMessage?: true;
|
|
116
122
|
updatedAt?: true;
|
|
117
123
|
_all?: true;
|
|
118
124
|
};
|
|
@@ -205,6 +211,7 @@ export type ReservationGroupByOutputType = {
|
|
|
205
211
|
createdAt: Date;
|
|
206
212
|
acceptedAt: Date | null;
|
|
207
213
|
cancelledAt: Date | null;
|
|
214
|
+
cancellationMessage: string | null;
|
|
208
215
|
updatedAt: Date;
|
|
209
216
|
_count: ReservationCountAggregateOutputType | null;
|
|
210
217
|
_avg: ReservationAvgAggregateOutputType | null;
|
|
@@ -231,6 +238,7 @@ export type ReservationWhereInput = {
|
|
|
231
238
|
createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
232
239
|
acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
233
240
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
241
|
+
cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
|
|
234
242
|
updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
235
243
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
236
244
|
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
@@ -248,6 +256,7 @@ export type ReservationOrderByWithRelationInput = {
|
|
|
248
256
|
createdAt?: Prisma.SortOrder;
|
|
249
257
|
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
250
258
|
cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
259
|
+
cancellationMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
251
260
|
updatedAt?: Prisma.SortOrder;
|
|
252
261
|
user?: Prisma.UserOrderByWithRelationInput;
|
|
253
262
|
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
@@ -268,6 +277,7 @@ export type ReservationWhereUniqueInput = Prisma.AtLeast<{
|
|
|
268
277
|
createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
269
278
|
acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
270
279
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
280
|
+
cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
|
|
271
281
|
updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
272
282
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
273
283
|
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
@@ -285,6 +295,7 @@ export type ReservationOrderByWithAggregationInput = {
|
|
|
285
295
|
createdAt?: Prisma.SortOrder;
|
|
286
296
|
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
287
297
|
cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
298
|
+
cancellationMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
288
299
|
updatedAt?: Prisma.SortOrder;
|
|
289
300
|
_count?: Prisma.ReservationCountOrderByAggregateInput;
|
|
290
301
|
_avg?: Prisma.ReservationAvgOrderByAggregateInput;
|
|
@@ -308,6 +319,7 @@ export type ReservationScalarWhereWithAggregatesInput = {
|
|
|
308
319
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Reservation"> | Date | string;
|
|
309
320
|
acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Reservation"> | Date | string | null;
|
|
310
321
|
cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Reservation"> | Date | string | null;
|
|
322
|
+
cancellationMessage?: Prisma.StringNullableWithAggregatesFilter<"Reservation"> | string | null;
|
|
311
323
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Reservation"> | Date | string;
|
|
312
324
|
};
|
|
313
325
|
export type ReservationCreateInput = {
|
|
@@ -321,6 +333,7 @@ export type ReservationCreateInput = {
|
|
|
321
333
|
createdAt?: Date | string;
|
|
322
334
|
acceptedAt?: Date | string | null;
|
|
323
335
|
cancelledAt?: Date | string | null;
|
|
336
|
+
cancellationMessage?: string | null;
|
|
324
337
|
updatedAt?: Date | string;
|
|
325
338
|
user?: Prisma.UserCreateNestedOneWithoutReservationsInput;
|
|
326
339
|
organization: Prisma.OrganizationCreateNestedOneWithoutReservationsInput;
|
|
@@ -338,6 +351,7 @@ export type ReservationUncheckedCreateInput = {
|
|
|
338
351
|
createdAt?: Date | string;
|
|
339
352
|
acceptedAt?: Date | string | null;
|
|
340
353
|
cancelledAt?: Date | string | null;
|
|
354
|
+
cancellationMessage?: string | null;
|
|
341
355
|
updatedAt?: Date | string;
|
|
342
356
|
};
|
|
343
357
|
export type ReservationUpdateInput = {
|
|
@@ -351,6 +365,7 @@ export type ReservationUpdateInput = {
|
|
|
351
365
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
352
366
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
353
367
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
368
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
354
369
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
355
370
|
user?: Prisma.UserUpdateOneWithoutReservationsNestedInput;
|
|
356
371
|
organization?: Prisma.OrganizationUpdateOneRequiredWithoutReservationsNestedInput;
|
|
@@ -368,6 +383,7 @@ export type ReservationUncheckedUpdateInput = {
|
|
|
368
383
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
369
384
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
370
385
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
386
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
371
387
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
372
388
|
};
|
|
373
389
|
export type ReservationCreateManyInput = {
|
|
@@ -383,6 +399,7 @@ export type ReservationCreateManyInput = {
|
|
|
383
399
|
createdAt?: Date | string;
|
|
384
400
|
acceptedAt?: Date | string | null;
|
|
385
401
|
cancelledAt?: Date | string | null;
|
|
402
|
+
cancellationMessage?: string | null;
|
|
386
403
|
updatedAt?: Date | string;
|
|
387
404
|
};
|
|
388
405
|
export type ReservationUpdateManyMutationInput = {
|
|
@@ -396,6 +413,7 @@ export type ReservationUpdateManyMutationInput = {
|
|
|
396
413
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
397
414
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
398
415
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
416
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
399
417
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
400
418
|
};
|
|
401
419
|
export type ReservationUncheckedUpdateManyInput = {
|
|
@@ -411,6 +429,7 @@ export type ReservationUncheckedUpdateManyInput = {
|
|
|
411
429
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
412
430
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
413
431
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
432
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
414
433
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
415
434
|
};
|
|
416
435
|
export type ReservationListRelationFilter = {
|
|
@@ -434,6 +453,7 @@ export type ReservationCountOrderByAggregateInput = {
|
|
|
434
453
|
createdAt?: Prisma.SortOrder;
|
|
435
454
|
acceptedAt?: Prisma.SortOrder;
|
|
436
455
|
cancelledAt?: Prisma.SortOrder;
|
|
456
|
+
cancellationMessage?: Prisma.SortOrder;
|
|
437
457
|
updatedAt?: Prisma.SortOrder;
|
|
438
458
|
};
|
|
439
459
|
export type ReservationAvgOrderByAggregateInput = {
|
|
@@ -452,6 +472,7 @@ export type ReservationMaxOrderByAggregateInput = {
|
|
|
452
472
|
createdAt?: Prisma.SortOrder;
|
|
453
473
|
acceptedAt?: Prisma.SortOrder;
|
|
454
474
|
cancelledAt?: Prisma.SortOrder;
|
|
475
|
+
cancellationMessage?: Prisma.SortOrder;
|
|
455
476
|
updatedAt?: Prisma.SortOrder;
|
|
456
477
|
};
|
|
457
478
|
export type ReservationMinOrderByAggregateInput = {
|
|
@@ -467,6 +488,7 @@ export type ReservationMinOrderByAggregateInput = {
|
|
|
467
488
|
createdAt?: Prisma.SortOrder;
|
|
468
489
|
acceptedAt?: Prisma.SortOrder;
|
|
469
490
|
cancelledAt?: Prisma.SortOrder;
|
|
491
|
+
cancellationMessage?: Prisma.SortOrder;
|
|
470
492
|
updatedAt?: Prisma.SortOrder;
|
|
471
493
|
};
|
|
472
494
|
export type ReservationSumOrderByAggregateInput = {
|
|
@@ -559,6 +581,7 @@ export type ReservationCreateWithoutUserInput = {
|
|
|
559
581
|
createdAt?: Date | string;
|
|
560
582
|
acceptedAt?: Date | string | null;
|
|
561
583
|
cancelledAt?: Date | string | null;
|
|
584
|
+
cancellationMessage?: string | null;
|
|
562
585
|
updatedAt?: Date | string;
|
|
563
586
|
organization: Prisma.OrganizationCreateNestedOneWithoutReservationsInput;
|
|
564
587
|
};
|
|
@@ -574,6 +597,7 @@ export type ReservationUncheckedCreateWithoutUserInput = {
|
|
|
574
597
|
createdAt?: Date | string;
|
|
575
598
|
acceptedAt?: Date | string | null;
|
|
576
599
|
cancelledAt?: Date | string | null;
|
|
600
|
+
cancellationMessage?: string | null;
|
|
577
601
|
updatedAt?: Date | string;
|
|
578
602
|
};
|
|
579
603
|
export type ReservationCreateOrConnectWithoutUserInput = {
|
|
@@ -613,6 +637,7 @@ export type ReservationScalarWhereInput = {
|
|
|
613
637
|
createdAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
614
638
|
acceptedAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
615
639
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Reservation"> | Date | string | null;
|
|
640
|
+
cancellationMessage?: Prisma.StringNullableFilter<"Reservation"> | string | null;
|
|
616
641
|
updatedAt?: Prisma.DateTimeFilter<"Reservation"> | Date | string;
|
|
617
642
|
};
|
|
618
643
|
export type ReservationCreateWithoutOrganizationInput = {
|
|
@@ -626,6 +651,7 @@ export type ReservationCreateWithoutOrganizationInput = {
|
|
|
626
651
|
createdAt?: Date | string;
|
|
627
652
|
acceptedAt?: Date | string | null;
|
|
628
653
|
cancelledAt?: Date | string | null;
|
|
654
|
+
cancellationMessage?: string | null;
|
|
629
655
|
updatedAt?: Date | string;
|
|
630
656
|
user?: Prisma.UserCreateNestedOneWithoutReservationsInput;
|
|
631
657
|
};
|
|
@@ -641,6 +667,7 @@ export type ReservationUncheckedCreateWithoutOrganizationInput = {
|
|
|
641
667
|
createdAt?: Date | string;
|
|
642
668
|
acceptedAt?: Date | string | null;
|
|
643
669
|
cancelledAt?: Date | string | null;
|
|
670
|
+
cancellationMessage?: string | null;
|
|
644
671
|
updatedAt?: Date | string;
|
|
645
672
|
};
|
|
646
673
|
export type ReservationCreateOrConnectWithoutOrganizationInput = {
|
|
@@ -676,6 +703,7 @@ export type ReservationCreateManyUserInput = {
|
|
|
676
703
|
createdAt?: Date | string;
|
|
677
704
|
acceptedAt?: Date | string | null;
|
|
678
705
|
cancelledAt?: Date | string | null;
|
|
706
|
+
cancellationMessage?: string | null;
|
|
679
707
|
updatedAt?: Date | string;
|
|
680
708
|
};
|
|
681
709
|
export type ReservationUpdateWithoutUserInput = {
|
|
@@ -689,6 +717,7 @@ export type ReservationUpdateWithoutUserInput = {
|
|
|
689
717
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
690
718
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
691
719
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
720
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
692
721
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
693
722
|
organization?: Prisma.OrganizationUpdateOneRequiredWithoutReservationsNestedInput;
|
|
694
723
|
};
|
|
@@ -704,6 +733,7 @@ export type ReservationUncheckedUpdateWithoutUserInput = {
|
|
|
704
733
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
705
734
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
706
735
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
736
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
707
737
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
708
738
|
};
|
|
709
739
|
export type ReservationUncheckedUpdateManyWithoutUserInput = {
|
|
@@ -718,6 +748,7 @@ export type ReservationUncheckedUpdateManyWithoutUserInput = {
|
|
|
718
748
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
719
749
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
720
750
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
751
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
721
752
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
722
753
|
};
|
|
723
754
|
export type ReservationCreateManyOrganizationInput = {
|
|
@@ -732,6 +763,7 @@ export type ReservationCreateManyOrganizationInput = {
|
|
|
732
763
|
createdAt?: Date | string;
|
|
733
764
|
acceptedAt?: Date | string | null;
|
|
734
765
|
cancelledAt?: Date | string | null;
|
|
766
|
+
cancellationMessage?: string | null;
|
|
735
767
|
updatedAt?: Date | string;
|
|
736
768
|
};
|
|
737
769
|
export type ReservationUpdateWithoutOrganizationInput = {
|
|
@@ -745,6 +777,7 @@ export type ReservationUpdateWithoutOrganizationInput = {
|
|
|
745
777
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
746
778
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
747
779
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
780
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
748
781
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
749
782
|
user?: Prisma.UserUpdateOneWithoutReservationsNestedInput;
|
|
750
783
|
};
|
|
@@ -760,6 +793,7 @@ export type ReservationUncheckedUpdateWithoutOrganizationInput = {
|
|
|
760
793
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
761
794
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
762
795
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
796
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
763
797
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
764
798
|
};
|
|
765
799
|
export type ReservationUncheckedUpdateManyWithoutOrganizationInput = {
|
|
@@ -774,6 +808,7 @@ export type ReservationUncheckedUpdateManyWithoutOrganizationInput = {
|
|
|
774
808
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
775
809
|
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
776
810
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
811
|
+
cancellationMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
777
812
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
778
813
|
};
|
|
779
814
|
export type ReservationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -789,6 +824,7 @@ export type ReservationSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
789
824
|
createdAt?: boolean;
|
|
790
825
|
acceptedAt?: boolean;
|
|
791
826
|
cancelledAt?: boolean;
|
|
827
|
+
cancellationMessage?: boolean;
|
|
792
828
|
updatedAt?: boolean;
|
|
793
829
|
user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
|
|
794
830
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
@@ -806,6 +842,7 @@ export type ReservationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
806
842
|
createdAt?: boolean;
|
|
807
843
|
acceptedAt?: boolean;
|
|
808
844
|
cancelledAt?: boolean;
|
|
845
|
+
cancellationMessage?: boolean;
|
|
809
846
|
updatedAt?: boolean;
|
|
810
847
|
user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
|
|
811
848
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
@@ -823,6 +860,7 @@ export type ReservationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
823
860
|
createdAt?: boolean;
|
|
824
861
|
acceptedAt?: boolean;
|
|
825
862
|
cancelledAt?: boolean;
|
|
863
|
+
cancellationMessage?: boolean;
|
|
826
864
|
updatedAt?: boolean;
|
|
827
865
|
user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
|
|
828
866
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
@@ -840,9 +878,10 @@ export type ReservationSelectScalar = {
|
|
|
840
878
|
createdAt?: boolean;
|
|
841
879
|
acceptedAt?: boolean;
|
|
842
880
|
cancelledAt?: boolean;
|
|
881
|
+
cancellationMessage?: boolean;
|
|
843
882
|
updatedAt?: boolean;
|
|
844
883
|
};
|
|
845
|
-
export type ReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstname" | "lastname" | "userId" | "guests" | "phone" | "date" | "referenceId" | "organizationId" | "createdAt" | "acceptedAt" | "cancelledAt" | "updatedAt", ExtArgs["result"]["reservation"]>;
|
|
884
|
+
export type ReservationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstname" | "lastname" | "userId" | "guests" | "phone" | "date" | "referenceId" | "organizationId" | "createdAt" | "acceptedAt" | "cancelledAt" | "cancellationMessage" | "updatedAt", ExtArgs["result"]["reservation"]>;
|
|
846
885
|
export type ReservationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
847
886
|
user?: boolean | Prisma.Reservation$userArgs<ExtArgs>;
|
|
848
887
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
@@ -874,6 +913,7 @@ export type $ReservationPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
874
913
|
createdAt: Date;
|
|
875
914
|
acceptedAt: Date | null;
|
|
876
915
|
cancelledAt: Date | null;
|
|
916
|
+
cancellationMessage: string | null;
|
|
877
917
|
updatedAt: Date;
|
|
878
918
|
}, ExtArgs["result"]["reservation"]>;
|
|
879
919
|
composites: {};
|
|
@@ -1243,6 +1283,7 @@ export interface ReservationFieldRefs {
|
|
|
1243
1283
|
readonly createdAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
|
|
1244
1284
|
readonly acceptedAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
|
|
1245
1285
|
readonly cancelledAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
|
|
1286
|
+
readonly cancellationMessage: Prisma.FieldRef<"Reservation", 'String'>;
|
|
1246
1287
|
readonly updatedAt: Prisma.FieldRef<"Reservation", 'DateTime'>;
|
|
1247
1288
|
}
|
|
1248
1289
|
/**
|
|
@@ -5,6 +5,10 @@ interface ReservationWithRelations extends Reservation {
|
|
|
5
5
|
user: User | null;
|
|
6
6
|
organization: Organization;
|
|
7
7
|
}
|
|
8
|
+
interface OrganizationEmailSender {
|
|
9
|
+
email?: string | null;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
8
12
|
declare class EmailService {
|
|
9
13
|
private readonly integrationRegistry;
|
|
10
14
|
private readonly runtimes;
|
|
@@ -19,6 +23,15 @@ declare class EmailService {
|
|
|
19
23
|
* Sends an order confirmation email
|
|
20
24
|
*/
|
|
21
25
|
sendOrderConfirmationEmail(organizationId: string, user: User, organization: Organization, order: Order): Promise<void>;
|
|
26
|
+
sendPasswordResetEmail(organizationId: string, user: {
|
|
27
|
+
email: string;
|
|
28
|
+
firstname?: string | null;
|
|
29
|
+
name?: string | null;
|
|
30
|
+
}, organization: OrganizationEmailSender & {
|
|
31
|
+
logoFile?: {
|
|
32
|
+
url?: string | null;
|
|
33
|
+
} | null;
|
|
34
|
+
}, resetUrl: string): Promise<void>;
|
|
22
35
|
/**
|
|
23
36
|
* Sends an order confirmation email
|
|
24
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as r}from"tslib";import{Resend as m}from"resend";import{getStoredResendConfig as l}from"../../features/integration/integration-config";import{
|
|
1
|
+
import{__awaiter as r}from"tslib";import{Resend as m}from"resend";import{getStoredResendConfig as l}from"../../features/integration/integration-config";import{PasswordResetEmail as a}from"../../features/auth/emails/password-reset.email";import{OrderConfirmationEmail as u}from"../../features/order/emails/order-confirmation.email";import c from"../../features/order/emails/order-notification.email";import{ReservationCancellationEmail as f}from"../../features/reservation/emails/reservation-cancellation.email";import{ReservationConfirmationEmail as v}from"../../features/reservation/emails/reservation-confirmation.email";import h from"../../features/reservation/emails/reservation-notification.email";import{ReservationUpdatedEmail as g}from"../../features/reservation/emails/reservation-updated.email";import{logger as d}from"../logging/pino";class E{constructor(o){this.integrationRegistry=o,this.runtimes=new Map}getRuntime(o){return r(this,void 0,void 0,function*(){yield this.integrationRegistry.ready();const e=l(this.integrationRegistry.get(o,"resend")),i=JSON.stringify(e??null),t=this.runtimes.get(o);if(t?.signature===i)return t;const n={fromEmail:e?.fromEmail,resend:e?.apiKey?new m(e.apiKey):void 0,signature:i};return this.runtimes.set(o,n),n})}getFromAddress(o,e){return r(this,void 0,void 0,function*(){var i,t;const s=(t=(i=(yield this.getRuntime(o)).fromEmail)!==null&&i!==void 0?i:e.email)!==null&&t!==void 0?t:"info@shophost.io";return`${e.name} <${s}>`})}sendEmail(o,e,i){return r(this,void 0,void 0,function*(){const t=yield this.getRuntime(o);if(!t.resend)return;const{data:n,error:s}=yield t.resend.emails.send(e,i);if(s)throw d.error({resendError:s,from:e.from,subject:e.subject,to:e.to},"Failed to send email with Resend"),new Error(`Resend send failed: ${s.name}: ${s.message}`);return d.info({emailId:n?.id,subject:e.subject,to:e.to},"Email sent with Resend"),n})}sendOrderConfirmationEmail(o,e,i,t){return r(this,void 0,void 0,function*(){console.log(`Sending order confirmation email to ${e.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,i),to:[e.email],subject:`Order Confirmation - Order #${t.referenceId} | ${i.name}`,react:u({user:e,organization:i,order:t})})})}sendPasswordResetEmail(o,e,i,t){return r(this,void 0,void 0,function*(){console.log(`Sending password reset email to ${e.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,i),to:[e.email],subject:`Reset your password | ${i.name}`,react:a({user:e,organization:i,resetUrl:t})})})}sendOrderNotificationEmail(o,e,i,t,n){return r(this,void 0,void 0,function*(){console.log(`Sending order notification email to ${i.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,t),to:[i.email],subject:`You have received a new order | ${t.name}`,react:c({user:e,organization:t,order:n})})})}sendReservationConfirmationEmail(o,e){return r(this,void 0,void 0,function*(){const i=e.user,t=e.organization;i?.email&&(console.log(`Sending reservation confirmation email to ${i.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,t),to:[i.email],subject:`Reservation Confirmation - ${t.name}`,react:v({user:i,organization:t,reservation:e})}))})}sendReservationCancellationEmail(o,e){return r(this,void 0,void 0,function*(){const i=e.user,t=e.organization;i?.email&&(console.log(`Sending reservation cancellation email to ${i.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,t),to:[i.email],subject:`Reservation Cancelled - ${t.name}`,react:f({user:i,organization:t,reservation:e})}))})}sendReservationNotificationEmail(o,e,i){return r(this,void 0,void 0,function*(){const t=i.user,n=i.organization;t&&(console.log(`Sending reservation notification email to ${e.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,n),to:[e.email],subject:`New Reservation Request | ${n.name}`,react:h({user:t,member:e,organization:n,reservation:i})}))})}sendReservationUpdatedEmail(o,e){return r(this,void 0,void 0,function*(){const i=e.user,t=e.organization;i?.email&&(console.log(`Sending reservation updated email to ${i.email}`),yield this.sendEmail(o,{from:yield this.getFromAddress(o,t),to:[i.email],subject:`Reservation Updated - ${t.name}`,react:g({user:i,organization:t,reservation:e})}))})}}export{E as EmailService};
|
|
@@ -28,6 +28,8 @@ export declare const accessRoute: {
|
|
|
28
28
|
is: "is";
|
|
29
29
|
mt: "mt";
|
|
30
30
|
ml: "ml";
|
|
31
|
+
no: "no";
|
|
32
|
+
ms: "ms";
|
|
31
33
|
af: "af";
|
|
32
34
|
sq: "sq";
|
|
33
35
|
ar_dz: "ar_dz";
|
|
@@ -97,8 +99,6 @@ export declare const accessRoute: {
|
|
|
97
99
|
lv: "lv";
|
|
98
100
|
lt: "lt";
|
|
99
101
|
mk: "mk";
|
|
100
|
-
ms: "ms";
|
|
101
|
-
no: "no";
|
|
102
102
|
nb: "nb";
|
|
103
103
|
nn: "nn";
|
|
104
104
|
pl: "pl";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface PasswordResetEmailProps {
|
|
3
|
+
organization: {
|
|
4
|
+
name: string;
|
|
5
|
+
logoFile?: {
|
|
6
|
+
url?: string | null;
|
|
7
|
+
} | null;
|
|
8
|
+
};
|
|
9
|
+
resetUrl: string;
|
|
10
|
+
user: {
|
|
11
|
+
email: string;
|
|
12
|
+
firstname?: string | null;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const PasswordResetEmail: React.FC<Readonly<PasswordResetEmailProps>>;
|
|
17
|
+
export { PasswordResetEmail };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Body as x,Button as h,Container as b,Head as g,Heading as u,Html as p,Img as y,Link as w,Preview as N,Section as l,Tailwind as f,Text as a}from"../../../core/email/components";const v=({organization:s,resetUrl:r,user:o})=>{var n,d,i;const m=`Reset your password for ${s.name}`,c=((n=o.firstname)===null||n===void 0?void 0:n.trim())||((d=o.name)===null||d===void 0?void 0:d.trim())||"there";return t(p,{children:[e(g,{}),e(N,{children:m}),e(f,{children:e(x,{className:"bg-gray-50 font-sans py-10",children:t(b,{className:"mx-auto max-w-[600px] rounded-2xl bg-white px-8 py-10 shadow-sm",children:[t(l,{className:"mb-8 text-center",children:[!((i=s.logoFile)===null||i===void 0)&&i.url?e(y,{alt:`${s.name} logo`,className:"mx-auto rounded-lg",height:"72",src:s.logoFile.url}):null,e(a,{className:"mb-0 mt-4 text-sm uppercase tracking-[0.2em] text-gray-500",children:s.name})]}),t(l,{children:[e(u,{className:"mb-3 text-3xl font-bold text-gray-900",children:"Reset your password"}),t(a,{className:"mb-4 text-base leading-7 text-gray-700",children:["Hi ",c,","]}),t(a,{className:"mb-6 text-base leading-7 text-gray-700",children:["We received a request to reset the password for ",o.email,". Use the button below to choose a new password."]})]}),e(l,{className:"mb-8 text-center",children:e(h,{href:r,className:"rounded-lg bg-black px-6 py-3 text-sm font-semibold text-white no-underline",children:"Reset password"})}),t(l,{className:"rounded-xl border border-gray-200 bg-gray-50 px-5 py-4",children:[e(a,{className:"m-0 text-sm leading-6 text-gray-700",children:"If the button does not work, copy and paste this link into your browser:"}),e(w,{href:r,className:"mt-3 block break-all text-sm leading-6 text-blue-600",children:r})]}),e(a,{className:"mb-0 mt-8 text-sm leading-6 text-gray-500",children:"If you did not request this reset, you can safely ignore this email."})]})})})]})};export{v as PasswordResetEmail};
|
|
@@ -46,6 +46,8 @@ export declare const cartRoute: {
|
|
|
46
46
|
is: "is";
|
|
47
47
|
mt: "mt";
|
|
48
48
|
ml: "ml";
|
|
49
|
+
no: "no";
|
|
50
|
+
ms: "ms";
|
|
49
51
|
af: "af";
|
|
50
52
|
sq: "sq";
|
|
51
53
|
ar_dz: "ar_dz";
|
|
@@ -115,8 +117,6 @@ export declare const cartRoute: {
|
|
|
115
117
|
lv: "lv";
|
|
116
118
|
lt: "lt";
|
|
117
119
|
mk: "mk";
|
|
118
|
-
ms: "ms";
|
|
119
|
-
no: "no";
|
|
120
120
|
nb: "nb";
|
|
121
121
|
nn: "nn";
|
|
122
122
|
pl: "pl";
|
|
@@ -220,6 +220,8 @@ export declare const cartRoute: {
|
|
|
220
220
|
is: "is";
|
|
221
221
|
mt: "mt";
|
|
222
222
|
ml: "ml";
|
|
223
|
+
no: "no";
|
|
224
|
+
ms: "ms";
|
|
223
225
|
af: "af";
|
|
224
226
|
sq: "sq";
|
|
225
227
|
ar_dz: "ar_dz";
|
|
@@ -289,8 +291,6 @@ export declare const cartRoute: {
|
|
|
289
291
|
lv: "lv";
|
|
290
292
|
lt: "lt";
|
|
291
293
|
mk: "mk";
|
|
292
|
-
ms: "ms";
|
|
293
|
-
no: "no";
|
|
294
294
|
nb: "nb";
|
|
295
295
|
nn: "nn";
|
|
296
296
|
pl: "pl";
|