-
Notifications
You must be signed in to change notification settings - Fork 70
/
login-request.dto.ts
41 lines (36 loc) · 1.07 KB
/
login-request.dto.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/* eslint-disable @typescript-eslint/naming-convention */
import {model, property} from '@loopback/repository';
import {CoreModel} from '@sourceloop/core';
import {ModelPropertyDescriptionString} from './model-property-description.enum';
@model({
description: 'This is the signature for login request.',
})
export class LoginRequest extends CoreModel<LoginRequest> {
@property({
type: 'string',
description: ModelPropertyDescriptionString.reqStrPropDesc,
required: true,
})
client_id: string; //NOSONAR
@property({
type: 'string',
description: ModelPropertyDescriptionString.reqStrPropDesc,
})
client_secret: string; //NOSONAR
@property({
type: 'string',
description: ModelPropertyDescriptionString.reqStrPropDesc,
required: true,
})
username: string;
@property({
type: 'string',
description: ModelPropertyDescriptionString.reqStrPropDesc,
required: true,
})
password: string;
}