mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-24 09:35:42 +00:00
2b79788fbe
* basic currency service for loading at runtime
* api endpoint for currencies
* sort slice before return
* remove currency validation
* validate using currency service
* implement selecting dynamic currency options
* bump go version
* fix type definition
* specify explicit type
* change go versions
* proper types for assetId
* log/return currency error
* make case insensative
* use ToUpper instead
* feat: adding new currencies (#715)
* fix: task swag (#710)
Co-authored-by: Quoing <pavel.cadersky@mavenir.com>
* [feat] Adding new currencies
---------
Co-authored-by: quoing <quoing@users.noreply.github.com>
Co-authored-by: Quoing <pavel.cadersky@mavenir.com>
Co-authored-by: Bradley <41597815+userbradley@users.noreply.github.com>
* remove ts file and consoldate new values into json
* move flag to options namespace
* add env config for currencies
* basic documentaion
* remove in sync test
---------
Co-authored-by: quoing <quoing@users.noreply.github.com>
Co-authored-by: Quoing <pavel.cadersky@mavenir.com>
Co-authored-by: Bradley <41597815+userbradley@users.noreply.github.com>
Former-commit-id: c4b923847a
36 lines
742 B
TypeScript
36 lines
742 B
TypeScript
import { BaseAPI, route } from "../base";
|
|
import {
|
|
CurrenciesCurrency,
|
|
Group,
|
|
GroupInvitation,
|
|
GroupInvitationCreate,
|
|
GroupUpdate,
|
|
} from "../types/data-contracts";
|
|
|
|
export class GroupApi extends BaseAPI {
|
|
createInvitation(data: GroupInvitationCreate) {
|
|
return this.http.post<GroupInvitationCreate, GroupInvitation>({
|
|
url: route("/groups/invitations"),
|
|
body: data,
|
|
});
|
|
}
|
|
|
|
update(data: GroupUpdate) {
|
|
return this.http.put<GroupUpdate, Group>({
|
|
url: route("/groups"),
|
|
body: data,
|
|
});
|
|
}
|
|
|
|
get() {
|
|
return this.http.get<Group>({
|
|
url: route("/groups"),
|
|
});
|
|
}
|
|
|
|
currencies() {
|
|
return this.http.get<CurrenciesCurrency[]>({
|
|
url: route("/currencies"),
|
|
});
|
|
}
|
|
}
|