@nomalism-com/types 0.11.6 → 0.11.8

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.
@@ -92,7 +92,7 @@ export interface IPrintLabelParamsRequest {
92
92
  }
93
93
  export interface IFinalizarEntradaDeMaterialResponse {
94
94
  broker_messages: IShared.IBrokerMessage<IShared.IBrokerTopic>[];
95
- document_number: number;
95
+ document_number: string;
96
96
  }
97
97
  interface IRepository {
98
98
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
@@ -46,7 +46,7 @@ export interface IFindStockToOrderRequest {
46
46
  export interface IFindStockToOrderResponse {
47
47
  document_line_assoc_id: string;
48
48
  document_line_id: string;
49
- document_number: number;
49
+ document_number: string;
50
50
  owner_id: string;
51
51
  product: {
52
52
  product_id: string;
@@ -20,7 +20,10 @@ export interface IFindOneResponse extends Entity {
20
20
  start_virtual: StartDocumentHeaderVirtuals | null;
21
21
  virtual: DocumentHeaderVirtuals | null;
22
22
  }
23
- export type IFindStartResponse = Omit<IFindOneResponse, 'virtual'>;
23
+ type IFindStartResponseOmitVirtual = Omit<IFindOneResponse, 'virtual'>;
24
+ export interface IFindStartResponse extends IFindStartResponseOmitVirtual {
25
+ client_balance?: number | null;
26
+ }
24
27
  export interface IFindByDocumentLineStateRequest {
25
28
  document_type_id: number;
26
29
  document_line_state: string;
@@ -202,7 +205,10 @@ export interface IGetActionsResponse {
202
205
  document_type: DocumentType;
203
206
  transition_name: string;
204
207
  document_line_ids: string[];
205
- from_document_headers: Pick<Entity, 'document_number' | 'id'>[];
208
+ from_document_headers: {
209
+ id: string;
210
+ document_header: string;
211
+ }[];
206
212
  }
207
213
  export interface IUnpaidDocumentResponse {
208
214
  id: string;
@@ -350,3 +356,4 @@ export type IApi = Omit<IRepository, 'rollback' | 'updateDocumentLineAssocExtern
350
356
  createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
351
357
  };
352
358
  export type IController = IShared.IEntityWithUserToken<IRepository>;
359
+ export {};
@@ -81,18 +81,6 @@ export interface IProviderPaymentRequest {
81
81
  documents: IProviderPaymentDocument[];
82
82
  total: number;
83
83
  }
84
- export interface IPaymentDocumentReceipt {
85
- document_header_id: string;
86
- origin: IPaymentOrigin;
87
- value: number;
88
- discount_value: number;
89
- name: string;
90
- }
91
- export interface IOwnerClientProvider {
92
- owner_id: string;
93
- owner_number: number;
94
- name: string;
95
- }
96
84
  export interface IPaymentsNotExportedResponse {
97
85
  iban: string;
98
86
  payment_ids: string[];
@@ -999,6 +999,7 @@ export type DocumentHeaderVirtuals = {
999
999
  name: string;
1000
1000
  alias: string;
1001
1001
  external_name: string | null;
1002
+ document_number: string;
1002
1003
  client_total_without_tax: number;
1003
1004
  client_total: number;
1004
1005
  client_total_discount: number;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.11.6",
12
+ "version": "0.11.8",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -37,12 +37,12 @@
37
37
  "joi-to-swagger": "^6.2.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/convert-units": "^2.3.8",
41
- "@types/node": "^18.18.7",
42
- "@typescript-eslint/eslint-plugin": "^6.9.0",
43
- "@typescript-eslint/parser": "^6.9.0",
40
+ "@types/convert-units": "^2.3.9",
41
+ "@types/node": "^18.18.9",
42
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
43
+ "@typescript-eslint/parser": "^6.10.0",
44
44
  "concurrently": "^8.2.2",
45
- "eslint": "^8.52.0",
45
+ "eslint": "^8.53.0",
46
46
  "eslint-config-airbnb-base": "^15.0.0",
47
47
  "eslint-config-prettier": "^9.0.0",
48
48
  "eslint-import-resolver-typescript": "^3.6.1",