| 1 | export interface AvailableIntegration { |
| 2 | id: number |
| 3 | integration_name: string |
| 4 | description: string |
| 5 | integration_details: string |
| 6 | auth_keys: IntegrationAuthKey[] |
| 7 | } |
| 8 | |
| 9 | export interface IntegrationAuthKey { |
| 10 | auth_key_name: string |
| 11 | } |
| 12 | |
| 13 | export interface CustomerIntegration { |
| 14 | customer_code: string |
| 15 | id: number |
| 16 | deployed: boolean |
| 17 | customer_name: string |
| 18 | integration_service_id: number |
| 19 | integration_service_name: string |
| 20 | integration_subscriptions: IntegrationSubscription[] |
| 21 | } |
| 22 | |
| 23 | export interface IntegrationSubscription { |
| 24 | id: number |
| 25 | customer_id: number |
| 26 | integration_service_id: number |
| 27 | integration_service: IntegrationService |
| 28 | integration_auth_keys: IntegrationAuthKeyFull[] |
| 29 | } |
| 30 | |
| 31 | export interface IntegrationAuthKeyFull { |
| 32 | id: number |
| 33 | auth_key_name: string |
| 34 | auth_value: string |
| 35 | subscription_id: number |
| 36 | } |
| 37 | |
| 38 | export interface IntegrationService { |
| 39 | auth_type: string |
| 40 | service_name: string |
| 41 | id: number |
| 42 | } |
| 43 | |
| 44 | export interface CustomerIntegrationMetaCommon { |
| 45 | id: number |
| 46 | customer_code: string |
| 47 | graylog_input_id?: string |
| 48 | graylog_index_id?: string |
| 49 | graylog_stream_id?: string |
| 50 | graylog_pipeline_id?: string |
| 51 | graylog_content_pack_input_id?: string |
| 52 | graylog_content_pack_stream_id?: string |
| 53 | grafana_org_id?: string |
| 54 | grafana_dashboard_folder_id?: string |
| 55 | grafana_datasource_uid?: string |
| 56 | } |
| 57 | |
| 58 | export interface CustomerIntegrationMetaThirdParty extends CustomerIntegrationMetaCommon { |
| 59 | integration_name: string |
| 60 | } |
| 61 | |
| 62 | export interface CustomerIntegrationMetaNetwork extends CustomerIntegrationMetaCommon { |
| 63 | network_connector_name: string |
| 64 | } |
| 65 | |
| 66 | export type CustomerIntegrationMetaResponse = |
| 67 | | { |
| 68 | data: CustomerIntegrationMetaThirdParty |
| 69 | table_type: "integration" |
| 70 | } |
| 71 | | { |
| 72 | data: CustomerIntegrationMetaNetwork |
| 73 | table_type: "network_connector" |
| 74 | } |