@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
|
@@ -1469,7 +1469,16 @@ export declare const subscriptionContract: {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
getAvailablePlan: {
|
|
1471
1471
|
method: "GET";
|
|
1472
|
-
query:
|
|
1472
|
+
query: z.ZodObject<{
|
|
1473
|
+
type: z.ZodString;
|
|
1474
|
+
currency: z.ZodString;
|
|
1475
|
+
}, "strip", z.ZodTypeAny, {
|
|
1476
|
+
currency: string;
|
|
1477
|
+
type: string;
|
|
1478
|
+
}, {
|
|
1479
|
+
currency: string;
|
|
1480
|
+
type: string;
|
|
1481
|
+
}>;
|
|
1473
1482
|
responses: {
|
|
1474
1483
|
200: z.ZodObject<{
|
|
1475
1484
|
requestId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/subscription/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/subscription/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EACL,k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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEhC,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const GetAvailablePlanSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodString;
|
|
4
|
+
currency: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
currency: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}, {
|
|
9
|
+
currency: string;
|
|
10
|
+
type: string;
|
|
11
|
+
}>;
|
|
2
12
|
export declare const UpdateSubscriptionSchema: z.ZodObject<{
|
|
3
13
|
planProductId: z.ZodString;
|
|
4
14
|
subscriptionId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/subscription/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/subscription/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10232,6 +10232,10 @@ var SubscriptionSchema = DefaultEntitySchema.extend({
|
|
|
10232
10232
|
|
|
10233
10233
|
// src/subscription/validation.ts
|
|
10234
10234
|
var import_zod137 = require("zod");
|
|
10235
|
+
var GetAvailablePlanSchema = import_zod137.z.object({
|
|
10236
|
+
type: import_zod137.z.string(),
|
|
10237
|
+
currency: import_zod137.z.string()
|
|
10238
|
+
});
|
|
10235
10239
|
var UpdateSubscriptionSchema = import_zod137.z.object({
|
|
10236
10240
|
planProductId: import_zod137.z.string(),
|
|
10237
10241
|
subscriptionId: import_zod137.z.string(),
|
|
@@ -10287,7 +10291,7 @@ var subscriptionContract = (0, import_core53.initContract)().router(
|
|
|
10287
10291
|
getAvailablePlan: {
|
|
10288
10292
|
method: "GET",
|
|
10289
10293
|
path: "/available-plan",
|
|
10290
|
-
query:
|
|
10294
|
+
query: GetAvailablePlanSchema,
|
|
10291
10295
|
responses: {
|
|
10292
10296
|
200: DefaultSuccessResponseSchema.extend({
|
|
10293
10297
|
data: import_zod138.z.array(ProductSchema)
|