@nomalism-com/types 0.40.5 → 0.40.6

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
@@ -2085,7 +2085,6 @@ var updateBodyKeys13 = {
2085
2085
  var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
2086
2086
  var sendEmailDocumentBodyKeys = {
2087
2087
  template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
2088
- document_line_assoc_ids: joi22.array().items(joi22.string().uuid()),
2089
2088
  external_document_header_ids: joi22.array().items(joi22.string().uuid()),
2090
2089
  user: joi22.object().keys({
2091
2090
  name: joi22.string().required(),
package/dist/index.js CHANGED
@@ -2085,7 +2085,6 @@ var updateBodyKeys13 = {
2085
2085
  var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
2086
2086
  var sendEmailDocumentBodyKeys = {
2087
2087
  template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
2088
- document_line_assoc_ids: joi22.array().items(joi22.string().uuid()),
2089
2088
  external_document_header_ids: joi22.array().items(joi22.string().uuid()),
2090
2089
  user: joi22.object().keys({
2091
2090
  name: joi22.string().required(),
@@ -37,15 +37,6 @@ export interface IUpdateRequest {
37
37
  external_pdf_link?: string;
38
38
  pdf_link?: string;
39
39
  }
40
- export interface ISendEmailDocument {
41
- template: IShared.IUserSendEmailDocumentTemplate;
42
- external_document_header_ids: string[];
43
- document_line_assoc_ids: string[];
44
- user: {
45
- name: string;
46
- email: string;
47
- };
48
- }
49
40
  export declare enum IPublicDocumentHeaderNoteType {
50
41
  Provider = "Provider",
51
42
  Client = "Client"
@@ -59,7 +50,14 @@ export interface PublicDocumentHeaderNote {
59
50
  created_by: string;
60
51
  updated_by: string;
61
52
  }
62
- export type ISendEmailDocumentRequest = IShared.RequireOnlyOne<ISendEmailDocument, 'document_line_assoc_ids' | 'external_document_header_ids'>;
53
+ export interface ISendEmailDocumentRequest {
54
+ template: IShared.IUserSendEmailDocumentTemplate;
55
+ external_document_header_ids: string[];
56
+ user: {
57
+ name: string;
58
+ email: string;
59
+ };
60
+ }
63
61
  export interface IPublicFindByOwnerIdResponse {
64
62
  start_document_header_id: string;
65
63
  label: string;
@@ -198,10 +198,8 @@ export type IBrokerTopicPayload = {
198
198
  owner_id: string;
199
199
  document_header_id: string;
200
200
  start_document_name: string;
201
- documents: {
202
- document_header_id: string;
203
- document_name: string;
204
- document_fullname: string;
201
+ attachments: {
202
+ filename: string;
205
203
  multimedia_id: string;
206
204
  }[];
207
205
  };
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.5",
4
+ "version": "0.40.6",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",