@nomalism-com/types 0.40.127 → 0.40.129
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
|
@@ -5731,13 +5731,12 @@ var LowerName101 = UpperName101[0].toLowerCase() + UpperName101.substring(1);
|
|
|
5731
5731
|
// src/modules/stock/gmails/route.schema.ts
|
|
5732
5732
|
var route_schema_exports106 = {};
|
|
5733
5733
|
__export(route_schema_exports106, {
|
|
5734
|
-
|
|
5734
|
+
authQuery: () => authQuery
|
|
5735
5735
|
});
|
|
5736
5736
|
import joi107 from "joi";
|
|
5737
|
-
var
|
|
5738
|
-
|
|
5739
|
-
};
|
|
5740
|
-
var editPreviewChatMessageRequest = joi107.object().keys(editPreviewChatMessageRequestBody).messages(messages);
|
|
5737
|
+
var authQuery = joi107.object().keys({
|
|
5738
|
+
forceConsent: joi107.boolean().optional()
|
|
5739
|
+
}).messages(messages);
|
|
5741
5740
|
|
|
5742
5741
|
// src/modules/document/NPF/interface.ts
|
|
5743
5742
|
var interface_exports59 = {};
|
package/dist/index.js
CHANGED
|
@@ -5731,13 +5731,12 @@ var LowerName101 = UpperName101[0].toLowerCase() + UpperName101.substring(1);
|
|
|
5731
5731
|
// src/modules/stock/gmails/route.schema.ts
|
|
5732
5732
|
var route_schema_exports106 = {};
|
|
5733
5733
|
__export(route_schema_exports106, {
|
|
5734
|
-
|
|
5734
|
+
authQuery: () => authQuery
|
|
5735
5735
|
});
|
|
5736
5736
|
import joi107 from "joi";
|
|
5737
|
-
var
|
|
5738
|
-
|
|
5739
|
-
};
|
|
5740
|
-
var editPreviewChatMessageRequest = joi107.object().keys(editPreviewChatMessageRequestBody).messages(messages);
|
|
5737
|
+
var authQuery = joi107.object().keys({
|
|
5738
|
+
forceConsent: joi107.boolean().optional()
|
|
5739
|
+
}).messages(messages);
|
|
5741
5740
|
|
|
5742
5741
|
// src/modules/document/NPF/interface.ts
|
|
5743
5742
|
var interface_exports59 = {};
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { Gmails } from '../../../shared/entities/stock';
|
|
3
|
+
import { IChatType } from '../chat/interfaces';
|
|
3
4
|
export type Entity = Gmails;
|
|
4
5
|
export declare const Route = "gmail";
|
|
5
6
|
export declare const UpperName = "Gmail";
|
|
6
7
|
export declare const LowerName: string;
|
|
7
|
-
export interface IGmailEmailWithAction {
|
|
8
|
-
id: string;
|
|
9
|
-
from: string;
|
|
10
|
-
subject: string;
|
|
11
|
-
gmail_id: string;
|
|
12
|
-
gmail_internal_date: number;
|
|
13
|
-
gmail_payload: unknown;
|
|
14
|
-
gmail_snippet: string;
|
|
15
|
-
action: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGmailEmailWithActionAndDocumentNumber {
|
|
18
|
-
id: string;
|
|
19
|
-
from: string;
|
|
20
|
-
subject: string;
|
|
21
|
-
gmail_id: string;
|
|
22
|
-
gmail_internal_date: number;
|
|
23
|
-
gmail_snippet: string;
|
|
24
|
-
action: string;
|
|
25
|
-
document_number?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface IWebsiteProposalGmailSearchResponse {
|
|
28
|
-
id: string;
|
|
29
|
-
document_number: number;
|
|
30
|
-
owner_id: string;
|
|
31
|
-
}
|
|
32
8
|
export interface IGmailsResponse {
|
|
33
9
|
id: string;
|
|
34
10
|
gmail_id: string;
|
|
@@ -47,14 +23,11 @@ export interface IGmailsResponse {
|
|
|
47
23
|
proposal_url: string | null;
|
|
48
24
|
gmail_attachments: unknown[] | null;
|
|
49
25
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export interface IEditPreviewChatMessageRequest {
|
|
53
|
-
text_to_chat: string;
|
|
26
|
+
export interface IAuthRequest {
|
|
27
|
+
forceConsent: boolean;
|
|
54
28
|
}
|
|
55
29
|
export interface IRepository {
|
|
56
|
-
auth(): Promise<string>;
|
|
30
|
+
auth(query: IAuthRequest): Promise<string>;
|
|
57
31
|
emails(): Promise<IGmailsResponse[]>;
|
|
58
32
|
}
|
|
59
33
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
60
|
-
export {};
|
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.129",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"joi": "^18.0.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@swc/core": "^1.15.
|
|
32
|
+
"@swc/core": "^1.15.11",
|
|
33
33
|
"@types/node": "^24.10.9",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
36
36
|
"eslint": "^9.39.2",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|