@dyedurham/search-and-file-widget 2.0.87 → 2.0.88

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.
@@ -94548,6 +94548,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94548
94548
  });
94549
94549
  dataWasChanged = signal(false);
94550
94550
  serviceOrderId = "";
94551
+ bcCurrentDataServiceOrderId = "";
94551
94552
  currentDataExtract = signal(void 0);
94552
94553
  bcDataExtractTaskId = "";
94553
94554
  activeStep = signal(Step.Validate);
@@ -94625,7 +94626,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94625
94626
  }
94626
94627
  this.isLoading.set(true);
94627
94628
  try {
94628
- yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
94629
+ this.bcCurrentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, request, this.validateOptions() ?? {});
94629
94630
  this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
94630
94631
  } catch (error) {
94631
94632
  this.handleCatchError(error);
@@ -94757,13 +94758,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94757
94758
  this.isLoading.set(true);
94758
94759
  this.errors.set([]);
94759
94760
  const options = this.validateOptions() ?? {};
94760
- const { request: extractOrder, issues } = buildBritishColumbiaDataExtractOrder(task);
94761
- if (issues.length) {
94762
- this.errors.set(issues);
94761
+ const currentDataServiceOrderId = this.bcCurrentDataServiceOrderId;
94762
+ if (!currentDataServiceOrderId) {
94763
+ this.errors.set(["The current BC data extract is not ready yet. Please wait and try again."]);
94763
94764
  return;
94764
94765
  }
94765
- const currentDataServiceOrderId = yield this.britishColumbiaChangeOfDirectorsService.ensureCurrentDataExtract(signature, extractOrder, options);
94766
- this.currentDataExtract.set(this.britishColumbiaChangeOfDirectorsService.getCurrentDataExtract());
94767
94766
  const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData, currentDataServiceOrderId);
94768
94767
  const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, options);
94769
94768
  if (this.hasResponseErrors(response))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.87",
3
+ "version": "2.0.88",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {