oro-sdk 8.0.0 → 8.1.1

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.
@@ -7,7 +7,7 @@ export declare class CliniaService {
7
7
  placeSearch(searchOptions: {
8
8
  locale?: string;
9
9
  query?: string;
10
- facetFilters?: FacetFilter[];
10
+ facetFilters?: FacetFilter[] | FacetFilter[][];
11
11
  location?: string;
12
12
  aroundLatLng?: string;
13
13
  page?: number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.0.0",
2
+ "version": "8.1.1",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -55,7 +55,7 @@
55
55
  "form-data": "^4.0.0",
56
56
  "formdata-node": "^4.3.1",
57
57
  "idb-keyval": "^5.0.6",
58
- "oro-sdk-apis": "~8.0.0",
58
+ "oro-sdk-apis": "~8.1.1",
59
59
  "oro-toolbox": "0.0.6",
60
60
  "uuid": "^8.3.2"
61
61
  }
@@ -83,7 +83,7 @@ export async function registerPatient(
83
83
  const stepsTotalNum = 9
84
84
  let currentStep: number
85
85
 
86
- // toggle all changed statuses if this workflow has previous/revision data
86
+ // toggle all changed statuses if this workflow has previous/revision data
87
87
  workflow = detectChangesInWorkflowAnswers(workflow)
88
88
 
89
89
  for (; retry > 0; retry--) {
@@ -173,10 +173,10 @@ export async function registerPatient(
173
173
  oroClient,
174
174
  onProgress
175
175
  ? {
176
- onProgress,
177
- currentStep,
178
- stepsTotalNum,
179
- }
176
+ onProgress,
177
+ currentStep,
178
+ stepsTotalNum,
179
+ }
180
180
  : undefined
181
181
  ).catch((err) => {
182
182
  console.error('[SDK: registration] Some errors happened during image upload', err)
@@ -297,7 +297,7 @@ async function getOrCreatePatientLockbox(oroClient: OroClient): Promise<Uuid> {
297
297
  console.log('The grant has already been created, skipping lockbox create step')
298
298
  return grants[0].lockboxUuid!
299
299
  } else {
300
- let lockboxResponse = await oroClient.vaultClient.lockboxCreate().catch((err) => {
300
+ let lockboxResponse = await oroClient.lockboxCreate().catch((err) => {
301
301
  console.error('Error while creating lockbox', err)
302
302
  throw err
303
303
  })
@@ -413,17 +413,16 @@ async function storePatientData(
413
413
  { consultationId },
414
414
  { withNotification: false, forceReplace: false, updateMedicalStatus: false }
415
415
  // the only data that needs to include an email notification
416
- ))
416
+ )
417
+ )
417
418
  )
418
419
  break
419
420
  case ConsultType.Onboard:
420
421
  case ConsultType.Refill:
421
422
  default:
422
- break;
423
+ break
423
424
  }
424
- return Promise
425
- .all(patientDataPromises)
426
- .then((dataUuids) => dataUuids.flat())
425
+ return Promise.all(patientDataPromises).then((dataUuids) => dataUuids.flat())
427
426
  }
428
427
 
429
428
  async function storeImageAliases(
@@ -477,11 +476,11 @@ async function storeImageAliases(
477
476
  Math.round(
478
477
  ((progress.currentStep + 1) / progress.stepsTotalNum -
479
478
  progress.currentStep / progress.stepsTotalNum) *
480
- 100
479
+ 100
481
480
  ) / 100
482
481
  progress.onProgress(
483
482
  progress.currentStep / progress.stepsTotalNum +
484
- progressStepValue * (storedImagesNum / totalImagesNum),
483
+ progressStepValue * (storedImagesNum / totalImagesNum),
485
484
  'store_images',
486
485
  {
487
486
  storedImagesNum,
@@ -10,7 +10,7 @@ export class CliniaService {
10
10
  public placeSearch(searchOptions: {
11
11
  locale?: string
12
12
  query?: string
13
- facetFilters?: FacetFilter[]
13
+ facetFilters?: FacetFilter[] | FacetFilter[][]
14
14
  location?: string
15
15
  aroundLatLng?: string
16
16
  page?: number