@nomalism-com/types 0.44.17 → 0.44.20

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
@@ -472,10 +472,13 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
472
472
  IBrokerTopic2["espera_devolver_catalogo_email"] = "espera_devolver_catalogo_email";
473
473
  IBrokerTopic2["verification_email"] = "verification_email";
474
474
  IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
475
+ IBrokerTopic2["send_espera_info_cliente_messages"] = "send_espera_info_cliente_messages";
476
+ IBrokerTopic2["send_email_client_survey"] = "send_email_client_survey";
475
477
  IBrokerTopic2["persona_lang_change"] = "persona_lang_change";
476
478
  IBrokerTopic2["translate_chat_message"] = "translate_chat_message";
477
479
  IBrokerTopic2["perform_task"] = "perform_task";
478
480
  IBrokerTopic2["create_site_proposal"] = "create_site_proposal";
481
+ IBrokerTopic2["persona_updated"] = "persona_updated";
479
482
  IBrokerTopic2["push_notification"] = "push_notification";
480
483
  IBrokerTopic2["error_log"] = "error_log";
481
484
  IBrokerTopic2["kafka_log"] = "kafka_log";
@@ -498,8 +501,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
498
501
  IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
499
502
  IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
500
503
  IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
501
- IBrokerTopic2["send_espera_info_cliente_messages"] = "send_espera_info_cliente_messages";
502
- IBrokerTopic2["send_email_client_survey"] = "send_email_client_survey";
503
504
  return IBrokerTopic2;
504
505
  })(IBrokerTopic || {});
505
506
 
@@ -1374,8 +1375,7 @@ __export(route_schema_exports9, {
1374
1375
  findQuery: () => findQuery6,
1375
1376
  sendClientNotificationBody: () => sendClientNotificationBody,
1376
1377
  transferClientOwnershipBody: () => transferClientOwnershipBody,
1377
- updateBody: () => updateBody8,
1378
- updateManyWithPersonaBody: () => updateManyWithPersonaBody
1378
+ updateBody: () => updateBody8
1379
1379
  });
1380
1380
  import joi10 from "joi";
1381
1381
 
@@ -1655,20 +1655,6 @@ var transferClientOwnershipBodyKeys = {
1655
1655
  client_id: joi10.string().uuid().required()
1656
1656
  };
1657
1657
  var transferClientOwnershipBody = joi10.object().keys(transferClientOwnershipBodyKeys).messages(messages);
1658
- var updateManyWithPersonaBodyKeys = {
1659
- id: joi10.string().uuid().required(),
1660
- owner_id: joi10.string().uuid().optional(),
1661
- owner_name: joi10.string().allow(null).optional(),
1662
- name: joi10.string().allow(null).optional(),
1663
- telephone: joi10.string().allow(null).optional(),
1664
- email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
1665
- street: joi10.string().allow(null).optional(),
1666
- locality: joi10.string().allow(null).optional(),
1667
- postal_code: joi10.string().trim(true).lowercase().allow(null).optional(),
1668
- country_id: joi10.string().uuid().allow(null).optional(),
1669
- country_name: joi10.string().allow(null).optional()
1670
- };
1671
- var updateManyWithPersonaBody = joi10.object().keys(updateManyWithPersonaBodyKeys).messages(messages);
1672
1658
  var sendClientNotificationBodyKeys = {
1673
1659
  name: joi10.string().allow("", null).required(),
1674
1660
  email: joi10.string().email({ tlds: { allow: false } }).allow("", null).required(),
package/dist/index.js CHANGED
@@ -472,10 +472,13 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
472
472
  IBrokerTopic2["espera_devolver_catalogo_email"] = "espera_devolver_catalogo_email";
473
473
  IBrokerTopic2["verification_email"] = "verification_email";
474
474
  IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
475
+ IBrokerTopic2["send_espera_info_cliente_messages"] = "send_espera_info_cliente_messages";
476
+ IBrokerTopic2["send_email_client_survey"] = "send_email_client_survey";
475
477
  IBrokerTopic2["persona_lang_change"] = "persona_lang_change";
476
478
  IBrokerTopic2["translate_chat_message"] = "translate_chat_message";
477
479
  IBrokerTopic2["perform_task"] = "perform_task";
478
480
  IBrokerTopic2["create_site_proposal"] = "create_site_proposal";
481
+ IBrokerTopic2["persona_updated"] = "persona_updated";
479
482
  IBrokerTopic2["push_notification"] = "push_notification";
480
483
  IBrokerTopic2["error_log"] = "error_log";
481
484
  IBrokerTopic2["kafka_log"] = "kafka_log";
@@ -498,8 +501,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
498
501
  IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
499
502
  IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
500
503
  IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
501
- IBrokerTopic2["send_espera_info_cliente_messages"] = "send_espera_info_cliente_messages";
502
- IBrokerTopic2["send_email_client_survey"] = "send_email_client_survey";
503
504
  return IBrokerTopic2;
504
505
  })(IBrokerTopic || {});
505
506
 
@@ -1374,8 +1375,7 @@ __export(route_schema_exports9, {
1374
1375
  findQuery: () => findQuery6,
1375
1376
  sendClientNotificationBody: () => sendClientNotificationBody,
1376
1377
  transferClientOwnershipBody: () => transferClientOwnershipBody,
1377
- updateBody: () => updateBody8,
1378
- updateManyWithPersonaBody: () => updateManyWithPersonaBody
1378
+ updateBody: () => updateBody8
1379
1379
  });
1380
1380
  import joi10 from "joi";
1381
1381
 
@@ -1655,20 +1655,6 @@ var transferClientOwnershipBodyKeys = {
1655
1655
  client_id: joi10.string().uuid().required()
1656
1656
  };
1657
1657
  var transferClientOwnershipBody = joi10.object().keys(transferClientOwnershipBodyKeys).messages(messages);
1658
- var updateManyWithPersonaBodyKeys = {
1659
- id: joi10.string().uuid().required(),
1660
- owner_id: joi10.string().uuid().optional(),
1661
- owner_name: joi10.string().allow(null).optional(),
1662
- name: joi10.string().allow(null).optional(),
1663
- telephone: joi10.string().allow(null).optional(),
1664
- email: joi10.string().email({ tlds: { allow: false } }).allow(null).optional(),
1665
- street: joi10.string().allow(null).optional(),
1666
- locality: joi10.string().allow(null).optional(),
1667
- postal_code: joi10.string().trim(true).lowercase().allow(null).optional(),
1668
- country_id: joi10.string().uuid().allow(null).optional(),
1669
- country_name: joi10.string().allow(null).optional()
1670
- };
1671
- var updateManyWithPersonaBody = joi10.object().keys(updateManyWithPersonaBodyKeys).messages(messages);
1672
1658
  var sendClientNotificationBodyKeys = {
1673
1659
  name: joi10.string().allow("", null).required(),
1674
1660
  email: joi10.string().email({ tlds: { allow: false } }).allow("", null).required(),
@@ -217,19 +217,6 @@ export interface IFindResponse {
217
217
  adjudicado: boolean;
218
218
  tags: string | null;
219
219
  }
220
- export type IUpdateManyWithPersona = {
221
- id: string;
222
- owner_id?: string;
223
- owner_name?: string | null;
224
- name: string | null;
225
- telephone: string | null;
226
- email: string | null;
227
- street: string | null;
228
- postal_code: string | null;
229
- locality: string | null;
230
- country_id: string | null;
231
- country_name: string | null;
232
- };
233
220
  export interface ISendClientNotificationRequest {
234
221
  name: string;
235
222
  email: string;
@@ -310,7 +297,6 @@ export interface IRepository {
310
297
  create(data: ICreateRequest): Promise<ICreateResponse>;
311
298
  createFromHeader(data: ICreateFromHeaderRequest): Promise<void>;
312
299
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
313
- updateManyWithPersona(params: IUpdateManyWithPersona): Promise<void>;
314
300
  transferClientOwnership(params: ITransferOwnershipRequest): Promise<void>;
315
301
  deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
316
302
  sendClientNotification(selector: IShared.IFindByIdRequest, data: ISendClientNotificationRequest): Promise<void>;
@@ -7,7 +7,6 @@ export declare const findQuery: joi.ObjectSchema<any>;
7
7
  export declare const basicSearchQuery: joi.ObjectSchema<any>;
8
8
  export declare const updateBody: joi.ObjectSchema<any>;
9
9
  export declare const transferClientOwnershipBody: joi.ObjectSchema<any>;
10
- export declare const updateManyWithPersonaBody: joi.ObjectSchema<any>;
11
10
  export declare const sendClientNotificationBody: joi.ObjectSchema<any>;
12
11
  export declare const findByTypeQuery: joi.ObjectSchema<any>;
13
12
  export declare const documentPdfQuery: joi.ObjectSchema<any>;
@@ -23,6 +23,7 @@ export interface IFindByDocumentLineStateResponse {
23
23
  identifier: string | null;
24
24
  created_at: Date;
25
25
  created_by: string;
26
+ seller: string;
26
27
  who_handles: string | null;
27
28
  tags: string | null;
28
29
  adjudicated: boolean;
@@ -152,10 +152,13 @@ export declare enum IBrokerTopic {
152
152
  espera_devolver_catalogo_email = "espera_devolver_catalogo_email",
153
153
  verification_email = "verification_email",
154
154
  dispatch_chat_message = "dispatch_chat_message",
155
+ send_espera_info_cliente_messages = "send_espera_info_cliente_messages",
156
+ send_email_client_survey = "send_email_client_survey",
155
157
  persona_lang_change = "persona_lang_change",
156
158
  translate_chat_message = "translate_chat_message",
157
159
  perform_task = "perform_task",
158
160
  create_site_proposal = "create_site_proposal",
161
+ persona_updated = "persona_updated",
159
162
  push_notification = "push_notification",
160
163
  error_log = "error_log",
161
164
  kafka_log = "kafka_log",
@@ -177,9 +180,7 @@ export declare enum IBrokerTopic {
177
180
  googlesheet_task_log = "googlesheet_task_log",
178
181
  googlesheet_stock_log = "googlesheet_stock_log",
179
182
  googlesheet_encomenda_log = "googlesheet_encomenda_log",
180
- log_google_api_request = "log_google_api_request",
181
- send_espera_info_cliente_messages = "send_espera_info_cliente_messages",
182
- send_email_client_survey = "send_email_client_survey"
183
+ log_google_api_request = "log_google_api_request"
183
184
  }
184
185
  export type IBrokerTopicPayload = {
185
186
  [IBrokerTopic.google_sheet_import]: {
@@ -379,6 +380,19 @@ export type IBrokerTopicPayload = {
379
380
  chat_document_header_id: string;
380
381
  language_id: string;
381
382
  };
383
+ [IBrokerTopic.persona_updated]: {
384
+ id: string;
385
+ owner_id?: string;
386
+ owner_name?: string | null;
387
+ name: string | null;
388
+ telephone: string | null;
389
+ email: string | null;
390
+ street: string | null;
391
+ postal_code: string | null;
392
+ locality: string | null;
393
+ country_id: string | null;
394
+ country_name: string | null;
395
+ };
382
396
  };
383
397
  export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
384
398
  topic: T;
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.17",
4
+ "version": "0.44.20",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",