}
}
- private validateUuid(uuid: string) {
+ protected validateUuid(uuid: string) {
if (uuid === "") {
throw new Error('UUID cannot be empty string');
}
);
}
- list(args: ListArguments = {}): Promise<ListResults<T>> {
+ list(args: ListArguments = {}, showErrors?: boolean): Promise<ListResults<T>> {
const { filters, order, ...other } = args;
const params = {
...CommonService.mapKeys(snakeCase)(other),
if (QueryString.stringify(params).length <= 1500) {
return CommonService.defaultResponse(
this.serverApi.get(`/${this.resourceType}`, { params }),
- this.actions
+ this.actions,
+ showErrors
);
} else {
// Using the POST special case to avoid URI length 414 errors.
_method: 'GET'
}
}),
- this.actions
+ this.actions,
+ showErrors
);
}
}