@fiado/api-invoker 1.0.70 → 1.0.72

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.
@@ -34,7 +34,7 @@ let AddressApi = class AddressApi {
34
34
  async getAddressLocationShipping(directoryId) {
35
35
  this.validateBaseUrl();
36
36
  const url = `${this.baseUrl}shipping`;
37
- return await this.httpRequest.post(url, directoryId);
37
+ return await this.httpRequest.post(url, { directoryId });
38
38
  }
39
39
  validateBaseUrl() {
40
40
  if (!this.baseUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -30,7 +30,7 @@ export class AddressApi implements IAddressApi {
30
30
  async getAddressLocationShipping(directoryId: string): Promise<AddressShippingCardResponse> {
31
31
  this.validateBaseUrl();
32
32
  const url = `${this.baseUrl}shipping`;
33
- return await this.httpRequest.post<AddressShippingCardResponse>(url, directoryId);
33
+ return await this.httpRequest.post<AddressShippingCardResponse>(url, { directoryId });
34
34
  }
35
35
 
36
36
  private validateBaseUrl() {
@@ -1,7 +1,7 @@
1
- import { INotificationMessagesPublisher } from "./interfaces/INotificationMessagesPublisher";
2
- import { NotificationQueueMessageRequest } from "@fiado/type-kit/bin/notificationMessages";
3
- import { SendMessageCommand, SendMessageRequest, SQSClient } from "@aws-sdk/client-sqs";
4
- import { injectable } from "inversify";
1
+ import {INotificationMessagesPublisher} from "./interfaces/INotificationMessagesPublisher";
2
+ import {NotificationQueueMessageRequest} from "@fiado/type-kit/bin/notificationMessages";
3
+ import {SendMessageCommand, SendMessageRequest, SQSClient} from "@aws-sdk/client-sqs";
4
+ import {injectable} from "inversify";
5
5
 
6
6
  @injectable()
7
7
  export default class NotificationMessagePublisher implements INotificationMessagesPublisher {
@@ -9,7 +9,6 @@ export default class NotificationMessagePublisher implements INotificationMessag
9
9
 
10
10
  async publish(message: NotificationQueueMessageRequest): Promise<void> {
11
11
  try {
12
-
13
12
  const client: SQSClient = new SQSClient();
14
13
  const sendMessageRequest: SendMessageRequest = {
15
14
  QueueUrl: this.NOTIFICATION_MESSAGES_QUEUE,