@nomalism-com/types 1.3.62 → 1.3.64

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.
package/dist/index.cjs CHANGED
@@ -1681,14 +1681,6 @@ var integrationErrors_default = {
1681
1681
  alreadyExists: "this observation already exists",
1682
1682
  notDeleted: "observation not deleted",
1683
1683
  notUpdated: "observation not updated"
1684
- },
1685
- moduleObservationType: {
1686
- dontExist: "this type of observation dont exists",
1687
- notFound: "type of observation not found",
1688
- alreadyExists: "this type of observation already exists",
1689
- childExists: "type of observation has observations",
1690
- notDeleted: "type of observation not deleted",
1691
- notUpdated: "type of observation not updated"
1692
1684
  }
1693
1685
  };
1694
1686
 
@@ -1793,14 +1785,6 @@ var stockErrors_default = {
1793
1785
  notDeleted: "symbols not deleted",
1794
1786
  notUpdated: "symbols not updated"
1795
1787
  },
1796
- TypeOfLocation: {
1797
- dontExist: "this type of location dont exists",
1798
- notFound: "type of location not found",
1799
- alreadyExists: "this type of location already exists",
1800
- childExists: "type of location has locations",
1801
- notDeleted: "type of location not deleted",
1802
- notUpdated: "type of location not updated"
1803
- },
1804
1788
  VatTaxes: {
1805
1789
  dontExist: "this vat taxes dont exists",
1806
1790
  notFound: "vat taxesn not found",
package/dist/index.js CHANGED
@@ -1677,14 +1677,6 @@ var integrationErrors_default = {
1677
1677
  alreadyExists: "this observation already exists",
1678
1678
  notDeleted: "observation not deleted",
1679
1679
  notUpdated: "observation not updated"
1680
- },
1681
- moduleObservationType: {
1682
- dontExist: "this type of observation dont exists",
1683
- notFound: "type of observation not found",
1684
- alreadyExists: "this type of observation already exists",
1685
- childExists: "type of observation has observations",
1686
- notDeleted: "type of observation not deleted",
1687
- notUpdated: "type of observation not updated"
1688
1680
  }
1689
1681
  };
1690
1682
 
@@ -1789,14 +1781,6 @@ var stockErrors_default = {
1789
1781
  notDeleted: "symbols not deleted",
1790
1782
  notUpdated: "symbols not updated"
1791
1783
  },
1792
- TypeOfLocation: {
1793
- dontExist: "this type of location dont exists",
1794
- notFound: "type of location not found",
1795
- alreadyExists: "this type of location already exists",
1796
- childExists: "type of location has locations",
1797
- notDeleted: "type of location not deleted",
1798
- notUpdated: "type of location not updated"
1799
- },
1800
1784
  VatTaxes: {
1801
1785
  dontExist: "this vat taxes dont exists",
1802
1786
  notFound: "vat taxesn not found",
@@ -26,7 +26,7 @@ export interface ICreateProviderCreditNoteFromReturnDocumentHeaders {
26
26
  }
27
27
  export interface ICreateProviderCreditNoteFromReturnRequest {
28
28
  emission_date: Date;
29
- external_document_name: string;
29
+ external_reference: string;
30
30
  observations: string;
31
31
  document_headers: ICreateProviderCreditNoteFromReturnDocumentHeaders[];
32
32
  acerto: number;
@@ -16,7 +16,7 @@ export interface IValueByVatTax {
16
16
  export interface ICreateProviderFinancialCreditNoteRequest {
17
17
  provider_id?: string;
18
18
  nif?: string;
19
- external_document_name: string;
19
+ external_reference: string;
20
20
  account_code?: string | null;
21
21
  auto_pay?: boolean;
22
22
  emission_date: Date;
@@ -7,7 +7,7 @@ export interface IValueByVatTax {
7
7
  export interface ICreateProviderServiceInvoiceRequest {
8
8
  provider_id?: string;
9
9
  nif?: string;
10
- external_document_name: string;
10
+ external_reference: string;
11
11
  account_code?: string | null;
12
12
  auto_pay?: boolean;
13
13
  emission_date: Date;
@@ -1,21 +1,18 @@
1
- import { Observation, ObservationType } from "../../../shared/entities/integration";
1
+ import { Observation } from "../../../shared/entities/integration";
2
2
  import * as IShared from "../../../shared/interface";
3
3
  export type Entity = Observation;
4
4
  export declare const Route = "observation";
5
5
  export interface ICreateRequest {
6
6
  owner_id: string;
7
- observation_type_id?: string | null;
8
7
  description: string;
9
8
  internal: boolean;
10
9
  }
11
10
  export interface IUpdateRequest {
12
- observation_type_id?: string | null;
13
11
  description?: string;
14
12
  internal?: boolean;
15
13
  }
16
14
  export interface IFindByQueryRequest {
17
15
  owner_id?: string;
18
- observation_type_id?: string;
19
16
  description?: string;
20
17
  internal?: boolean;
21
18
  }
@@ -27,9 +24,7 @@ export interface IFindByOwnersRequest {
27
24
  owner_ids: string[];
28
25
  includeInternal?: boolean;
29
26
  }
30
- export interface IFindByOwnerResponse extends Entity {
31
- observation_type: ObservationType | null;
32
- }
27
+ export type IFindByOwnerResponse = Entity;
33
28
  export interface IRepository {
34
29
  findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
35
30
  findByQuery(data: IFindByQueryRequest): Promise<Entity[]>;
@@ -1,14 +1,10 @@
1
- import { Location, TypeOfLocation } from "../../../shared/entities/stock";
1
+ import { Location } from "../../../shared/entities/stock";
2
2
  import * as IShared from "../../../shared/interface";
3
3
  export type Entity = Location;
4
4
  export declare const Route = "location";
5
- interface IFindDetailedResponse extends Entity {
6
- type_of_location: TypeOfLocation;
7
- }
8
5
  export type IFindRequest = Record<string, unknown>;
9
- export type IFindResponse = Omit<IFindDetailedResponse, "">;
6
+ export type IFindResponse = Entity;
10
7
  export interface IRepository {
11
8
  find(selector: IFindRequest): Promise<IFindResponse[]>;
12
9
  }
13
10
  export type IController = IShared.IEntityWithUserToken<IRepository>;
14
- export {};
@@ -116,7 +116,7 @@ export interface IDeliveryAdresses {
116
116
  export interface ICreateFromHeaderRequest {
117
117
  document_type_id: number;
118
118
  document_set_id?: string;
119
- external_document_name?: string;
119
+ external_reference?: string;
120
120
  emission_date?: Date;
121
121
  account_code?: string | null;
122
122
  from_header: string[];
@@ -7,7 +7,6 @@ import type { IBudgetOptionsType, IProjectInfoOriginType, IProjectInfoType } fro
7
7
  export type Observation = {
8
8
  id: string;
9
9
  owner_id: string;
10
- observation_type_id: string | null;
11
10
  description: string;
12
11
  internal: boolean;
13
12
  created_by: string;
@@ -15,18 +14,6 @@ export type Observation = {
15
14
  created_at: Date;
16
15
  updated_at: Date;
17
16
  };
18
- /**
19
- * Model ObservationType
20
- *
21
- */
22
- export type ObservationType = {
23
- id: string;
24
- name: string;
25
- created_by: string;
26
- updated_by: string;
27
- created_at: Date;
28
- updated_at: Date;
29
- };
30
17
  /**
31
18
  * Model GoogleFilePermission
32
19
  *
@@ -8,7 +8,7 @@ import { IQueryParameterDatatype } from "../../modules/stock/queryParameter/inte
8
8
  import { ISavedEmPickingData } from "../../modules/stock/savedEmPicking/interfaces";
9
9
  import { ITagType } from "../../modules/stock/tag/interface";
10
10
  import { ITaskStatusDataType } from "../../modules/stock/task/interface";
11
- import type { IRsaHashData, ITaxEntry } from "../../modules/supply/documentHeader/interfaces";
11
+ import type { ITaxEntry } from "../../modules/supply/documentHeader/interfaces";
12
12
  import { IData, IDataDocumentoPago, IDataPagamento, type IImportedFromSheets, IPromotions } from "../../modules/supply/documentLine/interfaces";
13
13
  import { IDocumentLineNoteType } from "../../modules/supply/documentLineNote/interfaces";
14
14
  import { IDocumentTypeCodeType, IDocumentTypeUserType } from "../../modules/supply/documentType/interfaces";
@@ -53,7 +53,6 @@ export type Chat = {
53
53
  */
54
54
  export type Location = {
55
55
  id: string;
56
- type_of_location_id: string;
57
56
  country_id: string;
58
57
  country_name: string;
59
58
  name: string;
@@ -181,19 +180,6 @@ export type PromotionAssoc = {
181
180
  created_by: string;
182
181
  updated_by: string;
183
182
  };
184
- /**
185
- * Model TypeOfLocation
186
- *
187
- */
188
- export type TypeOfLocation = {
189
- id: string;
190
- name: string;
191
- origin_id: string | null;
192
- created_at: Date;
193
- updated_at: Date;
194
- created_by: string;
195
- updated_by: string;
196
- };
197
183
  /**
198
184
  * Model VatTax
199
185
  *
@@ -270,13 +256,9 @@ export type DocumentHeader = {
270
256
  from_document_header_id: string | null;
271
257
  document_type_id: number;
272
258
  document_number: number;
273
- document_set_id: string;
274
259
  pdf_link: string | null;
275
260
  google_sheet_id: string | null;
276
261
  emission_date: Date;
277
- source_billing: string;
278
- hash_control: string | null;
279
- copy_from_document: string | null;
280
262
  chat_document_header_id: string;
281
263
  owner_id: string;
282
264
  owner_number: number;
@@ -325,18 +307,11 @@ export type DocumentHeader = {
325
307
  is_prepared: boolean;
326
308
  is_rejected: boolean;
327
309
  is_archived: boolean;
328
- is_void: boolean;
329
- is_void_reason: string | null;
330
310
  is_force_adjudicated: boolean;
331
311
  confirmed: boolean;
332
312
  origin_id: string | null;
333
313
  who_handles: string | null;
334
314
  warning: string | null;
335
- sequence_number: number | null;
336
- tenant_nif: string;
337
- atcud: string | null;
338
- hash: string | null;
339
- hash_data?: IRsaHashData;
340
315
  project_info?: ProjectInfo;
341
316
  paired_with: string | null;
342
317
  comercial_discount_value: number | null;
@@ -345,8 +320,7 @@ export type DocumentHeader = {
345
320
  taxes_value: number | null;
346
321
  taxes: ITaxEntry[];
347
322
  document_name: string;
348
- external_document_name: string | null;
349
- qrcode: string | null;
323
+ external_reference: string | null;
350
324
  seller: string | null;
351
325
  created_at: Date;
352
326
  updated_at: Date;
@@ -33,13 +33,5 @@ declare const _default: {
33
33
  notDeleted: string;
34
34
  notUpdated: string;
35
35
  };
36
- moduleObservationType: {
37
- dontExist: string;
38
- notFound: string;
39
- alreadyExists: string;
40
- childExists: string;
41
- notDeleted: string;
42
- notUpdated: string;
43
- };
44
36
  };
45
37
  export default _default;
@@ -94,14 +94,6 @@ declare const _default: {
94
94
  notDeleted: string;
95
95
  notUpdated: string;
96
96
  };
97
- TypeOfLocation: {
98
- dontExist: string;
99
- notFound: string;
100
- alreadyExists: string;
101
- childExists: string;
102
- notDeleted: string;
103
- notUpdated: string;
104
- };
105
97
  VatTaxes: {
106
98
  dontExist: string;
107
99
  notFound: 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": "1.3.62",
4
+ "version": "1.3.64",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",