@nomalism-com/types 0.39.45 → 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 = {};
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 = {};
@@ -3,7 +3,7 @@ export declare const createBody: joi.ArraySchema<any[]>;
3
3
  export declare const updateBody: joi.ObjectSchema<any>;
4
4
  export declare const updateDataBody: joi.ObjectSchema<any>;
5
5
  export declare const updateManyBody: joi.ObjectSchema<any>;
6
- export declare const updateIndexesBody: joi.ArraySchema<string[]>;
7
- export declare const deleteBody: joi.ArraySchema<string[]>;
6
+ export declare const updateIndexesBody: joi.ArraySchema<any[]>;
7
+ export declare const deleteBody: joi.ArraySchema<any[]>;
8
8
  export declare const printLabelParams: joi.ObjectSchema<any>;
9
9
  export declare const printLabelQuery: joi.ObjectSchema<any>;
@@ -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>;
@@ -111,12 +111,7 @@ export declare const findByOwnerIdQueryKeys: IRouteRequest<IFindByOwnerIdRequest
111
111
  export declare const findByOwnerIdQuery: joi.ObjectSchema<any>;
112
112
  export declare const idParam: joi.ObjectSchema<any>;
113
113
  export declare const idNumberParam: joi.ObjectSchema<any>;
114
- export declare const findMinifiedReponse: joi.ArraySchema<{
115
- name: unknown;
116
- id: unknown;
117
- group: unknown;
118
- multimedia_id: unknown;
119
- }[]>;
114
+ export declare const findMinifiedReponse: joi.ArraySchema<any[]>;
120
115
  export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
121
116
  export declare const IUserSendEmailDocumentTemplateEnum: {
122
117
  generic: 'generic';
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.45",
4
+ "version": "0.39.47",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",