|
| 1 | +export interface TEvDescribeSchemeResult { |
| 2 | + Status?: EStatus; |
| 3 | + Reason?: string; |
| 4 | + Path?: string; |
| 5 | + PathDescription?: TPathDescription; |
| 6 | + /** fixed64 */ |
| 7 | + PathOwner?: string; |
| 8 | + /** fixed64 */ |
| 9 | + PathId?: string; |
| 10 | + |
| 11 | + LastExistedPrefixPath?: string; |
| 12 | + /** fixed64 */ |
| 13 | + LastExistedPrefixPathId?: string; |
| 14 | + LastExistedPrefixDescription?: TPathDescription; |
| 15 | + /** fixed64 */ |
| 16 | + PathOwnerId?: string; |
| 17 | +} |
| 18 | + |
| 19 | +enum EStatus { |
| 20 | + StatusSuccess = 'StatusSuccess', |
| 21 | + StatusAccepted = 'StatusAccepted', |
| 22 | + StatusPathDoesNotExist = 'StatusPathDoesNotExist', |
| 23 | + StatusPathIsNotDirectory = 'StatusPathIsNotDirectory', |
| 24 | + StatusAlreadyExists = 'StatusAlreadyExists', |
| 25 | + StatusSchemeError = 'StatusSchemeError', |
| 26 | + StatusNameConflict = 'StatusNameConflict', |
| 27 | + StatusInvalidParameter = 'StatusInvalidParameter', |
| 28 | + StatusMultipleModifications = 'StatusMultipleModifications', |
| 29 | + StatusReadOnly = 'StatusReadOnly', |
| 30 | + StatusTxIdNotExists = 'StatusTxIdNotExists', |
| 31 | + StatusTxIsNotCancellable = 'StatusTxIsNotCancellable', |
| 32 | + StatusAccessDenied = 'StatusAccessDenied', |
| 33 | + StatusNotAvailable = 'StatusNotAvailable', |
| 34 | + StatusPreconditionFailed = 'StatusPreconditionFailed', |
| 35 | + StatusRedirectDomain = 'StatusRedirectDomain', |
| 36 | + StatusQuotaExceeded = 'StatusQuotaExceeded', |
| 37 | + StatusResourceExhausted = 'StatusResourceExhausted', |
| 38 | +} |
| 39 | + |
| 40 | +// incomplete interface, only currently used fields are covered |
| 41 | +interface TPathDescription { |
| 42 | + /** info about the path itself */ |
| 43 | + Self?: TDirEntry; |
| 44 | + DomainDescription?: unknown; |
| 45 | + |
| 46 | + // for directory |
| 47 | + Children?: TDirEntry[]; |
| 48 | + |
| 49 | + // for table |
| 50 | + Table?: unknown; |
| 51 | + TableStats?: unknown; |
| 52 | + TabletMetrics?: unknown; |
| 53 | + TablePartitions?: unknown[]; |
| 54 | + |
| 55 | + ColumnStoreDescription?: unknown; |
| 56 | + ColumnTableDescription?: unknown; |
| 57 | +} |
| 58 | + |
| 59 | +interface TDirEntry { |
| 60 | + Name?: string; |
| 61 | + /** uint64 */ |
| 62 | + PathId?: string; |
| 63 | + /** uint64 */ |
| 64 | + SchemeshardId?: string; |
| 65 | + PathType?: EPathType; |
| 66 | + CreateFinished?: boolean; |
| 67 | + /** uint64 */ |
| 68 | + CreateTxId?: string; |
| 69 | + /** uint64 */ |
| 70 | + CreateStep?: string; |
| 71 | + /** uint64 */ |
| 72 | + ParentPathId?: string; |
| 73 | + PathState?: EPathState; |
| 74 | + Owner?: string; |
| 75 | + ACL?: string; |
| 76 | + EffectiveACL?: string; |
| 77 | + /** uint64 */ |
| 78 | + PathVersion?: string; |
| 79 | + PathSubType?: EPathSubType; |
| 80 | + Version?: TPathVersion; |
| 81 | +} |
| 82 | + |
| 83 | +// incomplete |
| 84 | +export enum EPathType { |
| 85 | + EPathTypeInvalid = 'EPathTypeInvalid', |
| 86 | + EPathTypeDir = 'EPathTypeDir', |
| 87 | + EPathTypeTable = 'EPathTypeTable', |
| 88 | + EPathTypeSubDomain = 'EPathTypeSubDomain', |
| 89 | + EPathTypeColumnStore = 'EPathTypeColumnStore', |
| 90 | + EPathTypeColumnTable = 'EPathTypeColumnTable', |
| 91 | +} |
| 92 | + |
| 93 | +enum EPathSubType { |
| 94 | + EPathSubTypeEmpty = 'EPathSubTypeEmpty', |
| 95 | + EPathSubTypeSyncIndexImplTable = 'EPathSubTypeSyncIndexImplTable', |
| 96 | + EPathSubTypeAsyncIndexImplTable = 'EPathSubTypeAsyncIndexImplTable', |
| 97 | + EPathSubTypeStreamImpl = 'EPathSubTypeStreamImpl', |
| 98 | +} |
| 99 | + |
| 100 | +enum EPathState { |
| 101 | + EPathStateNotExist = 'EPathStateNotExist', |
| 102 | + EPathStateNoChanges = 'EPathStateNoChanges', |
| 103 | + EPathStateCreate = 'EPathStateCreate', |
| 104 | + EPathStateAlter = 'EPathStateAlter', |
| 105 | + EPathStateDrop = 'EPathStateDrop', |
| 106 | + EPathStateCopying = 'EPathStateCopying', |
| 107 | + EPathStateBackup = 'EPathStateBackup', |
| 108 | + EPathStateUpgrade = 'EPathStateUpgrade', |
| 109 | + EPathStateMigrated = 'EPathStateMigrated', |
| 110 | + EPathStateRestore = 'EPathStateRestore', |
| 111 | + EPathStateMoving = 'EPathStateMoving', |
| 112 | +} |
| 113 | + |
| 114 | +// incomplete |
| 115 | +interface TPathVersion { |
| 116 | + /** uint64 */ |
| 117 | + GeneralVersion?: string; |
| 118 | +} |
0 commit comments