@cbm-common/cbm-types 0.0.160 → 0.0.161
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/manufacturer.domain.model.d.ts +48 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +1 -2
- package/lib/domain/repositories/manufacturer.domain.repository.d.ts +9 -0
- package/lib/infrastructure/repositories/manufacturer.infrastructure.repository.d.ts +6 -0
- package/lib/infrastructure/services/manufacturer.infrastructure.service.d.ts +11 -0
- package/package.json +2 -2
- package/public-api.d.ts +4 -0
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +0 -15
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare namespace CbmManufacturerModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
deleted?: boolean;
|
|
6
|
+
date_end?: number;
|
|
7
|
+
date_begin?: number;
|
|
8
|
+
user_id?: string;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
interface ListResponse {
|
|
13
|
+
success: boolean;
|
|
14
|
+
pageNum: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
pages: number;
|
|
17
|
+
total: number;
|
|
18
|
+
items: ListResponse.Item[];
|
|
19
|
+
}
|
|
20
|
+
namespace ListResponse {
|
|
21
|
+
interface Item {
|
|
22
|
+
_id: string;
|
|
23
|
+
company_id: string;
|
|
24
|
+
user_id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
deleted: boolean;
|
|
28
|
+
created_user: string;
|
|
29
|
+
created_at: number;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
interface GetOne {
|
|
33
|
+
success: boolean;
|
|
34
|
+
data: GetOne.Data;
|
|
35
|
+
}
|
|
36
|
+
namespace GetOne {
|
|
37
|
+
interface Data {
|
|
38
|
+
_id: string;
|
|
39
|
+
company_id: string;
|
|
40
|
+
user_id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
deleted: boolean;
|
|
44
|
+
created_user: string;
|
|
45
|
+
created_at: number;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { ICbmManufacturerRepository } from "../../infrastructure/repositories/manufacturer.infrastructure.repository";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmManufacturerModel } from "../models/manufacturer.domain.model";
|
|
4
|
+
export declare class CbmManufacturerRepository implements ICbmManufacturerRepository {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ICbmManufacturerRepository);
|
|
7
|
+
list(params: CbmManufacturerModel.ListParams): Observable<CbmManufacturerModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmManufacturerModel.GetOne>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmManufacturerModel } from "../../domain/models/manufacturer.domain.model";
|
|
3
|
+
export interface ICbmManufacturerRepository {
|
|
4
|
+
list(params: CbmManufacturerModel.ListParams): Observable<CbmManufacturerModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmManufacturerModel.GetOne>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICbmManufacturerRepository } from "../repositories/manufacturer.infrastructure.repository";
|
|
2
|
+
import { HttpClient } from "@angular/common/http";
|
|
3
|
+
import { CbmManufacturerModel } from "../../domain/models/manufacturer.domain.model";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
export declare class CbmManufacturerService implements ICbmManufacturerRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(params: CbmManufacturerModel.ListParams): Observable<CbmManufacturerModel.ListResponse>;
|
|
10
|
+
getOne(id: string): Observable<CbmManufacturerModel.GetOne>;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -508,3 +508,7 @@ export * from './lib/domain/models/blanket-agreement-category-item.domain.model'
|
|
|
508
508
|
//#endregion blanket agreement repository
|
|
509
509
|
export * from './lib/domain/repositories/blanket-agreement.domain.repository';
|
|
510
510
|
export * from './lib/domain/models/blanket-agreement.domain.model';
|
|
511
|
+
|
|
512
|
+
//#region manufacturer repository
|
|
513
|
+
export * from './lib/domain/repositories/manufacturer.domain.repository';
|
|
514
|
+
export * from './lib/domain/models/manufacturer.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
|
-
}
|