@nomalism-com/types 0.44.13 → 0.44.15

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
@@ -1634,7 +1634,8 @@ var updateBodyKeys8 = {
1634
1634
  confirmed_date: joi10.date().optional(),
1635
1635
  who_handles: joi10.string().allow(null).optional(),
1636
1636
  warning: joi10.string().optional().valid(...Object.values(IWarningType)),
1637
- created_by: joi10.string().uuid().allow(null).optional()
1637
+ created_by: joi10.string().uuid().allow(null).optional(),
1638
+ seller: joi10.string().uuid().allow(null).optional()
1638
1639
  };
1639
1640
  var updateBody8 = joi10.object().keys(updateBodyKeys8).and("reason_for_exemption_id", "reason_for_exemption").and("persona_id", "contact_name", "email", "phone_number").and(
1640
1641
  "delivery_country_name",
@@ -1716,7 +1717,7 @@ var createSiteProposalBody = joi10.object().keys({
1716
1717
  updated_at: joi10.string().isoDate().required()
1717
1718
  }).messages(messages);
1718
1719
  var findCountByOwnersIdsKeys = {
1719
- onwer_ids: joi10.array().items(joi10.string().uuid().required()).required()
1720
+ owner_ids: joi10.array().items(joi10.string().uuid().required()).required()
1720
1721
  };
1721
1722
  var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
1722
1723
 
package/dist/index.js CHANGED
@@ -1634,7 +1634,8 @@ var updateBodyKeys8 = {
1634
1634
  confirmed_date: joi10.date().optional(),
1635
1635
  who_handles: joi10.string().allow(null).optional(),
1636
1636
  warning: joi10.string().optional().valid(...Object.values(IWarningType)),
1637
- created_by: joi10.string().uuid().allow(null).optional()
1637
+ created_by: joi10.string().uuid().allow(null).optional(),
1638
+ seller: joi10.string().uuid().allow(null).optional()
1638
1639
  };
1639
1640
  var updateBody8 = joi10.object().keys(updateBodyKeys8).and("reason_for_exemption_id", "reason_for_exemption").and("persona_id", "contact_name", "email", "phone_number").and(
1640
1641
  "delivery_country_name",
@@ -1716,7 +1717,7 @@ var createSiteProposalBody = joi10.object().keys({
1716
1717
  updated_at: joi10.string().isoDate().required()
1717
1718
  }).messages(messages);
1718
1719
  var findCountByOwnersIdsKeys = {
1719
- onwer_ids: joi10.array().items(joi10.string().uuid().required()).required()
1720
+ owner_ids: joi10.array().items(joi10.string().uuid().required()).required()
1720
1721
  };
1721
1722
  var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
1722
1723
 
@@ -189,6 +189,7 @@ export interface IUpdateRequest {
189
189
  created_by?: string;
190
190
  confirmed?: boolean;
191
191
  confirmed_date?: Date;
192
+ seller?: string | null;
192
193
  }
193
194
  export type IGetActionsDocumentType = Pick<DocumentType, 'user_type' | 'allow_create_from_header_without_lines' | 'pay' | 'credit' | 'debit' | 'invoice' | 'code' | 'return' | 'id' | 'description'>;
194
195
  export interface IGetActionsResponse {
@@ -292,7 +293,7 @@ export interface IFindStartDocumentHeaderSiblingsResponse {
292
293
  previous: string | null;
293
294
  }
294
295
  export interface IFindCountByOwnersIdsRequest {
295
- onwer_ids: string[];
296
+ owner_ids: string[];
296
297
  }
297
298
  export interface IFindCountByOwnersIdsResponse {
298
299
  owner_id: string;
@@ -344,6 +344,7 @@ export type DocumentHeader = {
344
344
  document_name: string;
345
345
  external_document_name: string | null;
346
346
  qrcode: string | null;
347
+ seller: string | null;
347
348
  created_at: Date;
348
349
  updated_at: Date;
349
350
  created_by: 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.44.13",
4
+ "version": "0.44.15",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",