@7365admin1/core 3.49.1-staging.215 → 3.49.1-staging.216
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.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50290,7 +50290,7 @@ function useVisitorTransactionService() {
|
|
|
50290
50290
|
unitName: unit?.name,
|
|
50291
50291
|
org: inviter?.org?.toString(),
|
|
50292
50292
|
site: inviter?.site.toString(),
|
|
50293
|
-
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "
|
|
50293
|
+
status: value?.type === "contractor" ? isAutoApprovedInvitation ? "approved" /* APPROVED */ : "pending" /* PENDING */ : "pending" /* PENDING */,
|
|
50294
50294
|
inviterId: userId
|
|
50295
50295
|
};
|
|
50296
50296
|
const leadId = new import_mongodb85.ObjectId();
|
|
@@ -50315,7 +50315,7 @@ function useVisitorTransactionService() {
|
|
|
50315
50315
|
insertedIds.push(memberId);
|
|
50316
50316
|
}
|
|
50317
50317
|
}
|
|
50318
|
-
const result = await _add({ ...payload, _id: leadId }, session);
|
|
50318
|
+
const result = await _add({ ...payload, _id: leadId.toString() }, session);
|
|
50319
50319
|
insertedIds.push(result);
|
|
50320
50320
|
await session?.commitTransaction();
|
|
50321
50321
|
return insertedIds;
|
|
@@ -54717,8 +54717,12 @@ function useVisitorTransactionController() {
|
|
|
54717
54717
|
numberOfPassengers: import_joi65.default.number().integer().optional().allow(null, ""),
|
|
54718
54718
|
purpose: import_joi65.default.string().optional().allow(null, ""),
|
|
54719
54719
|
inviterUserId: import_joi65.default.string().hex().length(24).required(),
|
|
54720
|
-
type: import_joi65.default.string().valid("contractor", "guest").
|
|
54721
|
-
contractorType: import_joi65.default.string().valid("home-contractor", "house-mover").
|
|
54720
|
+
type: import_joi65.default.string().valid("contractor", "guest").required(),
|
|
54721
|
+
contractorType: import_joi65.default.string().valid("home-contractor", "house-mover").when("type", {
|
|
54722
|
+
is: "contractor",
|
|
54723
|
+
then: import_joi65.default.required(),
|
|
54724
|
+
otherwise: import_joi65.default.optional().allow(null, "")
|
|
54725
|
+
}),
|
|
54722
54726
|
members: import_joi65.default.array().items(
|
|
54723
54727
|
import_joi65.default.object({
|
|
54724
54728
|
name: import_joi65.default.string().optional().allow(null, ""),
|