@nomalism-com/types 0.47.25 → 0.47.27
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 -11
- package/dist/index.js +6 -11
- package/dist/modules/integration/eupago/interfaces.d.ts +11 -11
- package/dist/modules/integration/eupago/route.schema.d.ts +1 -3
- package/dist/modules/user/persona/interface.d.ts +15 -1
- package/dist/modules/user/persona/route.schema.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1295,8 +1295,6 @@ var EuPagoStatusEnum = {
|
|
|
1295
1295
|
// src/modules/integration/eupago/route.schema.ts
|
|
1296
1296
|
var route_schema_exports25 = {};
|
|
1297
1297
|
__export(route_schema_exports25, {
|
|
1298
|
-
chooseMethodBody: () => chooseMethodBody,
|
|
1299
|
-
chooseMethodBodyKeys: () => chooseMethodBodyKeys,
|
|
1300
1298
|
generateBody: () => generateBody,
|
|
1301
1299
|
generateBodyKeys: () => generateBodyKeys
|
|
1302
1300
|
});
|
|
@@ -1306,15 +1304,6 @@ var generateBodyKeys = {
|
|
|
1306
1304
|
amount: joi25.number().positive().required()
|
|
1307
1305
|
};
|
|
1308
1306
|
var generateBody = joi25.object().keys(generateBodyKeys).messages(messages);
|
|
1309
|
-
var chooseMethodBodyKeys = {
|
|
1310
|
-
method: joi25.string().valid("multibanco", "mbway").required(),
|
|
1311
|
-
client: joi25.object({
|
|
1312
|
-
name: joi25.string().required(),
|
|
1313
|
-
email: joi25.string().email({ tlds: false }),
|
|
1314
|
-
phone: joi25.string()
|
|
1315
|
-
}).required()
|
|
1316
|
-
};
|
|
1317
|
-
var chooseMethodBody = joi25.object().keys(chooseMethodBodyKeys).messages(messages);
|
|
1318
1307
|
|
|
1319
1308
|
// src/modules/integration/googleFilePermission/interfaces.ts
|
|
1320
1309
|
var interfaces_exports21 = {};
|
|
@@ -4857,6 +4846,7 @@ __export(route_schema_exports104, {
|
|
|
4857
4846
|
FindClientOrProviderQueryValidate: () => FindClientOrProviderQueryValidate,
|
|
4858
4847
|
createBody: () => createBody54,
|
|
4859
4848
|
deleteQueryValidate: () => deleteQueryValidate,
|
|
4849
|
+
executeMergeDuplicatedGroupBody: () => executeMergeDuplicatedGroupBody,
|
|
4860
4850
|
findForGmailParamsValidate: () => findForGmailParamsValidate,
|
|
4861
4851
|
findQuery: () => findQuery24,
|
|
4862
4852
|
getBasicSearchParamsValidate: () => getBasicSearchParamsValidate,
|
|
@@ -4945,6 +4935,11 @@ var resolveDuplicatedGroupBodyKeys = {
|
|
|
4945
4935
|
target_client_id: joi105.string().uuid().required()
|
|
4946
4936
|
};
|
|
4947
4937
|
var resolveDuplicatedGroupBody = joi105.object().keys(resolveDuplicatedGroupBodyKeys).messages(messages);
|
|
4938
|
+
var executeMergeDuplicatedGroupBodyKeys = {
|
|
4939
|
+
target_client_id: joi105.string().uuid().required(),
|
|
4940
|
+
source_client_ids: joi105.array().items(joi105.string().uuid()).min(1).required()
|
|
4941
|
+
};
|
|
4942
|
+
var executeMergeDuplicatedGroupBody = joi105.object().keys(executeMergeDuplicatedGroupBodyKeys).messages(messages);
|
|
4948
4943
|
|
|
4949
4944
|
// src/modules/user/providers/interface.ts
|
|
4950
4945
|
var interface_exports58 = {};
|
package/dist/index.js
CHANGED
|
@@ -1295,8 +1295,6 @@ var EuPagoStatusEnum = {
|
|
|
1295
1295
|
// src/modules/integration/eupago/route.schema.ts
|
|
1296
1296
|
var route_schema_exports25 = {};
|
|
1297
1297
|
__export(route_schema_exports25, {
|
|
1298
|
-
chooseMethodBody: () => chooseMethodBody,
|
|
1299
|
-
chooseMethodBodyKeys: () => chooseMethodBodyKeys,
|
|
1300
1298
|
generateBody: () => generateBody,
|
|
1301
1299
|
generateBodyKeys: () => generateBodyKeys
|
|
1302
1300
|
});
|
|
@@ -1306,15 +1304,6 @@ var generateBodyKeys = {
|
|
|
1306
1304
|
amount: joi25.number().positive().required()
|
|
1307
1305
|
};
|
|
1308
1306
|
var generateBody = joi25.object().keys(generateBodyKeys).messages(messages);
|
|
1309
|
-
var chooseMethodBodyKeys = {
|
|
1310
|
-
method: joi25.string().valid("multibanco", "mbway").required(),
|
|
1311
|
-
client: joi25.object({
|
|
1312
|
-
name: joi25.string().required(),
|
|
1313
|
-
email: joi25.string().email({ tlds: false }),
|
|
1314
|
-
phone: joi25.string()
|
|
1315
|
-
}).required()
|
|
1316
|
-
};
|
|
1317
|
-
var chooseMethodBody = joi25.object().keys(chooseMethodBodyKeys).messages(messages);
|
|
1318
1307
|
|
|
1319
1308
|
// src/modules/integration/googleFilePermission/interfaces.ts
|
|
1320
1309
|
var interfaces_exports21 = {};
|
|
@@ -4857,6 +4846,7 @@ __export(route_schema_exports104, {
|
|
|
4857
4846
|
FindClientOrProviderQueryValidate: () => FindClientOrProviderQueryValidate,
|
|
4858
4847
|
createBody: () => createBody54,
|
|
4859
4848
|
deleteQueryValidate: () => deleteQueryValidate,
|
|
4849
|
+
executeMergeDuplicatedGroupBody: () => executeMergeDuplicatedGroupBody,
|
|
4860
4850
|
findForGmailParamsValidate: () => findForGmailParamsValidate,
|
|
4861
4851
|
findQuery: () => findQuery24,
|
|
4862
4852
|
getBasicSearchParamsValidate: () => getBasicSearchParamsValidate,
|
|
@@ -4945,6 +4935,11 @@ var resolveDuplicatedGroupBodyKeys = {
|
|
|
4945
4935
|
target_client_id: joi105.string().uuid().required()
|
|
4946
4936
|
};
|
|
4947
4937
|
var resolveDuplicatedGroupBody = joi105.object().keys(resolveDuplicatedGroupBodyKeys).messages(messages);
|
|
4938
|
+
var executeMergeDuplicatedGroupBodyKeys = {
|
|
4939
|
+
target_client_id: joi105.string().uuid().required(),
|
|
4940
|
+
source_client_ids: joi105.array().items(joi105.string().uuid()).min(1).required()
|
|
4941
|
+
};
|
|
4942
|
+
var executeMergeDuplicatedGroupBody = joi105.object().keys(executeMergeDuplicatedGroupBodyKeys).messages(messages);
|
|
4948
4943
|
|
|
4949
4944
|
// src/modules/user/providers/interface.ts
|
|
4950
4945
|
var interface_exports58 = {};
|
|
@@ -21,15 +21,6 @@ export interface ICreatePendingPaymentRequest {
|
|
|
21
21
|
from_document_header_id: string;
|
|
22
22
|
amount: number;
|
|
23
23
|
}
|
|
24
|
-
export interface IChooseMethodRequest {
|
|
25
|
-
id: string;
|
|
26
|
-
method: Extract<EuPagoMethod, "multibanco" | "mbway">;
|
|
27
|
-
client: {
|
|
28
|
-
name: string;
|
|
29
|
-
email?: string;
|
|
30
|
-
phone?: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
24
|
export interface IWebhookTransaction {
|
|
34
25
|
entity?: number;
|
|
35
26
|
reference?: number;
|
|
@@ -57,11 +48,20 @@ export interface IPaymentChoiceMessage {
|
|
|
57
48
|
record_id: string;
|
|
58
49
|
status: EuPagoStatus;
|
|
59
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
60
|
reference?: string;
|
|
61
|
-
|
|
61
|
+
transaction_id?: string;
|
|
62
|
+
confirmed_at: string;
|
|
62
63
|
}
|
|
63
64
|
export interface IApi {
|
|
64
65
|
generate(data: ICreatePendingPaymentRequest): Promise<Entity>;
|
|
65
|
-
chooseMethod(data: IChooseMethodRequest): Promise<Entity>;
|
|
66
66
|
find(): Promise<IFindResponse[]>;
|
|
67
67
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import joi from "joi";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
import {
|
|
3
|
+
import { ICreatePendingPaymentRequest } from "./interfaces";
|
|
4
4
|
export declare const generateBodyKeys: IShared.IRouteRequest<ICreatePendingPaymentRequest>;
|
|
5
5
|
export declare const generateBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const chooseMethodBodyKeys: IShared.IRouteRequest<Omit<IChooseMethodRequest, "id">>;
|
|
7
|
-
export declare const chooseMethodBody: joi.ObjectSchema<any>;
|
|
@@ -135,6 +135,15 @@ export interface IDuplicatedGroupDocument {
|
|
|
135
135
|
created_by: string;
|
|
136
136
|
seller: string;
|
|
137
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
|
+
}
|
|
138
147
|
export interface IDuplicatedGroupResponse {
|
|
139
148
|
id: string;
|
|
140
149
|
status: "pending" | "resolved" | "merged";
|
|
@@ -142,6 +151,7 @@ export interface IDuplicatedGroupResponse {
|
|
|
142
151
|
target_client_id: string | null;
|
|
143
152
|
data?: {
|
|
144
153
|
documents?: Record<string, IDuplicatedGroupDocument[]>;
|
|
154
|
+
personas?: Record<string, IDuplicatedGroupPersona[]>;
|
|
145
155
|
merge_error?: {
|
|
146
156
|
client_id: string;
|
|
147
157
|
message: string;
|
|
@@ -152,6 +162,10 @@ export interface IDuplicatedGroupResponse {
|
|
|
152
162
|
export interface IResolveDuplicatedGroupRequest {
|
|
153
163
|
target_client_id: string;
|
|
154
164
|
}
|
|
165
|
+
export interface IExecuteMergeDuplicatedGroupRequest {
|
|
166
|
+
target_client_id: string;
|
|
167
|
+
source_client_ids: string[];
|
|
168
|
+
}
|
|
155
169
|
export interface IExecuteMergeDuplicatedGroupResponse {
|
|
156
170
|
group_id: string;
|
|
157
171
|
status: "merged" | "resolved";
|
|
@@ -174,6 +188,6 @@ export interface IRepository {
|
|
|
174
188
|
findDuplicateds(): Promise<IDuplicatedGroupResponse[]>;
|
|
175
189
|
refreshDuplicateds(): Promise<void>;
|
|
176
190
|
resolveDuplicateds(selector: IShared.IFindByIdRequest, data: IResolveDuplicatedGroupRequest): Promise<void>;
|
|
177
|
-
executeMergeDuplicateds(selector: IShared.IFindByIdRequest): Promise<IExecuteMergeDuplicatedGroupResponse>;
|
|
191
|
+
executeMergeDuplicateds(selector: IShared.IFindByIdRequest, data: IExecuteMergeDuplicatedGroupRequest): Promise<IExecuteMergeDuplicatedGroupResponse>;
|
|
178
192
|
}
|
|
179
193
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -9,3 +9,4 @@ export declare const FindClientOrProviderQueryValidate: joi.ObjectSchema<any>;
|
|
|
9
9
|
export declare const findForGmailParamsValidate: joi.ObjectSchema<any>;
|
|
10
10
|
export declare const publicUpdateBody: joi.ObjectSchema<any>;
|
|
11
11
|
export declare const resolveDuplicatedGroupBody: joi.ObjectSchema<any>;
|
|
12
|
+
export declare const executeMergeDuplicatedGroupBody: joi.ObjectSchema<any>;
|
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.47.
|
|
4
|
+
"version": "0.47.27",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|