@cbm-common/cbm-types 0.0.176 → 0.0.177

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.
@@ -0,0 +1,19 @@
1
+ export declare namespace CbmAccountConfigurationModel {
2
+ interface ValidateAccountParams {
3
+ collection_origin_id?: string;
4
+ collection_origin_name?: string;
5
+ identifier?: string;
6
+ code?: string;
7
+ event_module?: string;
8
+ }
9
+ interface ValidateAccountResponse {
10
+ success: boolean;
11
+ data: ValidateAccountResponse.Data[];
12
+ }
13
+ namespace ValidateAccountResponse {
14
+ interface Data {
15
+ collection_origin_name: string;
16
+ message: string;
17
+ }
18
+ }
19
+ }
@@ -121,6 +121,7 @@ export declare namespace CbmDocumentReferenceModel {
121
121
  deleted: boolean;
122
122
  created_at: number;
123
123
  created_user: string;
124
+ created_user_origin?: string;
124
125
  documents?: RelationshipTreeResponse.Document[];
125
126
  origin?: boolean;
126
127
  }
@@ -0,0 +1,8 @@
1
+ import { ICbmAccountConfigurationInfrastructureRepository } from '../../infrastructure/repositories/account-configuration.infrastructure.repository';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmAccountConfigurationModel } from '../models/account-configuration.domain.model';
4
+ export declare class CbmAccountConfigurationDomainRepository implements ICbmAccountConfigurationInfrastructureRepository {
5
+ private readonly service;
6
+ constructor(service: ICbmAccountConfigurationInfrastructureRepository);
7
+ validateAccount(params: CbmAccountConfigurationModel.ValidateAccountParams): Observable<CbmAccountConfigurationModel.ValidateAccountResponse>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { DestroyRef } from "@angular/core";
2
+ import { FormControl } from "@angular/forms";
3
+ import { IGetPriceTypeParams, IPriceTypeExec } from "../../../types/price-type.fn";
4
+ import { CbmSalePriceModel } from "../../models/sale-price.domain.model";
5
+ export declare class FindPriceTypeService {
6
+ private readonly destroyRef;
7
+ private readonly controlPriceType;
8
+ private readonly controls;
9
+ private readonly params;
10
+ constructor(destroyRef: DestroyRef, controlPriceType: FormControl<Partial<CbmSalePriceModel.GetResponse.Data> | null>, controls: Omit<IPriceTypeExec, 'controlPriceType'>, params: IGetPriceTypeParams);
11
+ subObserver(): void;
12
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmAccountConfigurationModel } from '../../domain/models/account-configuration.domain.model';
3
+ export interface ICbmAccountConfigurationInfrastructureRepository {
4
+ validateAccount(params: CbmAccountConfigurationModel.ValidateAccountParams): Observable<CbmAccountConfigurationModel.ValidateAccountResponse>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { ICbmAccountConfigurationInfrastructureRepository } from '../repositories/account-configuration.infrastructure.repository';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { CbmAccountConfigurationModel } from '../../domain/models/account-configuration.domain.model';
5
+ export declare class CbmAccountConfigurationInfrastructureService implements ICbmAccountConfigurationInfrastructureRepository {
6
+ private http;
7
+ constructor(http: HttpClient);
8
+ private readonly baseUrl;
9
+ validateAccount(params: CbmAccountConfigurationModel.ValidateAccountParams): Observable<CbmAccountConfigurationModel.ValidateAccountResponse>;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.176",
3
+ "version": "0.0.177",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -201,9 +201,9 @@ export * from './lib/components/attachments/attachments';
201
201
  //#region documents reference component
202
202
  export * from './lib/components/documents-reference/documents-reference';
203
203
  export {
204
- CbmDocumentsReferenceModel,
205
- TLabels as TDocumentsReferenceLabels,
206
- TOptionType as TDocumentsReferenceOptionType
204
+ CbmDocumentsReferenceModel,
205
+ TLabels as TDocumentsReferenceLabels,
206
+ TOptionType as TDocumentsReferenceOptionType,
207
207
  } from './lib/components/documents-reference/types';
208
208
 
209
209
  //#region dropzone component
@@ -518,4 +518,8 @@ export * from './lib/components/advanced-account-search-modal/advanced-account-s
518
518
 
519
519
  //#region provider contact repository
520
520
  export * from './lib/domain/repositories/provider-contact.domain.repository';
521
- export * from './lib/domain/models/provider-contact.domain.model';
521
+ export * from './lib/domain/models/provider-contact.domain.model';
522
+
523
+ //#region account configuration domain repository
524
+ export * from './lib/domain/repositories/account-configuration.domain.repository';
525
+ export * from './lib/domain/models/account-configuration.domain.model';
@@ -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,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
- }