@cbm-common/cbm-types 0.0.191 → 0.0.192

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.
@@ -8,7 +8,6 @@ import { CbmProviderModel } from '../../domain/models/provider.domain.model';
8
8
  import { CbmBillingDomainRepository } from '../../domain/repositories/billing.domain.repository';
9
9
  import { CbmCountryCodeDomainRepository } from '../../domain/repositories/country-code.domain.repository';
10
10
  import { CbmDocumentTypeDomainRepository } from '../../domain/repositories/document-type.domain.repository';
11
- import { CbmProviderCategoryDomainRepository } from '../../domain/repositories/provider-category.domain.repository';
12
11
  import { CbmProviderGroupDomainRepository } from '../../domain/repositories/provider-group.domain.repository';
13
12
  import { CbmProviderRepository } from '../../domain/repositories/provider.domain.repository';
14
13
  import { CbmNotificationService } from '../../remotes/services.remote';
@@ -18,6 +17,7 @@ import { CbmTreeSelect } from '../tree-select/types';
18
17
  import { TStatus } from './types';
19
18
  import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
20
19
  import { AccountValidatorsDomainService } from '../../domain/services/account-validators.domain.service';
20
+ import { IAddProviderModel } from './add-provider.model';
21
21
  export declare class CbmAddProviderComponent {
22
22
  private providerRepository;
23
23
  private providerGroupRepository;
@@ -26,12 +26,12 @@ export declare class CbmAddProviderComponent {
26
26
  private billingRepository;
27
27
  private notificationService;
28
28
  private destroyRef;
29
- private providerCategoryRepository;
30
29
  private readonly accountValidatorsDomainService;
31
- constructor(providerRepository: CbmProviderRepository, providerGroupRepository: CbmProviderGroupDomainRepository, documentTypeRepository: CbmDocumentTypeDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, billingRepository: CbmBillingDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, providerCategoryRepository: CbmProviderCategoryDomainRepository, accountValidatorsDomainService: AccountValidatorsDomainService);
30
+ constructor(providerRepository: CbmProviderRepository, providerGroupRepository: CbmProviderGroupDomainRepository, documentTypeRepository: CbmDocumentTypeDomainRepository, countryCodeRepository: CbmCountryCodeDomainRepository, billingRepository: CbmBillingDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, accountValidatorsDomainService: AccountValidatorsDomainService);
32
31
  confirmationModalRef: import("@angular/core").Signal<ConfirmationModal | undefined>;
33
32
  modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent | undefined>;
34
33
  providerId: import("@angular/core").InputSignal<string | undefined>;
34
+ componentConfig: import("@angular/core").InputSignal<IAddProviderModel.ComponentConfig>;
35
35
  cancel: import("@angular/core").OutputEmitterRef<void>;
36
36
  save: import("@angular/core").OutputEmitterRef<any>;
37
37
  update: import("@angular/core").OutputEmitterRef<any>;
@@ -0,0 +1,6 @@
1
+ export declare namespace IAddProviderModel {
2
+ interface ComponentConfig {
3
+ visualization: 'component' | 'modal';
4
+ show_title: boolean;
5
+ }
6
+ }
@@ -15,7 +15,7 @@ export declare class GeneralHistoryComponent implements OnInit {
15
15
  private historyRepository;
16
16
  private notificationService;
17
17
  private userRepository;
18
- private authService;
18
+ private authReactiveService;
19
19
  collection_id: import("@angular/core").InputSignal<string | undefined>;
20
20
  event_module: import("@angular/core").InputSignal<string | undefined>;
21
21
  collection_name: import("@angular/core").InputSignal<string | undefined>;
@@ -35,8 +35,9 @@ export declare class GeneralHistoryComponent implements OnInit {
35
35
  user: FormControl<CbmUserModel.NgSelectListResponse.Item | null>;
36
36
  }>;
37
37
  filterRef: import("@angular/core").Signal<CbmFilters>;
38
- constructor(destroyRef: DestroyRef, historyRepository: CbmHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, authService: CbmAuthReactiveService);
38
+ constructor(destroyRef: DestroyRef, historyRepository: CbmHistoryDomainRepository, notificationService: CbmNotificationService, userRepository: CbmUserDomainRepository, authReactiveService: CbmAuthReactiveService);
39
39
  get isSuperUser(): boolean;
40
+ get companyData(): import("../../../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.Company | null;
40
41
  users$: PaginatedListService<CbmUserModel.NgSelectListResponse, CbmUserModel.NgSelectListParams, CbmUserModel.ListByCompanyResponse.Item[]>;
41
42
  history$: PaginatedListService<CbmHistoryModel.ListResponse, CbmHistoryModel.ListParams, CbmHistoryModel.ListResponse.Item[]>;
42
43
  history: import("@angular/core").WritableSignal<CbmHistoryModel.ListResponse.Item[]>;
@@ -41,9 +41,9 @@ export declare class CbmViewReportComponent {
41
41
  fetchData(id: string): Promise<null | CbmGeneralReportModel.GetOneResponse.Data>;
42
42
  setMetadata(report: CbmViewReportModel.ReportData): void;
43
43
  downloadReport(typeFile: 'excel' | 'pdf' | 'print'): Promise<CbmViewReportModel.Status>;
44
- downloadExcel(response: any): void;
45
- downloadPdf(response: any): void;
46
- printPdf(response: any): void;
44
+ downloadExcel: (response: any) => void;
45
+ downloadPdf: (response: any) => void;
46
+ printPdf: (response: any) => void;
47
47
  getReport(id: string): Promise<void>;
48
48
  setRefresh(): void;
49
49
  }
@@ -66,6 +66,15 @@ export declare namespace CbmGeneralReportModel {
66
66
  collection_origin_name: string;
67
67
  code: string;
68
68
  request: any;
69
+ error_message_data: {
70
+ type: string;
71
+ item: {
72
+ id: string;
73
+ code: string;
74
+ name: string;
75
+ reason: string;
76
+ };
77
+ }[];
69
78
  type: string;
70
79
  status: string;
71
80
  created_at: number;
@@ -0,0 +1,29 @@
1
+ export declare const environment: {
2
+ apiGateway: string;
3
+ msAuth: string;
4
+ readonly msCPC: string;
5
+ readonly msCPP: string;
6
+ readonly msSalesEc: string;
7
+ readonly msPurchasesEc: string;
8
+ readonly msFinancials: string;
9
+ readonly msInventory: string;
10
+ readonly msGlobal: string;
11
+ readonly msPartners: string;
12
+ readonly msSettings: string;
13
+ readonly msUtil: string;
14
+ readonly msAudit: string;
15
+ readonly msUpload: string;
16
+ readonly msMechanicalWorkshop: string;
17
+ readonly msFixedAssets: string;
18
+ readonly msPms: string;
19
+ readonly msReportSales: string;
20
+ readonly msReportFinancials: string;
21
+ readonly msService: string;
22
+ readonly msReportService: string;
23
+ webSocket: string;
24
+ hostAuth: string;
25
+ hostApp: string;
26
+ manifestPath: string;
27
+ sessionTokenUser: string | null;
28
+ sessionTokenGlobal: string | null;
29
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.191",
3
+ "version": "0.0.192",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
@@ -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,92 +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_number: string;
28
- document_emission_point_number: string;
29
- document_sequence: string;
30
- new_document_number: string;
31
- balance: number;
32
- client_id: string;
33
- client_payment_deadline?: number;
34
- client_credit_limit?: number;
35
- client_business_name: string;
36
- client_trade_name: string;
37
- client_document_number: string;
38
- client_credit_application: boolean;
39
- client_price_list_id: string;
40
- client_price_list_code: string;
41
- client_price_list_name: string;
42
- client_document_type_id: string;
43
- client_document_type_name: string;
44
- client_document_type_code: string;
45
- client_category_id: string;
46
- client_category_name: string;
47
- client_branch_id: string;
48
- client_branch_code: string;
49
- client_branch_name: string;
50
- client_branch_address: string;
51
- client_branch_email: string[];
52
- client_branch_phone_code?: string;
53
- client_branch_phone?: string;
54
- client_branch_cellphone?: string;
55
- client_branch_type_establishment: `${TTypeEstablishment}`;
56
- client_branch_province_id?: string;
57
- client_branch_province_code?: string;
58
- client_branch_province_name?: string;
59
- client_branch_canton_id?: string;
60
- client_branch_canton_code?: string;
61
- client_branch_canton_name?: string;
62
- client_branch_parish_id?: string;
63
- client_branch_parish_code?: string;
64
- client_branch_parish_name?: string;
65
- client_branch_longitude?: number;
66
- client_branch_latitude?: number;
67
- client_branch_seller_id: string;
68
- client_branch_seller_identification_number: string;
69
- client_branch_seller_full_name: string;
70
- client_branch_seller_address: string;
71
- client_branch_seller_email: string[];
72
- client_branch_seller_cellphone: string;
73
- client_branch_contact_id?: string;
74
- client_branch_contact_identification_number?: string;
75
- client_branch_contact_full_name?: string;
76
- client_branch_contact_cellphone?: string;
77
- client_branch_contact_email?: string[];
78
- date: number;
79
- type: string;
80
- checked?: boolean;
81
- }
82
- interface totales {
83
- total_retention?: number;
84
- total_down_payment?: number;
85
- total_credit_note?: number;
86
- total_initial_balance_retention?: number;
87
- total_initial_balance_down_payment?: number;
88
- total_initial_balance_credit_note?: number;
89
- }
90
- }
91
- export {};
92
- }
@@ -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,15 +0,0 @@
1
- import { DestroyRef } from "@angular/core";
2
- import { FormControl } from "@angular/forms";
3
- import { CbmItemModel } from "@cbm-common/cbm-types";
4
- import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
5
- import { CbmNotificationService } from "../notification/notification.service";
6
- export declare class FindItemCodeService {
7
- private readonly destroyRef;
8
- private readonly itemRepository;
9
- private readonly notificationService;
10
- private readonly codeControl;
11
- private readonly itemControl;
12
- constructor(destroyRef: DestroyRef, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, codeControl: FormControl<string>, itemControl: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>);
13
- loading: import("@angular/core").WritableSignal<boolean>;
14
- findCode(code?: string): Promise<void>;
15
- }
@@ -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
- }
@@ -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
- }