Object.defineProperty(exports, "__esModule", { value: true }); const { Decimal, objectEnumValues, makeStrictEnum, Public, getRuntime, skip } = require('@prisma/client/runtime/index-browser.js') const Prisma = {} exports.Prisma = Prisma exports.$Enums = {} /** * Prisma Client JS version: 5.22.0 * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2 */ Prisma.prismaVersion = { client: "5.22.0", engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2" } Prisma.PrismaClientKnownRequestError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )}; Prisma.PrismaClientUnknownRequestError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.PrismaClientRustPanicError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.PrismaClientInitializationError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.PrismaClientValidationError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.NotFoundError = () => { const runtimeName = getRuntime().prettyName; throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.Decimal = Decimal /** * Re-export of sql-template-tag */ Prisma.sql = () => { const runtimeName = getRuntime().prettyName; throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.empty = () => { const runtimeName = getRuntime().prettyName; throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.join = () => { const runtimeName = getRuntime().prettyName; throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.raw = () => { const runtimeName = getRuntime().prettyName; throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.validator = Public.validator /** * Extensions */ Prisma.getExtensionContext = () => { const runtimeName = getRuntime().prettyName; throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} Prisma.defineExtension = () => { const runtimeName = getRuntime().prettyName; throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}). In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`, )} /** * Shorthand utilities for JSON filtering */ Prisma.DbNull = objectEnumValues.instances.DbNull Prisma.JsonNull = objectEnumValues.instances.JsonNull Prisma.AnyNull = objectEnumValues.instances.AnyNull Prisma.NullTypes = { DbNull: objectEnumValues.classes.DbNull, JsonNull: objectEnumValues.classes.JsonNull, AnyNull: objectEnumValues.classes.AnyNull } /** * Enums */ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }); exports.Prisma.AdminScalarFieldEnum = { id: 'id', name: 'name', mobile: 'mobile', email: 'email', passwordHash: 'passwordHash', role: 'role', status: 'status', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.UserScalarFieldEnum = { id: 'id', mobile: 'mobile', name: 'name', status: 'status', lastLoginAt: 'lastLoginAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.OtpCodeScalarFieldEnum = { id: 'id', mobile: 'mobile', code: 'code', userId: 'userId', attempts: 'attempts', consumed: 'consumed', expiresAt: 'expiresAt', createdAt: 'createdAt' }; exports.Prisma.CampaignScalarFieldEnum = { id: 'id', title: 'title', slug: 'slug', description: 'description', image: 'image', banner: 'banner', logo: 'logo', startAt: 'startAt', endAt: 'endAt', status: 'status', defaultChances: 'defaultChances', rules: 'rules', ctaText: 'ctaText', wheelDesign: 'wheelDesign', settings: 'settings', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.PrizeScalarFieldEnum = { id: 'id', campaignId: 'campaignId', title: 'title', description: 'description', image: 'image', type: 'type', stockType: 'stockType', initialStock: 'initialStock', remainingStock: 'remainingStock', weight: 'weight', status: 'status', sortOrder: 'sortOrder', segmentColor: 'segmentColor', expiresAt: 'expiresAt', smsTemplate: 'smsTemplate', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.UserCampaignScalarFieldEnum = { id: 'id', userId: 'userId', campaignId: 'campaignId', totalChances: 'totalChances', usedChances: 'usedChances', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.ChanceTransactionScalarFieldEnum = { id: 'id', userId: 'userId', campaignId: 'campaignId', amount: 'amount', type: 'type', referenceType: 'referenceType', referenceId: 'referenceId', description: 'description', createdById: 'createdById', createdAt: 'createdAt' }; exports.Prisma.SpinScalarFieldEnum = { id: 'id', userId: 'userId', campaignId: 'campaignId', prizeId: 'prizeId', status: 'status', idempotencyKey: 'idempotencyKey', ip: 'ip', userAgent: 'userAgent', createdAt: 'createdAt' }; exports.Prisma.UserPrizeScalarFieldEnum = { id: 'id', userId: 'userId', campaignId: 'campaignId', prizeId: 'prizeId', spinId: 'spinId', code: 'code', status: 'status', wonAt: 'wonAt', redeemedAt: 'redeemedAt' }; exports.Prisma.SmsLogScalarFieldEnum = { id: 'id', userId: 'userId', mobile: 'mobile', type: 'type', message: 'message', provider: 'provider', status: 'status', providerResponse: 'providerResponse', createdAt: 'createdAt' }; exports.Prisma.AdminLogScalarFieldEnum = { id: 'id', adminId: 'adminId', action: 'action', entityType: 'entityType', entityId: 'entityId', oldValue: 'oldValue', newValue: 'newValue', ip: 'ip', createdAt: 'createdAt' }; exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' }; exports.Prisma.NullableJsonNullValueInput = { DbNull: Prisma.DbNull, JsonNull: Prisma.JsonNull }; exports.Prisma.QueryMode = { default: 'default', insensitive: 'insensitive' }; exports.Prisma.NullsOrder = { first: 'first', last: 'last' }; exports.Prisma.JsonNullValueFilter = { DbNull: Prisma.DbNull, JsonNull: Prisma.JsonNull, AnyNull: Prisma.AnyNull }; exports.AdminRole = exports.$Enums.AdminRole = { SUPER_ADMIN: 'SUPER_ADMIN', OPERATOR: 'OPERATOR', SUPPORT: 'SUPPORT' }; exports.AdminStatus = exports.$Enums.AdminStatus = { ACTIVE: 'ACTIVE', DISABLED: 'DISABLED' }; exports.UserStatus = exports.$Enums.UserStatus = { ACTIVE: 'ACTIVE', BLOCKED: 'BLOCKED' }; exports.CampaignStatus = exports.$Enums.CampaignStatus = { DRAFT: 'DRAFT', ACTIVE: 'ACTIVE', PAUSED: 'PAUSED', FINISHED: 'FINISHED' }; exports.WheelDesign = exports.$Enums.WheelDesign = { CLASSIC_CASINO: 'CLASSIC_CASINO', NEON_CYBER: 'NEON_CYBER', MINIMAL_FLAT: 'MINIMAL_FLAT', LUXURY_GOLD: 'LUXURY_GOLD', PLAYFUL_CARTOON: 'PLAYFUL_CARTOON' }; exports.PrizeType = exports.$Enums.PrizeType = { PHYSICAL: 'PHYSICAL', DISCOUNT_CODE: 'DISCOUNT_CODE', CREDIT: 'CREDIT', CASH: 'CASH', NO_PRIZE: 'NO_PRIZE', OTHER: 'OTHER' }; exports.StockType = exports.$Enums.StockType = { LIMITED: 'LIMITED', UNLIMITED: 'UNLIMITED' }; exports.PrizeStatus = exports.$Enums.PrizeStatus = { ACTIVE: 'ACTIVE', INACTIVE: 'INACTIVE' }; exports.ChanceTxnType = exports.$Enums.ChanceTxnType = { SIGNUP_BONUS: 'SIGNUP_BONUS', ADMIN_ADJUSTMENT: 'ADMIN_ADJUSTMENT', SPIN_CONSUME: 'SPIN_CONSUME', CAMPAIGN_BONUS: 'CAMPAIGN_BONUS', REFUND: 'REFUND' }; exports.SpinStatus = exports.$Enums.SpinStatus = { SUCCESS: 'SUCCESS', FAILED: 'FAILED', DUPLICATE: 'DUPLICATE' }; exports.UserPrizeStatus = exports.$Enums.UserPrizeStatus = { NEW: 'NEW', CONTACTED: 'CONTACTED', DELIVERED: 'DELIVERED', ACTIVE_CODE: 'ACTIVE_CODE', USED: 'USED', EXPIRED: 'EXPIRED' }; exports.SmsType = exports.$Enums.SmsType = { OTP: 'OTP', WINNING: 'WINNING', NO_PRIZE: 'NO_PRIZE', PRIZE_REMINDER: 'PRIZE_REMINDER' }; exports.SmsStatus = exports.$Enums.SmsStatus = { PENDING: 'PENDING', SENT: 'SENT', FAILED: 'FAILED' }; exports.Prisma.ModelName = { Admin: 'Admin', User: 'User', OtpCode: 'OtpCode', Campaign: 'Campaign', Prize: 'Prize', UserCampaign: 'UserCampaign', ChanceTransaction: 'ChanceTransaction', Spin: 'Spin', UserPrize: 'UserPrize', SmsLog: 'SmsLog', AdminLog: 'AdminLog' }; /** * This is a stub Prisma Client that will error at runtime if called. */ class PrismaClient { constructor() { return new Proxy(this, { get(target, prop) { let message const runtime = getRuntime() if (runtime.isEdge) { message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either: - Use Prisma Accelerate: https://pris.ly/d/accelerate - Use Driver Adapters: https://pris.ly/d/driver-adapters `; } else { message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).' } message += ` If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report` throw new Error(message) } }) } } exports.PrismaClient = PrismaClient Object.assign(exports, Prisma)