@cbm-common/cbm-types 0.0.106 → 0.0.108

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.
@@ -122,6 +122,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
122
122
  get addressControl(): FormControl<string | null>;
123
123
  get phoneCodeControl(): FormControl<string | null>;
124
124
  get cellphoneControl(): FormControl<string | null>;
125
+ get conventionalTelephoneControl(): FormControl<string>;
125
126
  get emailsControl(): FormControl<string[] | null>;
126
127
  get emailControl(): FormControl<string | null>;
127
128
  get sellerControl(): FormControl<CbmSellerModel.ListResponse.Data | null>;
@@ -145,6 +146,7 @@ export declare class CbmAddClientComponent implements OnInit, AfterViewInit {
145
146
  emailsValidator(): ValidatorFn;
146
147
  makeSubscriptions(): void;
147
148
  makeInitialRequests(): void;
149
+ private clearOptionalControlsValidators;
148
150
  fetchClientData(): void;
149
151
  fetchDocumentTypes(searchTerm?: string): void;
150
152
  getDocumentNumberMaxLength(): number | undefined;
@@ -1,11 +1,11 @@
1
1
  import { DestroyRef, OnInit } from '@angular/core';
2
2
  import { FormArray, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
3
- import { TStatus } from "../../../accounting-seat/types";
4
- import { TOptionType, CbmDocumentsReferenceModel, IAddedDocument, IListData, TLabels, ICollectionOptions, Pagination } from "../../types";
5
- import { CbmModalConfirmComponent } from "../../../modal-confirm/modal-confirm";
6
- import { CbmDocumentReferenceModel } from "../../../../domain/models/document-reference.domain.model";
7
- import { CbmDocumentReferenceDomainRepository } from "../../../../domain/repositories/document-reference.domain.repository";
8
- import { CbmNotificationService } from "../../../../domain/services/notification/notification.service";
3
+ import { TStatus } from '../../../accounting-seat/types';
4
+ import { TOptionType, CbmDocumentsReferenceModel, IAddedDocument, IListData, TLabels, ICollectionOptions, Pagination } from '../../types';
5
+ import { CbmModalConfirmComponent } from '../../../modal-confirm/modal-confirm';
6
+ import { CbmDocumentReferenceModel } from '../../../../domain/models/document-reference.domain.model';
7
+ import { CbmDocumentReferenceDomainRepository } from '../../../../domain/repositories/document-reference.domain.repository';
8
+ import { CbmNotificationService } from '../../../../domain/services/notification/notification.service';
9
9
  export declare class AddComponent implements OnInit {
10
10
  private documentReferenceRepository;
11
11
  private notificationService;
@@ -20,6 +20,7 @@ export declare class AddComponent implements OnInit {
20
20
  config_methods_to: import("@angular/core").InputSignal<CbmDocumentsReferenceModel.ConfigMethod | undefined>;
21
21
  config_methods_by: import("@angular/core").InputSignal<CbmDocumentsReferenceModel.ConfigMethod | undefined>;
22
22
  modalConfirm: import("@angular/core").InputSignal<CbmModalConfirmComponent>;
23
+ activeTabLabel: import("@angular/core").InputSignal<string | null | undefined>;
23
24
  type_of_reference: import("@angular/core").InputSignal<"document_by" | "document_to">;
24
25
  type_of_reference_data: import("@angular/core").Signal<"document_by" | "document_to">;
25
26
  goBack: import("@angular/core").OutputEmitterRef<void>;
@@ -3,5 +3,6 @@ import { TabItemComponent } from '../tab-item/tab-item.component';
3
3
  export declare class TabsComponent implements AfterContentInit {
4
4
  tabs: import("@angular/core").Signal<readonly TabItemComponent[]>;
5
5
  activeTab: import("@angular/core").WritableSignal<TabItemComponent | null>;
6
+ activeTabLabel: import("@angular/core").OutputEmitterRef<string>;
6
7
  ngAfterContentInit(): void;
7
8
  }
@@ -1,5 +1,5 @@
1
1
  import { NgSelectConfig } from '@ng-select/ng-select';
2
- import { CbmModalConfirmComponent } from "../modal-confirm/modal-confirm";
2
+ import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
3
3
  import { TLabels, TOptionType, CbmDocumentsReferenceModel } from './types';
4
4
  export declare class CbmDocumentsReferenceComponent {
5
5
  private config;
@@ -17,5 +17,6 @@ export declare class CbmDocumentsReferenceComponent {
17
17
  config_methods_by: import("@angular/core").InputSignal<CbmDocumentsReferenceModel.ConfigMethod | undefined>;
18
18
  isAddViewVisible: import("@angular/core").WritableSignal<boolean>;
19
19
  tab_name: import("@angular/core").WritableSignal<"document_by" | "document_to">;
20
+ activeTabLabel: import("@angular/core").WritableSignal<string | null>;
20
21
  constructor(config: NgSelectConfig);
21
22
  }
@@ -0,0 +1,8 @@
1
+ import { Location } from '@angular/common';
2
+ import { Router } from '@angular/router';
3
+ export declare class CbmNotFound {
4
+ private readonly location;
5
+ private readonly router;
6
+ constructor(location: Location, router: Router);
7
+ goBack(): void;
8
+ }
@@ -150,6 +150,9 @@ export declare namespace CbmClientModel {
150
150
  seller_id?: string;
151
151
  seller_identification_number?: string;
152
152
  seller_full_name?: string;
153
+ seller_address?: string;
154
+ seller_email?: string[];
155
+ seller_cellphone?: string;
153
156
  enabled?: boolean;
154
157
  type_establishment?: string;
155
158
  deleted?: boolean;
@@ -327,8 +330,11 @@ export declare namespace CbmClientModel {
327
330
  professions_code?: string;
328
331
  professions_name?: string;
329
332
  category_client_name?: string;
330
- seller_identification_number?: string;
331
- seller_full_name?: string;
333
+ seller_identification_number: string;
334
+ seller_full_name: string;
335
+ seller_address: string;
336
+ seller_email?: string[];
337
+ seller_cellphone?: string;
332
338
  price_list_name?: string;
333
339
  price_list_code?: string;
334
340
  }
@@ -0,0 +1,70 @@
1
+ export declare namespace ServiceForInterestDomainModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ code?: string;
6
+ description?: string;
7
+ enabled?: boolean;
8
+ deleted?: boolean;
9
+ }
10
+ interface ListResponse {
11
+ success: boolean;
12
+ pageSize: number;
13
+ pageNum: number;
14
+ pages: number;
15
+ total: number;
16
+ items: ListResponse.Item[];
17
+ }
18
+ namespace ListResponse {
19
+ interface Item {
20
+ _id: string;
21
+ company_id: string;
22
+ code: string;
23
+ description: string;
24
+ enabled: boolean;
25
+ bulk_load: boolean;
26
+ deleted: boolean;
27
+ created_user: string;
28
+ deleted_at: number;
29
+ deleted_user: string;
30
+ created_at: number;
31
+ }
32
+ }
33
+ interface GetOneResponse {
34
+ success: boolean;
35
+ data: GetOneResponse.Data;
36
+ }
37
+ namespace GetOneResponse {
38
+ interface Data {
39
+ _id: string;
40
+ company_id: string;
41
+ code: string;
42
+ description: string;
43
+ enabled: boolean;
44
+ bulk_load: boolean;
45
+ deleted: boolean;
46
+ deleted_user: string;
47
+ created_user: string;
48
+ deleted_at: number;
49
+ created_at: number;
50
+ user_inactive_at: number;
51
+ user_inactive_name: string;
52
+ disabled_reason: string;
53
+ }
54
+ }
55
+ interface SaveBody {
56
+ description: string;
57
+ }
58
+ interface UpdateBody {
59
+ description?: string;
60
+ }
61
+ interface ChangeStatusBody {
62
+ enabled: boolean;
63
+ disabled_reason?: string;
64
+ }
65
+ interface ConfirmResponse {
66
+ success: boolean;
67
+ message: string;
68
+ data?: any;
69
+ }
70
+ }
@@ -0,0 +1,13 @@
1
+ import { ServiceForInterestDomainModel } from '../models/service-for-interest.domain.model';
2
+ import { Observable } from 'rxjs';
3
+ import { IServiceForInterestInfrastructureRepository } from '../../infrastructure/repositories/service-for-interest.infrastructure.repository';
4
+ export declare class ServiceForInterestDomainRepository implements IServiceForInterestInfrastructureRepository {
5
+ private service;
6
+ constructor(service: IServiceForInterestInfrastructureRepository);
7
+ list(params: ServiceForInterestDomainModel.ListParams): Observable<ServiceForInterestDomainModel.ListResponse>;
8
+ getOne(id: string): Observable<ServiceForInterestDomainModel.GetOneResponse>;
9
+ save(data: ServiceForInterestDomainModel.SaveBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
10
+ update(id: string, data: ServiceForInterestDomainModel.UpdateBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
11
+ changeStatus(id: string, data: ServiceForInterestDomainModel.ChangeStatusBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
12
+ delete(id: string): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import { Observable } from "rxjs";
2
+ import { ServiceForInterestDomainModel } from "../../domain/models/service-for-interest.domain.model";
3
+ export interface IServiceForInterestInfrastructureRepository {
4
+ list(params: ServiceForInterestDomainModel.ListParams): Observable<ServiceForInterestDomainModel.ListResponse>;
5
+ getOne(id: string): Observable<ServiceForInterestDomainModel.GetOneResponse>;
6
+ save(data: ServiceForInterestDomainModel.SaveBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
7
+ update(id: string, data: ServiceForInterestDomainModel.UpdateBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
8
+ changeStatus(id: string, data: ServiceForInterestDomainModel.ChangeStatusBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
9
+ delete(id: string): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { IServiceForInterestInfrastructureRepository } from '../repositories/service-for-interest.infrastructure.repository';
4
+ import { ServiceForInterestDomainModel } from '../../domain/models/service-for-interest.domain.model';
5
+ export declare class ServiceForInterestInfrastructureService implements IServiceForInterestInfrastructureRepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly url;
9
+ list(params: ServiceForInterestDomainModel.ListParams): Observable<ServiceForInterestDomainModel.ListResponse>;
10
+ getOne(id: string): Observable<ServiceForInterestDomainModel.GetOneResponse>;
11
+ save(data: ServiceForInterestDomainModel.SaveBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
12
+ update(id: string, data: ServiceForInterestDomainModel.UpdateBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
13
+ changeStatus(id: string, data: ServiceForInterestDomainModel.ChangeStatusBody): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
14
+ delete(id: string): Observable<ServiceForInterestDomainModel.ConfirmResponse>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -456,3 +456,7 @@ export * from './lib/domain/models/sri-payment-term.domain.model';
456
456
  //#region work order repository
457
457
  export * from './lib/domain/repositories/work-order.domain.repository';
458
458
  export * from './lib/domain/models/work-order.domain.model';
459
+
460
+ //#region service for interest repository
461
+ export * from './lib/domain/repositories/service-for-interest.domain.repository';
462
+ export * from './lib/domain/models/service-for-interest.domain.model';