namirasoft-infra 1.4.4 → 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 +8 -53
- package/dist/command/KubernetesCreateCommand.js.map +1 -1
- package/dist/command/KubernetesUpdateCommand.js +8 -53
- 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 +1 -2
- package/dist/meta/KubernetesMetaTable.js +1 -2
- 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 +1 -6
- package/dist/row/KubernetesRow.d.ts +1 -2
- 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 +8 -53
- package/src/command/KubernetesUpdateCommand.ts +8 -53
- 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 +2 -4
- 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 +1 -6
- package/src/row/KubernetesRow.ts +1 -2
- 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
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { CacheCategoryRow } from "../row/CacheCategoryRow";
|
|
22
23
|
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { IncidentCategoryRow } from "../row/IncidentCategoryRow";
|
|
24
24
|
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
25
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class CacheCategoryMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, CacheCategoryRow>
|
|
28
28
|
{
|
|
29
29
|
public override columns: {
|
|
30
30
|
id: BaseMetaColumn;
|
|
@@ -36,7 +36,7 @@ export class IncidentCategoryMetaTable extends NSBaseMetaTable<NamirasoftInfraSe
|
|
|
36
36
|
}
|
|
37
37
|
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
38
38
|
{
|
|
39
|
-
super(database, "
|
|
39
|
+
super(database, "cache_category", "Cache Category", new BaseUUID(""));
|
|
40
40
|
this.columns = {
|
|
41
41
|
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
42
42
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
@@ -48,12 +48,12 @@ export class IncidentCategoryMetaTable extends NSBaseMetaTable<NamirasoftInfraSe
|
|
|
48
48
|
this.back_end.get = async (id: string) =>
|
|
49
49
|
{
|
|
50
50
|
let server = this.database.getServer();
|
|
51
|
-
return await server.
|
|
51
|
+
return await server.cache_category.Get(id);
|
|
52
52
|
};
|
|
53
53
|
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
54
54
|
{
|
|
55
55
|
let server = this.database.getServer();
|
|
56
|
-
return await server.
|
|
56
|
+
return await server.cache_category.List(filters, page, size, sorts);
|
|
57
57
|
};
|
|
58
58
|
this.front_end.getUpdateLink = () => "";
|
|
59
59
|
}
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { CacheFieldRow } from "../row/CacheFieldRow";
|
|
22
23
|
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { IncidentFieldRow } from "../row/IncidentFieldRow";
|
|
24
24
|
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
25
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class CacheFieldMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, CacheFieldRow>
|
|
28
28
|
{
|
|
29
29
|
public override columns: {
|
|
30
30
|
id: BaseMetaColumn;
|
|
@@ -37,7 +37,7 @@ export class IncidentFieldMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
37
37
|
}
|
|
38
38
|
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
39
39
|
{
|
|
40
|
-
super(database, "
|
|
40
|
+
super(database, "cache_field", "Cache Field", new BaseUUID(""));
|
|
41
41
|
this.columns = {
|
|
42
42
|
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
43
43
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
@@ -50,12 +50,12 @@ export class IncidentFieldMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
50
50
|
this.back_end.get = async (id: string) =>
|
|
51
51
|
{
|
|
52
52
|
let server = this.database.getServer();
|
|
53
|
-
return await server.
|
|
53
|
+
return await server.cache_field.Get(id);
|
|
54
54
|
};
|
|
55
55
|
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
56
56
|
{
|
|
57
57
|
let server = this.database.getServer();
|
|
58
|
-
return await server.
|
|
58
|
+
return await server.cache_field.List(filters, page, size, sorts);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { CacheRow } from "../row/CacheRow";
|
|
22
23
|
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { InMemoryStoreRow } from "../row/InMemoryStoreRow";
|
|
24
24
|
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
25
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class CacheMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, CacheRow>
|
|
28
28
|
{
|
|
29
29
|
public override columns: {
|
|
30
30
|
id: BaseMetaColumn;
|
|
@@ -33,7 +33,7 @@ export class InMemoryStoreMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
33
33
|
project_id: BaseMetaColumn;
|
|
34
34
|
environment_id: BaseMetaColumn;
|
|
35
35
|
log_group_id: BaseMetaColumn;
|
|
36
|
-
|
|
36
|
+
cache_credential_id: BaseMetaColumn;
|
|
37
37
|
name: BaseMetaColumn;
|
|
38
38
|
type: BaseMetaColumn;
|
|
39
39
|
connect_type: BaseMetaColumn;
|
|
@@ -45,7 +45,7 @@ export class InMemoryStoreMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
45
45
|
}
|
|
46
46
|
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
47
47
|
{
|
|
48
|
-
super(database, "
|
|
48
|
+
super(database, "cache", "Cache", new BaseUUID("ifr-ims"));
|
|
49
49
|
this.columns = {
|
|
50
50
|
id: new BaseMetaColumn(this, "id", "ID", "String", true),
|
|
51
51
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
@@ -53,7 +53,7 @@ export class InMemoryStoreMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
53
53
|
project_id: new BaseMetaColumn(this, "project_id", "Project ID", "String", true),
|
|
54
54
|
environment_id: new BaseMetaColumn(this, "environment_id", "Environment ID", "String", true),
|
|
55
55
|
log_group_id: new BaseMetaColumn(this, "log_group_id", "Log Group ID", "String", false),
|
|
56
|
-
|
|
56
|
+
cache_credential_id: new BaseMetaColumn(this, "cache_credential_id", "Cache Credential ID", "String", true),
|
|
57
57
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
58
58
|
type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
59
59
|
connect_type: new BaseMetaColumn(this, "connect_type", "Connect Type", "Enum", true),
|
|
@@ -66,12 +66,12 @@ export class InMemoryStoreMetaTable extends NSBaseMetaTable<NamirasoftInfraServe
|
|
|
66
66
|
this.back_end.get = async (id: string) =>
|
|
67
67
|
{
|
|
68
68
|
let server = this.database.getServer();
|
|
69
|
-
return await server.
|
|
69
|
+
return await server.cache.Get(id);
|
|
70
70
|
};
|
|
71
71
|
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
72
72
|
{
|
|
73
73
|
let server = this.database.getServer();
|
|
74
|
-
return await server.
|
|
74
|
+
return await server.cache.List(filters, page, size, sorts);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
};
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { CacheTagRow } from "../row/CacheTagRow";
|
|
22
23
|
import { FilterItem, SortItem } from "namirasoft-core";
|
|
23
|
-
import { IncidentTagRow } from "../row/IncidentTagRow";
|
|
24
24
|
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
25
25
|
import { NamirasoftInfraServer } from "../NamirasoftInfraServer";
|
|
26
26
|
|
|
27
|
-
export class
|
|
27
|
+
export class CacheTagMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, CacheTagRow>
|
|
28
28
|
{
|
|
29
29
|
public override columns: {
|
|
30
30
|
id: BaseMetaColumn;
|
|
@@ -37,7 +37,7 @@ export class IncidentTagMetaTable extends NSBaseMetaTable<NamirasoftInfraServer,
|
|
|
37
37
|
}
|
|
38
38
|
constructor(database: NSBaseMetaDatabase<NamirasoftInfraServer>)
|
|
39
39
|
{
|
|
40
|
-
super(database, "
|
|
40
|
+
super(database, "cache_tag", "Cache Tag", new BaseUUID(""));
|
|
41
41
|
this.columns = {
|
|
42
42
|
id: new BaseMetaColumn(this, "id", "ID", "Integer", true),
|
|
43
43
|
user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
@@ -50,12 +50,12 @@ export class IncidentTagMetaTable extends NSBaseMetaTable<NamirasoftInfraServer,
|
|
|
50
50
|
this.back_end.get = async (id: string) =>
|
|
51
51
|
{
|
|
52
52
|
let server = this.database.getServer();
|
|
53
|
-
return await server.
|
|
53
|
+
return await server.cache_tag.Get(id);
|
|
54
54
|
};
|
|
55
55
|
this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
|
|
56
56
|
{
|
|
57
57
|
let server = this.database.getServer();
|
|
58
|
-
return await server.
|
|
58
|
+
return await server.cache_tag.List(filters, page, size, sorts);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -36,10 +36,9 @@ export class KubernetesMetaTable extends NSBaseMetaTable<NamirasoftInfraServer,
|
|
|
36
36
|
environment_id: BaseMetaColumn;
|
|
37
37
|
log_group_id: BaseMetaColumn;
|
|
38
38
|
kubctl_on_server_id: BaseMetaColumn;
|
|
39
|
-
cloud: BaseMetaColumn;
|
|
40
39
|
name: BaseMetaColumn;
|
|
40
|
+
cloud: BaseMetaColumn;
|
|
41
41
|
description: BaseMetaColumn;
|
|
42
|
-
hash: BaseMetaColumn;
|
|
43
42
|
ip_public: BaseMetaColumn;
|
|
44
43
|
last_sync: BaseMetaColumn;
|
|
45
44
|
created_at: BaseMetaColumn;
|
|
@@ -58,10 +57,9 @@ export class KubernetesMetaTable extends NSBaseMetaTable<NamirasoftInfraServer,
|
|
|
58
57
|
environment_id: new BaseMetaColumn(this, "environment_id", "Environment ID", "String", true),
|
|
59
58
|
log_group_id: new BaseMetaColumn(this, "log_group_id", "Log Group ID", "String", false),
|
|
60
59
|
kubctl_on_server_id: new BaseMetaColumn(this, "kubctl_on_server_id", "Kubctl On Server ID", "String", true),
|
|
61
|
-
cloud: new BaseMetaColumn(this, "cloud", "Cloud", "Enum", true),
|
|
62
60
|
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
61
|
+
cloud: new BaseMetaColumn(this, "cloud", "Cloud", "Enum", true),
|
|
63
62
|
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
64
|
-
hash: new BaseMetaColumn(this, "hash", "Hash", "String", true),
|
|
65
63
|
ip_public: new BaseMetaColumn(this, "ip_public", "IP Public", "String", true),
|
|
66
64
|
last_sync: new BaseMetaColumn(this, "last_sync", "Last Sync", "String", true),
|
|
67
65
|
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
@@ -58,7 +58,7 @@ export class MonitorMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Mon
|
|
|
58
58
|
port_port: BaseMetaColumn;
|
|
59
59
|
database_credentail_id: BaseMetaColumn;
|
|
60
60
|
database_query: BaseMetaColumn;
|
|
61
|
-
|
|
61
|
+
cache_credentail_id: BaseMetaColumn;
|
|
62
62
|
message_broker_credentail_id: BaseMetaColumn;
|
|
63
63
|
docker_container_connection_type: BaseMetaColumn;
|
|
64
64
|
docker_container_deamon: BaseMetaColumn;
|
|
@@ -104,7 +104,7 @@ export class MonitorMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Mon
|
|
|
104
104
|
port_port: new BaseMetaColumn(this, "port_port", "Port Port", "Integer", false),
|
|
105
105
|
database_credentail_id: new BaseMetaColumn(this, "database_credentail_id", "Database Credentail ID", "String", false),
|
|
106
106
|
database_query: new BaseMetaColumn(this, "database_query", "Database Query", "String", false),
|
|
107
|
-
|
|
107
|
+
cache_credentail_id: new BaseMetaColumn(this, "cache_credentail_id", "Cache Credentail ID", "String", false),
|
|
108
108
|
message_broker_credentail_id: new BaseMetaColumn(this, "message_broker_credentail_id", "Message Broker Credentail ID", "String", false),
|
|
109
109
|
docker_container_connection_type: new BaseMetaColumn(this, "docker_container_connection_type", "Docker Container Connection Type", "Enum", false),
|
|
110
110
|
docker_container_deamon: new BaseMetaColumn(this, "docker_container_deamon", "Docker Container Deamon", "String", false),
|
|
@@ -22,6 +22,10 @@ import { AlertCategoryMetaTable } from "./AlertCategoryMetaTable";
|
|
|
22
22
|
import { AlertFieldMetaTable } from "./AlertFieldMetaTable";
|
|
23
23
|
import { AlertMetaTable } from "./AlertMetaTable";
|
|
24
24
|
import { AlertTagMetaTable } from "./AlertTagMetaTable";
|
|
25
|
+
import { CacheCategoryMetaTable } from "./CacheCategoryMetaTable";
|
|
26
|
+
import { CacheFieldMetaTable } from "./CacheFieldMetaTable";
|
|
27
|
+
import { CacheMetaTable } from "./CacheMetaTable";
|
|
28
|
+
import { CacheTagMetaTable } from "./CacheTagMetaTable";
|
|
25
29
|
import { CloudCategoryMetaTable } from "./CloudCategoryMetaTable";
|
|
26
30
|
import { CloudFieldMetaTable } from "./CloudFieldMetaTable";
|
|
27
31
|
import { CloudMetaTable } from "./CloudMetaTable";
|
|
@@ -35,14 +39,6 @@ import { EnvironmentCategoryMetaTable } from "./EnvironmentCategoryMetaTable";
|
|
|
35
39
|
import { EnvironmentFieldMetaTable } from "./EnvironmentFieldMetaTable";
|
|
36
40
|
import { EnvironmentMetaTable } from "./EnvironmentMetaTable";
|
|
37
41
|
import { EnvironmentTagMetaTable } from "./EnvironmentTagMetaTable";
|
|
38
|
-
import { InMemoryStoreCategoryMetaTable } from "./InMemoryStoreCategoryMetaTable";
|
|
39
|
-
import { InMemoryStoreFieldMetaTable } from "./InMemoryStoreFieldMetaTable";
|
|
40
|
-
import { InMemoryStoreMetaTable } from "./InMemoryStoreMetaTable";
|
|
41
|
-
import { InMemoryStoreTagMetaTable } from "./InMemoryStoreTagMetaTable";
|
|
42
|
-
import { IncidentCategoryMetaTable } from "./IncidentCategoryMetaTable";
|
|
43
|
-
import { IncidentFieldMetaTable } from "./IncidentFieldMetaTable";
|
|
44
|
-
import { IncidentMetaTable } from "./IncidentMetaTable";
|
|
45
|
-
import { IncidentTagMetaTable } from "./IncidentTagMetaTable";
|
|
46
42
|
import { KubernetesCategoryMetaTable } from "./KubernetesCategoryMetaTable";
|
|
47
43
|
import { KubernetesFieldMetaTable } from "./KubernetesFieldMetaTable";
|
|
48
44
|
import { KubernetesMetaTable } from "./KubernetesMetaTable";
|
|
@@ -104,14 +100,10 @@ export class NamirasoftInfraMetaDatabase extends NSBaseMetaDatabase<NamirasoftIn
|
|
|
104
100
|
database_field: DatabaseFieldMetaTable,
|
|
105
101
|
database_tag: DatabaseTagMetaTable,
|
|
106
102
|
database: DatabaseMetaTable,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
in_memory_store_category: InMemoryStoreCategoryMetaTable,
|
|
112
|
-
in_memory_store_field: InMemoryStoreFieldMetaTable,
|
|
113
|
-
in_memory_store_tag: InMemoryStoreTagMetaTable,
|
|
114
|
-
in_memory_store: InMemoryStoreMetaTable,
|
|
103
|
+
cache_category: CacheCategoryMetaTable,
|
|
104
|
+
cache_field: CacheFieldMetaTable,
|
|
105
|
+
cache_tag: CacheTagMetaTable,
|
|
106
|
+
cache: CacheMetaTable,
|
|
115
107
|
message_broker_category: MessageBrokerCategoryMetaTable,
|
|
116
108
|
message_broker_field: MessageBrokerFieldMetaTable,
|
|
117
109
|
message_broker_tag: MessageBrokerTagMetaTable,
|
|
@@ -159,14 +151,10 @@ export class NamirasoftInfraMetaDatabase extends NSBaseMetaDatabase<NamirasoftIn
|
|
|
159
151
|
database_field: new DatabaseFieldMetaTable(this),
|
|
160
152
|
database_tag: new DatabaseTagMetaTable(this),
|
|
161
153
|
database: new DatabaseMetaTable(this),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
in_memory_store_category: new InMemoryStoreCategoryMetaTable(this),
|
|
167
|
-
in_memory_store_field: new InMemoryStoreFieldMetaTable(this),
|
|
168
|
-
in_memory_store_tag: new InMemoryStoreTagMetaTable(this),
|
|
169
|
-
in_memory_store: new InMemoryStoreMetaTable(this),
|
|
154
|
+
cache_category: new CacheCategoryMetaTable(this),
|
|
155
|
+
cache_field: new CacheFieldMetaTable(this),
|
|
156
|
+
cache_tag: new CacheTagMetaTable(this),
|
|
157
|
+
cache: new CacheMetaTable(this),
|
|
170
158
|
message_broker_category: new MessageBrokerCategoryMetaTable(this),
|
|
171
159
|
message_broker_field: new MessageBrokerFieldMetaTable(this),
|
|
172
160
|
message_broker_tag: new MessageBrokerTagMetaTable(this),
|
|
@@ -40,7 +40,6 @@ export class ServerMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Serv
|
|
|
40
40
|
metric_retention_unit: BaseMetaColumn;
|
|
41
41
|
metric_retention_value: BaseMetaColumn;
|
|
42
42
|
description: BaseMetaColumn;
|
|
43
|
-
hash: BaseMetaColumn;
|
|
44
43
|
ip_public: BaseMetaColumn;
|
|
45
44
|
ip_private: BaseMetaColumn;
|
|
46
45
|
architecture: BaseMetaColumn;
|
|
@@ -73,7 +72,6 @@ export class ServerMetaTable extends NSBaseMetaTable<NamirasoftInfraServer, Serv
|
|
|
73
72
|
metric_retention_unit: new BaseMetaColumn(this, "metric_retention_unit", "Metric Retention Unit", "Enum", true),
|
|
74
73
|
metric_retention_value: new BaseMetaColumn(this, "metric_retention_value", "Metric Retention Value", "Integer", true),
|
|
75
74
|
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
76
|
-
hash: new BaseMetaColumn(this, "hash", "Hash", "String", true),
|
|
77
75
|
ip_public: new BaseMetaColumn(this, "ip_public", "IP Public", "String", true),
|
|
78
76
|
ip_private: new BaseMetaColumn(this, "ip_private", "IP Private", "String", true),
|
|
79
77
|
architecture: new BaseMetaColumn(this, "architecture", "Architecture", "String", true),
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { CacheConnectType } from "../enum/CacheConnectType";
|
|
22
|
+
import { CacheType } from "../enum/CacheType";
|
|
23
23
|
|
|
24
|
-
export type
|
|
24
|
+
export type CacheInputRow =
|
|
25
25
|
{
|
|
26
26
|
workspace_id: string;
|
|
27
27
|
project_id: string;
|
|
28
28
|
environment_id: string;
|
|
29
29
|
log_group_id: (string | null);
|
|
30
|
-
|
|
30
|
+
cache_credential_id: string;
|
|
31
31
|
name: string;
|
|
32
|
-
type:
|
|
33
|
-
connect_type:
|
|
32
|
+
type: CacheType;
|
|
33
|
+
connect_type: CacheConnectType;
|
|
34
34
|
connect_server_id: (string | null);
|
|
35
35
|
connect_kubernetes_id: (string | null);
|
|
36
36
|
description: (string | null);
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { CacheConnectType } from "../enum/CacheConnectType";
|
|
22
|
+
import { CacheType } from "../enum/CacheType";
|
|
23
23
|
|
|
24
|
-
export type
|
|
24
|
+
export type CacheRow =
|
|
25
25
|
{
|
|
26
26
|
id: string;
|
|
27
27
|
user_id: string;
|
|
@@ -29,10 +29,10 @@ export type InMemoryStoreRow =
|
|
|
29
29
|
project_id: string;
|
|
30
30
|
environment_id: string;
|
|
31
31
|
log_group_id: (string | null);
|
|
32
|
-
|
|
32
|
+
cache_credential_id: string;
|
|
33
33
|
name: string;
|
|
34
|
-
type:
|
|
35
|
-
connect_type:
|
|
34
|
+
type: CacheType;
|
|
35
|
+
connect_type: CacheConnectType;
|
|
36
36
|
connect_server_id: (string | null);
|
|
37
37
|
connect_kubernetes_id: (string | null);
|
|
38
38
|
description: (string | null);
|
|
@@ -23,16 +23,11 @@ import { KubernetesCloud } from "../enum/KubernetesCloud";
|
|
|
23
23
|
export type KubernetesInputRow =
|
|
24
24
|
{
|
|
25
25
|
workspace_id: string;
|
|
26
|
-
service_user_id: string;
|
|
27
|
-
service_session_id: string;
|
|
28
26
|
project_id: string;
|
|
29
27
|
environment_id: string;
|
|
30
28
|
log_group_id: (string | null);
|
|
31
29
|
kubctl_on_server_id: string;
|
|
32
|
-
cloud: KubernetesCloud;
|
|
33
30
|
name: string;
|
|
31
|
+
cloud: KubernetesCloud;
|
|
34
32
|
description: (string | null);
|
|
35
|
-
hash: string;
|
|
36
|
-
ip_public: string;
|
|
37
|
-
last_sync: string;
|
|
38
33
|
}
|
package/src/row/KubernetesRow.ts
CHANGED
|
@@ -31,10 +31,9 @@ export type KubernetesRow =
|
|
|
31
31
|
environment_id: string;
|
|
32
32
|
log_group_id: (string | null);
|
|
33
33
|
kubctl_on_server_id: string;
|
|
34
|
-
cloud: KubernetesCloud;
|
|
35
34
|
name: string;
|
|
35
|
+
cloud: KubernetesCloud;
|
|
36
36
|
description: (string | null);
|
|
37
|
-
hash: string;
|
|
38
37
|
ip_public: string;
|
|
39
38
|
last_sync: string;
|
|
40
39
|
created_at: Date;
|
|
@@ -57,7 +57,7 @@ export type MonitorInputRow =
|
|
|
57
57
|
port_port: (number | null);
|
|
58
58
|
database_credentail_id: (string | null);
|
|
59
59
|
database_query: (string | null);
|
|
60
|
-
|
|
60
|
+
cache_credentail_id: (string | null);
|
|
61
61
|
message_broker_credentail_id: (string | null);
|
|
62
62
|
docker_container_connection_type: (MonitorDockerContainerConnectionType | null);
|
|
63
63
|
docker_container_deamon: (string | null);
|
package/src/row/MonitorRow.ts
CHANGED
|
@@ -59,7 +59,7 @@ export type MonitorRow =
|
|
|
59
59
|
port_port: (number | null);
|
|
60
60
|
database_credentail_id: (string | null);
|
|
61
61
|
database_query: (string | null);
|
|
62
|
-
|
|
62
|
+
cache_credentail_id: (string | null);
|
|
63
63
|
message_broker_credentail_id: (string | null);
|
|
64
64
|
docker_container_connection_type: (MonitorDockerContainerConnectionType | null);
|
|
65
65
|
docker_container_deamon: (string | null);
|
|
@@ -24,8 +24,6 @@ import { ServerMetricRetentionUnit } from "../enum/ServerMetricRetentionUnit";
|
|
|
24
24
|
export type ServerInputRow =
|
|
25
25
|
{
|
|
26
26
|
workspace_id: string;
|
|
27
|
-
service_user_id: string;
|
|
28
|
-
service_session_id: string;
|
|
29
27
|
project_id: string;
|
|
30
28
|
environment_id: string;
|
|
31
29
|
log_group_id: (string | null);
|
package/src/row/ServerRow.ts
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseServerConfig } from "namirasoft-core";
|
|
2
|
-
import { FilterItem } from "namirasoft-core";
|
|
3
|
-
import { InMemoryStoreInputRow } from "./row/InMemoryStoreInputRow";
|
|
4
|
-
import { InMemoryStoreRow } from "./row/InMemoryStoreRow";
|
|
5
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
6
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
7
|
-
import { SortItem } from "namirasoft-core";
|
|
8
|
-
export declare class NamirasoftInfraServerInMemoryStore extends NamirasoftInfraServerBase {
|
|
9
|
-
constructor(server: NamirasoftInfraServer);
|
|
10
|
-
Get(id: (string | null), config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>;
|
|
11
|
-
Create(body: InMemoryStoreInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>;
|
|
12
|
-
Update(id: (string | null), body: InMemoryStoreInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreRow>;
|
|
13
|
-
Delete(id: string, config?: BaseServerConfig<any>): Promise<void>;
|
|
14
|
-
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{
|
|
15
|
-
rows: InMemoryStoreRow[];
|
|
16
|
-
count: number;
|
|
17
|
-
}>;
|
|
18
|
-
}
|
|
@@ -1,64 +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.NamirasoftInfraServerInMemoryStore = void 0;
|
|
13
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
-
const NamirasoftInfraServerBase_1 = require("./NamirasoftInfraServerBase");
|
|
15
|
-
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
-
class NamirasoftInfraServerInMemoryStore extends NamirasoftInfraServerBase_1.NamirasoftInfraServerBase {
|
|
17
|
-
constructor(server) {
|
|
18
|
-
super(server);
|
|
19
|
-
this.Get = this.Get.bind(this);
|
|
20
|
-
this.Create = this.Create.bind(this);
|
|
21
|
-
this.Update = this.Update.bind(this);
|
|
22
|
-
this.Delete = this.Delete.bind(this);
|
|
23
|
-
this.List = this.List.bind(this);
|
|
24
|
-
}
|
|
25
|
-
Get(id, config) {
|
|
26
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
let path = `/in/memory/store/${id}`;
|
|
28
|
-
let { data } = yield this.server._get(path, {}, config);
|
|
29
|
-
return data;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
Create(body, config) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
let path = `/in/memory/store`;
|
|
35
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
36
|
-
return data;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
Update(id, body, config) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
let path = `/in/memory/store/${id}`;
|
|
42
|
-
let { data } = yield this.server._put(path, {}, body, config);
|
|
43
|
-
return data;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
Delete(id, config) {
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
let path = `/in/memory/store/${id}`;
|
|
49
|
-
yield this.server._delete(path, {}, config);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
List(filters, page, size, sorts, config) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
55
|
-
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
56
|
-
let path = `/in/memory/store/list`;
|
|
57
|
-
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
58
|
-
return data;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.NamirasoftInfraServerInMemoryStore = NamirasoftInfraServerInMemoryStore;
|
|
63
|
-
;
|
|
64
|
-
//# sourceMappingURL=NamirasoftInfraServerInMemoryStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftInfraServerInMemoryStore.js","sourceRoot":"","sources":["../src/NamirasoftInfraServerInMemoryStore.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAI7C,2EAAwE;AACxE,qDAA2C;AAE3C,MAAa,kCAAmC,SAAQ,qDAAyB;IAE7E,YAAY,MAA6B;QAErC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IACK,GAAG,CAAC,EAAmB,EAAE,MAA8B;;YAEzD,IAAI,IAAI,GAAG,oBAAoB,EAAE,EAAE,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAmB,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;YAC1E,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAA2B,EAAE,MAA8B;;YAEpE,IAAI,IAAI,GAAG,kBAAkB,CAAC;YAC9B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAmB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;YACjF,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAmB,EAAE,IAA2B,EAAE,MAA8B;;YAEzF,IAAI,IAAI,GAAG,oBAAoB,EAAE,EAAE,CAAC;YACpC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAmB,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;YAChF,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,MAA8B;;YAEnD,IAAI,IAAI,GAAG,oBAAoB,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACtD,CAAC;KAAA;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,MAA8B;;YAEpI,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,uBAAuB,CAAC;YACnC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA8C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,MAAM,CAAC,CAAC;YAC3K,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AA1CD,gFA0CC;AAAA,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseServerConfig } from "namirasoft-core";
|
|
2
|
-
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
3
|
-
import { FilterItem } from "namirasoft-core";
|
|
4
|
-
import { InMemoryStoreCategoryRow } from "./row/InMemoryStoreCategoryRow";
|
|
5
|
-
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
6
|
-
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
7
|
-
import { SortItem } from "namirasoft-core";
|
|
8
|
-
export declare class NamirasoftInfraServerInMemoryStoreCategory extends NamirasoftInfraServerBase {
|
|
9
|
-
constructor(server: NamirasoftInfraServer);
|
|
10
|
-
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{
|
|
11
|
-
rows: InMemoryStoreCategoryRow[];
|
|
12
|
-
count: number;
|
|
13
|
-
}>;
|
|
14
|
-
Get(id: string, config?: BaseServerConfig<any>): Promise<InMemoryStoreCategoryRow>;
|
|
15
|
-
Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<InMemoryStoreCategoryRow>;
|
|
16
|
-
Delete(id: number, config?: BaseServerConfig<any>): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,56 +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.NamirasoftInfraServerInMemoryStoreCategory = void 0;
|
|
13
|
-
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
-
const NamirasoftInfraServerBase_1 = require("./NamirasoftInfraServerBase");
|
|
15
|
-
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
-
class NamirasoftInfraServerInMemoryStoreCategory extends NamirasoftInfraServerBase_1.NamirasoftInfraServerBase {
|
|
17
|
-
constructor(server) {
|
|
18
|
-
super(server);
|
|
19
|
-
this.List = this.List.bind(this);
|
|
20
|
-
this.Get = this.Get.bind(this);
|
|
21
|
-
this.Create = this.Create.bind(this);
|
|
22
|
-
this.Delete = this.Delete.bind(this);
|
|
23
|
-
}
|
|
24
|
-
List(filters, page, size, sorts, config) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
27
|
-
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
28
|
-
let path = `in/memory/store/category/list`;
|
|
29
|
-
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
30
|
-
return data;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
Get(id, config) {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
let path = `in/memory/store/category/${id}`;
|
|
36
|
-
let { data } = yield this.server._get(path, {}, config);
|
|
37
|
-
return data;
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
Create(body, config) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
let path = `in/memory/store/category`;
|
|
43
|
-
let { data } = yield this.server._post(path, {}, body, config);
|
|
44
|
-
return data;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
Delete(id, config) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
let path = `in/memory/store/category/${id}`;
|
|
50
|
-
yield this.server._delete(path, {}, config);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.NamirasoftInfraServerInMemoryStoreCategory = NamirasoftInfraServerInMemoryStoreCategory;
|
|
55
|
-
;
|
|
56
|
-
//# sourceMappingURL=NamirasoftInfraServerInMemoryStoreCategory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftInfraServerInMemoryStoreCategory.js","sourceRoot":"","sources":["../src/NamirasoftInfraServerInMemoryStoreCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;AAG7C,2EAAwE;AACxE,qDAA2C;AAE3C,MAAa,0CAA2C,SAAQ,qDAAyB;IAErF,YAAY,MAA6B;QAErC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,MAA8B;;YAEpI,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,+BAA+B,CAAC;YAC3C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAsD,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,MAAM,CAAC,CAAC;YACnL,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU,EAAE,MAA8B;;YAEhD,IAAI,IAAI,GAAG,4BAA4B,EAAE,EAAE,CAAC;YAC5C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA2B,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;YAClF,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAA4B,EAAE,MAA8B;;YAErE,IAAI,IAAI,GAAG,0BAA0B,CAAC;YACtC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAA2B,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;YACzF,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,MAA8B;;YAEnD,IAAI,IAAI,GAAG,4BAA4B,EAAE,EAAE,CAAC;YAC5C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACtD,CAAC;KAAA;CACJ;AAnCD,gGAmCC;AAAA,CAAC"}
|