· 5 years ago · Jan 21, 2021, 06:42 AM
1// This file is to rename API keys when sending request to API, because Backend receives different key format
2
3export const KEY_MAPS = {
4 limit: 'limit',
5 labID: 'lab_id',
6 filter: 'filter',
7 refNum: 'ref_num',
8 isTest: 'is_test',
9 userID: 'user_id',
10 endDate: 'end_date',
11 sortAsc: 'sort_asc',
12 phoneNo: 'phone_no',
13 payerID: 'payer_id',
14 orderId: 'order_id',
15 orderID: 'order_id',
16 orderIDs: 'order_ids',
17 formType: 'form_type',
18 isReport: 'is_report',
19 userType: 'user_type',
20 inviteAs: 'invite_as',
21 lastName: 'last_name',
22 labNotes: 'lab_notes',
23 scanType: 'scan_type',
24 doctorID: 'doctor_id',
25 addressID: 'address_id',
26 firstName: 'first_name',
27 startDate: 'start_date',
28 companyID: 'company_id',
29 selectLab: 'select_lab',
30 addressId: 'address_id',
31 companyId: 'company_id',
32 clinicName: 'clinic_name',
33 finalPrice: 'final_price',
34 startIndex: 'start_index',
35 customerID: 'customer_id',
36 employeeID: 'employee_id',
37 postalCode: 'postal_code',
38 isPassword: 'is_password',
39 userStatus: 'user_status',
40 reinviteAs: 'reinvite_as',
41 producerID: 'producer_id',
42 isReadOnly: 'is_read_only',
43 clinicEmail: 'clinic_email',
44 searchValue: 'search_value',
45 orderStatus: 'order_status',
46 clinicianID: 'clinician_id',
47 userDetails: 'user_details',
48 inviteToken: 'invite_token',
49 billingEmail: 'billing_email',
50 billingCycle: 'billing_cycle',
51 isValidating: 'is_validating',
52 inactivateAs: 'inactivate_as',
53 defaultPrice: 'default_price',
54 currencyCode: 'currency_code',
55 isNonDigital: 'is_non_digital',
56 addressLine1: 'address_line_1',
57 addressLine2: 'address_line_2',
58 orderPriority: 'order_priority',
59 chiefComplaint: 'chief_complaint',
60 isSelfEmployed: 'is_self_employed',
61 isDummyCompany: 'is_dummy_company',
62 leftLegScanObj: 'left_leg_scan_obj',
63 foamBoxScanObj: 'foam_box_scan_obj',
64 confirmPassword: 'confirm_password',
65 isShareableLink: 'is_shareable_link',
66 defaultPriceObj: 'default_price_obj',
67 rightLegScanObj: 'right_leg_scan_obj',
68 cycleDay: 'billing_cycle_day_of_month',
69 isBillingAddress: 'is_billing_address',
70 isShippingAddress: 'is_shipping_address',
71 timezoneIdentifier: 'timezone_identifier',
72 leftPanelCount: 'get_left_side_panel_count',
73 selectedBillingOption: 'selected_billing_option',
74 preferredCurrencyCode: 'preferred_currency_code',
75 preferredTimezoneAbbr: 'preferred_timezone_abbr',
76 isSelfEmployedClinician: 'is_self_employed_clinician',
77 preferredTimezoneIdentifier: 'preferred_timezone_identifier',
78 physicalPrescriptionFormCount: 'physical_prescription_form_count',
79};
80