@nomalism-com/types 0.39.45 → 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 +9 -0
- package/dist/index.js +9 -0
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
- package/dist/modules/user/paymentMethods/interfaces.d.ts +5 -0
- package/dist/modules/user/paymentMethods/route.schema.d.ts +1 -0
- package/dist/shared/interface.d.ts +1 -6
- package/package.json +1 -1
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 = {};
|
|
@@ -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<
|
|
7
|
-
export declare const deleteBody: joi.ArraySchema<
|
|
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>;
|
|
@@ -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>;
|
|
@@ -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.
|
|
4
|
+
"version": "0.39.46",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|