@nomalism-com/types 0.22.6 → 0.22.7
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.min.js +1 -1
- package/dist/main.d.ts +251 -255
- package/dist/modules/document/materialEntrance/interfaces.d.ts +4 -2
- package/dist/modules/document/order/interfaces.d.ts +4 -0
- package/dist/modules/document/purchase/interfaces.d.ts +3 -1
- package/dist/modules/supply/documentHeader/interfaces.d.ts +2 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +6 -2
- package/dist/modules/user/persona/interface.d.ts +3 -1
- package/dist/modules/user/users/interface.d.ts +3 -1
- package/dist/shared/entities/index.d.ts +0 -1
- package/dist/shared/entities/stock.d.ts +4 -13
- package/dist/shared/interface.d.ts +1 -13
- package/package.json +2 -2
- package/dist/modules/stock/chat/interfaces.d.ts +0 -23
- package/dist/modules/stock/chat/route.schema.d.ts +0 -3
|
@@ -14,6 +14,7 @@ export declare const createMaterialEntranceClientOrderOptions: string[];
|
|
|
14
14
|
export interface IGetMaterialEntranceInfoClientOrder {
|
|
15
15
|
ef_dla_id: string;
|
|
16
16
|
ordered_quantity: number;
|
|
17
|
+
pc_owner_id: string;
|
|
17
18
|
pc_dh_id: string;
|
|
18
19
|
pc_dh_number: number;
|
|
19
20
|
pc_virtual_name: string;
|
|
@@ -75,6 +76,7 @@ export interface IUnfinishedPickingLineGroup {
|
|
|
75
76
|
product_thumbnail: string | null;
|
|
76
77
|
product_provider_ref: string | null;
|
|
77
78
|
product_measure: string | null;
|
|
79
|
+
product_stock: number;
|
|
78
80
|
ordered_quantity: number;
|
|
79
81
|
provider_estimated_delivery_date: string;
|
|
80
82
|
ef_dla_ids: string[];
|
|
@@ -82,7 +84,7 @@ export interface IUnfinishedPickingLineGroup {
|
|
|
82
84
|
export type IUnfinishedPickingLineGroupExtended = IUnfinishedPickingLineGroup & IGetMaterialEntranceInfoResponse;
|
|
83
85
|
export interface IUnfinishedPickingsResponse extends Pick<DocumentHeader, "id" | "owner_id"> {
|
|
84
86
|
identifier: string;
|
|
85
|
-
|
|
87
|
+
url: string;
|
|
86
88
|
lineGroups: IUnfinishedPickingLineGroupExtended[];
|
|
87
89
|
}
|
|
88
90
|
export interface IUndoEntradaDeMaterialRequest {
|
|
@@ -98,9 +100,9 @@ export interface IFinalizarEntradaDeMaterialResponse {
|
|
|
98
100
|
}
|
|
99
101
|
export interface IPrintLabelParamsRequest {
|
|
100
102
|
product_id: string;
|
|
101
|
-
document_line_id: string;
|
|
102
103
|
}
|
|
103
104
|
export interface IPrintLabelQueryRequest {
|
|
105
|
+
ef_name: string;
|
|
104
106
|
pc_document_number?: number | null;
|
|
105
107
|
prison: boolean;
|
|
106
108
|
quantity: number;
|
|
@@ -72,8 +72,12 @@ export interface IFindRequest {
|
|
|
72
72
|
export type IOrderType = "VA" | "Stock";
|
|
73
73
|
export interface IFindResponse {
|
|
74
74
|
order_type: IOrderType;
|
|
75
|
+
client_id?: string;
|
|
75
76
|
pc_id?: string;
|
|
77
|
+
pc_closed?: boolean;
|
|
78
|
+
provider_id?: string;
|
|
76
79
|
pf_id?: string;
|
|
80
|
+
pf_closed?: boolean;
|
|
77
81
|
document_line_id: string;
|
|
78
82
|
document_line_quantity: number;
|
|
79
83
|
product_id: string;
|
|
@@ -9,7 +9,7 @@ export interface IUnpaidMaterialEntranceLineDetails {
|
|
|
9
9
|
quantity: number;
|
|
10
10
|
notes: DocumentLineNote[];
|
|
11
11
|
pc_name: string | null;
|
|
12
|
-
|
|
12
|
+
pc_link: string | null;
|
|
13
13
|
}
|
|
14
14
|
export interface IUnpaidMaterialEntranceLineResponse {
|
|
15
15
|
group: string;
|
|
@@ -19,8 +19,10 @@ export interface IUnpaidMaterialEntranceLineResponse {
|
|
|
19
19
|
designation: string;
|
|
20
20
|
multimedia_id: string | null;
|
|
21
21
|
provider_ref: string | null;
|
|
22
|
+
pf_owner_id: string;
|
|
22
23
|
pf_id: string;
|
|
23
24
|
ef_name: string;
|
|
25
|
+
pf_closed: boolean;
|
|
24
26
|
quantity: number;
|
|
25
27
|
discount: number;
|
|
26
28
|
provider_purchase_discount: number;
|
|
@@ -38,6 +38,7 @@ export interface IFindByDocumentLineStateResponse {
|
|
|
38
38
|
created_by: string;
|
|
39
39
|
who_handles: string | null;
|
|
40
40
|
tags: string | null;
|
|
41
|
+
url: string;
|
|
41
42
|
upfront_total: number;
|
|
42
43
|
}
|
|
43
44
|
export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
@@ -50,8 +51,7 @@ export interface IBasicSearchResponse {
|
|
|
50
51
|
name: string | null;
|
|
51
52
|
user_number: number;
|
|
52
53
|
document_line_count: number;
|
|
53
|
-
|
|
54
|
-
start_document_header_id: string | null;
|
|
54
|
+
url: string | null;
|
|
55
55
|
pdf_link: string | null;
|
|
56
56
|
updated_at: Date;
|
|
57
57
|
}
|
|
@@ -36,7 +36,7 @@ export interface IDataPagamento {
|
|
|
36
36
|
export interface IDocumentLineDocuments {
|
|
37
37
|
code: IDocumentTypeCodeType;
|
|
38
38
|
user_type: IDocumentTypeUserType;
|
|
39
|
-
|
|
39
|
+
url: string | null;
|
|
40
40
|
pdf_link: string | null;
|
|
41
41
|
}
|
|
42
42
|
export interface IHistory {
|
|
@@ -122,7 +122,7 @@ export interface IPrintLabelQueryRequest {
|
|
|
122
122
|
}
|
|
123
123
|
export interface IRepository {
|
|
124
124
|
findByState(data: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
125
|
-
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.
|
|
125
|
+
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.IEntityWithDocumentLine[]>;
|
|
126
126
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
127
127
|
updateData(data: IUpdateDataRequest): Promise<IUpdateLineStatesTriggerResponse>;
|
|
128
128
|
updateMany(data: IUpdateManyRequest): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IDocumentTypeUserType } from "../documentType/interfaces";
|
|
1
2
|
import { IProductType } from "../../stock/product/interface";
|
|
2
3
|
export declare const Route = "order_management";
|
|
3
4
|
export declare const UpperName = "OrderManagement";
|
|
@@ -7,7 +8,7 @@ export interface IFindProviderProductsRequest {
|
|
|
7
8
|
}
|
|
8
9
|
export interface IFindProposals {
|
|
9
10
|
name: string;
|
|
10
|
-
|
|
11
|
+
url: string;
|
|
11
12
|
pdf_link: string | null;
|
|
12
13
|
}
|
|
13
14
|
export interface IFindProviderProductsResponse {
|
|
@@ -45,7 +46,10 @@ export interface IFindProductHistoryProviderOrder {
|
|
|
45
46
|
export interface IFindProductHistoryMovement {
|
|
46
47
|
date: Date;
|
|
47
48
|
document_name: string;
|
|
48
|
-
|
|
49
|
+
link_user_type: IDocumentTypeUserType | null;
|
|
50
|
+
link_owner_id: string | null;
|
|
51
|
+
link_document_header_id: string | null;
|
|
52
|
+
link_closed: boolean | null;
|
|
49
53
|
quantity_in: number;
|
|
50
54
|
quantity_out: number;
|
|
51
55
|
stock_to_date: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as IShared from "../../../shared/interface";
|
|
2
2
|
import { Persona, Country } from "../../../shared/entities";
|
|
3
|
+
import { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
3
4
|
export type Entity = Persona;
|
|
4
5
|
export declare const Route = "persona";
|
|
5
6
|
export declare const UpperName = "Persona";
|
|
@@ -43,7 +44,8 @@ export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
|
43
44
|
inactive?: boolean;
|
|
44
45
|
}
|
|
45
46
|
export interface IBasicSearchResponse {
|
|
46
|
-
|
|
47
|
+
user_id: string;
|
|
48
|
+
user_type: IDocumentTypeUserType;
|
|
47
49
|
name: string;
|
|
48
50
|
number: number;
|
|
49
51
|
persona_name?: string;
|
|
@@ -5,7 +5,9 @@ export declare const Route = "users";
|
|
|
5
5
|
export declare const UpperName = "Users";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
7
|
export interface IFindByEmailResponse extends Entity {
|
|
8
|
-
store_operator:
|
|
8
|
+
store_operator: {
|
|
9
|
+
location_id: string;
|
|
10
|
+
} | null;
|
|
9
11
|
}
|
|
10
12
|
export interface IFindByIdResponse extends Entity {
|
|
11
13
|
provider: (Providers & {
|
|
@@ -10,7 +10,6 @@ export import AttributeValue = Stock.AttributeValue;
|
|
|
10
10
|
export import BankData = User.BankData;
|
|
11
11
|
export import Clients = User.Clients;
|
|
12
12
|
export import ClientType = User.ClientType;
|
|
13
|
-
export import Chat = Stock.Chat;
|
|
14
13
|
export import Color = Stock.Color;
|
|
15
14
|
export import Commissioner = User.Commissioner;
|
|
16
15
|
export import Composition = Stock.Composition;
|
|
@@ -33,18 +33,6 @@ export type AttributeValue = {
|
|
|
33
33
|
created_by: string;
|
|
34
34
|
updated_by: string;
|
|
35
35
|
};
|
|
36
|
-
export type Chat = {
|
|
37
|
-
id: string;
|
|
38
|
-
document_header_id: string;
|
|
39
|
-
message: string;
|
|
40
|
-
email_sent: boolean;
|
|
41
|
-
whatsapp_sent: boolean;
|
|
42
|
-
created_by: string;
|
|
43
|
-
updated_by: string;
|
|
44
|
-
created_at: Date;
|
|
45
|
-
updated_at: Date;
|
|
46
|
-
deleted: boolean;
|
|
47
|
-
};
|
|
48
36
|
export type Color = {
|
|
49
37
|
id: string;
|
|
50
38
|
primary_color_id: string;
|
|
@@ -1129,7 +1117,10 @@ export type StockMovement = {
|
|
|
1129
1117
|
emission_date: string;
|
|
1130
1118
|
name: string;
|
|
1131
1119
|
pdf_link: string | null;
|
|
1132
|
-
|
|
1120
|
+
link_user_type: IDocumentTypeUserType | null;
|
|
1121
|
+
link_owner_id: string | null;
|
|
1122
|
+
link_document_header_id: string | null;
|
|
1123
|
+
link_closed: boolean | null;
|
|
1133
1124
|
created_by: string;
|
|
1134
1125
|
quantity: number;
|
|
1135
1126
|
stock_to_date: number;
|
|
@@ -126,8 +126,7 @@ export declare enum IBrokerTopic {
|
|
|
126
126
|
perform_task = "perform_task",
|
|
127
127
|
warning_email = "warning_email",
|
|
128
128
|
retry_errored_emails = "retry_errored_emails",
|
|
129
|
-
send_errored_emails_summary = "send_errored_emails_summary"
|
|
130
|
-
dispatch_chat_message = "dispatch_chat_message"
|
|
129
|
+
send_errored_emails_summary = "send_errored_emails_summary"
|
|
131
130
|
}
|
|
132
131
|
export type IBrokerTopicPayload = {
|
|
133
132
|
[IBrokerTopic.create]: Record<string, unknown>;
|
|
@@ -237,17 +236,6 @@ export type IBrokerTopicPayload = {
|
|
|
237
236
|
[IBrokerTopic.send_errored_emails_summary]: {
|
|
238
237
|
warningErrors: string[];
|
|
239
238
|
};
|
|
240
|
-
[IBrokerTopic.dispatch_chat_message]: {
|
|
241
|
-
email: string;
|
|
242
|
-
name: string;
|
|
243
|
-
phone_number: string | null;
|
|
244
|
-
reply_url: string;
|
|
245
|
-
document_header_id: string;
|
|
246
|
-
document_name: string;
|
|
247
|
-
chat_id: string;
|
|
248
|
-
message: string;
|
|
249
|
-
created_by: string;
|
|
250
|
-
};
|
|
251
239
|
};
|
|
252
240
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
253
241
|
topic: T;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.22.
|
|
12
|
+
"version": "0.22.7",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
41
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
42
|
-
"@types/node": "^20.12.
|
|
42
|
+
"@types/node": "^20.12.13",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
44
44
|
"@typescript-eslint/parser": "^7.11.0",
|
|
45
45
|
"eslint": "^8.57.0",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as IShared from "../../../shared/interface";
|
|
2
|
-
import { Chat } from "../../../shared/entities";
|
|
3
|
-
export type Entity = Chat;
|
|
4
|
-
export declare const Route = "chat";
|
|
5
|
-
export declare const UpperName = "Chat";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
document_header_id: string;
|
|
9
|
-
message: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IUpdateRequest {
|
|
12
|
-
message?: string;
|
|
13
|
-
email_sent?: boolean;
|
|
14
|
-
whatsapp_sent?: boolean;
|
|
15
|
-
token_active?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface IRepository {
|
|
18
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<Chat[]>;
|
|
19
|
-
create(data: ICreateRequest): Promise<Chat>;
|
|
20
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
21
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|