Skip to content

Commit

Permalink
Revert "correctly name types and update class methods"
Browse files Browse the repository at this point in the history
This reverts commit 1314d9532f11bcd4544f2dd85ecfefb9066ae829.
  • Loading branch information
ashokaditya committed Dec 22, 2022
1 parent 2140128 commit 4f0ac7a
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class EndpointFleetServicesFactory implements EndpointFleetServicesFactor
packages: packageService.asScoped(req),
packagePolicy,

asScoped: this.asScoped.bind(this),
asInternal: this.asInternalUser.bind(this),
};
}

Expand All @@ -66,7 +66,7 @@ export class EndpointFleetServicesFactory implements EndpointFleetServicesFactor
packages: packageService.asInternalUser,
packagePolicy,

asInternal: this.asInternalUser.bind(this),
asScoped: this.asScoped.bind(this),
internalReadonlySoClient: createInternalReadonlySoClient(this.savedObjectsStart),
};
}
Expand All @@ -82,20 +82,21 @@ export interface EndpointFleetServicesInterface {
packagePolicy: PackagePolicyClient;
}

export interface EndpointInternalFleetServicesInterface extends EndpointFleetServicesInterface {
export interface EndpointScopedFleetServicesInterface extends EndpointFleetServicesInterface {
/**
* get internal fleet services instance
*/
asInternal: EndpointFleetServicesFactoryInterface['asInternalUser'];
/**
* An internal SO client (readonly) that can be used with the Fleet services that require it
*/
internalReadonlySoClient: SavedObjectsClientContract;
}

export interface EndpointScopedFleetServicesInterface extends EndpointFleetServicesInterface {
export interface EndpointInternalFleetServicesInterface extends EndpointFleetServicesInterface {
/**
* get scoped endpoint fleet services instance
*/
asScoped: EndpointFleetServicesFactoryInterface['asScoped'];

/**
* An internal SO client (readonly) that can be used with the Fleet services that require it
*/
internalReadonlySoClient: SavedObjectsClientContract;
}

0 comments on commit 4f0ac7a

Please sign in to comment.