chargebee
Version:
A library for integrating with Chargebee.
18 lines (17 loc) • 949 B
JavaScript
;
// Generated Zod schemas: UsageSummary
// Actions: retrieveUsageSummaryForSubscription
// Do not edit manually – regenerate via sdk-generator
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetrieveUsageSummaryForSubscriptionUsageSummaryBodySchema = void 0;
const zod_1 = require("zod");
//UsageSummary.retrieveUsageSummaryForSubscription
const RetrieveUsageSummaryForSubscriptionUsageSummaryBodySchema = zod_1.z.looseObject({
limit: zod_1.z.number().int().min(1).max(100).optional(),
offset: zod_1.z.string().max(1000).optional(),
feature_id: zod_1.z.string().max(100),
window_size: zod_1.z.enum(['month', 'week', 'day', 'hour', 'minute']).optional(),
timeframe_start: zod_1.z.number().int().optional(),
timeframe_end: zod_1.z.number().int().optional(),
});
exports.RetrieveUsageSummaryForSubscriptionUsageSummaryBodySchema = RetrieveUsageSummaryForSubscriptionUsageSummaryBodySchema;