search-and-file-widget-test 1.2.2 → 1.2.4

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.
@@ -49895,8 +49895,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
49895
49895
  return `${b}${p}`;
49896
49896
  }
49897
49897
  function ensureAuthInputs(signature) {
49898
- if (!signature?.baseApiPath) {
49899
- const err = new Error("Missing signature.baseApiPath (required input from Athennian).");
49898
+ if (!signature?.proxyApiUrl) {
49899
+ const err = new Error("Missing signature.proxyApiUrl (required input from Athennian).");
49900
49900
  signature.filingSubmitError?.(err);
49901
49901
  throw err;
49902
49902
  }
@@ -49910,15 +49910,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
49910
49910
  return resp;
49911
49911
  });
49912
49912
  }
49913
- function postJson(fetchFn, url, jwtToken, body) {
49913
+ function postJson(fetchFn, url, jwtToken, body, headers) {
49914
49914
  return __async(this, null, function* () {
49915
49915
  return fetchFn(url, {
49916
49916
  method: "POST",
49917
- headers: {
49917
+ headers: __spreadValues({
49918
49918
  "Content-Type": "application/json",
49919
49919
  Authorization: `Bearer ${jwtToken}`,
49920
49920
  "AccountKey": "1c3e3a6e-2a8b-4dd2-b906-aec25a1a7227"
49921
- },
49921
+ }, headers),
49922
49922
  body: JSON.stringify(body)
49923
49923
  });
49924
49924
  });
@@ -53878,7 +53878,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
53878
53878
  init_address_utils();
53879
53879
  init_core();
53880
53880
  FormationService = class _FormationService {
53881
- submitFormationValidateRequest(_0, _1) {
53881
+ config;
53882
+ setConfig(config2) {
53883
+ this.config = config2;
53884
+ }
53885
+ validate(_0, _1) {
53882
53886
  return __async(this, arguments, function* (signature, deltaData, opts = {}) {
53883
53887
  if (!this.isFormationTask(signature.task)) {
53884
53888
  const err2 = new Error(`Expected Formation task, got: ${signature.task?._taskType}`);
@@ -53887,8 +53891,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
53887
53891
  }
53888
53892
  ensureAuthInputs(signature);
53889
53893
  const fetchFn = opts.fetchImpl ?? fetch;
53890
- const endpointPath = opts.endpointPath ?? "/api/Incorporation";
53891
- const url = joinUrl(signature.baseApiPath, endpointPath);
53894
+ const url = signature.proxyApiUrl;
53892
53895
  let req;
53893
53896
  try {
53894
53897
  const formationTask = signature.task;
@@ -53900,7 +53903,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
53900
53903
  signature.filingSubmitError?.(e);
53901
53904
  throw e;
53902
53905
  }
53903
- const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, req));
53906
+ const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, req, {
53907
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONAOI}api/Incorporation`,
53908
+ "x-access-token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtaWNoZWwubGF2b2llQGF0aGVubmlhbi5jb20iLCJzdWIiOiI2N2RkY2IwNWRjNDAzMjg0ZTdmYTA3ZmIiLCJpYXQiOjE3NzAyMTI2OTQsImV4cCI6MTc3MDIxOTg5NCwiYmlkIjoiIiwiYXV0IjoidHJ1ZSIsIm9yZyI6Imh0dHBzOi8vb2xpdmUtMS50ZXN0LmF0aGVubmlhbi5jb20iLCJwZXIiOiIifQ.0QsFPBVGTA8JyacfEDx4qz5XVQB3AeL2-uCBiCs9qF0",
53909
+ Cookie: "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
53910
+ }));
53904
53911
  const raw = yield resp.text();
53905
53912
  const parsed = tryParseJson(raw);
53906
53913
  if (!parsed.ok) {
@@ -53946,13 +53953,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
53946
53953
  throw err;
53947
53954
  }
53948
53955
  const fetchFn = opts.fetchImpl ?? fetch;
53949
- const basePath = opts.endpointPath ?? "/api/Incorporation";
53950
- const url = joinUrl(signature.baseApiPath, `${basePath}/${encodeURIComponent(serviceOrderId)}/submit`);
53956
+ const url = signature.proxyApiUrl;
53951
53957
  const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
53952
53958
  method: "POST",
53953
53959
  headers: {
53954
53960
  Authorization: `Bearer ${signature.jwtToken}`,
53955
- "AccountKey": "1c3e3a6e-2a8b-4dd2-b906-aec25a1a7227"
53961
+ AccountKey: "1c3e3a6e-2a8b-4dd2-b906-aec25a1a7227",
53962
+ Cookie: "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53",
53963
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONAOI}api/Incorporation/${encodeURIComponent(serviceOrderId)}/submit`,
53964
+ "x-access-token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtaWNoZWwubGF2b2llQGF0aGVubmlhbi5jb20iLCJzdWIiOiI2N2RkY2IwNWRjNDAzMjg0ZTdmYTA3ZmIiLCJpYXQiOjE3NzAyMTI2OTQsImV4cCI6MTc3MDIxOTg5NCwiYmlkIjoiIiwiYXV0IjoidHJ1ZSIsIm9yZyI6Imh0dHBzOi8vb2xpdmUtMS50ZXN0LmF0aGVubmlhbi5jb20iLCJwZXIiOiIifQ.0QsFPBVGTA8JyacfEDx4qz5XVQB3AeL2-uCBiCs9qF0"
53956
53965
  }
53957
53966
  }));
53958
53967
  const raw = yield resp.text();
@@ -54014,13 +54023,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54014
54023
  throw err;
54015
54024
  }
54016
54025
  const fetchFn = opts.fetchImpl ?? fetch;
54017
- const basePath = opts.endpointPath ?? "/api/Incorporation";
54018
- const url = joinUrl(signature.baseApiPath, `${basePath}/${encodeURIComponent(serviceOrderId)}`);
54026
+ const url = signature.proxyApiUrl;
54019
54027
  const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
54020
54028
  method: "GET",
54021
54029
  headers: {
54022
54030
  Authorization: `Bearer ${signature.jwtToken}`,
54023
- "AccountKey": "1c3e3a6e-2a8b-4dd2-b906-aec25a1a7227"
54031
+ "AccountKey": "1c3e3a6e-2a8b-4dd2-b906-aec25a1a7227",
54032
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53",
54033
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONAOI}api/Incorporation/${serviceOrderId}`,
54034
+ "x-access-token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtaWNoZWwubGF2b2llQGF0aGVubmlhbi5jb20iLCJzdWIiOiI2N2RkY2IwNWRjNDAzMjg0ZTdmYTA3ZmIiLCJpYXQiOjE3NzAyMTI2OTQsImV4cCI6MTc3MDIxOTg5NCwiYmlkIjoiIiwiYXV0IjoidHJ1ZSIsIm9yZyI6Imh0dHBzOi8vb2xpdmUtMS50ZXN0LmF0aGVubmlhbi5jb20iLCJwZXIiOiIifQ.0QsFPBVGTA8JyacfEDx4qz5XVQB3AeL2-uCBiCs9qF0"
54024
54035
  }
54025
54036
  }));
54026
54037
  const raw = yield resp.text();
@@ -54086,6 +54097,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54086
54097
  init_address_utils();
54087
54098
  init_core();
54088
54099
  InitialReturnService = class _InitialReturnService {
54100
+ config;
54101
+ setConfig(config2) {
54102
+ this.config = config2;
54103
+ }
54089
54104
  validateCurrentData(signature, corporationInformation, opts) {
54090
54105
  return __async(this, null, function* () {
54091
54106
  if (!isInitialReturnTask(signature.task)) {
@@ -54100,7 +54115,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54100
54115
  "Content-Type": "application/json",
54101
54116
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54102
54117
  "ClientId": "22124",
54103
- "UserId": "140422"
54118
+ "UserId": "140422",
54119
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONFiling}api/CurrentData`,
54120
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54104
54121
  }, opts?.headers ?? {}),
54105
54122
  body: JSON.stringify(corporationInformation)
54106
54123
  });
@@ -54117,7 +54134,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54117
54134
  "Content-Type": "application/json",
54118
54135
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54119
54136
  "ClientId": "22124",
54120
- "UserId": "140422"
54137
+ "UserId": "140422",
54138
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONFiling}api/CurrentData`,
54139
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54121
54140
  }, opts?.headers ?? {})
54122
54141
  });
54123
54142
  });
@@ -54131,7 +54150,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54131
54150
  "Content-Type": "application/json",
54132
54151
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54133
54152
  "ClientId": "22124",
54134
- "UserId": "140422"
54153
+ "UserId": "140422",
54154
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONFiling}api/CurrentData`,
54155
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54135
54156
  }, opts?.headers ?? {})
54136
54157
  });
54137
54158
  const data = yield resp.json();
@@ -54161,7 +54182,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54161
54182
  "Content-Type": "application/json",
54162
54183
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54163
54184
  "ClientId": "22124",
54164
- "UserId": "140422"
54185
+ "UserId": "140422",
54186
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONFiling}api/CurrentData`,
54187
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54165
54188
  }, opts?.headers ?? {}),
54166
54189
  body: JSON.stringify(requestBody)
54167
54190
  });
@@ -54341,15 +54364,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54341
54364
  throw err;
54342
54365
  }
54343
54366
  const fetchFn = opts.fetchImpl ?? fetch;
54344
- const basePath = opts.endpointPath ?? `/api/FilingON/${serviceOrderId}/submit`;
54345
- const url = joinUrl(signature.baseApiPath, `${basePath}/${encodeURIComponent(serviceOrderId)}/submit`);
54367
+ const basePath = opts.endpointPath ?? `/api/FilingON`;
54368
+ const url = joinUrl(signature.proxyApiUrl, `${basePath}/${encodeURIComponent(serviceOrderId)}/submit`);
54346
54369
  const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
54347
54370
  method: "POST",
54348
54371
  headers: {
54349
54372
  Authorization: `Bearer ${signature.jwtToken}`,
54350
54373
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54351
54374
  "ClientId": "22124",
54352
- "UserId": "140422"
54375
+ "UserId": "140422",
54376
+ "x-target-url": `${this.config.searchAndFilingWidgetConfig.ONFiling}api/CurrentData`,
54377
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54353
54378
  }
54354
54379
  }));
54355
54380
  const raw = yield resp.text();
@@ -54411,15 +54436,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
54411
54436
  throw err;
54412
54437
  }
54413
54438
  const fetchFn = opts.fetchImpl ?? fetch;
54414
- const basePath = opts.endpointPath ?? `/api/FilingON/${serviceOrderId}`;
54415
- const url = joinUrl(signature.baseApiPath, `${basePath}/${encodeURIComponent(serviceOrderId)}`);
54439
+ const basePath = opts.endpointPath ?? `/api/FilingON`;
54440
+ const url = joinUrl(signature.proxyApiUrl, `${basePath}/${encodeURIComponent(serviceOrderId)}`);
54416
54441
  const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
54417
54442
  method: "GET",
54418
54443
  headers: {
54419
54444
  Authorization: `Bearer ${signature.jwtToken}`,
54420
54445
  "ApiKey": "a759101c-aeac-4fa6-90dc-8b56f01b2939",
54421
54446
  "ClientId": "22124",
54422
- "UserId": "140422"
54447
+ "UserId": "140422",
54448
+ "x-target-url": `https://uat3-onbis.oncorp.com/CCFWebsvc_Test${basePath}`,
54449
+ "Cookie": "AWSALB=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53; AWSALBCORS=PpMRL+JDLimOntn4FPEpJ2ZX9rtRbn/7wOE1Ntyq9RGhYPgnJpjAN8xr8R5TyM4v1tBvC62q0YWVR2fQwDLLKWIIQm+U79VccsjiMHRffNr6an9tJNOOdpX94R53"
54423
54450
  }
54424
54451
  }));
54425
54452
  const raw = yield resp.text();
@@ -79450,6 +79477,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
79450
79477
  corporationInformation = input();
79451
79478
  deltaData = input();
79452
79479
  validateOptions = input();
79480
+ envConfig = input();
79453
79481
  scrollContainer;
79454
79482
  changeDeltaData = output();
79455
79483
  onResultGet = output();
@@ -79489,6 +79517,13 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
79489
79517
  }
79490
79518
  });
79491
79519
  constructor() {
79520
+ effect(() => {
79521
+ const config2 = this.envConfig();
79522
+ if (config2) {
79523
+ this.initialReturnService.setConfig(config2);
79524
+ this.formationService.setConfig(config2);
79525
+ }
79526
+ });
79492
79527
  effect(() => {
79493
79528
  const task = this.signature()?.task;
79494
79529
  if (task) {
@@ -79551,7 +79586,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
79551
79586
  }
79552
79587
  const signature = this.signature();
79553
79588
  if (signature) {
79554
- const response = yield this.formationService.submitFormationValidateRequest(signature, deltaData, this.validateOptions());
79589
+ const response = yield this.formationService.validate(signature, deltaData, this.validateOptions());
79555
79590
  this.changeDeltaData.emit({
79556
79591
  deltaData: __spreadProps(__spreadValues({}, deltaData), { task: this.signature()?.task })
79557
79592
  });
@@ -79794,7 +79829,7 @@ By proceeding with this filing under any of the above-named Acts, the authorizer
79794
79829
  let _t;
79795
79830
  \u0275\u0275queryRefresh(_t = \u0275\u0275loadQuery()) && (ctx.scrollContainer = _t.first);
79796
79831
  }
79797
- }, inputs: { signature: [1, "signature"], corporationInformation: [1, "corporationInformation"], deltaData: [1, "deltaData"], validateOptions: [1, "validateOptions"] }, outputs: { changeDeltaData: "changeDeltaData", onResultGet: "onResultGet", close: "close" }, decls: 7, vars: 7, consts: [["scrollContainer", ""], [1, "filing"], [3, "steps", "subtitle", "title", "activeStep"], [1, "filing-content"], [1, "filing-content-loading"], [3, "alertData", "actionsDisabled", "form", "taskType"], [3, "form", "taskType", "actionsDisabled"], [3, "isEditAction", "form", "taskType", "actionsDisabled", "validationConfig"], [3, "close", "validate", "previous", "alertData", "actionsDisabled", "form", "taskType"], [3, "next", "close", "edit", "form", "taskType", "actionsDisabled"], [3, "next", "close", "isEditAction", "form", "taskType", "actionsDisabled", "validationConfig"], [3, "prev", "close", "confirm"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
79832
+ }, inputs: { signature: [1, "signature"], corporationInformation: [1, "corporationInformation"], deltaData: [1, "deltaData"], validateOptions: [1, "validateOptions"], envConfig: [1, "envConfig"] }, outputs: { changeDeltaData: "changeDeltaData", onResultGet: "onResultGet", close: "close" }, decls: 7, vars: 7, consts: [["scrollContainer", ""], [1, "filing"], [3, "steps", "subtitle", "title", "activeStep"], [1, "filing-content"], [1, "filing-content-loading"], [3, "alertData", "actionsDisabled", "form", "taskType"], [3, "form", "taskType", "actionsDisabled"], [3, "isEditAction", "form", "taskType", "actionsDisabled", "validationConfig"], [3, "close", "validate", "previous", "alertData", "actionsDisabled", "form", "taskType"], [3, "next", "close", "edit", "form", "taskType", "actionsDisabled"], [3, "next", "close", "isEditAction", "form", "taskType", "actionsDisabled", "validationConfig"], [3, "prev", "close", "confirm"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
79798
79833
  if (rf & 1) {
79799
79834
  \u0275\u0275elementStart(0, "div", 1)(1, "stepper", 2)(2, "div", 3, 0);
79800
79835
  \u0275\u0275declareLet(4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "search-and-file-widget-test",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {
Binary file