diff --git a/src/resources/Sources/Sources.ts b/src/resources/Sources/Sources.ts index 851fb2c80..9f078f666 100644 --- a/src/resources/Sources/Sources.ts +++ b/src/resources/Sources/Sources.ts @@ -4,6 +4,7 @@ import {ActivityOperation} from '../Enums.js'; import Resource from '../Resource.js'; import {ScheduleModel} from '../SecurityCache/index.js'; import SourcesDatasets from './SourcesDatasets/SourcesDatasets.js'; +import SourcesFeedback from './SourcesFeedback/SourcesFeedback.js'; import SourcesFields from './SourcesFields/SourcesFields.js'; import { CreateSourceModel, @@ -24,6 +25,7 @@ export default class Sources extends Resource { mappings: SourcesMappings; datasets: SourcesDatasets; metadata: SourcesMetadata; + feedback: SourcesFeedback; constructor( protected api: API, @@ -35,6 +37,7 @@ export default class Sources extends Resource { this.mappings = new SourcesMappings(api, serverlessApi); this.datasets = new SourcesDatasets(api, serverlessApi); this.metadata = new SourcesMetadata(api, serverlessApi); + this.feedback = new SourcesFeedback(api, serverlessApi); } create(source: New, options?: CreateSourceOptions) { diff --git a/src/resources/Sources/tests/Sources.spec.ts b/src/resources/Sources/tests/Sources.spec.ts index 7d12d37d9..16ecdc627 100644 --- a/src/resources/Sources/tests/Sources.spec.ts +++ b/src/resources/Sources/tests/Sources.spec.ts @@ -3,9 +3,12 @@ import {New} from '../../BaseInterfaces.js'; import {ActivityOperation} from '../../Enums.js'; import {ScheduleModel} from '../../SecurityCache/index.js'; import Sources from '../Sources.js'; +import SourcesDatasets from '../SourcesDatasets/SourcesDatasets.js'; +import SourcesFeedback from '../SourcesFeedback/SourcesFeedback.js'; import SourcesFields from '../SourcesFields/SourcesFields.js'; import {CreateSourceModel, ListSourcesParams, RawSourceConfig} from '../SourcesInterfaces.js'; import SourcesMappings from '../SourcesMappings/SourcesMappings.js'; +import SourcesMetadata from '../SourcesMetadata/SourcesMetadata.js'; jest.mock('../../../APICore.js'); @@ -360,5 +363,17 @@ describe('Sources', () => { it('should have a mappings client', () => { expect(source.mappings).toBeInstanceOf(SourcesMappings); }); + + it('should have a datasets client', () => { + expect(source.datasets).toBeInstanceOf(SourcesDatasets); + }); + + it('should have a metadata client', () => { + expect(source.metadata).toBeInstanceOf(SourcesMetadata); + }); + + it('should have a feedback client', () => { + expect(source.feedback).toBeInstanceOf(SourcesFeedback); + }); }); });