@nomalism-com/types 0.40.62 → 0.40.64
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.
package/dist/index.cjs
CHANGED
|
@@ -4275,6 +4275,7 @@ __export(route_schema_exports75, {
|
|
|
4275
4275
|
import joi76 from "joi";
|
|
4276
4276
|
var emailSchema = joi76.string().trim(true).lowercase().email({ tlds: { allow: false } }).allow(null, "");
|
|
4277
4277
|
var createBodyKeys52 = {
|
|
4278
|
+
external: joi76.boolean().required(),
|
|
4278
4279
|
name: joi76.string().allow(null, "").optional(),
|
|
4279
4280
|
nif: joi76.string().allow(null, "").optional(),
|
|
4280
4281
|
street: joi76.string().allow(null, "").optional(),
|
package/dist/index.js
CHANGED
|
@@ -4275,6 +4275,7 @@ __export(route_schema_exports75, {
|
|
|
4275
4275
|
import joi76 from "joi";
|
|
4276
4276
|
var emailSchema = joi76.string().trim(true).lowercase().email({ tlds: { allow: false } }).allow(null, "");
|
|
4277
4277
|
var createBodyKeys52 = {
|
|
4278
|
+
external: joi76.boolean().required(),
|
|
4278
4279
|
name: joi76.string().allow(null, "").optional(),
|
|
4279
4280
|
nif: joi76.string().allow(null, "").optional(),
|
|
4280
4281
|
street: joi76.string().allow(null, "").optional(),
|
|
@@ -15,6 +15,7 @@ export interface IFindByOwnerIdResponse extends IEntityExtended {
|
|
|
15
15
|
contact: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface ICreateRequest {
|
|
18
|
+
external: boolean;
|
|
18
19
|
name: string | null;
|
|
19
20
|
nif: string | null;
|
|
20
21
|
street: string | null;
|
|
@@ -62,12 +63,12 @@ export interface IFindRequest {
|
|
|
62
63
|
}
|
|
63
64
|
export interface IFindResponse {
|
|
64
65
|
persona_id: string;
|
|
65
|
-
persona_name: string;
|
|
66
|
+
persona_name: string | null;
|
|
66
67
|
persona_nif: string | null;
|
|
67
|
-
persona_street: string;
|
|
68
|
-
persona_postal_code: string;
|
|
69
|
-
persona_locality: string;
|
|
70
|
-
persona_country_id: string;
|
|
68
|
+
persona_street: string | null;
|
|
69
|
+
persona_postal_code: string | null;
|
|
70
|
+
persona_locality: string | null;
|
|
71
|
+
persona_country_id: string | null;
|
|
71
72
|
}
|
|
72
73
|
export interface IDeletePersonaRequest {
|
|
73
74
|
id: string;
|
|
@@ -129,7 +130,7 @@ export interface IRepository {
|
|
|
129
130
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IEntityExtended | null>;
|
|
130
131
|
deleteOne(params: IDeletePersonaRequest): Promise<IEntityExtended | null>;
|
|
131
132
|
findByBasic(data: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
132
|
-
|
|
133
|
+
findForBillOfLading(data: IFindRequest): Promise<IFindResponse[]>;
|
|
133
134
|
findByEmail(data: IFindByEmailRequest): Promise<IFindByEmailResponse[]>;
|
|
134
135
|
findClientOrProvider(data: IFindClientOrProviderRequest): Promise<IFindClientOrProviderResponse[]>;
|
|
135
136
|
findForGmail(data: IFindForGmailRequest): Promise<IFindForGmailResponse | null>;
|
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.40.
|
|
4
|
+
"version": "0.40.64",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|