@nomalism-com/types 0.39.46 → 0.39.47

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
@@ -2550,6 +2550,7 @@ var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutput
2550
2550
  // src/modules/supply/payment/route.schema.ts
2551
2551
  var route_schema_exports33 = {};
2552
2552
  __export(route_schema_exports33, {
2553
+ createBatchPdfBody: () => createBatchPdfBody,
2553
2554
  exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
2554
2555
  exportPaymentsBody: () => exportPaymentsBody,
2555
2556
  findCurrentAccountWithPaginationQuery: () => findCurrentAccountWithPaginationQuery,
@@ -2617,6 +2618,11 @@ var findCurrentAccountWithPaginationQueryKeys = {
2617
2618
  current_page: joi34.number().integer().positive().default(1).optional()
2618
2619
  };
2619
2620
  var findCurrentAccountWithPaginationQuery = joi34.object().keys(findCurrentAccountWithPaginationQueryKeys).messages(messages);
2621
+ var createBatchPdfBodyKeys = {
2622
+ month: joi34.number().integer().min(1).max(12).required(),
2623
+ year: joi34.number().integer().min(2e3).max(2100).required()
2624
+ };
2625
+ var createBatchPdfBody = joi34.object().keys(createBatchPdfBodyKeys).messages(messages);
2620
2626
 
2621
2627
  // src/modules/user/paymentMethods/interfaces.ts
2622
2628
  var interfaces_exports23 = {};
@@ -2649,7 +2655,6 @@ var PaymentMethodsSaftCodeEnum = {
2649
2655
  // src/modules/user/paymentMethods/route.schema.ts
2650
2656
  var route_schema_exports34 = {};
2651
2657
  __export(route_schema_exports34, {
2652
- createBatchPdfBody: () => createBatchPdfBody,
2653
2658
  createBody: () => createBody24,
2654
2659
  updateBody: () => updateBody20
2655
2660
  });
@@ -2673,14 +2678,6 @@ var updateBodyKeys20 = {
2673
2678
  hidden: joi35.boolean().allow(null).optional()
2674
2679
  };
2675
2680
  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);
2684
2681
 
2685
2682
  // src/modules/user/permissions/interface.ts
2686
2683
  var interface_exports16 = {};
package/dist/index.js CHANGED
@@ -2550,6 +2550,7 @@ var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutput
2550
2550
  // src/modules/supply/payment/route.schema.ts
2551
2551
  var route_schema_exports33 = {};
2552
2552
  __export(route_schema_exports33, {
2553
+ createBatchPdfBody: () => createBatchPdfBody,
2553
2554
  exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
2554
2555
  exportPaymentsBody: () => exportPaymentsBody,
2555
2556
  findCurrentAccountWithPaginationQuery: () => findCurrentAccountWithPaginationQuery,
@@ -2617,6 +2618,11 @@ var findCurrentAccountWithPaginationQueryKeys = {
2617
2618
  current_page: joi34.number().integer().positive().default(1).optional()
2618
2619
  };
2619
2620
  var findCurrentAccountWithPaginationQuery = joi34.object().keys(findCurrentAccountWithPaginationQueryKeys).messages(messages);
2621
+ var createBatchPdfBodyKeys = {
2622
+ month: joi34.number().integer().min(1).max(12).required(),
2623
+ year: joi34.number().integer().min(2e3).max(2100).required()
2624
+ };
2625
+ var createBatchPdfBody = joi34.object().keys(createBatchPdfBodyKeys).messages(messages);
2620
2626
 
2621
2627
  // src/modules/user/paymentMethods/interfaces.ts
2622
2628
  var interfaces_exports23 = {};
@@ -2649,7 +2655,6 @@ var PaymentMethodsSaftCodeEnum = {
2649
2655
  // src/modules/user/paymentMethods/route.schema.ts
2650
2656
  var route_schema_exports34 = {};
2651
2657
  __export(route_schema_exports34, {
2652
- createBatchPdfBody: () => createBatchPdfBody,
2653
2658
  createBody: () => createBody24,
2654
2659
  updateBody: () => updateBody20
2655
2660
  });
@@ -2673,14 +2678,6 @@ var updateBodyKeys20 = {
2673
2678
  hidden: joi35.boolean().allow(null).optional()
2674
2679
  };
2675
2680
  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);
2684
2681
 
2685
2682
  // src/modules/user/permissions/interface.ts
2686
2683
  var interface_exports16 = {};
@@ -141,6 +141,10 @@ export interface IExportCurrentAccountRequest {
141
141
  }
142
142
  export interface IFindCurrentAccountPaginatedRequest extends IShared.IFindByOwnerIdRequest, IShared.IPaginationRequest {
143
143
  }
144
+ export interface ICreateBatchPdfRequest {
145
+ month: number;
146
+ year: number;
147
+ }
144
148
  export interface IRepository {
145
149
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
146
150
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
@@ -159,6 +163,7 @@ export interface IRepository {
159
163
  updateDownloadedBatchNumber(id: IShared.IFindByIdRequest): Promise<void>;
160
164
  exportCurrentAccount(params: IExportCurrentAccountRequest): Promise<IFindCurrentAccountByOwnerIdResponse[]>;
161
165
  findCurrentAccountPaginated(params: IFindCurrentAccountPaginatedRequest): Promise<IShared.IPaginationResponse<IFindCurrentAccountByOwnerIdResponse>>;
166
+ createBatchPdf(selector: ICreateBatchPdfRequest): Promise<string>;
162
167
  }
163
168
  export type IController = IShared.IEntityWithUserToken<IRepository>;
164
169
  export {};
@@ -9,3 +9,4 @@ export declare const exportCurrentAccountBetweenDatesQuery: joi.ObjectSchema<any
9
9
  export declare const findSettledMaterialEntranceBuDateParams: joi.ObjectSchema<any>;
10
10
  export declare const findPaymentsNotExportedQuery: joi.ObjectSchema<IPaymentsNotExportedRequest>;
11
11
  export declare const findCurrentAccountWithPaginationQuery: joi.ObjectSchema<any>;
12
+ export declare const createBatchPdfBody: joi.ObjectSchema<any>;
@@ -38,10 +38,6 @@ 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
- }
45
41
  export interface IRepository {
46
42
  findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
47
43
  find(): Promise<Entity[]>;
@@ -49,6 +45,5 @@ export interface IRepository {
49
45
  create(data: ICreateRequest): Promise<Entity>;
50
46
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
51
47
  deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
52
- createBatchPdf(selector: IBatchPdfRequest): Promise<string>;
53
48
  }
54
49
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -1,4 +1,3 @@
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.46",
4
+ "version": "0.39.47",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",