mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
22 lines
556 B
TypeScript
22 lines
556 B
TypeScript
import { request } from '~/composables/services/request';
|
|
|
|
const KeyServer = request.url('https://keys.lime-technology.com');
|
|
|
|
export interface StartTrialPayload {
|
|
guid: string;
|
|
timestamp: number; // timestamp in seconds
|
|
}
|
|
export interface StartTrialResponse {
|
|
license?: string;
|
|
trial?: string
|
|
};
|
|
export const startTrial = (payload: StartTrialPayload) => KeyServer
|
|
.url('/account/trial')
|
|
.formUrl(payload)
|
|
.post();
|
|
|
|
export const validateGuid = (payload: { guid: string }) => KeyServer
|
|
.url('/validate/guid')
|
|
.formUrl(payload)
|
|
.post();
|