@boarteam/boar-pack-users-frontend 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/tools/api-client/generated/ApiClient.ts +1 -8
- package/src/tools/api-client/generated/core/ApiError.ts +1 -1
- package/src/tools/api-client/generated/core/ApiRequestOptions.ts +1 -1
- package/src/tools/api-client/generated/core/ApiResult.ts +1 -1
- package/src/tools/api-client/generated/core/BaseHttpRequest.ts +1 -1
- package/src/tools/api-client/generated/core/CancelablePromise.ts +7 -7
- package/src/tools/api-client/generated/core/NodeHttpRequest.ts +1 -1
- package/src/tools/api-client/generated/core/OpenAPI.ts +1 -1
- package/src/tools/api-client/generated/core/request.ts +8 -6
- package/src/tools/api-client/generated/index.ts +2 -1
- package/src/tools/api-client/generated/models/EventLog.ts +1 -9
- package/src/tools/api-client/generated/models/EventLogCreateDto.ts +1 -7
- package/src/tools/api-client/generated/models/EventLogTimelineDto.ts +1 -6
- package/src/tools/api-client/generated/models/EventLogTimelineQueryDto.ts +1 -2
- package/src/tools/api-client/generated/models/EventLogUpdateDto.ts +1 -7
- package/src/tools/api-client/generated/models/ExperimentalFeaturesDto.ts +8 -0
- package/src/tools/api-client/generated/models/GetManyEventLogResponseDto.ts +1 -3
- package/src/tools/api-client/generated/models/GetManyUserResponseDto.ts +1 -3
- package/src/tools/api-client/generated/models/PermissionDto.ts +1 -2
- package/src/tools/api-client/generated/models/User.ts +3 -6
- package/src/tools/api-client/generated/models/UserCreateDto.ts +1 -6
- package/src/tools/api-client/generated/models/UserUpdateDto.ts +1 -6
- package/src/tools/api-client/generated/services/EventLogsService.ts +1 -10
- package/src/tools/api-client/generated/services/UsersService.ts +13 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boarteam/boar-pack-users-frontend",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Users frontend package for Boar Pack",
|
|
5
5
|
"repository": "git@github.com:boarteam/boar-pack.git",
|
|
6
6
|
"author": "Andrew Balakirev <balakirev.andrey@gmail.com>",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/plots": "^2.3.2",
|
|
18
|
-
"@boarteam/boar-pack-common-frontend": "^2.4.
|
|
18
|
+
"@boarteam/boar-pack-common-frontend": "^2.4.1",
|
|
19
19
|
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
|
20
20
|
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
|
21
21
|
"@umijs/max": "^4.1.10",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"build": "tsc --project tsconfig.build.json",
|
|
35
35
|
"yalc:push": "yalc push"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "15bb55f9ca20f3a86c95c9b519e3b31ef1ed1772"
|
|
38
38
|
}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { BaseHttpRequest } from './core/BaseHttpRequest';
|
|
6
6
|
import type { OpenAPIConfig } from './core/OpenAPI';
|
|
7
7
|
import { NodeHttpRequest } from './core/NodeHttpRequest';
|
|
8
|
-
|
|
9
8
|
import { EventLogsService } from './services/EventLogsService';
|
|
10
9
|
import { UsersService } from './services/UsersService';
|
|
11
|
-
|
|
12
10
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
13
|
-
|
|
14
11
|
export class ApiClient {
|
|
15
|
-
|
|
16
12
|
public readonly eventLogs: EventLogsService;
|
|
17
13
|
public readonly users: UsersService;
|
|
18
|
-
|
|
19
14
|
public readonly request: BaseHttpRequest;
|
|
20
|
-
|
|
21
15
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = NodeHttpRequest) {
|
|
22
16
|
this.request = new HttpRequest({
|
|
23
17
|
BASE: config?.BASE ?? '',
|
|
@@ -30,7 +24,6 @@ export class ApiClient {
|
|
|
30
24
|
HEADERS: config?.HEADERS,
|
|
31
25
|
ENCODE_PATH: config?.ENCODE_PATH,
|
|
32
26
|
});
|
|
33
|
-
|
|
34
27
|
this.eventLogs = new EventLogsService(this.request);
|
|
35
28
|
this.users = new UsersService(this.request);
|
|
36
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -51,7 +51,7 @@ export class CancelablePromise<T> implements Promise<T> {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
this.#isResolved = true;
|
|
54
|
-
this.#resolve
|
|
54
|
+
if (this.#resolve) this.#resolve(value);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
const onReject = (reason?: any): void => {
|
|
@@ -59,7 +59,7 @@ export class CancelablePromise<T> implements Promise<T> {
|
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
this.#isRejected = true;
|
|
62
|
-
this.#reject
|
|
62
|
+
if (this.#reject) this.#reject(reason);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const onCancel = (cancelHandler: () => void): void => {
|
|
@@ -85,9 +85,9 @@ export class CancelablePromise<T> implements Promise<T> {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
get [Symbol.toStringTag]() {
|
|
89
|
+
return "Cancellable Promise";
|
|
90
|
+
}
|
|
91
91
|
|
|
92
92
|
public then<TResult1 = T, TResult2 = never>(
|
|
93
93
|
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
|
@@ -122,7 +122,7 @@ export class CancelablePromise<T> implements Promise<T> {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
this.#cancelHandlers.length = 0;
|
|
125
|
-
this.#reject
|
|
125
|
+
if (this.#reject) this.#reject(new CancelError('Request aborted'));
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
public get isCancelled(): boolean {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -142,10 +142,12 @@ export const resolve = async <T>(options: ApiRequestOptions, resolver?: T | Reso
|
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise<Headers> => {
|
|
145
|
-
const token = await
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
const [token, username, password, additionalHeaders] = await Promise.all([
|
|
146
|
+
resolve(options, config.TOKEN),
|
|
147
|
+
resolve(options, config.USERNAME),
|
|
148
|
+
resolve(options, config.PASSWORD),
|
|
149
|
+
resolve(options, config.HEADERS),
|
|
150
|
+
]);
|
|
149
151
|
|
|
150
152
|
const headers = Object.entries({
|
|
151
153
|
Accept: 'application/json',
|
|
@@ -167,7 +169,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
|
|
|
167
169
|
headers['Authorization'] = `Basic ${credentials}`;
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
if (options.body) {
|
|
172
|
+
if (options.body !== undefined) {
|
|
171
173
|
if (options.mediaType) {
|
|
172
174
|
headers['Content-Type'] = options.mediaType;
|
|
173
175
|
} else if (isBlob(options.body)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -15,6 +15,7 @@ export { EventLogCreateDto } from './models/EventLogCreateDto';
|
|
|
15
15
|
export { EventLogTimelineDto } from './models/EventLogTimelineDto';
|
|
16
16
|
export type { EventLogTimelineQueryDto } from './models/EventLogTimelineQueryDto';
|
|
17
17
|
export { EventLogUpdateDto } from './models/EventLogUpdateDto';
|
|
18
|
+
export type { ExperimentalFeaturesDto } from './models/ExperimentalFeaturesDto';
|
|
18
19
|
export type { GetManyEventLogResponseDto } from './models/GetManyEventLogResponseDto';
|
|
19
20
|
export type { GetManyUserResponseDto } from './models/GetManyUserResponseDto';
|
|
20
21
|
export type { PermissionDto } from './models/PermissionDto';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
import type { User } from './User';
|
|
7
|
-
|
|
8
6
|
export type EventLog = {
|
|
9
7
|
id: string;
|
|
10
8
|
logType: EventLog.logType;
|
|
@@ -29,28 +27,22 @@ export type EventLog = {
|
|
|
29
27
|
createdAt: string;
|
|
30
28
|
updatedAt: string;
|
|
31
29
|
};
|
|
32
|
-
|
|
33
30
|
export namespace EventLog {
|
|
34
|
-
|
|
35
31
|
export enum logType {
|
|
36
32
|
AUDIT = 'Audit',
|
|
37
33
|
OPERATIONAL = 'Operational',
|
|
38
34
|
APPLICATION = 'Application',
|
|
39
35
|
}
|
|
40
|
-
|
|
41
36
|
export enum logLevel {
|
|
42
37
|
INFO = 'Info',
|
|
43
38
|
WARNING = 'Warning',
|
|
44
39
|
ERROR = 'Error',
|
|
45
40
|
}
|
|
46
|
-
|
|
47
41
|
export enum userRole {
|
|
48
42
|
ADMIN = 'Admin',
|
|
49
43
|
USER = 'User',
|
|
50
44
|
GUEST = 'Guest',
|
|
51
45
|
SYSTEM = 'System',
|
|
52
46
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
47
|
}
|
|
56
48
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type EventLogCreateDto = {
|
|
7
6
|
logType: EventLogCreateDto.logType;
|
|
8
7
|
logLevel: EventLogCreateDto.logLevel;
|
|
@@ -19,21 +18,16 @@ export type EventLogCreateDto = {
|
|
|
19
18
|
duration?: number;
|
|
20
19
|
statusCode?: number;
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
export namespace EventLogCreateDto {
|
|
24
|
-
|
|
25
22
|
export enum logType {
|
|
26
23
|
AUDIT = 'Audit',
|
|
27
24
|
OPERATIONAL = 'Operational',
|
|
28
25
|
APPLICATION = 'Application',
|
|
29
26
|
}
|
|
30
|
-
|
|
31
27
|
export enum logLevel {
|
|
32
28
|
INFO = 'Info',
|
|
33
29
|
WARNING = 'Warning',
|
|
34
30
|
ERROR = 'Error',
|
|
35
31
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
32
|
}
|
|
39
33
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type EventLogTimelineDto = {
|
|
7
6
|
time: string;
|
|
8
7
|
records: number;
|
|
@@ -10,15 +9,11 @@ export type EventLogTimelineDto = {
|
|
|
10
9
|
startTime: string;
|
|
11
10
|
endTime: string;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
export namespace EventLogTimelineDto {
|
|
15
|
-
|
|
16
13
|
export enum logLevel {
|
|
17
14
|
INFO = 'Info',
|
|
18
15
|
WARNING = 'Warning',
|
|
19
16
|
ERROR = 'Error',
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
18
|
}
|
|
24
19
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type EventLogTimelineQueryDto = {
|
|
7
6
|
startTime?: string;
|
|
8
7
|
endTime?: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type EventLogUpdateDto = {
|
|
7
6
|
logType?: EventLogUpdateDto.logType;
|
|
8
7
|
logLevel?: EventLogUpdateDto.logLevel;
|
|
@@ -19,21 +18,16 @@ export type EventLogUpdateDto = {
|
|
|
19
18
|
duration?: number;
|
|
20
19
|
statusCode?: number;
|
|
21
20
|
};
|
|
22
|
-
|
|
23
21
|
export namespace EventLogUpdateDto {
|
|
24
|
-
|
|
25
22
|
export enum logType {
|
|
26
23
|
AUDIT = 'Audit',
|
|
27
24
|
OPERATIONAL = 'Operational',
|
|
28
25
|
APPLICATION = 'Application',
|
|
29
26
|
}
|
|
30
|
-
|
|
31
27
|
export enum logLevel {
|
|
32
28
|
INFO = 'Info',
|
|
33
29
|
WARNING = 'Warning',
|
|
34
30
|
ERROR = 'Error',
|
|
35
31
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
32
|
}
|
|
39
33
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
import type { EventLog } from './EventLog';
|
|
7
|
-
|
|
8
6
|
export type GetManyEventLogResponseDto = {
|
|
9
7
|
data: Array<EventLog>;
|
|
10
8
|
count: number;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
import type { User } from './User';
|
|
7
|
-
|
|
8
6
|
export type GetManyUserResponseDto = {
|
|
9
7
|
data: Array<User>;
|
|
10
8
|
count: number;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type PermissionDto = {
|
|
7
6
|
permissions: Array<string>;
|
|
8
7
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type User = {
|
|
7
6
|
id: string;
|
|
8
7
|
name: string;
|
|
@@ -12,16 +11,14 @@ export type User = {
|
|
|
12
11
|
permissions: Array<string>;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
14
|
+
deletedAt: string;
|
|
15
15
|
policies: Array<Record<string, any>>;
|
|
16
|
+
experimentalFeatures: Record<string, any>;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
18
|
export namespace User {
|
|
19
|
-
|
|
20
19
|
export enum role {
|
|
21
20
|
ADMIN = 'admin',
|
|
22
21
|
USER = 'user',
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
23
|
}
|
|
27
24
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type UserCreateDto = {
|
|
7
6
|
name: string;
|
|
8
7
|
email: string;
|
|
@@ -10,14 +9,10 @@ export type UserCreateDto = {
|
|
|
10
9
|
pass?: string | null;
|
|
11
10
|
permissions?: Array<string>;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
export namespace UserCreateDto {
|
|
15
|
-
|
|
16
13
|
export enum role {
|
|
17
14
|
ADMIN = 'admin',
|
|
18
15
|
USER = 'user',
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
17
|
}
|
|
23
18
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
-
|
|
6
5
|
export type UserUpdateDto = {
|
|
7
6
|
name?: string;
|
|
8
7
|
email?: string;
|
|
@@ -10,14 +9,10 @@ export type UserUpdateDto = {
|
|
|
10
9
|
pass?: string | null;
|
|
11
10
|
permissions?: Array<string>;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
12
|
export namespace UserUpdateDto {
|
|
15
|
-
|
|
16
13
|
export enum role {
|
|
17
14
|
ADMIN = 'admin',
|
|
18
15
|
USER = 'user',
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
17
|
}
|
|
23
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -7,14 +7,10 @@ import type { EventLogCreateDto } from '../models/EventLogCreateDto';
|
|
|
7
7
|
import type { EventLogTimelineDto } from '../models/EventLogTimelineDto';
|
|
8
8
|
import type { EventLogUpdateDto } from '../models/EventLogUpdateDto';
|
|
9
9
|
import type { GetManyEventLogResponseDto } from '../models/GetManyEventLogResponseDto';
|
|
10
|
-
|
|
11
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
11
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
13
|
-
|
|
14
12
|
export class EventLogsService {
|
|
15
|
-
|
|
16
13
|
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
17
|
-
|
|
18
14
|
/**
|
|
19
15
|
* @returns EventLogTimelineDto
|
|
20
16
|
* @throws ApiError
|
|
@@ -38,7 +34,6 @@ export class EventLogsService {
|
|
|
38
34
|
},
|
|
39
35
|
});
|
|
40
36
|
}
|
|
41
|
-
|
|
42
37
|
/**
|
|
43
38
|
* Retrieve multiple EventLogs
|
|
44
39
|
* @returns GetManyEventLogResponseDto Get paginated response
|
|
@@ -114,7 +109,6 @@ export class EventLogsService {
|
|
|
114
109
|
},
|
|
115
110
|
});
|
|
116
111
|
}
|
|
117
|
-
|
|
118
112
|
/**
|
|
119
113
|
* Create a single EventLog
|
|
120
114
|
* @returns EventLog Get create one base response
|
|
@@ -132,7 +126,6 @@ export class EventLogsService {
|
|
|
132
126
|
mediaType: 'application/json',
|
|
133
127
|
});
|
|
134
128
|
}
|
|
135
|
-
|
|
136
129
|
/**
|
|
137
130
|
* Update a single EventLog
|
|
138
131
|
* @returns EventLog Response
|
|
@@ -155,7 +148,6 @@ export class EventLogsService {
|
|
|
155
148
|
mediaType: 'application/json',
|
|
156
149
|
});
|
|
157
150
|
}
|
|
158
|
-
|
|
159
151
|
/**
|
|
160
152
|
* Delete a single EventLog
|
|
161
153
|
* @returns any Delete one base response
|
|
@@ -174,5 +166,4 @@ export class EventLogsService {
|
|
|
174
166
|
},
|
|
175
167
|
});
|
|
176
168
|
}
|
|
177
|
-
|
|
178
169
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -6,14 +6,10 @@ import type { GetManyUserResponseDto } from '../models/GetManyUserResponseDto';
|
|
|
6
6
|
import type { User } from '../models/User';
|
|
7
7
|
import type { UserCreateDto } from '../models/UserCreateDto';
|
|
8
8
|
import type { UserUpdateDto } from '../models/UserUpdateDto';
|
|
9
|
-
|
|
10
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
10
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
12
|
-
|
|
13
11
|
export class UsersService {
|
|
14
|
-
|
|
15
12
|
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
16
|
-
|
|
17
13
|
/**
|
|
18
14
|
* Retrieve a single User
|
|
19
15
|
* @returns User Get one base response
|
|
@@ -24,6 +20,7 @@ export class UsersService {
|
|
|
24
20
|
fields,
|
|
25
21
|
join,
|
|
26
22
|
cache,
|
|
23
|
+
includeDeleted,
|
|
27
24
|
}: {
|
|
28
25
|
id: string,
|
|
29
26
|
/**
|
|
@@ -38,6 +35,10 @@ export class UsersService {
|
|
|
38
35
|
* Reset cache (if was enabled). <a href="https://github.com/nestjsx/crud/wiki/Requests#cache" target="_blank">Docs</a>
|
|
39
36
|
*/
|
|
40
37
|
cache?: number,
|
|
38
|
+
/**
|
|
39
|
+
* Include deleted. <a href="https://github.com/nestjsx/crud/wiki/Requests#includeDeleted" target="_blank">Docs</a>
|
|
40
|
+
*/
|
|
41
|
+
includeDeleted?: number,
|
|
41
42
|
}): CancelablePromise<User> {
|
|
42
43
|
return this.httpRequest.request({
|
|
43
44
|
method: 'GET',
|
|
@@ -49,10 +50,10 @@ export class UsersService {
|
|
|
49
50
|
'fields': fields,
|
|
50
51
|
'join': join,
|
|
51
52
|
'cache': cache,
|
|
53
|
+
'include_deleted': includeDeleted,
|
|
52
54
|
},
|
|
53
55
|
});
|
|
54
56
|
}
|
|
55
|
-
|
|
56
57
|
/**
|
|
57
58
|
* Update a single User
|
|
58
59
|
* @returns User Response
|
|
@@ -75,7 +76,6 @@ export class UsersService {
|
|
|
75
76
|
mediaType: 'application/json',
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
|
|
79
79
|
/**
|
|
80
80
|
* Delete a single User
|
|
81
81
|
* @returns any Delete one base response
|
|
@@ -94,7 +94,6 @@ export class UsersService {
|
|
|
94
94
|
},
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
|
|
98
97
|
/**
|
|
99
98
|
* Retrieve multiple Users
|
|
100
99
|
* @returns GetManyUserResponseDto Get paginated response
|
|
@@ -111,6 +110,7 @@ export class UsersService {
|
|
|
111
110
|
offset,
|
|
112
111
|
page,
|
|
113
112
|
cache,
|
|
113
|
+
includeDeleted,
|
|
114
114
|
}: {
|
|
115
115
|
/**
|
|
116
116
|
* Selects resource fields. <a href="https://github.com/nestjsx/crud/wiki/Requests#select" target="_blank">Docs</a>
|
|
@@ -152,6 +152,10 @@ export class UsersService {
|
|
|
152
152
|
* Reset cache (if was enabled). <a href="https://github.com/nestjsx/crud/wiki/Requests#cache" target="_blank">Docs</a>
|
|
153
153
|
*/
|
|
154
154
|
cache?: number,
|
|
155
|
+
/**
|
|
156
|
+
* Include deleted. <a href="https://github.com/nestjsx/crud/wiki/Requests#includeDeleted" target="_blank">Docs</a>
|
|
157
|
+
*/
|
|
158
|
+
includeDeleted?: number,
|
|
155
159
|
}): CancelablePromise<GetManyUserResponseDto> {
|
|
156
160
|
return this.httpRequest.request({
|
|
157
161
|
method: 'GET',
|
|
@@ -167,10 +171,10 @@ export class UsersService {
|
|
|
167
171
|
'offset': offset,
|
|
168
172
|
'page': page,
|
|
169
173
|
'cache': cache,
|
|
174
|
+
'include_deleted': includeDeleted,
|
|
170
175
|
},
|
|
171
176
|
});
|
|
172
177
|
}
|
|
173
|
-
|
|
174
178
|
/**
|
|
175
179
|
* Create a single User
|
|
176
180
|
* @returns User Get create one base response
|
|
@@ -188,7 +192,6 @@ export class UsersService {
|
|
|
188
192
|
mediaType: 'application/json',
|
|
189
193
|
});
|
|
190
194
|
}
|
|
191
|
-
|
|
192
195
|
/**
|
|
193
196
|
* Retrieve a single User
|
|
194
197
|
* @returns User
|
|
@@ -222,5 +225,4 @@ export class UsersService {
|
|
|
222
225
|
},
|
|
223
226
|
});
|
|
224
227
|
}
|
|
225
|
-
|
|
226
228
|
}
|