@tagsamurai/gsts-api-services 2.0.1-alpha.31 → 2.0.1-alpha.33
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 +1 -1
- package/src/dto/iam.dto.d.ts +3 -3
- package/src/types/iam.type.d.ts +9 -8
package/package.json
CHANGED
package/src/dto/iam.dto.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableParams } from '../types/dataTable.type';
|
|
2
|
-
import { GlobalUserOptions, ModuleAccess } from '../types/iam.type';
|
|
2
|
+
import { DataType, GlobalUserOptions, ModuleAccess } from '../types/iam.type';
|
|
3
3
|
export interface LoginPayload {
|
|
4
4
|
email: string;
|
|
5
5
|
password: string | null;
|
|
@@ -72,7 +72,7 @@ export interface LogoutSessionPayload {
|
|
|
72
72
|
}
|
|
73
73
|
export interface GetCustomFieldListParams extends TableParams {
|
|
74
74
|
isActive?: boolean[];
|
|
75
|
-
dataType?:
|
|
75
|
+
dataType?: DataType[];
|
|
76
76
|
isRequired?: boolean[];
|
|
77
77
|
}
|
|
78
78
|
export type GetCustomFieldOptionsParams = Partial<{
|
|
@@ -81,7 +81,7 @@ export type GetCustomFieldOptionsParams = Partial<{
|
|
|
81
81
|
export interface CreateEditCustomFieldPayload {
|
|
82
82
|
isRequired: boolean;
|
|
83
83
|
name: string;
|
|
84
|
-
dataType:
|
|
84
|
+
dataType: DataType;
|
|
85
85
|
optionValue: string[];
|
|
86
86
|
}
|
|
87
87
|
export interface SetActiveCustomFieldPayload {
|
package/src/types/iam.type.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ export interface LoginResponse {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
type
|
|
23
|
+
type BaseString = string & {};
|
|
24
24
|
export interface VerifyTokenResponse {
|
|
25
|
-
message: 'Token Verified!' | 'Token not found' | 'Internal server error' |
|
|
25
|
+
message: 'Token Verified!' | 'Token not found' | 'Internal server error' | BaseString;
|
|
26
26
|
data: boolean;
|
|
27
27
|
}
|
|
28
28
|
interface BaseResponse<TMessage> {
|
|
@@ -30,8 +30,8 @@ interface BaseResponse<TMessage> {
|
|
|
30
30
|
message: TMessage;
|
|
31
31
|
data?: boolean;
|
|
32
32
|
}
|
|
33
|
-
export type RequestResetLinkMessage = 'EMAIL_NOT_REGISTERED' |
|
|
34
|
-
export type RequestOtpMessage = 'Successfully requested otp' | 'EMAIL_NOT_REGISTERED' | 'INACTIVE_USER' |
|
|
33
|
+
export type RequestResetLinkMessage = 'EMAIL_NOT_REGISTERED' | BaseString;
|
|
34
|
+
export type RequestOtpMessage = 'Successfully requested otp' | 'EMAIL_NOT_REGISTERED' | 'INACTIVE_USER' | BaseString;
|
|
35
35
|
export interface RequestResetLinkResponse extends BaseResponse<RequestResetLinkMessage> {
|
|
36
36
|
}
|
|
37
37
|
export interface RequestOtpResponse extends BaseResponse<RequestOtpMessage> {
|
|
@@ -56,7 +56,7 @@ export interface DivisionListDetail extends BaseDivision {
|
|
|
56
56
|
}
|
|
57
57
|
export interface ChangePasswordResponse {
|
|
58
58
|
status?: number;
|
|
59
|
-
message?: 'INCORRECT_PASSWORD' |
|
|
59
|
+
message?: 'INCORRECT_PASSWORD' | BaseString;
|
|
60
60
|
}
|
|
61
61
|
export interface GlobalUserList {
|
|
62
62
|
_id: string;
|
|
@@ -103,7 +103,7 @@ export interface GlobalUserDetail {
|
|
|
103
103
|
division: string;
|
|
104
104
|
employeeId: string | null;
|
|
105
105
|
expiryDate: string | null;
|
|
106
|
-
access: (ModuleAccess |
|
|
106
|
+
access: (ModuleAccess | BaseString)[];
|
|
107
107
|
}
|
|
108
108
|
export interface LoginModuleResponse extends LoginResponse {
|
|
109
109
|
isTotalControl: boolean;
|
|
@@ -149,13 +149,14 @@ export interface Position extends DropdownOption {
|
|
|
149
149
|
}
|
|
150
150
|
export interface Division extends DropdownOption {
|
|
151
151
|
}
|
|
152
|
+
export type DataType = 'Text' | 'Numeric' | 'Date' | 'Dropdown' | 'Text Area' | 'Phone' | BaseString;
|
|
152
153
|
export interface CustomField {
|
|
153
154
|
_id: string;
|
|
154
155
|
name: string;
|
|
155
|
-
dataType:
|
|
156
|
+
dataType: DataType;
|
|
156
157
|
optionValue: string[];
|
|
157
158
|
isActive: boolean;
|
|
158
|
-
isRequired: 'Yes' | 'No' |
|
|
159
|
+
isRequired: 'Yes' | 'No' | BaseString;
|
|
159
160
|
createdAt: string;
|
|
160
161
|
updatedAt: string;
|
|
161
162
|
}
|