@dyedurham/search-and-file-widget 1.6.28 → 1.6.30

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.
Files changed (2) hide show
  1. package/dnd-filing-shell.js +41 -32
  2. package/package.json +1 -1
@@ -59214,7 +59214,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59214
59214
  const directorDeltaData = deltaData?.directors ?? {};
59215
59215
  config2[InitialReturnFillingFormGroups.Directors] = new FormArray([
59216
59216
  ...addedDirectors.map((admin) => {
59217
- const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Add, isFirsSubmit ? null : comparisonData, directorDeltaData[admin._id]);
59217
+ const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Add, comparisonData, directorDeltaData[admin._id]);
59218
59218
  form.addControl(IRFormControls.IsCanadianResident, new FormControl(directorDeltaData[admin._id]?.residentCanadian ?? false));
59219
59219
  return form;
59220
59220
  }),
@@ -87733,13 +87733,46 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87733
87733
  });
87734
87734
 
87735
87735
  // src/app/entities/InitialReturnMapping.ts
87736
- var OFFICER_TITLE_TO_ECORE_POSITION_CODE, ECORE_POSITION_CODE_TO_POSITION_NAME;
87736
+ var ECORE_POSITION_CODE_TO_POSITION_NAME;
87737
87737
  var init_InitialReturnMapping = __esm({
87738
87738
  "src/app/entities/InitialReturnMapping.ts"() {
87739
+ ECORE_POSITION_CODE_TO_POSITION_NAME = {
87740
+ ASEC: "ASSISTANT SECRETARY",
87741
+ ATRE: "ASSISTANT TREASURER",
87742
+ ASO: "AUTH'D SIGNING OFFICER",
87743
+ CHR: "CHAIR",
87744
+ CHRM: "CHAIRMAN",
87745
+ CHRP: "CHAIR PERSON",
87746
+ CHRW: "CHAIRWOMAN",
87747
+ CAO: "CHIEF ADMIN OFFICER",
87748
+ CEO: "CHIEF EXECUTIVE OFFICER",
87749
+ CFO: "CHIEF FINANCIAL OFFICER",
87750
+ CIO: "CHIEF INFO OFFICER",
87751
+ CMAN: "CHIEF MANAGER",
87752
+ COO: "CHIEF OPERATING OFFICER",
87753
+ COMP: "COMPTROLLER",
87754
+ EDIR: "EXECUTIVE DIRECTOR",
87755
+ GM: "GENERAL MANAGER",
87756
+ MDIR: "MANAGING DIRECTOR",
87757
+ OTH: "OTHER",
87758
+ PRCH: "PRESIDENT",
87759
+ SECT: "SECRETARY",
87760
+ TRES: "TREASURER",
87761
+ VCHR: "VICE-CHAIR",
87762
+ VP: "VICE-PRESIDENT"
87763
+ };
87764
+ }
87765
+ });
87766
+
87767
+ // src/app/constants/initial-return-api.contants.ts
87768
+ var OFFICER_TITLE_TO_ECORE_POSITION_CODE;
87769
+ var init_initial_return_api_contants = __esm({
87770
+ "src/app/constants/initial-return-api.contants.ts"() {
87739
87771
  OFFICER_TITLE_TO_ECORE_POSITION_CODE = {
87740
87772
  Chairman: "CHRM",
87741
87773
  President: "PRCH",
87742
87774
  "Vice-President": "VP",
87775
+ "Vice President": "VP",
87743
87776
  "Chief Executive Officer": "CEO",
87744
87777
  "Chief Financial Officer": "CFO",
87745
87778
  "Chief Technology Officer": "CIO",
@@ -87763,31 +87796,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87763
87796
  "Vice-Chair": "VCHR",
87764
87797
  Other: "OTH"
87765
87798
  };
87766
- ECORE_POSITION_CODE_TO_POSITION_NAME = {
87767
- ASEC: "ASSISTANT SECRETARY",
87768
- ATRE: "ASSISTANT TREASURER",
87769
- ASO: "AUTH'D SIGNING OFFICER",
87770
- CHR: "CHAIR",
87771
- CHRM: "CHAIRMAN",
87772
- CHRP: "CHAIR PERSON",
87773
- CHRW: "CHAIRWOMAN",
87774
- CAO: "CHIEF ADMIN OFFICER",
87775
- CEO: "CHIEF EXECUTIVE OFFICER",
87776
- CFO: "CHIEF FINANCIAL OFFICER",
87777
- CIO: "CHIEF INFO OFFICER",
87778
- CMAN: "CHIEF MANAGER",
87779
- COO: "CHIEF OPERATING OFFICER",
87780
- COMP: "COMPTROLLER",
87781
- EDIR: "EXECUTIVE DIRECTOR",
87782
- GM: "GENERAL MANAGER",
87783
- MDIR: "MANAGING DIRECTOR",
87784
- OTH: "OTHER",
87785
- PRCH: "PRESIDENT",
87786
- SECT: "SECRETARY",
87787
- TRES: "TREASURER",
87788
- VCHR: "VICE-CHAIR",
87789
- VP: "VICE-PRESIDENT"
87790
- };
87791
87799
  }
87792
87800
  });
87793
87801
 
@@ -87910,7 +87918,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87910
87918
  const entityAddr = aff.addresses?.at(0) || aff.parent_affiliation?.addresses?.at(0);
87911
87919
  const PostalAddress = buildPostalAddress(entityAddr, deltaEntry?.address);
87912
87920
  const PersonName = { FirstName: firstName, MiddleName: middleName, LastName: lastName };
87913
- const position2 = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[toTitleCase(aff.role?.static_title ?? "")] ?? "" : "Director";
87921
+ const position2 = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[aff.role?.static_title ?? ""] ?? "" : "Director";
87914
87922
  const matchingAdmin = getCurrentDataAdministrator(deltaEntry.currentName ?? "", isOfficer);
87915
87923
  const isCeaseAction = currentState === IRCurrentState.Ceased;
87916
87924
  const isDirectorFromRole = aff.role?.role_name === "Director";
@@ -87919,7 +87927,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87919
87927
  const mappedRoleId = matchingAdmin?.RoleId ?? "";
87920
87928
  const personNameRoleId = matchingAdmin?.RoleId;
87921
87929
  const mappedCeaseDate = currentState === IRCurrentState.Ceased ? ceaseDate : "";
87922
- const mappedElectedDate = currentState === IRCurrentState.Added ? electedDate : "";
87930
+ const mappedElectedDate = currentState === IRCurrentState.Added || currentState === IRCurrentState.Changed ? electedDate : "";
87923
87931
  const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position2?.toUpperCase()];
87924
87932
  if (!isOfficer) {
87925
87933
  switch (currentState) {
@@ -88032,7 +88040,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88032
88040
  ElectedDate: mappedElectedDate,
88033
88041
  EmailAddress: email,
88034
88042
  IsDirector: isDirectorFromRole,
88035
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2 }),
88043
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2, PositionName: positionName, OfficerPositionName: positionName, OfficerPosition: position2 }),
88036
88044
  OfficerPosition: position2,
88037
88045
  Position: position2,
88038
88046
  PositionName: positionName,
@@ -88068,7 +88076,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88068
88076
  RoleId: mappedRoleId,
88069
88077
  IsDirector: isDirectorFromRole,
88070
88078
  ResidentCanadian: residentCanadian,
88071
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: null }),
88079
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2, PositionName: positionName, OfficerPositionName: positionName, OfficerPosition: position2 }),
88072
88080
  PostalAddress,
88073
88081
  EmailAddress: email
88074
88082
  };
@@ -88093,7 +88101,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88093
88101
  RoleId: mappedRoleId,
88094
88102
  IsDirector: isDirectorFromRole,
88095
88103
  ResidentCanadian: residentCanadian,
88096
- PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2 }),
88104
+ PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2, PositionName: positionName, OfficerPositionName: positionName, OfficerPosition: position2 }),
88097
88105
  CeaseDate: mappedCeaseDate,
88098
88106
  ElectedDate: mappedElectedDate,
88099
88107
  CeasedDateSpecified: false,
@@ -88269,6 +88277,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88269
88277
  init_initial_return_enums();
88270
88278
  init_ontario_update_maintain_helper();
88271
88279
  init_InitialReturnMapping();
88280
+ init_initial_return_api_contants();
88272
88281
  }
88273
88282
  });
88274
88283
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "1.6.28",
3
+ "version": "1.6.30",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {