@nomalism-com/types 0.40.118 → 0.40.120

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
@@ -468,6 +468,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
468
468
  IBrokerTopic2["retry_errored_emails"] = "retry_errored_emails";
469
469
  IBrokerTopic2["send_errored_emails_summary"] = "send_errored_emails_summary";
470
470
  IBrokerTopic2["warning_email"] = "warning_email";
471
+ IBrokerTopic2["espera_devolver_catalogo_email"] = "espera_devolver_catalogo_email";
471
472
  IBrokerTopic2["verification_email"] = "verification_email";
472
473
  IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
473
474
  IBrokerTopic2["perform_task"] = "perform_task";
@@ -1054,6 +1055,7 @@ var createBodyKeys2 = {
1054
1055
  user_id: joi3.string().uuid().optional(),
1055
1056
  main_persona: joi3.object().keys(createMainPersonaKeys).optional(),
1056
1057
  deferred_payment: joi3.boolean().default(false).optional(),
1058
+ is_donation_eligible: joi3.boolean().default(false).optional(),
1057
1059
  default_discount: joi3.number().positive().allow(0).default(0).max(100).optional(),
1058
1060
  exemption_reason_id: joi3.string().uuid().allow(null).optional(),
1059
1061
  inactive: joi3.boolean().default(false).optional(),
@@ -1084,7 +1086,8 @@ var updateBodyKeys2 = {
1084
1086
  default_maturity_date_id: joi3.string().uuid().allow(null).optional(),
1085
1087
  default_delivery_method_id: joi3.string().uuid().allow(null).optional(),
1086
1088
  default_vehicle_id: joi3.string().uuid().allow(null).optional(),
1087
- deferred_payment: joi3.boolean().optional()
1089
+ deferred_payment: joi3.boolean().optional(),
1090
+ is_donation_eligible: joi3.boolean().optional()
1088
1091
  };
1089
1092
  var updateBody2 = joi3.object().keys(updateBodyKeys2).messages(messages);
1090
1093
  var findQueryKeys2 = {
package/dist/index.js CHANGED
@@ -468,6 +468,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
468
468
  IBrokerTopic2["retry_errored_emails"] = "retry_errored_emails";
469
469
  IBrokerTopic2["send_errored_emails_summary"] = "send_errored_emails_summary";
470
470
  IBrokerTopic2["warning_email"] = "warning_email";
471
+ IBrokerTopic2["espera_devolver_catalogo_email"] = "espera_devolver_catalogo_email";
471
472
  IBrokerTopic2["verification_email"] = "verification_email";
472
473
  IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
473
474
  IBrokerTopic2["perform_task"] = "perform_task";
@@ -1054,6 +1055,7 @@ var createBodyKeys2 = {
1054
1055
  user_id: joi3.string().uuid().optional(),
1055
1056
  main_persona: joi3.object().keys(createMainPersonaKeys).optional(),
1056
1057
  deferred_payment: joi3.boolean().default(false).optional(),
1058
+ is_donation_eligible: joi3.boolean().default(false).optional(),
1057
1059
  default_discount: joi3.number().positive().allow(0).default(0).max(100).optional(),
1058
1060
  exemption_reason_id: joi3.string().uuid().allow(null).optional(),
1059
1061
  inactive: joi3.boolean().default(false).optional(),
@@ -1084,7 +1086,8 @@ var updateBodyKeys2 = {
1084
1086
  default_maturity_date_id: joi3.string().uuid().allow(null).optional(),
1085
1087
  default_delivery_method_id: joi3.string().uuid().allow(null).optional(),
1086
1088
  default_vehicle_id: joi3.string().uuid().allow(null).optional(),
1087
- deferred_payment: joi3.boolean().optional()
1089
+ deferred_payment: joi3.boolean().optional(),
1090
+ is_donation_eligible: joi3.boolean().optional()
1088
1091
  };
1089
1092
  var updateBody2 = joi3.object().keys(updateBodyKeys2).messages(messages);
1090
1093
  var findQueryKeys2 = {
@@ -52,15 +52,9 @@ type IChatType = ChatTypeEnum[number];
52
52
  export interface IEditPreviewChatMessageRequest {
53
53
  text_to_chat: string;
54
54
  }
55
- export interface IEditPreviewChatMessageResponse {
56
- id: string;
57
- text_to_chat: string;
58
- }
59
55
  export interface IRepository {
60
56
  auth(): Promise<string>;
61
57
  emails(): Promise<IGmailsResponse[]>;
62
- executeGmailCommand(selector: IShared.IFindByIdRequest): Promise<IGmailsResponse | null>;
63
- editPreviewChatMessage(selector: IShared.IFindByIdRequest, data: IEditPreviewChatMessageRequest): Promise<IEditPreviewChatMessageResponse | null>;
64
58
  }
65
59
  export type IController = IShared.IEntityWithUserToken<IRepository>;
66
60
  export {};
@@ -39,6 +39,7 @@ export interface ICreateRequest {
39
39
  user_id?: string;
40
40
  main_persona: ICreateMainPersona;
41
41
  deferred_payment?: boolean;
42
+ is_donation_eligible?: boolean;
42
43
  default_discount?: number;
43
44
  exemption_reason_id?: string | null;
44
45
  newsletter?: boolean;
@@ -69,6 +70,7 @@ export interface IUpdateRequest {
69
70
  default_delivery_method_id?: string | null;
70
71
  default_vehicle_id?: string | null;
71
72
  deferred_payment?: boolean;
73
+ is_donation_eligible?: boolean;
72
74
  }
73
75
  export interface IRepository {
74
76
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
@@ -175,6 +175,7 @@ export type Clients = {
175
175
  default_delivery_method_id: string | null;
176
176
  default_vehicle_id: string | null;
177
177
  deferred_payment: boolean;
178
+ is_donation_eligible: boolean;
178
179
  origin_id: string | null;
179
180
  created_at: Date;
180
181
  updated_at: Date;
@@ -151,6 +151,7 @@ export declare enum IBrokerTopic {
151
151
  retry_errored_emails = "retry_errored_emails",
152
152
  send_errored_emails_summary = "send_errored_emails_summary",
153
153
  warning_email = "warning_email",
154
+ espera_devolver_catalogo_email = "espera_devolver_catalogo_email",
154
155
  verification_email = "verification_email",
155
156
  dispatch_chat_message = "dispatch_chat_message",
156
157
  perform_task = "perform_task",
@@ -269,6 +270,15 @@ export type IBrokerTopicPayload = {
269
270
  state: string;
270
271
  }[];
271
272
  };
273
+ [IBrokerTopic.espera_devolver_catalogo_email]: {
274
+ owner_id: string;
275
+ document_header_id: string;
276
+ chat_id: string;
277
+ email: string;
278
+ name: string | null;
279
+ subject: string;
280
+ message: string;
281
+ };
272
282
  [IBrokerTopic.retry_errored_emails]: Record<string, never>;
273
283
  [IBrokerTopic.send_errored_emails_summary]: {
274
284
  warningErrors: 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.40.118",
4
+ "version": "0.40.120",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,14 +30,14 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.15.8",
33
- "@types/node": "^24.10.8",
33
+ "@types/node": "^24.10.9",
34
34
  "@typescript-eslint/eslint-plugin": "^8.53.0",
35
35
  "@typescript-eslint/parser": "^8.53.0",
36
36
  "eslint": "^9.39.2",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.4",
39
39
  "eslint-plugin-prettier": "^5.5.5",
40
- "prettier": "^3.7.4",
40
+ "prettier": "^3.8.0",
41
41
  "tsup": "^8.5.1"
42
42
  },
43
43
  "repository": {