@cbm-common/cbm-types 0.0.242 → 0.0.244

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.
Files changed (20) hide show
  1. package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
  2. package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
  3. package/lib/components/order-vehicle-add-charge/order-vehicle-add-charge.d.ts +6 -24
  4. package/lib/components/record-detail-metadata/components/options/options.d.ts +13 -0
  5. package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
  6. package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
  7. package/lib/domain/models/sales-account.domain.model.d.ts +0 -8
  8. package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
  9. package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
  10. package/lib/domain/services/fingerprinting.domain.service.d.ts +130 -3
  11. package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
  12. package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
  13. package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
  14. package/package.json +1 -1
  15. package/public-api.d.ts +4 -1
  16. package/lib/domain/models/charges-for-order-vehicle.domain.model.d.ts +0 -255
  17. package/lib/domain/models/employee.model.d.ts +0 -176
  18. package/lib/domain/repositories/charges-for-order-vehicle.domain.repository.d.ts +0 -10
  19. package/lib/infrastructure/repositories/changes-for-order-vehicle.infrastructure.repository.d.ts +0 -7
  20. package/lib/infrastructure/services/charges-for-order-vehicle.infrastructure.service.d.ts +0 -12
@@ -0,0 +1,13 @@
1
+ import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
2
+ export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
3
+ private element;
4
+ private renderer2;
5
+ hiddenMenu: import("@angular/core").InputSignal<boolean>;
6
+ hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
7
+ constructor(element: ElementRef, renderer2: Renderer2);
8
+ ngAfterViewInit(): void;
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ toggle(event: Event): void;
11
+ private toggleMenu;
12
+ initStyle(): void;
13
+ }
@@ -0,0 +1,10 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ export declare class DropdownDirective implements AfterViewInit {
3
+ private elementRef;
4
+ private renderer;
5
+ private isOpen;
6
+ constructor(elementRef: ElementRef, renderer: Renderer2);
7
+ ngAfterViewInit(): void;
8
+ toggleDropdown(event: MouseEvent): void;
9
+ closeDropdown(event: MouseEvent): void;
10
+ }
@@ -4,7 +4,6 @@ import { ActivatedRoute, Router } from '@angular/router';
4
4
  import { ListService, PaginatedListService } from '@cbm-common/data-access';
5
5
  import { NgSelectComponent } from '@ng-select/ng-select';
6
6
  import { Subject } from 'rxjs';
7
- import { CbmAlternativeItemModel } from '../../domain/models/alternative-item.domain.model';
8
7
  import { CbmCompanyCustomModel } from '../../domain/models/company-custom.domain.model';
9
8
  import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
10
9
  import { IGeneral } from '../../domain/models/general.domain.model';
@@ -16,8 +15,6 @@ import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.m
16
15
  import { CbmOutsourcingServiceModel } from '../../domain/models/service-outsourcing.domain.model';
17
16
  import { CbmServiceModel } from '../../domain/models/service.domain.model';
18
17
  import { CbmTaxIrbpnrModel } from '../../domain/models/tax-irbpnr.domain.model';
19
- import { CbmUnitMeasureModel } from '../../domain/models/unit-measure.domain.model';
20
- import { CbmChargesForOrderVehicleDomainRepository } from '../../domain/repositories/charges-for-order-vehicle.domain.repository';
21
18
  import { CbmCompanyCustomRepository } from '../../domain/repositories/company-custom.domain.repository';
22
19
  import { CbmCostCenterRepository } from '../../domain/repositories/cost-center.domain.repository';
23
20
  import { CbmItemDomainRepository } from '../../domain/repositories/item.domain.repository';
@@ -29,11 +26,10 @@ import { CbmServiceOutsourcingDomainRepository } from '../../domain/repositories
29
26
  import { CbmServiceDomainRepository } from '../../domain/repositories/service.domain.repository';
30
27
  import { CbmTaxIrbpnrDomainRepository } from '../../domain/repositories/tax-irbpnr.domain.repository';
31
28
  import { CbmUnitMeasureRepository } from '../../domain/repositories/unit-measure.domain.repository';
32
- import { CbmAuthReactiveService } from '../../domain/services/auth-reactive.domain.service';
29
+ import { CbmAuthService } from '../../domain/services/auth/auth.service';
33
30
  import { GeneralDomainService } from '../../domain/services/general.domain.service';
34
31
  import { CbmNotificationService } from '../../remotes/services.remote';
35
32
  import { CbmAdvancedItemSearchModal } from '../advanced-item-search-modal/advanced-item-search-modal';
36
- import { CbmItemStockModalComponent, IDataItemStock } from '../item-stock-modal/item-stock-modal.component';
37
33
  import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
38
34
  import { CbmModalSearchOutsourcingComponent } from '../modals-search/modal-search-outsourcing/modal-search-outsourcing.component';
39
35
  import { CbmModalSearchServiceComponent } from '../modals-search/modal-search-service/modal-search-service.component';
@@ -43,6 +39,9 @@ import { CbmSortDetailModalComponent, ISortDetailModel } from '../sort-detail-mo
43
39
  import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
44
40
  import { IFreeItemAmountModel } from '../ui/details-resume/details-resume.component';
45
41
  import { SaleAccountModal } from './sale-account-modal/sale-account-modal';
42
+ import { CbmUnitMeasureModel } from '../../domain/models/unit-measure.domain.model';
43
+ import { CbmItemStockModalComponent, IDataItemStock } from '../item-stock-modal/item-stock-modal.component';
44
+ import { CbmAlternativeItemModel } from '../../domain/models/alternative-item.domain.model';
46
45
  export type TTab = 'items' | 'kits' | 'services' | 'outsourcings' | 'fixed_asset';
47
46
  export type DetailType = 'item' | 'service' | 'kit' | 'outsourcing_service';
48
47
  export interface Tax {
@@ -53,16 +52,6 @@ export interface Tax {
53
52
  tax_base: number;
54
53
  tax_value: number;
55
54
  }
56
- export interface OutsourcingServiceData {
57
- outsourcing_service_movements_id: string;
58
- code_outsourcing_service: string;
59
- name_outsourcing_service: string;
60
- date_purchase_receipt: number;
61
- structured_document_number: string;
62
- provider_document_number: string;
63
- provider_business_name: string;
64
- cost: number;
65
- }
66
55
  export interface ICustomUnitMeasureListResponse extends CbmUnitMeasureModel.ListResponse.Data {
67
56
  amount: number;
68
57
  barcode?: string;
@@ -74,7 +63,6 @@ export declare class CbmOrderVehicleAddCharge {
74
63
  private destroyRef;
75
64
  generalService: GeneralDomainService;
76
65
  private salePriceRepository;
77
- private chargesForOrderVehicleRepository;
78
66
  private readonly salesAccountDomainRepository;
79
67
  private outsourcingServiceMovementsRepository;
80
68
  private readonly priceListRepository;
@@ -87,7 +75,7 @@ export declare class CbmOrderVehicleAddCharge {
87
75
  private readonly costCenterRepository;
88
76
  private readonly serviceRepository;
89
77
  private readonly outsourcingRepository;
90
- constructor(router: Router, route: ActivatedRoute, destroyRef: DestroyRef, generalService: GeneralDomainService, salePriceRepository: CbmSalePriceDomainRepository, chargesForOrderVehicleRepository: CbmChargesForOrderVehicleDomainRepository, salesAccountDomainRepository: CbmSalesAccountDomainRepository, outsourcingServiceMovementsRepository: CbmOutsourcingServicesMovementsDomainRepository, priceListRepository: CbmPriceListDomainRepository, taxIrbpnrRepository: CbmTaxIrbpnrDomainRepository, companyCustomRepository: CbmCompanyCustomRepository, authService: CbmAuthReactiveService, notificationService: CbmNotificationService, itemRepository: CbmItemDomainRepository, unitMeasureRepository: CbmUnitMeasureRepository, costCenterRepository: CbmCostCenterRepository, serviceRepository: CbmServiceDomainRepository, outsourcingRepository: CbmServiceOutsourcingDomainRepository);
78
+ constructor(router: Router, route: ActivatedRoute, destroyRef: DestroyRef, generalService: GeneralDomainService, salePriceRepository: CbmSalePriceDomainRepository, salesAccountDomainRepository: CbmSalesAccountDomainRepository, outsourcingServiceMovementsRepository: CbmOutsourcingServicesMovementsDomainRepository, priceListRepository: CbmPriceListDomainRepository, taxIrbpnrRepository: CbmTaxIrbpnrDomainRepository, companyCustomRepository: CbmCompanyCustomRepository, authService: CbmAuthService, notificationService: CbmNotificationService, itemRepository: CbmItemDomainRepository, unitMeasureRepository: CbmUnitMeasureRepository, costCenterRepository: CbmCostCenterRepository, serviceRepository: CbmServiceDomainRepository, outsourcingRepository: CbmServiceOutsourcingDomainRepository);
91
79
  ngSelectsRefs: import("@angular/core").Signal<readonly NgSelectComponent[]>;
92
80
  itemDetailsTableContainer: import("@angular/core").Signal<ElementRef<any> | undefined>;
93
81
  itemDetailsTableRef: import("@angular/core").Signal<ElementRef<HTMLTableElement> | undefined>;
@@ -112,13 +100,8 @@ export declare class CbmOrderVehicleAddCharge {
112
100
  outsourcingServicesMovementsModalRef: import("@angular/core").Signal<CbmOutsourcingServicesMovementsModalComponent>;
113
101
  statusOfSave: import("@angular/core").WritableSignal<IGeneral.STATUS>;
114
102
  statusOfFetchItemById: import("@angular/core").WritableSignal<IGeneral.STATUS>;
115
- modeSaleOrWo: import("@angular/core").InputSignal<"sale" | "wo">;
116
- saleAccountId: import("@angular/core").InputSignal<string | null>;
103
+ onChargeSaved: import("@angular/core").OutputEmitterRef<void>;
117
104
  onCancel: import("@angular/core").OutputEmitterRef<void>;
118
- onSave: import("@angular/core").OutputEmitterRef<{
119
- redirect: "new" | "view" | "close" | "modal";
120
- id?: string;
121
- }>;
122
105
  orderId: import("@angular/core").WritableSignal<string | null>;
123
106
  saleAccountData: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data<any> | null>;
124
107
  dataStockModal: import("@angular/core").WritableSignal<IDataItemStock | null>;
@@ -303,7 +286,6 @@ export declare class CbmOrderVehicleAddCharge {
303
286
  openAdvanceOutsourcingSearchModal(): void;
304
287
  onSaleAccountSelected(saleAccount: CbmSalesAccountModel.ListResponse.Item): void;
305
288
  fetchData(id: string): Promise<void>;
306
- searchSaleAccount$: PaginatedListService<CbmSalesAccountModel.ListResponse, CbmSalesAccountModel.ListParams, CbmSalesAccountModel.ListResponse.Item[]>;
307
289
  fetchTaxIrbpnr(): Promise<void>;
308
290
  onConfirmSave(redirect: 'new' | 'view' | 'close'): Promise<void>;
309
291
  fetchCompanyCustom(): Promise<void>;
@@ -0,0 +1,13 @@
1
+ import { WritableSignal } from '@angular/core';
2
+ import { Router, ActivatedRoute, Params } from '@angular/router';
3
+ import { CbmRecordDetailMetadataModel } from "../../types";
4
+ export declare class OptionsComponent {
5
+ private router;
6
+ private route;
7
+ constructor(router: Router, route: ActivatedRoute);
8
+ metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
9
+ options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
10
+ optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
11
+ executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
12
+ navigate(routerLink?: string, queryParams?: Params): void;
13
+ }
@@ -0,0 +1,13 @@
1
+ import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
2
+ export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
3
+ private element;
4
+ private renderer2;
5
+ hiddenMenu: import("@angular/core").InputSignal<boolean>;
6
+ hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
7
+ constructor(element: ElementRef, renderer2: Renderer2);
8
+ ngAfterViewInit(): void;
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ toggle(event: Event): void;
11
+ private toggleMenu;
12
+ initStyle(): void;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { ElementRef, Renderer2 } from '@angular/core';
2
+ export declare class DropdownDirective {
3
+ private elementRef;
4
+ private renderer;
5
+ private isOpen;
6
+ constructor(elementRef: ElementRef, renderer: Renderer2);
7
+ toggleDropdown(event: MouseEvent): void;
8
+ closeDropdown(event: MouseEvent): void;
9
+ }
@@ -16,8 +16,6 @@ export declare namespace CbmSalesAccountModel {
16
16
  enabled?: boolean;
17
17
  check_in_id?: string;
18
18
  room_id?: string;
19
- collection_origin_id?: string;
20
- collection_origin_name?: string;
21
19
  }
22
20
  interface ListResponse {
23
21
  success: boolean;
@@ -180,12 +178,6 @@ export declare namespace CbmSalesAccountModel {
180
178
  company_branch_email: string;
181
179
  company_branch_cellphone: string;
182
180
  company_branch_phone: string;
183
- collection_origin_id: string;
184
- collection_origin_name: string;
185
- collection_origin_document_nomenclature_number: string;
186
- collection_origin_created_at: number;
187
- collection_origin_created_user: string;
188
- event_module_origin: string;
189
181
  country_id: string;
190
182
  country_code: string;
191
183
  country_name: string;
@@ -0,0 +1,91 @@
1
+ export declare namespace CbmSalesPendingDocumentModel {
2
+ type TTypeEstablishment = 'matrix' | 'branch';
3
+ export interface ListParams {
4
+ page: number;
5
+ size: number;
6
+ document_number?: string;
7
+ date_end?: number;
8
+ date_begin?: number;
9
+ client_id?: string;
10
+ client_branch_id?: string;
11
+ type?: string;
12
+ }
13
+ export interface ListResponse {
14
+ success: boolean;
15
+ pageNum: number;
16
+ pageSize: number;
17
+ pages: number;
18
+ total: number;
19
+ totales: ListResponse.totales;
20
+ items: ListResponse.Item[];
21
+ }
22
+ export namespace ListResponse {
23
+ interface Item {
24
+ _id: string;
25
+ created_at: number;
26
+ document_nomenclature: string;
27
+ document_emission_point_number: string;
28
+ document_sequence: string;
29
+ balance: number;
30
+ client_id: string;
31
+ client_payment_deadline?: number;
32
+ client_credit_limit?: number;
33
+ client_business_name: string;
34
+ client_trade_name: string;
35
+ client_document_number: string;
36
+ client_credit_application: boolean;
37
+ client_price_list_id: string;
38
+ client_price_list_code: string;
39
+ client_price_list_name: string;
40
+ client_document_type_id: string;
41
+ client_document_type_name: string;
42
+ client_document_type_code: string;
43
+ client_category_id: string;
44
+ client_category_name: string;
45
+ client_branch_id: string;
46
+ client_branch_code: string;
47
+ client_branch_name: string;
48
+ client_branch_address: string;
49
+ client_branch_email: string[];
50
+ client_branch_phone_code?: string;
51
+ client_branch_phone?: string;
52
+ client_branch_cellphone?: string;
53
+ client_branch_type_establishment: `${TTypeEstablishment}`;
54
+ client_branch_province_id?: string;
55
+ client_branch_province_code?: string;
56
+ client_branch_province_name?: string;
57
+ client_branch_canton_id?: string;
58
+ client_branch_canton_code?: string;
59
+ client_branch_canton_name?: string;
60
+ client_branch_parish_id?: string;
61
+ client_branch_parish_code?: string;
62
+ client_branch_parish_name?: string;
63
+ client_branch_longitude?: number;
64
+ client_branch_latitude?: number;
65
+ client_branch_seller_id: string;
66
+ client_branch_seller_identification_number: string;
67
+ client_branch_seller_full_name: string;
68
+ client_branch_seller_address: string;
69
+ client_branch_seller_email: string[];
70
+ client_branch_seller_cellphone: string;
71
+ client_branch_contact_id?: string;
72
+ client_branch_contact_identification_number?: string;
73
+ client_branch_contact_full_name?: string;
74
+ client_branch_contact_cellphone?: string;
75
+ client_branch_contact_email?: string[];
76
+ new_document_number: string;
77
+ date: number;
78
+ type: string;
79
+ checked?: boolean;
80
+ }
81
+ interface totales {
82
+ total_retention?: number;
83
+ total_down_payment?: number;
84
+ total_credit_note?: number;
85
+ total_initial_balance_retention?: number;
86
+ total_initial_balance_down_payment?: number;
87
+ total_initial_balance_credit_note?: number;
88
+ }
89
+ }
90
+ export {};
91
+ }
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
3
+ import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
4
+ export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
5
+ private service;
6
+ constructor(service: ICbmSalesPendingDocumentRepository);
7
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
8
+ }
@@ -1,6 +1,133 @@
1
+ declare const FINGERPRINT_VERSION = "cbm-device-fingerprint-v1";
2
+ type TBrowserFamily = 'chrome' | 'edge' | 'firefox' | 'opera' | 'safari' | 'unknown';
3
+ type TOsFamily = 'android' | 'chromeos' | 'ios' | 'linux' | 'macos' | 'unknown' | 'windows';
4
+ type TNullableBoolean = boolean | null;
5
+ type TNullableNumber = number | null;
6
+ type TContrastPreference = 'custom' | 'less' | 'more' | 'no-preference' | 'unknown';
7
+ type TColorGamutPreference = 'p3' | 'rec2020' | 'srgb' | 'unknown';
8
+ interface IDeviceFingerprintPayload {
9
+ version: typeof FINGERPRINT_VERSION;
10
+ supported: boolean;
11
+ signature: string;
12
+ browser: {
13
+ family: TBrowserFamily;
14
+ majorVersion: string;
15
+ engine: string;
16
+ vendor: string;
17
+ mobile: TNullableBoolean;
18
+ };
19
+ platform: {
20
+ value: string;
21
+ family: TOsFamily;
22
+ };
23
+ language: {
24
+ primary: string;
25
+ values: string[];
26
+ };
27
+ timezone: {
28
+ zone: string;
29
+ offsetMinutes: number | null;
30
+ };
31
+ screen: {
32
+ width: number | null;
33
+ height: number | null;
34
+ availableWidth: number | null;
35
+ availableHeight: number | null;
36
+ colorDepth: number | null;
37
+ pixelRatio: number | null;
38
+ orientationType: string | null;
39
+ orientationAngle: number | null;
40
+ };
41
+ hardware: {
42
+ concurrency: number | null;
43
+ memory: number | null;
44
+ };
45
+ touch: {
46
+ maxTouchPoints: number | null;
47
+ coarsePointer: TNullableBoolean;
48
+ finePointer: TNullableBoolean;
49
+ hover: TNullableBoolean;
50
+ };
51
+ storage: {
52
+ localStorage: TNullableBoolean;
53
+ sessionStorage: TNullableBoolean;
54
+ indexedDb: TNullableBoolean;
55
+ cookies: TNullableBoolean;
56
+ persisted: TNullableBoolean;
57
+ quotaBucket: TNullableNumber;
58
+ usageBucket: TNullableNumber;
59
+ };
60
+ preferences: {
61
+ darkMode: TNullableBoolean;
62
+ reducedMotion: TNullableBoolean;
63
+ forcedColors: TNullableBoolean;
64
+ invertedColors: TNullableBoolean;
65
+ monochrome: TNullableBoolean;
66
+ contrast: TContrastPreference;
67
+ colorGamut: TColorGamutPreference;
68
+ };
69
+ capabilities: {
70
+ pdfViewerEnabled: TNullableBoolean;
71
+ doNotTrack: string | null;
72
+ webdriver: TNullableBoolean;
73
+ };
74
+ canvasHash: string | null;
75
+ webglHash: string | null;
76
+ pluginsHash: string | null;
77
+ fontsHash: string | null;
78
+ audioHash: string | null;
79
+ }
80
+ export interface IFingerprintingComparisonResult {
81
+ isSameDevice: boolean;
82
+ probability: number;
83
+ threshold: number;
84
+ }
1
85
  export declare class FingerprintingDomainService {
2
- constructor();
86
+ private readonly platformId;
87
+ private readonly isBrowser;
3
88
  private fingerprint;
4
- get fingerprinting(): string | null;
5
- setFingerprinting(fingerprint: string): void;
89
+ private payloadPromise;
90
+ getDeviceId(): Promise<string>;
91
+ compareDeviceId(deviceId: string): Promise<IFingerprintingComparisonResult>;
92
+ getPayload(): Promise<IDeviceFingerprintPayload>;
93
+ private buildPayload;
94
+ private createUnsupportedPayload;
95
+ private getBrowserProfile;
96
+ private getPlatformProfile;
97
+ private getLanguageProfile;
98
+ private getTimezoneProfile;
99
+ private getScreenProfile;
100
+ private getHardwareProfile;
101
+ private getTouchProfile;
102
+ private getStorageProfile;
103
+ private getPreferencesProfile;
104
+ private getCapabilitiesProfile;
105
+ private getCanvasHash;
106
+ private getWebglHash;
107
+ private getPluginsHash;
108
+ private getFontsHash;
109
+ private getAudioHash;
110
+ private calculateProbability;
111
+ private compareBrowser;
112
+ private comparePlatform;
113
+ private compareLanguage;
114
+ private compareTimezone;
115
+ private compareScreen;
116
+ private compareHardware;
117
+ private compareTouch;
118
+ private compareStorage;
119
+ private comparePreferences;
120
+ private compareCapabilities;
121
+ private compareExactHash;
122
+ private getNavigator;
123
+ private matchMediaQuery;
124
+ private hasStorageAccess;
125
+ private resolveContrastPreference;
126
+ private resolveColorGamutPreference;
127
+ private toStorageBucket;
128
+ private encodePayload;
129
+ private decodePayload;
130
+ private hashValue;
131
+ private fallbackHash;
6
132
  }
133
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Observable } from "rxjs";
2
+ import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
3
+ export interface ICbmBlanketAgreementCategoryServiceRepository {
4
+ list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
5
+ save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
6
+ delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
3
+ export interface ICbmSalesPendingDocumentRepository {
4
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
4
+ export declare class CbmSalesPendingDocumentService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ private readonly url;
8
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.242",
3
+ "version": "0.0.244",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
package/public-api.d.ts CHANGED
@@ -571,4 +571,7 @@ export * from './lib/domain/services/item-selection.domain.service';
571
571
  export * from './lib/domain/services/PIN.domain.service';
572
572
  //#region person type uafe repository
573
573
  export * from './lib/domain/repositories/person-type-uafe.domain.repository';
574
- export * from './lib/domain/models/person-type-uafe.domain.model';
574
+ export * from './lib/domain/models/person-type-uafe.domain.model';
575
+
576
+ //#region fingerprinting domain service
577
+ export * from './lib/domain/services/fingerprinting.domain.service';
@@ -1,255 +0,0 @@
1
- export declare namespace CbmChargesForOrderVehicleModel {
2
- interface ListParams {
3
- page: number;
4
- size: number;
5
- state?: string;
6
- enabled?: boolean;
7
- deleted?: boolean;
8
- name?: string;
9
- }
10
- interface ListResponse {
11
- success: boolean;
12
- pageNum: number;
13
- pageSize: number;
14
- pages: number;
15
- total: number;
16
- items: ListResponse.Item[];
17
- }
18
- namespace ListResponse {
19
- interface Item {
20
- _id: string;
21
- charges_origin: string;
22
- company_id: string;
23
- company_NIF: string;
24
- company_address: string;
25
- company_trade_name: string;
26
- company_business_name: string;
27
- company_logo: string;
28
- country_id: string;
29
- country_code: string;
30
- country_name: string;
31
- country_short_name: string;
32
- period_id: string;
33
- period_year: string;
34
- document_nomenclature: string;
35
- document_number: string;
36
- collection_origin_id: string;
37
- collection_origin_name: string;
38
- collection_origin_document_nomenclature_number: string;
39
- event_module_origin: string;
40
- sales_account_id: string;
41
- sales_account_sequence: string;
42
- sales_account_created_at: number;
43
- enabled: boolean;
44
- deleted_at: number;
45
- user_id: string;
46
- created_user: string;
47
- created_at: number;
48
- }
49
- }
50
- interface SaveBody {
51
- company_NIF: string;
52
- company_address: string;
53
- company_trade_name: string;
54
- company_business_name: string;
55
- company_logo: string;
56
- collection_origin_id: string;
57
- collection_origin_document_nomenclature_number: string;
58
- collection_origin_name: string;
59
- event_module_origin: string;
60
- charges_detail: SaveBody.Detail[];
61
- }
62
- namespace SaveBody {
63
- interface Detail {
64
- type?: string;
65
- sequence?: string;
66
- amount_free?: number;
67
- stock_afected?: number;
68
- free_amount?: number;
69
- manage_by?: string;
70
- outsourcing_service_data?: any;
71
- item_id: string;
72
- item_code: string;
73
- item_barcode: string;
74
- item_name: string;
75
- item_balance?: number;
76
- item_balance_referal_guide?: number;
77
- category_id: string;
78
- category_name: string;
79
- price_list_id?: string;
80
- price_list_name?: string;
81
- cost_center_id: string;
82
- cost_center_code?: string;
83
- cost_center_name: string;
84
- cost_center_father_code?: string;
85
- cost_center_father_name?: string;
86
- tax_iva_id: string;
87
- tax_iva_code?: string;
88
- tax_iva_rate: number;
89
- tax_irbpn_id?: string;
90
- tax_ice_id?: string;
91
- unit_measure_id?: string;
92
- unit_measure_group_id?: string;
93
- unit_measure_type?: string;
94
- unit_measure_abbreviation?: string;
95
- unit_measure_group_abbreviation?: string;
96
- unit_measure_name?: string;
97
- unit_measure_group_name?: string;
98
- unit_measure_quantity?: number;
99
- amount: number;
100
- price_type_id?: string;
101
- price_type?: string;
102
- price_type_description?: string;
103
- price_base: number;
104
- total_price: number;
105
- discount_rate: number;
106
- unit_discount: number;
107
- total_discount: number;
108
- commentary_item?: string;
109
- replace_item_name?: string;
110
- charges_detail_tax: Tax[];
111
- }
112
- interface Tax {
113
- type: string;
114
- description: string;
115
- tax_code: string;
116
- tax_rate: number;
117
- tax_base: number;
118
- tax_value: number;
119
- }
120
- }
121
- interface GetOneResponse {
122
- success: boolean;
123
- data: GetOneResponse.Data;
124
- }
125
- namespace GetOneResponse {
126
- interface Data {
127
- _id: string;
128
- charges_origin: string;
129
- company_id: string;
130
- company_NIF: string;
131
- company_address: string;
132
- company_trade_name: string;
133
- company_business_name: string;
134
- company_logo: string;
135
- country_id: string;
136
- country_code: string;
137
- country_name: string;
138
- country_short_name: string;
139
- period_id: string;
140
- period_year: string;
141
- document_nomenclature: string;
142
- document_number: string;
143
- collection_origin_id: string;
144
- collection_origin_name: string;
145
- collection_origin_document_nomenclature_number: string;
146
- event_module_origin: string;
147
- sales_account_id: string;
148
- sales_account_sequence: string;
149
- sales_account_created_at: number;
150
- enabled: boolean;
151
- deleted: boolean;
152
- user_id: string;
153
- created_user: string;
154
- created_at: number;
155
- charges_detail: Data.Detail[];
156
- }
157
- namespace Data {
158
- interface Detail {
159
- _id: string;
160
- company_id: string;
161
- country_id: string;
162
- charges_id: string;
163
- item_id: string;
164
- item_code: string;
165
- item_name: string;
166
- item_barcode: string;
167
- category_id: string;
168
- category_name: string;
169
- price_list_id: string;
170
- price_list_name: string;
171
- cost_center_id: string;
172
- cost_center_code: string;
173
- cost_center_name: string;
174
- cost_center_father_code: string;
175
- cost_center_father_name: string;
176
- tax_iva_id: string;
177
- tax_iva_rate: number;
178
- unit_measure_id: string;
179
- unit_measure_type: string;
180
- unit_measure_abbreviation: string;
181
- unit_measure_name: string;
182
- unit_measure_quantity: number;
183
- amount: number;
184
- price_type_id: string;
185
- price_type: string;
186
- price_type_description: string;
187
- price_base: number;
188
- total_price: number;
189
- discount_rate: number;
190
- unit_discount: number;
191
- total_discount: number;
192
- created_user: string;
193
- created_at: number;
194
- charges_detail_tax: Detail.Tax[];
195
- }
196
- namespace Detail {
197
- interface ChargesDetail {
198
- _id: string;
199
- company_id: string;
200
- country_id: string;
201
- charges_id: string;
202
- item_id: string;
203
- item_code: string;
204
- item_name: string;
205
- item_barcode: string;
206
- category_id: string;
207
- category_name: string;
208
- price_list_id: string;
209
- price_list_name: string;
210
- cost_center_id: string;
211
- cost_center_code: string;
212
- cost_center_name: string;
213
- cost_center_father_code: string;
214
- cost_center_father_name: string;
215
- tax_iva_id: string;
216
- tax_iva_rate: number;
217
- unit_measure_id: string;
218
- unit_measure_type: string;
219
- unit_measure_abbreviation: string;
220
- unit_measure_name: string;
221
- unit_measure_quantity: number;
222
- amount: number;
223
- price_type_id: string;
224
- price_type: string;
225
- price_type_description: string;
226
- price_base: number;
227
- total_price: number;
228
- discount_rate: number;
229
- unit_discount: number;
230
- total_discount: number;
231
- created_user: string;
232
- created_at: number;
233
- charges_detail_tax: Tax[];
234
- }
235
- interface Tax {
236
- _id: string;
237
- company_id: string;
238
- charges_detail_id: string;
239
- type: string;
240
- description: string;
241
- tax_code: string;
242
- tax_rate: number;
243
- tax_base: number;
244
- tax_value: number;
245
- created_at: number;
246
- }
247
- }
248
- }
249
- }
250
- interface ConfirmResponse {
251
- success: boolean;
252
- message: string;
253
- data?: any;
254
- }
255
- }
@@ -1,176 +0,0 @@
1
- export declare namespace CbmEmployeeModel {
2
- interface ListParams {
3
- page: number;
4
- size: number;
5
- department_id?: string;
6
- position_id?: string;
7
- marital_status_id?: string;
8
- document_type_id?: string;
9
- name_surname?: string;
10
- enabled?: boolean;
11
- }
12
- interface ListResponse {
13
- success: boolean;
14
- items: ListResponse.Data[];
15
- }
16
- namespace ListResponse {
17
- interface Data {
18
- _id: string;
19
- company_id: string;
20
- company_NIF: string;
21
- company_trade_name: string;
22
- company_business_name: string;
23
- company_address: string;
24
- company_logo: string;
25
- country_id: string;
26
- country_code: string;
27
- country_name: string;
28
- country_short_name: string;
29
- period_id: string;
30
- period_year: string;
31
- department_id: string;
32
- department_code: number;
33
- department_name: string;
34
- position_id: string;
35
- position_code: number;
36
- position_name: string;
37
- marital_status_id: string;
38
- marital_status_code: string;
39
- marital_status_name: string;
40
- document_type_id: string;
41
- document_type_code: string;
42
- document_type_name: string;
43
- sequence_number: number;
44
- document_number: string;
45
- names: string;
46
- surnames: string;
47
- address: string;
48
- phone_code: string;
49
- phone: string;
50
- cellphone: string;
51
- email: string[];
52
- gender: string;
53
- birthdate: number;
54
- enabled: boolean;
55
- deleted: boolean;
56
- user_id: string;
57
- created_user: string;
58
- created_at: number;
59
- }
60
- }
61
- interface SaveBody {
62
- company_NIF: string;
63
- company_trade_name: string;
64
- company_business_name: string;
65
- company_address: string;
66
- company_email?: string;
67
- company_logo: string;
68
- department_id: string;
69
- department_code: number;
70
- department_name: string;
71
- position_id: string;
72
- position_code: number;
73
- position_name: string;
74
- marital_status_id: string;
75
- marital_status_code: string;
76
- marital_status_name: string;
77
- document_type_id: string;
78
- document_type_code: string;
79
- document_type_name: string;
80
- document_number: string;
81
- names: string;
82
- surnames: string;
83
- address: string;
84
- phone_code: string;
85
- phone: string;
86
- cellphone: string;
87
- email: string[];
88
- email_business: string[];
89
- gender: string;
90
- birthdate: number;
91
- }
92
- interface UpdateBody {
93
- company_NIF: string;
94
- company_trade_name: string;
95
- company_business_name: string;
96
- company_address: string;
97
- company_email?: string;
98
- company_logo: string;
99
- department_id: string;
100
- department_code: number;
101
- department_name: string;
102
- position_id: string;
103
- position_code: number;
104
- position_name: string;
105
- marital_status_id: string;
106
- marital_status_code: string;
107
- marital_status_name: string;
108
- document_type_id: string;
109
- document_type_code: string;
110
- document_type_name: string;
111
- document_number: string;
112
- names: string;
113
- surnames: string;
114
- address: string;
115
- phone_code: string;
116
- phone: string;
117
- cellphone: string;
118
- email: string[];
119
- email_business: string[];
120
- gender: string;
121
- birthdate: number;
122
- }
123
- interface GetOneResponse {
124
- success: boolean;
125
- data: GetOneResponse.Data;
126
- }
127
- namespace GetOneResponse {
128
- interface Data {
129
- _id: string;
130
- company_id: string;
131
- company_NIF: string;
132
- company_trade_name: string;
133
- company_business_name: string;
134
- company_address: string;
135
- company_logo: string;
136
- country_id: string;
137
- country_code: string;
138
- country_name: string;
139
- country_short_name: string;
140
- period_id: string;
141
- period_year: string;
142
- department_id: string;
143
- department_code: number;
144
- department_name: string;
145
- position_id: string;
146
- position_code: number;
147
- position_name: string;
148
- marital_status_id: string;
149
- marital_status_code: string;
150
- marital_status_name: string;
151
- document_type_id: string;
152
- document_type_code: string;
153
- document_type_name: string;
154
- sequence_number: number;
155
- document_number: string;
156
- names: string;
157
- surnames: string;
158
- address: string;
159
- phone_code: string;
160
- phone: string;
161
- cellphone: string;
162
- email: string[];
163
- emails_company: string[];
164
- gender: string;
165
- birthdate: number;
166
- enabled: boolean;
167
- deleted: boolean;
168
- user_id: string;
169
- user_inactive_at: number;
170
- disabled_reason: string;
171
- user_inactive_name: string;
172
- created_user: string;
173
- created_at: number;
174
- }
175
- }
176
- }
@@ -1,10 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { CbmChargesForOrderVehicleModel } from '../models/charges-for-order-vehicle.domain.model';
3
- import { ICbmChargesForOrderVehicleInfrastructureRepository } from '../../infrastructure/repositories/changes-for-order-vehicle.infrastructure.repository';
4
- export declare class CbmChargesForOrderVehicleDomainRepository implements ICbmChargesForOrderVehicleInfrastructureRepository {
5
- private readonly service;
6
- constructor(service: ICbmChargesForOrderVehicleInfrastructureRepository);
7
- list(params: CbmChargesForOrderVehicleModel.ListParams): Observable<CbmChargesForOrderVehicleModel.ListResponse>;
8
- getOne(id: string): Observable<CbmChargesForOrderVehicleModel.GetOneResponse>;
9
- save(data: CbmChargesForOrderVehicleModel.SaveBody): Observable<CbmChargesForOrderVehicleModel.ConfirmResponse>;
10
- }
@@ -1,7 +0,0 @@
1
- import { CbmChargesForOrderVehicleModel } from "../../domain/models/charges-for-order-vehicle.domain.model";
2
- import { Observable } from 'rxjs';
3
- export interface ICbmChargesForOrderVehicleInfrastructureRepository {
4
- list(params: CbmChargesForOrderVehicleModel.ListParams): Observable<CbmChargesForOrderVehicleModel.ListResponse>;
5
- getOne(id: string): Observable<CbmChargesForOrderVehicleModel.GetOneResponse>;
6
- save(data: CbmChargesForOrderVehicleModel.SaveBody): Observable<CbmChargesForOrderVehicleModel.ConfirmResponse>;
7
- }
@@ -1,12 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ICbmChargesForOrderVehicleInfrastructureRepository } from '../repositories/changes-for-order-vehicle.infrastructure.repository';
4
- import { CbmChargesForOrderVehicleModel } from '../../domain/models/charges-for-order-vehicle.domain.model';
5
- export declare class CbmChargesForOrderVehicleInfrastructureService implements ICbmChargesForOrderVehicleInfrastructureRepository {
6
- private readonly http;
7
- constructor(http: HttpClient);
8
- private readonly url;
9
- list(params: CbmChargesForOrderVehicleModel.ListParams): Observable<CbmChargesForOrderVehicleModel.ListResponse>;
10
- getOne(id: string): Observable<CbmChargesForOrderVehicleModel.GetOneResponse>;
11
- save(data: CbmChargesForOrderVehicleModel.SaveBody): Observable<CbmChargesForOrderVehicleModel.ConfirmResponse>;
12
- }