@cbm-common/cbm-types 0.0.241 → 0.0.243

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.
@@ -115,6 +115,10 @@ export declare class CbmOrderVehicleAddCharge {
115
115
  modeSaleOrWo: import("@angular/core").InputSignal<"sale" | "wo">;
116
116
  saleAccountId: import("@angular/core").InputSignal<string | null>;
117
117
  onCancel: import("@angular/core").OutputEmitterRef<void>;
118
+ onSave: import("@angular/core").OutputEmitterRef<{
119
+ redirect: "new" | "view" | "close" | "modal";
120
+ id?: string;
121
+ }>;
118
122
  orderId: import("@angular/core").WritableSignal<string | null>;
119
123
  saleAccountData: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data<any> | null>;
120
124
  dataStockModal: import("@angular/core").WritableSignal<IDataItemStock | null>;
@@ -301,7 +305,7 @@ export declare class CbmOrderVehicleAddCharge {
301
305
  fetchData(id: string): Promise<void>;
302
306
  searchSaleAccount$: PaginatedListService<CbmSalesAccountModel.ListResponse, CbmSalesAccountModel.ListParams, CbmSalesAccountModel.ListResponse.Item[]>;
303
307
  fetchTaxIrbpnr(): Promise<void>;
304
- onConfirmSave(redirect: 'new' | 'view' | 'close'): Promise<void>;
308
+ onConfirmSave(redirect: 'new' | 'view' | 'close' | 'modal'): Promise<void>;
305
309
  fetchCompanyCustom(): Promise<void>;
306
310
  saveRequest(): Promise<string>;
307
311
  onCancelPress(): void;
@@ -7,7 +7,7 @@ import { CbmClientDomainRepository } from '../../../domain/repositories/client.d
7
7
  import { CbmSalesAccountDomainRepository } from '../../../domain/repositories/sales-account.domain.repository';
8
8
  import { CbmSellerDomainRepository } from '../../../domain/repositories/seller.domain.repository';
9
9
  import { CbmUserDomainRepository } from '../../../domain/repositories/user.domain.repository';
10
- import { CbmAuthService } from '../../../domain/services/auth/auth.service';
10
+ import { CbmAuthReactiveService } from '../../../domain/services/auth-reactive.domain.service';
11
11
  import { GeneralDomainService } from '../../../domain/services/general.domain.service';
12
12
  import { CbmNotificationService } from '../../../domain/services/notification/notification.service';
13
13
  import { SaleAccountDomainService } from '../../../domain/services/sale-account.domain.service';
@@ -22,7 +22,7 @@ export declare class SaleAccountModal implements OnInit {
22
22
  private readonly saleAccountService;
23
23
  private readonly clientBranchRepository;
24
24
  private readonly salesAccountDomainRepository;
25
- constructor(destroyRef: DestroyRef, generalService: GeneralDomainService, authService: CbmAuthService, userRepository: CbmUserDomainRepository, notificationService: CbmNotificationService, clientRepository: CbmClientDomainRepository, sellerRepository: CbmSellerDomainRepository, saleAccountService: SaleAccountDomainService, clientBranchRepository: CbmClientBranchDomainRepository, salesAccountDomainRepository: CbmSalesAccountDomainRepository);
25
+ constructor(destroyRef: DestroyRef, generalService: GeneralDomainService, authService: CbmAuthReactiveService, userRepository: CbmUserDomainRepository, notificationService: CbmNotificationService, clientRepository: CbmClientDomainRepository, sellerRepository: CbmSellerDomainRepository, saleAccountService: SaleAccountDomainService, clientBranchRepository: CbmClientBranchDomainRepository, salesAccountDomainRepository: CbmSalesAccountDomainRepository);
26
26
  statusModal: import("@angular/core").WritableSignal<IGeneral.STATUS>;
27
27
  filterForm: import("@angular/forms").FormGroup<{
28
28
  date_begin: import("@angular/forms").FormControl<string | null>;
@@ -53,6 +53,10 @@ export declare namespace CbmChargesForOrderVehicleModel {
53
53
  company_trade_name: string;
54
54
  company_business_name: string;
55
55
  company_logo: string;
56
+ vehicle_license_plate: string;
57
+ sequence_order_vehicle: string;
58
+ client_business_name: string;
59
+ client_document_number: string;
56
60
  collection_origin_id: string;
57
61
  collection_origin_document_nomenclature_number: string;
58
62
  collection_origin_name: string;
@@ -257,6 +257,7 @@ export declare namespace CbmSalesAccountModel {
257
257
  created_at: number;
258
258
  created_user: string;
259
259
  sales_account_related_documents: T;
260
+ data_origin: Data.Origin;
260
261
  sales_account_detail?: Data.Detail[];
261
262
  }
262
263
  namespace Data {
@@ -267,6 +268,23 @@ export declare namespace CbmSalesAccountModel {
267
268
  amount: number;
268
269
  sequence: string;
269
270
  }
271
+ interface Origin {
272
+ vehicle_reception_id: string;
273
+ vehicle_id: string;
274
+ vehicle_license_plate: string;
275
+ vehicle_type: string;
276
+ vehicle_brand: string;
277
+ vehicle_model: string;
278
+ vehicle_color: string;
279
+ vehicle_cylinder: string;
280
+ vehicle_year: string;
281
+ vehicle_registry_code: string;
282
+ vehicle_chassis_number: string;
283
+ vehicle_engine_number: string;
284
+ order_document_nomenclature: string;
285
+ order_document_number: string;
286
+ order_document_date: number;
287
+ }
270
288
  interface Detail {
271
289
  _id: string;
272
290
  company_id: string;
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.241",
3
+ "version": "0.0.243",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {