@nomalism-com/types 0.39.44 → 0.39.46

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
@@ -2649,6 +2649,7 @@ var PaymentMethodsSaftCodeEnum = {
2649
2649
  // src/modules/user/paymentMethods/route.schema.ts
2650
2650
  var route_schema_exports34 = {};
2651
2651
  __export(route_schema_exports34, {
2652
+ createBatchPdfBody: () => createBatchPdfBody,
2652
2653
  createBody: () => createBody24,
2653
2654
  updateBody: () => updateBody20
2654
2655
  });
@@ -2672,6 +2673,14 @@ var updateBodyKeys20 = {
2672
2673
  hidden: joi35.boolean().allow(null).optional()
2673
2674
  };
2674
2675
  var updateBody20 = joi35.object().keys(updateBodyKeys20).messages(messages);
2676
+ var createBatchPdfBodyKeys = {
2677
+ payment_method_ids: joi35.array().items(
2678
+ joi35.object().keys({
2679
+ id: joi35.string().uuid().required()
2680
+ })
2681
+ ).min(1).required()
2682
+ };
2683
+ var createBatchPdfBody = joi35.object().keys(createBatchPdfBodyKeys).messages(messages);
2675
2684
 
2676
2685
  // src/modules/user/permissions/interface.ts
2677
2686
  var interface_exports16 = {};
package/dist/index.js CHANGED
@@ -2649,6 +2649,7 @@ var PaymentMethodsSaftCodeEnum = {
2649
2649
  // src/modules/user/paymentMethods/route.schema.ts
2650
2650
  var route_schema_exports34 = {};
2651
2651
  __export(route_schema_exports34, {
2652
+ createBatchPdfBody: () => createBatchPdfBody,
2652
2653
  createBody: () => createBody24,
2653
2654
  updateBody: () => updateBody20
2654
2655
  });
@@ -2672,6 +2673,14 @@ var updateBodyKeys20 = {
2672
2673
  hidden: joi35.boolean().allow(null).optional()
2673
2674
  };
2674
2675
  var updateBody20 = joi35.object().keys(updateBodyKeys20).messages(messages);
2676
+ var createBatchPdfBodyKeys = {
2677
+ payment_method_ids: joi35.array().items(
2678
+ joi35.object().keys({
2679
+ id: joi35.string().uuid().required()
2680
+ })
2681
+ ).min(1).required()
2682
+ };
2683
+ var createBatchPdfBody = joi35.object().keys(createBatchPdfBodyKeys).messages(messages);
2675
2684
 
2676
2685
  // src/modules/user/permissions/interface.ts
2677
2686
  var interface_exports16 = {};
@@ -38,6 +38,10 @@ export interface IUpdateRequest {
38
38
  is_credit?: boolean;
39
39
  hidden?: boolean | null;
40
40
  }
41
+ export interface IBatchPdfRequest {
42
+ month: number;
43
+ year: number;
44
+ }
41
45
  export interface IRepository {
42
46
  findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
43
47
  find(): Promise<Entity[]>;
@@ -45,5 +49,6 @@ export interface IRepository {
45
49
  create(data: ICreateRequest): Promise<Entity>;
46
50
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
47
51
  deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
52
+ createBatchPdf(selector: IBatchPdfRequest): Promise<string>;
48
53
  }
49
54
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -1,3 +1,4 @@
1
1
  import joi from 'joi';
2
2
  export declare const createBody: joi.ObjectSchema<any>;
3
3
  export declare const updateBody: joi.ObjectSchema<any>;
4
+ export declare const createBatchPdfBody: joi.ObjectSchema<any>;
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.39.44",
4
+ "version": "0.39.46",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -26,11 +26,11 @@
26
26
  "prepack": "npm run lint && npm run build"
27
27
  },
28
28
  "dependencies": {
29
- "joi": "^17.13.3"
29
+ "joi": "^18.0.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.11.29",
33
- "@types/node": "^22.15.21",
33
+ "@types/node": "^24.3.0",
34
34
  "@typescript-eslint/eslint-plugin": "^8.32.1",
35
35
  "@typescript-eslint/parser": "^8.32.1",
36
36
  "eslint": "^9.27.0",