@kl1/contracts 1.4.16 → 1.4.18

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/index.mjs CHANGED
@@ -3410,10 +3410,26 @@ var BaseSchema = z47.object({
3410
3410
  var CompanyContractsValidationSchema = {
3411
3411
  create: {
3412
3412
  request: z47.object({
3413
- name: z47.object({ value: z47.string() }),
3414
- phone: z47.object({ value: z47.string() }),
3415
- address: z47.object({ value: z47.string() }),
3416
- industry: z47.object({ value: z47.string() }),
3413
+ name: z47.object({
3414
+ value: z47.string(),
3415
+ isRequired: z47.boolean(),
3416
+ attributeId: z47.string()
3417
+ }),
3418
+ phone: z47.object({
3419
+ value: z47.string(),
3420
+ isRequired: z47.boolean(),
3421
+ attributeId: z47.string()
3422
+ }),
3423
+ address: z47.object({
3424
+ value: z47.string(),
3425
+ isRequired: z47.boolean(),
3426
+ attributeId: z47.string()
3427
+ }),
3428
+ industry: z47.object({
3429
+ value: z47.string(),
3430
+ isRequired: z47.boolean(),
3431
+ attributeId: z47.string()
3432
+ }),
3417
3433
  customFields: z47.array(
3418
3434
  BaseSchema.extend({
3419
3435
  value: z47.union([z47.string(), z47.array(z47.string())]),
@@ -3485,7 +3501,7 @@ var companyContract = initContract10().router({
3485
3501
  },
3486
3502
  update: {
3487
3503
  method: "PATCH",
3488
- path: "cs/company/:id",
3504
+ path: "ccs/api/v1/company/:id",
3489
3505
  pathParams: z48.object({
3490
3506
  id: z48.string().uuid()
3491
3507
  }),
@@ -3912,7 +3928,7 @@ var contactContract = initContract11().router(
3912
3928
  },
3913
3929
  update: {
3914
3930
  method: "PATCH",
3915
- path: "cs/contact/:id",
3931
+ path: "ccs/api/v1/contact/:id",
3916
3932
  pathParams: ContactContractValidationSchema.getById.request,
3917
3933
  responses: {
3918
3934
  200: DefaultSuccessResponseSchema.extend({