@cbm-common/cbm-types 0.0.260 → 0.0.262

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.
@@ -27,6 +27,7 @@ import { CbmNotificationService } from '../../remotes/services.remote';
27
27
  import { ECollectionNames } from '../../types/collection-names';
28
28
  import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
29
29
  import { CbmRelationshipMovementsComponent } from '../relationship-movements/relationship-movements';
30
+ import { CbmSalesAccountModel } from '@cbm-common/cbm-types';
30
31
  type TOperation = 'sales' | 'purchases' | 'both';
31
32
  type TSaveOptions = 'new' | 'view' | 'close';
32
33
  type TStatus = 'init' | 'loading' | 'success' | 'failed';
@@ -84,6 +85,10 @@ export declare class CbmAddDownPayment {
84
85
  value: FormControl<string | null>;
85
86
  }>;
86
87
  commentary: FormControl<string | null>;
88
+ collectionOriginId: FormControl<string | null>;
89
+ collectionOriginName: FormControl<string | null>;
90
+ eventModuleOrigin: FormControl<string | null>;
91
+ dataOrigin: FormControl<CbmSalesAccountModel.ListResponse.Item.DataOrigin | null>;
87
92
  }>;
88
93
  sellers: import("@angular/core").WritableSignal<CbmSellerModel.ListResponse.Data[]>;
89
94
  banks: import("@angular/core").WritableSignal<CbmBankModel.ListResponse.Item[]>;
@@ -44,7 +44,16 @@ export declare class StockByWarehouse {
44
44
  onNextPageWarehouse(page: number): void;
45
45
  onPreviousPageWarehouse(page: number): void;
46
46
  onPageSizeChangeWarehouse(size: number): void;
47
- navigateToProductMovement(): void;
48
- navigateToCommittedProductMovement(): void;
49
- navigateToTransitProductMovement(): void;
47
+ navigateToProductMovement(warehouse: {
48
+ _id: string;
49
+ name: string;
50
+ }): void;
51
+ navigateToCommittedProductMovement(warehouse: {
52
+ _id: string;
53
+ name: string;
54
+ }): void;
55
+ navigateToTransitProductMovement(warehouse: {
56
+ _id: string;
57
+ name: string;
58
+ }): void;
50
59
  }
@@ -4,6 +4,10 @@ export declare namespace cbmStockWarehouseModalModel {
4
4
  name?: string;
5
5
  _id?: string;
6
6
  manage_by?: string;
7
+ warehouse?: {
8
+ _id?: string;
9
+ name?: string;
10
+ };
7
11
  }
8
12
  }
9
13
  export type status = 'init' | 'success' | 'failed' | 'loading';
@@ -93,6 +93,44 @@ export declare namespace IDownPaymentModel {
93
93
  client_branch_contact_full_name?: string;
94
94
  client_branch_contact_cellphone?: string;
95
95
  client_branch_contact_email?: string[];
96
+ collection_origin_id: string;
97
+ collection_origin_name: string;
98
+ collection_origin_document_nomenclature_number: string;
99
+ collection_origin_created_at: number;
100
+ collection_origin_created_user: string;
101
+ event_module_origin: string;
102
+ data_origin: Item.DataOrigin;
103
+ country_id: string;
104
+ country_code: string;
105
+ country_name: string;
106
+ country_short_name: string;
107
+ period_id: string;
108
+ period_year: string;
109
+ client_price_list_id?: string;
110
+ client_price_list_name?: string;
111
+ default_cost_center_id: string;
112
+ default_cost_center_code: string;
113
+ default_cost_center_name: string;
114
+ default_cost_center_father_code: string;
115
+ default_cost_center_father_name: string;
116
+ document_date: number;
117
+ generation_type: string;
118
+ state: string;
119
+ tax_base: number;
120
+ discount: number;
121
+ service: number;
122
+ tax_base_iva: number;
123
+ tax_base_iva_rate_0: number;
124
+ tax_base_iva_exempt: number;
125
+ tax_base_iva_not_subject: number;
126
+ tax_base_irbpnr: number;
127
+ rate_iva: number;
128
+ tax_base_ice: number;
129
+ tax_iva: number;
130
+ code_iva: string;
131
+ tax_irbpnr: number;
132
+ tax_ice: number;
133
+ commentary: string;
96
134
  }
97
135
  namespace Item {
98
136
  interface PaymentTermOptions {
@@ -115,6 +153,24 @@ export declare namespace IDownPaymentModel {
115
153
  global_bank_id?: string;
116
154
  global_bank_code?: string;
117
155
  }
156
+ interface DataOrigin {
157
+ document_type: string;
158
+ booking_document_nomenclature_number: string;
159
+ room_id: string;
160
+ room_name: string;
161
+ comment_check_in: string;
162
+ guest_id?: string;
163
+ guest_document_type_id?: string;
164
+ guest_document_type_code?: string;
165
+ guest_document_type_name?: string;
166
+ guest_name?: string;
167
+ guest_last_name?: string;
168
+ entry_date?: number;
169
+ exit_date?: number;
170
+ booking_id?: string;
171
+ booking_created_at?: number;
172
+ booking_created_user?: string;
173
+ }
118
174
  }
119
175
  }
120
176
  export interface GetOneResponse {
@@ -293,6 +349,10 @@ export declare namespace IDownPaymentModel {
293
349
  client_branch_contact_cellphone?: string;
294
350
  client_branch_contact_email?: string[];
295
351
  payment_term_options: SaveBody.PaymentTermOptions;
352
+ collection_origin_id?: string;
353
+ collection_origin_name?: string;
354
+ event_module_origin?: string;
355
+ data_origin?: SaveBody.DataOrigin;
296
356
  }
297
357
  export namespace SaveBody {
298
358
  interface PaymentTermOptions {
@@ -315,6 +375,24 @@ export declare namespace IDownPaymentModel {
315
375
  payment_term_code: string;
316
376
  payment_term_name: string;
317
377
  }
378
+ interface DataOrigin {
379
+ document_type: string;
380
+ booking_id: string;
381
+ booking_document_nomenclature_number: string;
382
+ booking_created_at: number;
383
+ booking_created_user: string;
384
+ room_id: string;
385
+ room_name: string;
386
+ comment_check_in: string;
387
+ guest_id: string;
388
+ guest_document_type_id: string;
389
+ guest_document_type_code: string;
390
+ guest_document_type_name: string;
391
+ guest_name: string;
392
+ guest_last_name: string;
393
+ entry_date?: number;
394
+ exit_date?: number;
395
+ }
318
396
  }
319
397
  export interface DownloadExcelParams {
320
398
  timezone: string;
@@ -0,0 +1,92 @@
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
+ }
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,5 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.260",
3
+ "version": "0.0.262",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {