@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.
- package/lib/domain/models/account-configuration.domain.model.d.ts +19 -0
- package/lib/domain/models/document-reference.domain.model.d.ts +1 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +1 -2
- package/lib/domain/repositories/account-configuration.domain.repository.d.ts +8 -0
- package/lib/domain/services/notification/notification.model.d.ts +12 -1
- package/lib/infrastructure/repositories/account-configuration.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/account-configuration.infrastructure.service.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -4
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +0 -15
|
@@ -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
|
+
}
|
|
@@ -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
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
}
|