oro-sdk-apis 1.11.0 → 1.11.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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0",
2
+ "version": "1.11.1",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -0,0 +1,75 @@
1
+
2
+ export type FacetFilter = 'type:PHARMACY' | 'type:CLINIC' | 'type:PHARMACY_VIRTUAL'
3
+
4
+ export interface CliniaResponse<T> {
5
+ facets: any
6
+ meta: {
7
+ query: string
8
+ page: number
9
+ numPages: number
10
+ perPage: number
11
+ total: number
12
+ }
13
+ records: T[]
14
+ }
15
+
16
+ export interface PlaceData {
17
+ id: string // The Clinia Id of the resource.
18
+ documentType: string // Type of document. This will always be set to health_facility.
19
+ type: string // The type of the resource. Possible Place types are detailed here.
20
+ name: string // The name of the resource.
21
+ address: AddressData // The address of the resource.
22
+ geoPoint: GeoPointData // The coordinates of the resource. Useful to locate resource on a map.
23
+ distance: number // The distance (in meters) the is from the location used to filter the query.
24
+ onlineBookingUrl: string // The url for the online booking system of the resource.
25
+ openingHours: Map<string, Array<IntervalData>> // The opening hours of the resource. This object has integers from 1 to 7 as keys, representing days of the week from Monday to Sunday as per ISO 8601.
26
+ phones: Array<PhoneData> // Phones associated with this resource.
27
+ socials: Array<SocialData> // The social links of the resource. Can be a website or a social media link.
28
+ note: string // Special notes on the resource.
29
+ services: Array<string> // The services offered by the resource.
30
+ owner: string // The owner of the resource in the Clinia ecosystem.
31
+ }
32
+
33
+ export interface AddressData {
34
+ streetAddress: string // Street number plus route name.
35
+ suiteNumber: string // Suite, door, appartment number.
36
+ postalCode: string // Postal code.
37
+ neighborhood: string // Neighborhood.
38
+ locality: string // Locality.
39
+ place: string // City.
40
+ region: string // Name of the region.
41
+ regionCode: string // ISO 3166-2 region code.
42
+ country: string // Name of the country.
43
+ countryCode: string // ISO 3166 country code
44
+ }
45
+
46
+ export interface PhoneData {
47
+ number: string //The phone number.
48
+ extension: string //The extension of the phone number.
49
+ countryCode: string //The country code associated with this phone number.
50
+ type:
51
+ | 'MAIN'
52
+ | 'ALTERNATE'
53
+ | 'RECEPTION'
54
+ | 'FAX'
55
+ | 'TEXT_TELEPHONE_TTY'
56
+ | 'INFO'
57
+ | 'OTHER' //The type of phone.
58
+ isTollFree: boolean //If the number is toll free or not.
59
+ province?: string //If the number is specific to a province
60
+ }
61
+
62
+ export interface IntervalData {
63
+ start: string // Start time of the time interval. Format is HH:mm.
64
+ end: string // End time of the time interval. Format is HH:mm.
65
+ }
66
+
67
+ export interface GeoPointData {
68
+ lat: number // Latitude
69
+ lng: number // Longitude
70
+ }
71
+
72
+ export interface SocialData {
73
+ url: string // Url representing the link.
74
+ type: string // Type of link.
75
+ }
@@ -0,0 +1 @@
1
+ export * from './clinia'
@@ -6,3 +6,4 @@ export * from './practice'
6
6
  export * from './shared'
7
7
  export * from './vault'
8
8
  export * from './workflow'
9
+ export * from './external'
@@ -1,3 +1,5 @@
1
+ import { PlaceData } from "."
2
+
1
3
  export enum WorkflowType {
2
4
  Onboard = 'Onboard',
3
5
  Followup = 'Followup',
@@ -156,11 +158,7 @@ export type PracticeConfigPractitionerChatbox = PracticeConfig<
156
158
  export type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<
157
159
  PracticeConfigKind.PracticePharmacyPicker,
158
160
  {
159
- onlinePharmacy?: {
160
- name: string,
161
- id: string,
162
- phones: { countryCode: string, number: string, extension: string | null, type: string, isTollFree: boolean, province?: string }[]
163
- }
161
+ onlinePharmacy?: PlaceData
164
162
  }
165
163
  >
166
164