@nomalism-com/types 0.37.11 → 0.37.13

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.
@@ -2,7 +2,6 @@ import * as IShared from '../../../shared/interface';
2
2
  import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentLineNote, VatTax } from '../../../shared/entities/stock';
3
3
  import * as IDocumentType from '../documentType/interfaces';
4
4
  import * as IPayment from '../payment/interface';
5
- import type { IProjectInfoType } from '../../integration/projectInfo/interfaces';
6
5
  export type Entity = Omit<DocumentHeader, 'external_data'>;
7
6
  export declare const Route = "documentHeader";
8
7
  export declare const UpperName = "DocumentHeader";
@@ -26,14 +25,6 @@ export interface IRsaHashData {
26
25
  grossTotal: number;
27
26
  previousHash: string;
28
27
  }
29
- export interface IProjectInfo {
30
- document_header_id: string;
31
- type: IProjectInfoType;
32
- name: string;
33
- email: string;
34
- telephone: string;
35
- description: string;
36
- }
37
28
  export interface IFindOneBase extends Entity {
38
29
  document_type: IDocumentType.IEntityExtended;
39
30
  }
@@ -10,7 +10,8 @@ import { ISavedEmPickingData } from '../../modules/stock/savedEmPicking/interfac
10
10
  import { IDocumentLineNoteType } from '../../modules/supply/documentLineNote/interfaces';
11
11
  import { IProductSheetState } from '../../modules/stock/productGoogleSheets/interface';
12
12
  import { ITaskStatusDataType } from '../../modules/stock/task/interface';
13
- import type { IProjectInfo, IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
13
+ import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
14
+ import type { ProjectInfo } from './integration';
14
15
  /**
15
16
  * Model Chat
16
17
  *
@@ -316,7 +317,7 @@ export type DocumentHeader = {
316
317
  atcud: string | null;
317
318
  hash: string | null;
318
319
  hash_data: IRsaHashData | {};
319
- project_info: IProjectInfo | {};
320
+ project_info: ProjectInfo | {};
320
321
  paired_with: string | null;
321
322
  comercial_discount_value: number | null;
322
323
  gross_value: number | null;
@@ -1020,7 +1021,6 @@ export type StartDocumentHeaderLastUpdateVirtuals = {
1020
1021
  */
1021
1022
  export type StartDocumentHeaderVirtuals = {
1022
1023
  parent_document_header_id: string;
1023
- name: string;
1024
1024
  paid: number;
1025
1025
  total_without_tax: number;
1026
1026
  total: number;
@@ -1040,10 +1040,6 @@ export type StartDocumentHeaderVirtuals = {
1040
1040
  */
1041
1041
  export type DocumentHeaderVirtuals = {
1042
1042
  id: string;
1043
- p_id: string;
1044
- name: string;
1045
- external_name: string | null;
1046
- document_number: string;
1047
1043
  client_total_without_tax: number;
1048
1044
  client_total: number;
1049
1045
  client_total_discount: number;
@@ -4,10 +4,11 @@ import type { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from '..
4
4
  import type { IGetUserData } from '../modules/integration/googleSheets/interfaces';
5
5
  import type { IDocumentTypeUserType } from '../modules/supply/documentType/interfaces';
6
6
  import type { IScheduleType } from '../modules/supply/schedule/interface';
7
- import type { IWarningType, IProjectInfo as KafkaProjectInfo } from '../modules/supply/documentHeader/interfaces';
7
+ import type { IWarningType } from '../modules/supply/documentHeader/interfaces';
8
8
  import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from '../modules/view/adminPanel/interfaces';
9
9
  import type * as ErrorLog from '../modules/view/errorLog/interfaces';
10
10
  import type { File } from './entities/stock';
11
+ import type { ProjectInfo } from './entities/integration';
11
12
  export { messages };
12
13
  type CreatedAt = 'created_at';
13
14
  type UpdatedAt = 'updated_at';
@@ -305,7 +306,7 @@ export type IBrokerTopicPayload = {
305
306
  email_subject?: string;
306
307
  created_by: string;
307
308
  };
308
- [IBrokerTopic.create_site_proposal]: KafkaProjectInfo;
309
+ [IBrokerTopic.create_site_proposal]: ProjectInfo;
309
310
  [IBrokerTopic.verification_email]: {
310
311
  email: string;
311
312
  token: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.37.11",
4
+ "version": "0.37.13",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",