mirror of
https://github.com/garraflavatra/go-fmp.git
synced 2025-07-17 11:44:04 +00:00
Restructure, add script step constants
This commit is contained in:
269
fmp/fmp_const.go
269
fmp/fmp_const.go
@ -1,7 +1,9 @@
|
||||
package fmp
|
||||
|
||||
type FmpError string
|
||||
type FmpChunkType uint8
|
||||
type FmpCollation uint8
|
||||
type FmpScriptStepType uint8
|
||||
type FmpError string
|
||||
|
||||
func (e FmpError) Error() string { return string(e) }
|
||||
|
||||
@ -16,42 +18,237 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
FMP_CHUNK_SIMPLE_DATA FmpChunkType = iota
|
||||
FMP_CHUNK_SEGMENTED_DATA
|
||||
FMP_CHUNK_SIMPLE_KEY_VALUE
|
||||
FMP_CHUNK_LONG_KEY_VALUE
|
||||
FMP_CHUNK_PATH_PUSH
|
||||
FMP_CHUNK_PATH_PUSH_LONG
|
||||
FMP_CHUNK_PATH_POP
|
||||
FMP_CHUNK_NOOP
|
||||
FmpChunkSimpleData FmpChunkType = iota
|
||||
FmpChunkSegmentedData FmpChunkType = iota
|
||||
FmpChunkSimpleKeyValue FmpChunkType = iota
|
||||
FmpChunkLongKeyValue FmpChunkType = iota
|
||||
FmpChunkPathPush FmpChunkType = iota
|
||||
FmpChunkPathPushLong FmpChunkType = iota
|
||||
FmpChunkPathPop FmpChunkType = iota
|
||||
FmpChunkNoop FmpChunkType = iota
|
||||
)
|
||||
|
||||
const (
|
||||
FMP_COLLATION_ENGLISH = 0x00
|
||||
FMP_COLLATION_FRENCH = 0x01
|
||||
FMP_COLLATION_GERMAN = 0x03
|
||||
FMP_COLLATION_ITALIAN = 0x04
|
||||
FMP_COLLATION_DUTCH = 0x05
|
||||
FMP_COLLATION_SWEDISH = 0x07
|
||||
FMP_COLLATION_SPANISH = 0x08
|
||||
FMP_COLLATION_DANISH = 0x09
|
||||
FMP_COLLATION_PORTUGUESE = 0x0A
|
||||
FMP_COLLATION_NORWEGIAN = 0x0C
|
||||
FMP_COLLATION_FINNISH = 0x11
|
||||
FMP_COLLATION_GREEK = 0x14
|
||||
FMP_COLLATION_ICELANDIC = 0x15
|
||||
FMP_COLLATION_TURKISH = 0x18
|
||||
FMP_COLLATION_ROMANIAN = 0x27
|
||||
FMP_COLLATION_POLISH = 0x2a
|
||||
FMP_COLLATION_HUNGARIAN = 0x2b
|
||||
FMP_COLLATION_RUSSIAN = 0x31
|
||||
FMP_COLLATION_CZECH = 0x38
|
||||
FMP_COLLATION_UKRAINIAN = 0x3e
|
||||
FMP_COLLATION_CROATIAN = 0x42
|
||||
FMP_COLLATION_CATALAN = 0x49
|
||||
FMP_COLLATION_FINNISH_ALT = 0x62
|
||||
FMP_COLLATION_SWEDISH_ALT = 0x63
|
||||
FMP_COLLATION_GERMAN_ALT = 0x64
|
||||
FMP_COLLATION_SPANISH_ALT = 0x65
|
||||
FMP_COLLATION_ASCII = 0x66
|
||||
FmpCollationEnglish FmpCollation = 0x00
|
||||
FmpCollationFrench FmpCollation = 0x01
|
||||
FmpCollationGerman FmpCollation = 0x03
|
||||
FmpCollationItalian FmpCollation = 0x04
|
||||
FmpCollationDutch FmpCollation = 0x05
|
||||
FmpCollationSwedish FmpCollation = 0x07
|
||||
FmpCollationSpanish FmpCollation = 0x08
|
||||
FmpCollationDanish FmpCollation = 0x09
|
||||
FmpCollationPortuguese FmpCollation = 0x0A
|
||||
FmpCollationNorwegian FmpCollation = 0x0C
|
||||
FmpCollationFinnish FmpCollation = 0x11
|
||||
FmpCollationGreek FmpCollation = 0x14
|
||||
FmpCollationIcelandic FmpCollation = 0x15
|
||||
FmpCollationTurkish FmpCollation = 0x18
|
||||
FmpCollationRomanian FmpCollation = 0x27
|
||||
FmpCollationPolish FmpCollation = 0x2a
|
||||
FmpCollationHungarian FmpCollation = 0x2b
|
||||
FmpCollationRussian FmpCollation = 0x31
|
||||
FmpCollationCzech FmpCollation = 0x38
|
||||
FmpCollationUkrainian FmpCollation = 0x3e
|
||||
FmpCollationCroatian FmpCollation = 0x42
|
||||
FmpCollationCatalan FmpCollation = 0x49
|
||||
FmpCollationFinnishAlt FmpCollation = 0x62
|
||||
FmpCollationSwedishAlt FmpCollation = 0x63
|
||||
FmpCollationGermanAlt FmpCollation = 0x64
|
||||
FmpCollationSpanishAlt FmpCollation = 0x65
|
||||
FmpCollationAscii FmpCollation = 0x66
|
||||
)
|
||||
|
||||
const (
|
||||
FmpScriptPerformScript FmpScriptStepType = 1
|
||||
FmpScriptSaveACopyAsXml FmpScriptStepType = 3
|
||||
FmpScriptGoToNextField FmpScriptStepType = 4
|
||||
FmpScriptGoToPreviousField FmpScriptStepType = 5
|
||||
FmpScriptGoToLayout FmpScriptStepType = 6
|
||||
FmpScriptNewRecordRequest FmpScriptStepType = 7
|
||||
FmpScriptDuplicateRecordRequest FmpScriptStepType = 8
|
||||
FmpScriptDeleteRecordRequest FmpScriptStepType = 9
|
||||
FmpScriptDeleteAllRecords FmpScriptStepType = 10
|
||||
FmpScriptInsertFromIndex FmpScriptStepType = 11
|
||||
FmpScriptInsertFromLastVisited FmpScriptStepType = 12
|
||||
FmpScriptInsertCurrentDate FmpScriptStepType = 13
|
||||
FmpScriptInsertCurrentTime FmpScriptStepType = 14
|
||||
FmpScriptGoToRecordRequestPage FmpScriptStepType = 16
|
||||
FmpScriptGoToField FmpScriptStepType = 17
|
||||
FmpScriptCheckSelection FmpScriptStepType = 18
|
||||
FmpScriptCheckRecord FmpScriptStepType = 19
|
||||
FmpScriptCheckFoundSet FmpScriptStepType = 20
|
||||
FmpScriptUnsortRecords FmpScriptStepType = 21
|
||||
FmpScriptEnterFindMode FmpScriptStepType = 22
|
||||
FmpScriptShowAllRecords FmpScriptStepType = 23
|
||||
FmpScriptModifyLastFind FmpScriptStepType = 24
|
||||
FmpScriptOmitRecord FmpScriptStepType = 25
|
||||
FmpScriptOmitMultipleRecords FmpScriptStepType = 26
|
||||
FmpScriptShowOmmitedOnly FmpScriptStepType = 27
|
||||
FmpScriptPerformFind FmpScriptStepType = 28
|
||||
FmpScriptShowHideToolbars FmpScriptStepType = 29
|
||||
FmpScriptViewAs FmpScriptStepType = 30
|
||||
FmpScriptAdjustWindow FmpScriptStepType = 31
|
||||
FmpScriptOpenHelp FmpScriptStepType = 32
|
||||
FmpScriptOpenFile FmpScriptStepType = 33
|
||||
FmpScriptCloseFile FmpScriptStepType = 34
|
||||
FmpScriptImportRecords FmpScriptStepType = 35
|
||||
FmpScriptExportRecords FmpScriptStepType = 36
|
||||
FmpScriptSaveACopyAs FmpScriptStepType = 37
|
||||
FmpScriptOpenManageDatabase FmpScriptStepType = 38
|
||||
FmpScriptSortRecords FmpScriptStepType = 39
|
||||
FmpScriptRelookupFieldContents FmpScriptStepType = 40
|
||||
FmpScriptEnterPreviewMode FmpScriptStepType = 41
|
||||
FmpScriptPrintSetup FmpScriptStepType = 42
|
||||
FmpScriptPrint FmpScriptStepType = 43
|
||||
FmpScriptExitApplication FmpScriptStepType = 44
|
||||
FmpScriptUndoRedo FmpScriptStepType = 45
|
||||
FmpScriptCut FmpScriptStepType = 46
|
||||
FmpScriptCopy FmpScriptStepType = 47
|
||||
FmpScriptPaste FmpScriptStepType = 48
|
||||
FmpScriptClear FmpScriptStepType = 49
|
||||
FmpScriptSelectAll FmpScriptStepType = 50
|
||||
FmpScriptRevertRecordRequest FmpScriptStepType = 51
|
||||
FmpScriptEnterBrowserMode FmpScriptStepType = 55
|
||||
FmpScriptInsertPicture FmpScriptStepType = 56
|
||||
FmpScriptSendEvent FmpScriptStepType = 57
|
||||
FmpScriptInsertCurrentUserName FmpScriptStepType = 60
|
||||
FmpScriptInsertText FmpScriptStepType = 61
|
||||
FmpScriptPauseResumeScript FmpScriptStepType = 62
|
||||
FmpScriptSendMail FmpScriptStepType = 63
|
||||
FmpScriptSendDdeExecute FmpScriptStepType = 64
|
||||
FmpScriptDialPhone FmpScriptStepType = 65
|
||||
FmpScriptSpeak FmpScriptStepType = 66
|
||||
FmpScriptPerformApplescript FmpScriptStepType = 67
|
||||
FmpScriptIf FmpScriptStepType = 68
|
||||
FmpScriptElse FmpScriptStepType = 69
|
||||
FmpScriptEndIf FmpScriptStepType = 70
|
||||
FmpScriptLoop FmpScriptStepType = 71
|
||||
FmpScriptExitLoopIf FmpScriptStepType = 72
|
||||
FmpScriptEndLoop FmpScriptStepType = 73
|
||||
FmpScriptGoToRelatedRecord FmpScriptStepType = 74
|
||||
FmpScriptCommitRecordsRequests FmpScriptStepType = 75
|
||||
FmpScriptSetField FmpScriptStepType = 76
|
||||
FmpScriptInsertCalculatedResult FmpScriptStepType = 77
|
||||
FmpScriptFreezeWindow FmpScriptStepType = 79
|
||||
FmpScriptRefreshWindow FmpScriptStepType = 80
|
||||
FmpScriptScrollWindow FmpScriptStepType = 81
|
||||
FmpScriptNewFile FmpScriptStepType = 82
|
||||
FmpScriptChangePassword FmpScriptStepType = 83
|
||||
FmpScriptSetMultiUser FmpScriptStepType = 84
|
||||
FmpScriptAllowUserAbort FmpScriptStepType = 85
|
||||
FmpScriptSetErrorCapture FmpScriptStepType = 86
|
||||
FmpScriptShowCustomDialog FmpScriptStepType = 87
|
||||
FmpScriptOpenScriptWorkspace FmpScriptStepType = 88
|
||||
FmpScriptBlankLineComment FmpScriptStepType = 89
|
||||
FmpScriptHaltScript FmpScriptStepType = 90
|
||||
FmpScriptReplaceFieldContents FmpScriptStepType = 91
|
||||
FmpScriptShowHideTextRuler FmpScriptStepType = 92
|
||||
FmpScriptBeep FmpScriptStepType = 93
|
||||
FmpScriptSetUseSystemFormats FmpScriptStepType = 94
|
||||
FmpScriptRecoverFile FmpScriptStepType = 95
|
||||
FmpScriptSaveACopyAsAddOnPackage FmpScriptStepType = 96
|
||||
FmpScriptSetZoomLevel FmpScriptStepType = 97
|
||||
FmpScriptCopyAllRecordsRequests FmpScriptStepType = 98
|
||||
FmpScriptGoToPortalRow FmpScriptStepType = 99
|
||||
FmpScriptCopyRecordRequest FmpScriptStepType = 101
|
||||
FmpScriptFluchCacheToDisk FmpScriptStepType = 102
|
||||
FmpScriptExitScript FmpScriptStepType = 103
|
||||
FmpScriptDeletePortalRow FmpScriptStepType = 104
|
||||
FmpScriptOpenPreferences FmpScriptStepType = 105
|
||||
FmpScriptCorrectWord FmpScriptStepType = 106
|
||||
FmpScriptSpellingOptions FmpScriptStepType = 107
|
||||
FmpScriptSelectDictionaries FmpScriptStepType = 108
|
||||
FmpScriptEditUserDictionary FmpScriptStepType = 109
|
||||
FmpScriptOpenUrl FmpScriptStepType = 111
|
||||
FmpScriptOpenManageValueLists FmpScriptStepType = 112
|
||||
FmpScriptOpenSharing FmpScriptStepType = 113
|
||||
FmpScriptOpenFileOptions FmpScriptStepType = 114
|
||||
FmpScriptAllowFormattingBar FmpScriptStepType = 115
|
||||
FmpScriptSetNextSerialValue FmpScriptStepType = 116
|
||||
FmpScriptExecuteSql FmpScriptStepType = 117
|
||||
FmpScriptOpenHosts FmpScriptStepType = 118
|
||||
FmpScriptMoveResizeWindow FmpScriptStepType = 119
|
||||
FmpScriptArrangeAllWindows FmpScriptStepType = 120
|
||||
FmpScriptCloseWindow FmpScriptStepType = 121
|
||||
FmpScriptNewWindow FmpScriptStepType = 122
|
||||
FmpScriptSelectWindow FmpScriptStepType = 123
|
||||
FmpScriptSetWindowTitle FmpScriptStepType = 124
|
||||
FmpScriptElseIf FmpScriptStepType = 125
|
||||
FmpScriptConstrainFoundSet FmpScriptStepType = 126
|
||||
FmpScriptExtendFoundSet FmpScriptStepType = 127
|
||||
FmpScriptPerformFindReplace FmpScriptStepType = 128
|
||||
FmpScriptOpenFindReplace FmpScriptStepType = 129
|
||||
FmpScriptSetSelection FmpScriptStepType = 130
|
||||
FmpScriptInsertFile FmpScriptStepType = 131
|
||||
FmpScriptExportFieldContents FmpScriptStepType = 132
|
||||
FmpScriptOpenRecordRequest FmpScriptStepType = 133
|
||||
FmpScriptAddAccount FmpScriptStepType = 134
|
||||
FmpScriptDeleteAccount FmpScriptStepType = 135
|
||||
FmpScriptResetAccountPassword FmpScriptStepType = 136
|
||||
FmpScriptEnableAccount FmpScriptStepType = 137
|
||||
FmpScriptRelogin FmpScriptStepType = 138
|
||||
FmpScriptConvertFile FmpScriptStepType = 139
|
||||
FmpScriptOpenManageDataSources FmpScriptStepType = 140
|
||||
FmpScriptSetVariable FmpScriptStepType = 141
|
||||
FmpScriptInstallMenuSet FmpScriptStepType = 142
|
||||
FmpScriptSaveRecordsAsExcel FmpScriptStepType = 143
|
||||
FmpScriptSaveRecordsAsPdf FmpScriptStepType = 144
|
||||
FmpScriptGoToObject FmpScriptStepType = 145
|
||||
FmpScriptSetWebViewer FmpScriptStepType = 146
|
||||
FmpScriptSetFieldByName FmpScriptStepType = 147
|
||||
FmpScriptInstallOntimerScript FmpScriptStepType = 148
|
||||
FmpScriptOpenEditSavedFinds FmpScriptStepType = 149
|
||||
FmpScriptPerformQuickFind FmpScriptStepType = 150
|
||||
FmpScriptOpenManageLayouts FmpScriptStepType = 151
|
||||
FmpScriptSaveRecordsAsSnapshotLink FmpScriptStepType = 152
|
||||
FmpScriptSortRecordsByField FmpScriptStepType = 154
|
||||
FmpScriptFindMatchingRecords FmpScriptStepType = 155
|
||||
FmpScriptManageContainers FmpScriptStepType = 156
|
||||
FmpScriptInstallPluginFile FmpScriptStepType = 157
|
||||
FmpScriptInsertPdf FmpScriptStepType = 158
|
||||
FmpScriptInsertAudioVideo FmpScriptStepType = 159
|
||||
FmpScriptInsertFromUrl FmpScriptStepType = 160
|
||||
FmpScriptInsertFromDevice FmpScriptStepType = 161
|
||||
FmpScriptPerformScriptOnServer FmpScriptStepType = 164
|
||||
FmpScriptOpenManageThemes FmpScriptStepType = 165
|
||||
FmpScriptShowHideMenubar FmpScriptStepType = 166
|
||||
FmpScriptRefreshObject FmpScriptStepType = 167
|
||||
FmpScriptSetLayoutObjectAnimation FmpScriptStepType = 168
|
||||
FmpScriptClosePopover FmpScriptStepType = 169
|
||||
FmpScriptOpenUploadToHost FmpScriptStepType = 172
|
||||
FmpScriptEnableTouchKeyboard FmpScriptStepType = 174
|
||||
FmpScriptPerformJavascriptInWebViewer FmpScriptStepType = 175
|
||||
FmpScriptCommentedOut FmpScriptStepType = 176
|
||||
FmpScriptAvplayerPlay FmpScriptStepType = 177
|
||||
FmpScriptAvplayerSetPlaybackState FmpScriptStepType = 178
|
||||
FmpScriptAvplayerSetOptions FmpScriptStepType = 179
|
||||
FmpScriptRefreshPortal FmpScriptStepType = 180
|
||||
FmpScriptGetFolderPath FmpScriptStepType = 181
|
||||
FmpScriptTruncateTable FmpScriptStepType = 182
|
||||
FmpScriptOpenFavorites FmpScriptStepType = 183
|
||||
FmpScriptConfigureRegionMonitorScript FmpScriptStepType = 185
|
||||
FmpScriptConfigureLocalNotification FmpScriptStepType = 187
|
||||
FmpScriptGetFileExists FmpScriptStepType = 188
|
||||
FmpScriptGetFileSize FmpScriptStepType = 189
|
||||
FmpScriptCreateDataFile FmpScriptStepType = 190
|
||||
FmpScriptOpenDataFile FmpScriptStepType = 191
|
||||
FmpScriptWriteToDataFile FmpScriptStepType = 192
|
||||
FmpScriptReadFromDataFile FmpScriptStepType = 193
|
||||
FmpScriptGetDataFilePosition FmpScriptStepType = 194
|
||||
FmpScriptSetDataFilePosition FmpScriptStepType = 195
|
||||
FmpScriptCloseDataFile FmpScriptStepType = 196
|
||||
FmpScriptDeleteFile FmpScriptStepType = 197
|
||||
FmpScriptRenameFile FmpScriptStepType = 199
|
||||
FmpScriptSetErrorLogging FmpScriptStepType = 200
|
||||
FmpScriptConfigureNfcReading FmpScriptStepType = 201
|
||||
FmpScriptConfigureMachineLearningModel FmpScriptStepType = 202
|
||||
FmpScriptExecuteFilemakerDataApi FmpScriptStepType = 203
|
||||
FmpScriptOpenTransaction FmpScriptStepType = 205
|
||||
FmpScriptCommitTransaction FmpScriptStepType = 206
|
||||
FmpScriptRevertTransaction FmpScriptStepType = 207
|
||||
FmpScriptSetSessionIdentifier FmpScriptStepType = 208
|
||||
FmpScriptSetDictionary FmpScriptStepType = 209
|
||||
FmpScriptPerformScriptOnServerWithCallback FmpScriptStepType = 210
|
||||
FmpScriptTriggerClarisConnectFlow FmpScriptStepType = 211
|
||||
FmpScriptAssert FmpScriptStepType = 255
|
||||
)
|
||||
|
Reference in New Issue
Block a user