@kl1/contracts 1.1.56-uat → 1.1.58-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -1556,7 +1556,7 @@ var StickerSchema = z33.object({
1556
1556
  packageId: z33.number(),
1557
1557
  stickerId: z33.number()
1558
1558
  });
1559
- var FeedActionTypeSchema = z33.enum(["create", "edit", "like", "private_reply"]).default("create");
1559
+ var FeedActionTypeSchema = z33.enum(["create", "edit", "like", "unlike", "private_reply"]).default("create");
1560
1560
  var ActionMessageSchema = z33.object({
1561
1561
  roomId: z33.string().uuid(),
1562
1562
  messageId: z33.string().uuid()
@@ -1700,7 +1700,7 @@ var SendMessageToPlatformSchema = z33.object({
1700
1700
  email: z33.string().email(),
1701
1701
  address: z33.string().nullable(),
1702
1702
  phone: z33.string().nullable()
1703
- }),
1703
+ }).optional(),
1704
1704
  parentMessageId: z33.string().optional(),
1705
1705
  feedPostId: z33.string().uuid().optional()
1706
1706
  })
@@ -6688,13 +6688,21 @@ import { z as z96 } from "zod";
6688
6688
 
6689
6689
  // src/subscription/schema.ts
6690
6690
  import z94 from "zod";
6691
+ var ProductPriceSchema = DefaultEntitySchema.extend({
6692
+ priceId: z94.string(),
6693
+ name: z94.string().nullable(),
6694
+ perUnit: z94.number(),
6695
+ price: z94.number(),
6696
+ currency: z94.string().nullable()
6697
+ });
6691
6698
  var ProductSchema = DefaultEntitySchema.extend({
6692
6699
  provider: z94.string(),
6693
6700
  productId: z94.string(),
6694
6701
  name: z94.string(),
6695
6702
  type: z94.string(),
6696
6703
  omnichannel: z94.string(),
6697
- usageType: z94.string().nullable()
6704
+ usageType: z94.string().nullable(),
6705
+ productPrice: ProductPriceSchema
6698
6706
  });
6699
6707
  var SubscriptionProuctSchema = DefaultEntitySchema.extend({
6700
6708
  limit: z94.number(),
@@ -6713,7 +6721,8 @@ var SubscriptionSchema = DefaultEntitySchema.extend({
6713
6721
  expireAt: z94.date(),
6714
6722
  status: z94.string(),
6715
6723
  name: z94.string().nullable(),
6716
- subscriptionProducts: z94.array(SubscriptionProuctSchema)
6724
+ subscriptionProducts: z94.array(SubscriptionProuctSchema),
6725
+ productPrice: ProductPriceSchema
6717
6726
  });
6718
6727
 
6719
6728
  // src/subscription/validation.ts