@purpleschool/gptbot 0.9.25 → 0.9.26
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.
|
@@ -66,7 +66,7 @@ var BuyProductCommand;
|
|
|
66
66
|
message: 'admitadClickDate cannot be in the future',
|
|
67
67
|
path: ['admitadClickDate'],
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
BuyProductCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
70
70
|
publicId: zod_1.z.string(),
|
|
71
71
|
amount: zod_1.z.number(),
|
|
72
72
|
currency: zod_1.z.string(),
|
|
@@ -83,7 +83,7 @@ var BuyProductCommand;
|
|
|
83
83
|
}),
|
|
84
84
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
85
85
|
});
|
|
86
|
-
|
|
86
|
+
BuyProductCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
87
87
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
88
88
|
checkoutUrl: zod_1.z.string(),
|
|
89
89
|
orderNumber: zod_1.z.string(),
|
|
@@ -95,8 +95,8 @@ var BuyProductCommand;
|
|
|
95
95
|
createdAt: zod_1.z.string(),
|
|
96
96
|
});
|
|
97
97
|
BuyProductCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
98
|
-
CloudPaymentsResponseSchema,
|
|
99
|
-
ZenpaymentsResponseSchema,
|
|
98
|
+
BuyProductCommand.CloudPaymentsResponseSchema,
|
|
99
|
+
BuyProductCommand.ZenpaymentsResponseSchema,
|
|
100
100
|
]);
|
|
101
101
|
BuyProductCommand.ResponseFastSchema = zod_1.z.object({
|
|
102
102
|
data: BuyProductCommand.ResponseSchema,
|
|
@@ -65,7 +65,7 @@ var BuySubscriptionCommand;
|
|
|
65
65
|
electronic: zod_1.z.number(),
|
|
66
66
|
}),
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
BuySubscriptionCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
69
69
|
publicId: zod_1.z.string(),
|
|
70
70
|
amount: zod_1.z.number(),
|
|
71
71
|
currency: zod_1.z.string(),
|
|
@@ -88,7 +88,7 @@ var BuySubscriptionCommand;
|
|
|
88
88
|
}),
|
|
89
89
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
90
90
|
});
|
|
91
|
-
|
|
91
|
+
BuySubscriptionCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
92
92
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
93
93
|
checkoutUrl: zod_1.z.string(),
|
|
94
94
|
orderNumber: zod_1.z.string(),
|
|
@@ -100,8 +100,8 @@ var BuySubscriptionCommand;
|
|
|
100
100
|
createdAt: zod_1.z.string(),
|
|
101
101
|
});
|
|
102
102
|
BuySubscriptionCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
103
|
-
CloudPaymentsResponseSchema,
|
|
104
|
-
ZenpaymentsResponseSchema,
|
|
103
|
+
BuySubscriptionCommand.CloudPaymentsResponseSchema,
|
|
104
|
+
BuySubscriptionCommand.ZenpaymentsResponseSchema,
|
|
105
105
|
]);
|
|
106
106
|
BuySubscriptionCommand.ResponseFastSchema = zod_1.z.object({
|
|
107
107
|
data: BuySubscriptionCommand.ResponseSchema,
|
|
@@ -79,7 +79,7 @@ export namespace BuyProductCommand {
|
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
export type RequestFast = z.infer<typeof RequestFastSchema>;
|
|
82
|
-
const CloudPaymentsResponseSchema = z.object({
|
|
82
|
+
export const CloudPaymentsResponseSchema = z.object({
|
|
83
83
|
publicId: z.string(),
|
|
84
84
|
amount: z.number(),
|
|
85
85
|
currency: z.string(),
|
|
@@ -97,7 +97,7 @@ export namespace BuyProductCommand {
|
|
|
97
97
|
provider: z.literal(PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
98
98
|
});
|
|
99
99
|
|
|
100
|
-
const ZenpaymentsResponseSchema = z.object({
|
|
100
|
+
export const ZenpaymentsResponseSchema = z.object({
|
|
101
101
|
provider: z.literal(PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
102
102
|
checkoutUrl: z.string(),
|
|
103
103
|
orderNumber: z.string(),
|
|
@@ -78,7 +78,7 @@ export namespace BuySubscriptionCommand {
|
|
|
78
78
|
}),
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
const CloudPaymentsResponseSchema = z.object({
|
|
81
|
+
export const CloudPaymentsResponseSchema = z.object({
|
|
82
82
|
publicId: z.string(),
|
|
83
83
|
amount: z.number(),
|
|
84
84
|
currency: z.string(),
|
|
@@ -102,7 +102,7 @@ export namespace BuySubscriptionCommand {
|
|
|
102
102
|
provider: z.literal(PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
const ZenpaymentsResponseSchema = z.object({
|
|
105
|
+
export const ZenpaymentsResponseSchema = z.object({
|
|
106
106
|
provider: z.literal(PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
107
107
|
checkoutUrl: z.string(),
|
|
108
108
|
orderNumber: z.string(),
|