@cbm-common/cbm-types 0.0.235 → 0.0.236

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.
@@ -24,6 +24,8 @@ import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
24
24
  import { CbmTreeSelect } from '../tree-select/types';
25
25
  import { IPagination, TStatus } from './types';
26
26
  import { AccountValidatorsDomainService } from '../../domain/services/account-validators.domain.service';
27
+ import { CbmPersonTypeUAFEModel } from '../../domain/models/person-type-uafe.domain.model';
28
+ import { CbmPersonTypeUAFERepository } from '../../domain/repositories/person-type-uafe.domain.repository';
27
29
  export type TSaveOptions = 'new' | 'view' | 'close';
28
30
  export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
29
31
  private destroyRef;
@@ -38,8 +40,9 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
38
40
  private rateRepository;
39
41
  private clientCategoryRepository;
40
42
  private settingsProfessionsRepository;
43
+ private personTypeUAFERepository;
41
44
  private readonly accountValidatorsDomainService;
42
- constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, rateRepository: CbmRateDomainRepository, clientCategoryRepository: CbmClientCategoryDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository, accountValidatorsDomainService: AccountValidatorsDomainService);
45
+ constructor(destroyRef: DestroyRef, documentTypeRepository: CbmDocumentTypeDomainRepository, notificationService: CbmNotificationService, billingRepository: CbmBillingDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, sellerRepository: CbmSellerDomainRepository, priceListRepository: CbmPriceListDomainRepository, clientGroupRepository: CbmClientGroupRepository, clientRepository: CbmClientDomainRepository, rateRepository: CbmRateDomainRepository, clientCategoryRepository: CbmClientCategoryDomainRepository, settingsProfessionsRepository: CbmSettingsProfessionsDomainRepository, personTypeUAFERepository: CbmPersonTypeUAFERepository, accountValidatorsDomainService: AccountValidatorsDomainService);
43
46
  dropdownMenuRef: import("@angular/core").Signal<ElementRef<HTMLUListElement> | undefined>;
44
47
  clientId: import("@angular/core").InputSignal<string | undefined>;
45
48
  isFromOrigin: import("@angular/core").InputSignal<boolean | undefined>;
@@ -51,7 +54,9 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
51
54
  saveAndView: import("@angular/core").OutputEmitterRef<any>;
52
55
  saveAndNew: import("@angular/core").OutputEmitterRef<any>;
53
56
  update: import("@angular/core").OutputEmitterRef<any>;
57
+ allDocumentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
54
58
  documentTypes: import("@angular/core").WritableSignal<CbmDocumentTypeModel.ListResponse.Data[]>;
59
+ subjectClasses: import("@angular/core").WritableSignal<CbmPersonTypeUAFEModel.ListResponse.Item[]>;
55
60
  countryCodes: import("@angular/core").WritableSignal<CbmCountryCodeModel.ListResponse.Data[]>;
56
61
  sellers: import("@angular/core").WritableSignal<CbmSellerModel.ListResponse.Data[]>;
57
62
  priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[]>;
@@ -63,6 +68,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
63
68
  statusOfExtractClientData: import("@angular/core").WritableSignal<TStatus>;
64
69
  statusOfFetchCountryCodes: import("@angular/core").WritableSignal<TStatus>;
65
70
  statusOfFetchSellers: import("@angular/core").WritableSignal<TStatus>;
71
+ statusOfFetchSubjectClasses: import("@angular/core").WritableSignal<TStatus>;
66
72
  statusOfFetchPriceLists: import("@angular/core").WritableSignal<TStatus>;
67
73
  statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
68
74
  statusOfSaveClient: import("@angular/core").WritableSignal<TStatus>;
@@ -79,6 +85,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
79
85
  subjectToSearchProfessionType$: Subject<string>;
80
86
  ratePagination: import("@angular/core").WritableSignal<IPagination>;
81
87
  professionPagination: import("@angular/core").WritableSignal<IPagination>;
88
+ subjectClassPagination: import("@angular/core").WritableSignal<IPagination>;
82
89
  defaultDocumentNumber: string | null;
83
90
  DOCUMENT_TYPES_CODES: {
84
91
  readonly RUC: "04";
@@ -93,6 +100,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
93
100
  documentType: FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
94
101
  documentNumber: FormControl<string | null>;
95
102
  category: FormControl<CbmClientGroupModel.ListAsTreeResponse.Category | null>;
103
+ subjectClass: FormControl<CbmPersonTypeUAFEModel.ListResponse.Item | null>;
96
104
  businessName: FormControl<string | null>;
97
105
  tradename: FormControl<string | null>;
98
106
  address: FormControl<string | null>;
@@ -116,6 +124,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
116
124
  documentListener: () => void;
117
125
  onInputConventionalPhone(event: Event): void;
118
126
  get documentTypeControl(): FormControl<CbmDocumentTypeModel.ListResponse.Data | null>;
127
+ get subjectClassControl(): FormControl<CbmPersonTypeUAFEModel.ListResponse.Item | null>;
119
128
  get documentNumberControl(): FormControl<string | null>;
120
129
  get categoryControl(): FormControl<CbmClientGroupModel.ListAsTreeResponse.Category | null>;
121
130
  get businessNameControl(): FormControl<string | null>;
@@ -149,6 +158,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
149
158
  private clearOptionalControlsValidators;
150
159
  fetchClientData(): void;
151
160
  fetchDocumentTypes(searchTerm?: string): void;
161
+ private filterDocumentTypesBySubject;
152
162
  getDocumentNumberMaxLength(): number | undefined;
153
163
  getDocumentNumberPattern(): string;
154
164
  extractClientData(): void;
@@ -157,6 +167,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
157
167
  fetchCountryCodes(): void;
158
168
  fetchProfession(searchTerm?: string): void;
159
169
  fetchSellers(searchTerm?: string): void;
170
+ fetchSubjectClasses(searchTerm?: string): void;
160
171
  fetchPriceLists(searchTerm?: string): void;
161
172
  fetchCategories(searchTerm?: string): void;
162
173
  removeEmail(email: string): void;
@@ -76,6 +76,10 @@ export declare namespace CbmClientModel {
76
76
  comment?: string;
77
77
  gender?: string;
78
78
  marital_status?: string;
79
+ nationality_id?: string;
80
+ nationality_name?: string;
81
+ nationality_code_export?: string;
82
+ nationality_code_uafe?: string;
79
83
  }
80
84
  }
81
85
  interface GetOneResponse {
@@ -132,6 +136,10 @@ export declare namespace CbmClientModel {
132
136
  comment?: string;
133
137
  billing_date?: number;
134
138
  reason_request?: string;
139
+ nationality_id?: string;
140
+ nationality_name?: string;
141
+ nationality_code_export?: string;
142
+ nationality_code_uafe?: string;
135
143
  }
136
144
  namespace Data {
137
145
  interface Branch {
@@ -0,0 +1,59 @@
1
+ export declare namespace CbmPersonTypeUAFEModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ description?: string;
6
+ code?: string;
7
+ document_type_id?: string;
8
+ }
9
+ interface ListResponse {
10
+ success: boolean;
11
+ pageNum: number;
12
+ pageSize: number;
13
+ pages: number;
14
+ total: number;
15
+ items: ListResponse.Item[];
16
+ }
17
+ namespace ListResponse {
18
+ interface Item {
19
+ _id: string;
20
+ description?: string;
21
+ code?: string;
22
+ user_id?: string;
23
+ enabled?: boolean;
24
+ created_user?: string;
25
+ document_types?: Item.DocumentType[];
26
+ created_at?: number;
27
+ }
28
+ namespace Item {
29
+ interface DocumentType {
30
+ _id: string;
31
+ description: string;
32
+ code: string;
33
+ user_id: string;
34
+ enabled: boolean;
35
+ created_user: string;
36
+ created_at: number;
37
+ }
38
+ }
39
+ interface SaveBody {
40
+ }
41
+ namespace SaveBody {
42
+ interface Detail {
43
+ }
44
+ }
45
+ interface GetOneResponse {
46
+ success: boolean;
47
+ data: GetOneResponse.Data;
48
+ }
49
+ namespace GetOneResponse {
50
+ interface Data {
51
+ }
52
+ }
53
+ interface ConfirmResponse {
54
+ success: boolean;
55
+ message: string;
56
+ data?: any;
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,8 @@
1
+ import { CbmPersonTypeUAFEModel } from "../models/person-type-uafe.domain.model";
2
+ import { Observable } from "rxjs";
3
+ import { ICbmPersonTypeUAFERepository } from "../../infrastructure/repositories/person-type-uafe.infrastructure.repository copy";
4
+ export declare class CbmPersonTypeUAFERepository implements ICbmPersonTypeUAFERepository {
5
+ private service;
6
+ constructor(service: CbmPersonTypeUAFERepository);
7
+ list(params: CbmPersonTypeUAFEModel.ListParams): Observable<CbmPersonTypeUAFEModel.ListResponse>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { CbmPersonTypeUAFEModel } from "../models/person-type-uafe.domain.model";
2
+ import { Observable } from "rxjs";
3
+ import { ICbmPersonTypeUAFERepository } from "../../infrastructure/repositories/person-type-uafe.infrastructure.repository copy";
4
+ export declare class CbmPersonTypeUAFERepository implements ICbmPersonTypeUAFERepository {
5
+ private service;
6
+ constructor(service: CbmPersonTypeUAFERepository);
7
+ list(params: CbmPersonTypeUAFEModel.ListParams): Observable<CbmPersonTypeUAFEModel.ListResponse>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmPersonTypeUAFEModel } from "../../domain/models/person-type-uafe.domain.model";
3
+ export interface ICbmPersonTypeUAFERepository {
4
+ list(params: CbmPersonTypeUAFEModel.ListParams): Observable<CbmPersonTypeUAFEModel.ListResponse>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import { CbmPersonTypeUAFEModel } from "../../domain/models/person-type-uafe.domain.model";
4
+ import { ICbmPersonTypeUAFERepository } from "../repositories/person-type-uafe.infrastructure.repository copy";
5
+ export declare class CbmPersonTypeUAFEService implements ICbmPersonTypeUAFERepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly url;
9
+ list(params: CbmPersonTypeUAFEModel.ListParams): Observable<CbmPersonTypeUAFEModel.ListResponse>;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.235",
3
+ "version": "0.0.236",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -566,3 +566,6 @@ export * from './lib/domain/services/item-selection.domain.service';
566
566
 
567
567
  //#region PIN service
568
568
  export * from './lib/domain/services/PIN.domain.service';
569
+ //#region person type uafe repository
570
+ export * from './lib/domain/repositories/person-type-uafe.domain.repository';
571
+ export * from './lib/domain/models/person-type-uafe.domain.model';