namirasoft-infra 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NamirasoftInfraServer.d.ts +8 -16
- package/dist/NamirasoftInfraServer.js +9 -17
- package/dist/NamirasoftInfraServer.js.map +1 -1
- package/dist/{NamirasoftInfraServerIncident.d.ts → NamirasoftInfraServerCache.d.ts} +7 -7
- package/dist/{NamirasoftInfraServerIncidentTag.js → NamirasoftInfraServerCache.js} +18 -18
- package/dist/NamirasoftInfraServerCache.js.map +1 -0
- package/dist/{NamirasoftInfraServerIncidentCategory.d.ts → NamirasoftInfraServerCacheCategory.d.ts} +5 -5
- package/dist/{NamirasoftInfraServerIncidentCategory.js → NamirasoftInfraServerCacheCategory.js} +8 -8
- package/dist/NamirasoftInfraServerCacheCategory.js.map +1 -0
- package/dist/{NamirasoftInfraServerIncidentField.d.ts → NamirasoftInfraServerCacheField.d.ts} +6 -6
- package/dist/{NamirasoftInfraServerIncidentField.js → NamirasoftInfraServerCacheField.js} +9 -9
- package/dist/NamirasoftInfraServerCacheField.js.map +1 -0
- package/dist/{NamirasoftInfraServerIncidentTag.d.ts → NamirasoftInfraServerCacheTag.d.ts} +6 -6
- package/dist/{NamirasoftInfraServerIncident.js → NamirasoftInfraServerCacheTag.js} +18 -18
- package/dist/NamirasoftInfraServerCacheTag.js.map +1 -0
- package/dist/command/{IncidentFieldCommand.d.ts → CacheCategoryCommand.d.ts} +1 -1
- package/dist/command/CacheCategoryCommand.js +21 -0
- package/dist/command/CacheCategoryCommand.js.map +1 -0
- package/dist/command/{InMemoryStoreTagGetCommand.d.ts → CacheCategoryCreateCommand.d.ts} +1 -1
- package/dist/command/{IncidentCategoryCreateCommand.js → CacheCategoryCreateCommand.js} +5 -5
- package/dist/command/CacheCategoryCreateCommand.js.map +1 -0
- package/dist/command/{InMemoryStoreCreateCommand.d.ts → CacheCategoryDeleteCommand.d.ts} +1 -1
- package/dist/command/{IncidentCategoryGetCommand.js → CacheCategoryDeleteCommand.js} +5 -5
- package/dist/command/{IncidentFieldDeleteCommand.js.map → CacheCategoryDeleteCommand.js.map} +1 -1
- package/dist/command/{IncidentFieldGetCommand.d.ts → CacheCategoryGetCommand.d.ts} +1 -1
- package/dist/command/{IncidentFieldGetCommand.js → CacheCategoryGetCommand.js} +5 -5
- package/dist/command/{IncidentFieldGetCommand.js.map → CacheCategoryGetCommand.js.map} +1 -1
- package/dist/command/{InMemoryStoreListCommand.d.ts → CacheCategoryListCommand.d.ts} +1 -1
- package/dist/command/{IncidentFieldListCommand.js → CacheCategoryListCommand.js} +5 -5
- package/dist/command/{IncidentFieldListCommand.js.map → CacheCategoryListCommand.js.map} +1 -1
- package/dist/command/{IncidentTagCommand.d.ts → CacheCommand.d.ts} +1 -1
- package/dist/command/CacheCommand.js +23 -0
- package/dist/command/CacheCommand.js.map +1 -0
- package/dist/command/{IncidentGetCommand.d.ts → CacheCreateCommand.d.ts} +1 -1
- package/dist/command/{InMemoryStoreCreateCommand.js → CacheCreateCommand.js} +9 -9
- package/dist/command/CacheCreateCommand.js.map +1 -0
- package/dist/command/CacheDeleteCommand.d.ts +5 -0
- package/dist/command/{IncidentGetCommand.js → CacheDeleteCommand.js} +5 -5
- package/dist/command/{IncidentGetCommand.js.map → CacheDeleteCommand.js.map} +1 -1
- package/dist/command/{InMemoryStoreCommand.d.ts → CacheFieldCommand.d.ts} +1 -1
- package/dist/command/CacheFieldCommand.js +23 -0
- package/dist/command/CacheFieldCommand.js.map +1 -0
- package/dist/command/{InMemoryStoreGetCommand.d.ts → CacheFieldCreateCommand.d.ts} +1 -1
- package/dist/command/{IncidentFieldCreateCommand.js → CacheFieldCreateCommand.js} +5 -5
- package/dist/command/CacheFieldCreateCommand.js.map +1 -0
- package/dist/command/CacheFieldDeleteCommand.d.ts +5 -0
- package/dist/command/{InMemoryStoreGetCommand.js → CacheFieldDeleteCommand.js} +5 -5
- package/dist/command/{InMemoryStoreGetCommand.js.map → CacheFieldDeleteCommand.js.map} +1 -1
- package/dist/command/CacheFieldGetCommand.d.ts +5 -0
- package/dist/command/{IncidentDeleteCommand.js → CacheFieldGetCommand.js} +5 -5
- package/dist/command/CacheFieldGetCommand.js.map +1 -0
- package/dist/command/{IncidentTagGetCommand.d.ts → CacheFieldListCommand.d.ts} +1 -1
- package/dist/command/{IncidentTagListCommand.js → CacheFieldListCommand.js} +5 -5
- package/dist/command/CacheFieldListCommand.js.map +1 -0
- package/dist/command/CacheFieldUpdateCommand.d.ts +5 -0
- package/dist/command/{IncidentFieldUpdateCommand.js → CacheFieldUpdateCommand.js} +5 -5
- package/dist/command/CacheFieldUpdateCommand.js.map +1 -0
- package/dist/command/CacheGetCommand.d.ts +5 -0
- package/dist/command/CacheGetCommand.js +38 -0
- package/dist/command/CacheGetCommand.js.map +1 -0
- package/dist/command/CacheListCommand.d.ts +5 -0
- package/dist/command/{InMemoryStoreListCommand.js → CacheListCommand.js} +5 -5
- package/dist/command/CacheListCommand.js.map +1 -0
- package/dist/command/{IncidentCommand.d.ts → CacheTagCommand.d.ts} +1 -1
- package/dist/command/CacheTagCommand.js +23 -0
- package/dist/command/CacheTagCommand.js.map +1 -0
- package/dist/command/{IncidentCreateCommand.d.ts → CacheTagCreateCommand.d.ts} +1 -1
- package/dist/command/{IncidentTagCreateCommand.js → CacheTagCreateCommand.js} +5 -5
- package/dist/command/CacheTagCreateCommand.js.map +1 -0
- package/dist/command/{IncidentDeleteCommand.d.ts → CacheTagDeleteCommand.d.ts} +1 -1
- package/dist/command/{IncidentTagGetCommand.js → CacheTagDeleteCommand.js} +5 -5
- package/dist/command/{IncidentTagGetCommand.js.map → CacheTagDeleteCommand.js.map} +1 -1
- package/dist/command/CacheTagGetCommand.d.ts +5 -0
- package/dist/command/CacheTagGetCommand.js +38 -0
- package/dist/command/CacheTagGetCommand.js.map +1 -0
- package/dist/command/{IncidentListCommand.d.ts → CacheTagListCommand.d.ts} +1 -1
- package/dist/command/{IncidentListCommand.js → CacheTagListCommand.js} +5 -5
- package/dist/command/{IncidentListCommand.js.map → CacheTagListCommand.js.map} +1 -1
- package/dist/command/{IncidentUpdateCommand.d.ts → CacheTagUpdateCommand.d.ts} +1 -1
- package/dist/command/{IncidentTagUpdateCommand.js → CacheTagUpdateCommand.js} +5 -5
- package/dist/command/CacheTagUpdateCommand.js.map +1 -0
- package/dist/command/CacheUpdateCommand.d.ts +5 -0
- package/dist/command/{InMemoryStoreUpdateCommand.js → CacheUpdateCommand.js} +9 -9
- package/dist/command/CacheUpdateCommand.js.map +1 -0
- package/dist/command/KubernetesCreateCommand.js +12 -57
- package/dist/command/KubernetesCreateCommand.js.map +1 -1
- package/dist/command/KubernetesUpdateCommand.js +12 -57
- package/dist/command/KubernetesUpdateCommand.js.map +1 -1
- package/dist/command/MonitorCreateCommand.js +4 -4
- package/dist/command/MonitorCreateCommand.js.map +1 -1
- package/dist/command/MonitorUpdateCommand.js +4 -4
- package/dist/command/MonitorUpdateCommand.js.map +1 -1
- package/dist/command/ServerCreateCommand.js +0 -18
- package/dist/command/ServerCreateCommand.js.map +1 -1
- package/dist/command/ServerUpdateCommand.js +0 -18
- package/dist/command/ServerUpdateCommand.js.map +1 -1
- package/dist/command/cli.js +8 -16
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/{InMemoryStoreConnectType.d.ts → CacheConnectType.d.ts} +1 -1
- package/dist/enum/CacheConnectType.js +10 -0
- package/dist/enum/CacheConnectType.js.map +1 -0
- package/dist/enum/CacheType.d.ts +3 -0
- package/dist/enum/CacheType.js +8 -0
- package/dist/enum/CacheType.js.map +1 -0
- package/dist/enum/DatabaseType.d.ts +1 -1
- package/dist/enum/DatabaseType.js +1 -1
- package/dist/enum/MonitorType.d.ts +1 -1
- package/dist/enum/MonitorType.js +1 -1
- package/dist/enum/MonitorType.js.map +1 -1
- package/dist/index.d.ts +38 -75
- package/dist/index.js +38 -75
- package/dist/index.js.map +1 -1
- package/dist/meta/{IncidentCategoryMetaTable.d.ts → CacheCategoryMetaTable.d.ts} +2 -2
- package/dist/meta/{IncidentCategoryMetaTable.js → CacheCategoryMetaTable.js} +7 -7
- package/dist/meta/CacheCategoryMetaTable.js.map +1 -0
- package/dist/meta/{IncidentFieldMetaTable.d.ts → CacheFieldMetaTable.d.ts} +2 -2
- package/dist/meta/{IncidentFieldMetaTable.js → CacheFieldMetaTable.js} +7 -7
- package/dist/meta/CacheFieldMetaTable.js.map +1 -0
- package/dist/meta/{InMemoryStoreMetaTable.d.ts → CacheMetaTable.d.ts} +3 -3
- package/dist/meta/{InMemoryStoreMetaTable.js → CacheMetaTable.js} +8 -8
- package/dist/meta/CacheMetaTable.js.map +1 -0
- package/dist/meta/{IncidentTagMetaTable.d.ts → CacheTagMetaTable.d.ts} +2 -2
- package/dist/meta/{IncidentTagMetaTable.js → CacheTagMetaTable.js} +7 -7
- package/dist/meta/CacheTagMetaTable.js.map +1 -0
- package/dist/meta/KubernetesMetaTable.d.ts +2 -3
- package/dist/meta/KubernetesMetaTable.js +2 -3
- package/dist/meta/KubernetesMetaTable.js.map +1 -1
- package/dist/meta/MonitorMetaTable.d.ts +1 -1
- package/dist/meta/MonitorMetaTable.js +1 -1
- package/dist/meta/MonitorMetaTable.js.map +1 -1
- package/dist/meta/NamirasoftInfraMetaDatabase.d.ts +8 -16
- package/dist/meta/NamirasoftInfraMetaDatabase.js +8 -16
- package/dist/meta/NamirasoftInfraMetaDatabase.js.map +1 -1
- package/dist/meta/ServerMetaTable.d.ts +0 -1
- package/dist/meta/ServerMetaTable.js +0 -1
- package/dist/meta/ServerMetaTable.js.map +1 -1
- package/dist/row/{IncidentCategoryRow.d.ts → CacheCategoryRow.d.ts} +1 -1
- package/dist/row/{IncidentInputRow.js → CacheCategoryRow.js} +1 -1
- package/dist/row/CacheCategoryRow.js.map +1 -0
- package/dist/row/{IncidentFieldRow.d.ts → CacheFieldRow.d.ts} +1 -1
- package/dist/row/{IncidentTagRow.js → CacheFieldRow.js} +1 -1
- package/dist/row/CacheFieldRow.js.map +1 -0
- package/dist/row/CacheInputRow.d.ts +15 -0
- package/dist/row/{IncidentFieldRow.js → CacheInputRow.js} +1 -1
- package/dist/row/CacheInputRow.js.map +1 -0
- package/dist/row/{InMemoryStoreRow.d.ts → CacheRow.d.ts} +6 -6
- package/dist/row/{IncidentRow.js → CacheRow.js} +1 -1
- package/dist/row/CacheRow.js.map +1 -0
- package/dist/row/{IncidentTagRow.d.ts → CacheTagRow.d.ts} +1 -1
- package/dist/row/{InMemoryStoreRow.js → CacheTagRow.js} +1 -1
- package/dist/row/CacheTagRow.js.map +1 -0
- package/dist/row/KubernetesInputRow.d.ts +2 -7
- package/dist/row/KubernetesRow.d.ts +2 -3
- package/dist/row/MonitorInputRow.d.ts +1 -1
- package/dist/row/MonitorRow.d.ts +1 -1
- package/dist/row/ServerInputRow.d.ts +0 -2
- package/dist/row/ServerRow.d.ts +0 -1
- package/package.json +1 -1
- package/src/NamirasoftInfraServer.ts +13 -25
- package/src/{NamirasoftInfraServerIncident.ts → NamirasoftInfraServerCache.ts} +16 -16
- package/src/{NamirasoftInfraServerIncidentCategory.ts → NamirasoftInfraServerCacheCategory.ts} +12 -12
- package/src/{NamirasoftInfraServerIncidentField.ts → NamirasoftInfraServerCacheField.ts} +15 -15
- package/src/{NamirasoftInfraServerIncidentTag.ts → NamirasoftInfraServerCacheTag.ts} +15 -15
- package/src/command/{IncidentCategoryCommand.ts → CacheCategoryCommand.ts} +9 -9
- package/src/command/{IncidentCategoryCreateCommand.ts → CacheCategoryCreateCommand.ts} +2 -2
- package/src/command/{IncidentFieldDeleteCommand.ts → CacheCategoryDeleteCommand.ts} +2 -2
- package/src/command/{IncidentFieldGetCommand.ts → CacheCategoryGetCommand.ts} +2 -2
- package/src/command/{IncidentFieldListCommand.ts → CacheCategoryListCommand.ts} +2 -2
- package/src/command/{InMemoryStoreCategoryCommand.ts → CacheCommand.ts} +11 -9
- package/src/command/{InMemoryStoreCreateCommand.ts → CacheCreateCommand.ts} +6 -6
- package/src/command/{IncidentGetCommand.ts → CacheDeleteCommand.ts} +2 -2
- package/src/command/{IncidentTagCommand.ts → CacheFieldCommand.ts} +11 -11
- package/src/command/{IncidentFieldCreateCommand.ts → CacheFieldCreateCommand.ts} +2 -2
- package/src/command/CacheFieldDeleteCommand.ts +45 -0
- package/src/command/{IncidentDeleteCommand.ts → CacheFieldGetCommand.ts} +2 -2
- package/src/command/{IncidentTagListCommand.ts → CacheFieldListCommand.ts} +2 -2
- package/src/command/{IncidentFieldUpdateCommand.ts → CacheFieldUpdateCommand.ts} +2 -2
- package/src/command/CacheGetCommand.ts +45 -0
- package/src/command/{IncidentListCommand.ts → CacheListCommand.ts} +2 -2
- package/src/command/{IncidentCommand.ts → CacheTagCommand.ts} +11 -11
- package/src/command/{IncidentTagCreateCommand.ts → CacheTagCreateCommand.ts} +2 -2
- package/src/command/{IncidentTagGetCommand.ts → CacheTagDeleteCommand.ts} +2 -2
- package/src/command/CacheTagGetCommand.ts +45 -0
- package/src/command/{InMemoryStoreListCommand.ts → CacheTagListCommand.ts} +2 -2
- package/src/command/{IncidentTagUpdateCommand.ts → CacheTagUpdateCommand.ts} +2 -2
- package/src/command/{InMemoryStoreUpdateCommand.ts → CacheUpdateCommand.ts} +6 -6
- package/src/command/KubernetesCreateCommand.ts +12 -57
- package/src/command/KubernetesUpdateCommand.ts +12 -57
- package/src/command/MonitorCreateCommand.ts +4 -4
- package/src/command/MonitorUpdateCommand.ts +4 -4
- package/src/command/ServerCreateCommand.ts +0 -18
- package/src/command/ServerUpdateCommand.ts +0 -18
- package/src/command/cli.ts +8 -16
- package/src/enum/{InMemoryStoreConnectType.ts → CacheConnectType.ts} +1 -1
- package/src/enum/{InMemoryStoreType.ts → CacheType.ts} +1 -1
- package/src/enum/DatabaseType.ts +1 -1
- package/src/enum/MonitorType.ts +1 -1
- package/src/index.ts +38 -75
- package/src/meta/{IncidentCategoryMetaTable.ts → CacheCategoryMetaTable.ts} +5 -5
- package/src/meta/{IncidentFieldMetaTable.ts → CacheFieldMetaTable.ts} +5 -5
- package/src/meta/{InMemoryStoreMetaTable.ts → CacheMetaTable.ts} +7 -7
- package/src/meta/{IncidentTagMetaTable.ts → CacheTagMetaTable.ts} +5 -5
- package/src/meta/KubernetesMetaTable.ts +4 -6
- package/src/meta/MonitorMetaTable.ts +2 -2
- package/src/meta/NamirasoftInfraMetaDatabase.ts +12 -24
- package/src/meta/ServerMetaTable.ts +0 -2
- package/src/row/{IncidentCategoryRow.ts → CacheCategoryRow.ts} +1 -1
- package/src/row/{IncidentFieldRow.ts → CacheFieldRow.ts} +1 -1
- package/src/row/{InMemoryStoreInputRow.ts → CacheInputRow.ts} +6 -6
- package/src/row/{InMemoryStoreRow.ts → CacheRow.ts} +6 -6
- package/src/row/{IncidentTagRow.ts → CacheTagRow.ts} +1 -1
- package/src/row/KubernetesInputRow.ts +2 -7
- package/src/row/KubernetesRow.ts +2 -3
- package/src/row/MonitorInputRow.ts +1 -1
- package/src/row/MonitorRow.ts +1 -1
- package/src/row/ServerInputRow.ts +0 -2
- package/src/row/ServerRow.ts +0 -1
- package/dist/NamirasoftInfraServerInMemoryStore.d.ts +0 -18
- package/dist/NamirasoftInfraServerInMemoryStore.js +0 -64
- package/dist/NamirasoftInfraServerInMemoryStore.js.map +0 -1
- package/dist/NamirasoftInfraServerInMemoryStoreCategory.d.ts +0 -17
- package/dist/NamirasoftInfraServerInMemoryStoreCategory.js +0 -56
- package/dist/NamirasoftInfraServerInMemoryStoreCategory.js.map +0 -1
- package/dist/NamirasoftInfraServerInMemoryStoreField.d.ts +0 -18
- package/dist/NamirasoftInfraServerInMemoryStoreField.js +0 -64
- package/dist/NamirasoftInfraServerInMemoryStoreField.js.map +0 -1
- package/dist/NamirasoftInfraServerInMemoryStoreTag.d.ts +0 -18
- package/dist/NamirasoftInfraServerInMemoryStoreTag.js +0 -64
- package/dist/NamirasoftInfraServerInMemoryStoreTag.js.map +0 -1
- package/dist/NamirasoftInfraServerIncident.js.map +0 -1
- package/dist/NamirasoftInfraServerIncidentCategory.js.map +0 -1
- package/dist/NamirasoftInfraServerIncidentField.js.map +0 -1
- package/dist/NamirasoftInfraServerIncidentTag.js.map +0 -1
- package/dist/command/InMemoryStoreCategoryCommand.d.ts +0 -4
- package/dist/command/InMemoryStoreCategoryCommand.js +0 -21
- package/dist/command/InMemoryStoreCategoryCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCategoryCreateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreCategoryCreateCommand.js +0 -58
- package/dist/command/InMemoryStoreCategoryCreateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCategoryDeleteCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreCategoryDeleteCommand.js +0 -38
- package/dist/command/InMemoryStoreCategoryDeleteCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCategoryGetCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreCategoryGetCommand.js +0 -38
- package/dist/command/InMemoryStoreCategoryGetCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCategoryListCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreCategoryListCommand.js +0 -38
- package/dist/command/InMemoryStoreCategoryListCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCommand.js +0 -23
- package/dist/command/InMemoryStoreCommand.js.map +0 -1
- package/dist/command/InMemoryStoreCreateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreDeleteCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreDeleteCommand.js +0 -38
- package/dist/command/InMemoryStoreDeleteCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldCommand.d.ts +0 -4
- package/dist/command/InMemoryStoreFieldCommand.js +0 -23
- package/dist/command/InMemoryStoreFieldCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldCreateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreFieldCreateCommand.js +0 -67
- package/dist/command/InMemoryStoreFieldCreateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldDeleteCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreFieldDeleteCommand.js +0 -38
- package/dist/command/InMemoryStoreFieldDeleteCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldGetCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreFieldGetCommand.js +0 -38
- package/dist/command/InMemoryStoreFieldGetCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldListCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreFieldListCommand.js +0 -38
- package/dist/command/InMemoryStoreFieldListCommand.js.map +0 -1
- package/dist/command/InMemoryStoreFieldUpdateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreFieldUpdateCommand.js +0 -67
- package/dist/command/InMemoryStoreFieldUpdateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreListCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagCommand.d.ts +0 -4
- package/dist/command/InMemoryStoreTagCommand.js +0 -23
- package/dist/command/InMemoryStoreTagCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagCreateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreTagCreateCommand.js +0 -67
- package/dist/command/InMemoryStoreTagCreateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagDeleteCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreTagDeleteCommand.js +0 -38
- package/dist/command/InMemoryStoreTagDeleteCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagGetCommand.js +0 -38
- package/dist/command/InMemoryStoreTagGetCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagListCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreTagListCommand.js +0 -38
- package/dist/command/InMemoryStoreTagListCommand.js.map +0 -1
- package/dist/command/InMemoryStoreTagUpdateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreTagUpdateCommand.js +0 -67
- package/dist/command/InMemoryStoreTagUpdateCommand.js.map +0 -1
- package/dist/command/InMemoryStoreUpdateCommand.d.ts +0 -5
- package/dist/command/InMemoryStoreUpdateCommand.js.map +0 -1
- package/dist/command/IncidentCategoryCommand.d.ts +0 -4
- package/dist/command/IncidentCategoryCommand.js +0 -21
- package/dist/command/IncidentCategoryCommand.js.map +0 -1
- package/dist/command/IncidentCategoryCreateCommand.d.ts +0 -5
- package/dist/command/IncidentCategoryCreateCommand.js.map +0 -1
- package/dist/command/IncidentCategoryDeleteCommand.d.ts +0 -5
- package/dist/command/IncidentCategoryDeleteCommand.js +0 -38
- package/dist/command/IncidentCategoryDeleteCommand.js.map +0 -1
- package/dist/command/IncidentCategoryGetCommand.d.ts +0 -5
- package/dist/command/IncidentCategoryGetCommand.js.map +0 -1
- package/dist/command/IncidentCategoryListCommand.d.ts +0 -5
- package/dist/command/IncidentCategoryListCommand.js +0 -38
- package/dist/command/IncidentCategoryListCommand.js.map +0 -1
- package/dist/command/IncidentCommand.js +0 -23
- package/dist/command/IncidentCommand.js.map +0 -1
- package/dist/command/IncidentCreateCommand.js +0 -121
- package/dist/command/IncidentCreateCommand.js.map +0 -1
- package/dist/command/IncidentDeleteCommand.js.map +0 -1
- package/dist/command/IncidentFieldCommand.js +0 -23
- package/dist/command/IncidentFieldCommand.js.map +0 -1
- package/dist/command/IncidentFieldCreateCommand.d.ts +0 -5
- package/dist/command/IncidentFieldCreateCommand.js.map +0 -1
- package/dist/command/IncidentFieldDeleteCommand.d.ts +0 -5
- package/dist/command/IncidentFieldDeleteCommand.js +0 -38
- package/dist/command/IncidentFieldListCommand.d.ts +0 -5
- package/dist/command/IncidentFieldUpdateCommand.d.ts +0 -5
- package/dist/command/IncidentFieldUpdateCommand.js.map +0 -1
- package/dist/command/IncidentTagCommand.js +0 -23
- package/dist/command/IncidentTagCommand.js.map +0 -1
- package/dist/command/IncidentTagCreateCommand.d.ts +0 -5
- package/dist/command/IncidentTagCreateCommand.js.map +0 -1
- package/dist/command/IncidentTagDeleteCommand.d.ts +0 -5
- package/dist/command/IncidentTagDeleteCommand.js +0 -38
- package/dist/command/IncidentTagDeleteCommand.js.map +0 -1
- package/dist/command/IncidentTagListCommand.d.ts +0 -5
- package/dist/command/IncidentTagListCommand.js.map +0 -1
- package/dist/command/IncidentTagUpdateCommand.d.ts +0 -5
- package/dist/command/IncidentTagUpdateCommand.js.map +0 -1
- package/dist/command/IncidentUpdateCommand.js +0 -121
- package/dist/command/IncidentUpdateCommand.js.map +0 -1
- package/dist/enum/InMemoryStoreConnectType.js +0 -10
- package/dist/enum/InMemoryStoreConnectType.js.map +0 -1
- package/dist/enum/InMemoryStoreType.d.ts +0 -3
- package/dist/enum/InMemoryStoreType.js +0 -8
- package/dist/enum/InMemoryStoreType.js.map +0 -1
- package/dist/enum/IncidentStatus.d.ts +0 -5
- package/dist/enum/IncidentStatus.js +0 -10
- package/dist/enum/IncidentStatus.js.map +0 -1
- package/dist/meta/InMemoryStoreCategoryMetaTable.d.ts +0 -15
- package/dist/meta/InMemoryStoreCategoryMetaTable.js +0 -39
- package/dist/meta/InMemoryStoreCategoryMetaTable.js.map +0 -1
- package/dist/meta/InMemoryStoreFieldMetaTable.d.ts +0 -16
- package/dist/meta/InMemoryStoreFieldMetaTable.js +0 -39
- package/dist/meta/InMemoryStoreFieldMetaTable.js.map +0 -1
- package/dist/meta/InMemoryStoreMetaTable.js.map +0 -1
- package/dist/meta/InMemoryStoreTagMetaTable.d.ts +0 -16
- package/dist/meta/InMemoryStoreTagMetaTable.js +0 -39
- package/dist/meta/InMemoryStoreTagMetaTable.js.map +0 -1
- package/dist/meta/IncidentCategoryMetaTable.js.map +0 -1
- package/dist/meta/IncidentFieldMetaTable.js.map +0 -1
- package/dist/meta/IncidentMetaTable.d.ts +0 -22
- package/dist/meta/IncidentMetaTable.js +0 -45
- package/dist/meta/IncidentMetaTable.js.map +0 -1
- package/dist/meta/IncidentTagMetaTable.js.map +0 -1
- package/dist/row/InMemoryStoreCategoryRow.d.ts +0 -8
- package/dist/row/InMemoryStoreCategoryRow.js +0 -3
- package/dist/row/InMemoryStoreCategoryRow.js.map +0 -1
- package/dist/row/InMemoryStoreFieldRow.d.ts +0 -9
- package/dist/row/InMemoryStoreFieldRow.js +0 -3
- package/dist/row/InMemoryStoreFieldRow.js.map +0 -1
- package/dist/row/InMemoryStoreInputRow.d.ts +0 -15
- package/dist/row/InMemoryStoreInputRow.js +0 -3
- package/dist/row/InMemoryStoreInputRow.js.map +0 -1
- package/dist/row/InMemoryStoreRow.js.map +0 -1
- package/dist/row/InMemoryStoreTagRow.d.ts +0 -9
- package/dist/row/InMemoryStoreTagRow.js +0 -3
- package/dist/row/InMemoryStoreTagRow.js.map +0 -1
- package/dist/row/IncidentCategoryRow.js +0 -3
- package/dist/row/IncidentCategoryRow.js.map +0 -1
- package/dist/row/IncidentFieldRow.js.map +0 -1
- package/dist/row/IncidentInputRow.d.ts +0 -12
- package/dist/row/IncidentInputRow.js.map +0 -1
- package/dist/row/IncidentRow.d.ts +0 -16
- package/dist/row/IncidentRow.js.map +0 -1
- package/dist/row/IncidentTagRow.js.map +0 -1
- package/src/NamirasoftInfraServerInMemoryStore.ts +0 -71
- package/src/NamirasoftInfraServerInMemoryStoreCategory.ts +0 -64
- package/src/NamirasoftInfraServerInMemoryStoreField.ts +0 -71
- package/src/NamirasoftInfraServerInMemoryStoreTag.ts +0 -71
- package/src/command/InMemoryStoreCategoryCreateCommand.ts +0 -65
- package/src/command/InMemoryStoreCategoryDeleteCommand.ts +0 -45
- package/src/command/InMemoryStoreCategoryGetCommand.ts +0 -45
- package/src/command/InMemoryStoreCategoryListCommand.ts +0 -45
- package/src/command/InMemoryStoreCommand.ts +0 -40
- package/src/command/InMemoryStoreDeleteCommand.ts +0 -45
- package/src/command/InMemoryStoreFieldCommand.ts +0 -40
- package/src/command/InMemoryStoreFieldCreateCommand.ts +0 -74
- package/src/command/InMemoryStoreFieldDeleteCommand.ts +0 -45
- package/src/command/InMemoryStoreFieldGetCommand.ts +0 -45
- package/src/command/InMemoryStoreFieldListCommand.ts +0 -45
- package/src/command/InMemoryStoreFieldUpdateCommand.ts +0 -74
- package/src/command/InMemoryStoreGetCommand.ts +0 -45
- package/src/command/InMemoryStoreTagCommand.ts +0 -40
- package/src/command/InMemoryStoreTagCreateCommand.ts +0 -74
- package/src/command/InMemoryStoreTagDeleteCommand.ts +0 -45
- package/src/command/InMemoryStoreTagGetCommand.ts +0 -45
- package/src/command/InMemoryStoreTagListCommand.ts +0 -45
- package/src/command/InMemoryStoreTagUpdateCommand.ts +0 -74
- package/src/command/IncidentCategoryDeleteCommand.ts +0 -45
- package/src/command/IncidentCategoryGetCommand.ts +0 -45
- package/src/command/IncidentCategoryListCommand.ts +0 -45
- package/src/command/IncidentCreateCommand.ts +0 -128
- package/src/command/IncidentFieldCommand.ts +0 -40
- package/src/command/IncidentTagDeleteCommand.ts +0 -45
- package/src/command/IncidentUpdateCommand.ts +0 -128
- package/src/enum/IncidentStatus.ts +0 -26
- package/src/meta/InMemoryStoreCategoryMetaTable.ts +0 -60
- package/src/meta/InMemoryStoreFieldMetaTable.ts +0 -61
- package/src/meta/InMemoryStoreTagMetaTable.ts +0 -61
- package/src/meta/IncidentMetaTable.ts +0 -73
- package/src/row/InMemoryStoreCategoryRow.ts +0 -29
- package/src/row/InMemoryStoreFieldRow.ts +0 -30
- package/src/row/InMemoryStoreTagRow.ts +0 -30
- package/src/row/IncidentInputRow.ts +0 -34
- package/src/row/IncidentRow.ts +0 -38
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
-
import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
|
-
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
|
25
|
-
|
|
26
|
-
export class IncidentUpdateCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], [
|
|
31
|
-
{
|
|
32
|
-
name: "workspace_id",
|
|
33
|
-
short: "",
|
|
34
|
-
description: "Provides the value of 'workspace_id' in body",
|
|
35
|
-
optional: false,
|
|
36
|
-
args: ["workspace_id"],
|
|
37
|
-
defaults: [""]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "server_id",
|
|
41
|
-
short: "",
|
|
42
|
-
description: "Provides the value of 'server_id' in body",
|
|
43
|
-
optional: false,
|
|
44
|
-
args: ["server_id"],
|
|
45
|
-
defaults: [""]
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "kubernetes_id",
|
|
49
|
-
short: "",
|
|
50
|
-
description: "Provides the value of 'kubernetes_id' in body",
|
|
51
|
-
optional: false,
|
|
52
|
-
args: ["kubernetes_id"],
|
|
53
|
-
defaults: [""]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "monitor_id",
|
|
57
|
-
short: "",
|
|
58
|
-
description: "Provides the value of 'monitor_id' in body",
|
|
59
|
-
optional: false,
|
|
60
|
-
args: ["monitor_id"],
|
|
61
|
-
defaults: [""]
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "alert_id",
|
|
65
|
-
short: "",
|
|
66
|
-
description: "Provides the value of 'alert_id' in body",
|
|
67
|
-
optional: false,
|
|
68
|
-
args: ["alert_id"],
|
|
69
|
-
defaults: [""]
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: "metric_id",
|
|
73
|
-
short: "",
|
|
74
|
-
description: "Provides the value of 'metric_id' in body",
|
|
75
|
-
optional: false,
|
|
76
|
-
args: ["metric_id"],
|
|
77
|
-
defaults: [""]
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: "chat_id",
|
|
81
|
-
short: "",
|
|
82
|
-
description: "Provides the value of 'chat_id' in body",
|
|
83
|
-
optional: false,
|
|
84
|
-
args: ["chat_id"],
|
|
85
|
-
defaults: [""]
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "status",
|
|
89
|
-
short: "",
|
|
90
|
-
description: "Provides the value of 'status' in body",
|
|
91
|
-
optional: false,
|
|
92
|
-
args: ["status"],
|
|
93
|
-
defaults: [""]
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "description",
|
|
97
|
-
short: "",
|
|
98
|
-
description: "Provides the value of 'description' in body",
|
|
99
|
-
optional: true,
|
|
100
|
-
args: ["description"],
|
|
101
|
-
defaults: [""]
|
|
102
|
-
}
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
|
-
override async exec()
|
|
106
|
-
{
|
|
107
|
-
let token = this.app.storage.getNSAToken();
|
|
108
|
-
if (token == null)
|
|
109
|
-
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
110
|
-
let storage = new IStorageMemoryDedicated();
|
|
111
|
-
let token_manager = new TokenManager(storage, () => { });
|
|
112
|
-
token_manager.setValue(token, false);
|
|
113
|
-
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
114
|
-
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
115
|
-
let ans = await server.incident.Update(this.arg_values[0], {
|
|
116
|
-
workspace_id: this.option_values.workspace_id,
|
|
117
|
-
server_id: this.option_values.server_id,
|
|
118
|
-
kubernetes_id: this.option_values.kubernetes_id,
|
|
119
|
-
monitor_id: this.option_values.monitor_id,
|
|
120
|
-
alert_id: this.option_values.alert_id,
|
|
121
|
-
metric_id: this.option_values.metric_id,
|
|
122
|
-
chat_id: this.option_values.chat_id,
|
|
123
|
-
status: this.option_values.status,
|
|
124
|
-
description: this.option_values.description
|
|
125
|
-
});
|
|
126
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
127
|
-
}
|
|
128
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export enum IncidentStatus
|
|
22
|
-
{
|
|
23
|
-
Open = "Open",
|
|
24
|
-
Reviewed = "Reviewed",
|
|
25
|
-
Closed = "Closed",
|
|
26
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
-
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { InMemoryStoreCategoryRow } from "../row/InMemoryStoreCategoryRow";
|
|
24
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
-
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
|
-
|
|
27
|
-
export class InMemoryStoreCategoryMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, InMemoryStoreCategoryRow>
|
|
28
|
-
{
|
|
29
|
-
public override columns: {
|
|
30
|
-
id: BaseMetaColumn;
|
|
31
|
-
user_id: BaseMetaColumn;
|
|
32
|
-
entity_id: BaseMetaColumn;
|
|
33
|
-
category_id: BaseMetaColumn;
|
|
34
|
-
created_at: BaseMetaColumn;
|
|
35
|
-
updated_at: BaseMetaColumn;
|
|
36
|
-
}
|
|
37
|
-
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
38
|
-
{
|
|
39
|
-
super(database, "in_memory_store_category", "In Memory Store Category", new BaseUUID(""));
|
|
40
|
-
this.columns = {
|
|
41
|
-
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
42
|
-
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
43
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
44
|
-
category_id: new BaseMetaColumn(this, "category_id", "Category ID", "String", true),
|
|
45
|
-
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
46
|
-
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
47
|
-
};
|
|
48
|
-
this.back_end.get = async (id: string) =>
|
|
49
|
-
{
|
|
50
|
-
let server = this.database.getServer();
|
|
51
|
-
return await server.in_memory_store_category.Get(id);
|
|
52
|
-
};
|
|
53
|
-
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
54
|
-
{
|
|
55
|
-
let server = this.database.getServer();
|
|
56
|
-
return await server.in_memory_store_category.List(filters, page, size, sorts);
|
|
57
|
-
};
|
|
58
|
-
this.front_end.getUpdateLink = () => "";
|
|
59
|
-
}
|
|
60
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
-
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { InMemoryStoreFieldRow } from "../row/InMemoryStoreFieldRow";
|
|
24
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
-
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
|
-
|
|
27
|
-
export class InMemoryStoreFieldMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, InMemoryStoreFieldRow>
|
|
28
|
-
{
|
|
29
|
-
public override columns: {
|
|
30
|
-
id: BaseMetaColumn;
|
|
31
|
-
user_id: BaseMetaColumn;
|
|
32
|
-
entity_id: BaseMetaColumn;
|
|
33
|
-
field_id: BaseMetaColumn;
|
|
34
|
-
value: BaseMetaColumn;
|
|
35
|
-
created_at: BaseMetaColumn;
|
|
36
|
-
updated_at: BaseMetaColumn;
|
|
37
|
-
}
|
|
38
|
-
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
39
|
-
{
|
|
40
|
-
super(database, "in_memory_store_field", "In Memory Store Field", new BaseUUID(""));
|
|
41
|
-
this.columns = {
|
|
42
|
-
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
43
|
-
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
44
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
45
|
-
field_id: new BaseMetaColumn(this, "field_id", "Field ID", "String", true),
|
|
46
|
-
value: new BaseMetaColumn(this, "value", "Value", "String", false),
|
|
47
|
-
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
48
|
-
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
49
|
-
};
|
|
50
|
-
this.back_end.get = async (id: string) =>
|
|
51
|
-
{
|
|
52
|
-
let server = this.database.getServer();
|
|
53
|
-
return await server.in_memory_store_field.Get(id);
|
|
54
|
-
};
|
|
55
|
-
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
56
|
-
{
|
|
57
|
-
let server = this.database.getServer();
|
|
58
|
-
return await server.in_memory_store_field.List(filters, page, size, sorts);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
-
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { InMemoryStoreTagRow } from "../row/InMemoryStoreTagRow";
|
|
24
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
-
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
|
-
|
|
27
|
-
export class InMemoryStoreTagMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, InMemoryStoreTagRow>
|
|
28
|
-
{
|
|
29
|
-
public override columns: {
|
|
30
|
-
id: BaseMetaColumn;
|
|
31
|
-
user_id: BaseMetaColumn;
|
|
32
|
-
entity_id: BaseMetaColumn;
|
|
33
|
-
name: BaseMetaColumn;
|
|
34
|
-
value: BaseMetaColumn;
|
|
35
|
-
created_at: BaseMetaColumn;
|
|
36
|
-
updated_at: BaseMetaColumn;
|
|
37
|
-
}
|
|
38
|
-
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
39
|
-
{
|
|
40
|
-
super(database, "in_memory_store_tag", "In Memory Store Tag", new BaseUUID(""));
|
|
41
|
-
this.columns = {
|
|
42
|
-
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
43
|
-
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
44
|
-
entity_id: new BaseMetaColumn(this, "entity_id", "Entity ID", "String", true),
|
|
45
|
-
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
46
|
-
value: new BaseMetaColumn(this, "value", "Value", "String", false),
|
|
47
|
-
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
48
|
-
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
49
|
-
};
|
|
50
|
-
this.back_end.get = async (id: string) =>
|
|
51
|
-
{
|
|
52
|
-
let server = this.database.getServer();
|
|
53
|
-
return await server.in_memory_store_tag.Get(id);
|
|
54
|
-
};
|
|
55
|
-
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
56
|
-
{
|
|
57
|
-
let server = this.database.getServer();
|
|
58
|
-
return await server.in_memory_store_tag.List(filters, page, size, sorts);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
-
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { IncidentRow } from "../row/IncidentRow";
|
|
24
|
-
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
|
-
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
|
-
|
|
27
|
-
export class IncidentMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, IncidentRow>
|
|
28
|
-
{
|
|
29
|
-
public override columns: {
|
|
30
|
-
id: BaseMetaColumn;
|
|
31
|
-
user_id: BaseMetaColumn;
|
|
32
|
-
workspace_id: BaseMetaColumn;
|
|
33
|
-
server_id: BaseMetaColumn;
|
|
34
|
-
kubernetes_id: BaseMetaColumn;
|
|
35
|
-
monitor_id: BaseMetaColumn;
|
|
36
|
-
alert_id: BaseMetaColumn;
|
|
37
|
-
metric_id: BaseMetaColumn;
|
|
38
|
-
chat_id: BaseMetaColumn;
|
|
39
|
-
status: BaseMetaColumn;
|
|
40
|
-
description: BaseMetaColumn;
|
|
41
|
-
created_at: BaseMetaColumn;
|
|
42
|
-
updated_at: BaseMetaColumn;
|
|
43
|
-
}
|
|
44
|
-
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
45
|
-
{
|
|
46
|
-
super(database, "incident", "Incident", new BaseUUID("ifr-inc"));
|
|
47
|
-
this.columns = {
|
|
48
|
-
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
49
|
-
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
50
|
-
workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
51
|
-
server_id: new BaseMetaColumn(this, "server_id", "Server ID", "String", true),
|
|
52
|
-
kubernetes_id: new BaseMetaColumn(this, "kubernetes_id", "Kubernetes ID", "String", true),
|
|
53
|
-
monitor_id: new BaseMetaColumn(this, "monitor_id", "Monitor ID", "String", true),
|
|
54
|
-
alert_id: new BaseMetaColumn(this, "alert_id", "Alert ID", "String", true),
|
|
55
|
-
metric_id: new BaseMetaColumn(this, "metric_id", "Metric ID", "String", true),
|
|
56
|
-
chat_id: new BaseMetaColumn(this, "chat_id", "Chat ID", "String", true),
|
|
57
|
-
status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
58
|
-
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
59
|
-
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
60
|
-
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
61
|
-
};
|
|
62
|
-
this.back_end.get = async (id: string) =>
|
|
63
|
-
{
|
|
64
|
-
let server = this.database.getServer();
|
|
65
|
-
return await server.incident.Get(id);
|
|
66
|
-
};
|
|
67
|
-
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
68
|
-
{
|
|
69
|
-
let server = this.database.getServer();
|
|
70
|
-
return await server.incident.List(filters, page, size, sorts);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type InMemoryStoreCategoryRow =
|
|
22
|
-
{
|
|
23
|
-
id: number;
|
|
24
|
-
user_id: string;
|
|
25
|
-
entity_id: string;
|
|
26
|
-
category_id: string;
|
|
27
|
-
created_at: Date;
|
|
28
|
-
updated_at: Date;
|
|
29
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type InMemoryStoreFieldRow =
|
|
22
|
-
{
|
|
23
|
-
id: number;
|
|
24
|
-
user_id: string;
|
|
25
|
-
entity_id: string;
|
|
26
|
-
field_id: string;
|
|
27
|
-
value: (string | null);
|
|
28
|
-
created_at: Date;
|
|
29
|
-
updated_at: Date;
|
|
30
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type InMemoryStoreTagRow =
|
|
22
|
-
{
|
|
23
|
-
id: number;
|
|
24
|
-
user_id: string;
|
|
25
|
-
entity_id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
value: (string | null);
|
|
28
|
-
created_at: Date;
|
|
29
|
-
updated_at: Date;
|
|
30
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { IncidentStatus } from "../enum/IncidentStatus";
|
|
22
|
-
|
|
23
|
-
export type IncidentInputRow =
|
|
24
|
-
{
|
|
25
|
-
workspace_id: string;
|
|
26
|
-
server_id: string;
|
|
27
|
-
kubernetes_id: string;
|
|
28
|
-
monitor_id: string;
|
|
29
|
-
alert_id: string;
|
|
30
|
-
metric_id: string;
|
|
31
|
-
chat_id: string;
|
|
32
|
-
status: IncidentStatus;
|
|
33
|
-
description: (string | null);
|
|
34
|
-
}
|
package/src/row/IncidentRow.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { IncidentStatus } from "../enum/IncidentStatus";
|
|
22
|
-
|
|
23
|
-
export type IncidentRow =
|
|
24
|
-
{
|
|
25
|
-
id: string;
|
|
26
|
-
user_id: string;
|
|
27
|
-
workspace_id: string;
|
|
28
|
-
server_id: string;
|
|
29
|
-
kubernetes_id: string;
|
|
30
|
-
monitor_id: string;
|
|
31
|
-
alert_id: string;
|
|
32
|
-
metric_id: string;
|
|
33
|
-
chat_id: string;
|
|
34
|
-
status: IncidentStatus;
|
|
35
|
-
description: (string | null);
|
|
36
|
-
created_at: Date;
|
|
37
|
-
updated_at: Date;
|
|
38
|
-
}
|