UNPKG

autumn-js

Version:

Autumn JS Library

60 lines (57 loc) 2.27 kB
"use client"; "use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/libraries/react/client/types/clientGenTypes.ts var clientGenTypes_exports = {}; __export(clientGenTypes_exports, { CancelParamsSchema: () => CancelParamsSchema, CheckParamsSchema: () => CheckParamsSchema, TrackParamsSchema: () => TrackParamsSchema }); module.exports = __toCommonJS(clientGenTypes_exports); var import_zod = require("zod"); var CancelParamsSchema = import_zod.z.object({ productId: import_zod.z.string(), entityId: import_zod.z.string().optional(), cancelImmediately: import_zod.z.boolean().optional() }); var CheckParamsSchema = import_zod.z.object({ featureId: import_zod.z.string().optional(), productId: import_zod.z.string().optional(), entityId: import_zod.z.string().optional(), requiredBalance: import_zod.z.number().optional(), sendEvent: import_zod.z.boolean().optional(), withPreview: import_zod.z.boolean().optional(), dialog: import_zod.z.any().optional(), entityData: import_zod.z.any().optional() }); var TrackParamsSchema = import_zod.z.object({ featureId: import_zod.z.string().optional(), eventName: import_zod.z.string().optional(), entityId: import_zod.z.string().optional(), value: import_zod.z.number().optional(), idempotencyKey: import_zod.z.string().optional(), entityData: import_zod.z.any().optional() }); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { CancelParamsSchema, CheckParamsSchema, TrackParamsSchema });