@nomalism-com/types 1.0.34 → 1.0.35

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.
@@ -3,7 +3,7 @@ import { DocumentHeader, DocumentHeaderClientVirtuals, DocumentHeaderProviderVir
3
3
  import * as IDocumentType from '../documentType/interfaces';
4
4
  import * as IPayment from '../payment/interface';
5
5
  import type { IProjectInfoType } from '../../integration/projectInfo/interfaces';
6
- export type Entity = Omit<DocumentHeader, 'data'>;
6
+ export type Entity = DocumentHeader;
7
7
  export declare const Route = "documentHeader";
8
8
  export declare const UpperName = "DocumentHeader";
9
9
  export declare const LowerName: string;
@@ -49,30 +49,15 @@ export interface ICertificateDocument extends IQRInvoice {
49
49
  documentHeaderId: string;
50
50
  rsaHashData: IRsaHashData;
51
51
  }
52
- export interface IDocumentHeaderData {
53
- external_document_name?: string;
54
- certificate?: {
55
- document_name: string;
56
- atcud: string;
57
- rsa_hash: string;
58
- entity_vat: string;
59
- entity_number: number;
60
- comercial_discount_value: number;
61
- gross_value: number;
62
- net_value: number;
63
- taxes_value: number;
64
- };
65
- paired_with?: string;
66
- project_info?: {
67
- document_header_id: string;
68
- type: IProjectInfoType;
69
- name: string;
70
- email: string;
71
- telephone: string;
72
- description: string;
73
- };
74
- }
75
- export interface IFindOneBase extends Omit<Entity, 'data'> {
52
+ export interface IProjectInfo {
53
+ document_header_id: string;
54
+ type: IProjectInfoType;
55
+ name: string;
56
+ email: string;
57
+ telephone: string;
58
+ description: string;
59
+ }
60
+ export interface IFindOneBase extends Entity {
76
61
  document_type: IDocumentType.IEntityExtended;
77
62
  }
78
63
  export interface IFindOneResponse extends IFindOneBase {
@@ -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, IDocumentHeaderData } from '../../modules/supply/documentHeader/interfaces';
13
+ import type { ICertificateDocument, IProjectInfo } from '../../modules/supply/documentHeader/interfaces';
14
14
  export type Chat = {
15
15
  id: string;
16
16
  owner_id: string;
@@ -201,7 +201,6 @@ export type DocumentHeader = {
201
201
  pdf_link: string | null;
202
202
  google_sheet_id: string | null;
203
203
  emission_date: Date;
204
- data: IDocumentHeaderData;
205
204
  owner_id: string;
206
205
  owner_number: number;
207
206
  owner_name: string | null;
@@ -251,6 +250,14 @@ export type DocumentHeader = {
251
250
  atcud: string | null;
252
251
  qrcode: ICertificateDocument | null;
253
252
  is_void_reason: string | null;
253
+ comercial_discount_value: number | null;
254
+ gross_value: number | null;
255
+ net_value: number | null;
256
+ taxes_value: number | null;
257
+ document_name: string;
258
+ external_document_name: string | null;
259
+ paired_with: string | null;
260
+ project_info: IProjectInfo | null;
254
261
  created_at: Date;
255
262
  updated_at: Date;
256
263
  created_by: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "1.0.34",
12
+ "version": "1.0.35",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [