Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(useractionhistory): remove deprecated code #906

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,6 @@ export enum ModelTypes {
ECommerce = 'ecommerce',
CaseClassification = 'caseclassification',
SmartSnippets = 'mlquestionanswering',
UserActionHistory = 'useractionhistory',
IntentAwareProductRanking = 'intentranking',
RelevanceGenerativeAnswering = 'genqa',
SemanticEncoder = 'embeddings',
Expand Down
3 changes: 0 additions & 3 deletions src/resources/MachineLearning/MachineLearning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
import RelevanceGenerativeAnsweringConfiguration from './RGAConfiguration/RelevanceGenerativeAnsweringConfiguration.js';
import SemanticEncoderConfiguration from './SemanticEncoderConfiguration/SemanticEncoderConfiguration.js';
import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';

export default class MachineLearning extends Resource {
static baseUrl = `/rest/organizations/${API.orgPlaceholder}/machinelearning`;
Expand All @@ -21,7 +20,6 @@ export default class MachineLearning extends Resource {
dneConfig: DNEConfiguration;
caseClassificationConfig: CaseClassificationConfiguration;
smartSnippetsConfig: SmartSnippetsConfiguration;
userActionHistoryConfig: UserActionHistoryConfiguration;
pqsConfig: PQSConfiguration;
iaprConfig: IAPRConfiguration;
modelListing: ModelListing;
Expand All @@ -42,7 +40,6 @@ export default class MachineLearning extends Resource {
this.smartSnippetsConfig = new SmartSnippetsConfiguration(api, serverlessApi);
this.pqsConfig = new PQSConfiguration(api, serverlessApi);
this.iaprConfig = new IAPRConfiguration(api, serverlessApi);
this.userActionHistoryConfig = new UserActionHistoryConfiguration(api, serverlessApi);
this.modelListing = new ModelListing(api, serverlessApi);
this.relevanceGenerativeAnsweringConfig = new RelevanceGenerativeAnsweringConfiguration(api, serverlessApi);
this.semanticEncoderConfig = new SemanticEncoderConfiguration(api, serverlessApi);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/resources/MachineLearning/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ export * from './PQSConfiguration/index.js';
export * from './RGAConfiguration/index.js';
export * from './SemanticEncoderConfiguration/index.js';
export * from './SmartSnippetsConfiguration/index.js';
export * from './UserActionHistoryConfiguration/index.js';
6 changes: 0 additions & 6 deletions src/resources/MachineLearning/tests/MachineLearning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import ModelDetailedInfo from '../ModelDetailedInfo/ModelDetailedInfo.js';
import Models from '../Models/Models.js';
import PQSConfiguration from '../PQSConfiguration/PQSConfiguration.js';
import SmartSnippetsConfiguration from '../SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
import UserActionHistoryConfiguration from '../UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';

jest.mock('../../../APICore.js');

Expand Down Expand Up @@ -59,11 +58,6 @@ describe('MachineLearning', () => {
expect(ml.pqsConfig).toBeInstanceOf(PQSConfiguration);
});

it('should register the userActionHistory resource', () => {
expect(ml.userActionHistoryConfig).toBeDefined();
expect(ml.userActionHistoryConfig).toBeInstanceOf(UserActionHistoryConfiguration);
});

it('should register the iaprConfig resource', () => {
expect(ml.iaprConfig).toBeDefined();
expect(ml.iaprConfig).toBeInstanceOf(IAPRConfiguration);
Expand Down
Loading