oro-sdk-apis 3.8.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.8.0",
2
+ "version": "4.1.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -59,7 +59,7 @@ export interface IdentityCreateRequest {
59
59
  recoveryPassword: Base64String
60
60
  tosAndCpAcceptance: TosAndCpAcceptanceRequest
61
61
  tokenData?: TokenData
62
- subscription?: boolean
62
+ subscriptionAcceptance?: SubscriptionAcceptanceRequest
63
63
  }
64
64
 
65
65
  export interface TosAndCpAcceptanceRequest {
@@ -96,6 +96,7 @@ export interface IdentityUpdateRequest {
96
96
  tokenData?: TokenData
97
97
  epAcceptance?: EpAcceptanceRequest
98
98
  rpAcceptance?: RpAcceptanceRequest
99
+ subscriptionAcceptance?: SubscriptionAcceptanceRequest
99
100
  }
100
101
 
101
102
  export interface EpAcceptanceRequest {
@@ -106,6 +107,10 @@ export interface RpAcceptanceRequest {
106
107
  rpVersion: string
107
108
  }
108
109
 
110
+ export interface SubscriptionAcceptanceRequest {
111
+ email: string
112
+ }
113
+
109
114
  export interface PasswordUpdateRequest {
110
115
  oldPassword?: Base64String
111
116
  newPassword: Base64String
@@ -144,6 +149,10 @@ export interface LegalData {
144
149
  rpAcceptedAtTime?: RFC3339Date
145
150
  rpAcceptedVersion: Url
146
151
  rpAcceptedAtIP?: string
152
+ subscribedAtTime?: RFC3339Date
153
+ subscribedAtIP?: string
154
+ subscribedEmail?: string
155
+ subscribedAudience?: string
147
156
  }
148
157
 
149
158
  export type RoleBasedScopes = AllRoleType
@@ -152,6 +152,7 @@ export enum PracticeConfigKind {
152
152
  PracticeLayout = 'PracticeLayout',
153
153
  PracticeAddressField = 'PracticeAddressField',
154
154
  PracticeDiagnosisAndTreatment = 'PracticeDiagnosisAndTreatment',
155
+ PracticeInfoLetterDiscount = 'PracticeInfoLetterDiscount',
155
156
  }
156
157
 
157
158
  /**
@@ -439,6 +440,19 @@ export type PracticeConfigPracticeDiagnosisAndTreatment = PracticeConfig<
439
440
  }
440
441
  >
441
442
 
443
+ /**
444
+ * This config is used to set a discount code in case the info letter is accepted by the patient
445
+ */
446
+ export type PracticeConfigPracticeInfoLetterDiscount = PracticeConfig<
447
+ PracticeConfigKind.PracticeInfoLetterDiscount,
448
+ {
449
+ /**
450
+ * The discount code to be applied when the info letter is accepted
451
+ */
452
+ discountCode?: string
453
+ }
454
+ >
455
+
442
456
  export type PracticeConfigs =
443
457
  | PracticeConfigPractitionerSearch
444
458
  | PracticeConfigPractitionerConsultList
@@ -456,6 +470,7 @@ export type PracticeConfigs =
456
470
  | PracticeConfigPracticeLayout
457
471
  | PracticeConfigPracticeAddressField
458
472
  | PracticeConfigPracticeDiagnosisAndTreatment
473
+ | PracticeConfigPracticeInfoLetterDiscount
459
474
 
460
475
  export interface PracticeWorkflow {
461
476
  id?: number ///optional for insertion
@@ -719,6 +734,7 @@ export interface HydratedPracticeConfigs {
719
734
  [PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
720
735
  [PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField
721
736
  [PracticeConfigKind.PracticeDiagnosisAndTreatment]?: PracticeConfigPracticeDiagnosisAndTreatment
737
+ [PracticeConfigKind.PracticeInfoLetterDiscount]?: PracticeConfigPracticeInfoLetterDiscount
722
738
  }
723
739
 
724
740
  export interface Practice {
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 ORO Health Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.