@nomalism-com/types 0.44.11 → 0.44.13
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
|
@@ -1370,6 +1370,7 @@ __export(route_schema_exports9, {
|
|
|
1370
1370
|
documentLineQuery: () => documentLineQuery,
|
|
1371
1371
|
documentPdfQuery: () => documentPdfQuery,
|
|
1372
1372
|
findByTypeQuery: () => findByTypeQuery,
|
|
1373
|
+
findCountByOwnersIds: () => findCountByOwnersIds,
|
|
1373
1374
|
findQuery: () => findQuery6,
|
|
1374
1375
|
sendClientNotificationBody: () => sendClientNotificationBody,
|
|
1375
1376
|
transferClientOwnershipBody: () => transferClientOwnershipBody,
|
|
@@ -1714,6 +1715,10 @@ var createSiteProposalBody = joi10.object().keys({
|
|
|
1714
1715
|
created_at: joi10.string().isoDate().required(),
|
|
1715
1716
|
updated_at: joi10.string().isoDate().required()
|
|
1716
1717
|
}).messages(messages);
|
|
1718
|
+
var findCountByOwnersIdsKeys = {
|
|
1719
|
+
onwer_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
1720
|
+
};
|
|
1721
|
+
var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
|
|
1717
1722
|
|
|
1718
1723
|
// src/modules/supply/documentHeaderHistory/interfaces.ts
|
|
1719
1724
|
var interfaces_exports7 = {};
|
package/dist/index.js
CHANGED
|
@@ -1370,6 +1370,7 @@ __export(route_schema_exports9, {
|
|
|
1370
1370
|
documentLineQuery: () => documentLineQuery,
|
|
1371
1371
|
documentPdfQuery: () => documentPdfQuery,
|
|
1372
1372
|
findByTypeQuery: () => findByTypeQuery,
|
|
1373
|
+
findCountByOwnersIds: () => findCountByOwnersIds,
|
|
1373
1374
|
findQuery: () => findQuery6,
|
|
1374
1375
|
sendClientNotificationBody: () => sendClientNotificationBody,
|
|
1375
1376
|
transferClientOwnershipBody: () => transferClientOwnershipBody,
|
|
@@ -1714,6 +1715,10 @@ var createSiteProposalBody = joi10.object().keys({
|
|
|
1714
1715
|
created_at: joi10.string().isoDate().required(),
|
|
1715
1716
|
updated_at: joi10.string().isoDate().required()
|
|
1716
1717
|
}).messages(messages);
|
|
1718
|
+
var findCountByOwnersIdsKeys = {
|
|
1719
|
+
onwer_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
1720
|
+
};
|
|
1721
|
+
var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
|
|
1717
1722
|
|
|
1718
1723
|
// src/modules/supply/documentHeaderHistory/interfaces.ts
|
|
1719
1724
|
var interfaces_exports7 = {};
|
|
@@ -291,6 +291,14 @@ export interface IFindStartDocumentHeaderSiblingsResponse {
|
|
|
291
291
|
next: string | null;
|
|
292
292
|
previous: string | null;
|
|
293
293
|
}
|
|
294
|
+
export interface IFindCountByOwnersIdsRequest {
|
|
295
|
+
onwer_ids: string[];
|
|
296
|
+
}
|
|
297
|
+
export interface IFindCountByOwnersIdsResponse {
|
|
298
|
+
owner_id: string;
|
|
299
|
+
open: number;
|
|
300
|
+
closed: number;
|
|
301
|
+
}
|
|
294
302
|
export interface IRepository {
|
|
295
303
|
findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneBase | null>;
|
|
296
304
|
findStartVirtual(selector: IShared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
|
|
@@ -311,5 +319,6 @@ export interface IRepository {
|
|
|
311
319
|
documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
|
|
312
320
|
findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
|
|
313
321
|
createSiteProposal(data: IShared.IBrokerTopicPayload[typeof IShared.IBrokerTopic.create_site_proposal]): Promise<IProjectInfo.ICreateResponse>;
|
|
322
|
+
findCountByOwnerIds(data: IFindCountByOwnersIdsRequest): Promise<IFindCountByOwnersIdsResponse[]>;
|
|
314
323
|
}
|
|
315
324
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -13,3 +13,4 @@ export declare const findByTypeQuery: joi.ObjectSchema<any>;
|
|
|
13
13
|
export declare const documentPdfQuery: joi.ObjectSchema<any>;
|
|
14
14
|
export declare const documentLineQuery: joi.ObjectSchema<IShared.IRouteRequest<IDocumentListRequest>>;
|
|
15
15
|
export declare const createSiteProposalBody: joi.ObjectSchema<import("../../../shared/entities/integration").ProjectInfo>;
|
|
16
|
+
export declare const findCountByOwnersIds: joi.ObjectSchema<any>;
|
|
@@ -105,6 +105,8 @@ export interface IFindClientOrProviderRequest {
|
|
|
105
105
|
export interface IFindClientOrProviderResponse {
|
|
106
106
|
client_id: string | null;
|
|
107
107
|
provider_id: string | null;
|
|
108
|
+
client_number: number | null;
|
|
109
|
+
provider_number: number | null;
|
|
108
110
|
nif: string | null;
|
|
109
111
|
name: string | null;
|
|
110
112
|
email: string | null;
|
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.44.
|
|
4
|
+
"version": "0.44.13",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|