@nomalism-com/types 1.0.42 → 1.0.44

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.
@@ -22,20 +22,6 @@ export interface ITaxEntry extends Pick<VatTax, 'name' | 'saft_code'> {
22
22
  export interface ITaxTable {
23
23
  taxes: ITaxEntry[];
24
24
  vatTaxZone: string;
25
- totalTaxes: number;
26
- }
27
- export interface IQRInvoice extends ITaxTable {
28
- tenantNIF: string;
29
- certificateNumber: string;
30
- clientNIF: string;
31
- clientCountry: string;
32
- documentType: string;
33
- documentState: string;
34
- emissionDate: string;
35
- documentSequence: string;
36
- atcud: string;
37
- hash: string;
38
- documentTotal: string;
39
25
  }
40
26
  export interface IRsaHashData {
41
27
  invoiceDate: string;
@@ -44,11 +30,6 @@ export interface IRsaHashData {
44
30
  grossTotal: number;
45
31
  previousHash: string;
46
32
  }
47
- export interface ICertificateDocument extends IQRInvoice {
48
- sequenceNumber: number;
49
- documentHeaderId: string;
50
- rsaHashData: IRsaHashData;
51
- }
52
33
  export interface IProjectInfo {
53
34
  document_header_id: string;
54
35
  type: IProjectInfoType;
@@ -373,6 +354,7 @@ export interface IRepository {
373
354
  sendClientNotification(selector: IShared.IFindByIdRequest, data: ISendClientNotificationRequest): Promise<void>;
374
355
  markUnsentClientNotification(selector: IShared.IFindByIdRequest): Promise<void>;
375
356
  documentPdf(selector: IShared.IFindByIdRequest, data: IDocumentPdfRequest): Promise<string>;
357
+ documentThermalPrint(selector: IShared.IFindByIdRequest): Promise<string>;
376
358
  documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
377
359
  getAllRelatedDocumentHeaderIds(params: IShared.IFindByIdRequest): Promise<string[]>;
378
360
  findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
@@ -10,7 +10,7 @@ import { IDocumentLineNoteType } from '../../modules/supply/documentLineNote/int
10
10
  import { IProductSheetState } from '../../modules/stock/productGoogleSheets/interface';
11
11
  import type { IFindProposals } from '../../modules/supply/orderManagement/interface';
12
12
  import { ITaskStatusDataType } from '../../modules/stock/task/interface';
13
- import type { ICertificateDocument, IProjectInfo } from '../../modules/supply/documentHeader/interfaces';
13
+ import type { IProjectInfo, IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
14
14
  export type Chat = {
15
15
  id: string;
16
16
  owner_id: string;
@@ -186,6 +186,7 @@ export type DocumentType = {
186
186
  allow_duplicates: boolean;
187
187
  requires_picking: boolean;
188
188
  allow_document_line_assoc_plugins: boolean;
189
+ inherits_start_number: boolean;
189
190
  document_set_id: string;
190
191
  created_at: Date;
191
192
  updated_at: Date;
@@ -243,21 +244,26 @@ export type DocumentHeader = {
243
244
  return_reason: string | null;
244
245
  is_archived: boolean;
245
246
  is_void: boolean;
247
+ is_void_reason: string | null;
246
248
  origin_id: string | null;
247
249
  who_handles: string | null;
248
250
  tags: string | null;
249
251
  warning: string | null;
252
+ sequence_number: number | null;
253
+ tenant_nif: string;
250
254
  atcud: string | null;
251
- qrcode: ICertificateDocument | null;
252
- is_void_reason: string | null;
255
+ hash: string | null;
256
+ hash_data: IRsaHashData | {};
257
+ project_info: IProjectInfo | {};
258
+ paired_with: string | null;
253
259
  comercial_discount_value: number | null;
254
260
  gross_value: number | null;
255
261
  net_value: number | null;
256
262
  taxes_value: number | null;
263
+ taxes: ITaxEntry[];
264
+ document_name: string;
257
265
  external_document_name: string | null;
258
- sequence_number: number | null;
259
- paired_with: string | null;
260
- project_info: IProjectInfo | null;
266
+ qrcode: string | null;
261
267
  created_at: Date;
262
268
  updated_at: Date;
263
269
  created_by: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "1.0.42",
12
+ "version": "1.0.44",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -39,9 +39,9 @@
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-terser": "^0.4.4",
41
41
  "@rollup/plugin-typescript": "^12.1.2",
42
- "@types/node": "^22.15.17",
43
- "@typescript-eslint/eslint-plugin": "^8.32.0",
44
- "@typescript-eslint/parser": "^8.32.0",
42
+ "@types/node": "^22.15.18",
43
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
44
+ "@typescript-eslint/parser": "^8.32.1",
45
45
  "eslint": "^9.26.0",
46
46
  "eslint-config-prettier": "^10.1.5",
47
47
  "eslint-import-resolver-typescript": "^4.3.4",