@harnessio/react-integration-manager-client 0.8.4 → 0.8.6

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.
Files changed (75) hide show
  1. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesMutation.d.ts +33 -0
  2. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesMutation.js +27 -0
  3. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesOrgMutation.d.ts +34 -0
  4. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesOrgMutation.js +27 -0
  5. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesProjectMutation.d.ts +35 -0
  6. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesFieldValuesProjectMutation.js +27 -0
  7. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesMutation.d.ts +1 -1
  8. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesMutation.js +1 -1
  9. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.d.ts +1 -1
  10. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.js +1 -1
  11. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.d.ts +1 -1
  12. package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.js +1 -1
  13. package/dist/integration-manager/src/services/hooks/useGetEntityInputSchemaQuery.d.ts +23 -0
  14. package/dist/integration-manager/src/services/hooks/useGetEntityInputSchemaQuery.js +14 -0
  15. package/dist/integration-manager/src/services/hooks/useGetSampleRecordsQuery.d.ts +22 -0
  16. package/dist/integration-manager/src/services/hooks/useGetSampleRecordsQuery.js +14 -0
  17. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsOrgQuery.d.ts +7 -3
  18. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsProjectQuery.d.ts +7 -3
  19. package/dist/integration-manager/src/services/hooks/useListIntegrationConfigsQuery.d.ts +7 -3
  20. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.d.ts +1 -1
  21. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +1 -1
  22. package/dist/integration-manager/src/services/index.d.ts +20 -16
  23. package/dist/integration-manager/src/services/index.js +5 -6
  24. package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesFieldValuesResponse.d.ts +4 -0
  25. package/dist/integration-manager/src/services/schemas/EnumIntegrationEventType.d.ts +1 -1
  26. package/dist/integration-manager/src/services/schemas/IntegrationconfigMappingConfigInput.d.ts +8 -0
  27. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest.d.ts +2 -2
  28. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest.d.ts +2 -2
  29. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigRequest.d.ts +2 -2
  30. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +4 -0
  31. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +4 -0
  32. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +4 -0
  33. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesOrgRequest.d.ts +5 -0
  34. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest.d.ts +5 -0
  35. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesProjectRequest.js +4 -0
  36. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesRequest.d.ts +5 -0
  37. package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesFieldValuesRequest.js +4 -0
  38. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +1 -0
  39. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +1 -0
  40. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +1 -0
  41. package/dist/integration-manager/src/services/schemas/TypesDefaultEntitySchema.d.ts +2 -0
  42. package/dist/integration-manager/src/services/schemas/TypesEntityInputSchemaResponse.d.ts +7 -0
  43. package/dist/integration-manager/src/services/schemas/TypesEntityInputSchemaResponse.js +4 -0
  44. package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +1 -1
  45. package/dist/integration-manager/src/services/schemas/TypesInfraProviderType.d.ts +1 -4
  46. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -0
  47. package/dist/integration-manager/src/services/schemas/TypesMappingConfig.d.ts +0 -2
  48. package/dist/integration-manager/src/services/schemas/TypesSampleEntity.d.ts +12 -0
  49. package/dist/integration-manager/src/services/schemas/TypesSampleEntity.js +4 -0
  50. package/dist/integration-manager/src/services/schemas/TypesWorkflowFieldMapping.d.ts +4 -0
  51. package/dist/integration-manager/src/services/schemas/TypesWorkflowFieldMapping.js +4 -0
  52. package/dist/integration-manager/src/services/schemas/TypesWorkflowMetadata.d.ts +9 -0
  53. package/dist/integration-manager/src/services/schemas/TypesWorkflowTarget.d.ts +4 -0
  54. package/dist/integration-manager/src/services/schemas/TypesWorkflowTarget.js +4 -0
  55. package/package.json +1 -1
  56. package/dist/integration-manager/src/services/hooks/useCreateAgentMutation.d.ts +0 -20
  57. package/dist/integration-manager/src/services/hooks/useCreateAgentMutation.js +0 -14
  58. package/dist/integration-manager/src/services/hooks/useDeleteAgentMutation.d.ts +0 -17
  59. package/dist/integration-manager/src/services/hooks/useDeleteAgentMutation.js +0 -14
  60. package/dist/integration-manager/src/services/hooks/useDownloadAgentYamlQuery.d.ts +0 -17
  61. package/dist/integration-manager/src/services/hooks/useDownloadAgentYamlQuery.js +0 -14
  62. package/dist/integration-manager/src/services/hooks/useGetAgentQuery.d.ts +0 -18
  63. package/dist/integration-manager/src/services/hooks/useGetAgentQuery.js +0 -14
  64. package/dist/integration-manager/src/services/hooks/useListAgentsQuery.d.ts +0 -17
  65. package/dist/integration-manager/src/services/hooks/useListAgentsQuery.js +0 -14
  66. package/dist/integration-manager/src/services/hooks/useUpdateAgentMutation.d.ts +0 -21
  67. package/dist/integration-manager/src/services/hooks/useUpdateAgentMutation.js +0 -14
  68. package/dist/integration-manager/src/services/schemas/OpenapiCreateAgentRequest.d.ts +0 -5
  69. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAgentRequest.d.ts +0 -6
  70. package/dist/integration-manager/src/services/schemas/TypesAgentStatus.d.ts +0 -1
  71. package/dist/integration-manager/src/services/schemas/TypesIntegrationAgent.d.ts +0 -11
  72. /package/dist/integration-manager/src/services/schemas/{OpenapiCreateAgentRequest.js → EntityGetCustomEntitiesFieldValuesResponse.js} +0 -0
  73. /package/dist/integration-manager/src/services/schemas/{OpenapiUpdateAgentRequest.js → IntegrationconfigMappingConfigInput.js} +0 -0
  74. /package/dist/integration-manager/src/services/schemas/{TypesAgentStatus.js → OpenapiGetCustomEntitiesFieldValuesOrgRequest.js} +0 -0
  75. /package/dist/integration-manager/src/services/schemas/{TypesIntegrationAgent.js → TypesWorkflowMetadata.js} +0 -0
@@ -1,7 +1,6 @@
1
1
  export { countIntegrationConfigsOrg, useCountIntegrationConfigsOrgQuery, } from './hooks/useCountIntegrationConfigsOrgQuery';
2
2
  export { countIntegrationConfigsProject, useCountIntegrationConfigsProjectQuery, } from './hooks/useCountIntegrationConfigsProjectQuery';
3
3
  export { countIntegrationConfigs, useCountIntegrationConfigsQuery, } from './hooks/useCountIntegrationConfigsQuery';
4
- export { createAgent, useCreateAgentMutation } from './hooks/useCreateAgentMutation';
5
4
  export { createAirbyteIntegrationConfig, useCreateAirbyteIntegrationConfigMutation, } from './hooks/useCreateAirbyteIntegrationConfigMutation';
6
5
  export { createAirbyteIntegrationConfigOrg, useCreateAirbyteIntegrationConfigOrgMutation, } from './hooks/useCreateAirbyteIntegrationConfigOrgMutation';
7
6
  export { createAirbyteIntegrationConfigProject, useCreateAirbyteIntegrationConfigProjectMutation, } from './hooks/useCreateAirbyteIntegrationConfigProjectMutation';
@@ -11,7 +10,6 @@ export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutati
11
10
  export { createMetricConfig, useCreateMetricConfigMutation, } from './hooks/useCreateMetricConfigMutation';
12
11
  export { createMetricConfigOrg, useCreateMetricConfigOrgMutation, } from './hooks/useCreateMetricConfigOrgMutation';
13
12
  export { createMetricConfigProject, useCreateMetricConfigProjectMutation, } from './hooks/useCreateMetricConfigProjectMutation';
14
- export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
15
13
  export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
16
14
  export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
17
15
  export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
@@ -21,13 +19,14 @@ export { deleteMetricConfigProject, useDeleteMetricConfigProjectMutation, } from
21
19
  export { deleteSetting, useDeleteSettingMutation } from './hooks/useDeleteSettingMutation';
22
20
  export { deleteSettingOrg, useDeleteSettingOrgMutation } from './hooks/useDeleteSettingOrgMutation';
23
21
  export { deleteSettingProject, useDeleteSettingProjectMutation, } from './hooks/useDeleteSettingProjectMutation';
24
- export { downloadAgentYaml, useDownloadAgentYamlQuery } from './hooks/useDownloadAgentYamlQuery';
25
22
  export { fetchAirbyteConnectorCatalog, useFetchAirbyteConnectorCatalogMutation, } from './hooks/useFetchAirbyteConnectorCatalogMutation';
26
- export { getAgent, useGetAgentQuery } from './hooks/useGetAgentQuery';
27
23
  export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from './hooks/useGetAirbyteConnectorCatalogQuery';
28
24
  export { getAirbyteIntegrationConfigOrg, useGetAirbyteIntegrationConfigOrgQuery, } from './hooks/useGetAirbyteIntegrationConfigOrgQuery';
29
25
  export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
30
26
  export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
27
+ export { getCustomEntitiesFieldValues, useGetCustomEntitiesFieldValuesMutation, } from './hooks/useGetCustomEntitiesFieldValuesMutation';
28
+ export { getCustomEntitiesFieldValuesOrg, useGetCustomEntitiesFieldValuesOrgMutation, } from './hooks/useGetCustomEntitiesFieldValuesOrgMutation';
29
+ export { getCustomEntitiesFieldValuesProject, useGetCustomEntitiesFieldValuesProjectMutation, } from './hooks/useGetCustomEntitiesFieldValuesProjectMutation';
31
30
  export { getCustomEntities, useGetCustomEntitiesMutation, } from './hooks/useGetCustomEntitiesMutation';
32
31
  export { getCustomEntitiesOrg, useGetCustomEntitiesOrgMutation, } from './hooks/useGetCustomEntitiesOrgMutation';
33
32
  export { getCustomEntitiesProject, useGetCustomEntitiesProjectMutation, } from './hooks/useGetCustomEntitiesProjectMutation';
@@ -37,6 +36,7 @@ export { getCustomEntitiesTypeProject, useGetCustomEntitiesTypeProjectMutation,
37
36
  export { getEntities, useGetEntitiesMutation } from './hooks/useGetEntitiesMutation';
38
37
  export { getEntitiesOrg, useGetEntitiesOrgMutation } from './hooks/useGetEntitiesOrgMutation';
39
38
  export { getEntitiesProject, useGetEntitiesProjectMutation, } from './hooks/useGetEntitiesProjectMutation';
39
+ export { getEntityInputSchema, useGetEntityInputSchemaQuery, } from './hooks/useGetEntityInputSchemaQuery';
40
40
  export { getHealth, useGetHealthQuery } from './hooks/useGetHealthQuery';
41
41
  export { getIntegrationConfigOrg, useGetIntegrationConfigOrgQuery, } from './hooks/useGetIntegrationConfigOrgQuery';
42
42
  export { getIntegrationConfigProject, useGetIntegrationConfigProjectQuery, } from './hooks/useGetIntegrationConfigProjectQuery';
@@ -47,7 +47,7 @@ export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricCo
47
47
  export { getMetricTimeseriesOrg, useGetMetricTimeseriesOrgQuery, } from './hooks/useGetMetricTimeseriesOrgQuery';
48
48
  export { getMetricTimeseriesProject, useGetMetricTimeseriesProjectQuery, } from './hooks/useGetMetricTimeseriesProjectQuery';
49
49
  export { getMetricTimeseries, useGetMetricTimeseriesQuery, } from './hooks/useGetMetricTimeseriesQuery';
50
- export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
50
+ export { getSampleRecords, useGetSampleRecordsQuery } from './hooks/useGetSampleRecordsQuery';
51
51
  export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
52
52
  export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
53
53
  export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
@@ -68,7 +68,6 @@ export { syncNowProject, useSyncNowProjectMutation } from './hooks/useSyncNowPro
68
68
  export { triggerSync, useTriggerSyncMutation } from './hooks/useTriggerSyncMutation';
69
69
  export { triggerSyncOrg, useTriggerSyncOrgMutation } from './hooks/useTriggerSyncOrgMutation';
70
70
  export { triggerSyncProject, useTriggerSyncProjectMutation, } from './hooks/useTriggerSyncProjectMutation';
71
- export { updateAgent, useUpdateAgentMutation } from './hooks/useUpdateAgentMutation';
72
71
  export { updateAirbyteIntegrationConfig, useUpdateAirbyteIntegrationConfigMutation, } from './hooks/useUpdateAirbyteIntegrationConfigMutation';
73
72
  export { updateAirbyteIntegrationConfigOrg, useUpdateAirbyteIntegrationConfigOrgMutation, } from './hooks/useUpdateAirbyteIntegrationConfigOrgMutation';
74
73
  export { updateAirbyteIntegrationConfigProject, useUpdateAirbyteIntegrationConfigProjectMutation, } from './hooks/useUpdateAirbyteIntegrationConfigProjectMutation';
@@ -0,0 +1,4 @@
1
+ export interface EntityGetCustomEntitiesFieldValuesResponse {
2
+ field_name?: string;
3
+ values?: string[] | null;
4
+ }
@@ -1 +1 @@
1
- export type EnumIntegrationEventType = 'entity_auto_import' | 'entity_deleted' | 'entity_ingested' | 'entity_manual_import' | 'entity_rejected' | 'entity_unlinked' | 'integration_created' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'metric_config_created' | 'metric_config_disabled' | 'metric_config_enabled' | 'metric_config_updated' | 'metric_entity_deleted' | 'metric_entity_ingested' | 'metric_entity_rejected' | 'sync_run';
1
+ export type EnumIntegrationEventType = 'entity_auto_import' | 'entity_deleted' | 'entity_ingested' | 'entity_manual_import' | 'entity_rejected' | 'entity_unlinked' | 'integration_created' | 'integration_deleted' | 'integration_disabled' | 'integration_enabled' | 'integration_updated' | 'metric_config_created' | 'metric_config_disabled' | 'metric_config_enabled' | 'metric_config_updated' | 'metric_entity_deleted' | 'metric_entity_ingested' | 'metric_entity_rejected' | 'sync_run';
@@ -0,0 +1,8 @@
1
+ import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping';
2
+ export interface IntegrationconfigMappingConfigInput {
3
+ correlation_mapping?: TypesCorrelationMapping;
4
+ display_name_field?: string;
5
+ idp_kind?: string;
6
+ idp_type?: string;
7
+ unique_identifier_field?: string;
8
+ }
@@ -2,7 +2,7 @@ import type { EnumAction } from '../schemas/EnumAction';
2
2
  import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
3
3
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
4
4
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
- import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
+ import type { IntegrationconfigMappingConfigInput } from '../schemas/IntegrationconfigMappingConfigInput';
6
6
  import type { EnumAirbyteSyncMode } from '../schemas/EnumAirbyteSyncMode';
7
7
  export interface OpenapiCreateAirbyteIntegrationConfigOrgRequest {
8
8
  action_per_kind?: {
@@ -22,7 +22,7 @@ export interface OpenapiCreateAirbyteIntegrationConfigOrgRequest {
22
22
  integration_type?: EnumIntegrationType;
23
23
  kinds?: string[] | null;
24
24
  mapping_config_per_kind?: {
25
- [key: string]: TypesMappingConfig;
25
+ [key: string]: IntegrationconfigMappingConfigInput;
26
26
  };
27
27
  name?: string;
28
28
  replication_mode_per_kind?: {
@@ -2,7 +2,7 @@ import type { EnumAction } from '../schemas/EnumAction';
2
2
  import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
3
3
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
4
4
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
- import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
+ import type { IntegrationconfigMappingConfigInput } from '../schemas/IntegrationconfigMappingConfigInput';
6
6
  import type { EnumAirbyteSyncMode } from '../schemas/EnumAirbyteSyncMode';
7
7
  export interface OpenapiCreateAirbyteIntegrationConfigProjectRequest {
8
8
  action_per_kind?: {
@@ -22,7 +22,7 @@ export interface OpenapiCreateAirbyteIntegrationConfigProjectRequest {
22
22
  integration_type?: EnumIntegrationType;
23
23
  kinds?: string[] | null;
24
24
  mapping_config_per_kind?: {
25
- [key: string]: TypesMappingConfig;
25
+ [key: string]: IntegrationconfigMappingConfigInput;
26
26
  };
27
27
  name?: string;
28
28
  replication_mode_per_kind?: {
@@ -2,7 +2,7 @@ import type { EnumAction } from '../schemas/EnumAction';
2
2
  import type { TypesAirbyteCatalogDiscovered } from '../schemas/TypesAirbyteCatalogDiscovered';
3
3
  import type { TypesFieldMapping } from '../schemas/TypesFieldMapping';
4
4
  import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
5
- import type { TypesMappingConfig } from '../schemas/TypesMappingConfig';
5
+ import type { IntegrationconfigMappingConfigInput } from '../schemas/IntegrationconfigMappingConfigInput';
6
6
  import type { EnumAirbyteSyncMode } from '../schemas/EnumAirbyteSyncMode';
7
7
  export interface OpenapiCreateAirbyteIntegrationConfigRequest {
8
8
  action_per_kind?: {
@@ -22,7 +22,7 @@ export interface OpenapiCreateAirbyteIntegrationConfigRequest {
22
22
  integration_type?: EnumIntegrationType;
23
23
  kinds?: string[] | null;
24
24
  mapping_config_per_kind?: {
25
- [key: string]: TypesMappingConfig;
25
+ [key: string]: IntegrationconfigMappingConfigInput;
26
26
  };
27
27
  name?: string;
28
28
  replication_mode_per_kind?: {
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigOrgRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigProjectRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -57,4 +57,8 @@ export interface OpenapiCreateIntegrationConfigRequest {
57
57
  schema_mapping_per_kind?: {
58
58
  [key: string]: TypesSchemaMapping;
59
59
  };
60
+ /**
61
+ * Optional source identifier for custom integrations.
62
+ */
63
+ source?: string | null;
60
64
  }
@@ -0,0 +1,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesOrgRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesProjectRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface OpenapiGetCustomEntitiesFieldValuesRequest {
2
+ field_name?: 'status' | 'type';
3
+ integration_id?: string;
4
+ kind?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigOrgRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigProjectRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -30,4 +30,5 @@ export interface OpenapiUpdateIntegrationConfigRequest {
30
30
  schema_mapping_per_kind?: {
31
31
  [key: string]: TypesSchemaMapping;
32
32
  };
33
+ source?: string | null;
33
34
  }
@@ -3,6 +3,7 @@ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
3
  import type { TypesDefaultKind } from '../schemas/TypesDefaultKind';
4
4
  import type { TypesDefaultEntityRelation } from '../schemas/TypesDefaultEntityRelation';
5
5
  import type { TypesScopeConfig } from '../schemas/TypesScopeConfig';
6
+ import type { TypesWorkflowMetadata } from '../schemas/TypesWorkflowMetadata';
6
7
  export interface TypesDefaultEntitySchema {
7
8
  configuration?: {
8
9
  [key: string]: any;
@@ -17,4 +18,5 @@ export interface TypesDefaultEntitySchema {
17
18
  relations?: TypesDefaultEntityRelation[];
18
19
  scope_config?: TypesScopeConfig;
19
20
  version?: string;
21
+ workflows?: TypesWorkflowMetadata[];
20
22
  }
@@ -0,0 +1,7 @@
1
+ export interface TypesEntityInputSchemaResponse {
2
+ kind?: string;
3
+ schema?: {
4
+ [key: string]: any;
5
+ } | null;
6
+ version?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -15,7 +15,7 @@ export interface TypesHarnessAirbyteConfig {
15
15
  gcp_harness_connector_ref?: string;
16
16
  gcp_org_id?: string;
17
17
  github_agent_file_name?: string;
18
- github_org?: string;
18
+ github_orgs?: string[];
19
19
  github_scm_connector_ref?: string;
20
20
  harness_bitbucket_cloud_connector_ref?: string;
21
21
  integration_type?: EnumIntegrationType;
@@ -1,4 +1 @@
1
- /**
2
- * @default "k8s"
3
- */
4
- export type TypesInfraProviderType = 'harness-cloud' | 'k8s';
1
+ export type TypesInfraProviderType = string;
@@ -31,6 +31,7 @@ export interface TypesIntegrationConfig {
31
31
  name?: string;
32
32
  next_sync?: number;
33
33
  secondary_kinds?: string[];
34
+ source?: string | null;
34
35
  space_path?: string;
35
36
  status?: string;
36
37
  sync?: TypesSyncState;
@@ -1,8 +1,6 @@
1
1
  import type { TypesCorrelationMapping } from '../schemas/TypesCorrelationMapping';
2
2
  export interface TypesMappingConfig {
3
3
  correlation_mapping?: TypesCorrelationMapping;
4
- display_name_field?: string;
5
4
  idp_kind?: string;
6
5
  idp_type?: string;
7
- unique_identifier_field?: string;
8
6
  }
@@ -0,0 +1,12 @@
1
+ export interface TypesSampleEntity {
2
+ identifier?: string;
3
+ integration_type?: string;
4
+ kind?: string;
5
+ metadata?: {
6
+ [key: string]: any;
7
+ } | null;
8
+ spec?: {
9
+ [key: string]: any;
10
+ } | null;
11
+ version?: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface TypesWorkflowFieldMapping {
2
+ entity_field_source?: string;
3
+ input?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { TypesWorkflowFieldMapping } from '../schemas/TypesWorkflowFieldMapping';
2
+ import type { TypesWorkflowTarget } from '../schemas/TypesWorkflowTarget';
3
+ export interface TypesWorkflowMetadata {
4
+ default_field_mappings?: TypesWorkflowFieldMapping[];
5
+ default_targets?: TypesWorkflowTarget[] | null;
6
+ description?: string;
7
+ identifier?: string;
8
+ name?: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface TypesWorkflowTarget {
2
+ entity_kind?: string;
3
+ entity_type?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,20 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { OpenapiCreateAgentRequest } from '../schemas/OpenapiCreateAgentRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface CreateAgentMutationPathParams {
8
- accountIdentifier: string;
9
- }
10
- export type CreateAgentRequestBody = OpenapiCreateAgentRequest;
11
- export type CreateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
12
- export type CreateAgentErrorResponse = ApierrorsErrorResponse;
13
- export interface CreateAgentProps extends CreateAgentMutationPathParams, Omit<FetcherOptions<unknown, CreateAgentRequestBody>, 'url'> {
14
- body: CreateAgentRequestBody;
15
- }
16
- export declare function createAgent(props: CreateAgentProps): Promise<CreateAgentOkResponse>;
17
- /**
18
- * Create a new integration agent with the specified configuration. Agent names must be unique within the space path scope.
19
- */
20
- export declare function useCreateAgentMutation(options?: Omit<UseMutationOptions<CreateAgentOkResponse, CreateAgentErrorResponse, CreateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAgentOkResponse, ApierrorsErrorResponse, CreateAgentProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function createAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Create a new integration agent with the specified configuration. Agent names must be unique within the space path scope.
11
- */
12
- export function useCreateAgentMutation(options) {
13
- return useMutation((mutateProps) => createAgent(mutateProps), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface DeleteAgentMutationPathParams {
6
- accountIdentifier: string;
7
- agent_name: string;
8
- }
9
- export type DeleteAgentOkResponse = ResponseWithPagination<unknown>;
10
- export type DeleteAgentErrorResponse = ApierrorsErrorResponse;
11
- export interface DeleteAgentProps extends DeleteAgentMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function deleteAgent(props: DeleteAgentProps): Promise<DeleteAgentOkResponse>;
14
- /**
15
- * Delete an integration agent by its name.
16
- */
17
- export declare function useDeleteAgentMutation(options?: Omit<UseMutationOptions<DeleteAgentOkResponse, DeleteAgentErrorResponse, DeleteAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteAgentOkResponse, ApierrorsErrorResponse, DeleteAgentProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete an integration agent by its name.
11
- */
12
- export function useDeleteAgentMutation(options) {
13
- return useMutation((mutateProps) => deleteAgent(mutateProps), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface DownloadAgentYamlQueryPathParams {
6
- accountIdentifier: string;
7
- agent_name: string;
8
- }
9
- export type DownloadAgentYamlOkResponse = ResponseWithPagination<unknown>;
10
- export type DownloadAgentYamlErrorResponse = ApierrorsErrorResponse;
11
- export interface DownloadAgentYamlProps extends DownloadAgentYamlQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function downloadAgentYaml(props: DownloadAgentYamlProps): Promise<DownloadAgentYamlOkResponse>;
14
- /**
15
- * Download the Kubernetes manifest YAML file for deploying the agent. The YAML contains all necessary resources (Namespace, ServiceAccount, Role, RoleBinding, ConfigMap, Deployment, Service, HPA) with the agent name and namespace pre-configured.
16
- */
17
- export declare function useDownloadAgentYamlQuery(props: DownloadAgentYamlProps, options?: Omit<UseQueryOptions<DownloadAgentYamlOkResponse, DownloadAgentYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadAgentYamlOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function downloadAgentYaml(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}/yaml`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Download the Kubernetes manifest YAML file for deploying the agent. The YAML contains all necessary resources (Namespace, ServiceAccount, Role, RoleBinding, ConfigMap, Deployment, Service, HPA) with the agent name and namespace pre-configured.
11
- */
12
- export function useDownloadAgentYamlQuery(props, options) {
13
- return useQuery(['downloadAgentYAML', props.accountIdentifier, props.agent_name], ({ signal }) => downloadAgentYaml(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,18 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetAgentQueryPathParams {
7
- accountIdentifier: string;
8
- agent_name: string;
9
- }
10
- export type GetAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
11
- export type GetAgentErrorResponse = ApierrorsErrorResponse;
12
- export interface GetAgentProps extends GetAgentQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
- }
14
- export declare function getAgent(props: GetAgentProps): Promise<GetAgentOkResponse>;
15
- /**
16
- * Get an integration agent by its name.
17
- */
18
- export declare function useGetAgentQuery(props: GetAgentProps, options?: Omit<UseQueryOptions<GetAgentOkResponse, GetAgentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAgentOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get an integration agent by its name.
11
- */
12
- export function useGetAgentQuery(props, options) {
13
- return useQuery(['getAgent', props.accountIdentifier, props.agent_name], ({ signal }) => getAgent(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,17 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface ListAgentsQueryPathParams {
7
- accountIdentifier: string;
8
- }
9
- export type ListAgentsOkResponse = ResponseWithPagination<TypesIntegrationAgent[]>;
10
- export type ListAgentsErrorResponse = ApierrorsErrorResponse;
11
- export interface ListAgentsProps extends ListAgentsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
- }
13
- export declare function listAgents(props: ListAgentsProps): Promise<ListAgentsOkResponse>;
14
- /**
15
- * List all integration agents in the current space path scope.
16
- */
17
- export declare function useListAgentsQuery(props: ListAgentsProps, options?: Omit<UseQueryOptions<ListAgentsOkResponse, ListAgentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAgentsOkResponse, ApierrorsErrorResponse>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function listAgents(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents`, method: 'GET' }, props));
8
- }
9
- /**
10
- * List all integration agents in the current space path scope.
11
- */
12
- export function useListAgentsQuery(props, options) {
13
- return useQuery(['listAgents', props.accountIdentifier], ({ signal }) => listAgents(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,21 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesIntegrationAgent } from '../schemas/TypesIntegrationAgent';
3
- import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
- import type { OpenapiUpdateAgentRequest } from '../schemas/OpenapiUpdateAgentRequest';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface UpdateAgentMutationPathParams {
8
- accountIdentifier: string;
9
- agent_name: string;
10
- }
11
- export type UpdateAgentRequestBody = OpenapiUpdateAgentRequest;
12
- export type UpdateAgentOkResponse = ResponseWithPagination<TypesIntegrationAgent>;
13
- export type UpdateAgentErrorResponse = ApierrorsErrorResponse;
14
- export interface UpdateAgentProps extends UpdateAgentMutationPathParams, Omit<FetcherOptions<unknown, UpdateAgentRequestBody>, 'url'> {
15
- body: UpdateAgentRequestBody;
16
- }
17
- export declare function updateAgent(props: UpdateAgentProps): Promise<UpdateAgentOkResponse>;
18
- /**
19
- * Update an existing integration agent. Only the fields provided in the request body will be updated.
20
- */
21
- export declare function useUpdateAgentMutation(options?: Omit<UseMutationOptions<UpdateAgentOkResponse, UpdateAgentErrorResponse, UpdateAgentProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAgentOkResponse, ApierrorsErrorResponse, UpdateAgentProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function updateAgent(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/agents/${props.agent_name}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Update an existing integration agent. Only the fields provided in the request body will be updated.
11
- */
12
- export function useUpdateAgentMutation(options) {
13
- return useMutation((mutateProps) => updateAgent(mutateProps), options);
14
- }
@@ -1,5 +0,0 @@
1
- export interface OpenapiCreateAgentRequest {
2
- k8s_connector_ref?: string;
3
- name?: string;
4
- namespace?: string;
5
- }
@@ -1,6 +0,0 @@
1
- import type { TypesAgentStatus } from '../schemas/TypesAgentStatus';
2
- export interface OpenapiUpdateAgentRequest {
3
- k8s_connector_ref?: string | null;
4
- namespace?: string | null;
5
- status?: TypesAgentStatus;
6
- }
@@ -1 +0,0 @@
1
- export type TypesAgentStatus = string | null;
@@ -1,11 +0,0 @@
1
- import type { TypesAgentStatus } from '../schemas/TypesAgentStatus';
2
- export interface TypesIntegrationAgent {
3
- created?: number;
4
- k8s_connector_ref?: string;
5
- last_heartbeat_at?: number | null;
6
- last_updated?: number;
7
- name?: string;
8
- namespace?: string;
9
- space_path?: string;
10
- status?: TypesAgentStatus;
11
- }