@kl1/contracts 1.3.37 → 1.3.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +419 -0
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +420 -1
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/schema.d.ts +369 -0
- package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import {
|
2
|
+
import { PresenceStatusSchema, TPresenceStatusOption } from './schema';
|
3
3
|
import { CreatePresenceStatusSchema, UpdatePresenceStatusSchema } from './validation';
|
4
4
|
export type CreatePresenceStatusRequest = z.infer<typeof CreatePresenceStatusSchema>;
|
5
5
|
export type UpdatePresenceStatusRequest = z.infer<typeof UpdatePresenceStatusSchema>;
|
@@ -624,5 +624,424 @@ export declare const presenceStatusContract: {
|
|
624
624
|
'x-client-timezone'?: string | undefined;
|
625
625
|
}>>>;
|
626
626
|
};
|
627
|
+
getAllUserPresenceStatus: {
|
628
|
+
summary: "Get all users presence status";
|
629
|
+
method: "GET";
|
630
|
+
responses: {
|
631
|
+
200: z.ZodArray<z.ZodObject<{
|
632
|
+
id: z.ZodString;
|
633
|
+
createdAt: z.ZodDate;
|
634
|
+
updatedAt: z.ZodDate;
|
635
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
636
|
+
userId: z.ZodString;
|
637
|
+
user: z.ZodObject<{
|
638
|
+
name: z.ZodString;
|
639
|
+
id: z.ZodString;
|
640
|
+
address: z.ZodNullable<z.ZodString>;
|
641
|
+
email: z.ZodString;
|
642
|
+
createdAt: z.ZodDate;
|
643
|
+
updatedAt: z.ZodDate;
|
644
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
645
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
646
|
+
password: z.ZodString;
|
647
|
+
phone: z.ZodNullable<z.ZodString>;
|
648
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
649
|
+
roles: z.ZodArray<z.ZodObject<{
|
650
|
+
id: z.ZodString;
|
651
|
+
createdAt: z.ZodDate;
|
652
|
+
updatedAt: z.ZodDate;
|
653
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
654
|
+
systemName: z.ZodString;
|
655
|
+
displayName: z.ZodString;
|
656
|
+
description: z.ZodNullable<z.ZodString>;
|
657
|
+
permissions: z.ZodArray<z.ZodObject<{
|
658
|
+
id: z.ZodString;
|
659
|
+
createdAt: z.ZodDate;
|
660
|
+
updatedAt: z.ZodDate;
|
661
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
662
|
+
systemName: z.ZodString;
|
663
|
+
displayName: z.ZodString;
|
664
|
+
description: z.ZodNullable<z.ZodString>;
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
666
|
+
id: string;
|
667
|
+
description: string | null;
|
668
|
+
createdAt: Date;
|
669
|
+
updatedAt: Date;
|
670
|
+
deletedAt: Date | null;
|
671
|
+
systemName: string;
|
672
|
+
displayName: string;
|
673
|
+
}, {
|
674
|
+
id: string;
|
675
|
+
description: string | null;
|
676
|
+
createdAt: Date;
|
677
|
+
updatedAt: Date;
|
678
|
+
deletedAt: Date | null;
|
679
|
+
systemName: string;
|
680
|
+
displayName: string;
|
681
|
+
}>, "many">;
|
682
|
+
}, "strip", z.ZodTypeAny, {
|
683
|
+
id: string;
|
684
|
+
description: string | null;
|
685
|
+
createdAt: Date;
|
686
|
+
updatedAt: Date;
|
687
|
+
deletedAt: Date | null;
|
688
|
+
systemName: string;
|
689
|
+
displayName: string;
|
690
|
+
permissions: {
|
691
|
+
id: string;
|
692
|
+
description: string | null;
|
693
|
+
createdAt: Date;
|
694
|
+
updatedAt: Date;
|
695
|
+
deletedAt: Date | null;
|
696
|
+
systemName: string;
|
697
|
+
displayName: string;
|
698
|
+
}[];
|
699
|
+
}, {
|
700
|
+
id: string;
|
701
|
+
description: string | null;
|
702
|
+
createdAt: Date;
|
703
|
+
updatedAt: Date;
|
704
|
+
deletedAt: Date | null;
|
705
|
+
systemName: string;
|
706
|
+
displayName: string;
|
707
|
+
permissions: {
|
708
|
+
id: string;
|
709
|
+
description: string | null;
|
710
|
+
createdAt: Date;
|
711
|
+
updatedAt: Date;
|
712
|
+
deletedAt: Date | null;
|
713
|
+
systemName: string;
|
714
|
+
displayName: string;
|
715
|
+
}[];
|
716
|
+
}>, "many">;
|
717
|
+
extension: z.ZodObject<{
|
718
|
+
id: z.ZodString;
|
719
|
+
createdAt: z.ZodDate;
|
720
|
+
updatedAt: z.ZodDate;
|
721
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
722
|
+
userId: z.ZodNullable<z.ZodString>;
|
723
|
+
sipServerUrl: z.ZodString;
|
724
|
+
sipUserName: z.ZodString;
|
725
|
+
webphoneLoginUser: z.ZodString;
|
726
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
727
|
+
extensionName: z.ZodString;
|
728
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
729
|
+
}, "strip", z.ZodTypeAny, {
|
730
|
+
id: string;
|
731
|
+
createdAt: Date;
|
732
|
+
updatedAt: Date;
|
733
|
+
deletedAt: Date | null;
|
734
|
+
userId: string | null;
|
735
|
+
sipServerUrl: string;
|
736
|
+
sipUserName: string;
|
737
|
+
webphoneLoginUser: string;
|
738
|
+
extensionId: string | null;
|
739
|
+
extensionName: string;
|
740
|
+
telephonySignature: string | null;
|
741
|
+
}, {
|
742
|
+
id: string;
|
743
|
+
createdAt: Date;
|
744
|
+
updatedAt: Date;
|
745
|
+
deletedAt: Date | null;
|
746
|
+
userId: string | null;
|
747
|
+
sipServerUrl: string;
|
748
|
+
sipUserName: string;
|
749
|
+
webphoneLoginUser: string;
|
750
|
+
extensionId: string | null;
|
751
|
+
extensionName: string;
|
752
|
+
telephonySignature: string | null;
|
753
|
+
}>;
|
754
|
+
}, "strip", z.ZodTypeAny, {
|
755
|
+
name: string;
|
756
|
+
id: string;
|
757
|
+
address: string | null;
|
758
|
+
email: string;
|
759
|
+
createdAt: Date;
|
760
|
+
updatedAt: Date;
|
761
|
+
deletedAt: Date | null;
|
762
|
+
emailVerifiedAt: Date | null;
|
763
|
+
password: string;
|
764
|
+
phone: string | null;
|
765
|
+
notificationCount: number | null;
|
766
|
+
roles: {
|
767
|
+
id: string;
|
768
|
+
description: string | null;
|
769
|
+
createdAt: Date;
|
770
|
+
updatedAt: Date;
|
771
|
+
deletedAt: Date | null;
|
772
|
+
systemName: string;
|
773
|
+
displayName: string;
|
774
|
+
permissions: {
|
775
|
+
id: string;
|
776
|
+
description: string | null;
|
777
|
+
createdAt: Date;
|
778
|
+
updatedAt: Date;
|
779
|
+
deletedAt: Date | null;
|
780
|
+
systemName: string;
|
781
|
+
displayName: string;
|
782
|
+
}[];
|
783
|
+
}[];
|
784
|
+
extension: {
|
785
|
+
id: string;
|
786
|
+
createdAt: Date;
|
787
|
+
updatedAt: Date;
|
788
|
+
deletedAt: Date | null;
|
789
|
+
userId: string | null;
|
790
|
+
sipServerUrl: string;
|
791
|
+
sipUserName: string;
|
792
|
+
webphoneLoginUser: string;
|
793
|
+
extensionId: string | null;
|
794
|
+
extensionName: string;
|
795
|
+
telephonySignature: string | null;
|
796
|
+
};
|
797
|
+
}, {
|
798
|
+
name: string;
|
799
|
+
id: string;
|
800
|
+
address: string | null;
|
801
|
+
email: string;
|
802
|
+
createdAt: Date;
|
803
|
+
updatedAt: Date;
|
804
|
+
deletedAt: Date | null;
|
805
|
+
emailVerifiedAt: Date | null;
|
806
|
+
password: string;
|
807
|
+
phone: string | null;
|
808
|
+
notificationCount: number | null;
|
809
|
+
roles: {
|
810
|
+
id: string;
|
811
|
+
description: string | null;
|
812
|
+
createdAt: Date;
|
813
|
+
updatedAt: Date;
|
814
|
+
deletedAt: Date | null;
|
815
|
+
systemName: string;
|
816
|
+
displayName: string;
|
817
|
+
permissions: {
|
818
|
+
id: string;
|
819
|
+
description: string | null;
|
820
|
+
createdAt: Date;
|
821
|
+
updatedAt: Date;
|
822
|
+
deletedAt: Date | null;
|
823
|
+
systemName: string;
|
824
|
+
displayName: string;
|
825
|
+
}[];
|
826
|
+
}[];
|
827
|
+
extension: {
|
828
|
+
id: string;
|
829
|
+
createdAt: Date;
|
830
|
+
updatedAt: Date;
|
831
|
+
deletedAt: Date | null;
|
832
|
+
userId: string | null;
|
833
|
+
sipServerUrl: string;
|
834
|
+
sipUserName: string;
|
835
|
+
webphoneLoginUser: string;
|
836
|
+
extensionId: string | null;
|
837
|
+
extensionName: string;
|
838
|
+
telephonySignature: string | null;
|
839
|
+
};
|
840
|
+
}>;
|
841
|
+
presenceStatus: z.ZodObject<{
|
842
|
+
id: z.ZodString;
|
843
|
+
createdAt: z.ZodDate;
|
844
|
+
updatedAt: z.ZodDate;
|
845
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
846
|
+
systemName: z.ZodString;
|
847
|
+
displayName: z.ZodString;
|
848
|
+
description: z.ZodNullable<z.ZodString>;
|
849
|
+
position: z.ZodNumber;
|
850
|
+
emoji: z.ZodNullable<z.ZodString>;
|
851
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
852
|
+
}, "strip", z.ZodTypeAny, {
|
853
|
+
emoji: string | null;
|
854
|
+
id: string;
|
855
|
+
position: number;
|
856
|
+
description: string | null;
|
857
|
+
createdAt: Date;
|
858
|
+
updatedAt: Date;
|
859
|
+
deletedAt: Date | null;
|
860
|
+
systemName: string;
|
861
|
+
displayName: string;
|
862
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
863
|
+
}, {
|
864
|
+
emoji: string | null;
|
865
|
+
id: string;
|
866
|
+
position: number;
|
867
|
+
description: string | null;
|
868
|
+
createdAt: Date;
|
869
|
+
updatedAt: Date;
|
870
|
+
deletedAt: Date | null;
|
871
|
+
systemName: string;
|
872
|
+
displayName: string;
|
873
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
874
|
+
}>;
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
876
|
+
id: string;
|
877
|
+
user: {
|
878
|
+
name: string;
|
879
|
+
id: string;
|
880
|
+
address: string | null;
|
881
|
+
email: string;
|
882
|
+
createdAt: Date;
|
883
|
+
updatedAt: Date;
|
884
|
+
deletedAt: Date | null;
|
885
|
+
emailVerifiedAt: Date | null;
|
886
|
+
password: string;
|
887
|
+
phone: string | null;
|
888
|
+
notificationCount: number | null;
|
889
|
+
roles: {
|
890
|
+
id: string;
|
891
|
+
description: string | null;
|
892
|
+
createdAt: Date;
|
893
|
+
updatedAt: Date;
|
894
|
+
deletedAt: Date | null;
|
895
|
+
systemName: string;
|
896
|
+
displayName: string;
|
897
|
+
permissions: {
|
898
|
+
id: string;
|
899
|
+
description: string | null;
|
900
|
+
createdAt: Date;
|
901
|
+
updatedAt: Date;
|
902
|
+
deletedAt: Date | null;
|
903
|
+
systemName: string;
|
904
|
+
displayName: string;
|
905
|
+
}[];
|
906
|
+
}[];
|
907
|
+
extension: {
|
908
|
+
id: string;
|
909
|
+
createdAt: Date;
|
910
|
+
updatedAt: Date;
|
911
|
+
deletedAt: Date | null;
|
912
|
+
userId: string | null;
|
913
|
+
sipServerUrl: string;
|
914
|
+
sipUserName: string;
|
915
|
+
webphoneLoginUser: string;
|
916
|
+
extensionId: string | null;
|
917
|
+
extensionName: string;
|
918
|
+
telephonySignature: string | null;
|
919
|
+
};
|
920
|
+
};
|
921
|
+
createdAt: Date;
|
922
|
+
updatedAt: Date;
|
923
|
+
deletedAt: Date | null;
|
924
|
+
userId: string;
|
925
|
+
presenceStatus: {
|
926
|
+
emoji: string | null;
|
927
|
+
id: string;
|
928
|
+
position: number;
|
929
|
+
description: string | null;
|
930
|
+
createdAt: Date;
|
931
|
+
updatedAt: Date;
|
932
|
+
deletedAt: Date | null;
|
933
|
+
systemName: string;
|
934
|
+
displayName: string;
|
935
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
936
|
+
};
|
937
|
+
}, {
|
938
|
+
id: string;
|
939
|
+
user: {
|
940
|
+
name: string;
|
941
|
+
id: string;
|
942
|
+
address: string | null;
|
943
|
+
email: string;
|
944
|
+
createdAt: Date;
|
945
|
+
updatedAt: Date;
|
946
|
+
deletedAt: Date | null;
|
947
|
+
emailVerifiedAt: Date | null;
|
948
|
+
password: string;
|
949
|
+
phone: string | null;
|
950
|
+
notificationCount: number | null;
|
951
|
+
roles: {
|
952
|
+
id: string;
|
953
|
+
description: string | null;
|
954
|
+
createdAt: Date;
|
955
|
+
updatedAt: Date;
|
956
|
+
deletedAt: Date | null;
|
957
|
+
systemName: string;
|
958
|
+
displayName: string;
|
959
|
+
permissions: {
|
960
|
+
id: string;
|
961
|
+
description: string | null;
|
962
|
+
createdAt: Date;
|
963
|
+
updatedAt: Date;
|
964
|
+
deletedAt: Date | null;
|
965
|
+
systemName: string;
|
966
|
+
displayName: string;
|
967
|
+
}[];
|
968
|
+
}[];
|
969
|
+
extension: {
|
970
|
+
id: string;
|
971
|
+
createdAt: Date;
|
972
|
+
updatedAt: Date;
|
973
|
+
deletedAt: Date | null;
|
974
|
+
userId: string | null;
|
975
|
+
sipServerUrl: string;
|
976
|
+
sipUserName: string;
|
977
|
+
webphoneLoginUser: string;
|
978
|
+
extensionId: string | null;
|
979
|
+
extensionName: string;
|
980
|
+
telephonySignature: string | null;
|
981
|
+
};
|
982
|
+
};
|
983
|
+
createdAt: Date;
|
984
|
+
updatedAt: Date;
|
985
|
+
deletedAt: Date | null;
|
986
|
+
userId: string;
|
987
|
+
presenceStatus: {
|
988
|
+
emoji: string | null;
|
989
|
+
id: string;
|
990
|
+
position: number;
|
991
|
+
description: string | null;
|
992
|
+
createdAt: Date;
|
993
|
+
updatedAt: Date;
|
994
|
+
deletedAt: Date | null;
|
995
|
+
systemName: string;
|
996
|
+
displayName: string;
|
997
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
998
|
+
};
|
999
|
+
}>, "many">;
|
1000
|
+
400: z.ZodObject<{
|
1001
|
+
message: z.ZodString;
|
1002
|
+
}, "strip", z.ZodTypeAny, {
|
1003
|
+
message: string;
|
1004
|
+
}, {
|
1005
|
+
message: string;
|
1006
|
+
}>;
|
1007
|
+
401: z.ZodObject<{
|
1008
|
+
message: z.ZodString;
|
1009
|
+
error: z.ZodAny;
|
1010
|
+
}, "strip", z.ZodTypeAny, {
|
1011
|
+
message: string;
|
1012
|
+
error?: any;
|
1013
|
+
}, {
|
1014
|
+
message: string;
|
1015
|
+
error?: any;
|
1016
|
+
}>;
|
1017
|
+
500: z.ZodObject<{
|
1018
|
+
message: z.ZodString;
|
1019
|
+
error: z.ZodAny;
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
1021
|
+
message: string;
|
1022
|
+
error?: any;
|
1023
|
+
}, {
|
1024
|
+
message: string;
|
1025
|
+
error?: any;
|
1026
|
+
}>;
|
1027
|
+
};
|
1028
|
+
path: "ms/presence_status/user";
|
1029
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
1030
|
+
'x-tenant': z.ZodString;
|
1031
|
+
'x-service-token': z.ZodString;
|
1032
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
1033
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
1034
|
+
}, "strip", z.ZodTypeAny, {
|
1035
|
+
'x-tenant': string;
|
1036
|
+
'x-service-token': string;
|
1037
|
+
'x-client-timezone': string;
|
1038
|
+
'x-code'?: string | undefined;
|
1039
|
+
}, {
|
1040
|
+
'x-tenant': string;
|
1041
|
+
'x-service-token': string;
|
1042
|
+
'x-code'?: string | undefined;
|
1043
|
+
'x-client-timezone'?: string | undefined;
|
1044
|
+
}>>>;
|
1045
|
+
};
|
627
1046
|
};
|
628
1047
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEzE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GlC,CAAC"}
|