@nomalism-com/types 0.40.8 → 0.40.9
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
|
@@ -2052,6 +2052,7 @@ __export(route_schema_exports21, {
|
|
|
2052
2052
|
createBody: () => createBody15,
|
|
2053
2053
|
findQuery: () => findQuery7,
|
|
2054
2054
|
findWithPaginationQuery: () => findWithPaginationQuery6,
|
|
2055
|
+
sendEmailDocumentBody: () => sendEmailDocumentBody,
|
|
2055
2056
|
updateBody: () => updateBody13
|
|
2056
2057
|
});
|
|
2057
2058
|
import joi22 from "joi";
|
|
@@ -2075,6 +2076,20 @@ var updateBodyKeys13 = {
|
|
|
2075
2076
|
pdf_link: joi22.string()
|
|
2076
2077
|
};
|
|
2077
2078
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2079
|
+
var attachmentKeys = joi22.object().keys({
|
|
2080
|
+
filename: joi22.string().required(),
|
|
2081
|
+
multimedia_id: joi22.string().uuid().required()
|
|
2082
|
+
});
|
|
2083
|
+
var sendEmailDocumentBodyKeys = {
|
|
2084
|
+
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2085
|
+
start_document_header_id: joi22.string().uuid().required(),
|
|
2086
|
+
attachments: joi22.array().items(attachmentKeys.required()).required(),
|
|
2087
|
+
user: joi22.object().keys({
|
|
2088
|
+
name: joi22.string().required(),
|
|
2089
|
+
email: joi22.string().trim(true).lowercase().required()
|
|
2090
|
+
}).optional()
|
|
2091
|
+
};
|
|
2092
|
+
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2078
2093
|
|
|
2079
2094
|
// src/modules/user/favorites/interfaces.ts
|
|
2080
2095
|
var interfaces_exports16 = {};
|
package/dist/index.js
CHANGED
|
@@ -2052,6 +2052,7 @@ __export(route_schema_exports21, {
|
|
|
2052
2052
|
createBody: () => createBody15,
|
|
2053
2053
|
findQuery: () => findQuery7,
|
|
2054
2054
|
findWithPaginationQuery: () => findWithPaginationQuery6,
|
|
2055
|
+
sendEmailDocumentBody: () => sendEmailDocumentBody,
|
|
2055
2056
|
updateBody: () => updateBody13
|
|
2056
2057
|
});
|
|
2057
2058
|
import joi22 from "joi";
|
|
@@ -2075,6 +2076,20 @@ var updateBodyKeys13 = {
|
|
|
2075
2076
|
pdf_link: joi22.string()
|
|
2076
2077
|
};
|
|
2077
2078
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2079
|
+
var attachmentKeys = joi22.object().keys({
|
|
2080
|
+
filename: joi22.string().required(),
|
|
2081
|
+
multimedia_id: joi22.string().uuid().required()
|
|
2082
|
+
});
|
|
2083
|
+
var sendEmailDocumentBodyKeys = {
|
|
2084
|
+
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2085
|
+
start_document_header_id: joi22.string().uuid().required(),
|
|
2086
|
+
attachments: joi22.array().items(attachmentKeys.required()).required(),
|
|
2087
|
+
user: joi22.object().keys({
|
|
2088
|
+
name: joi22.string().required(),
|
|
2089
|
+
email: joi22.string().trim(true).lowercase().required()
|
|
2090
|
+
}).optional()
|
|
2091
|
+
};
|
|
2092
|
+
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2078
2093
|
|
|
2079
2094
|
// src/modules/user/favorites/interfaces.ts
|
|
2080
2095
|
var interfaces_exports16 = {};
|
|
@@ -3,3 +3,4 @@ export declare const findQuery: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
6
|
+
export declare const sendEmailDocumentBody: joi.ObjectSchema<any>;
|
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.9",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|