@kl1/contracts 1.2.48-uat → 1.2.50-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/subscription/index.d.ts +55 -1
- package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
- package/dist/api-contracts/src/subscription/schema.d.ts +31 -0
- package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ProductPriceSchema, ProductSchema, SubscriptionProuctSchema, SubscriptionSchema } from './schema';
|
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
5
|
export type topUpBalanceBody = z.infer<typeof TopUpBalanceSchema>;
|
@@ -7,6 +7,7 @@ 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>;
|
9
9
|
export type Product = z.infer<typeof ProductSchema>;
|
10
|
+
export type Customer = z.infer<typeof CustomerSchema>;
|
10
11
|
export declare const subscriptionContract: {
|
11
12
|
getSubscription: {
|
12
13
|
method: "GET";
|
@@ -14,6 +15,37 @@ export declare const subscriptionContract: {
|
|
14
15
|
responses: {
|
15
16
|
200: z.ZodObject<{
|
16
17
|
requestId: z.ZodString;
|
18
|
+
customer: z.ZodObject<{
|
19
|
+
id: z.ZodString;
|
20
|
+
createdAt: z.ZodDate;
|
21
|
+
updatedAt: z.ZodDate;
|
22
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
23
|
+
provider: z.ZodString;
|
24
|
+
customerId: z.ZodString;
|
25
|
+
email: z.ZodString;
|
26
|
+
name: z.ZodString;
|
27
|
+
balance: z.ZodNumber;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
id: string;
|
30
|
+
name: string;
|
31
|
+
email: string;
|
32
|
+
createdAt: Date;
|
33
|
+
updatedAt: Date;
|
34
|
+
deletedAt: Date | null;
|
35
|
+
provider: string;
|
36
|
+
customerId: string;
|
37
|
+
balance: number;
|
38
|
+
}, {
|
39
|
+
id: string;
|
40
|
+
name: string;
|
41
|
+
email: string;
|
42
|
+
createdAt: Date;
|
43
|
+
updatedAt: Date;
|
44
|
+
deletedAt: Date | null;
|
45
|
+
provider: string;
|
46
|
+
customerId: string;
|
47
|
+
balance: number;
|
48
|
+
}>;
|
17
49
|
subscription: z.ZodObject<{
|
18
50
|
id: z.ZodString;
|
19
51
|
createdAt: z.ZodDate;
|
@@ -1074,6 +1106,17 @@ export declare const subscriptionContract: {
|
|
1074
1106
|
}>;
|
1075
1107
|
}, "strip", z.ZodTypeAny, {
|
1076
1108
|
requestId: string;
|
1109
|
+
customer: {
|
1110
|
+
id: string;
|
1111
|
+
name: string;
|
1112
|
+
email: string;
|
1113
|
+
createdAt: Date;
|
1114
|
+
updatedAt: Date;
|
1115
|
+
deletedAt: Date | null;
|
1116
|
+
provider: string;
|
1117
|
+
customerId: string;
|
1118
|
+
balance: number;
|
1119
|
+
};
|
1077
1120
|
subscription: {
|
1078
1121
|
type: string;
|
1079
1122
|
interval: string;
|
@@ -1218,6 +1261,17 @@ export declare const subscriptionContract: {
|
|
1218
1261
|
};
|
1219
1262
|
}, {
|
1220
1263
|
requestId: string;
|
1264
|
+
customer: {
|
1265
|
+
id: string;
|
1266
|
+
name: string;
|
1267
|
+
email: string;
|
1268
|
+
createdAt: Date;
|
1269
|
+
updatedAt: Date;
|
1270
|
+
deletedAt: Date | null;
|
1271
|
+
provider: string;
|
1272
|
+
customerId: string;
|
1273
|
+
balance: number;
|
1274
|
+
};
|
1221
1275
|
subscription: {
|
1222
1276
|
type: string;
|
1223
1277
|
interval: string;
|
@@ -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,
|
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,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
}>;
|
571
|
+
export declare const CustomerSchema: z.ZodObject<{
|
572
|
+
id: z.ZodString;
|
573
|
+
createdAt: z.ZodDate;
|
574
|
+
updatedAt: z.ZodDate;
|
575
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
576
|
+
provider: z.ZodString;
|
577
|
+
customerId: z.ZodString;
|
578
|
+
email: z.ZodString;
|
579
|
+
name: z.ZodString;
|
580
|
+
balance: z.ZodNumber;
|
581
|
+
}, "strip", z.ZodTypeAny, {
|
582
|
+
id: string;
|
583
|
+
name: string;
|
584
|
+
email: string;
|
585
|
+
createdAt: Date;
|
586
|
+
updatedAt: Date;
|
587
|
+
deletedAt: Date | null;
|
588
|
+
provider: string;
|
589
|
+
customerId: string;
|
590
|
+
balance: number;
|
591
|
+
}, {
|
592
|
+
id: string;
|
593
|
+
name: string;
|
594
|
+
email: string;
|
595
|
+
createdAt: Date;
|
596
|
+
updatedAt: Date;
|
597
|
+
deletedAt: Date | null;
|
598
|
+
provider: string;
|
599
|
+
customerId: string;
|
600
|
+
balance: number;
|
601
|
+
}>;
|
571
602
|
export declare const SubscriptionProuctSchema: z.ZodObject<{
|
572
603
|
id: z.ZodString;
|
573
604
|
createdAt: z.ZodDate;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/subscription/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7B,CAAC"}
|
package/dist/index.js
CHANGED
@@ -10221,6 +10221,13 @@ var ProductSchema = DefaultEntitySchema.extend({
|
|
10221
10221
|
productPrice: ProductPriceSchema,
|
10222
10222
|
relatedProducts: import_zod136.default.array(RelatedProductSchema)
|
10223
10223
|
});
|
10224
|
+
var CustomerSchema = DefaultEntitySchema.extend({
|
10225
|
+
provider: import_zod136.default.string(),
|
10226
|
+
customerId: import_zod136.default.string(),
|
10227
|
+
email: import_zod136.default.string(),
|
10228
|
+
name: import_zod136.default.string(),
|
10229
|
+
balance: import_zod136.default.number()
|
10230
|
+
});
|
10224
10231
|
var SubscriptionProuctSchema = DefaultEntitySchema.extend({
|
10225
10232
|
limit: import_zod136.default.number(),
|
10226
10233
|
subscriptionItemId: import_zod136.default.string(),
|
@@ -10272,6 +10279,7 @@ var subscriptionContract = (0, import_core53.initContract)().router(
|
|
10272
10279
|
query: null,
|
10273
10280
|
responses: {
|
10274
10281
|
200: DefaultSuccessResponseSchema.extend({
|
10282
|
+
customer: CustomerSchema,
|
10275
10283
|
subscription: SubscriptionSchema
|
10276
10284
|
}),
|
10277
10285
|
500: DefaultErrorResponseSchema
|