@nomalism-com/types 0.49.11 → 0.49.12

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.
@@ -14,10 +14,10 @@ export interface IGetUserData extends Pick<DocumentHeader, "document_number" | "
14
14
  }
15
15
  export interface IUpdateRequest {
16
16
  document_name: string;
17
- client_data?: Partial<IGetUserData>;
17
+ client_data?: IGetUserData;
18
18
  }
19
19
  export interface ICloneRequest {
20
- document_name?: string | null;
20
+ document_name: string;
21
21
  }
22
22
  export interface ICloneResponse {
23
23
  spreadsheetId: string;
@@ -18,10 +18,9 @@ export type IBudgetOptionsType = {
18
18
  };
19
19
  export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
20
20
  export declare const projectInfoTypes: string[];
21
- export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id" | "address"> {
21
+ export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id"> {
22
22
  persona_id?: string;
23
23
  client_id?: string;
24
- address?: string | null;
25
24
  }
26
25
  export interface ICreateResponse {
27
26
  document_header_id: string;
@@ -1,16 +1,9 @@
1
1
  import { SavedEmPicking } from "../../../shared/entities/stock";
2
2
  import * as IShared from "../../../shared/interface";
3
- import { IEntradaDeMaterialClientOrder, IEntradaDeMaterialNC, IEntradaDeMaterialStock } from "../../document/materialEntrance/interfaces";
3
+ import { IUnfinishedPickingLineGroupExtended } from "../../document/materialEntrance/interfaces";
4
4
  export type Entity = SavedEmPicking;
5
5
  export declare const Route = "saved_em_picking";
6
- export type ISavedEmPickingClientOrder = IShared.PartialBy<IEntradaDeMaterialClientOrder, "pc_sheet" | "note" | "printed">;
7
- export type ISavedEmPickingStock = IShared.PartialBy<IEntradaDeMaterialStock, "note" | "printed">;
8
- export type ISavedEmPickingNotOk = IShared.PartialBy<IEntradaDeMaterialNC, "note" | "printed">;
9
- export interface ISavedEmPickingData {
10
- clientOrders: ISavedEmPickingClientOrder[];
11
- stock: ISavedEmPickingStock[];
12
- not_ok?: ISavedEmPickingNotOk;
13
- }
6
+ export type ISavedEmPickingData = Pick<IUnfinishedPickingLineGroupExtended, "clientOrders" | "stock" | "not_ok">;
14
7
  export interface ICreateRequest {
15
8
  provider_id: string;
16
9
  document_header_id: string;
@@ -21,9 +21,6 @@ export interface IDataPayload {
21
21
  export type IData = {
22
22
  [K in IDataKeys]?: IDataPayload;
23
23
  };
24
- export type IDataRequest = {
25
- [K in IDataKeys]?: Partial<IDataPayload>;
26
- };
27
24
  export interface IImportedFromSheets {
28
25
  type: IGetProductType;
29
26
  group: IGetProductGroup;
@@ -90,7 +87,7 @@ export interface ICreateRequest {
90
87
  provider_tax: number;
91
88
  provider_discount: number;
92
89
  document_line_group_id?: string;
93
- data: IDataRequest;
90
+ data: IData;
94
91
  }
95
92
  export interface IUpdateRequest {
96
93
  product_id?: string;
@@ -30,7 +30,7 @@ export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFind
30
30
  export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telephone">;
31
31
  export interface ICreateRequest {
32
32
  user_id?: string;
33
- main_persona: Partial<ICreateMainPersona>;
33
+ main_persona: ICreateMainPersona;
34
34
  deferred_payment?: boolean;
35
35
  is_donation_eligible?: boolean;
36
36
  default_discount?: number;
@@ -27,7 +27,7 @@ export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telep
27
27
  export interface ICreateRequest {
28
28
  user_id: string;
29
29
  default_percentage?: number;
30
- main_persona: Partial<ICreateMainPersona>;
30
+ main_persona: ICreateMainPersona;
31
31
  country_id?: string | null;
32
32
  language_id?: string | null;
33
33
  default_payment_method_id?: string | null;
@@ -36,7 +36,7 @@ export interface ICreateRequest {
36
36
  default_discount?: number;
37
37
  exemption_reason_id?: string | null;
38
38
  default_account_code?: string | null;
39
- main_persona: Partial<ICreateMainPersona>;
39
+ main_persona: ICreateMainPersona;
40
40
  provider_type_id?: string | null;
41
41
  country_id?: string | null;
42
42
  language_id?: string | null;
@@ -45,7 +45,7 @@ export interface ICreateRequest {
45
45
  default_maturity_date_id?: string | null;
46
46
  default_delivery_method_id?: string | null;
47
47
  default_vehicle_id?: string | null;
48
- personas?: Partial<ICreateMainPersona>[];
48
+ personas?: ICreateMainPersona[];
49
49
  }
50
50
  export interface IUpdateRequest {
51
51
  manufacturer?: boolean;
@@ -12,7 +12,7 @@ export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFind
12
12
  export interface ICreateRequest {
13
13
  bank: string;
14
14
  city: string;
15
- branch?: string | null;
15
+ branch: string | null;
16
16
  code: string;
17
17
  country_id: string;
18
18
  }
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.49.11",
4
+ "version": "0.49.12",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",