@nomalism-com/types 0.40.118 → 0.40.119

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
@@ -1054,6 +1054,7 @@ var createBodyKeys2 = {
1054
1054
  user_id: joi3.string().uuid().optional(),
1055
1055
  main_persona: joi3.object().keys(createMainPersonaKeys).optional(),
1056
1056
  deferred_payment: joi3.boolean().default(false).optional(),
1057
+ is_donation_eligible: joi3.boolean().default(false).optional(),
1057
1058
  default_discount: joi3.number().positive().allow(0).default(0).max(100).optional(),
1058
1059
  exemption_reason_id: joi3.string().uuid().allow(null).optional(),
1059
1060
  inactive: joi3.boolean().default(false).optional(),
@@ -1084,7 +1085,8 @@ var updateBodyKeys2 = {
1084
1085
  default_maturity_date_id: joi3.string().uuid().allow(null).optional(),
1085
1086
  default_delivery_method_id: joi3.string().uuid().allow(null).optional(),
1086
1087
  default_vehicle_id: joi3.string().uuid().allow(null).optional(),
1087
- deferred_payment: joi3.boolean().optional()
1088
+ deferred_payment: joi3.boolean().optional(),
1089
+ is_donation_eligible: joi3.boolean().optional()
1088
1090
  };
1089
1091
  var updateBody2 = joi3.object().keys(updateBodyKeys2).messages(messages);
1090
1092
  var findQueryKeys2 = {
package/dist/index.js CHANGED
@@ -1054,6 +1054,7 @@ var createBodyKeys2 = {
1054
1054
  user_id: joi3.string().uuid().optional(),
1055
1055
  main_persona: joi3.object().keys(createMainPersonaKeys).optional(),
1056
1056
  deferred_payment: joi3.boolean().default(false).optional(),
1057
+ is_donation_eligible: joi3.boolean().default(false).optional(),
1057
1058
  default_discount: joi3.number().positive().allow(0).default(0).max(100).optional(),
1058
1059
  exemption_reason_id: joi3.string().uuid().allow(null).optional(),
1059
1060
  inactive: joi3.boolean().default(false).optional(),
@@ -1084,7 +1085,8 @@ var updateBodyKeys2 = {
1084
1085
  default_maturity_date_id: joi3.string().uuid().allow(null).optional(),
1085
1086
  default_delivery_method_id: joi3.string().uuid().allow(null).optional(),
1086
1087
  default_vehicle_id: joi3.string().uuid().allow(null).optional(),
1087
- deferred_payment: joi3.boolean().optional()
1088
+ deferred_payment: joi3.boolean().optional(),
1089
+ is_donation_eligible: joi3.boolean().optional()
1088
1090
  };
1089
1091
  var updateBody2 = joi3.object().keys(updateBodyKeys2).messages(messages);
1090
1092
  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;
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.119",
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": {