@7365admin1/core 2.68.0 → 2.69.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 2.69.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a194c22: release latest changes preloved api, bulletin board api, and etc changes
8
+
3
9
  ## 2.68.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -556,6 +556,18 @@ declare function useOrgRepo(): {
556
556
  updateStatusById: (_id: string | ObjectId, status: string) => Promise<string>;
557
557
  deleteById: (_id: string | ObjectId) => Promise<string>;
558
558
  getOrgsByEmail: (email: string) => Promise<TOrg[]>;
559
+ getOrganizationsWithSubscription: ({ search, page, limit, status, type, billingCycle, }: {
560
+ search?: string | undefined;
561
+ page?: number | undefined;
562
+ limit?: number | undefined;
563
+ status?: string | undefined;
564
+ type?: string | undefined;
565
+ billingCycle?: string | undefined;
566
+ }) => Promise<{
567
+ items: any[];
568
+ pages: number;
569
+ pageRange: string;
570
+ }>;
559
571
  };
560
572
 
561
573
  declare function useOrgController(): {
@@ -575,6 +587,7 @@ declare function useOrgController(): {
575
587
  */
576
588
  declare function useOrgControllerV2(): {
577
589
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
590
+ getOrganizationsWithSubscription: (req: Request, res: Response, next: NextFunction) => Promise<void>;
578
591
  };
579
592
 
580
593
  declare enum SubscriptionType {
@@ -923,29 +936,29 @@ declare const TInvoice: z.ZodObject<{
923
936
  description?: string | undefined;
924
937
  userId?: string | ObjectId | undefined;
925
938
  orgId?: string | ObjectId | undefined;
926
- currency?: string | undefined;
927
939
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
940
+ currency?: string | undefined;
928
941
  subscriptionId?: string | ObjectId | undefined;
929
942
  }, {
930
943
  description?: string | undefined;
931
944
  userId?: string | ObjectId | undefined;
932
945
  orgId?: string | ObjectId | undefined;
933
- currency?: string | undefined;
934
946
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
947
+ currency?: string | undefined;
935
948
  subscriptionId?: string | ObjectId | undefined;
936
949
  }>>>, {
937
950
  description?: string | undefined;
938
951
  userId?: string | ObjectId | undefined;
939
952
  orgId?: string | ObjectId | undefined;
940
- currency?: string | undefined;
941
953
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
954
+ currency?: string | undefined;
942
955
  subscriptionId?: string | ObjectId | undefined;
943
956
  } | undefined, {
944
957
  description?: string | undefined;
945
958
  userId?: string | ObjectId | undefined;
946
959
  orgId?: string | ObjectId | undefined;
947
- currency?: string | undefined;
948
960
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
961
+ currency?: string | undefined;
949
962
  subscriptionId?: string | ObjectId | undefined;
950
963
  } | undefined>;
951
964
  descriptions: z.ZodOptional<z.ZodString>;
@@ -971,8 +984,8 @@ declare const TInvoice: z.ZodObject<{
971
984
  description?: string | undefined;
972
985
  userId?: string | ObjectId | undefined;
973
986
  orgId?: string | ObjectId | undefined;
974
- currency?: string | undefined;
975
987
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
988
+ currency?: string | undefined;
976
989
  subscriptionId?: string | ObjectId | undefined;
977
990
  } | undefined;
978
991
  descriptions?: string | undefined;
@@ -996,8 +1009,8 @@ declare const TInvoice: z.ZodObject<{
996
1009
  description?: string | undefined;
997
1010
  userId?: string | ObjectId | undefined;
998
1011
  orgId?: string | ObjectId | undefined;
999
- currency?: string | undefined;
1000
1012
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
1013
+ currency?: string | undefined;
1001
1014
  subscriptionId?: string | ObjectId | undefined;
1002
1015
  } | undefined;
1003
1016
  descriptions?: string | undefined;
@@ -1025,8 +1038,8 @@ declare function useInvoiceModel(db: Db): {
1025
1038
  description?: string | undefined;
1026
1039
  userId?: string | ObjectId | undefined;
1027
1040
  orgId?: string | ObjectId | undefined;
1028
- currency?: string | undefined;
1029
1041
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
1042
+ currency?: string | undefined;
1030
1043
  subscriptionId?: string | ObjectId | undefined;
1031
1044
  } | undefined;
1032
1045
  descriptions?: string | undefined;
@@ -1057,8 +1070,8 @@ declare function useInvoiceRepo(): {
1057
1070
  description?: string | undefined;
1058
1071
  userId?: string | ObjectId | undefined;
1059
1072
  orgId?: string | ObjectId | undefined;
1060
- currency?: string | undefined;
1061
1073
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
1074
+ currency?: string | undefined;
1062
1075
  subscriptionId?: string | ObjectId | undefined;
1063
1076
  } | undefined;
1064
1077
  descriptions?: string | undefined;
@@ -1093,8 +1106,8 @@ declare function useInvoiceRepo(): {
1093
1106
  description?: string | undefined;
1094
1107
  userId?: string | ObjectId | undefined;
1095
1108
  orgId?: string | ObjectId | undefined;
1096
- currency?: string | undefined;
1097
1109
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
1110
+ currency?: string | undefined;
1098
1111
  subscriptionId?: string | ObjectId | undefined;
1099
1112
  } | undefined;
1100
1113
  descriptions?: string | undefined;
@@ -1119,8 +1132,8 @@ declare function useInvoiceRepo(): {
1119
1132
  description?: string | undefined;
1120
1133
  userId?: string | ObjectId | undefined;
1121
1134
  orgId?: string | ObjectId | undefined;
1122
- currency?: string | undefined;
1123
1135
  billingCycle?: "monthly" | "yearly" | "quarterly" | undefined;
1136
+ currency?: string | undefined;
1124
1137
  subscriptionId?: string | ObjectId | undefined;
1125
1138
  } | undefined;
1126
1139
  descriptions?: string | undefined;
@@ -3770,12 +3783,11 @@ declare function useDocumentManagementRepo(): {
3770
3783
  createIndex: () => Promise<void>;
3771
3784
  createTextIndex: () => Promise<void>;
3772
3785
  add: (value: TDocumentManagement, session?: ClientSession) => Promise<ObjectId>;
3773
- getAll: ({ search, page, limit, sort, status, org, site, parentId, }: {
3786
+ getAll: ({ search, page, limit, type, org, site, parentId, }: {
3774
3787
  search?: string | undefined;
3775
3788
  page?: number | undefined;
3776
3789
  limit?: number | undefined;
3777
- sort?: Record<string, any> | undefined;
3778
- status: string;
3790
+ type?: string | undefined;
3779
3791
  org?: string | ObjectId | undefined;
3780
3792
  site: string | ObjectId;
3781
3793
  parentId?: string | ObjectId | null | undefined;
@@ -4761,6 +4773,11 @@ declare function UseAccessManagementRepo(): {
4761
4773
  siteId: string | ObjectId;
4762
4774
  unitId: string | ObjectId;
4763
4775
  }) => Promise<bson.Document[]>;
4776
+ userAccessCardsRepo: ({ userId, siteId, isLiftCard, }: {
4777
+ userId: string | ObjectId;
4778
+ siteId: string | ObjectId;
4779
+ isLiftCard: boolean;
4780
+ }) => Promise<bson.Document[]>;
4764
4781
  };
4765
4782
 
4766
4783
  declare function useAccessManagementController(): {
@@ -4805,6 +4822,7 @@ declare function useAccessManagementController(): {
4805
4822
  visitorCheckout: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4806
4823
  uploadTemplate: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4807
4824
  getResidents: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4825
+ userAccessCards: (req: Request, res: Response) => Promise<Response<any, Record<string, any>>>;
4808
4826
  };
4809
4827
 
4810
4828
  declare const DEVICE_STATUS: {
@@ -6643,6 +6661,8 @@ declare function useVerificationRepoV2(): {
6643
6661
  }) => Promise<{}>;
6644
6662
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
6645
6663
  countPendingOrgInvites: (orgId: string | ObjectId) => Promise<number>;
6664
+ getPendingVerificationByEmail: (email: string) => Promise<TVerificationV2 | null>;
6665
+ updateVerificationCodeById: (_id: string | ObjectId, verificationCode: string, expireAt: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
6646
6666
  };
6647
6667
 
6648
6668
  declare function useVerificationServiceV2(): {
@@ -6676,6 +6696,9 @@ declare function useVerificationServiceV2(): {
6676
6696
  }) => Promise<bson.ObjectId>;
6677
6697
  createForgetPassword: (email: string) => Promise<string>;
6678
6698
  cancelUserInvitation: (id: string) => Promise<void>;
6699
+ resendSignUpVerification: (email: string) => Promise<{
6700
+ message: string;
6701
+ }>;
6679
6702
  };
6680
6703
 
6681
6704
  declare function useVerificationControllerV2(): {
@@ -6686,6 +6709,7 @@ declare function useVerificationControllerV2(): {
6686
6709
  createForgetPassword: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6687
6710
  getVerifications: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6688
6711
  cancelUserInvitation: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6712
+ resendSignUpVerification: (req: Request, res: Response, next: NextFunction) => Promise<void>;
6689
6713
  };
6690
6714
 
6691
6715
  declare function useAuthControllerV2(): {
@@ -6848,7 +6872,8 @@ type TPost = {
6848
6872
  title?: string;
6849
6873
  description?: string;
6850
6874
  attachments?: Array<string | ObjectId>;
6851
- category?: Array<string | ObjectId>;
6875
+ category?: string | ObjectId;
6876
+ subcategory?: string | ObjectId;
6852
6877
  currency?: string;
6853
6878
  price?: number;
6854
6879
  status?: PostStatus;
@@ -6866,7 +6891,8 @@ declare function MPost(value: TPost): {
6866
6891
  title: string;
6867
6892
  description: string;
6868
6893
  attachments: (string | ObjectId)[];
6869
- category: (string | ObjectId)[];
6894
+ category: string | ObjectId;
6895
+ subcategory: string | ObjectId;
6870
6896
  currency: string;
6871
6897
  price: number;
6872
6898
  status: PostStatus;
@@ -6881,14 +6907,15 @@ declare function MPost(value: TPost): {
6881
6907
  declare function usePostPrelovedRepo(): {
6882
6908
  add: (value: TPost, session?: any) => Promise<ObjectId>;
6883
6909
  getById: (_id: string | ObjectId) => Promise<bson.Document>;
6884
- getAll: ({ search, page, limit, filter, site, status, category, }: {
6910
+ getAll: ({ search, page, limit, filter, site, status, category, subcategory, }: {
6885
6911
  search?: string | undefined;
6886
6912
  page?: number | undefined;
6887
6913
  limit?: number | undefined;
6888
6914
  filter?: string | undefined;
6889
6915
  site?: string | ObjectId | undefined;
6890
6916
  status?: string | string[] | undefined;
6891
- category?: (string | ObjectId)[] | undefined;
6917
+ category?: string | ObjectId | undefined;
6918
+ subcategory?: (string | ObjectId)[] | undefined;
6892
6919
  }, session?: any) => Promise<{
6893
6920
  items: any[];
6894
6921
  pages: number;