@nomalism-com/types 0.40.61 → 0.40.63
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(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChatSubscriber } from './../../../shared/entities/user';
|
|
1
|
+
import { ChatSubscriber, Persona } from './../../../shared/entities/user';
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = ChatSubscriber;
|
|
4
4
|
export declare const Route = "chat_subscriber";
|
|
@@ -13,12 +13,9 @@ export interface IFindRequest {
|
|
|
13
13
|
owner_id: string;
|
|
14
14
|
document_header_id: string;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
persona_id:
|
|
18
|
-
|
|
19
|
-
email: string;
|
|
20
|
-
phone_number: string | null;
|
|
21
|
-
};
|
|
16
|
+
export interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
|
|
17
|
+
persona_id: Persona['id'];
|
|
18
|
+
}
|
|
22
19
|
export interface IRepository {
|
|
23
20
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<void>;
|
|
24
21
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
@@ -274,7 +274,7 @@ export type IBrokerTopicPayload = {
|
|
|
274
274
|
warningErrors: string[];
|
|
275
275
|
};
|
|
276
276
|
[IBrokerTopic.dispatch_chat_message]: {
|
|
277
|
-
to: [Omit<ChatSubscriber.IFindResponse, 'persona_id'>];
|
|
277
|
+
to: [Omit<ChatSubscriber.IFindResponse, 'persona_id' | 'external'>];
|
|
278
278
|
reply_url: string;
|
|
279
279
|
owner_id: string;
|
|
280
280
|
document_header_id: string | 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.63",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|