🚀New lib version v0.5.0 [CI SKIP]
This commit is contained in:
parent
dbbd5b27da
commit
c11b709e0b
|
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.OpenAPI = void 0;
|
||||
exports.OpenAPI = {
|
||||
BASE: '',
|
||||
VERSION: '0.4.6',
|
||||
VERSION: '0.5.0',
|
||||
WITH_CREDENTIALS: false,
|
||||
TOKEN: undefined,
|
||||
USERNAME: undefined,
|
||||
|
|
|
@ -50,7 +50,7 @@ export type { InvalidCredentialsError } from './models/InvalidCredentialsError';
|
|||
export type { JwtNotProvidedError } from './models/JwtNotProvidedError';
|
||||
export type { JwtUser } from './models/JwtUser';
|
||||
export type { Logout } from './models/Logout';
|
||||
export type { MailServerConfigError } from './models/MailServerConfigError';
|
||||
export type { MailSendingError } from './models/MailSendingError';
|
||||
export type { NoPermissionError } from './models/NoPermissionError';
|
||||
export type { Participant } from './models/Participant';
|
||||
export type { PasswordNeededError } from './models/PasswordNeededError';
|
||||
|
@ -84,6 +84,7 @@ export type { ResponseScanStation } from './models/ResponseScanStation';
|
|||
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
|
||||
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
|
||||
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
|
||||
export type { ResponseSelfServiceScan } from './models/ResponseSelfServiceScan';
|
||||
export type { ResponseSelfServiceTeam } from './models/ResponseSelfServiceTeam';
|
||||
export type { ResponseStats } from './models/ResponseStats';
|
||||
export type { ResponseStatsClient } from './models/ResponseStatsClient';
|
||||
|
@ -171,7 +172,6 @@ export { DonationService } from './services/DonationService';
|
|||
export { DonorService } from './services/DonorService';
|
||||
export { GroupContactService } from './services/GroupContactService';
|
||||
export { ImportService } from './services/ImportService';
|
||||
export { MailService } from './services/MailService';
|
||||
export { MeService } from './services/MeService';
|
||||
export { PermissionService } from './services/PermissionService';
|
||||
export { RunnerCardService } from './services/RunnerCardService';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.ScanStationService = exports.ScanService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerSelfService = exports.RunnerOrganizationService = exports.RunnerCardService = exports.PermissionService = exports.MeService = exports.MailService = exports.ImportService = exports.GroupContactService = exports.DonorService = exports.DonationService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
exports.UserService = exports.UserGroupService = exports.TrackService = exports.StatusService = exports.StatsService = exports.StatsClientService = exports.ScanStationService = exports.ScanService = exports.RunnerTeamService = exports.RunnerService = exports.RunnerSelfService = exports.RunnerOrganizationService = exports.RunnerCardService = exports.PermissionService = exports.MeService = exports.ImportService = exports.GroupContactService = exports.DonorService = exports.DonationService = exports.AuthService = exports.UserAction = exports.ResponsePermission = exports.Permission = exports.CreatePermission = exports.OpenAPI = exports.ApiError = void 0;
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
@ -26,8 +26,6 @@ var GroupContactService_1 = require("./services/GroupContactService");
|
|||
Object.defineProperty(exports, "GroupContactService", { enumerable: true, get: function () { return GroupContactService_1.GroupContactService; } });
|
||||
var ImportService_1 = require("./services/ImportService");
|
||||
Object.defineProperty(exports, "ImportService", { enumerable: true, get: function () { return ImportService_1.ImportService; } });
|
||||
var MailService_1 = require("./services/MailService");
|
||||
Object.defineProperty(exports, "MailService", { enumerable: true, get: function () { return MailService_1.MailService; } });
|
||||
var MeService_1 = require("./services/MeService");
|
||||
Object.defineProperty(exports, "MeService", { enumerable: true, get: function () { return MeService_1.MeService; } });
|
||||
var PermissionService_1 = require("./services/PermissionService");
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export declare type MailSendingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -1,4 +0,0 @@
|
|||
export declare type MailServerConfigError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
|
@ -0,0 +1,6 @@
|
|||
export declare type ResponseSelfServiceScan = {
|
||||
id: number;
|
||||
valid: boolean;
|
||||
distance: number;
|
||||
lapTime: number;
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@ -3,6 +3,7 @@ export declare type ResponseTrackScan = {
|
|||
card: string;
|
||||
station: string;
|
||||
timestamp: string;
|
||||
lapTime: number;
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
|
|
|
@ -4,6 +4,7 @@ export declare type TrackScan = {
|
|||
station: string;
|
||||
distance: number;
|
||||
timestamp: number;
|
||||
lapTime: number;
|
||||
id: number;
|
||||
runner: string;
|
||||
valid: boolean;
|
||||
|
|
|
@ -45,11 +45,12 @@ export declare class AuthService {
|
|||
/**
|
||||
* Get reset token
|
||||
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
|
||||
* @param locale
|
||||
* @param requestBody CreateResetToken
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static authControllerGetResetToken(requestBody?: CreateResetToken): Promise<ResponseEmpty>;
|
||||
static authControllerGetResetToken(locale?: string, requestBody?: CreateResetToken): Promise<ResponseEmpty>;
|
||||
/**
|
||||
* Reset password
|
||||
* Reset a user's utilising a valid password reset token. <br> This will set the user's password to the one you provided in the body. <br> To get a reset token post to /api/auth/reset with your username.
|
||||
|
|
|
@ -55,14 +55,18 @@ class AuthService {
|
|||
/**
|
||||
* Get reset token
|
||||
* Request a password reset token. <br> This will provide you with a reset token that you can use by posting to /api/auth/reset/{token}.
|
||||
* @param locale
|
||||
* @param requestBody CreateResetToken
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async authControllerGetResetToken(requestBody) {
|
||||
static async authControllerGetResetToken(locale, requestBody) {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/auth/reset`,
|
||||
query: {
|
||||
'locale': locale,
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
export declare class MailService {
|
||||
/**
|
||||
* Get
|
||||
* Sends a test email to the configured from-address.
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static mailControllerGet(): Promise<ResponseEmpty>;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MailService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class MailService {
|
||||
/**
|
||||
* Get
|
||||
* Sends a test email to the configured from-address.
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async mailControllerGet() {
|
||||
const result = await request_1.request({
|
||||
method: 'POST',
|
||||
path: `/api/mails/test`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.MailService = MailService;
|
|
@ -2,6 +2,7 @@ import type { CreateSelfServiceCitizenRunner } from '../models/CreateSelfService
|
|||
import type { CreateSelfServiceRunner } from '../models/CreateSelfServiceRunner';
|
||||
import type { ResponseSelfServiceOrganisation } from '../models/ResponseSelfServiceOrganisation';
|
||||
import type { ResponseSelfServiceRunner } from '../models/ResponseSelfServiceRunner';
|
||||
import type { ResponseSelfServiceScan } from '../models/ResponseSelfServiceScan';
|
||||
export declare class RunnerSelfService {
|
||||
/**
|
||||
* Get
|
||||
|
@ -11,6 +12,14 @@ export declare class RunnerSelfService {
|
|||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGet(jwt: string): Promise<ResponseSelfServiceRunner>;
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static runnerSelfServiceControllerGetScans(jwt: string): Promise<Array<ResponseSelfServiceScan>>;
|
||||
/**
|
||||
* Register runner
|
||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||
|
|
|
@ -17,6 +17,20 @@ class RunnerSelfService {
|
|||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get scans
|
||||
* Lists all your (runner) scans. <br> Please provide your runner jwt(that code we gave you during registration) for auth. <br> If you lost your jwt/personalized link please contact support.
|
||||
* @param jwt
|
||||
* @returns ResponseSelfServiceScan
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async runnerSelfServiceControllerGetScans(jwt) {
|
||||
const result = await request_1.request({
|
||||
method: 'GET',
|
||||
path: `/api/runners/me/${jwt}/scans`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Register runner
|
||||
* Create a new selfservice runner in the citizen org. <br> This endpoint shoud be used to allow "everyday citizen" to register themselves. <br> You have to provide a mail address, b/c the future we'll implement email verification.
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@odit/lfk-client-node",
|
||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for NodeJS applications.",
|
||||
"version": "0.4.6",
|
||||
"version": "0.5.0",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
|
Reference in New Issue