@nomalism-com/types 0.40.130 → 0.42.0
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
|
@@ -4914,22 +4914,26 @@ __export(route_schema_exports86, {
|
|
|
4914
4914
|
import joi87 from "joi";
|
|
4915
4915
|
var createBodyKeys55 = {
|
|
4916
4916
|
name: joi87.string().required(),
|
|
4917
|
-
to: joi87.string().required(),
|
|
4918
|
-
subject: joi87.string().required(),
|
|
4919
4917
|
body: joi87.string().required(),
|
|
4920
4918
|
attachments: joi87.array().items(
|
|
4921
4919
|
joi87.object().keys({
|
|
4922
4920
|
multimedia_id: joi87.string().uuid().required(),
|
|
4923
4921
|
name: joi87.string().required()
|
|
4924
4922
|
})
|
|
4925
|
-
).required()
|
|
4923
|
+
).required(),
|
|
4924
|
+
key: joi87.string().required(),
|
|
4925
|
+
rapid: joi87.boolean().required()
|
|
4926
4926
|
};
|
|
4927
4927
|
var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
|
|
4928
4928
|
var updateBodyKeys51 = {
|
|
4929
4929
|
name: joi87.string().optional(),
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4930
|
+
body: joi87.string().optional(),
|
|
4931
|
+
attachments: joi87.array().items(
|
|
4932
|
+
joi87.object().keys({
|
|
4933
|
+
multimedia_id: joi87.string().uuid().required(),
|
|
4934
|
+
name: joi87.string().required()
|
|
4935
|
+
})
|
|
4936
|
+
).optional()
|
|
4933
4937
|
};
|
|
4934
4938
|
var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
|
|
4935
4939
|
var sendBodyKeys = {
|
|
@@ -4938,12 +4942,6 @@ var sendBodyKeys = {
|
|
|
4938
4942
|
name: joi87.string().allow("", null).default("").required(),
|
|
4939
4943
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4940
4944
|
}).required(),
|
|
4941
|
-
to: joi87.array().items(
|
|
4942
|
-
joi87.object().keys({
|
|
4943
|
-
name: joi87.string().allow("", null).default("").required(),
|
|
4944
|
-
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4945
|
-
})
|
|
4946
|
-
).required(),
|
|
4947
4945
|
cc: joi87.array().items(
|
|
4948
4946
|
joi87.object().keys({
|
|
4949
4947
|
name: joi87.string().allow("", null).default("").required(),
|
|
@@ -4956,7 +4954,6 @@ var sendBodyKeys = {
|
|
|
4956
4954
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4957
4955
|
})
|
|
4958
4956
|
).required(),
|
|
4959
|
-
subject: joi87.string().required(),
|
|
4960
4957
|
html: joi87.string().required(),
|
|
4961
4958
|
attachments: joi87.array().items(
|
|
4962
4959
|
joi87.object().keys({
|
package/dist/index.js
CHANGED
|
@@ -4914,22 +4914,26 @@ __export(route_schema_exports86, {
|
|
|
4914
4914
|
import joi87 from "joi";
|
|
4915
4915
|
var createBodyKeys55 = {
|
|
4916
4916
|
name: joi87.string().required(),
|
|
4917
|
-
to: joi87.string().required(),
|
|
4918
|
-
subject: joi87.string().required(),
|
|
4919
4917
|
body: joi87.string().required(),
|
|
4920
4918
|
attachments: joi87.array().items(
|
|
4921
4919
|
joi87.object().keys({
|
|
4922
4920
|
multimedia_id: joi87.string().uuid().required(),
|
|
4923
4921
|
name: joi87.string().required()
|
|
4924
4922
|
})
|
|
4925
|
-
).required()
|
|
4923
|
+
).required(),
|
|
4924
|
+
key: joi87.string().required(),
|
|
4925
|
+
rapid: joi87.boolean().required()
|
|
4926
4926
|
};
|
|
4927
4927
|
var createBody56 = joi87.object().keys(createBodyKeys55).messages(messages);
|
|
4928
4928
|
var updateBodyKeys51 = {
|
|
4929
4929
|
name: joi87.string().optional(),
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4930
|
+
body: joi87.string().optional(),
|
|
4931
|
+
attachments: joi87.array().items(
|
|
4932
|
+
joi87.object().keys({
|
|
4933
|
+
multimedia_id: joi87.string().uuid().required(),
|
|
4934
|
+
name: joi87.string().required()
|
|
4935
|
+
})
|
|
4936
|
+
).optional()
|
|
4933
4937
|
};
|
|
4934
4938
|
var updateBody51 = joi87.object().keys(updateBodyKeys51).messages(messages);
|
|
4935
4939
|
var sendBodyKeys = {
|
|
@@ -4938,12 +4942,6 @@ var sendBodyKeys = {
|
|
|
4938
4942
|
name: joi87.string().allow("", null).default("").required(),
|
|
4939
4943
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4940
4944
|
}).required(),
|
|
4941
|
-
to: joi87.array().items(
|
|
4942
|
-
joi87.object().keys({
|
|
4943
|
-
name: joi87.string().allow("", null).default("").required(),
|
|
4944
|
-
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4945
|
-
})
|
|
4946
|
-
).required(),
|
|
4947
4945
|
cc: joi87.array().items(
|
|
4948
4946
|
joi87.object().keys({
|
|
4949
4947
|
name: joi87.string().allow("", null).default("").required(),
|
|
@@ -4956,7 +4954,6 @@ var sendBodyKeys = {
|
|
|
4956
4954
|
address: joi87.string().email({ tlds: { allow: false } }).required()
|
|
4957
4955
|
})
|
|
4958
4956
|
).required(),
|
|
4959
|
-
subject: joi87.string().required(),
|
|
4960
4957
|
html: joi87.string().required(),
|
|
4961
4958
|
attachments: joi87.array().items(
|
|
4962
4959
|
joi87.object().keys({
|
|
@@ -14,24 +14,21 @@ export interface ICreateAttachments {
|
|
|
14
14
|
}
|
|
15
15
|
export interface ICreateRequest {
|
|
16
16
|
name: string;
|
|
17
|
-
to: string;
|
|
18
|
-
subject: string;
|
|
19
17
|
body: string;
|
|
20
18
|
attachments: ICreateAttachments[];
|
|
19
|
+
key: string;
|
|
20
|
+
rapid: boolean;
|
|
21
21
|
}
|
|
22
22
|
export interface IUpdateRequest {
|
|
23
23
|
name?: string;
|
|
24
|
-
to?: string;
|
|
25
|
-
subject?: string;
|
|
26
24
|
body?: string;
|
|
25
|
+
attachments?: string[];
|
|
27
26
|
}
|
|
28
27
|
export interface ISendRequest {
|
|
29
28
|
owner_id: string | null;
|
|
30
29
|
from: IEmailAddress;
|
|
31
|
-
to: IEmailAddress[];
|
|
32
30
|
cc: IEmailAddress[];
|
|
33
31
|
bcc: IEmailAddress[];
|
|
34
|
-
subject: string;
|
|
35
32
|
html: string;
|
|
36
33
|
attachments: IEmailAttachment[];
|
|
37
34
|
}
|
|
@@ -25,6 +25,7 @@ export interface IChatBalloon {
|
|
|
25
25
|
created_at: Date;
|
|
26
26
|
created_by: string;
|
|
27
27
|
is_customer: boolean;
|
|
28
|
+
ghost?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
|
|
30
31
|
export interface IPublicFindActiveByOwnerIdResponse {
|
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.
|
|
4
|
+
"version": "0.42.0",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|