oro-sdk-apis 3.2.3 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/workflow.d.ts +1 -0
- package/dist/oro-sdk-apis.cjs.development.js +192 -694
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +192 -728
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/workflow.ts +17 -16
- package/src/services/practice.ts +14 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PracticeAccount, Uuid } from '../models';
|
1
|
+
import { PaymentStatus, PracticeAccount, Uuid } from '../models';
|
2
2
|
import { Assignment, AssignmentRequest, PaymentIntentRequestMetadata, PlanType, Practice, PracticeConfigKind, PracticeConfigs, PracticeInvoice, PracticePayment, PracticePaymentIntent, PracticePlan, PracticePlanPrices, PracticeWorkflow, PracticeWorkflowWithTagSpecialty, Practitioner, PractitionerLicense, PractitionerPreference, PractitionerQuota, PractitionerRole, WorkflowType } from '../models/practice';
|
3
3
|
import { APIService } from './api';
|
4
4
|
export declare class PracticeService {
|
@@ -58,7 +58,7 @@ export declare class PracticeService {
|
|
58
58
|
practiceGetPlans(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePlan[]>;
|
59
59
|
practiceGetPlan(practiceUuid: Uuid, planId: number): Promise<PracticePlan>;
|
60
60
|
practiceGetPlanPrices(practiceUuid: Uuid, planId: number): Promise<PracticePlanPrices>;
|
61
|
-
practiceGetPayments(practiceUuid: Uuid,
|
61
|
+
practiceGetPayments(practiceUuid: Uuid, statusPayment?: PaymentStatus, withConsultUUIDNULL?: boolean, perPage?: number, indexPage?: number): Promise<PracticePayment[]>;
|
62
62
|
practiceGetPayment(practiceUuid: Uuid, idStripeInvoiceOrPaymentIntent: string): Promise<PracticePayment>;
|
63
63
|
practiceGetPaymentForStripePaymentIntentWithID(practiceUuid: Uuid, stripePaymentIntentId: number): Promise<PracticePayment>;
|
64
64
|
practiceGetPaymentsIntents(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePaymentIntent[]>;
|
package/package.json
CHANGED
package/src/models/workflow.ts
CHANGED
@@ -145,6 +145,7 @@ export interface SlideData {
|
|
145
145
|
export enum MetadataCategory { //these are generic metadata categories
|
146
146
|
ChildPersonal = 'ChildPersonal',
|
147
147
|
Consultation = 'Consultation',
|
148
|
+
Refill = 'Refill',
|
148
149
|
DataRetrieval = 'DataRetrieval',
|
149
150
|
Followup = 'Followup',
|
150
151
|
Recovery = 'Recovery',
|
@@ -199,25 +200,25 @@ export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
199
200
|
export declare type QuestionData =
|
200
201
|
| GenericQuestionData<'title' | 'paragraph' | 'checkbox', void>
|
201
202
|
| GenericQuestionData<
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
203
|
+
| 'text'
|
204
|
+
| 'text-area'
|
205
|
+
| 'date'
|
206
|
+
| 'number'
|
207
|
+
| 'images'
|
208
|
+
| 'body-parts'
|
209
|
+
| 'pharmacy-picker'
|
210
|
+
| 'online-pharmacy-picker'
|
211
|
+
| 'place-address'
|
212
|
+
>
|
212
213
|
| GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions>
|
213
214
|
| GenericQuestionData<
|
214
|
-
|
215
|
-
|
216
|
-
|
215
|
+
'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group',
|
216
|
+
IndexedData<ChoiceInputData>
|
217
|
+
>
|
217
218
|
| GroupedGenericQuestionData<
|
218
|
-
|
219
|
-
|
220
|
-
|
219
|
+
'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage' | 'hair-loss-other',
|
220
|
+
IndexedData<RadioInputData>
|
221
|
+
>
|
221
222
|
| GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
|
222
223
|
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
223
224
|
| GroupedGenericQuestionData<'tile-radio', IndexedData<TileRadioData>>
|
package/src/services/practice.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { hashToBase64String } from '../helpers'
|
2
|
-
import { PracticeAccount, Uuid
|
2
|
+
import {PaymentStatus, PracticeAccount, Uuid} from '../models'
|
3
3
|
import {
|
4
4
|
Assignment,
|
5
5
|
AssignmentRequest,
|
@@ -149,9 +149,20 @@ export class PracticeService {
|
|
149
149
|
}
|
150
150
|
|
151
151
|
// Payments
|
152
|
-
public practiceGetPayments(
|
152
|
+
public practiceGetPayments(
|
153
|
+
practiceUuid: Uuid,
|
154
|
+
statusPayment?: PaymentStatus,
|
155
|
+
withConsultUUIDNULL?: boolean,
|
156
|
+
perPage?: number,
|
157
|
+
indexPage?: number,
|
158
|
+
): Promise<PracticePayment[]> {
|
153
159
|
return this.api.get<PracticePayment[]>(`${this.baseURL}/v1/practices/${practiceUuid}/payments`, {
|
154
|
-
params: {
|
160
|
+
params: {
|
161
|
+
status: statusPayment,
|
162
|
+
withConsultUUIDNULL,
|
163
|
+
perPage,
|
164
|
+
indexPage
|
165
|
+
},
|
155
166
|
})
|
156
167
|
}
|
157
168
|
|