@cbm-common/cbm-types 0.0.91 → 0.0.93

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,23 +1,23 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- export declare class CbmNumberInputDirective implements OnInit {
4
- private elementRef;
5
- private ngControl;
6
- maxDecimalPlaces?: number;
7
- negative: boolean;
8
- max?: number;
9
- zeroOnBlur?: boolean;
10
- numberOnBlur?: number;
11
- allowPasteArray?: boolean;
12
- onPasteArray: import("@angular/core").OutputEmitterRef<string[]>;
13
- private regex;
14
- constructor(elementRef: ElementRef, ngControl: NgControl);
15
- ngOnInit(): void;
16
- onKeyDown(event: KeyboardEvent): void;
17
- onPaste(event: ClipboardEvent): void;
18
- aClipboardItem(pastedInput: string, event: ClipboardEvent): void;
19
- multipleClipboardItems(pastedInput: string[], event: ClipboardEvent): void;
20
- onDrop(event: DragEvent): void;
21
- onBlur(): void;
22
- format(value: string): void;
23
- }
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ export declare class CbmNumberInputDirective implements OnInit {
4
+ private elementRef;
5
+ private ngControl;
6
+ maxDecimalPlaces?: number;
7
+ negative: boolean;
8
+ max?: number;
9
+ zeroOnBlur?: boolean;
10
+ numberOnBlur?: number;
11
+ allowPasteArray?: boolean;
12
+ onPasteArray: import("@angular/core").OutputEmitterRef<string[]>;
13
+ private regex;
14
+ constructor(elementRef: ElementRef, ngControl: NgControl);
15
+ ngOnInit(): void;
16
+ onKeyDown(event: KeyboardEvent): void;
17
+ onPaste(event: ClipboardEvent): void;
18
+ aClipboardItem(pastedInput: string, event: ClipboardEvent): void;
19
+ multipleClipboardItems(pastedInput: string[], event: ClipboardEvent): void;
20
+ onDrop(event: DragEvent): void;
21
+ onBlur(): void;
22
+ format(value: string): void;
23
+ }
@@ -1,4 +1,5 @@
1
1
  export declare namespace CbmClientBranchModel {
2
+ type TTypeEstablishment = 'matrix' | 'branch';
2
3
  interface ListParams {
3
4
  enabled?: boolean;
4
5
  client_id: string;
@@ -17,7 +18,7 @@ export declare namespace CbmClientBranchModel {
17
18
  code: string;
18
19
  name: string;
19
20
  address: string;
20
- email?: string[];
21
+ email: string[];
21
22
  has_cellphone?: boolean;
22
23
  phone_code?: string;
23
24
  cellphone_number?: string;
@@ -25,22 +26,50 @@ export declare namespace CbmClientBranchModel {
25
26
  seller_id: string;
26
27
  seller_identification_number: string;
27
28
  seller_full_name: string;
28
- enabled?: boolean;
29
- type_establishment?: string;
30
- deleted?: boolean;
31
- created_user?: string;
32
- created_at?: number;
33
- seller_name: string;
34
29
  seller_address: string;
30
+ seller_email: string[];
31
+ seller_cellphone: string;
35
32
  province_id?: string;
36
- province_name?: string;
37
33
  province_code?: string;
34
+ province_name?: string;
38
35
  canton_id?: string;
39
- canton_name?: string;
40
36
  canton_code?: string;
37
+ canton_name?: string;
41
38
  parish_id?: string;
42
- parish_name?: string;
43
39
  parish_code?: string;
40
+ parish_name?: string;
41
+ longitude?: number;
42
+ latitude?: number;
43
+ enabled?: boolean;
44
+ type_establishment: `${TTypeEstablishment}`;
45
+ deleted?: boolean;
46
+ created_at?: number;
47
+ created_user?: string;
48
+ updated_at?: number;
49
+ updated_user?: string;
50
+ user_active_id?: string;
51
+ user_active_at?: number;
52
+ user_active_name?: string;
53
+ user_inactive_id?: string;
54
+ user_inactive_at?: number;
55
+ user_inactive_name?: string;
56
+ disabled_reason?: string;
57
+ client_branch_contact?: Data.Contact[];
58
+ }
59
+ namespace Data {
60
+ interface Contact {
61
+ _id?: string;
62
+ company_id?: string;
63
+ client_branch_id?: string;
64
+ identification_number?: string;
65
+ full_name?: string;
66
+ phone_code?: string;
67
+ cellphone?: string;
68
+ enabled?: boolean;
69
+ deleted?: boolean;
70
+ created_user?: string;
71
+ created_at?: number;
72
+ }
44
73
  }
45
74
  }
46
75
  }
@@ -58,18 +58,12 @@ export declare namespace CbmClientModel {
58
58
  created_at?: number;
59
59
  num_branch?: number;
60
60
  data?: string;
61
- seller_id?: string;
62
- seller_identification_number?: string;
63
- seller_full_name?: string;
64
61
  request_credit_value?: number;
65
62
  reason_request?: string;
66
63
  credit_limit?: number;
67
64
  payment_deadline?: number;
68
65
  updated_at?: number;
69
66
  updated_user?: string;
70
- canton_id?: string;
71
- parish_id?: string;
72
- province_id?: string;
73
67
  company_branch_id?: string;
74
68
  deleted_at?: number;
75
69
  deleted_user?: string;
@@ -231,15 +225,18 @@ export declare namespace CbmClientModel {
231
225
  withholding_tax_account_code?: string;
232
226
  }
233
227
  interface Contact {
234
- _id: string;
235
- client_id: string;
236
- identification_number: string;
237
- full_name: string;
238
- phone_code: string;
239
- cellphone: string;
240
- email: string;
241
- country_name?: string;
242
- country_code?: string;
228
+ _id?: string;
229
+ company_id?: string;
230
+ client_branch_id?: string;
231
+ identification_number?: string;
232
+ full_name?: string;
233
+ email?: string[];
234
+ phone_code?: string;
235
+ cellphone?: string;
236
+ enabled?: boolean;
237
+ deleted?: boolean;
238
+ created_user?: string;
239
+ created_at?: number;
243
240
  }
244
241
  interface CreditAplicationData {
245
242
  _id: string;
@@ -353,12 +350,8 @@ export declare namespace CbmClientModel {
353
350
  business_name?: string;
354
351
  trade_name?: string;
355
352
  address?: string;
356
- cellphone?: string;
357
- emails?: string[];
358
353
  economic_activity?: string;
359
- phone_code?: string;
360
354
  payment_deadline?: UpdateBody.PaymentDeadline[];
361
- has_cellphone?: boolean;
362
355
  credit_application?: boolean;
363
356
  ind_retention_agent?: boolean;
364
357
  credit_application_commentary?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {