1048147e0Sopenharmony_ci/** 2048147e0Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3048147e0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4048147e0Sopenharmony_ci * you may not use this file except in compliance with the License. 5048147e0Sopenharmony_ci * You may obtain a copy of the License at 6048147e0Sopenharmony_ci * 7048147e0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8048147e0Sopenharmony_ci * 9048147e0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10048147e0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11048147e0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12048147e0Sopenharmony_ci * See the License for the specific language governing permissions and 13048147e0Sopenharmony_ci * limitations under the License. 14048147e0Sopenharmony_ci */ 15048147e0Sopenharmony_ciexport default { 16048147e0Sopenharmony_ci // Name of the field corresponding to the session list 17048147e0Sopenharmony_ci sessionField: { 18048147e0Sopenharmony_ci id: 'id', //session Table id integer 19048147e0Sopenharmony_ci time: 'time', // Last SMS message time integer 20048147e0Sopenharmony_ci telephone: 'telephone', //Phone number TEXT 21048147e0Sopenharmony_ci content: 'content', // SMS message content TEXT 22048147e0Sopenharmony_ci contactsNum: 'contacts_num', // Number of Contacts integer 23048147e0Sopenharmony_ci smsType: 'sms_type', //Sms Type 0-Common,1-Notice integer 24048147e0Sopenharmony_ci unreadCount: 'unread_count', // Number of unread SMs integer 25048147e0Sopenharmony_ci sendStatus: 'sending_status', // Sending success status 0:Success ,1 :Fail , 2 : Sending... integer 26048147e0Sopenharmony_ci hasDraft: 'has_draft', //Whether there is a draft 0: no, 1:have integer 27048147e0Sopenharmony_ci hasLock: 'has_lock', // Whether there is a lock 0: no, 1:have integer 28048147e0Sopenharmony_ci messageCount: 'message_count', //Total number of messages integer 29048147e0Sopenharmony_ci hasMms: 'has_mms', //Whether there is a new message 0: no, 1:have integer 30048147e0Sopenharmony_ci hasAttachment: 'has_attachment' //Whether there are attachments 0: no, 1:have integer 31048147e0Sopenharmony_ci }, 32048147e0Sopenharmony_ci // Name of the field corresponding to the SMS message details. 33048147e0Sopenharmony_ci messageInfo: { 34048147e0Sopenharmony_ci msgId: 'msg_id', //sms_mms_info Table id integer 35048147e0Sopenharmony_ci slotId: 'slot_id', //slot_id integer 36048147e0Sopenharmony_ci receiverNumber: 'receiver_number', //Recipient number TEXT 37048147e0Sopenharmony_ci senderNumber: 'sender_number', //Sender number TEXT 38048147e0Sopenharmony_ci startTime: 'start_time', //Start Time TEXT 39048147e0Sopenharmony_ci endTime: 'end_time', //End Time TEXT 40048147e0Sopenharmony_ci msgType: 'msg_type', //Message Type 0 Subject、1 Pictures、2 Video、3 Audio、4 Text、5 business card integer 41048147e0Sopenharmony_ci smsType: 'sms_type', //SM Type 0-Common,1-Notice integer 42048147e0Sopenharmony_ci msgTitle: 'msg_title', //Message Title TEXT 43048147e0Sopenharmony_ci msgContent: 'msg_content', //Message content TEXT 44048147e0Sopenharmony_ci msgState: 'msg_state', //Message Status 0:Success ,1 :fail , 2 : Sending... integer 45048147e0Sopenharmony_ci operatorServiceNumber: 'operator_service_number', //Operator service number TEXT 46048147e0Sopenharmony_ci msgCode: 'msg_code', //Message Code integer 47048147e0Sopenharmony_ci isLock: 'is_lock', //Locked 0-No,1-Yes integer 48048147e0Sopenharmony_ci isRead: 'is_read', // Read or Not 49048147e0Sopenharmony_ci isCollect: 'is_collect', //Favorites 0-Not favorited,1-Favorites integer 50048147e0Sopenharmony_ci sessionType: 'session_type', //Session Type 0 - Common 1 - broadcast 2 - Group Sending integer 51048147e0Sopenharmony_ci retryNumber: 'retry_number', //Retry Times integer 52048147e0Sopenharmony_ci isSubsection: 'is_subsection', //Branch 0 - NO 1 - Yes integer 53048147e0Sopenharmony_ci sessionId: 'session_id', //Session ID integer 54048147e0Sopenharmony_ci groupId: 'group_id', //Group ID integer 55048147e0Sopenharmony_ci isSender: 'is_sender', //Sender or Not 0 - Recipient 1 - Sender integer 56048147e0Sopenharmony_ci isSendReport: 'is_send_report' //Whether to send a report 0 - No 1 - Yes integer 57048147e0Sopenharmony_ci }, 58048147e0Sopenharmony_ci contactColumns: { 59048147e0Sopenharmony_ci id: 'id', // raw_contact_table id 60048147e0Sopenharmony_ci displayName: 'display_name', // Display Name 61048147e0Sopenharmony_ci contactedCount: 'contacted_count', // Number of Contacts 62048147e0Sopenharmony_ci lastestContactedTime: 'lastest_contacted_time', // Last Contact Time 63048147e0Sopenharmony_ci }, 64048147e0Sopenharmony_ci contactDataColumns: { 65048147e0Sopenharmony_ci id: 'id', // raw_contact_table id 66048147e0Sopenharmony_ci contactId: 'contact_id', // raw_contact_table id 67048147e0Sopenharmony_ci detailInfo: 'detail_info', 68048147e0Sopenharmony_ci typeId: 'type_id', // raw_contact_table id 69048147e0Sopenharmony_ci contentType: 'content_type', // raw_contact_table id 70048147e0Sopenharmony_ci displayName: 'display_name', // Display Name 71048147e0Sopenharmony_ci hasDelete: 'is_deleted' // hasDelete 72048147e0Sopenharmony_ci }, 73048147e0Sopenharmony_ci searchContactView: { 74048147e0Sopenharmony_ci searchName: 'search_name', 75048147e0Sopenharmony_ci contactId: 'contact_id', 76048147e0Sopenharmony_ci detailInfo: 'detail_info', 77048147e0Sopenharmony_ci contentType: 'content_type', 78048147e0Sopenharmony_ci displayName: 'display_name', // Display Name 79048147e0Sopenharmony_ci hasDelete: 'is_deleted' // hasDelete 80048147e0Sopenharmony_ci }, 81048147e0Sopenharmony_ci // Saving MMS data 82048147e0Sopenharmony_ci mmsPart: { 83048147e0Sopenharmony_ci msgId: 'msg_id', //mms_part table id integer 84048147e0Sopenharmony_ci groupId: 'group_id', // Group ID integer 85048147e0Sopenharmony_ci type: 'type', // 0: theme; 1: picture; 2: video; 3: audio; 4: text; 5: business card integer 86048147e0Sopenharmony_ci locationPath: 'location_path', //Local storage path TEXT 87048147e0Sopenharmony_ci content: 'content', //MMS text content TEXT 88048147e0Sopenharmony_ci partSize: 'part_size', //MMS Size TEXT 89048147e0Sopenharmony_ci partIndex: 'part_index', //MMS data subscript integer 90048147e0Sopenharmony_ci recordingTime: 'recording_time', //Audio/Video Recording Time TEXT 91048147e0Sopenharmony_ci encode: 'encode', //Encoding or not 0: no encoding/encryption; 1: encoding/encryption integer 92048147e0Sopenharmony_ci state: 'state' //Sending success status 0: success; 1: failure; 2: sending... integer 93048147e0Sopenharmony_ci }, 94048147e0Sopenharmony_ci // Saving SMS data in partitions 95048147e0Sopenharmony_ci smsSubsection: { 96048147e0Sopenharmony_ci smsSubsectionId: 'sms_subsection_id', //sms_subsection table id integer 97048147e0Sopenharmony_ci receiverNumber: 'receiver_number', //Recipient number TEXT 98048147e0Sopenharmony_ci senderNumber: 'sender_number', //Sender number TEXT 99048147e0Sopenharmony_ci isSender: 'is_sender', //Sender number 0 - Sender 1 - Recipient integer 100048147e0Sopenharmony_ci startTime: 'start_time', //Start Time TEXT 101048147e0Sopenharmony_ci endTime: 'end_time', //End Time TEXT 102048147e0Sopenharmony_ci rawPdu: 'raw_pdu', //PDU string of the SMS message TEXT 103048147e0Sopenharmony_ci format: 'format', //Formatted data integer 104048147e0Sopenharmony_ci destPort: 'dest_port', //Destination Port integer 105048147e0Sopenharmony_ci subsectionIndex: 'subsection_index', //Section Index integer 106048147e0Sopenharmony_ci size: 'size' //size integer 107048147e0Sopenharmony_ci }, 108048147e0Sopenharmony_ci // mms Protocol data saving 109048147e0Sopenharmony_ci mmsProtocol: { 110048147e0Sopenharmony_ci msgId: 'msg_id', //mms_Protocol table id integer 111048147e0Sopenharmony_ci bcc: 'bcc', //bcc TEXT 112048147e0Sopenharmony_ci cc: 'cc', //cc TEXT 113048147e0Sopenharmony_ci content_location: 'content_location', //content_location TEXT 114048147e0Sopenharmony_ci date: 'date', //date TEXT 115048147e0Sopenharmony_ci deliveryReport: 'delivery_report', //deliveryReport integer 116048147e0Sopenharmony_ci deliveryTime: 'delivery_time', //deliveryTime TEXT 117048147e0Sopenharmony_ci expiry: 'expiry', //expiry integer 118048147e0Sopenharmony_ci type: 'type', //type integer 119048147e0Sopenharmony_ci serialNumber: 'serial_number', //serialNumber TEXT 120048147e0Sopenharmony_ci category: 'category', //category TEXT 121048147e0Sopenharmony_ci version: 'version', //version integer 122048147e0Sopenharmony_ci size: 'size', //size integer 123048147e0Sopenharmony_ci priority: 'priority', //priority integer 124048147e0Sopenharmony_ci readReply: 'read_reply', //readReply integer 125048147e0Sopenharmony_ci reportAllowed: 'report_allowed', //reportAllowed integer 126048147e0Sopenharmony_ci responseStatus: 'response_status', //responseStatus integer 127048147e0Sopenharmony_ci responseText: 'response_text', //responseText TEXT 128048147e0Sopenharmony_ci senderVisibility: 'sender_visibility' //senderVisibility integer 129048147e0Sopenharmony_ci } 130048147e0Sopenharmony_ci}