-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtable.go
224 lines (219 loc) · 11.4 KB
/
table.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
package table
import (
"fmt"
"log"
)
/*
Unknown fields = I don't know what type it is supposed to be, because I only see 9 which is undefined
Trial and error works ^ check console for failed conversation within the decoder
*/
type LSTable struct {
LSMciTraceLog []LSMciTraceLog
LSExecuteFirstBlockForSyncTransaction []LSExecuteFirstBlockForSyncTransaction
LSTruncateMetadataThreads []LSTruncateMetadataThreads
LSTruncateThreadRangeTablesForSyncGroup []LSTruncateThreadRangeTablesForSyncGroup
LSUpsertSyncGroupThreadsRange []LSUpsertSyncGroupThreadsRange
LSUpsertInboxThreadsRange []LSUpsertInboxThreadsRange
LSUpdateThreadsRangesV2 []LSUpdateThreadsRangesV2
LSUpsertFolderSeenTimestamp []LSUpsertFolderSeenTimestamp
LSSetHMPSStatus []LSSetHMPSStatus
LSTruncateTablesForSyncGroup []LSTruncateTablesForSyncGroup
LSDeleteThenInsertThread []LSDeleteThenInsertThread
LSAddParticipantIdToGroupThread []LSAddParticipantIdToGroupThread
LSClearPinnedMessages []LSClearPinnedMessages
LSWriteThreadCapabilities []LSWriteThreadCapabilities
LSUpsertMessage []LSUpsertMessage
LSSetForwardScore []LSSetForwardScore
LSSetMessageDisplayedContentTypes []LSSetMessageDisplayedContentTypes
LSUpdateReadReceipt []LSUpdateReadReceipt
LSInsertNewMessageRange []LSInsertNewMessageRange
LSDeleteExistingMessageRanges []LSDeleteExistingMessageRanges
LSUpsertSequenceId []LSUpsertSequenceId
LSVerifyContactRowExists []LSVerifyContactRowExists
LSThreadsRangesQuery []LSThreadsRangesQuery
LSSetRegionHint []LSSetRegionHint
LSExecuteFinallyBlockForSyncTransaction []LSExecuteFinallyBlockForSyncTransaction
LSRemoveTask []LSRemoveTask
LSTaskExists []LSTaskExists
LSDeleteThenInsertContact []LSDeleteThenInsertContact
LSUpdateTypingIndicator []LSUpdateTypingIndicator
LSCheckAuthoritativeMessageExists []LSCheckAuthoritativeMessageExists
LSMoveThreadToInboxAndUpdateParent []LSMoveThreadToInboxAndUpdateParent
LSUpdateThreadSnippet []LSUpdateThreadSnippet
LSVerifyThreadExists []LSVerifyThreadExists
LSBumpThread []LSBumpThread
LSUpdateParticipantLastMessageSendTimestamp []LSUpdateParticipantLastMessageSendTimestamp
LSInsertMessage []LSInsertMessage
LSUpsertGradientColor []LSUpsertGradientColor
LSUpsertTheme []LSUpsertTheme
LSInsertStickerAttachment []LSInsertStickerAttachment
LSUpsertReaction []LSUpsertReaction
LSDeleteReaction []LSDeleteReaction
LSHandleRepliesOnUnsend []LSHandleRepliesOnUnsend
LSInsertXmaAttachment []LSInsertXmaAttachment
LSUpdateUnsentMessageCollapsedStatus []LSUpdateUnsentMessageCollapsedStatus
LSDeleteThenInsertMessage []LSDeleteThenInsertMessage
LSUpdateThreadSnippetFromLastMessage []LSUpdateThreadSnippetFromLastMessage
LSUpdateForRollCallMessageDeleted []LSUpdateForRollCallMessageDeleted
LSInsertBlobAttachment []LSInsertBlobAttachment
LSDeleteBannersByIds []LSDeleteBannersByIds
LSUpdateDeliveryReceipt []LSUpdateDeliveryReceipt
LSUpdateTaskQueueName []LSUpdateTaskQueueName
LSUpdateTaskValue []LSUpdateTaskValue
LSReplaceOptimsiticMessage []LSReplaceOptimsiticMessage
LSUpdateOptimisticContextThreadKeys []LSUpdateOptimisticContextThreadKeys
LSReplaceOptimisticThread []LSReplaceOptimisticThread
LSApplyNewGroupThread []LSApplyNewGroupThread
LSRemoveAllParticipantsForThread []LSRemoveAllParticipantsForThread
LSAppendDataTraceAddon []LSAppendDataTraceAddon
LSUpdateThreadInviteLinksInfo []LSUpdateThreadInviteLinksInfo
LSUpdateThreadParticipantAdminStatus []LSUpdateThreadParticipantAdminStatus
LSUpdateParticipantSubscribeSourceText []LSUpdateParticipantSubscribeSourceText
LSOverwriteAllThreadParticipantsAdminStatus []LSOverwriteAllThreadParticipantsAdminStatus
LSUpdateParticipantCapabilities []LSUpdateParticipantCapabilities
LSChangeViewerStatus []LSChangeViewerStatus
LSUpdateSearchQueryStatus []LSUpdateSearchQueryStatus
LSInsertSearchResult []LSInsertSearchResult
LSInsertSearchSection []LSInsertSearchSection
LSSyncUpdateThreadName []LSSyncUpdateThreadName
LSSetMessageTextHasLinks []LSSetMessageTextHasLinks
LSUpdateMessagesOptimisticContext []LSUpdateMessagesOptimisticContext
LSMailboxTaskCompletionApiOnTaskCompletion []LSMailboxTaskCompletionApiOnTaskCompletion
LSWriteCTAIdToThreadsTable []LSWriteCTAIdToThreadsTable
LSQueryAdditionalGroupThreads []LSQueryAdditionalGroupThreads
LSReplaceOptimisticReaction []LSReplaceOptimisticReaction
LSDeleteThenInsertMessageRequest []LSDeleteThenInsertMessageRequest
LSDeleteThenInsertIgThreadInfo []LSDeleteThenInsertIgThreadInfo
LSDeleteThenInsertContactPresence []LSDeleteThenInsertContactPresence
LSTruncatePresenceDatabase []LSTruncatePresenceDatabase
LSMarkThreadRead []LSMarkThreadRead
LSUpdateParentFolderReadWatermark []LSUpdateParentFolderReadWatermark
LSInsertAttachmentItem []LSInsertAttachmentItem
LSGetFirstAvailableAttachmentCTAID []LSGetFirstAvailableAttachmentCTAID
LSInsertAttachmentCta []LSInsertAttachmentCta
LSUpdateAttachmentItemCtaAtIndex []LSUpdateAttachmentItemCtaAtIndex
LSUpdateAttachmentCtaAtIndexIgnoringAuthority []LSUpdateAttachmentCtaAtIndexIgnoringAuthority
LSHasMatchingAttachmentCTA []LSHasMatchingAttachmentCTA
LSDeleteThenInsertIGContactInfo []LSDeleteThenInsertIGContactInfo
LSIssueNewTask []LSIssueNewTask
LSUpdateOrInsertThread []LSUpdateOrInsertThread
LSSetThreadCannotUnsendReason []LSSetThreadCannotUnsendReason
LSClearLocalThreadPictureUrl []LSClearLocalThreadPictureUrl
LSUpdateInviterId []LSUpdateInviterId
LSAddToMemberCount []LSAddToMemberCount
LSMoveThreadToArchivedFolder []LSMoveThreadToArchivedFolder
LSRemoveParticipantFromThread []LSRemoveParticipantFromThread
LSDeleteRtcRoomOnThread []LSDeleteRtcRoomOnThread
LSUpdateThreadTheme []LSUpdateThreadTheme
LSUpdateThreadApprovalMode []LSUpdateThreadApprovalMode
LSRemoveAllRequestsFromAdminApprovalQueue []LSRemoveAllRequestsFromAdminApprovalQueue
}
var SPTable = map[string]string{
"removeAllRequestsFromAdminApprovalQueue": "LSRemoveAllRequestsFromAdminApprovalQueue",
"updateThreadApprovalMode": "LSUpdateThreadApprovalMode",
"updateThreadTheme": "LSUpdateThreadTheme",
"deleteRtcRoomOnThread": "LSDeleteRtcRoomOnThread",
"removeParticipantFromThread": "LSRemoveParticipantFromThread",
"moveThreadToArchivedFolder": "LSMoveThreadToArchivedFolder",
"setThreadCannotUnsendReason": "LSSetThreadCannotUnsendReason",
"clearLocalThreadPictureUrl": "LSClearLocalThreadPictureUrl",
"updateInviterId": "LSUpdateInviterId",
"addToMemberCount": "LSAddToMemberCount",
"updateOrInsertThread": "LSUpdateOrInsertThread",
"issueNewTask": "LSIssueNewTask",
"deleteThenInsertIGContactInfo": "LSDeleteThenInsertIGContactInfo",
"hasMatchingAttachmentCTA": "LSHasMatchingAttachmentCTA",
"updateAttachmentCtaAtIndexIgnoringAuthority": "LSUpdateAttachmentCtaAtIndexIgnoringAuthority",
"updateAttachmentItemCtaAtIndex": "LSUpdateAttachmentItemCtaAtIndex",
"insertAttachmentCta": "LSInsertAttachmentCta",
"getFirstAvailableAttachmentCTAID": "LSGetFirstAvailableAttachmentCTAID",
"insertAttachmentItem": "LSInsertAttachmentItem",
"updateParentFolderReadWatermark": "LSUpdateParentFolderReadWatermark",
"markThreadRead": "LSMarkThreadRead",
"truncatePresenceDatabase": "LSTruncatePresenceDatabase",
"deleteThenInsertContactPresence": "LSDeleteThenInsertContactPresence",
"deleteThenInsertIgThreadInfo": "LSDeleteThenInsertIgThreadInfo",
"deleteThenInsertMessageRequest": "LSDeleteThenInsertMessageRequest",
"replaceOptimisticReaction": "LSReplaceOptimisticReaction",
"queryAdditionalGroupThreads": "LSQueryAdditionalGroupThreads",
"writeCTAIdToThreadsTable": "LSWriteCTAIdToThreadsTable",
"mailboxTaskCompletionApiOnTaskCompletion": "LSMailboxTaskCompletionApiOnTaskCompletion",
"updateMessagesOptimisticContext": "LSUpdateMessagesOptimisticContext",
"setMessageTextHasLinks": "LSSetMessageTextHasLinks",
"syncUpdateThreadName": "LSSyncUpdateThreadName",
"insertSearchSection": "LSInsertSearchSection",
"insertSearchResult": "LSInsertSearchResult",
"updateSearchQueryStatus": "LSUpdateSearchQueryStatus",
"changeViewerStatus": "LSChangeViewerStatus",
"updateParticipantCapabilities": "LSUpdateParticipantCapabilities",
"overwriteAllThreadParticipantsAdminStatus": "LSOverwriteAllThreadParticipantsAdminStatus",
"updateParticipantSubscribeSourceText": "LSUpdateParticipantSubscribeSourceText",
"updateThreadParticipantAdminStatus": "LSUpdateThreadParticipantAdminStatus",
"updateThreadInviteLinksInfo": "LSUpdateThreadInviteLinksInfo",
"appendDataTraceAddon": "LSAppendDataTraceAddon",
"removeAllParticipantsForThread": "LSRemoveAllParticipantsForThread",
"applyNewGroupThread": "LSApplyNewGroupThread",
"replaceOptimisticThread": "LSReplaceOptimisticThread",
"updateOptimisticContextThreadKeys": "LSUpdateOptimisticContextThreadKeys",
"replaceOptimsiticMessage": "LSReplaceOptimsiticMessage",
"updateTaskQueueName": "LSUpdateTaskQueueName",
"updateTaskValue": "LSUpdateTaskValue",
"updateDeliveryReceipt": "LSUpdateDeliveryReceipt",
"deleteBannersByIds": "LSDeleteBannersByIds",
"truncateTablesForSyncGroup": "LSTruncateTablesForSyncGroup",
"insertXmaAttachment": "LSInsertXmaAttachment",
"insertNewMessageRange": "LSInsertNewMessageRange",
"threadsRangesQuery": "LSThreadsRangesQuery",
"updateThreadSnippetFromLastMessage": "LSUpdateThreadSnippetFromLastMessage",
"upsertInboxThreadsRange": "LSUpsertInboxThreadsRange",
"deleteThenInsertThread": "LSDeleteThenInsertThread",
"addParticipantIdToGroupThread": "LSAddParticipantIdToGroupThread",
"upsertMessage": "LSUpsertMessage",
"clearPinnedMessages": "LSClearPinnedMessages",
"mciTraceLog": "LSMciTraceLog",
"insertBlobAttachment": "LSInsertBlobAttachment",
"updateUnsentMessageCollapsedStatus": "LSUpdateUnsentMessageCollapsedStatus",
"executeFirstBlockForSyncTransaction": "LSExecuteFirstBlockForSyncTransaction",
"updateThreadsRangesV2": "LSUpdateThreadsRangesV2",
"upsertSyncGroupThreadsRange": "LSUpsertSyncGroupThreadsRange",
"upsertFolderSeenTimestamp": "LSUpsertFolderSeenTimestamp",
"setHMPSStatus": "LSSetHMPSStatus",
"handleRepliesOnUnsend": "LSHandleRepliesOnUnsend",
"deleteExistingMessageRanges": "LSDeleteExistingMessageRanges",
"writeThreadCapabilities": "LSWriteThreadCapabilities",
"upsertSequenceId": "LSUpsertSequenceId",
"executeFinallyBlockForSyncTransaction": "LSExecuteFinallyBlockForSyncTransaction",
"verifyContactRowExists": "LSVerifyContactRowExists",
"taskExists": "LSTaskExists",
"removeTask": "LSRemoveTask",
"deleteThenInsertMessage": "LSDeleteThenInsertMessage",
"deleteThenInsertContact": "LSDeleteThenInsertContact",
"updateTypingIndicator": "LSUpdateTypingIndicator",
"checkAuthoritativeMessageExists": "LSCheckAuthoritativeMessageExists",
"moveThreadToInboxAndUpdateParent": "LSMoveThreadToInboxAndUpdateParent",
"updateThreadSnippet": "LSUpdateThreadSnippet",
"setMessageDisplayedContentTypes": "LSSetMessageDisplayedContentTypes",
"verifyThreadExists": "LSVerifyThreadExists",
"updateReadReceipt": "LSUpdateReadReceipt",
"setForwardScore": "LSSetForwardScore",
"upsertReaction": "LSUpsertReaction",
"bumpThread": "LSBumpThread",
"updateParticipantLastMessageSendTimestamp": "LSUpdateParticipantLastMessageSendTimestamp",
"insertMessage": "LSInsertMessage",
"upsertTheme": "LSUpsertTheme",
"upsertGradientColor": "LSUpsertGradientColor",
"insertStickerAttachment": "LSInsertStickerAttachment",
"updateForRollCallMessageDeleted": "LSUpdateForRollCallMessageDeleted",
}
func SPToDepMap(sp []string) map[string]string {
m := make(map[string]string, 0)
for _, d := range sp {
depName, ok := SPTable[d]
if !ok {
log.Println(fmt.Sprintf("can't convert sp %s to dependency name because it wasn't found in the SPTable", d))
continue
}
m[d] = depName
}
return m
}