@nomalism-com/types 0.40.71 → 0.40.73

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
@@ -4295,6 +4295,7 @@ var createBodyKeys52 = {
4295
4295
  };
4296
4296
  var createBody53 = joi76.object().keys(createBodyKeys52).xor("provider_id", "client_id", "commissioner_id", "store_operator_id").messages(messages);
4297
4297
  var updateBodyKeys50 = {
4298
+ external: joi76.boolean().optional(),
4298
4299
  name: joi76.string().allow(null, "").optional(),
4299
4300
  nif: joi76.string().allow(null, "").optional(),
4300
4301
  street: joi76.string().allow(null, "").optional(),
package/dist/index.js CHANGED
@@ -4295,6 +4295,7 @@ var createBodyKeys52 = {
4295
4295
  };
4296
4296
  var createBody53 = joi76.object().keys(createBodyKeys52).xor("provider_id", "client_id", "commissioner_id", "store_operator_id").messages(messages);
4297
4297
  var updateBodyKeys50 = {
4298
+ external: joi76.boolean().optional(),
4298
4299
  name: joi76.string().allow(null, "").optional(),
4299
4300
  nif: joi76.string().allow(null, "").optional(),
4300
4301
  street: joi76.string().allow(null, "").optional(),
@@ -16,8 +16,8 @@ export interface IFindRequest {
16
16
  export interface IFindResponse extends Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> {
17
17
  id?: ChatSubscriber['id'];
18
18
  persona_id: ChatSubscriber['persona_id'];
19
- owner_id: ChatSubscriber['owner_id'];
20
- document_header_id: ChatSubscriber['document_header_id'];
19
+ owner_id?: ChatSubscriber['owner_id'];
20
+ document_header_id?: ChatSubscriber['document_header_id'];
21
21
  }
22
22
  export interface IRepository {
23
23
  createOrUpdate(data: ICreateOrUpdateRequest): Promise<void>;
@@ -34,6 +34,7 @@ export interface ICreateRequest {
34
34
  contact?: boolean;
35
35
  }
36
36
  export interface IUpdateRequest {
37
+ external?: boolean;
37
38
  name?: string | null;
38
39
  nif?: string | null;
39
40
  street?: string | null;
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.71",
4
+ "version": "0.40.73",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",