@kl1/contracts 1.3.85 → 1.3.86

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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { CustomerSchema, ProductPriceSchema, ProductSchema, SubscriptionProuctSchema, SubscriptionSchema } from './schema';
3
3
  import { UpdateSubscriptionSchema, TopUpBalanceSchema } from './validation';
4
4
  export type UpdateSubscriptionBody = z.infer<typeof UpdateSubscriptionSchema>;
5
- export type topUpBalanceBody = z.infer<typeof TopUpBalanceSchema>;
5
+ export type TopUpBalanceBody = z.infer<typeof TopUpBalanceSchema>;
6
6
  export type Subscription = z.infer<typeof SubscriptionSchema>;
7
7
  export type SubscriptionProuct = z.infer<typeof SubscriptionProuctSchema>;
8
8
  export type ProductPrice = z.infer<typeof ProductPriceSchema>;
@@ -1539,6 +1539,33 @@ export declare const subscriptionContract: {
1539
1539
  };
1540
1540
  path: "ms/subscriptions/top-up";
1541
1541
  };
1542
+ getCurrentTopUpBalance: {
1543
+ method: "GET";
1544
+ query: null;
1545
+ responses: {
1546
+ 200: z.ZodObject<{
1547
+ requestId: z.ZodString;
1548
+ balance: z.ZodNumber;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ requestId: string;
1551
+ balance: number;
1552
+ }, {
1553
+ requestId: string;
1554
+ balance: number;
1555
+ }>;
1556
+ 500: z.ZodObject<{
1557
+ message: z.ZodString;
1558
+ error: z.ZodAny;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ message: string;
1561
+ error?: any;
1562
+ }, {
1563
+ message: string;
1564
+ error?: any;
1565
+ }>;
1566
+ };
1567
+ path: "ms/subscriptions/top-up";
1568
+ };
1542
1569
  getAvailablePlan: {
1543
1570
  method: "GET";
1544
1571
  query: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/subscription/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAO,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FhC,CAAC"}
package/dist/index.js CHANGED
@@ -10959,6 +10959,17 @@ var subscriptionContract = (0, import_core54.initContract)().router(
10959
10959
  500: DefaultErrorResponseSchema
10960
10960
  }
10961
10961
  },
10962
+ getCurrentTopUpBalance: {
10963
+ method: "GET",
10964
+ path: "/top-up",
10965
+ query: null,
10966
+ responses: {
10967
+ 200: DefaultSuccessResponseSchema.extend({
10968
+ balance: import_zod139.z.number()
10969
+ }),
10970
+ 500: DefaultErrorResponseSchema
10971
+ }
10972
+ },
10962
10973
  getAvailablePlan: {
10963
10974
  method: "GET",
10964
10975
  path: "/available-plan",