{"size": 437, "ext": "js", "max_stars_repo_path": "src/webstore/services.js", "max_stars_repo_name": "rodriperez/client", "max_stars_repo_stars_event_min_datetime": "2016-10-29T08:44:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-20T06:35:09.000Z", "max_issues_repo_path": "src/webstore/services.js", "max_issues_repo_name": "rodriperez/client", "max_issues_repo_issues_event_min_datetime": "2019-02-20T17:43:07.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-06T07:29:30.000Z", "max_forks_repo_path": "src/webstore/services.js", "max_forks_repo_name": "rodriperez/client", "max_forks_repo_forks_event_min_datetime": "2019-02-20T19:50:05.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-13T13:47:45.000Z"}
{"max_stars_count": 23, "max_issues_count": 21, "max_forks_count": 37, "avg_line_length": 19.0, "max_line_length": 63, "alphanum_fraction": 0.6636155606}
export default class WebStoreServices {
	constructor(client) {
		this.client = client;
		this.resourceUrl = '/services';
	}

	list(filter) {
		return this.client.get(this.resourceUrl, filter);
	}

	retrieve(id) {
		return this.client.get(`${this.resourceUrl}/${id}`);
	}

	enable(id) {
		return this.client.post(`${this.resourceUrl}/${id}/enable`);
	}

	disable(id) {
		return this.client.post(`${this.resourceUrl}/${id}/disable`);
	}
}
