@nomalism-com/types 0.14.4 → 0.14.6

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.
@@ -26,6 +26,7 @@ export interface IFindDetailedResponseWithoutCurrentDocumentLine extends Omit<IF
26
26
  export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
27
27
  export interface IFindPlotsToReturnResponse {
28
28
  document_line_assoc_id: string;
29
+ df_name: string;
29
30
  pdf_link: string | null;
30
31
  plot_id: string;
31
32
  document_line_id: string;
@@ -45,6 +45,7 @@ export interface IBasicSearchResponse {
45
45
  user_number: number;
46
46
  document_line_count: number;
47
47
  url: string;
48
+ pdf_link: string | null;
48
49
  updated_at: Date;
49
50
  }
50
51
  export interface IFindRequest {
@@ -264,6 +265,8 @@ export interface IFindProviderReturnOptionValue {
264
265
  product_designation: string;
265
266
  quantity: number;
266
267
  unit_of_measure_quantity_notation: string;
268
+ provider_total_without_tax: number;
269
+ provider_total: number;
267
270
  }
268
271
  export interface IFindProviderReturnResponse {
269
272
  id: string;
@@ -321,12 +324,7 @@ export interface IDocumentPdfRequest {
321
324
  export interface IFindByTypeRequest {
322
325
  documentTypeCodes: IDocumentType.IDocumentTypeCodeType[];
323
326
  }
324
- export interface IFindByTypeResponse {
325
- document_header_id: string;
326
- owner_number: number;
327
- emission_date: string;
328
- updated_by: string;
329
- name: string;
327
+ export interface IFindByTypeLine {
330
328
  document_line_id: string;
331
329
  product_id: string;
332
330
  designation: string;
@@ -334,6 +332,17 @@ export interface IFindByTypeResponse {
334
332
  quantity: number;
335
333
  measure: string;
336
334
  thumbnail: string | null;
335
+ total_without_tax: number;
336
+ total: number;
337
+ }
338
+ export interface IFindByTypeResponse {
339
+ document_header_id: string;
340
+ owner_number: number;
341
+ emission_date: string;
342
+ updated_by: string;
343
+ name: string;
344
+ pdf_link: string | null;
345
+ lines: IFindByTypeLine[];
337
346
  }
338
347
  export interface IRepository {
339
348
  findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
@@ -84,10 +84,15 @@ export interface IProviderPaymentRequest {
84
84
  export interface IPaymentsNotExportedResponse {
85
85
  iban: string;
86
86
  payment_ids: string[];
87
+ documents: {
88
+ name: string;
89
+ pdf_link: string | null;
90
+ total: number;
91
+ }[];
87
92
  provider: string;
88
93
  value: number;
89
94
  }
90
- export type IExportPaymentsRequest = IPaymentsNotExportedResponse;
95
+ export type IExportPaymentsRequest = Pick<IPaymentsNotExportedResponse, 'provider'>;
91
96
  export type IBatchType = 'national' | 'international' | 'null';
92
97
  export interface IPaymentsBatchResponse {
93
98
  batch_id: string;
@@ -95,6 +100,11 @@ export interface IPaymentsBatchResponse {
95
100
  batch_type: IBatchType | null;
96
101
  multimedia_id: string | null;
97
102
  times_downloaded: number;
103
+ documents: {
104
+ name: string;
105
+ pdf_link: string | null;
106
+ total: number;
107
+ }[];
98
108
  updated_at: Date;
99
109
  updated_by: string;
100
110
  created_by: string;
@@ -50,9 +50,6 @@ exports.providerPaymentBody = joi_1.default
50
50
  .items(joi_1.default.object().keys(providerPaymentBodyKeys))
51
51
  .messages(messages_1.messages);
52
52
  var exportPaymentsBodyKeys = {
53
- value: joi_1.default.number().positive().required(),
54
- iban: joi_1.default.string().required(),
55
- payment_ids: joi_1.default.array().items(joi_1.default.string().uuid().required()),
56
53
  provider: joi_1.default.string().required(),
57
54
  };
58
55
  exports.exportPaymentsBody = joi_1.default
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.14.4",
12
+ "version": "0.14.6",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [