@nomalism-com/types 0.49.4 → 0.49.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/main.d.ts CHANGED
@@ -1,7 +1,13 @@
1
+ import * as Adiantamento from "./modules/document/adiantamento/interfaces";
1
2
  import * as BillOfLading from "./modules/document/billOfLading/interfaces";
2
3
  import * as Catalogo from "./modules/document/CAT/interfaces";
4
+ import * as FaturaCredito from "./modules/document/faturaCredito/interfaces";
5
+ import * as FaturaRecibo from "./modules/document/faturaRecibo/interfaces";
6
+ import * as FaturaSimplificada from "./modules/document/faturaSimplificada/interfaces";
3
7
  import * as Inventario from "./modules/document/inventario/interface";
4
8
  import * as MaterialEntrance from "./modules/document/materialEntrance/interfaces";
9
+ import * as NotaCredito from "./modules/document/notaCredito/interfaces";
10
+ import * as NotaCreditoAdiantamento from "./modules/document/notaCreditoAdiantamento/interfaces";
5
11
  import * as NPF from "./modules/document/NPF/interface";
6
12
  import * as NRCL from "./modules/document/NRCL/interface";
7
13
  import * as Order from "./modules/document/order/interfaces";
@@ -14,6 +20,7 @@ import * as ProviderFinancialCreditNote from "./modules/document/providerFinanci
14
20
  import * as ProviderServiceInvoice from "./modules/document/providerServiceInvoice/interfaces";
15
21
  import * as Purchase from "./modules/document/purchase/interfaces";
16
22
  import * as Quebra from "./modules/document/quebra/interfaces";
23
+ import * as Recibo from "./modules/document/recibo/interfaces";
17
24
  import * as ReturnToProvider from "./modules/document/returnToProvider/interface";
18
25
  import * as Transformado from "./modules/document/transformado/interfaces";
19
26
  import * as UpfrontReturn from "./modules/document/upfrontReturn/interfaces";
@@ -22,11 +29,13 @@ import * as EmailLog from "./modules/integration/emailLog/interfaces";
22
29
  import * as EmailTemplate from "./modules/integration/emailTemplate/interfaces";
23
30
  import * as EmailTemplateAttachment from "./modules/integration/emailTemplateAttachment/interfaces";
24
31
  import * as EmailVerification from "./modules/integration/emailVerification/interfaces";
32
+ import * as EuPago from "./modules/integration/eupago/interfaces";
25
33
  import * as GoogleFilePermission from "./modules/integration/googleFilePermission/interfaces";
26
34
  import * as GoogleSheets from "./modules/integration/googleSheets/interfaces";
27
35
  import * as Observation from "./modules/integration/observation/interfaces";
28
36
  import * as ObservationType from "./modules/integration/observationType/interfaces";
29
37
  import * as PatchNotes from "./modules/integration/patchNotes/interfaces";
38
+ import * as PersonaMerge from "./modules/integration/personaMerge/interfaces";
30
39
  import * as ProjectInfo from "./modules/integration/projectInfo/interfaces";
31
40
  import * as Settings from "./modules/integration/settings/interfaces";
32
41
  import * as LLM from "./modules/llm/llm/interfaces";
@@ -139,4 +148,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
139
148
  import * as userErrors from "./shared/errors/userErrors";
140
149
  import * as viewErrors from "./shared/errors/viewErrors";
141
150
  import * as shared from "./shared/interface";
142
- export { AccountCode, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, ExternalDocumentHeader, ExternalDocumentType, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PromotionAssoc, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
151
+ export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PromotionAssoc, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
@@ -0,0 +1,24 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "adiantamento";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ /** exatamente uma proposta */
14
+ from_header: string[];
15
+ payments: IPayment.ICreateForThisDocumentHeaderRequest[];
16
+ owner_ref_document?: string | null;
17
+ /** só nas recuperações (ADM / ADD) */
18
+ copy_from_document?: string | null;
19
+ }
20
+ export interface IRepository {
21
+ create(data: ICreateRequest): Promise<void>;
22
+ }
23
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
24
+ export type IApi = IRepository;
@@ -0,0 +1,26 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "fatura_credito";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ from_header: string[];
14
+ from_lines: string[];
15
+ /** opcional: a fatura a crédito pode ficar total ou parcialmente em dívida */
16
+ payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
17
+ maturity_date_id?: string | null;
18
+ owner_ref_document?: string | null;
19
+ /** só nas recuperações (FTM / FTD) */
20
+ copy_from_document?: string | null;
21
+ }
22
+ export interface IRepository {
23
+ create(data: ICreateRequest): Promise<void>;
24
+ }
25
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
26
+ export type IApi = IRepository;
@@ -0,0 +1,25 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "fatura_recibo";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ from_header: string[];
14
+ from_lines: string[];
15
+ /** obrigatório: a fatura-recibo sai liquidada por inteiro */
16
+ payments: IPayment.ICreateForThisDocumentHeaderRequest[];
17
+ owner_ref_document?: string | null;
18
+ /** só nas recuperações (FRM / FRD) */
19
+ copy_from_document?: string | null;
20
+ }
21
+ export interface IRepository {
22
+ create(data: ICreateRequest): Promise<void>;
23
+ }
24
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
25
+ export type IApi = IRepository;
@@ -0,0 +1,24 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "fatura_simplificada";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ from_header: string[];
14
+ from_lines: string[];
15
+ /** obrigatório: a FS é liquidada no ato */
16
+ payments: IPayment.ICreateForThisDocumentHeaderRequest[];
17
+ /** só nas recuperações (FSM / FSD) */
18
+ copy_from_document?: string | null;
19
+ }
20
+ export interface IRepository {
21
+ create(data: ICreateRequest): Promise<void>;
22
+ }
23
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
24
+ export type IApi = IRepository;
@@ -0,0 +1,29 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "nota_credito";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ /** as FATURAS a creditar */
14
+ from_header: string[];
15
+ from_lines: string[];
16
+ /** obrigatório (Art. 78.º CIVA) */
17
+ return_reason: string;
18
+ /** true = regulariza em conta corrente, sem pagamentos */
19
+ current_account?: boolean;
20
+ payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
21
+ owner_ref_document?: string | null;
22
+ /** só nas recuperações (NCM / NCD) */
23
+ copy_from_document?: string | null;
24
+ }
25
+ export interface IRepository {
26
+ create(data: ICreateRequest): Promise<void>;
27
+ }
28
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
29
+ export type IApi = IRepository;
@@ -0,0 +1,25 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "nota_credito_adiantamento";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ /** exatamente uma proposta */
14
+ from_header: string[];
15
+ current_account?: boolean;
16
+ payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
17
+ owner_ref_document?: string | null;
18
+ /** só nas recuperações (NCADM / NCADD) */
19
+ copy_from_document?: string | null;
20
+ }
21
+ export interface IRepository {
22
+ create(data: ICreateRequest): Promise<void>;
23
+ }
24
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
25
+ export type IApi = IRepository;
@@ -0,0 +1,21 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import * as IPayment from "../../supply/payment/interface";
3
+ export declare const Route = "recibo";
4
+ export interface ICreateRequestBase {
5
+ document_type_id: number;
6
+ document_set_id?: string;
7
+ emission_date?: Date;
8
+ external_document_name?: string;
9
+ store_operator_id?: string | null;
10
+ email?: string | null;
11
+ }
12
+ export interface ICreateRequest extends ICreateRequestBase {
13
+ /** a FATURA a liquidar */
14
+ from_header: string[];
15
+ payments: IPayment.ICreateForThisDocumentHeaderRequest[];
16
+ }
17
+ export interface IRepository {
18
+ create(data: ICreateRequest): Promise<void>;
19
+ }
20
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
21
+ export type IApi = IRepository;
@@ -0,0 +1,67 @@
1
+ import { EuPagoTransaction } from "../../../shared/entities/integration";
2
+ export type Entity = EuPagoTransaction;
3
+ export declare const Route = "eupago";
4
+ export declare const EuPagoMethodEnum: {
5
+ multibanco: "multibanco";
6
+ mbway: "mbway";
7
+ creditcard: "creditcard";
8
+ };
9
+ export type EuPagoMethod = (typeof EuPagoMethodEnum)[keyof typeof EuPagoMethodEnum];
10
+ export declare const EuPagoStatusEnum: {
11
+ awaiting_method: "awaiting_method";
12
+ pending: "pending";
13
+ confirmed: "confirmed";
14
+ rejected: "rejected";
15
+ cancelled: "cancelled";
16
+ expired: "expired";
17
+ error: "error";
18
+ };
19
+ export type EuPagoStatus = (typeof EuPagoStatusEnum)[keyof typeof EuPagoStatusEnum];
20
+ export interface ICreatePendingPaymentRequest {
21
+ from_document_header_id: string;
22
+ amount: number;
23
+ }
24
+ export interface IWebhookTransaction {
25
+ entity?: number;
26
+ reference?: number;
27
+ identifier: string;
28
+ method: string;
29
+ amount: {
30
+ value: number;
31
+ currency?: string;
32
+ };
33
+ trid: number;
34
+ status: string;
35
+ }
36
+ export interface IWebhookBody {
37
+ transactions: IWebhookTransaction;
38
+ channel?: {
39
+ name: string;
40
+ };
41
+ }
42
+ export interface IFindResponse extends Entity {
43
+ document_link?: string;
44
+ }
45
+ export interface IPaymentChoiceMessage {
46
+ type: "payment_choice";
47
+ amount: string;
48
+ record_id: string;
49
+ status: EuPagoStatus;
50
+ method?: EuPagoMethod;
51
+ entity?: string;
52
+ reference?: string;
53
+ }
54
+ export interface IPaymentConfirmedMessage {
55
+ type: "payment_confirmed";
56
+ amount: string;
57
+ record_id: string;
58
+ method: EuPagoMethod;
59
+ entity?: string;
60
+ reference?: string;
61
+ transaction_id?: string;
62
+ confirmed_at: string;
63
+ }
64
+ export interface IApi {
65
+ generate(data: ICreatePendingPaymentRequest): Promise<Entity>;
66
+ find(): Promise<IFindResponse[]>;
67
+ }
@@ -0,0 +1,11 @@
1
+ export declare const Route = "persona_merge";
2
+ export interface IMergeOwnerRequest {
3
+ source_client_id: string;
4
+ target_client_id: string;
5
+ source_persona_id: string;
6
+ target_persona_id: string;
7
+ }
8
+ export interface IRepository {
9
+ execute(data: IMergeOwnerRequest): Promise<void>;
10
+ }
11
+ export type IApi = IRepository;
@@ -30,6 +30,7 @@ export interface ICreateRequest {
30
30
  message: string;
31
31
  username: string;
32
32
  is_customer: boolean;
33
+ skip_translation?: boolean;
33
34
  }
34
35
  export interface IUpdateRequest {
35
36
  chat_document_header_id?: string;
@@ -299,6 +299,21 @@ export interface IFindCountByOwnersIdsResponse {
299
299
  open: number;
300
300
  closed: number;
301
301
  }
302
+ export interface IFindByOwnersIdsResponse {
303
+ owner_id: string;
304
+ document_number: number;
305
+ code: string;
306
+ document_type_id: string;
307
+ created_at: string;
308
+ created_by: string;
309
+ seller: string;
310
+ }
311
+ export interface IMergeOwnerRequest {
312
+ source_client_id: string;
313
+ target_client_id: string;
314
+ source_persona_id: string;
315
+ target_persona_id: string;
316
+ }
302
317
  export interface IRepository {
303
318
  findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneBase | null>;
304
319
  findStartVirtual(selector: IShared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
@@ -319,5 +334,7 @@ export interface IRepository {
319
334
  findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
320
335
  createSiteProposal(data: IShared.IBrokerTopicPayload[typeof IShared.IBrokerTopic.create_site_proposal]): Promise<IProjectInfo.ICreateResponse>;
321
336
  findCountByOwnerIds(data: IFindCountByOwnersIdsRequest): Promise<IFindCountByOwnersIdsResponse[]>;
337
+ findByOwnerIds(data: IFindCountByOwnersIdsRequest): Promise<IFindByOwnersIdsResponse[]>;
338
+ mergeOwner(data: IMergeOwnerRequest): Promise<void>;
322
339
  }
323
340
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -120,6 +120,59 @@ export interface IFindForGmailResponse {
120
120
  export interface IPublicUpdateRequest {
121
121
  language_id: string | null;
122
122
  }
123
+ export interface IDuplicatedGroupMember {
124
+ client_id: string;
125
+ client_number: number | null;
126
+ nome: string | null;
127
+ nif: string | null;
128
+ email: string | null;
129
+ telefone: string | null;
130
+ }
131
+ export interface IDuplicatedGroupDocument {
132
+ document_number: number;
133
+ code: string;
134
+ created_at: string;
135
+ created_by: string;
136
+ seller: string;
137
+ }
138
+ export interface IDuplicatedGroupPersona {
139
+ id: string;
140
+ name: string | null;
141
+ nif: string | null;
142
+ email: string | null;
143
+ telephone: string | null;
144
+ main: boolean;
145
+ contact: boolean;
146
+ }
147
+ export interface IDuplicatedGroupResponse {
148
+ id: string;
149
+ status: "pending" | "resolved" | "merged";
150
+ confidence_score: number;
151
+ target_client_id: string | null;
152
+ data?: {
153
+ documents?: Record<string, IDuplicatedGroupDocument[]>;
154
+ personas?: Record<string, IDuplicatedGroupPersona[]>;
155
+ merge_error?: {
156
+ client_id: string;
157
+ message: string;
158
+ } | null;
159
+ };
160
+ members: IDuplicatedGroupMember[];
161
+ }
162
+ export interface IResolveDuplicatedGroupRequest {
163
+ target_client_id: string;
164
+ }
165
+ export interface IExecuteMergeDuplicatedGroupRequest {
166
+ target_client_id: string;
167
+ source_client_ids: string[];
168
+ }
169
+ export interface IExecuteMergeDuplicatedGroupResponse {
170
+ group_id: string;
171
+ status: "merged" | "resolved";
172
+ merged_client_ids: string[];
173
+ failed_client_id: string | null;
174
+ error: string | null;
175
+ }
123
176
  export interface IRepository {
124
177
  findById(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
125
178
  findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
@@ -132,5 +185,9 @@ export interface IRepository {
132
185
  findClientOrProvider(data: IFindClientOrProviderRequest): Promise<IFindClientOrProviderResponse[]>;
133
186
  findForGmail(data: IFindForGmailRequest): Promise<IFindForGmailResponse | null>;
134
187
  publicUpdate(selector: IShared.IFindByIdRequest, data: IPublicUpdateRequest): Promise<void>;
188
+ findDuplicateds(): Promise<IDuplicatedGroupResponse[]>;
189
+ refreshDuplicateds(): Promise<void>;
190
+ resolveDuplicateds(selector: IShared.IFindByIdRequest, data: IResolveDuplicatedGroupRequest): Promise<void>;
191
+ executeMergeDuplicateds(selector: IShared.IFindByIdRequest, data: IExecuteMergeDuplicatedGroupRequest): Promise<IExecuteMergeDuplicatedGroupResponse>;
135
192
  }
136
193
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -19,6 +19,7 @@ export declare const SystemModuleEnum: {
19
19
  gestao_utilizadores: "gestao_utilizadores";
20
20
  templates_email: "templates_email";
21
21
  audit: "audit";
22
+ clientes_duplicados: "clientes_duplicados";
22
23
  };
23
24
  export type ISystemModule = (typeof SystemModuleEnum)[keyof typeof SystemModuleEnum];
24
25
  export declare const systemModules: string[];
@@ -1,3 +1,4 @@
1
+ import type { EuPagoMethod, EuPagoStatus } from "../../modules/integration/eupago/interfaces";
1
2
  import type { IBudgetOptionsType, IProjectInfoOriginType, IProjectInfoType } from "../../modules/integration/projectInfo/interfaces";
2
3
  /**
3
4
  * Model Observation
@@ -167,3 +168,21 @@ export type PatchNotes = {
167
168
  created_at: string;
168
169
  updated_at: string;
169
170
  };
171
+ /**
172
+ * Model EuPagoTransaction
173
+ *
174
+ */
175
+ export type EuPagoTransaction = {
176
+ id: string;
177
+ identifier: string | null;
178
+ method: EuPagoMethod | null;
179
+ status: EuPagoStatus;
180
+ reference: string | null;
181
+ transaction_id: string | null;
182
+ amount: number;
183
+ from_document_header_id: string;
184
+ confirmation_dispatched: boolean;
185
+ raw_payload: unknown;
186
+ created_at: Date;
187
+ updated_at: Date;
188
+ };
@@ -1,3 +1,4 @@
1
+ import type { EuPagoMethod } from "../modules/integration/eupago/interfaces";
1
2
  import type { IGetUserData } from "../modules/integration/googleSheets/interfaces";
2
3
  import type { ITranslateRequest } from "../modules/stock/chat/interfaces";
3
4
  import type { IWarningType } from "../modules/supply/documentHeader/interfaces";
@@ -142,6 +143,7 @@ export declare enum IBrokerTopic {
142
143
  send_email_client_survey = "send_email_client_survey",
143
144
  perform_task = "perform_task",
144
145
  create_site_proposal = "create_site_proposal",
146
+ eupago_payment_confirmed = "eupago_payment_confirmed",
145
147
  translate_chat_message = "translate_chat_message",
146
148
  persona_updated = "persona_updated",
147
149
  persona_lang_change = "persona_lang_change",
@@ -390,6 +392,13 @@ export type IBrokerTopicPayload = {
390
392
  owner_id: string;
391
393
  event: SupplyDocumentSocketEvent;
392
394
  };
395
+ [IBrokerTopic.eupago_payment_confirmed]: {
396
+ from_document_header_id: string;
397
+ amount: number;
398
+ method: EuPagoMethod;
399
+ transaction_id: string;
400
+ reference?: string;
401
+ };
393
402
  };
394
403
  export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
395
404
  topic: T;
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.49.4",
4
+ "version": "0.49.7",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@eslint/js": "^10.0.1",
30
30
  "@swc/core": "^1.16.2",
31
- "@types/node": "^26.5.0",
31
+ "@types/node": "^26.5.1",
32
32
  "@typescript-eslint/eslint-plugin": "^8.62.0",
33
33
  "@typescript-eslint/parser": "^8.62.0",
34
34
  "eslint": "^10.10.0",