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,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.IncidentMetaTable = void 0;
|
|
13
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
-
const namirasoft_site_1 = require("namirasoft-site");
|
|
15
|
-
class IncidentMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
16
|
-
constructor(database) {
|
|
17
|
-
super(database, "incident", "Incident", new namirasoft_core_1.BaseUUID("ifr-inc"));
|
|
18
|
-
this.columns = {
|
|
19
|
-
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
|
-
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
-
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
22
|
-
server_id: new namirasoft_core_1.BaseMetaColumn(this, "server_id", "Server ID", "String", true),
|
|
23
|
-
kubernetes_id: new namirasoft_core_1.BaseMetaColumn(this, "kubernetes_id", "Kubernetes ID", "String", true),
|
|
24
|
-
monitor_id: new namirasoft_core_1.BaseMetaColumn(this, "monitor_id", "Monitor ID", "String", true),
|
|
25
|
-
alert_id: new namirasoft_core_1.BaseMetaColumn(this, "alert_id", "Alert ID", "String", true),
|
|
26
|
-
metric_id: new namirasoft_core_1.BaseMetaColumn(this, "metric_id", "Metric ID", "String", true),
|
|
27
|
-
chat_id: new namirasoft_core_1.BaseMetaColumn(this, "chat_id", "Chat ID", "String", true),
|
|
28
|
-
status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
|
|
29
|
-
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
30
|
-
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
31
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
32
|
-
};
|
|
33
|
-
this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
let server = this.database.getServer();
|
|
35
|
-
return yield server.incident.Get(id);
|
|
36
|
-
});
|
|
37
|
-
this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
let server = this.database.getServer();
|
|
39
|
-
return yield server.incident.List(filters, page, size, sorts);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.IncidentMetaTable = IncidentMetaTable;
|
|
44
|
-
;
|
|
45
|
-
//# sourceMappingURL=IncidentMetaTable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentMetaTable.js","sourceRoot":"","sources":["../../src/meta/IncidentMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,iBAAkB,SAAQ,iCAAmD;IAiBtF,YAAY,QAAmD;QAE3D,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,YAAY,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,CAAC;YACtF,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,CAAC;YACzF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;YAClE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAClE,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AA9CD,8CA8CC;AAAA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/IncidentTagMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA2D;AAG3D,qDAAsE;AAGtE,MAAa,oBAAqB,SAAQ,iCAAsD;IAW5F,YAAY,QAAmD;QAE3D,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC9D,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC;YAClE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC7C,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACtE,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAlCD,oDAkCC;AAAA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStoreCategoryRow.js","sourceRoot":"","sources":["../../src/row/InMemoryStoreCategoryRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStoreFieldRow.js","sourceRoot":"","sources":["../../src/row/InMemoryStoreFieldRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { InMemoryStoreConnectType } from "../enum/InMemoryStoreConnectType";
|
|
2
|
-
import { InMemoryStoreType } from "../enum/InMemoryStoreType";
|
|
3
|
-
export type InMemoryStoreInputRow = {
|
|
4
|
-
workspace_id: string;
|
|
5
|
-
project_id: string;
|
|
6
|
-
environment_id: string;
|
|
7
|
-
log_group_id: (string | null);
|
|
8
|
-
in_memory_store_credential_id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
type: InMemoryStoreType;
|
|
11
|
-
connect_type: InMemoryStoreConnectType;
|
|
12
|
-
connect_server_id: (string | null);
|
|
13
|
-
connect_kubernetes_id: (string | null);
|
|
14
|
-
description: (string | null);
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStoreInputRow.js","sourceRoot":"","sources":["../../src/row/InMemoryStoreInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStoreRow.js","sourceRoot":"","sources":["../../src/row/InMemoryStoreRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStoreTagRow.js","sourceRoot":"","sources":["../../src/row/InMemoryStoreTagRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentCategoryRow.js","sourceRoot":"","sources":["../../src/row/IncidentCategoryRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentFieldRow.js","sourceRoot":"","sources":["../../src/row/IncidentFieldRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IncidentStatus } from "../enum/IncidentStatus";
|
|
2
|
-
export type IncidentInputRow = {
|
|
3
|
-
workspace_id: string;
|
|
4
|
-
server_id: string;
|
|
5
|
-
kubernetes_id: string;
|
|
6
|
-
monitor_id: string;
|
|
7
|
-
alert_id: string;
|
|
8
|
-
metric_id: string;
|
|
9
|
-
chat_id: string;
|
|
10
|
-
status: IncidentStatus;
|
|
11
|
-
description: (string | null);
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentInputRow.js","sourceRoot":"","sources":["../../src/row/IncidentInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IncidentStatus } from "../enum/IncidentStatus";
|
|
2
|
-
export type IncidentRow = {
|
|
3
|
-
id: string;
|
|
4
|
-
user_id: string;
|
|
5
|
-
workspace_id: string;
|
|
6
|
-
server_id: string;
|
|
7
|
-
kubernetes_id: string;
|
|
8
|
-
monitor_id: string;
|
|
9
|
-
alert_id: string;
|
|
10
|
-
metric_id: string;
|
|
11
|
-
chat_id: string;
|
|
12
|
-
status: IncidentStatus;
|
|
13
|
-
description: (string | null);
|
|
14
|
-
created_at: Date;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentRow.js","sourceRoot":"","sources":["../../src/row/IncidentRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IncidentTagRow.js","sourceRoot":"","sources":["../../src/row/IncidentTagRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,71 +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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { FilterItem } from "namirasoft-core";
|
|
23
|
-
import { InMemoryStoreInputRow } from "./row/InMemoryStoreInputRow";
|
|
24
|
-
import { InMemoryStoreRow } from "./row/InMemoryStoreRow";
|
|
25
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
-
import { SortItem } from "namirasoft-core";
|
|
28
|
-
|
|
29
|
-
export class NamirasoftInfraServerInMemoryStore extends NamirasoftInfraServerBase
|
|
30
|
-
{
|
|
31
|
-
constructor(server: NamirasoftInfraServer)
|
|
32
|
-
{
|
|
33
|
-
super(server);
|
|
34
|
-
this.Get = this.Get.bind(this);
|
|
35
|
-
this.Create = this.Create.bind(this);
|
|
36
|
-
this.Update = this.Update.bind(this);
|
|
37
|
-
this.Delete = this.Delete.bind(this);
|
|
38
|
-
this.List = this.List.bind(this);
|
|
39
|
-
}
|
|
40
|
-
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>
|
|
41
|
-
{
|
|
42
|
-
let path = `/in/memory/store/${id}`;
|
|
43
|
-
let { data } = await this.server._get<InMemoryStoreRow>(path, {}, config);
|
|
44
|
-
return data;
|
|
45
|
-
}
|
|
46
|
-
async Create(body: InMemoryStoreInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>
|
|
47
|
-
{
|
|
48
|
-
let path = `/in/memory/store`;
|
|
49
|
-
let { data } = await this.server._post<InMemoryStoreRow>(path, {}, body, config);
|
|
50
|
-
return data;
|
|
51
|
-
}
|
|
52
|
-
async Update(id: (string | null), body: InMemoryStoreInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>
|
|
53
|
-
{
|
|
54
|
-
let path = `/in/memory/store/${id}`;
|
|
55
|
-
let { data } = await this.server._put<InMemoryStoreRow>(path, {}, body, config);
|
|
56
|
-
return data;
|
|
57
|
-
}
|
|
58
|
-
async Delete(id: string, config?: BaseServerConfig<any>): Promise<void>
|
|
59
|
-
{
|
|
60
|
-
let path = `/in/memory/store/${id}`;
|
|
61
|
-
await this.server._delete<void>(path, {}, config);
|
|
62
|
-
}
|
|
63
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: InMemoryStoreRow[], count: number }>
|
|
64
|
-
{
|
|
65
|
-
let filters_string_value: string = FilterItem.stringify(filters);
|
|
66
|
-
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
67
|
-
let path = `/in/memory/store/list`;
|
|
68
|
-
let { data } = await this.server._get<{ rows: InMemoryStoreRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
@@ -1,64 +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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
23
|
-
import { FilterItem } from "namirasoft-core";
|
|
24
|
-
import { InMemoryStoreCategoryRow } from "./row/InMemoryStoreCategoryRow";
|
|
25
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
-
import { SortItem } from "namirasoft-core";
|
|
28
|
-
|
|
29
|
-
export class NamirasoftInfraServerInMemoryStoreCategory extends NamirasoftInfraServerBase
|
|
30
|
-
{
|
|
31
|
-
constructor(server: NamirasoftInfraServer)
|
|
32
|
-
{
|
|
33
|
-
super(server);
|
|
34
|
-
this.List = this.List.bind(this);
|
|
35
|
-
this.Get = this.Get.bind(this);
|
|
36
|
-
this.Create = this.Create.bind(this);
|
|
37
|
-
this.Delete = this.Delete.bind(this);
|
|
38
|
-
}
|
|
39
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: InMemoryStoreCategoryRow[], count: number }>
|
|
40
|
-
{
|
|
41
|
-
let filters_string_value: string = FilterItem.stringify(filters);
|
|
42
|
-
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
43
|
-
let path = `in/memory/store/category/list`;
|
|
44
|
-
let { data } = await this.server._get<{ rows: InMemoryStoreCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
47
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<InMemoryStoreCategoryRow>
|
|
48
|
-
{
|
|
49
|
-
let path = `in/memory/store/category/${id}`;
|
|
50
|
-
let { data } = await this.server._get<InMemoryStoreCategoryRow>(path, {}, config);
|
|
51
|
-
return data;
|
|
52
|
-
}
|
|
53
|
-
async Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreCategoryRow>
|
|
54
|
-
{
|
|
55
|
-
let path = `in/memory/store/category`;
|
|
56
|
-
let { data } = await this.server._post<InMemoryStoreCategoryRow>(path, {}, body, config);
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
60
|
-
{
|
|
61
|
-
let path = `in/memory/store/category/${id}`;
|
|
62
|
-
await this.server._delete<void>(path, {}, config);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
@@ -1,71 +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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
23
|
-
import { FilterItem } from "namirasoft-core";
|
|
24
|
-
import { InMemoryStoreFieldRow } from "./row/InMemoryStoreFieldRow";
|
|
25
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
-
import { SortItem } from "namirasoft-core";
|
|
28
|
-
|
|
29
|
-
export class NamirasoftInfraServerInMemoryStoreField extends NamirasoftInfraServerBase
|
|
30
|
-
{
|
|
31
|
-
constructor(server: NamirasoftInfraServer)
|
|
32
|
-
{
|
|
33
|
-
super(server);
|
|
34
|
-
this.List = this.List.bind(this);
|
|
35
|
-
this.Get = this.Get.bind(this);
|
|
36
|
-
this.Create = this.Create.bind(this);
|
|
37
|
-
this.Update = this.Update.bind(this);
|
|
38
|
-
this.Delete = this.Delete.bind(this);
|
|
39
|
-
}
|
|
40
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: InMemoryStoreFieldRow[], count: number }>
|
|
41
|
-
{
|
|
42
|
-
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
-
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
-
let path = `in/memory/store/field/list`;
|
|
45
|
-
let { data } = await this.server._get<{ rows: InMemoryStoreFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
48
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<InMemoryStoreFieldRow>
|
|
49
|
-
{
|
|
50
|
-
let path = `in/memory/store/field/${id}`;
|
|
51
|
-
let { data } = await this.server._get<InMemoryStoreFieldRow>(path, {}, config);
|
|
52
|
-
return data;
|
|
53
|
-
}
|
|
54
|
-
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreFieldRow>
|
|
55
|
-
{
|
|
56
|
-
let path = `in/memory/store/field`;
|
|
57
|
-
let { data } = await this.server._post<InMemoryStoreFieldRow>(path, {}, body, config);
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreFieldRow>
|
|
61
|
-
{
|
|
62
|
-
let path = `in/memory/store/field/${id}`;
|
|
63
|
-
let { data } = await this.server._put<InMemoryStoreFieldRow>(path, {}, body, config);
|
|
64
|
-
return data;
|
|
65
|
-
}
|
|
66
|
-
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
-
{
|
|
68
|
-
let path = `in/memory/store/field/${id}`;
|
|
69
|
-
await this.server._delete<void>(path, {}, config);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
@@ -1,71 +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 { BaseServerConfig } from "namirasoft-core";
|
|
22
|
-
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
23
|
-
import { FilterItem } from "namirasoft-core";
|
|
24
|
-
import { InMemoryStoreTagRow } from "./row/InMemoryStoreTagRow";
|
|
25
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
-
import { SortItem } from "namirasoft-core";
|
|
28
|
-
|
|
29
|
-
export class NamirasoftInfraServerInMemoryStoreTag extends NamirasoftInfraServerBase
|
|
30
|
-
{
|
|
31
|
-
constructor(server: NamirasoftInfraServer)
|
|
32
|
-
{
|
|
33
|
-
super(server);
|
|
34
|
-
this.List = this.List.bind(this);
|
|
35
|
-
this.Get = this.Get.bind(this);
|
|
36
|
-
this.Create = this.Create.bind(this);
|
|
37
|
-
this.Update = this.Update.bind(this);
|
|
38
|
-
this.Delete = this.Delete.bind(this);
|
|
39
|
-
}
|
|
40
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: InMemoryStoreTagRow[], count: number }>
|
|
41
|
-
{
|
|
42
|
-
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
-
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
-
let path = `in/memory/store/tag/list`;
|
|
45
|
-
let { data } = await this.server._get<{ rows: InMemoryStoreTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
48
|
-
async Get(id: string, config?: BaseServerConfig<any>): Promise<InMemoryStoreTagRow>
|
|
49
|
-
{
|
|
50
|
-
let path = `in/memory/store/tag/${id}`;
|
|
51
|
-
let { data } = await this.server._get<InMemoryStoreTagRow>(path, {}, config);
|
|
52
|
-
return data;
|
|
53
|
-
}
|
|
54
|
-
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreTagRow>
|
|
55
|
-
{
|
|
56
|
-
let path = `in/memory/store/tag`;
|
|
57
|
-
let { data } = await this.server._post<InMemoryStoreTagRow>(path, {}, body, config);
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreTagRow>
|
|
61
|
-
{
|
|
62
|
-
let path = `in/memory/store/tag/${id}`;
|
|
63
|
-
let { data } = await this.server._put<InMemoryStoreTagRow>(path, {}, body, config);
|
|
64
|
-
return data;
|
|
65
|
-
}
|
|
66
|
-
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
-
{
|
|
68
|
-
let path = `in/memory/store/tag/${id}`;
|
|
69
|
-
await this.server._delete<void>(path, {}, config);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
@@ -1,65 +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 InMemoryStoreCategoryCreateCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, [], [
|
|
31
|
-
{
|
|
32
|
-
name: "entity_id",
|
|
33
|
-
short: "",
|
|
34
|
-
description: "Provides the value of 'entity_id' in body",
|
|
35
|
-
optional: false,
|
|
36
|
-
args: ["entity_id"],
|
|
37
|
-
defaults: [""]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "category_id",
|
|
41
|
-
short: "",
|
|
42
|
-
description: "Provides the value of 'category_id' in body",
|
|
43
|
-
optional: false,
|
|
44
|
-
args: ["category_id"],
|
|
45
|
-
defaults: [""]
|
|
46
|
-
}
|
|
47
|
-
]);
|
|
48
|
-
}
|
|
49
|
-
override async exec()
|
|
50
|
-
{
|
|
51
|
-
let token = this.app.storage.getNSAToken();
|
|
52
|
-
if (token == null)
|
|
53
|
-
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
54
|
-
let storage = new IStorageMemoryDedicated();
|
|
55
|
-
let token_manager = new TokenManager(storage, () => { });
|
|
56
|
-
token_manager.setValue(token, false);
|
|
57
|
-
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
58
|
-
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
59
|
-
let ans = await server.in_memory_store_category.Create({
|
|
60
|
-
entity_id: this.option_values.entity_id,
|
|
61
|
-
category_id: this.option_values.category_id
|
|
62
|
-
});
|
|
63
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
64
|
-
}
|
|
65
|
-
};
|
|
@@ -1,45 +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 InMemoryStoreCategoryDeleteCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], []);
|
|
31
|
-
}
|
|
32
|
-
override async exec()
|
|
33
|
-
{
|
|
34
|
-
let token = this.app.storage.getNSAToken();
|
|
35
|
-
if (token == null)
|
|
36
|
-
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
37
|
-
let storage = new IStorageMemoryDedicated();
|
|
38
|
-
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
-
token_manager.setValue(token, false);
|
|
40
|
-
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
41
|
-
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.in_memory_store_category.Delete(this.arg_values[0]);
|
|
43
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1,45 +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 InMemoryStoreCategoryGetCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], []);
|
|
31
|
-
}
|
|
32
|
-
override async exec()
|
|
33
|
-
{
|
|
34
|
-
let token = this.app.storage.getNSAToken();
|
|
35
|
-
if (token == null)
|
|
36
|
-
throw new Error("Token is not available. Please login first using:\nns-infra account config \nor \nns-infra account login.");
|
|
37
|
-
let storage = new IStorageMemoryDedicated();
|
|
38
|
-
let token_manager = new TokenManager(storage, () => { });
|
|
39
|
-
token_manager.setValue(token, false);
|
|
40
|
-
let url = this.app.storage.getItem("ns-infra-server-url");
|
|
41
|
-
let server = new NamirasoftInfraServer(url, token_manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.in_memory_store_category.Get(this.arg_values[0]);
|
|
43
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
-
}
|
|
45
|
-
};
|