@7365admin1/core 3.32.2-staging.47 → 3.32.2-staging.48

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.d.ts CHANGED
@@ -1058,9 +1058,6 @@ declare const TInvoice: z.ZodObject<{
1058
1058
  }, "strip", z.ZodTypeAny, {
1059
1059
  status: "pending" | "cancelled" | "paid" | "overdue";
1060
1060
  type: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other";
1061
- amount: number;
1062
- invoiceNumber: string;
1063
- dueDate: Date;
1064
1061
  items: {
1065
1062
  description: string;
1066
1063
  total: number;
@@ -1068,6 +1065,9 @@ declare const TInvoice: z.ZodObject<{
1068
1065
  quantity: number;
1069
1066
  seats?: number | undefined;
1070
1067
  }[];
1068
+ amount: number;
1069
+ invoiceNumber: string;
1070
+ dueDate: Date;
1071
1071
  _id?: ObjectId | undefined;
1072
1072
  createdAt?: Date | undefined;
1073
1073
  updatedAt?: Date | undefined;
@@ -1081,9 +1081,6 @@ declare const TInvoice: z.ZodObject<{
1081
1081
  } | undefined;
1082
1082
  descriptions?: string | undefined;
1083
1083
  }, {
1084
- amount: number;
1085
- invoiceNumber: string;
1086
- dueDate: Date;
1087
1084
  items: {
1088
1085
  description: string;
1089
1086
  total: number;
@@ -1091,6 +1088,9 @@ declare const TInvoice: z.ZodObject<{
1091
1088
  quantity: number;
1092
1089
  seats?: number | undefined;
1093
1090
  }[];
1091
+ amount: number;
1092
+ invoiceNumber: string;
1093
+ dueDate: Date;
1094
1094
  _id?: string | ObjectId | undefined;
1095
1095
  createdAt?: Date | undefined;
1096
1096
  status?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
@@ -1112,9 +1112,6 @@ declare function useInvoiceModel(db: Db): {
1112
1112
  collection: Collection<{
1113
1113
  status: "pending" | "cancelled" | "paid" | "overdue";
1114
1114
  type: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other";
1115
- amount: number;
1116
- invoiceNumber: string;
1117
- dueDate: Date;
1118
1115
  items: {
1119
1116
  description: string;
1120
1117
  total: number;
@@ -1122,6 +1119,9 @@ declare function useInvoiceModel(db: Db): {
1122
1119
  quantity: number;
1123
1120
  seats?: number | undefined;
1124
1121
  }[];
1122
+ amount: number;
1123
+ invoiceNumber: string;
1124
+ dueDate: Date;
1125
1125
  _id?: ObjectId | undefined;
1126
1126
  createdAt?: Date | undefined;
1127
1127
  updatedAt?: Date | undefined;
@@ -1144,9 +1144,6 @@ declare function useInvoiceRepo(): {
1144
1144
  getByDueDate: (dueDate: Date, status?: TInvoice["status"]) => Promise<{
1145
1145
  status: "pending" | "cancelled" | "paid" | "overdue";
1146
1146
  type: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other";
1147
- amount: number;
1148
- invoiceNumber: string;
1149
- dueDate: Date;
1150
1147
  items: {
1151
1148
  description: string;
1152
1149
  total: number;
@@ -1154,6 +1151,9 @@ declare function useInvoiceRepo(): {
1154
1151
  quantity: number;
1155
1152
  seats?: number | undefined;
1156
1153
  }[];
1154
+ amount: number;
1155
+ invoiceNumber: string;
1156
+ dueDate: Date;
1157
1157
  _id?: ObjectId | undefined;
1158
1158
  createdAt?: Date | undefined;
1159
1159
  updatedAt?: Date | undefined;
@@ -1180,9 +1180,6 @@ declare function useInvoiceRepo(): {
1180
1180
  } | {
1181
1181
  status: "pending" | "cancelled" | "paid" | "overdue";
1182
1182
  type: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other";
1183
- amount: number;
1184
- invoiceNumber: string;
1185
- dueDate: Date;
1186
1183
  items: {
1187
1184
  description: string;
1188
1185
  total: number;
@@ -1190,6 +1187,9 @@ declare function useInvoiceRepo(): {
1190
1187
  quantity: number;
1191
1188
  seats?: number | undefined;
1192
1189
  }[];
1190
+ amount: number;
1191
+ invoiceNumber: string;
1192
+ dueDate: Date;
1193
1193
  _id?: ObjectId | undefined;
1194
1194
  createdAt?: Date | undefined;
1195
1195
  updatedAt?: Date | undefined;
@@ -1206,9 +1206,6 @@ declare function useInvoiceRepo(): {
1206
1206
  getOverdueInvoices: (BATCH_SIZE?: number) => Promise<{
1207
1207
  status: "pending" | "cancelled" | "paid" | "overdue";
1208
1208
  type: "organization-subscription" | "affiliate-subscription" | "one-time-payment" | "other";
1209
- amount: number;
1210
- invoiceNumber: string;
1211
- dueDate: Date;
1212
1209
  items: {
1213
1210
  description: string;
1214
1211
  total: number;
@@ -1216,6 +1213,9 @@ declare function useInvoiceRepo(): {
1216
1213
  quantity: number;
1217
1214
  seats?: number | undefined;
1218
1215
  }[];
1216
+ amount: number;
1217
+ invoiceNumber: string;
1218
+ dueDate: Date;
1219
1219
  _id?: ObjectId | undefined;
1220
1220
  createdAt?: Date | undefined;
1221
1221
  updatedAt?: Date | undefined;
@@ -2816,7 +2816,7 @@ declare function MPerson(value: TPerson): {
2816
2816
  unit: string | ObjectId | null;
2817
2817
  start: string | Date | undefined;
2818
2818
  end: string | Date | undefined;
2819
- type: "resident" | "walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant" | undefined;
2819
+ type: "walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant" | "resident" | undefined;
2820
2820
  email: string | undefined;
2821
2821
  password: string;
2822
2822
  status: string;
@@ -3172,7 +3172,7 @@ declare function usePersonRepo(): {
3172
3172
  getPersonByPhoneNumber: (value: string) => Promise<TPerson | null>;
3173
3173
  getPeopleByUnit: ({ status, type, unit, }: {
3174
3174
  status: string;
3175
- type?: ("resident" | "walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant")[] | undefined;
3175
+ type?: ("walk-in" | "drop-off" | "contractor" | "delivery" | "pick-up" | "guest" | "tenant" | "resident")[] | undefined;
3176
3176
  unit?: string | undefined;
3177
3177
  }, session?: ClientSession) => Promise<TPerson[]>;
3178
3178
  getCompany: (search?: string) => Promise<any[]>;
@@ -3193,6 +3193,7 @@ declare function usePersonRepo(): {
3193
3193
  reviewResidentPerson: (_id: ObjectId | string, value: Partial<TPerson>, session?: ClientSession) => Promise<mongodb.UpdateResult<TPerson>>;
3194
3194
  addFromVisitor: (value: visitorPersonRepo, session?: ClientSession) => Promise<mongodb.InsertOneResult<TPerson>>;
3195
3195
  findFirstTen: (query: Record<string, any>, session?: ClientSession) => Promise<mongodb.WithId<TPerson>[]>;
3196
+ updatePlateNumberByUserId: (userId: string | ObjectId, plateNumber: string, session?: ClientSession) => Promise<string>;
3196
3197
  };
3197
3198
 
3198
3199
  declare function usePersonController(): {
@@ -5743,7 +5744,7 @@ declare function MIncidentReport(value: TIncidentReport): {
5743
5744
  approvedBy: ObjectId | null;
5744
5745
  approvedByName: string;
5745
5746
  remarks: string | null;
5746
- status: "pending" | "approved" | "rejected";
5747
+ status: "pending" | "rejected" | "approved";
5747
5748
  platform: string;
5748
5749
  createdAt: string | Date;
5749
5750
  updatedAt: string | Date | undefined;
@@ -7954,7 +7955,7 @@ declare function MHidAmicoIdentity(value: THidAmicoIdentity): {
7954
7955
  user: ObjectId | undefined;
7955
7956
  member: ObjectId | undefined;
7956
7957
  visitor: ObjectId | undefined;
7957
- type: "admin" | "unknown" | "resident" | "visitor" | "contractor" | "staff";
7958
+ type: "admin" | "contractor" | "resident" | "unknown" | "visitor" | "staff";
7958
7959
  status: "deleted" | "active" | "inactive";
7959
7960
  metadata: Record<string, any>;
7960
7961
  createdAt: string | Date;
@@ -8009,7 +8010,7 @@ declare function useHidAmicoRepo(): {
8009
8010
  user: ObjectId | undefined;
8010
8011
  member: ObjectId | undefined;
8011
8012
  visitor: ObjectId | undefined;
8012
- type: "admin" | "unknown" | "resident" | "visitor" | "contractor" | "staff";
8013
+ type: "admin" | "contractor" | "resident" | "unknown" | "visitor" | "staff";
8013
8014
  status: "deleted" | "active" | "inactive";
8014
8015
  metadata: Record<string, any>;
8015
8016
  createdAt: string | Date;
@@ -8124,7 +8125,7 @@ declare function useHidAmicoService(): {
8124
8125
  user: bson.ObjectId | undefined;
8125
8126
  member: bson.ObjectId | undefined;
8126
8127
  visitor: bson.ObjectId | undefined;
8127
- type: "admin" | "unknown" | "resident" | "visitor" | "contractor" | "staff";
8128
+ type: "admin" | "contractor" | "resident" | "unknown" | "visitor" | "staff";
8128
8129
  status: "deleted" | "active" | "inactive";
8129
8130
  metadata: Record<string, any>;
8130
8131
  createdAt: string | Date;