@nomalism-com/types 0.43.17 → 0.43.19
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
|
@@ -5661,6 +5661,7 @@ var createOrUpdateBodyKeys2 = {
|
|
|
5661
5661
|
};
|
|
5662
5662
|
var createOrUpdateBody2 = joi105.object().keys(createOrUpdateBodyKeys2).messages(messages);
|
|
5663
5663
|
var findByParamsKeys = {
|
|
5664
|
+
owner_id: joi105.string().uuid().required(),
|
|
5664
5665
|
chat_document_header_id: joi105.string().uuid().optional()
|
|
5665
5666
|
};
|
|
5666
5667
|
var findByParams = joi105.object().keys(findByParamsKeys).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -5661,6 +5661,7 @@ var createOrUpdateBodyKeys2 = {
|
|
|
5661
5661
|
};
|
|
5662
5662
|
var createOrUpdateBody2 = joi105.object().keys(createOrUpdateBodyKeys2).messages(messages);
|
|
5663
5663
|
var findByParamsKeys = {
|
|
5664
|
+
owner_id: joi105.string().uuid().required(),
|
|
5664
5665
|
chat_document_header_id: joi105.string().uuid().optional()
|
|
5665
5666
|
};
|
|
5666
5667
|
var findByParams = joi105.object().keys(findByParamsKeys).messages(messages);
|
|
@@ -22,11 +22,12 @@ export interface IChatBalloon {
|
|
|
22
22
|
ghost?: boolean;
|
|
23
23
|
}
|
|
24
24
|
export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
|
|
25
|
-
export interface
|
|
25
|
+
export interface IFindActiveByOwnerIdResponse {
|
|
26
26
|
chat: IChatBalloon[];
|
|
27
27
|
last_group_report?: IReport;
|
|
28
28
|
}
|
|
29
29
|
export interface IPublicFindBySubscriberId {
|
|
30
|
+
owner_id: string;
|
|
30
31
|
chat_document_header_id: string;
|
|
31
32
|
chat: IChatBalloon[];
|
|
32
33
|
persona: ChatSubscriber.IFindChatSubscriberPersona;
|
|
@@ -63,7 +64,7 @@ export interface IMarkAllClientReadUnreadRequest {
|
|
|
63
64
|
client_read: boolean;
|
|
64
65
|
}
|
|
65
66
|
export interface IRepository {
|
|
66
|
-
findActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<
|
|
67
|
+
findActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IFindActiveByOwnerIdResponse>;
|
|
67
68
|
clientWebAppFindActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IPublicClientWebAppFindActiveByOwnerIdResponse>;
|
|
68
69
|
findActiveBySubscriberId(params: IShared.IFindByIdRequest): Promise<IPublicFindBySubscriberId>;
|
|
69
70
|
resendLast(params: IShared.IFindByIdRequest): Promise<void>;
|
|
@@ -9,10 +9,12 @@ export interface ICreateOrUpdateRequest {
|
|
|
9
9
|
personas_ids: string[];
|
|
10
10
|
}
|
|
11
11
|
export interface IFindRequest {
|
|
12
|
+
owner_id: string;
|
|
12
13
|
chat_document_header_id: string;
|
|
13
14
|
}
|
|
14
15
|
export type IFindByOwnerResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | 'chat_document_header_id'>;
|
|
15
16
|
export interface IFindByIdResponse extends IFindByOwnerResponse {
|
|
17
|
+
owner_id: string;
|
|
16
18
|
subscriptions: {
|
|
17
19
|
id: string;
|
|
18
20
|
chat_document_header_id: string;
|
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.43.
|
|
4
|
+
"version": "0.43.19",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|