@opengeni/config 3.4.0-canary.37189128503001 → 3.4.0

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.
@@ -0,0 +1,25 @@
1
+ import { PromotionalCreditScope } from "@opengeni/contracts";
2
+ import { z } from "zod";
3
+ /** Operator configuration only. Keys are Stripe coupon IDs, never customer account IDs. */
4
+ export declare const CreditPromotionPolicy: z.ZodObject<{
5
+ defaultModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
6
+ signupModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
7
+ offers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8
+ label: z.ZodString;
9
+ eligibleModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
10
+ }, z.core.$strict>>>;
11
+ }, z.core.$strict>;
12
+ export declare const EnvCreditPromotionPolicy: z.ZodPreprocess<z.ZodDefault<z.ZodObject<{
13
+ defaultModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
14
+ signupModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
15
+ offers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
16
+ label: z.ZodString;
17
+ eligibleModelIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>>;
18
+ }, z.core.$strict>>>;
19
+ }, z.core.$strict>>>;
20
+ export declare function signupCreditModelIds(settings: {
21
+ creditPromotionPolicy: z.infer<typeof CreditPromotionPolicy>;
22
+ }): string[] | undefined;
23
+ export declare function promotionalCreditScope(settings: {
24
+ creditPromotionPolicy: z.infer<typeof CreditPromotionPolicy>;
25
+ }, couponId: string): PromotionalCreditScope | undefined;