@nomalism-com/types 0.40.110 → 0.40.112
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 +2 -0
- package/dist/index.js +2 -0
- package/dist/modules/integration/projectInfo/interfaces.d.ts +9 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +2 -0
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +1 -1
- package/dist/modules/user/clients/interface.d.ts +0 -1
- package/dist/shared/entities/integration.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4383,6 +4383,8 @@ __export(route_schema_exports76, {
|
|
|
4383
4383
|
});
|
|
4384
4384
|
import joi77 from "joi";
|
|
4385
4385
|
var sendEmailBodyKeys = {
|
|
4386
|
+
client_id: joi77.string().uuid().optional(),
|
|
4387
|
+
persona_id: joi77.string().uuid().optional(),
|
|
4386
4388
|
name: joi77.string().required(),
|
|
4387
4389
|
description: joi77.string().required(),
|
|
4388
4390
|
telephone: joi77.string().required(),
|
package/dist/index.js
CHANGED
|
@@ -4383,6 +4383,8 @@ __export(route_schema_exports76, {
|
|
|
4383
4383
|
});
|
|
4384
4384
|
import joi77 from "joi";
|
|
4385
4385
|
var sendEmailBodyKeys = {
|
|
4386
|
+
client_id: joi77.string().uuid().optional(),
|
|
4387
|
+
persona_id: joi77.string().uuid().optional(),
|
|
4386
4388
|
name: joi77.string().required(),
|
|
4387
4389
|
description: joi77.string().required(),
|
|
4388
4390
|
telephone: joi77.string().required(),
|
|
@@ -20,7 +20,14 @@ export type IBudgetOptionsType = {
|
|
|
20
20
|
};
|
|
21
21
|
export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
|
|
22
22
|
export declare const projectInfoTypes: string[];
|
|
23
|
-
export
|
|
23
|
+
export interface ICreateRequest extends Omit<Entity, 'created_at' | 'updated_at' | 'document_header_id' | 'id' | 'email_log' | 'persona_id' | 'client_id'> {
|
|
24
|
+
persona_id?: string;
|
|
25
|
+
client_id?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ICreateResponse {
|
|
28
|
+
document_header_id: string;
|
|
29
|
+
chat_subscriber_id: string;
|
|
30
|
+
}
|
|
24
31
|
export declare const IProjectInfoOriginTypeEnum: {
|
|
25
32
|
website: 'website';
|
|
26
33
|
portal: 'portal';
|
|
@@ -28,5 +35,5 @@ export declare const IProjectInfoOriginTypeEnum: {
|
|
|
28
35
|
export type IProjectInfoOriginType = (typeof IProjectInfoOriginTypeEnum)[keyof typeof IProjectInfoOriginTypeEnum];
|
|
29
36
|
export declare const ProjectInfoOriginTypes: string[];
|
|
30
37
|
export interface IController {
|
|
31
|
-
sendEmail(data:
|
|
38
|
+
sendEmail(data: ICreateRequest): Promise<ICreateResponse>;
|
|
32
39
|
}
|
|
@@ -2,6 +2,7 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentLineNote, VatTax } from '../../../shared/entities/stock';
|
|
3
3
|
import * as IDocumentType from '../documentType/interfaces';
|
|
4
4
|
import * as IPayment from '../payment/interface';
|
|
5
|
+
import * as IProjectInfo from '../../integration/projectInfo/interfaces';
|
|
5
6
|
export type Entity = Omit<DocumentHeader, 'external_data'>;
|
|
6
7
|
export declare const Route = "documentHeader";
|
|
7
8
|
export declare const UpperName = "DocumentHeader";
|
|
@@ -303,5 +304,6 @@ export interface IRepository {
|
|
|
303
304
|
documentThermalPrint(selector: IShared.IFindByIdRequest): Promise<string>;
|
|
304
305
|
documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
|
|
305
306
|
findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
|
|
307
|
+
createSiteProposal(data: IShared.IBrokerTopicPayload[typeof IShared.IBrokerTopic.create_site_proposal]): Promise<IProjectInfo.ICreateResponse>;
|
|
306
308
|
}
|
|
307
309
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -29,7 +29,7 @@ export interface IFindChatSubscriberResponse {
|
|
|
29
29
|
chat_type: IChatType;
|
|
30
30
|
}
|
|
31
31
|
export interface IRepository {
|
|
32
|
-
createOrUpdate(data: ICreateOrUpdateRequest): Promise<
|
|
32
|
+
createOrUpdate(data: ICreateOrUpdateRequest): Promise<string>;
|
|
33
33
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
34
34
|
findByOwner(selector: IFindRequest): Promise<IFindByOwnerResponse[]>;
|
|
35
35
|
clientWebAppFindByOwner(selector: IFindRequest): Promise<IFindChatSubscriberResponse>;
|
|
@@ -78,7 +78,6 @@ export interface IRepository {
|
|
|
78
78
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
79
79
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
80
80
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
81
|
-
createOrUpdate(data: ICreateRequest): Promise<IFindResponse>;
|
|
82
81
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
83
82
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
84
83
|
}
|
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.40.
|
|
4
|
+
"version": "0.40.112",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.15.8",
|
|
33
|
-
"@types/node": "^24.10.
|
|
33
|
+
"@types/node": "^24.10.8",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.53.0",
|
|
36
36
|
"eslint": "^9.39.2",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
39
|
-
"eslint-plugin-prettier": "^5.5.
|
|
39
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
40
40
|
"prettier": "^3.7.4",
|
|
41
41
|
"tsup": "^8.5.1"
|
|
42
42
|
},
|