@cbm-common/cbm-types 0.0.101 → 0.0.102

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.
@@ -1,5 +1,6 @@
1
1
  export declare namespace CbmSalesPendingDocumentModel {
2
- interface ListParams {
2
+ type TTypeEstablishment = 'matrix' | 'branch';
3
+ export interface ListParams {
3
4
  page: number;
4
5
  size: number;
5
6
  document_number?: string;
@@ -9,7 +10,7 @@ export declare namespace CbmSalesPendingDocumentModel {
9
10
  client_branch_id?: string;
10
11
  type?: string;
11
12
  }
12
- interface ListResponse {
13
+ export interface ListResponse {
13
14
  success: boolean;
14
15
  pageNum: number;
15
16
  pageSize: number;
@@ -18,41 +19,50 @@ export declare namespace CbmSalesPendingDocumentModel {
18
19
  totales: ListResponse.totales;
19
20
  items: ListResponse.Item[];
20
21
  }
21
- namespace ListResponse {
22
+ export namespace ListResponse {
22
23
  interface Item {
23
24
  _id: string;
24
25
  created_at: number;
25
- client_id: string;
26
26
  document_nomenclature: string;
27
27
  document_emission_point_number: string;
28
28
  document_sequence: string;
29
29
  balance: number;
30
+ client_document_type_id: string;
31
+ client_document_type_name: string;
32
+ client_document_type_code: string;
30
33
  client_category_id: string;
31
34
  client_category_name: string;
32
- client_address: string;
33
- client_document_number: string;
34
- client_trade_name: string;
35
- client_business_name: string;
36
- client_phone_code: string;
37
- client_cellphone: string;
38
- client_branch_id?: string;
39
- client_branch_code?: string;
35
+ client_branch_id: string;
36
+ client_branch_code: string;
37
+ client_branch_name: string;
38
+ client_branch_address: string;
39
+ client_branch_email: string[];
40
40
  client_branch_phone_code?: string;
41
- client_branch_name?: string;
42
- client_branch_address?: string;
43
- client_branch_email?: string;
44
- client_branch_cellphone?: string;
45
41
  client_branch_phone?: string;
46
- client_province_id?: string;
47
- client_canton_id?: string;
48
- client_parish_id?: string;
49
- client_province_code?: string;
50
- client_province_name?: string;
51
- client_canton_code?: string;
52
- client_canton_name?: string;
53
- client_parish_code?: string;
54
- client_parish_name?: string;
55
- client_email: string;
42
+ client_branch_cellphone?: string;
43
+ client_branch_type_establishment: `${TTypeEstablishment}`;
44
+ client_branch_province_id?: string;
45
+ client_branch_province_code?: string;
46
+ client_branch_province_name?: string;
47
+ client_branch_canton_id?: string;
48
+ client_branch_canton_code?: string;
49
+ client_branch_canton_name?: string;
50
+ client_branch_parish_id?: string;
51
+ client_branch_parish_code?: string;
52
+ client_branch_parish_name?: string;
53
+ client_branch_longitude?: number;
54
+ client_branch_latitude?: number;
55
+ client_branch_seller_id: string;
56
+ client_branch_seller_identification_number: string;
57
+ client_branch_seller_full_name: string;
58
+ client_branch_seller_address: string;
59
+ client_branch_seller_email: string[];
60
+ client_branch_seller_cellphone: string;
61
+ client_branch_contact_id?: string;
62
+ client_branch_contact_identification_number?: string;
63
+ client_branch_contact_full_name?: string;
64
+ client_branch_contact_cellphone?: string;
65
+ client_branch_contact_email?: string[];
56
66
  new_document_number: string;
57
67
  date: number;
58
68
  type: string;
@@ -67,4 +77,5 @@ export declare namespace CbmSalesPendingDocumentModel {
67
77
  total_initial_balance_credit_note?: number;
68
78
  }
69
79
  }
80
+ export {};
70
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {