Skip to content

Instantly share code, notes, and snippets.

REQUEST:
sending time: 2022-03-18 11:11:18.726Z
query: {"reqType":"graphql","reqId":"5b8044ca-a1ba-45a5-b32c-cccc9372f8da","graphqlParams":{"query": "{visits( clinicId: \"900c1399-2a15-4d23-a3c8-ef0499fc93c0\" start: \"2022-03-18T10:41:18.422Z\" end: \"2022-03-18T23:11:18.422Z\") {\n id\n visitType\n status\n patientId\n clinicId\n appointmentType\n patientInfo {\n textHumanName\n firstName\n lastName\n nickName\n birthDate\n sex\n picture\n phone\n email\n }\n reason {\n code\n display\n } \n appointmentVisitType {\n id\n name\n }\n start\n patientOnline\n endedSignoffStatusPeriod\n bookingTime\n checkIn\n visitHistory{\n cancellationReason\n threadId\n status\n action\n actor {\n id\n type\n display\n firstName\n lastName\n clinicAcc
import 'dart:core';
import 'package:components/api/graphql_api.dart';
import 'package:components/base/viewmodel/base_viewmodel.dart';
import 'package:components/events/event_sender.dart';
import 'package:components/model/enums/profile_enums.dart';
import 'package:components/model/invitations/dynamic_links_service.dart';
import 'package:components/model/phi/client_model.dart';
import 'package:rxdart/rxdart.dart';
D/EGL_emulation( 4850): app_time_stats: avg=3227.72ms min=15.64ms max=19284.25ms count=6
D/EGL_emulation( 4850): app_time_stats: avg=23.33ms min=5.12ms max=377.70ms count=39
D/EGL_emulation( 4850): app_time_stats: avg=36.11ms min=8.03ms max=505.35ms count=27
I/flutter ( 4850): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 4850): NoSuchMethodError: The getter 'appointmentId' was called on null.
I/flutter ( 4850): Receiver: null
I/flutter ( 4850): Tried calling: appointmentId
I/flutter ( 4850): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
I/flutter ( 4850): #1 _PaymentMethodStageState.initState.<anonymous closure> (package:quickmd_patient_app/page/book_visit/view/stage/payment_method_stage.dart:122:82)
I/flutter ( 4850): <asynchronous suspension>
flutter: ----------------FIREBASE CRASHLYTICS----------------
[log] --------------------------------------------------------
2022-03-11 09:54:32.743441Z
DURATION: 0:00:00.341574
REQUEST:
sending time: 2022-03-11 09:54:32.395583Z
query: {"reqType":"graphql","reqId":"c35a089a-1646-4171-a82f-91fd7fea6486","graphqlParams":{"query": "mutation { bookVisit(\n input: {\n clinicId: \"900c1399-2a15-4d23-a3c8-ef0499fc93c0\"\n providerId: \"a81caa87-d5bd-4473-a83e-51cf7c2e984e\"\n appointmentType: chat\n start: \"2022-03-11T10:00:15.000Z\"\n end: \"2022-03-11T10:15:15.000Z\"\n visitTypeId: \"c1fff245-ab62-4838-adcf-6369f26fc8e7\"\n stateId: 20005\n reserved: false\n reason: \"Diarrhea\"\n \n }) \n {\n appointmentId\n referenceId\n responseIds\n }\n }"},"ctx":{"processId":null,"geolocation":{"latitude":37.785834,"longitude":-122.406417,"altitude":0}}}
RESPONSE:
Launching lib/main.dart on iPhone 7 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: QPD2FQ4HKU
Running Xcode build...
Xcode build done. 74,8s
Installing and launching...
(lldb) 2022-03-11 11:29:35.676089+0300 neeka-patient[8089:1356150] [Firebase/Crashlytics] Version 8.6.0
Debug service listening on ws://127.0.0.1:55763/Ag-pen5NwL4=/ws
Syncing files to device iPhone 7...
Errors found! Invalidating cache...
Errors found! Invalidating cache...
import 'package:driver3/models/auth_token.dart';
import 'package:driver3/models/dispatcher.dart';
import 'package:driver3/models/driver_result.dart';
import 'package:driver3/models/error.dart';
import 'package:driver3/models/location_auth_token.dart';
import 'package:driver3/models/payment/payment.dart';
import 'package:driver3/models/payment/payment_statistic.dart';
import 'package:driver3/models/trip/trip.dart';
import 'package:driver3/models/trip/trips.dart';
import 'package:driver3/di/locator.dart';
import 'package:driver3/extensions/string_ext.dart';
import 'package:driver3/interactors/abs_interactor.dart';
import 'package:driver3/models/common_response.dart';
import 'package:driver3/network/iway_api.dart';
import 'package:driver3/utils/constants.dart';
import 'package:driver3/utils/manager/device_manager.dart';
import 'package:shared_preferences/shared_preferences.dart';
abstract class LoginInteractor extends AbsInteractor {
import 'dart:io';
import 'package:chopper/chopper.dart';
import 'package:driver3/extensions/chopper_ext.dart';
import 'package:driver3/models/common_response.dart';
import 'package:driver3/network/iway_api.dart';
import 'package:firebase_performance/firebase_performance.dart' as perf;
enum RequestUrl {
ResetPassword,
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dart';
import '../../api/graphql_api.dart';
import '../../events/event_sender.dart';
// close bottom sheet after a user selection
const closeDuration = Duration(milliseconds: 400);
import '../../api/graphql_api.dart';
import '../../model/request_result_model.dart';
import '../../utils/log_service.dart';
import 'notification.dart';
abstract class NotificationsRepository {
NotificationsRepository();
factory NotificationsRepository.create(GraphqlAPI graphqlAPI) {