@dyedurham/search-and-file-widget 1.6.2 → 1.6.3
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/dnd-filing-shell.js +14 -13
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -49627,9 +49627,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49627
49627
|
};
|
|
49628
49628
|
}
|
|
49629
49629
|
function findRegisteredOfficeAddress(task) {
|
|
49630
|
-
const registeredOffice = [
|
|
49631
|
-
...task.entity.affiliations ?? []
|
|
49632
|
-
].find((aff) => aff.kind === "EntityAffiliationV3" && aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
49630
|
+
const registeredOffice = [...task.entity.affiliations ?? []].find((aff) => aff.kind === "EntityAffiliationV3" && aff.role.role_name === "Shared Address" && aff.role.static_title === "Registered Office");
|
|
49633
49631
|
const registeredOfficeAddress = registeredOffice?.addresses?.[0] || registeredOffice?.parent_affiliation?.addresses?.[0];
|
|
49634
49632
|
return registeredOfficeAddress;
|
|
49635
49633
|
}
|
|
@@ -49648,20 +49646,20 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49648
49646
|
}
|
|
49649
49647
|
function formationTaskToECore(task, deltaData) {
|
|
49650
49648
|
const entityDetails = deltaData.entityDetails;
|
|
49651
|
-
const isNumbered = entityDetails
|
|
49652
|
-
const isFrench = entityDetails
|
|
49653
|
-
const isBilingual = entityDetails
|
|
49649
|
+
const isNumbered = entityDetails?.corporationNameType === NameType.Numbered;
|
|
49650
|
+
const isFrench = entityDetails?.corporationNameType === NameType.NamedFrench;
|
|
49651
|
+
const isBilingual = entityDetails?.corporationNameType === NameType.NamedBilingual;
|
|
49654
49652
|
const englishName = !isNumbered && !isFrench ? {
|
|
49655
|
-
CorporationName: entityDetails
|
|
49656
|
-
ReservationDate: entityDetails
|
|
49653
|
+
CorporationName: entityDetails?.corporationNameEnglish,
|
|
49654
|
+
ReservationDate: entityDetails?.nuansReportEnglishReferenceNumber,
|
|
49657
49655
|
ReservationNumber: toYyyyMmDd(entityDetails.nuansReportEnglishReferenceDate) || ""
|
|
49658
49656
|
} : void 0;
|
|
49659
49657
|
const frenchName = !isNumbered && (isFrench || isBilingual) ? {
|
|
49660
|
-
CorporationName: entityDetails
|
|
49661
|
-
ReservationDate: entityDetails
|
|
49662
|
-
ReservationNumber: toYyyyMmDd(entityDetails
|
|
49658
|
+
CorporationName: entityDetails?.corporationNameEnglish,
|
|
49659
|
+
ReservationDate: entityDetails?.nuansReportEnglishReferenceNumber,
|
|
49660
|
+
ReservationNumber: toYyyyMmDd(entityDetails?.nuansReportEnglishReferenceDate) || ""
|
|
49663
49661
|
} : void 0;
|
|
49664
|
-
const legalEnding =
|
|
49662
|
+
const legalEnding = entityDetails?.legalIdentifier ?? "";
|
|
49665
49663
|
const incorporatorIds = new Set(task._ext._incorporators?.map((inc) => inc.profileID?.toString()).filter(Boolean) ?? []);
|
|
49666
49664
|
const registeredOfficeAddress = findRegisteredOfficeAddress(task);
|
|
49667
49665
|
const directors = transformDirectors(task.entity.affiliations, incorporatorIds, deltaData);
|
|
@@ -49675,7 +49673,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
49675
49673
|
const restrictionsOnShareTransfers = task.entity._articles?.transfer_restrictions_text || "None";
|
|
49676
49674
|
const otherProvisions = task.entity._articles?.other_provisions || "None";
|
|
49677
49675
|
const eCorePayload = {
|
|
49678
|
-
IncorporationType: entityDetails
|
|
49676
|
+
IncorporationType: entityDetails?.corporationNameType,
|
|
49679
49677
|
LegalEnding: legalEnding,
|
|
49680
49678
|
EnglishName: englishName,
|
|
49681
49679
|
FrenchName: frenchName,
|
|
@@ -51897,6 +51895,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
51897
51895
|
form.addControl(FormationFormControls.StreetDirection, new FormControl(delta?.streetDirection ?? ""));
|
|
51898
51896
|
form.addControl(FormationFormControls.StreetType, new FormControl(delta?.streetType ?? "", Validators.required));
|
|
51899
51897
|
form.addControl(FormationFormControls.StreetName, new FormControl(delta?.streetName ?? "", Validators.required));
|
|
51898
|
+
form.addControl(FormationFormControls.StreetNumber, new FormControl(delta?.streetNumber ?? ""));
|
|
51900
51899
|
form.addControl(FormationFormControls.UnitNumber, new FormControl(delta?.unitNumber ?? ""));
|
|
51901
51900
|
form.addControl(FormationFormControls.UnitType, new FormControl(delta?.unitType ?? "", requiredIf(FormationFormControls.UnitNumber)));
|
|
51902
51901
|
form.addControl(FormationFormControls.City, new FormControl(""));
|
|
@@ -81311,6 +81310,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81311
81310
|
config2[IRFormControls.StreetDirection] = new FormControl(delta?.[IRFormControls.StreetDirection] ?? "", Validators.required);
|
|
81312
81311
|
config2[IRFormControls.StreetType] = new FormControl(delta?.[IRFormControls.StreetType] ?? "", Validators.required);
|
|
81313
81312
|
config2[IRFormControls.StreetName] = new FormControl(delta?.[IRFormControls.StreetName] ?? "", Validators.required);
|
|
81313
|
+
config2[IRFormControls.StreetNumber] = new FormControl(delta?.[IRFormControls.StreetNumber] ?? "");
|
|
81314
81314
|
config2[IRFormControls.UnitNumber] = new FormControl(delta?.[IRFormControls.UnitNumber] ?? "");
|
|
81315
81315
|
config2[IRFormControls.UnitType] = new FormControl(delta?.[IRFormControls.UnitType] ?? "", requiredIf(IRFormControls.UnitNumber));
|
|
81316
81316
|
config2[IRFormControls.City] = new FormControl(delta?.[IRFormControls.City] ?? "");
|
|
@@ -83329,6 +83329,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83329
83329
|
[FormationFormControls.StreetDirection]: new FormControl(""),
|
|
83330
83330
|
[FormationFormControls.StreetType]: new FormControl("", Validators.required),
|
|
83331
83331
|
[FormationFormControls.StreetName]: new FormControl("", Validators.required),
|
|
83332
|
+
[FormationFormControls.StreetNumber]: new FormControl(""),
|
|
83332
83333
|
[FormationFormControls.UnitNumber]: new FormControl(""),
|
|
83333
83334
|
[FormationFormControls.UnitType]: new FormControl("", requiredIf(FormationFormControls.UnitNumber)),
|
|
83334
83335
|
[FormationFormControls.City]: new FormControl(""),
|