🚀New lib version v0.10.1 [CI SKIP]
Some checks reported errors
continuous-integration/drone Build was killed
Some checks reported errors
continuous-integration/drone Build was killed
This commit is contained in:
parent
80cd8469a0
commit
c36921c1fb
2
dist/core/OpenAPI.js
vendored
2
dist/core/OpenAPI.js
vendored
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||||||
exports.OpenAPI = void 0;
|
exports.OpenAPI = void 0;
|
||||||
exports.OpenAPI = {
|
exports.OpenAPI = {
|
||||||
BASE: '',
|
BASE: '',
|
||||||
VERSION: '0.9.2',
|
VERSION: '0.10.1',
|
||||||
WITH_CREDENTIALS: false,
|
WITH_CREDENTIALS: false,
|
||||||
TOKEN: undefined,
|
TOKEN: undefined,
|
||||||
USERNAME: undefined,
|
USERNAME: undefined,
|
||||||
|
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@ -86,6 +86,7 @@ export type { ResponseRunnerTeam } from './models/ResponseRunnerTeam';
|
|||||||
export type { ResponseScan } from './models/ResponseScan';
|
export type { ResponseScan } from './models/ResponseScan';
|
||||||
export type { ResponseScanStation } from './models/ResponseScanStation';
|
export type { ResponseScanStation } from './models/ResponseScanStation';
|
||||||
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
|
export type { ResponseSelfServiceDonation } from './models/ResponseSelfServiceDonation';
|
||||||
|
export type { ResponseSelfServiceDonor } from './models/ResponseSelfServiceDonor';
|
||||||
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
|
export type { ResponseSelfServiceOrganisation } from './models/ResponseSelfServiceOrganisation';
|
||||||
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
|
export type { ResponseSelfServiceRunner } from './models/ResponseSelfServiceRunner';
|
||||||
export type { ResponseSelfServiceScan } from './models/ResponseSelfServiceScan';
|
export type { ResponseSelfServiceScan } from './models/ResponseSelfServiceScan';
|
||||||
|
6
dist/models/ResponseSelfServiceDonor.d.ts
vendored
Normal file
6
dist/models/ResponseSelfServiceDonor.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export declare type ResponseSelfServiceDonor = {
|
||||||
|
id: number;
|
||||||
|
firstname: string;
|
||||||
|
middlename: string;
|
||||||
|
lastname: string;
|
||||||
|
};
|
5
dist/models/ResponseSelfServiceDonor.js
vendored
Normal file
5
dist/models/ResponseSelfServiceDonor.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
"use strict";
|
||||||
|
/* istanbul ignore file */
|
||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2
dist/models/ResponseSelfServiceRunner.d.ts
vendored
2
dist/models/ResponseSelfServiceRunner.d.ts
vendored
@ -2,7 +2,7 @@ export declare type ResponseSelfServiceRunner = {
|
|||||||
distance: number;
|
distance: number;
|
||||||
donationAmount: number;
|
donationAmount: number;
|
||||||
group: string;
|
group: string;
|
||||||
donations: string;
|
distanceDonations: string;
|
||||||
token?: string;
|
token?: string;
|
||||||
id: number;
|
id: number;
|
||||||
firstname: string;
|
firstname: string;
|
||||||
|
9
dist/services/RunnerSelfService.d.ts
vendored
9
dist/services/RunnerSelfService.d.ts
vendored
@ -41,27 +41,30 @@ export declare class RunnerSelfService {
|
|||||||
* Request new token
|
* Request new token
|
||||||
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||||
* @param mail
|
* @param mail
|
||||||
|
* @param locale
|
||||||
* @returns any Successful response
|
* @returns any Successful response
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static runnerSelfServiceControllerRequestNewToken(mail?: string): Promise<any>;
|
static runnerSelfServiceControllerRequestNewToken(mail?: string, locale?: string): Promise<any>;
|
||||||
/**
|
/**
|
||||||
* Register runner
|
* 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.
|
* 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.
|
||||||
|
* @param locale
|
||||||
* @param requestBody CreateSelfServiceCitizenRunner
|
* @param requestBody CreateSelfServiceCitizenRunner
|
||||||
* @returns ResponseSelfServiceRunner
|
* @returns ResponseSelfServiceRunner
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static runnerSelfServiceControllerRegisterRunner(requestBody?: CreateSelfServiceCitizenRunner): Promise<ResponseSelfServiceRunner>;
|
static runnerSelfServiceControllerRegisterRunner(locale?: string, requestBody?: CreateSelfServiceCitizenRunner): Promise<ResponseSelfServiceRunner>;
|
||||||
/**
|
/**
|
||||||
* Register organization runner
|
* Register organization runner
|
||||||
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
||||||
* @param token
|
* @param token
|
||||||
|
* @param locale
|
||||||
* @param requestBody CreateSelfServiceRunner
|
* @param requestBody CreateSelfServiceRunner
|
||||||
* @returns ResponseSelfServiceRunner
|
* @returns ResponseSelfServiceRunner
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
|
static runnerSelfServiceControllerRegisterOrganizationRunner(token: string, locale?: string, requestBody?: CreateSelfServiceRunner): Promise<ResponseSelfServiceRunner>;
|
||||||
/**
|
/**
|
||||||
* Get selfservice org
|
* Get selfservice org
|
||||||
* Get the basic info and teams for a org.
|
* Get the basic info and teams for a org.
|
||||||
|
16
dist/services/RunnerSelfService.js
vendored
16
dist/services/RunnerSelfService.js
vendored
@ -66,15 +66,17 @@ class RunnerSelfService {
|
|||||||
* Request new token
|
* Request new token
|
||||||
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
* Use this endpoint to reuqest a new selfservice token/link to be sent to your mail address (rate limited to one mail every 24hrs).
|
||||||
* @param mail
|
* @param mail
|
||||||
|
* @param locale
|
||||||
* @returns any Successful response
|
* @returns any Successful response
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static async runnerSelfServiceControllerRequestNewToken(mail) {
|
static async runnerSelfServiceControllerRequestNewToken(mail, locale) {
|
||||||
const result = await request_1.request({
|
const result = await request_1.request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/runners/forgot`,
|
path: `/api/runners/forgot`,
|
||||||
query: {
|
query: {
|
||||||
'mail': mail,
|
'mail': mail,
|
||||||
|
'locale': locale,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -82,14 +84,18 @@ class RunnerSelfService {
|
|||||||
/**
|
/**
|
||||||
* Register runner
|
* 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.
|
* 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.
|
||||||
|
* @param locale
|
||||||
* @param requestBody CreateSelfServiceCitizenRunner
|
* @param requestBody CreateSelfServiceCitizenRunner
|
||||||
* @returns ResponseSelfServiceRunner
|
* @returns ResponseSelfServiceRunner
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static async runnerSelfServiceControllerRegisterRunner(requestBody) {
|
static async runnerSelfServiceControllerRegisterRunner(locale, requestBody) {
|
||||||
const result = await request_1.request({
|
const result = await request_1.request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/runners/register`,
|
path: `/api/runners/register`,
|
||||||
|
query: {
|
||||||
|
'locale': locale,
|
||||||
|
},
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
@ -98,14 +104,18 @@ class RunnerSelfService {
|
|||||||
* Register organization runner
|
* Register organization runner
|
||||||
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
* Create a new selfservice runner in a provided org. <br> The orgs get provided and authorized via api tokens that can be optained via the /organizations endpoint.
|
||||||
* @param token
|
* @param token
|
||||||
|
* @param locale
|
||||||
* @param requestBody CreateSelfServiceRunner
|
* @param requestBody CreateSelfServiceRunner
|
||||||
* @returns ResponseSelfServiceRunner
|
* @returns ResponseSelfServiceRunner
|
||||||
* @throws ApiError
|
* @throws ApiError
|
||||||
*/
|
*/
|
||||||
static async runnerSelfServiceControllerRegisterOrganizationRunner(token, requestBody) {
|
static async runnerSelfServiceControllerRegisterOrganizationRunner(token, locale, requestBody) {
|
||||||
const result = await request_1.request({
|
const result = await request_1.request({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
path: `/api/runners/register/${token}`,
|
path: `/api/runners/register/${token}`,
|
||||||
|
query: {
|
||||||
|
'locale': locale,
|
||||||
|
},
|
||||||
body: requestBody,
|
body: requestBody,
|
||||||
});
|
});
|
||||||
return result.body;
|
return result.body;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@odit/lfk-client-js",
|
"name": "@odit/lfk-client-js",
|
||||||
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
|
"description": "A lib to interact with https://git.odit.services/lfk/backend. Use this version for native JS applications.",
|
||||||
"version": "0.9.2",
|
"version": "0.10.1",
|
||||||
"license": "CC-BY-NC-SA-4.0",
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user