@cbm-common/cbm-types 0.0.359 → 0.0.360

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.
@@ -2,6 +2,7 @@ import { DestroyRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { CbmSeatModel } from '../../domain/models/seat.domain.model';
3
3
  import { CbmReportFinancialsDomainRepository } from '../../domain/repositories/report-financials.domain.repository';
4
4
  import { CbmSeatDomainRepository } from '../../domain/repositories/seat.domain.repository';
5
+ import { GeneralDomainService } from '../../domain/services/general.domain.service';
5
6
  import { CbmNotificationService } from '../../domain/services/notification/notification.service';
6
7
  import { TStatus } from './types';
7
8
  export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
@@ -9,6 +10,7 @@ export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
9
10
  private seatRepository;
10
11
  private notificationService;
11
12
  private destroyRef;
13
+ private generalService;
12
14
  collectionOriginName: import("@angular/core").InputSignal<string>;
13
15
  collectionOriginId: import("@angular/core").InputSignal<string>;
14
16
  title: import("@angular/core").InputSignal<string | undefined>;
@@ -21,7 +23,7 @@ export declare class CbmAccountingSeatComponent implements OnInit, OnDestroy {
21
23
  seatDetails: import("@angular/core").Signal<CbmSeatModel.FindByFilterResponse.Data.Detail[]>;
22
24
  totalCredit: import("@angular/core").Signal<number>;
23
25
  totalDebit: import("@angular/core").Signal<number>;
24
- constructor(reportFinancesRepository: CbmReportFinancialsDomainRepository, seatRepository: CbmSeatDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
26
+ constructor(reportFinancesRepository: CbmReportFinancialsDomainRepository, seatRepository: CbmSeatDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, generalService: GeneralDomainService);
25
27
  ngOnInit(): void;
26
28
  ngOnDestroy(): void;
27
29
  makeInitialRequests(): void;
@@ -1,5 +1,7 @@
1
+ import { HttpResponse } from '@angular/common/http';
1
2
  import { DestroyRef } from '@angular/core';
2
3
  import { CbmUploadDomainRepository } from '../../domain/repositories/upload.domain.repository';
4
+ import { GeneralDomainService } from '../../domain/services/general.domain.service';
3
5
  import { CbmNotificationService } from '../../remotes/services.remote';
4
6
  import { CbmViewReportModel } from './model';
5
7
  import { Observable } from 'rxjs';
@@ -13,7 +15,8 @@ export declare class CbmViewReportComponent {
13
15
  private readonly uploadRepository;
14
16
  private readonly generalReportRepository;
15
17
  private readonly notificationService;
16
- constructor(route: ActivatedRoute, destroyRef: DestroyRef, uploadRepository: CbmUploadDomainRepository, generalReportRepository: CbmGeneralReportRepository, notificationService: CbmNotificationService);
18
+ private readonly generalService;
19
+ constructor(route: ActivatedRoute, destroyRef: DestroyRef, uploadRepository: CbmUploadDomainRepository, generalReportRepository: CbmGeneralReportRepository, notificationService: CbmNotificationService, generalService: GeneralDomainService);
17
20
  reportId: import("@angular/core").InputSignal<string>;
18
21
  othersFn: import("@angular/core").InputSignal<((request: any) => CbmViewReportModel.ReportData.Others[]) | undefined>;
19
22
  collectionName: import("@angular/core").InputSignal<string>;
@@ -45,8 +48,8 @@ export declare class CbmViewReportComponent {
45
48
  setMetadata(report: CbmViewReportModel.ReportData): void;
46
49
  downloadReport(typeFile: 'excel' | 'pdf' | 'print'): Promise<CbmViewReportModel.Status>;
47
50
  downloadExcel: (response: any) => void;
48
- downloadPdf: (response: any) => void;
49
- printPdf: (response: any) => void;
51
+ downloadPdf: (response: HttpResponse<Blob>) => void;
52
+ printPdf: (response: HttpResponse<Blob>) => void;
50
53
  getReport(id: string): Promise<void>;
51
54
  setRefresh(): void;
52
55
  }
@@ -51,7 +51,10 @@ export declare namespace CbmProviderModel {
51
51
  document_number_pay?: string;
52
52
  document_type_pay_id?: string;
53
53
  observation?: string;
54
+ /** Legado: el API actual no lo devuelve; los plazos de crédito vienen en `deadline_data`. */
54
55
  payment_deadline?: number[];
56
+ /** Plazos de crédito configurados en el proveedor (solo vienen si el proveedor los tiene configurados). */
57
+ deadline_data?: DeadlineData[];
55
58
  phone?: string;
56
59
  disabled_reason?: string;
57
60
  bank_code?: string;
@@ -79,6 +82,10 @@ export declare namespace CbmProviderModel {
79
82
  is_related_party?: boolean;
80
83
  subject_class_code?: string;
81
84
  subject_class_description?: string;
85
+ employee_salary?: number;
86
+ economic_activity_id?: string;
87
+ economic_activity_code?: string;
88
+ rt_up?: boolean;
82
89
  }
83
90
  }
84
91
  interface GetOneResponse {
@@ -110,8 +117,11 @@ export declare namespace CbmProviderModel {
110
117
  user_inactive_at?: number;
111
118
  disabled_reason?: string;
112
119
  user_inactive_name?: string;
120
+ /** Legado: el API actual no lo devuelve; los plazos de crédito vienen en `deadline_data`. */
113
121
  payment_deadline?: number[];
122
+ /** Plazos de crédito configurados en el proveedor (solo vienen si el proveedor los tiene configurados). */
114
123
  deadline_data?: DeadlineData[];
124
+ bulk_load?: boolean;
115
125
  bank_id?: string;
116
126
  observation?: string;
117
127
  phone?: string;
@@ -186,6 +196,7 @@ export declare namespace CbmProviderModel {
186
196
  deleted?: boolean;
187
197
  created_user?: string;
188
198
  created_at?: number;
199
+ deleted_at?: number;
189
200
  advance_account_id?: string;
190
201
  receivable_account_id?: string;
191
202
  updated_at?: number;
@@ -217,6 +228,7 @@ export declare namespace CbmProviderModel {
217
228
  export {};
218
229
  }
219
230
  interface DeadlineData {
231
+ _id?: string;
220
232
  deadline_id?: string;
221
233
  deadlines: number;
222
234
  quota_number?: number;
@@ -1,11 +1,15 @@
1
+ import { HttpResponse } from '@angular/common/http';
1
2
  import { ValidatorFn } from '@angular/forms';
3
+ type BlobResponse = Pick<HttpResponse<Blob>, 'body' | 'headers'>;
2
4
  export declare class GeneralDomainService {
3
5
  modalShow(modalId: string): void;
4
6
  modalHide(modalId: string): void;
5
7
  isMobile(): boolean;
6
- printPdf(response: any): void;
8
+ printPdf(response: BlobResponse): void;
7
9
  closePrintPdf(): void;
8
- downloadPdf(response: any): void;
10
+ downloadPdf(response: BlobResponse): void;
11
+ private getFileName;
12
+ private saveBlob;
9
13
  getTimestampFromDate(localDate: string): number;
10
14
  getDateStringFromTimestamp(timestamp: number): string;
11
15
  findRoute(eventModule: string, collectionName: string): {
@@ -30,3 +34,4 @@ export declare function findRoute(eventModule: string, collectionName: string):
30
34
  };
31
35
  export declare function noWhitespaceValidator(): ValidatorFn;
32
36
  export declare function amountValidator(): ValidatorFn;
37
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {