@kl1/contracts 1.2.47-uat → 1.2.49-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -10114,6 +10114,13 @@ var ProductSchema = DefaultEntitySchema.extend({
10114
10114
  productPrice: ProductPriceSchema,
10115
10115
  relatedProducts: z136.array(RelatedProductSchema)
10116
10116
  });
10117
+ var CustomerSchema = DefaultEntitySchema.extend({
10118
+ provider: z136.string(),
10119
+ customerId: z136.string(),
10120
+ email: z136.string(),
10121
+ name: z136.string(),
10122
+ balance: z136.number()
10123
+ });
10117
10124
  var SubscriptionProuctSchema = DefaultEntitySchema.extend({
10118
10125
  limit: z136.number(),
10119
10126
  subscriptionItemId: z136.string(),
@@ -10133,7 +10140,8 @@ var SubscriptionSchema = DefaultEntitySchema.extend({
10133
10140
  name: z136.string().nullable(),
10134
10141
  subscriptionProducts: z136.array(SubscriptionProuctSchema),
10135
10142
  productPrice: ProductPriceSchema,
10136
- product: ProductSchema
10143
+ product: ProductSchema,
10144
+ customer: CustomerSchema
10137
10145
  });
10138
10146
 
10139
10147
  // src/subscription/validation.ts
@@ -10180,6 +10188,7 @@ var subscriptionContract = initContract53().router(
10180
10188
  requireCheckout: z138.boolean(),
10181
10189
  checkoutUrl: z138.string().nullable()
10182
10190
  }),
10191
+ 402: DefaultErrorResponseSchema,
10183
10192
  500: DefaultErrorResponseSchema
10184
10193
  }
10185
10194
  },