@cbm-common/cbm-types 0.0.142 → 0.0.143
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/lib/components/record-detail-metadata/record-detail-metadata.d.ts +10 -14
- package/lib/components/user-history/user-history.d.ts +2 -2
- package/lib/domain/models/auth-reactive.domain.model.d.ts +1 -0
- package/lib/domain/services/auth/auth.model.d.ts +4 -185
- package/package.json +1 -1
- package/lib/remotes/services/auth.service.d.ts +0 -3
- package/lib/remotes/services/web-socket.service.d.ts +0 -4
- package/lib/remotes/services.remote.d.ts +0 -3
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Params, Router } from '@angular/router';
|
|
2
3
|
import { CbmRecordDetailMetadataModel } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
|
|
7
|
-
private readonly darkMode;
|
|
8
|
-
constructor(elementRef: ElementRef, renderer2: Renderer2, darkMode: DarkModeDomainService);
|
|
9
|
-
containerRef: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
4
|
+
export declare class CbmRecordDetailMetadataComponent {
|
|
5
|
+
private readonly router;
|
|
6
|
+
private readonly route;
|
|
7
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
10
8
|
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
11
9
|
additionalMetadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.additionalMetadata[] | undefined>;
|
|
12
10
|
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
13
|
-
optionsSignal: import("@angular/core").WritableSignal<CbmRecordDetailMetadataModel.options[]>;
|
|
14
|
-
loadCss: import("@angular/core").WritableSignal<boolean>;
|
|
15
11
|
metadataComp: import("@angular/core").Signal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
16
|
-
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
optionsSignal: WritableSignal<CbmRecordDetailMetadataModel.options[]>;
|
|
18
13
|
changeState(id: string, state: 'init' | 'loading' | 'success' | 'failed'): void;
|
|
14
|
+
signal(option: CbmRecordDetailMetadataModel.options): WritableSignal<CbmRecordDetailMetadataModel.options>;
|
|
19
15
|
private updateStateById;
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
|
|
17
|
+
navigate(routerLink?: string, queryParams?: Params): void;
|
|
22
18
|
spanText: (data: CbmRecordDetailMetadataModel.metadata) => string;
|
|
23
19
|
protected getRoundedCotentClass(): string;
|
|
24
20
|
protected getIconClass(): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CbmUserHistory } from './types';
|
|
2
1
|
import { CbmHistoryModel } from "../../domain/models/history.domain.model";
|
|
2
|
+
import { EmailHistoryComponent } from './components/email-history/email-history.component';
|
|
3
3
|
import { GeneralHistoryComponent } from './components/general-history/general-history.component';
|
|
4
4
|
import { PrintHistoryComponent } from './components/print-history/print-history.component';
|
|
5
|
-
import { EmailHistoryComponent } from './components/email-history/email-history.component';
|
|
6
5
|
import { SriHistoryComponent } from './components/sri-history/sri-history.component';
|
|
6
|
+
import { CbmUserHistory } from './types';
|
|
7
7
|
export declare class CbmUserHistoryComponent {
|
|
8
8
|
generalHistoryTabRef: import("@angular/core").Signal<GeneralHistoryComponent | undefined>;
|
|
9
9
|
printHistoryTabRef: import("@angular/core").Signal<PrintHistoryComponent | undefined>;
|
|
@@ -1,188 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
sub: string;
|
|
4
|
-
aud: string;
|
|
5
|
-
kid: string;
|
|
6
|
-
jti: string;
|
|
7
|
-
type: string;
|
|
8
|
-
data: CbmAuthData.Data;
|
|
9
|
-
user: CbmAuthData.User;
|
|
10
|
-
company: CbmAuthData.Company;
|
|
11
|
-
companyBranchData: CbmAuthData.CompanyBranchData;
|
|
12
|
-
countries: CbmAuthData.Country[];
|
|
13
|
-
roles: CbmAuthData.Role;
|
|
14
|
-
modules: CbmAuthData.Module[];
|
|
15
|
-
user_session_id: string;
|
|
16
|
-
subscription: CbmAuthData.Subscription;
|
|
17
|
-
iat: number;
|
|
18
|
-
exp: number;
|
|
1
|
+
import { CbmAuthReactiveModel } from '../../models/auth-reactive.domain.model';
|
|
2
|
+
export interface CbmAuthData extends CbmAuthReactiveModel.GlobalTokenData {
|
|
19
3
|
}
|
|
20
|
-
export interface CbmTokenUserData {
|
|
21
|
-
iss: string;
|
|
22
|
-
sub: string;
|
|
23
|
-
aud: string;
|
|
24
|
-
kid: string;
|
|
25
|
-
jti: string;
|
|
26
|
-
type: string;
|
|
27
|
-
provider: string;
|
|
28
|
-
user: CbmTokenUserData.User;
|
|
29
|
-
country: CbmTokenUserData.Country[];
|
|
30
|
-
user_session_id: string;
|
|
31
|
-
iat: number;
|
|
32
|
-
exp: number;
|
|
4
|
+
export interface CbmTokenUserData extends CbmAuthReactiveModel.UserTokenData {
|
|
33
5
|
}
|
|
34
|
-
export
|
|
35
|
-
interface Country {
|
|
36
|
-
_id: string;
|
|
37
|
-
code: string;
|
|
38
|
-
name: string;
|
|
39
|
-
short_name: string;
|
|
40
|
-
companies: number;
|
|
41
|
-
}
|
|
42
|
-
interface User {
|
|
43
|
-
_id: string;
|
|
44
|
-
full_name: string;
|
|
45
|
-
email: string;
|
|
46
|
-
cellphone: string;
|
|
47
|
-
address: string;
|
|
48
|
-
super_admin: boolean;
|
|
49
|
-
multi_company: boolean;
|
|
50
|
-
photo: string;
|
|
51
|
-
}
|
|
6
|
+
export interface CbmConsoleTokenData extends CbmAuthReactiveModel.ConsoleTokenData {
|
|
52
7
|
}
|
|
53
|
-
export declare namespace CbmAuthData {
|
|
54
|
-
interface Data {
|
|
55
|
-
country_id: string;
|
|
56
|
-
code: string;
|
|
57
|
-
name: string;
|
|
58
|
-
short_name: string;
|
|
59
|
-
selected: boolean;
|
|
60
|
-
}
|
|
61
|
-
interface User {
|
|
62
|
-
_id: string;
|
|
63
|
-
username: string;
|
|
64
|
-
full_name: string;
|
|
65
|
-
email: string;
|
|
66
|
-
super_admin: boolean;
|
|
67
|
-
photo: string;
|
|
68
|
-
enabled: boolean;
|
|
69
|
-
}
|
|
70
|
-
interface Company {
|
|
71
|
-
_id: string;
|
|
72
|
-
NIF: string;
|
|
73
|
-
trade_name: string;
|
|
74
|
-
business_name: string;
|
|
75
|
-
address: string;
|
|
76
|
-
mandatory_accounting: boolean;
|
|
77
|
-
special_taxpayer: boolean;
|
|
78
|
-
special_taxpayer_number: string;
|
|
79
|
-
artisanal_qualification: boolean;
|
|
80
|
-
artisanal_qualification_number: string;
|
|
81
|
-
regime_id: string;
|
|
82
|
-
created_at: number;
|
|
83
|
-
logo: string;
|
|
84
|
-
environment: number;
|
|
85
|
-
}
|
|
86
|
-
interface CompanyBranchData {
|
|
87
|
-
_id: string;
|
|
88
|
-
trade_name: string;
|
|
89
|
-
identification_number: string;
|
|
90
|
-
logo: string;
|
|
91
|
-
address: string;
|
|
92
|
-
email: string;
|
|
93
|
-
cellphone: string;
|
|
94
|
-
phone: string;
|
|
95
|
-
enabled: boolean;
|
|
96
|
-
}
|
|
97
|
-
interface Country {
|
|
98
|
-
_id: string;
|
|
99
|
-
code: string;
|
|
100
|
-
name: string;
|
|
101
|
-
short_name: string;
|
|
102
|
-
selected: boolean;
|
|
103
|
-
}
|
|
104
|
-
interface Role {
|
|
105
|
-
_id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
type: string;
|
|
108
|
-
user_role_id: string;
|
|
109
|
-
selected: boolean;
|
|
110
|
-
count_user_role: boolean;
|
|
111
|
-
access: Record<string, string>;
|
|
112
|
-
}
|
|
113
|
-
interface Module {
|
|
114
|
-
_id: string;
|
|
115
|
-
role_id: string;
|
|
116
|
-
module_id: string;
|
|
117
|
-
access: boolean;
|
|
118
|
-
module_name: string;
|
|
119
|
-
module_description: string;
|
|
120
|
-
module_host: string;
|
|
121
|
-
detail: Module.Detail[];
|
|
122
|
-
}
|
|
123
|
-
interface Subscription {
|
|
124
|
-
subscription_id?: string;
|
|
125
|
-
code?: string;
|
|
126
|
-
type_support?: string;
|
|
127
|
-
begin_date?: number;
|
|
128
|
-
end_date?: number;
|
|
129
|
-
status?: string;
|
|
130
|
-
}
|
|
131
|
-
namespace Module {
|
|
132
|
-
interface Detail {
|
|
133
|
-
_id: string;
|
|
134
|
-
role_id: string;
|
|
135
|
-
module_id: string;
|
|
136
|
-
module_detail_id: string;
|
|
137
|
-
option_create: boolean;
|
|
138
|
-
option_update: boolean;
|
|
139
|
-
option_delete: boolean;
|
|
140
|
-
option_list?: boolean;
|
|
141
|
-
option_view?: boolean;
|
|
142
|
-
option_reverse?: boolean;
|
|
143
|
-
module_detail_name: string;
|
|
144
|
-
module_detail_description: string;
|
|
145
|
-
module_detail_router: string;
|
|
146
|
-
module_detail_icon: string;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
export interface CbmConsoleTokenData {
|
|
151
|
-
iss: string;
|
|
152
|
-
sub: string;
|
|
153
|
-
aud: string;
|
|
154
|
-
kid: string;
|
|
155
|
-
jti: string;
|
|
156
|
-
type: string;
|
|
157
|
-
provider: string;
|
|
158
|
-
user: CbmConsoleTokenData.User;
|
|
159
|
-
country: CbmConsoleTokenData.Country;
|
|
160
|
-
iat: number;
|
|
161
|
-
exp: number;
|
|
162
|
-
}
|
|
163
|
-
export declare namespace CbmConsoleTokenData {
|
|
164
|
-
interface Country {
|
|
165
|
-
_id: string;
|
|
166
|
-
code: string;
|
|
167
|
-
name: string;
|
|
168
|
-
short_name: string;
|
|
169
|
-
}
|
|
170
|
-
interface User {
|
|
171
|
-
_id: string;
|
|
172
|
-
full_name: string;
|
|
173
|
-
email: string;
|
|
174
|
-
cellphone: string;
|
|
175
|
-
address: string;
|
|
176
|
-
super_admin: boolean;
|
|
177
|
-
multi_company: boolean;
|
|
178
|
-
photo: string;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
export declare enum LOCAL_STORAGE_KEY {
|
|
182
|
-
TOKEN_GLOBAL_KEY = "tokenGlobal",
|
|
183
|
-
TOKEN_USER_KEY = "tokenUser",
|
|
184
|
-
CONSOLE_TOKEN_KEY = "consoleToken",
|
|
185
|
-
TOKEN_INFO_KEY = "tokenInfo",
|
|
186
|
-
TOKEN_CONSOLE_INFO_KEY = "tokenConsoleInfo"
|
|
187
|
-
}
|
|
188
|
-
export type TokenType = 'globalTokenData' | 'userTokenData' | 'consoleTokenData' | 'tokenInfoData' | 'tokenConsoleInfoData';
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef } from "@angular/core";
|
|
2
|
-
import { Router } from "@angular/router";
|
|
3
|
-
import { CbmWebSocketService } from "../../domain/services/web-socket/web-socket.service";
|
|
4
|
-
export declare function webSocketFactory(appRef: ApplicationRef, router: Router): CbmWebSocketService;
|