@nomalism-com/types 0.43.11 → 0.43.13

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
@@ -1187,7 +1187,7 @@ __export(route_schema_exports5, {
1187
1187
  import joi6 from "joi";
1188
1188
  var createBodyKeys5 = {
1189
1189
  owner_id: joi6.string().uuid().required(),
1190
- chat_document_header_id: joi6.string().uuid().allow(null).required(),
1190
+ chat_document_header_id: joi6.string().uuid().required(),
1191
1191
  message: joi6.string().required(),
1192
1192
  username: joi6.string().required(),
1193
1193
  is_customer: joi6.boolean().default(false).optional()
@@ -1462,7 +1462,7 @@ var createBodyKeys9 = {
1462
1462
  google_sheet_id: joi10.string().allow(null).optional(),
1463
1463
  external_pdf_link: joi10.string().allow(null).optional(),
1464
1464
  sent: joi10.boolean().optional(),
1465
- chat_document_header_id: joi10.string().uuid().allow(null).optional(),
1465
+ chat_document_header_id: joi10.string().uuid().optional(),
1466
1466
  owner_id: joi10.string().uuid().required(),
1467
1467
  owner_number: joi10.number().required(),
1468
1468
  owner_name: joi10.string().required(),
@@ -1558,7 +1558,7 @@ var updateBodyKeys8 = {
1558
1558
  google_sheet_id: joi10.string().allow(null).optional(),
1559
1559
  pdf_link: joi10.string().allow(null).optional(),
1560
1560
  sent: joi10.boolean().optional(),
1561
- chat_document_header_id: joi10.string().uuid().allow(null).optional(),
1561
+ chat_document_header_id: joi10.string().uuid().optional(),
1562
1562
  owner_id: joi10.string().uuid().optional(),
1563
1563
  owner_number: joi10.number().integer().positive().optional(),
1564
1564
  owner_name: joi10.string().optional(),
@@ -2178,7 +2178,7 @@ import joi24 from "joi";
2178
2178
  var createBodyKeys16 = {
2179
2179
  title: joi24.string().required(),
2180
2180
  owner_id: joi24.string().uuid().required(),
2181
- document_header_id: joi24.string().uuid().allow(null).required(),
2181
+ chat_document_header_id: joi24.string().uuid().allow(null).required(),
2182
2182
  multimedia_id: joi24.string().uuid().required(),
2183
2183
  filename: joi24.string().required(),
2184
2184
  is_customer: joi24.boolean().default(false).optional(),
@@ -2188,7 +2188,7 @@ var createBodyKeys16 = {
2188
2188
  };
2189
2189
  var createBody17 = joi24.object().keys(createBodyKeys16).messages(messages);
2190
2190
  var updateBodyKeys14 = {
2191
- document_header_id: joi24.string().uuid().optional(),
2191
+ chat_document_header_id: joi24.string().uuid().optional(),
2192
2192
  filename: joi24.string().min(1).max(255).regex(/^[^<>:"/\\|?*\x00-\x1F]+$/).optional()
2193
2193
  };
2194
2194
  var updateBody14 = joi24.object().keys(updateBodyKeys14).messages(messages);
package/dist/index.js CHANGED
@@ -1187,7 +1187,7 @@ __export(route_schema_exports5, {
1187
1187
  import joi6 from "joi";
1188
1188
  var createBodyKeys5 = {
1189
1189
  owner_id: joi6.string().uuid().required(),
1190
- chat_document_header_id: joi6.string().uuid().allow(null).required(),
1190
+ chat_document_header_id: joi6.string().uuid().required(),
1191
1191
  message: joi6.string().required(),
1192
1192
  username: joi6.string().required(),
1193
1193
  is_customer: joi6.boolean().default(false).optional()
@@ -1462,7 +1462,7 @@ var createBodyKeys9 = {
1462
1462
  google_sheet_id: joi10.string().allow(null).optional(),
1463
1463
  external_pdf_link: joi10.string().allow(null).optional(),
1464
1464
  sent: joi10.boolean().optional(),
1465
- chat_document_header_id: joi10.string().uuid().allow(null).optional(),
1465
+ chat_document_header_id: joi10.string().uuid().optional(),
1466
1466
  owner_id: joi10.string().uuid().required(),
1467
1467
  owner_number: joi10.number().required(),
1468
1468
  owner_name: joi10.string().required(),
@@ -1558,7 +1558,7 @@ var updateBodyKeys8 = {
1558
1558
  google_sheet_id: joi10.string().allow(null).optional(),
1559
1559
  pdf_link: joi10.string().allow(null).optional(),
1560
1560
  sent: joi10.boolean().optional(),
1561
- chat_document_header_id: joi10.string().uuid().allow(null).optional(),
1561
+ chat_document_header_id: joi10.string().uuid().optional(),
1562
1562
  owner_id: joi10.string().uuid().optional(),
1563
1563
  owner_number: joi10.number().integer().positive().optional(),
1564
1564
  owner_name: joi10.string().optional(),
@@ -2178,7 +2178,7 @@ import joi24 from "joi";
2178
2178
  var createBodyKeys16 = {
2179
2179
  title: joi24.string().required(),
2180
2180
  owner_id: joi24.string().uuid().required(),
2181
- document_header_id: joi24.string().uuid().allow(null).required(),
2181
+ chat_document_header_id: joi24.string().uuid().allow(null).required(),
2182
2182
  multimedia_id: joi24.string().uuid().required(),
2183
2183
  filename: joi24.string().required(),
2184
2184
  is_customer: joi24.boolean().default(false).optional(),
@@ -2188,7 +2188,7 @@ var createBodyKeys16 = {
2188
2188
  };
2189
2189
  var createBody17 = joi24.object().keys(createBodyKeys16).messages(messages);
2190
2190
  var updateBodyKeys14 = {
2191
- document_header_id: joi24.string().uuid().optional(),
2191
+ chat_document_header_id: joi24.string().uuid().optional(),
2192
2192
  filename: joi24.string().min(1).max(255).regex(/^[^<>:"/\\|?*\x00-\x1F]+$/).optional()
2193
2193
  };
2194
2194
  var updateBody14 = joi24.object().keys(updateBodyKeys14).messages(messages);
@@ -12,7 +12,7 @@ export interface IFindByOwnerRequest {
12
12
  export interface ICreateRequest {
13
13
  title: string;
14
14
  owner_id: string;
15
- document_header_id: string | null;
15
+ chat_document_header_id: string | null;
16
16
  multimedia_id: string;
17
17
  filename: string;
18
18
  is_customer?: boolean;
@@ -21,7 +21,7 @@ export interface ICreateRequest {
21
21
  username: string;
22
22
  }
23
23
  export interface IUpdateRequest {
24
- document_header_id?: string;
24
+ chat_document_header_id?: string;
25
25
  filename?: string;
26
26
  }
27
27
  export interface IRepository {
@@ -61,7 +61,7 @@ export interface ICreateRequest {
61
61
  external_pdf_link?: string | null;
62
62
  google_sheet_id?: string | null;
63
63
  sent?: boolean;
64
- chat_document_header_id?: string | null;
64
+ chat_document_header_id?: string;
65
65
  owner_id: string;
66
66
  owner_number: number;
67
67
  owner_name: string;
@@ -139,7 +139,7 @@ export interface IUpdateRequest {
139
139
  google_sheet_id?: string | null;
140
140
  pdf_link?: string | null;
141
141
  sent?: boolean;
142
- chat_document_header_id?: string | null;
142
+ chat_document_header_id?: string;
143
143
  owner_id?: string;
144
144
  owner_number?: number;
145
145
  owner_name?: string;
@@ -274,7 +274,7 @@ export type DocumentHeader = {
274
274
  pdf_link: string | null;
275
275
  google_sheet_id: string | null;
276
276
  emission_date: Date;
277
- chat_document_header_id: string | null;
277
+ chat_document_header_id: string;
278
278
  external_pdf_link: string | null;
279
279
  external_data: unknown;
280
280
  owner_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.11",
4
+ "version": "0.43.13",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",