@nomalism-com/types 0.40.109 → 0.40.111
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 +6 -1
- package/dist/index.js +6 -1
- package/dist/modules/integration/patchNotes/interfaces.d.ts +1 -1
- package/dist/modules/integration/projectInfo/interfaces.d.ts +9 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +2 -0
- package/dist/modules/supply/documentType/interfaces.d.ts +3 -0
- 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
|
@@ -1437,7 +1437,10 @@ var DocumentTypeCodeTypeEnum = {
|
|
|
1437
1437
|
FP: "FP",
|
|
1438
1438
|
RDP: "RDP",
|
|
1439
1439
|
NRCL: "NRCL",
|
|
1440
|
-
FPM: "FPM"
|
|
1440
|
+
FPM: "FPM",
|
|
1441
|
+
FTO: "FTO",
|
|
1442
|
+
FRO: "FRO",
|
|
1443
|
+
REO: "REO"
|
|
1441
1444
|
};
|
|
1442
1445
|
var documentTypeCodeTypes = Object.keys(DocumentTypeCodeTypeEnum);
|
|
1443
1446
|
|
|
@@ -4380,6 +4383,8 @@ __export(route_schema_exports76, {
|
|
|
4380
4383
|
});
|
|
4381
4384
|
import joi77 from "joi";
|
|
4382
4385
|
var sendEmailBodyKeys = {
|
|
4386
|
+
client_id: joi77.string().uuid().optional(),
|
|
4387
|
+
persona_id: joi77.string().uuid().optional(),
|
|
4383
4388
|
name: joi77.string().required(),
|
|
4384
4389
|
description: joi77.string().required(),
|
|
4385
4390
|
telephone: joi77.string().required(),
|
package/dist/index.js
CHANGED
|
@@ -1437,7 +1437,10 @@ var DocumentTypeCodeTypeEnum = {
|
|
|
1437
1437
|
FP: "FP",
|
|
1438
1438
|
RDP: "RDP",
|
|
1439
1439
|
NRCL: "NRCL",
|
|
1440
|
-
FPM: "FPM"
|
|
1440
|
+
FPM: "FPM",
|
|
1441
|
+
FTO: "FTO",
|
|
1442
|
+
FRO: "FRO",
|
|
1443
|
+
REO: "REO"
|
|
1441
1444
|
};
|
|
1442
1445
|
var documentTypeCodeTypes = Object.keys(DocumentTypeCodeTypeEnum);
|
|
1443
1446
|
|
|
@@ -4380,6 +4383,8 @@ __export(route_schema_exports76, {
|
|
|
4380
4383
|
});
|
|
4381
4384
|
import joi77 from "joi";
|
|
4382
4385
|
var sendEmailBodyKeys = {
|
|
4386
|
+
client_id: joi77.string().uuid().optional(),
|
|
4387
|
+
persona_id: joi77.string().uuid().optional(),
|
|
4383
4388
|
name: joi77.string().required(),
|
|
4384
4389
|
description: joi77.string().required(),
|
|
4385
4390
|
telephone: joi77.string().required(),
|
|
@@ -42,6 +42,6 @@ export interface ICreateRequest {
|
|
|
42
42
|
}
|
|
43
43
|
export interface IRepository {
|
|
44
44
|
find(): Promise<IFindResponse[]>;
|
|
45
|
-
createOrUpdate(data: ICreateRequest): Promise<
|
|
45
|
+
createOrUpdate(data: ICreateRequest): Promise<string>;
|
|
46
46
|
}
|
|
47
47
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -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>;
|
|
@@ -55,6 +55,9 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
55
55
|
RDP: 'RDP';
|
|
56
56
|
NRCL: 'NRCL';
|
|
57
57
|
FPM: 'FPM';
|
|
58
|
+
FTO: 'FTO';
|
|
59
|
+
FRO: 'FRO';
|
|
60
|
+
REO: 'REO';
|
|
58
61
|
};
|
|
59
62
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
60
63
|
export declare const documentTypeCodeTypes: string[];
|
|
@@ -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.111",
|
|
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
|
},
|