@nomalism-com/types 0.10.24 → 0.10.26

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.
@@ -35,6 +35,14 @@ export interface IEntityExtended extends IFindDetailedResponse {
35
35
  cabide: Cabide;
36
36
  }) | null;
37
37
  }
38
+ export interface IEntityMinified {
39
+ id: string;
40
+ price_sale: number;
41
+ price_cost: number;
42
+ tax: number;
43
+ multimedia_id: string;
44
+ integer_only: boolean;
45
+ }
38
46
  export type IFindByIdResponse = Omit<IEntityExtended, ''>;
39
47
  export type IFindRequest = Record<string, unknown>;
40
48
  export type IFindResponse = Omit<IFindDetailedResponse, ''>;
@@ -206,6 +214,7 @@ export interface IRepository {
206
214
  findByPlot(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
207
215
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
208
216
  findByRef(selector: IFindByReferenceRequest): Promise<IEntityExtended | null>;
217
+ validateByRef(selector: IFindByReferenceRequest): Promise<IEntityMinified | null>;
209
218
  findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
210
219
  findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
211
220
  find(selector: IFindRequest): Promise<IFindResponse[]>;
@@ -99,22 +99,6 @@ export interface IPaymentsNotExportedResponse {
99
99
  value: number;
100
100
  }
101
101
  export type IExportPaymentsRequest = IPaymentsNotExportedResponse;
102
- export interface IIbanWithValue {
103
- multimedia_id: string;
104
- payment_batch_id: string;
105
- payment_total: number;
106
- batch_data: {
107
- payment_ids: string[];
108
- provider: string;
109
- iban: string;
110
- value: number;
111
- }[];
112
- }
113
- export interface IIbanValidatorResaponse {
114
- invalidIbans: string[];
115
- nationalIbans: IIbanWithValue;
116
- internationalIbans: IIbanWithValue;
117
- }
118
102
  export type IBatchType = 'national' | 'international' | 'null';
119
103
  export interface IPaymentsBatchResponse {
120
104
  batch_id: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.10.24",
12
+ "version": "0.10.26",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [