@cbm-common/cbm-types 0.0.249 → 0.0.250
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/domain/models/employee.model.d.ts +176 -0
- package/package.json +1 -1
- package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +0 -10
- package/lib/components/record-detail-metadata/components/options/options.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +0 -13
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +0 -9
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +0 -91
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +0 -7
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +0 -5
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +0 -9
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export declare namespace CbmEmployeeModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
department_id?: string;
|
|
6
|
+
position_id?: string;
|
|
7
|
+
marital_status_id?: string;
|
|
8
|
+
document_type_id?: string;
|
|
9
|
+
name_surname?: string;
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
items: ListResponse.Data[];
|
|
15
|
+
}
|
|
16
|
+
namespace ListResponse {
|
|
17
|
+
interface Data {
|
|
18
|
+
_id: string;
|
|
19
|
+
company_id: string;
|
|
20
|
+
company_NIF: string;
|
|
21
|
+
company_trade_name: string;
|
|
22
|
+
company_business_name: string;
|
|
23
|
+
company_address: string;
|
|
24
|
+
company_logo: string;
|
|
25
|
+
country_id: string;
|
|
26
|
+
country_code: string;
|
|
27
|
+
country_name: string;
|
|
28
|
+
country_short_name: string;
|
|
29
|
+
period_id: string;
|
|
30
|
+
period_year: string;
|
|
31
|
+
department_id: string;
|
|
32
|
+
department_code: number;
|
|
33
|
+
department_name: string;
|
|
34
|
+
position_id: string;
|
|
35
|
+
position_code: number;
|
|
36
|
+
position_name: string;
|
|
37
|
+
marital_status_id: string;
|
|
38
|
+
marital_status_code: string;
|
|
39
|
+
marital_status_name: string;
|
|
40
|
+
document_type_id: string;
|
|
41
|
+
document_type_code: string;
|
|
42
|
+
document_type_name: string;
|
|
43
|
+
sequence_number: number;
|
|
44
|
+
document_number: string;
|
|
45
|
+
names: string;
|
|
46
|
+
surnames: string;
|
|
47
|
+
address: string;
|
|
48
|
+
phone_code: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
cellphone: string;
|
|
51
|
+
email: string[];
|
|
52
|
+
gender: string;
|
|
53
|
+
birthdate: number;
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
deleted: boolean;
|
|
56
|
+
user_id: string;
|
|
57
|
+
created_user: string;
|
|
58
|
+
created_at: number;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
interface SaveBody {
|
|
62
|
+
company_NIF: string;
|
|
63
|
+
company_trade_name: string;
|
|
64
|
+
company_business_name: string;
|
|
65
|
+
company_address: string;
|
|
66
|
+
company_email?: string;
|
|
67
|
+
company_logo: string;
|
|
68
|
+
department_id: string;
|
|
69
|
+
department_code: number;
|
|
70
|
+
department_name: string;
|
|
71
|
+
position_id: string;
|
|
72
|
+
position_code: number;
|
|
73
|
+
position_name: string;
|
|
74
|
+
marital_status_id: string;
|
|
75
|
+
marital_status_code: string;
|
|
76
|
+
marital_status_name: string;
|
|
77
|
+
document_type_id: string;
|
|
78
|
+
document_type_code: string;
|
|
79
|
+
document_type_name: string;
|
|
80
|
+
document_number: string;
|
|
81
|
+
names: string;
|
|
82
|
+
surnames: string;
|
|
83
|
+
address: string;
|
|
84
|
+
phone_code: string;
|
|
85
|
+
phone: string;
|
|
86
|
+
cellphone: string;
|
|
87
|
+
email: string[];
|
|
88
|
+
email_business: string[];
|
|
89
|
+
gender: string;
|
|
90
|
+
birthdate: number;
|
|
91
|
+
}
|
|
92
|
+
interface UpdateBody {
|
|
93
|
+
company_NIF: string;
|
|
94
|
+
company_trade_name: string;
|
|
95
|
+
company_business_name: string;
|
|
96
|
+
company_address: string;
|
|
97
|
+
company_email?: string;
|
|
98
|
+
company_logo: string;
|
|
99
|
+
department_id: string;
|
|
100
|
+
department_code: number;
|
|
101
|
+
department_name: string;
|
|
102
|
+
position_id: string;
|
|
103
|
+
position_code: number;
|
|
104
|
+
position_name: string;
|
|
105
|
+
marital_status_id: string;
|
|
106
|
+
marital_status_code: string;
|
|
107
|
+
marital_status_name: string;
|
|
108
|
+
document_type_id: string;
|
|
109
|
+
document_type_code: string;
|
|
110
|
+
document_type_name: string;
|
|
111
|
+
document_number: string;
|
|
112
|
+
names: string;
|
|
113
|
+
surnames: string;
|
|
114
|
+
address: string;
|
|
115
|
+
phone_code: string;
|
|
116
|
+
phone: string;
|
|
117
|
+
cellphone: string;
|
|
118
|
+
email: string[];
|
|
119
|
+
email_business: string[];
|
|
120
|
+
gender: string;
|
|
121
|
+
birthdate: number;
|
|
122
|
+
}
|
|
123
|
+
interface GetOneResponse {
|
|
124
|
+
success: boolean;
|
|
125
|
+
data: GetOneResponse.Data;
|
|
126
|
+
}
|
|
127
|
+
namespace GetOneResponse {
|
|
128
|
+
interface Data {
|
|
129
|
+
_id: string;
|
|
130
|
+
company_id: string;
|
|
131
|
+
company_NIF: string;
|
|
132
|
+
company_trade_name: string;
|
|
133
|
+
company_business_name: string;
|
|
134
|
+
company_address: string;
|
|
135
|
+
company_logo: string;
|
|
136
|
+
country_id: string;
|
|
137
|
+
country_code: string;
|
|
138
|
+
country_name: string;
|
|
139
|
+
country_short_name: string;
|
|
140
|
+
period_id: string;
|
|
141
|
+
period_year: string;
|
|
142
|
+
department_id: string;
|
|
143
|
+
department_code: number;
|
|
144
|
+
department_name: string;
|
|
145
|
+
position_id: string;
|
|
146
|
+
position_code: number;
|
|
147
|
+
position_name: string;
|
|
148
|
+
marital_status_id: string;
|
|
149
|
+
marital_status_code: string;
|
|
150
|
+
marital_status_name: string;
|
|
151
|
+
document_type_id: string;
|
|
152
|
+
document_type_code: string;
|
|
153
|
+
document_type_name: string;
|
|
154
|
+
sequence_number: number;
|
|
155
|
+
document_number: string;
|
|
156
|
+
names: string;
|
|
157
|
+
surnames: string;
|
|
158
|
+
address: string;
|
|
159
|
+
phone_code: string;
|
|
160
|
+
phone: string;
|
|
161
|
+
cellphone: string;
|
|
162
|
+
email: string[];
|
|
163
|
+
emails_company: string[];
|
|
164
|
+
gender: string;
|
|
165
|
+
birthdate: number;
|
|
166
|
+
enabled: boolean;
|
|
167
|
+
deleted: boolean;
|
|
168
|
+
user_id: string;
|
|
169
|
+
user_inactive_at: number;
|
|
170
|
+
disabled_reason: string;
|
|
171
|
+
user_inactive_name: string;
|
|
172
|
+
created_user: string;
|
|
173
|
+
created_at: number;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
-
private element;
|
|
4
|
-
private renderer2;
|
|
5
|
-
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
toggle(event: Event): void;
|
|
11
|
-
private toggleMenu;
|
|
12
|
-
initStyle(): void;
|
|
13
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
export declare class DropdownDirective implements AfterViewInit {
|
|
3
|
-
private elementRef;
|
|
4
|
-
private renderer;
|
|
5
|
-
private isOpen;
|
|
6
|
-
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
-
ngAfterViewInit(): void;
|
|
8
|
-
toggleDropdown(event: MouseEvent): void;
|
|
9
|
-
closeDropdown(event: MouseEvent): void;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WritableSignal } from '@angular/core';
|
|
2
|
-
import { Router, ActivatedRoute, Params } from '@angular/router';
|
|
3
|
-
import { CbmRecordDetailMetadataModel } from "../../types";
|
|
4
|
-
export declare class OptionsComponent {
|
|
5
|
-
private router;
|
|
6
|
-
private route;
|
|
7
|
-
constructor(router: Router, route: ActivatedRoute);
|
|
8
|
-
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
9
|
-
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
10
|
-
optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
|
|
11
|
-
executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
|
|
12
|
-
navigate(routerLink?: string, queryParams?: Params): void;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
-
private element;
|
|
4
|
-
private renderer2;
|
|
5
|
-
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
-
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
toggle(event: Event): void;
|
|
11
|
-
private toggleMenu;
|
|
12
|
-
initStyle(): void;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
export declare class DropdownDirective {
|
|
3
|
-
private elementRef;
|
|
4
|
-
private renderer;
|
|
5
|
-
private isOpen;
|
|
6
|
-
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
-
toggleDropdown(event: MouseEvent): void;
|
|
8
|
-
closeDropdown(event: MouseEvent): void;
|
|
9
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
export declare namespace CbmSalesPendingDocumentModel {
|
|
2
|
-
type TTypeEstablishment = 'matrix' | 'branch';
|
|
3
|
-
export interface ListParams {
|
|
4
|
-
page: number;
|
|
5
|
-
size: number;
|
|
6
|
-
document_number?: string;
|
|
7
|
-
date_end?: number;
|
|
8
|
-
date_begin?: number;
|
|
9
|
-
client_id?: string;
|
|
10
|
-
client_branch_id?: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ListResponse {
|
|
14
|
-
success: boolean;
|
|
15
|
-
pageNum: number;
|
|
16
|
-
pageSize: number;
|
|
17
|
-
pages: number;
|
|
18
|
-
total: number;
|
|
19
|
-
totales: ListResponse.totales;
|
|
20
|
-
items: ListResponse.Item[];
|
|
21
|
-
}
|
|
22
|
-
export namespace ListResponse {
|
|
23
|
-
interface Item {
|
|
24
|
-
_id: string;
|
|
25
|
-
created_at: number;
|
|
26
|
-
document_nomenclature: string;
|
|
27
|
-
document_emission_point_number: string;
|
|
28
|
-
document_sequence: string;
|
|
29
|
-
balance: number;
|
|
30
|
-
client_id: string;
|
|
31
|
-
client_payment_deadline?: number;
|
|
32
|
-
client_credit_limit?: number;
|
|
33
|
-
client_business_name: string;
|
|
34
|
-
client_trade_name: string;
|
|
35
|
-
client_document_number: string;
|
|
36
|
-
client_credit_application: boolean;
|
|
37
|
-
client_price_list_id: string;
|
|
38
|
-
client_price_list_code: string;
|
|
39
|
-
client_price_list_name: string;
|
|
40
|
-
client_document_type_id: string;
|
|
41
|
-
client_document_type_name: string;
|
|
42
|
-
client_document_type_code: string;
|
|
43
|
-
client_category_id: string;
|
|
44
|
-
client_category_name: string;
|
|
45
|
-
client_branch_id: string;
|
|
46
|
-
client_branch_code: string;
|
|
47
|
-
client_branch_name: string;
|
|
48
|
-
client_branch_address: string;
|
|
49
|
-
client_branch_email: string[];
|
|
50
|
-
client_branch_phone_code?: string;
|
|
51
|
-
client_branch_phone?: string;
|
|
52
|
-
client_branch_cellphone?: string;
|
|
53
|
-
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
54
|
-
client_branch_province_id?: string;
|
|
55
|
-
client_branch_province_code?: string;
|
|
56
|
-
client_branch_province_name?: string;
|
|
57
|
-
client_branch_canton_id?: string;
|
|
58
|
-
client_branch_canton_code?: string;
|
|
59
|
-
client_branch_canton_name?: string;
|
|
60
|
-
client_branch_parish_id?: string;
|
|
61
|
-
client_branch_parish_code?: string;
|
|
62
|
-
client_branch_parish_name?: string;
|
|
63
|
-
client_branch_longitude?: number;
|
|
64
|
-
client_branch_latitude?: number;
|
|
65
|
-
client_branch_seller_id: string;
|
|
66
|
-
client_branch_seller_identification_number: string;
|
|
67
|
-
client_branch_seller_full_name: string;
|
|
68
|
-
client_branch_seller_address: string;
|
|
69
|
-
client_branch_seller_email: string[];
|
|
70
|
-
client_branch_seller_cellphone: string;
|
|
71
|
-
client_branch_contact_id?: string;
|
|
72
|
-
client_branch_contact_identification_number?: string;
|
|
73
|
-
client_branch_contact_full_name?: string;
|
|
74
|
-
client_branch_contact_cellphone?: string;
|
|
75
|
-
client_branch_contact_email?: string[];
|
|
76
|
-
new_document_number: string;
|
|
77
|
-
date: number;
|
|
78
|
-
type: string;
|
|
79
|
-
checked?: boolean;
|
|
80
|
-
}
|
|
81
|
-
interface totales {
|
|
82
|
-
total_retention?: number;
|
|
83
|
-
total_down_payment?: number;
|
|
84
|
-
total_credit_note?: number;
|
|
85
|
-
total_initial_balance_retention?: number;
|
|
86
|
-
total_initial_balance_down_payment?: number;
|
|
87
|
-
total_initial_balance_credit_note?: number;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export {};
|
|
91
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
|
|
3
|
-
import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
|
|
4
|
-
export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
|
|
5
|
-
private service;
|
|
6
|
-
constructor(service: ICbmSalesPendingDocumentRepository);
|
|
7
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
|
|
3
|
-
export interface ICbmBlanketAgreementCategoryServiceRepository {
|
|
4
|
-
list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
|
|
5
|
-
save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
6
|
-
delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
7
|
-
}
|
package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
3
|
-
export interface ICbmSalesPendingDocumentRepository {
|
|
4
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
5
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
4
|
-
export declare class CbmSalesPendingDocumentService {
|
|
5
|
-
private http;
|
|
6
|
-
constructor(http: HttpClient);
|
|
7
|
-
private readonly url;
|
|
8
|
-
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
9
|
-
}
|