new lib version [CI SKIP]

This commit is contained in:
2020-12-22 14:30:44 +00:00
parent 284f3303c3
commit 52ac2efc67
66 changed files with 799 additions and 122 deletions

View File

@@ -1,5 +1,5 @@
export declare type CreateAuth = {
username?: string;
password: string;
email?: string;
password: string;
};

23
dist/models/CreatePermission.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
export declare type CreatePermission = {
principal: number;
target: CreatePermission.target;
action: CreatePermission.action;
};
export declare namespace CreatePermission {
enum target {
RUNNER = "RUNNER",
ORGANISATION = "ORGANISATION",
TEAM = "TEAM",
TRACK = "TRACK",
USER = "USER",
USERGROUP = "USERGROUP",
PERMISSION = "PERMISSION"
}
enum action {
GET = "GET",
CREATE = "CREATE",
UPDATE = "UPDATE",
DELETE = "DELETE",
IMPORT = "IMPORT"
}
}

27
dist/models/CreatePermission.js vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreatePermission = void 0;
var CreatePermission;
(function (CreatePermission) {
let target;
(function (target) {
target["RUNNER"] = "RUNNER";
target["ORGANISATION"] = "ORGANISATION";
target["TEAM"] = "TEAM";
target["TRACK"] = "TRACK";
target["USER"] = "USER";
target["USERGROUP"] = "USERGROUP";
target["PERMISSION"] = "PERMISSION";
})(target = CreatePermission.target || (CreatePermission.target = {}));
let action;
(function (action) {
action["GET"] = "GET";
action["CREATE"] = "CREATE";
action["UPDATE"] = "UPDATE";
action["DELETE"] = "DELETE";
action["IMPORT"] = "IMPORT";
})(action = CreatePermission.action || (CreatePermission.action = {}));
})(CreatePermission = exports.CreatePermission || (exports.CreatePermission = {}));

View File

@@ -6,5 +6,5 @@ export declare type CreateUser = {
email?: string;
phone?: string;
password: string;
groupId?: any;
groups?: any;
};

View File

@@ -1,4 +0,0 @@
export declare type ExpiredJWTError = {
name: string;
message: string;
};

7
dist/models/ImportRunner.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
export declare type ImportRunner = {
firstname: string;
middlename?: string;
lastname: string;
team?: string;
class?: string;
};

12
dist/models/JwtUser.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
export declare type JwtUser = {
id: number;
uuid: string;
email?: string;
username?: string;
firstname: string;
middlename?: string;
lastname: string;
enabled: boolean;
refreshTokenCount: number;
profilePic?: string;
};

5
dist/models/JwtUser.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -1,5 +1,23 @@
export declare type Permission = {
id: number;
target: string;
action: string;
target: Permission.target;
action: Permission.action;
};
export declare namespace Permission {
enum target {
RUNNER = "RUNNER",
ORGANISATION = "ORGANISATION",
TEAM = "TEAM",
TRACK = "TRACK",
USER = "USER",
USERGROUP = "USERGROUP",
PERMISSION = "PERMISSION"
}
enum action {
GET = "GET",
CREATE = "CREATE",
UPDATE = "UPDATE",
DELETE = "DELETE",
IMPORT = "IMPORT"
}
}

View File

@@ -3,3 +3,25 @@
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Permission = void 0;
var Permission;
(function (Permission) {
let target;
(function (target) {
target["RUNNER"] = "RUNNER";
target["ORGANISATION"] = "ORGANISATION";
target["TEAM"] = "TEAM";
target["TRACK"] = "TRACK";
target["USER"] = "USER";
target["USERGROUP"] = "USERGROUP";
target["PERMISSION"] = "PERMISSION";
})(target = Permission.target || (Permission.target = {}));
let action;
(function (action) {
action["GET"] = "GET";
action["CREATE"] = "CREATE";
action["UPDATE"] = "UPDATE";
action["DELETE"] = "DELETE";
action["IMPORT"] = "IMPORT";
})(action = Permission.action || (Permission.action = {}));
})(Permission = exports.Permission || (exports.Permission = {}));

View File

@@ -0,0 +1,4 @@
export declare type PermissionIdsNotMatchingError = {
name: string;
message: string;
};

View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,4 @@
export declare type PermissionNeedsPrincipalError = {
name: string;
message: string;
};

View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,4 @@
export declare type PermissionNotFoundError = {
name: string;
message: string;
};

View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

3
dist/models/Principal.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare type Principal = {
id: number;
};

5
dist/models/Principal.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,4 @@
export declare type PrincipalNotFoundError = {
name: string;
message: string;
};

5
dist/models/PrincipalNotFoundError.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,4 @@
export declare type PrincipalWrongTypeError = {
name: string;
message: string;
};

View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

25
dist/models/ResponsePermission.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
import type { ResponsePrincipal } from './ResponsePrincipal';
export declare type ResponsePermission = {
id: number;
principal: ResponsePrincipal;
target: ResponsePermission.target;
action: ResponsePermission.action;
};
export declare namespace ResponsePermission {
enum target {
RUNNER = "RUNNER",
ORGANISATION = "ORGANISATION",
TEAM = "TEAM",
TRACK = "TRACK",
USER = "USER",
USERGROUP = "USERGROUP",
PERMISSION = "PERMISSION"
}
enum action {
GET = "GET",
CREATE = "CREATE",
UPDATE = "UPDATE",
DELETE = "DELETE",
IMPORT = "IMPORT"
}
}

27
dist/models/ResponsePermission.js vendored Normal file
View File

@@ -0,0 +1,27 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResponsePermission = void 0;
var ResponsePermission;
(function (ResponsePermission) {
let target;
(function (target) {
target["RUNNER"] = "RUNNER";
target["ORGANISATION"] = "ORGANISATION";
target["TEAM"] = "TEAM";
target["TRACK"] = "TRACK";
target["USER"] = "USER";
target["USERGROUP"] = "USERGROUP";
target["PERMISSION"] = "PERMISSION";
})(target = ResponsePermission.target || (ResponsePermission.target = {}));
let action;
(function (action) {
action["GET"] = "GET";
action["CREATE"] = "CREATE";
action["UPDATE"] = "UPDATE";
action["DELETE"] = "DELETE";
action["IMPORT"] = "IMPORT";
})(action = ResponsePermission.action || (ResponsePermission.action = {}));
})(ResponsePermission = exports.ResponsePermission || (exports.ResponsePermission = {}));

3
dist/models/ResponsePrincipal.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare type ResponsePrincipal = {
id: number;
};

5
dist/models/ResponsePrincipal.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

13
dist/models/ResponseUser.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
export declare type ResponseUser = {
firstname: string;
middlename: string;
lastname: string;
phone: string;
email: string;
username: string;
enabled: boolean;
profilePic?: string;
groups?: Array<any>;
permissions?: Array<any>;
id: number;
};

5
dist/models/ResponseUser.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

6
dist/models/ResponseUserGroup.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
export declare type ResponseUserGroup = {
name: string;
description?: string;
permissions?: Array<any>;
id: number;
};

5
dist/models/ResponseUserGroup.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

7
dist/models/UpdatePermission.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
import type { Principal } from './Principal';
export declare type UpdatePermission = {
id: number;
principal: Principal;
target: string;
action: string;
};

5
dist/models/UpdatePermission.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,6 @@
export declare type UpdateRunnerOrganisation = {
id: number;
address?: number;
name: string;
contact?: number;
};

View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

12
dist/models/UpdateUser.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
export declare type UpdateUser = {
id: number;
firstname: string;
middlename?: string;
lastname: string;
username?: string;
email?: string;
phone?: string;
password?: string;
enabled: boolean;
groups?: any;
};

5
dist/models/UpdateUser.js vendored Normal file
View File

@@ -0,0 +1,5 @@
"use strict";
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -1,5 +1,4 @@
export declare type User = {
id: number;
uuid: string;
email: string;
phone?: string;
@@ -8,10 +7,10 @@ export declare type User = {
middlename?: string;
lastname: string;
password: string;
permissions?: any;
groups?: any;
enabled: boolean;
refreshTokenCount: number;
profilePic?: string;
actions?: any;
id: number;
};

View File

@@ -1,6 +1,15 @@
export declare type UserAction = {
id: number;
target: string;
action: string;
action: UserAction.action;
changed?: string;
};
export declare namespace UserAction {
enum action {
GET = "GET",
CREATE = "CREATE",
UPDATE = "UPDATE",
DELETE = "DELETE",
IMPORT = "IMPORT"
}
}

View File

@@ -3,3 +3,15 @@
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserAction = void 0;
var UserAction;
(function (UserAction) {
let action;
(function (action) {
action["GET"] = "GET";
action["CREATE"] = "CREATE";
action["UPDATE"] = "UPDATE";
action["DELETE"] = "DELETE";
action["IMPORT"] = "IMPORT";
})(action = UserAction.action || (UserAction.action = {}));
})(UserAction = exports.UserAction || (exports.UserAction = {}));

View File

@@ -1,5 +1,5 @@
export declare type UserGroup = {
id: number;
name: string;
description?: string;
id: number;
};