@kl1/contracts 1.2.44-uat → 1.2.45-uat
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.
- package/dist/api-contracts/src/subscription/index.d.ts +10 -1
- package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/validation.d.ts +10 -0
- package/dist/api-contracts/src/subscription/validation.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10125,6 +10125,10 @@ var SubscriptionSchema = DefaultEntitySchema.extend({
|
|
|
10125
10125
|
|
|
10126
10126
|
// src/subscription/validation.ts
|
|
10127
10127
|
import { z as z137 } from "zod";
|
|
10128
|
+
var GetAvailablePlanSchema = z137.object({
|
|
10129
|
+
type: z137.string(),
|
|
10130
|
+
currency: z137.string()
|
|
10131
|
+
});
|
|
10128
10132
|
var UpdateSubscriptionSchema = z137.object({
|
|
10129
10133
|
planProductId: z137.string(),
|
|
10130
10134
|
subscriptionId: z137.string(),
|
|
@@ -10180,7 +10184,7 @@ var subscriptionContract = initContract53().router(
|
|
|
10180
10184
|
getAvailablePlan: {
|
|
10181
10185
|
method: "GET",
|
|
10182
10186
|
path: "/available-plan",
|
|
10183
|
-
query:
|
|
10187
|
+
query: GetAvailablePlanSchema,
|
|
10184
10188
|
responses: {
|
|
10185
10189
|
200: DefaultSuccessResponseSchema.extend({
|
|
10186
10190
|
data: z138.array(ProductSchema)
|