@nomalism-com/types 1.3.54 → 1.3.56

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.
@@ -0,0 +1,10 @@
1
+ import type * as IShared from "../../../shared/interface";
2
+ export declare const Route = "tenant_saft_lock";
3
+ /** Ponto 35 — há documentos certificados: NIF e zona fiscal da empresa deixam de poder mudar. */
4
+ export interface IFindResponse {
5
+ has_certified_documents: boolean;
6
+ }
7
+ export interface IRepository {
8
+ find(): Promise<IFindResponse>;
9
+ }
10
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -3,11 +3,9 @@ import * as IShared from "../../../shared/interface";
3
3
  export type Entity = DeliveryMethods;
4
4
  export declare const Route = "delivery_methods";
5
5
  export interface ICreateRequest {
6
- delivery_method_id: number;
7
6
  name: string;
8
7
  }
9
8
  export interface IUpdateRequest {
10
- delivery_method_id?: number;
11
9
  name?: string;
12
10
  }
13
11
  export interface IRepository {
@@ -3,12 +3,10 @@ import * as IShared from "../../../shared/interface";
3
3
  export type Entity = MaturityDates;
4
4
  export declare const Route = "maturity_dates";
5
5
  export interface ICreateRequest {
6
- maturity_date_id: number;
7
6
  name: string;
8
7
  days: number;
9
8
  }
10
9
  export interface IUpdateRequest {
11
- maturity_date_id?: number;
12
10
  name?: string;
13
11
  days?: number;
14
12
  }
@@ -2,39 +2,27 @@ import { PaymentMethods } from "../../../shared/entities/user";
2
2
  import * as IShared from "../../../shared/interface";
3
3
  export type Entity = PaymentMethods;
4
4
  export declare const Route = "payment_methods";
5
+ /** Meios de pagamento SAF-T (PaymentMechanism) usados pela aplicação. */
5
6
  export declare const PaymentMethodsSaftCodeEnum: {
6
7
  CC: "CC";
7
- CD: "CD";
8
- CH: "CH";
9
- CI: "CI";
10
- CO: "CO";
11
- CS: "CS";
12
- DE: "DE";
13
- LC: "LC";
14
8
  MB: "MB";
15
9
  NU: "NU";
16
10
  OU: "OU";
17
- PR: "PR";
18
11
  TB: "TB";
19
12
  TR: "TR";
20
13
  };
21
14
  export type IPaymentMethodsSaftCodeEnum = (typeof PaymentMethodsSaftCodeEnum)[keyof typeof PaymentMethodsSaftCodeEnum];
22
15
  export interface ICreateRequest {
23
- payment_method_id?: number | null;
24
16
  name: string;
25
- is_numerary: boolean;
26
- is_mb: boolean;
27
- is_credit: boolean;
28
17
  hidden: boolean | null;
29
18
  saft_code: IPaymentMethodsSaftCodeEnum;
19
+ incluir_no_apuro_caixa: boolean;
30
20
  }
31
21
  export interface IUpdateRequest {
32
- payment_method_id?: number | null;
33
22
  name?: string;
34
- is_numerary?: boolean;
35
- is_mb?: boolean;
36
- is_credit?: boolean;
37
23
  hidden?: boolean | null;
24
+ saft_code?: IPaymentMethodsSaftCodeEnum;
25
+ incluir_no_apuro_caixa?: boolean;
38
26
  }
39
27
  export interface IRepository {
40
28
  findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
@@ -4,12 +4,10 @@ export type Entity = Vehicles;
4
4
  export declare const Route = "vehicles";
5
5
  export interface ICreateRequest {
6
6
  description: string;
7
- vehicle_id: number;
8
7
  number_plate: string;
9
8
  }
10
9
  export interface IUpdateRequest {
11
10
  description?: string;
12
- vehicle_id?: number;
13
11
  number_plate?: string;
14
12
  }
15
13
  export interface IRepository {
@@ -405,6 +405,8 @@ export type DocumentLine = {
405
405
  sent_to_client: boolean;
406
406
  sent_to_provider: boolean;
407
407
  global_discount: boolean;
408
+ split_from_document_line_id?: string | null;
409
+ merged_at?: Date | null;
408
410
  created_at: Date;
409
411
  updated_at: Date;
410
412
  created_by: string;
@@ -1006,7 +1008,7 @@ export type StartDocumentHeaderLastUpdateVirtuals = {
1006
1008
  */
1007
1009
  export type StartDocumentHeaderVirtuals = {
1008
1010
  parent_document_header_id: string;
1009
- paid: number;
1011
+ invoiced: number;
1010
1012
  total_without_tax: number;
1011
1013
  total: number;
1012
1014
  total_discount: number;
@@ -319,10 +319,8 @@ export type PaymentMethods = {
319
319
  id: string;
320
320
  name: string;
321
321
  hidden: boolean | null;
322
- is_numerary: boolean;
323
- is_mb: boolean;
324
- is_credit: boolean;
325
322
  saft_code: IPaymentMethodsSaftCodeEnum;
323
+ incluir_no_apuro_caixa: boolean;
326
324
  created_at: Date;
327
325
  updated_at: Date;
328
326
  created_by: string;
@@ -334,7 +332,6 @@ export type PaymentMethods = {
334
332
  */
335
333
  export type DeliveryMethods = {
336
334
  id: string;
337
- delivery_method_id: number | null;
338
335
  name: string;
339
336
  created_at: Date;
340
337
  updated_at: Date;
@@ -347,7 +344,6 @@ export type DeliveryMethods = {
347
344
  */
348
345
  export type MaturityDates = {
349
346
  id: string;
350
- maturity_date_id: number | null;
351
347
  name: string;
352
348
  days: number;
353
349
  created_at: Date;
@@ -361,7 +357,6 @@ export type MaturityDates = {
361
357
  */
362
358
  export type Vehicles = {
363
359
  id: string;
364
- vehicle_id: number | null;
365
360
  description: string;
366
361
  number_plate: string;
367
362
  created_at: Date;
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.54",
4
+ "version": "1.3.56",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "eslint": "^10.11.0",
33
33
  "eslint-config-prettier": "^10.1.8",
34
34
  "eslint-plugin-simple-import-sort": "^14.0.0",
35
- "globals": "^17.12.0",
35
+ "globals": "^17.13.0",
36
36
  "husky": "^9.1.7",
37
37
  "lint-staged": "^17.6.0",
38
38
  "prettier": "^3.9.9",
@@ -59,6 +59,6 @@
59
59
  },
60
60
  "allowScripts": {
61
61
  "esbuild@0.27.7": true,
62
- "@swc/core@1.16.2": true
62
+ "@swc/core@1.16.13": true
63
63
  }
64
64
  }