@cbm-common/cbm-types 0.0.176 → 0.0.178

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
  }
@@ -24,10 +24,8 @@ export declare namespace CbmSalesPendingDocumentModel {
24
24
  _id: string;
25
25
  created_at: number;
26
26
  document_nomenclature: string;
27
- document_number: string;
28
27
  document_emission_point_number: string;
29
28
  document_sequence: string;
30
- new_document_number: string;
31
29
  balance: number;
32
30
  client_id: string;
33
31
  client_payment_deadline?: number;
@@ -75,6 +73,7 @@ export declare namespace CbmSalesPendingDocumentModel {
75
73
  client_branch_contact_full_name?: string;
76
74
  client_branch_contact_cellphone?: string;
77
75
  client_branch_contact_email?: string[];
76
+ new_document_number: string;
78
77
  date: number;
79
78
  type: string;
80
79
  checked?: boolean;
@@ -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
+ }
@@ -3,6 +3,7 @@ export interface CbmAlertData {
3
3
  type: CbmAlertData.Type;
4
4
  status: CbmAlertData.Status;
5
5
  message: string;
6
+ data_message?: GeneralModel.ConfirmData[];
6
7
  template?: {
7
8
  ngTemplate: TemplateRef<any>;
8
9
  data: any;
@@ -10,7 +11,17 @@ export interface CbmAlertData {
10
11
  };
11
12
  delay?: number;
12
13
  }
14
+ export declare namespace GeneralModel {
15
+ interface Confirm<T = any> {
16
+ success: boolean;
17
+ data?: T;
18
+ }
19
+ interface ConfirmData {
20
+ collection_origin_name: string;
21
+ message: string;
22
+ }
23
+ }
13
24
  export declare namespace CbmAlertData {
14
- type Type = 'sweetAlert' | 'toast' | 'toastRight';
25
+ type Type = 'sweetAlert' | 'toast' | 'toastRight' | 'sweetAlertValidate';
15
26
  type Status = 'success' | 'warning' | 'error';
16
27
  }
@@ -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.178",
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,15 +0,0 @@
1
- import { DestroyRef } from "@angular/core";
2
- import { FormControl } from "@angular/forms";
3
- import { CbmItemModel } from "@cbm-common/cbm-types";
4
- import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
5
- import { CbmNotificationService } from "../notification/notification.service";
6
- export declare class FindItemCodeService {
7
- private readonly destroyRef;
8
- private readonly itemRepository;
9
- private readonly notificationService;
10
- private readonly codeControl;
11
- private readonly itemControl;
12
- constructor(destroyRef: DestroyRef, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, codeControl: FormControl<string>, itemControl: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>);
13
- loading: import("@angular/core").WritableSignal<boolean>;
14
- findCode(code?: string): Promise<void>;
15
- }