@dyedurham/search-and-file-widget 2.0.61 → 2.0.62
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 +6 -5
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -92520,13 +92520,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92520
92520
|
}
|
|
92521
92521
|
return errors.map((e) => ({ Code: e.code, Message: e.message }));
|
|
92522
92522
|
}
|
|
92523
|
-
var INCORPORATION_PATH, BritishColumbiaFormationService;
|
|
92523
|
+
var INCORPORATION_PATH, TEMP_UAT_BC_FILING_URL, BritishColumbiaFormationService;
|
|
92524
92524
|
var init_british_columbia_formation_service = __esm({
|
|
92525
92525
|
"src/app/services/british-columbia/british-columbia-formation.service.ts"() {
|
|
92526
92526
|
init_core();
|
|
92527
92527
|
init_common_utils();
|
|
92528
92528
|
init_core();
|
|
92529
92529
|
INCORPORATION_PATH = "filings/ca/bc/incorporation";
|
|
92530
|
+
TEMP_UAT_BC_FILING_URL = "https://uat3-onbis.oncorp.com/eCoreBcApi/";
|
|
92530
92531
|
BritishColumbiaFormationService = class _BritishColumbiaFormationService {
|
|
92531
92532
|
config;
|
|
92532
92533
|
setConfig(config2) {
|
|
@@ -92538,7 +92539,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92538
92539
|
ensureAuthInputs(signature);
|
|
92539
92540
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
92540
92541
|
const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, requestBody, {
|
|
92541
|
-
"x-target-url": this.targetUrl(INCORPORATION_PATH)
|
|
92542
|
+
"x-target-url": this.targetUrl(signature.env, INCORPORATION_PATH)
|
|
92542
92543
|
}));
|
|
92543
92544
|
const raw = yield resp.text();
|
|
92544
92545
|
const parsed = tryParseJson(raw);
|
|
@@ -92576,7 +92577,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92576
92577
|
method: "POST",
|
|
92577
92578
|
headers: {
|
|
92578
92579
|
Authorization: `Bearer ${signature.jwtToken}`,
|
|
92579
|
-
"x-target-url": this.targetUrl(`${INCORPORATION_PATH}/${encodeURIComponent(serviceOrderId)}/submit`)
|
|
92580
|
+
"x-target-url": this.targetUrl(signature.env, `${INCORPORATION_PATH}/${encodeURIComponent(serviceOrderId)}/submit`)
|
|
92580
92581
|
}
|
|
92581
92582
|
}));
|
|
92582
92583
|
const raw = yield resp.text();
|
|
@@ -92615,8 +92616,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
92615
92616
|
serviceOrderId
|
|
92616
92617
|
});
|
|
92617
92618
|
}
|
|
92618
|
-
targetUrl(path) {
|
|
92619
|
-
const base = this.config?.BCFiling;
|
|
92619
|
+
targetUrl(env, path) {
|
|
92620
|
+
const base = this.config?.BCFiling || (env === "TEST" ? TEMP_UAT_BC_FILING_URL : void 0);
|
|
92620
92621
|
if (!base) {
|
|
92621
92622
|
throw new Error("Missing config.BCFiling (British Columbia filing service URL).");
|
|
92622
92623
|
}
|