@kl1/contracts 1.1.71-uat → 1.1.72-uat

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -7665,80 +7665,24 @@ var botContract = initContract39().router(
7665
7665
  }
7666
7666
  );
7667
7667
 
7668
- // src/sms/index.ts
7669
- import { initContract as initContract40 } from "@ts-rest/core";
7670
-
7671
- // src/sms/schema.ts
7672
- import z108 from "zod";
7673
-
7674
- // src/sms/validation.ts
7675
- import z107 from "zod";
7676
- var ConnectSMSSchema2 = z107.object({
7677
- name: z107.string(),
7678
- type: z107.enum(["sms_vonage" /* VONAGE_SMS */]),
7679
- vonageCredentials: z107.object({
7680
- mobileNumber: z107.string(),
7681
- apiKey: z107.string(),
7682
- apiSecret: z107.string()
7683
- })
7684
- });
7685
-
7686
- // src/sms/schema.ts
7687
- var ConnectSMSChannelSchema = z108.object({
7688
- actor: z108.object({
7689
- id: z108.string().uuid(),
7690
- name: z108.string(),
7691
- email: z108.string().email(),
7692
- address: z108.string().nullable(),
7693
- phone: z108.string().nullable()
7694
- }),
7695
- channel: ConnectSMSSchema2
7696
- });
7697
-
7698
- // src/sms/index.ts
7699
- var smsContract = initContract40().router({
7700
- connect: {
7701
- method: "POST",
7702
- path: "/connect",
7703
- body: ConnectSMSChannelSchema,
7704
- responses: {
7705
- 200: DefaultSuccessResponseSchema.extend({
7706
- channel: ChannelSchema
7707
- }),
7708
- 400: DefaultErrorResponseSchema,
7709
- 500: DefaultErrorResponseSchema
7710
- }
7711
- },
7712
- sendMessage: {
7713
- method: "POST",
7714
- path: "/message",
7715
- body: SendMessageToPlatformSchema,
7716
- responses: {
7717
- 200: DefaultSuccessResponseSchema,
7718
- 400: DefaultErrorResponseSchema,
7719
- 500: DefaultErrorResponseSchema
7720
- }
7721
- }
7722
- });
7723
-
7724
7668
  // src/hold-label/index.ts
7725
- import { initContract as initContract41 } from "@ts-rest/core";
7669
+ import { initContract as initContract40 } from "@ts-rest/core";
7726
7670
 
7727
7671
  // src/hold-label/schema.ts
7728
- import z109 from "zod";
7672
+ import z107 from "zod";
7729
7673
  var HoldLabelSchema = DefaultEntitySchema.extend({
7730
- name: z109.string(),
7731
- position: z109.number()
7674
+ name: z107.string(),
7675
+ position: z107.number()
7732
7676
  });
7733
7677
 
7734
7678
  // src/hold-label/index.ts
7735
- import z110 from "zod";
7736
- var holdLabelContract = initContract41().router(
7679
+ import z108 from "zod";
7680
+ var holdLabelContract = initContract40().router(
7737
7681
  {
7738
7682
  createHoldLabel: {
7739
7683
  method: "POST",
7740
7684
  path: "",
7741
- body: z110.object({ name: z110.string() }),
7685
+ body: z108.object({ name: z108.string() }),
7742
7686
  responses: {
7743
7687
  201: DefaultSuccessResponseSchema.extend({
7744
7688
  holdLabel: HoldLabelSchema
@@ -7750,15 +7694,15 @@ var holdLabelContract = initContract41().router(
7750
7694
  path: "",
7751
7695
  responses: {
7752
7696
  200: DefaultSuccessResponseSchema.extend({
7753
- holdLabels: z110.array(HoldLabelSchema)
7697
+ holdLabels: z108.array(HoldLabelSchema)
7754
7698
  })
7755
7699
  }
7756
7700
  },
7757
7701
  updateHoldLabel: {
7758
7702
  method: "PATCH",
7759
7703
  path: "/:id",
7760
- pathParams: z110.object({ id: z110.string().uuid() }),
7761
- body: z110.object({ name: z110.string() }),
7704
+ pathParams: z108.object({ id: z108.string().uuid() }),
7705
+ body: z108.object({ name: z108.string() }),
7762
7706
  responses: {
7763
7707
  200: DefaultSuccessResponseSchema.extend({
7764
7708
  holdLabel: HoldLabelSchema
@@ -7768,7 +7712,7 @@ var holdLabelContract = initContract41().router(
7768
7712
  deleteHoldLabel: {
7769
7713
  method: "DELETE",
7770
7714
  path: "/:id",
7771
- pathParams: z110.object({ id: z110.string().uuid() }),
7715
+ pathParams: z108.object({ id: z108.string().uuid() }),
7772
7716
  body: null,
7773
7717
  responses: {
7774
7718
  200: DefaultSuccessResponseSchema
@@ -7779,17 +7723,17 @@ var holdLabelContract = initContract41().router(
7779
7723
  path: "/auto-unhold",
7780
7724
  responses: {
7781
7725
  200: DefaultSuccessResponseSchema.extend({
7782
- autoUnhold: z110.boolean()
7726
+ autoUnhold: z108.boolean()
7783
7727
  })
7784
7728
  }
7785
7729
  },
7786
7730
  updateAutoUnhold: {
7787
7731
  method: "PATCH",
7788
7732
  path: "/auto-unhold",
7789
- body: z110.object({ autoUnhold: z110.boolean() }),
7733
+ body: z108.object({ autoUnhold: z108.boolean() }),
7790
7734
  responses: {
7791
7735
  200: DefaultSuccessResponseSchema.extend({
7792
- autoUnhold: z110.boolean()
7736
+ autoUnhold: z108.boolean()
7793
7737
  })
7794
7738
  }
7795
7739
  }
@@ -7797,6 +7741,62 @@ var holdLabelContract = initContract41().router(
7797
7741
  { pathPrefix: "hold-label" }
7798
7742
  );
7799
7743
 
7744
+ // src/sms/index.ts
7745
+ import { initContract as initContract41 } from "@ts-rest/core";
7746
+
7747
+ // src/sms/schema.ts
7748
+ import z110 from "zod";
7749
+
7750
+ // src/sms/validation.ts
7751
+ import z109 from "zod";
7752
+ var ConnectSMSSchema2 = z109.object({
7753
+ name: z109.string(),
7754
+ type: z109.enum(["sms_vonage" /* VONAGE_SMS */]),
7755
+ vonageCredentials: z109.object({
7756
+ mobileNumber: z109.string(),
7757
+ apiKey: z109.string(),
7758
+ apiSecret: z109.string()
7759
+ })
7760
+ });
7761
+
7762
+ // src/sms/schema.ts
7763
+ var ConnectSMSChannelSchema = z110.object({
7764
+ actor: z110.object({
7765
+ id: z110.string().uuid(),
7766
+ name: z110.string(),
7767
+ email: z110.string().email(),
7768
+ address: z110.string().nullable(),
7769
+ phone: z110.string().nullable()
7770
+ }),
7771
+ channel: ConnectSMSSchema2
7772
+ });
7773
+
7774
+ // src/sms/index.ts
7775
+ var smsContract = initContract41().router({
7776
+ connect: {
7777
+ method: "POST",
7778
+ path: "/connect",
7779
+ body: ConnectSMSChannelSchema,
7780
+ responses: {
7781
+ 200: DefaultSuccessResponseSchema.extend({
7782
+ channel: ChannelSchema
7783
+ }),
7784
+ 400: DefaultErrorResponseSchema,
7785
+ 500: DefaultErrorResponseSchema
7786
+ }
7787
+ },
7788
+ sendMessage: {
7789
+ method: "POST",
7790
+ path: "/message",
7791
+ body: SendMessageToPlatformSchema,
7792
+ responses: {
7793
+ 200: DefaultSuccessResponseSchema,
7794
+ 400: DefaultErrorResponseSchema,
7795
+ 500: DefaultErrorResponseSchema
7796
+ }
7797
+ }
7798
+ });
7799
+
7800
7800
  // src/contract.ts
7801
7801
  var apiContract = initContract42().router({
7802
7802
  auth: authContract,
@@ -7878,6 +7878,9 @@ var workflowContract = initContract42().router(
7878
7878
  pathPrefix: "workflow/"
7879
7879
  }
7880
7880
  );
7881
+ var holdLabelContract2 = initContract42().router({
7882
+ holdLabel: holdLabelContract
7883
+ });
7881
7884
  var settingsPathPrefix = "settings/";
7882
7885
  var ticketSettingContract = initContract42().router(
7883
7886
  {
@@ -8931,7 +8934,7 @@ export {
8931
8934
  facebookFeedContract2 as facebookFeedContract,
8932
8935
  feedPostContract,
8933
8936
  generalTagSettingContract,
8934
- holdLabelContract,
8937
+ holdLabelContract2 as holdLabelContract,
8935
8938
  mailContract,
8936
8939
  mainChatContract,
8937
8940
  mainChatMessageContract,