@7365admin1/core 3.6.0 → 3.7.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
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3f8198b: release changes in preloved api, push notification, billing api, etc.
8
+
3
9
  ## 3.6.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -2889,7 +2889,7 @@ declare function useVisitorTransactionRepo(): {
2889
2889
  pages: number;
2890
2890
  pageRange: string;
2891
2891
  }>;
2892
- getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null>;
2892
+ getOpenByPlateNumber: (plateNumber: string, site: string | ObjectId) => Promise<TVisitorTransaction | null | undefined>;
2893
2893
  updateById: (_id: string | ObjectId, value: Partial<TVisitorTransaction>, session?: ClientSession, isManualCheckOut?: boolean) => Promise<mongodb.UpdateResult<bson.Document>>;
2894
2894
  deleteVisitorTransaction: (_id: string | ObjectId) => Promise<number>;
2895
2895
  createTextIndex: () => Promise<void>;
@@ -6005,105 +6005,10 @@ declare function getPeriodRangeWithPrevious(period: Period): {
6005
6005
  };
6006
6006
  declare function calculatePercentage(current: number, previous: number): number;
6007
6007
  declare function useNewDashboardRepo(): {
6008
- getSecurityDashboard: ({ siteId, feedback, workOrder, vehicle, building, visitor, incident, guest, }: {
6008
+ getSecurityDashboard: ({ siteId, period, type, }: {
6009
6009
  siteId: string;
6010
- feedback?: Period | undefined;
6011
- workOrder?: Period | undefined;
6012
- vehicle?: Period | undefined;
6013
- building?: Period | undefined;
6014
- visitor?: Period | undefined;
6015
- incident?: Period | undefined;
6016
- guest?: Period | undefined;
6017
- }) => Promise<{
6018
- feedbacks: {
6019
- count: number;
6020
- percentage: number;
6021
- };
6022
- workOrders: {
6023
- count: number;
6024
- percentage: number;
6025
- };
6026
- vehicles: {
6027
- count: number;
6028
- percentage: number;
6029
- };
6030
- buildings: {
6031
- count: number;
6032
- percentage: number;
6033
- };
6034
- visitors: {
6035
- count: number;
6036
- percentage: number;
6037
- };
6038
- incidents: {
6039
- count: number;
6040
- percentage: number;
6041
- };
6042
- guests: {
6043
- count: number;
6044
- percentage: number;
6045
- };
6046
- }>;
6047
- getPropertyManagementDashboard: ({ siteId, feedback, workOrder, sitePeople, facilityBooking, bulletinBoard, event, vehicle, building, visitor, incident, }: {
6048
- siteId: string;
6049
- feedback?: Period | undefined;
6050
- workOrder?: Period | undefined;
6051
- sitePeople?: Period | undefined;
6052
- facilityBooking?: Period | undefined;
6053
- bulletinBoard?: Period | undefined;
6054
- event?: Period | undefined;
6055
- vehicle?: Period | undefined;
6056
- building?: Period | undefined;
6057
- visitor?: Period | undefined;
6058
- incident?: Period | undefined;
6059
- }) => Promise<{
6060
- feedbacks: {
6061
- count: number;
6062
- percentage: number;
6063
- };
6064
- workOrders: {
6065
- count: number;
6066
- percentage: number;
6067
- };
6068
- vehicles: {
6069
- count: number;
6070
- percentage: number;
6071
- };
6072
- buildings: {
6073
- count: number;
6074
- percentage: number;
6075
- };
6076
- visitors: {
6077
- count: number;
6078
- percentage: number;
6079
- };
6080
- incidents: {
6081
- count: number;
6082
- percentage: number;
6083
- };
6084
- sitePeople: {
6085
- count: number;
6086
- percentage: number;
6087
- };
6088
- bulletinBoards: {
6089
- count: number;
6090
- percentage: number;
6091
- };
6092
- events: {
6093
- count: number;
6094
- percentage: number;
6095
- };
6096
- facilityBookings: {
6097
- count: number;
6098
- percentage: number;
6099
- };
6100
- }>;
6101
- getServiceDashboard: ({ site, serviceType, period, type, facility, }: {
6102
- site: string | ObjectId;
6103
- serviceType: TAppServiceType;
6104
6010
  period?: Period | undefined;
6105
6011
  type?: string | undefined;
6106
- facility?: string | undefined;
6107
6012
  }) => Promise<{
6108
6013
  openWorkOrder: {
6109
6014
  count: any;
@@ -6120,13 +6025,22 @@ declare function useNewDashboardRepo(): {
6120
6025
  currentlyOnSite: number;
6121
6026
  percentage: number;
6122
6027
  };
6123
- facilityBooking: {
6124
- count: any;
6125
- ongoing: any;
6126
- waitingApproval: any;
6028
+ patrolCompliance: {
6029
+ count: number;
6030
+ missedCheckpoints: any;
6031
+ missed: any;
6127
6032
  percentage: number;
6128
6033
  };
6129
- } | {
6034
+ activePatrolItems: {
6035
+ id: string;
6036
+ title: any;
6037
+ subtitle: string;
6038
+ person: string;
6039
+ status: string;
6040
+ time: string;
6041
+ }[];
6042
+ }>;
6043
+ getPropertyManagementDashboard: (siteId: string, period?: Period, type?: string, facility?: string) => Promise<{
6130
6044
  openWorkOrder: {
6131
6045
  count: any;
6132
6046
  inProgress: any;
@@ -6142,13 +6056,21 @@ declare function useNewDashboardRepo(): {
6142
6056
  currentlyOnSite: number;
6143
6057
  percentage: number;
6144
6058
  };
6145
- patrolCompliance: {
6146
- count: number;
6147
- missedCheckpoints: any;
6148
- missed: any;
6059
+ facilityBooking: {
6060
+ count: any;
6061
+ ongoing: any;
6062
+ waitingApproval: any;
6149
6063
  percentage: number;
6150
6064
  };
6151
- } | {
6065
+ upcomingEvents: mongodb.WithId<bson.Document>[];
6066
+ todayReminders: mongodb.WithId<bson.Document>[];
6067
+ todayAttentions: any[];
6068
+ }>;
6069
+ getServiceDashboard: ({ site, serviceType, period, }: {
6070
+ site: string | ObjectId;
6071
+ serviceType: TAppServiceType;
6072
+ period?: Period | undefined;
6073
+ }) => Promise<{
6152
6074
  openWorkOrder: {
6153
6075
  count: any;
6154
6076
  inProgress: any;
@@ -7393,10 +7315,16 @@ declare function MChannelPreloved(value: TChannelPreloved): {
7393
7315
  declare function useChannelPrelovedRepo(): {
7394
7316
  add: (value: TChannelPreloved, session?: any) => Promise<string | ObjectId>;
7395
7317
  getByParticipants: (senderId: string | ObjectId, receiverId: string | ObjectId, postId: string | ObjectId, session?: any) => Promise<mongodb.WithId<TChannelPreloved> | null>;
7318
+ getChannelMessages: (channelId: string | ObjectId, page?: number, limit?: number, isLoadMore?: boolean, lastMessageId?: string | null) => Promise<{
7319
+ items: any[];
7320
+ pages: number;
7321
+ pageRange: string;
7322
+ }>;
7396
7323
  };
7397
7324
 
7398
7325
  declare function useChannelPrelovedController(): {
7399
7326
  add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7327
+ getChannelMessages: (req: Request, res: Response, next: NextFunction) => Promise<void>;
7400
7328
  };
7401
7329
 
7402
7330
  declare enum FormEntryStatus {