@fiado/api-invoker 4.25.0 → 4.26.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { UpdateR27StatusRequest, UpdateR27StatusResponse } from "@fiado/type-kit/bin/transaction/index.js";
|
|
2
|
+
import { UpdateR27StatusRequest, UpdateR27StatusResponse, ReopenDisputeRequest, CreateDisputePrivateRequest } from "@fiado/type-kit/bin/transaction/index.js";
|
|
3
3
|
import { IDisputesApi } from "./interfaces/IDisputesApi.js";
|
|
4
4
|
export declare class DisputesApi implements IDisputesApi {
|
|
5
5
|
private httpRequest;
|
|
@@ -26,4 +26,9 @@ export declare class DisputesApi implements IDisputesApi {
|
|
|
26
26
|
disputeId: string;
|
|
27
27
|
request: UpdateR27StatusRequest;
|
|
28
28
|
}): Promise<UpdateR27StatusResponse>;
|
|
29
|
+
reopen(params: {
|
|
30
|
+
disputeId: string;
|
|
31
|
+
request: ReopenDisputeRequest;
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
createDisputePrivate(request: CreateDisputePrivateRequest): Promise<any>;
|
|
29
34
|
}
|
|
@@ -51,6 +51,14 @@ let DisputesApi = class DisputesApi {
|
|
|
51
51
|
const url = `${this.baseUrl}disputes/${params.disputeId}/r27-status`;
|
|
52
52
|
return await this.httpRequest.post(url, params.request);
|
|
53
53
|
}
|
|
54
|
+
async reopen(params) {
|
|
55
|
+
const url = `${this.baseUrl}disputes/${params.disputeId}/reopen`;
|
|
56
|
+
return await this.httpRequest.post(url, params.request);
|
|
57
|
+
}
|
|
58
|
+
async createDisputePrivate(request) {
|
|
59
|
+
const url = `${this.baseUrl}disputes`;
|
|
60
|
+
return await this.httpRequest.post(url, request);
|
|
61
|
+
}
|
|
54
62
|
};
|
|
55
63
|
DisputesApi = __decorate([
|
|
56
64
|
injectable(),
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
import { UpdateR27StatusRequest, UpdateR27StatusResponse } from "@fiado/type-kit/bin/transaction/index.js";
|
|
1
|
+
import { UpdateR27StatusRequest, UpdateR27StatusResponse, ReopenDisputeRequest, CreateDisputePrivateRequest } from "@fiado/type-kit/bin/transaction/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* Interfaz que define las operaciones que se pueden realizar en el servicio de disputas.
|
|
4
4
|
*/
|
|
5
5
|
export interface IDisputesApi {
|
|
6
|
+
/**
|
|
7
|
+
* Reapertura de reclamación (BO-R27 Fase A). POST disputes/{id}/reopen.
|
|
8
|
+
* Transición 102 -> 103. La dispara la app móvil del cliente.
|
|
9
|
+
*/
|
|
10
|
+
reopen(params: {
|
|
11
|
+
disputeId: string;
|
|
12
|
+
request: ReopenDisputeRequest;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Alta multi-canal de reclamación por el OC (BO-R27 Fase A). POST disputes (privado).
|
|
16
|
+
* Para reclamaciones recibidas por teléfono/correo/otros que hoy no generan folio.
|
|
17
|
+
*/
|
|
18
|
+
createDisputePrivate(request: CreateDisputePrivateRequest): Promise<any>;
|
|
6
19
|
/**
|
|
7
20
|
* Cierra un folio R27 cuando el Titular UNE firma el dictamen (BO-R27).
|
|
8
21
|
* POST disputes/{id}/r27-status (privado, VPC/VPN). Transiciona 101->102 / 103->104
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.26.0",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@fiado/gateway-adapter": "^2.0.2",
|
|
35
35
|
"@fiado/http-client": "^2.0.1",
|
|
36
36
|
"@fiado/logger": "^1.1.3",
|
|
37
|
-
"@fiado/type-kit": "^3.
|
|
37
|
+
"@fiado/type-kit": "^3.87.0",
|
|
38
38
|
"dotenv": "^16.4.7"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -2,7 +2,7 @@ import { inject, injectable } from "inversify";
|
|
|
2
2
|
import { IHttpRequest } from "@fiado/http-client";
|
|
3
3
|
import dotenv from 'dotenv';
|
|
4
4
|
import { PeopleUpdateRequest } from "@fiado/type-kit/bin/identity/index.js";
|
|
5
|
-
import { UpdateR27StatusRequest, UpdateR27StatusResponse } from "@fiado/type-kit/bin/transaction/index.js";
|
|
5
|
+
import { UpdateR27StatusRequest, UpdateR27StatusResponse, ReopenDisputeRequest, CreateDisputePrivateRequest } from "@fiado/type-kit/bin/transaction/index.js";
|
|
6
6
|
import { IDisputesApi } from "./interfaces/IDisputesApi.js";
|
|
7
7
|
dotenv.config();
|
|
8
8
|
|
|
@@ -54,4 +54,14 @@ export class DisputesApi implements IDisputesApi {
|
|
|
54
54
|
return await this.httpRequest.post(url, params.request);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
async reopen(params: { disputeId: string; request: ReopenDisputeRequest }): Promise<any> {
|
|
58
|
+
const url = `${this.baseUrl}disputes/${params.disputeId}/reopen`;
|
|
59
|
+
return await this.httpRequest.post(url, params.request);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async createDisputePrivate(request: CreateDisputePrivateRequest): Promise<any> {
|
|
63
|
+
const url = `${this.baseUrl}disputes`;
|
|
64
|
+
return await this.httpRequest.post(url, request);
|
|
65
|
+
}
|
|
66
|
+
|
|
57
67
|
}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import { UpdateR27StatusRequest, UpdateR27StatusResponse } from "@fiado/type-kit/bin/transaction/index.js";
|
|
1
|
+
import { UpdateR27StatusRequest, UpdateR27StatusResponse, ReopenDisputeRequest, CreateDisputePrivateRequest } from "@fiado/type-kit/bin/transaction/index.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interfaz que define las operaciones que se pueden realizar en el servicio de disputas.
|
|
5
5
|
*/
|
|
6
6
|
export interface IDisputesApi {
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Reapertura de reclamación (BO-R27 Fase A). POST disputes/{id}/reopen.
|
|
10
|
+
* Transición 102 -> 103. La dispara la app móvil del cliente.
|
|
11
|
+
*/
|
|
12
|
+
reopen(params: { disputeId: string, request: ReopenDisputeRequest }): Promise<any>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Alta multi-canal de reclamación por el OC (BO-R27 Fase A). POST disputes (privado).
|
|
16
|
+
* Para reclamaciones recibidas por teléfono/correo/otros que hoy no generan folio.
|
|
17
|
+
*/
|
|
18
|
+
createDisputePrivate(request: CreateDisputePrivateRequest): Promise<any>;
|
|
19
|
+
|
|
8
20
|
/**
|
|
9
21
|
* Cierra un folio R27 cuando el Titular UNE firma el dictamen (BO-R27).
|
|
10
22
|
* POST disputes/{id}/r27-status (privado, VPC/VPN). Transiciona 101->102 / 103->104
|