@nimee/api-clients 1.1.42 → 1.1.44

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.
@@ -16,7 +16,7 @@ exports.AccountClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const error_handler_1 = require("@nimee/error-handler");
18
18
  const port = process.env.USER_PORT;
19
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
19
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
20
20
  const accountUrl = `${basePath}/user/account`;
21
21
  class AccountClient {
22
22
  updateAccountByCreateSellerWebhook(params) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EndUserClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.USER_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
19
19
  const endUserUrl = `${basePath}/user/enduser`;
20
20
  class EndUserClient {
21
21
  createEndUserIfNeededAndUpdateUserEvent(params) {
@@ -15,13 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EndUserSeasonTicketClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.PAYMENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://payment";
19
19
  const endUserSeasonTicketUrl = `${basePath}/payment/endUserSeasonTicket`;
20
20
  class EndUserSeasonTicketClient {
21
21
  getEndUserSeasonTicketBySellerAndSeasonTicket(params) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  const { marketplaceId, sellerId, seasonTicketId, jwt } = params;
24
- const response = yield axios_1.default.get(`${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicket=${seasonTicketId}`, {
24
+ const response = yield axios_1.default.get(`${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicketId=${seasonTicketId}`, {
25
25
  headers: { jwt },
26
26
  });
27
27
  return response === null || response === void 0 ? void 0 : response.data;
@@ -1 +1 @@
1
- {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/endUserSeasonTicket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;AACjG,MAAM,sBAAsB,GAAG,GAAG,QAAQ,8BAA8B,CAAC;AAEzE,MAAa,yBAAyB;IAC9B,6CAA6C,CAAC,MAKnD;;YACC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAChE,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,GAAG,sBAAsB,kBAAkB,aAAa,IAAI,QAAQ,iBAAiB,cAAc,EAAE,EACrG;gBACE,OAAO,EAAE,EAAE,GAAG,EAAE;aACjB,CACF,CAAC;YACF,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AAhBD,8DAgBC"}
1
+ {"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/endUserSeasonTicket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AACtC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;AACjG,MAAM,sBAAsB,GAAG,GAAG,QAAQ,8BAA8B,CAAC;AAEzE,MAAa,yBAAyB;IAC9B,6CAA6C,CAAC,MAKnD;;YACC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAChE,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,GAAG,sBAAsB,kBAAkB,aAAa,IAAI,QAAQ,mBAAmB,cAAc,EAAE,EACvG;gBACE,OAAO,EAAE,EAAE,GAAG,EAAE;aACjB,CACF,CAAC;YACF,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AAhBD,8DAgBC"}
package/dist/src/event.js CHANGED
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EventClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.EVENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://event";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://event";
19
19
  const eventUrl = `${basePath}/event`;
20
20
  class EventClient {
21
21
  getEventById(params) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EventOrderClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.USER_EVENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user-event";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user-event";
19
19
  const userEventOrderUrl = `${basePath}/user-event/event-order`;
20
20
  class EventOrderClient {
21
21
  updateWithId(params) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MarketplaceClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.USER_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
19
19
  const userUrl = `${basePath}/user`;
20
20
  class MarketplaceClient {
21
21
  getById(id) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.PaymentClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.PAYMENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://payment";
19
19
  const paymentUrl = `${basePath}/payment`;
20
20
  class PaymentClient {
21
21
  getCouponById(params) {
@@ -16,7 +16,7 @@ exports.SegmentClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const error_handler_1 = require("@nimee/error-handler");
18
18
  const port = process.env.USER_PORT;
19
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
19
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
20
20
  const segmentUrl = `${basePath}/user/segment`;
21
21
  class SegmentClient {
22
22
  addUsersToSegment(params) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.TicketClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.EVENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://event";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://event";
19
19
  const ticketUrl = `${basePath}/event/ticket`;
20
20
  class TicketClient {
21
21
  getTicketById(params) {
package/dist/src/user.js CHANGED
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.UserClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.USER_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
19
19
  const userUrl = `${basePath}/user`;
20
20
  class UserClient {
21
21
  verifyToken(token) {
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.UserEventClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const port = process.env.USER_EVENT_PORT;
18
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user-event";
18
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user-event";
19
19
  const userEventUrl = `${basePath}/user-event`;
20
20
  class UserEventClient {
21
21
  getUserEventByJWT(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/api-clients",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "communication http for each ms",
5
5
  "main": "dist/src/index.js",
6
6
  "author": "dan goldberg",
package/src/account.ts CHANGED
@@ -2,7 +2,7 @@ import axios from "axios";
2
2
  import { CustomError } from "@nimee/error-handler";
3
3
  import { IAccountModel, IPaymeUpdateOrCreateSellerWebhookPayload } from "@nimee/shared-types";
4
4
  const port = process.env.USER_PORT;
5
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
5
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
6
6
  const accountUrl = `${basePath}/user/account`;
7
7
 
8
8
  export class AccountClient {
package/src/endUser.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IAccountModel, IEndUserModel, IUserEventModel } from "@nimee/shared-types";
2
2
  import axios from "axios";
3
3
  const port = process.env.USER_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
5
5
  const endUserUrl = `${basePath}/user/enduser`;
6
6
 
7
7
  export class EndUserClient {
@@ -1,7 +1,7 @@
1
1
  import axios from "axios";
2
2
  import { IEventModel, ISellerPartnerData } from "@nimee/shared-types";
3
3
  const port = process.env.PAYMENT_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://payment";
5
5
  const endUserSeasonTicketUrl = `${basePath}/payment/endUserSeasonTicket`;
6
6
 
7
7
  export class EndUserSeasonTicketClient {
@@ -13,7 +13,7 @@ export class EndUserSeasonTicketClient {
13
13
  }) {
14
14
  const { marketplaceId, sellerId, seasonTicketId, jwt } = params;
15
15
  const response = await axios.get(
16
- `${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicket=${seasonTicketId}`,
16
+ `${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicketId=${seasonTicketId}`,
17
17
  {
18
18
  headers: { jwt },
19
19
  }
package/src/event.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  const port = process.env.EVENT_PORT;
3
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://event";
3
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://event";
4
4
  const eventUrl = `${basePath}/event`;
5
5
 
6
6
  export class EventClient {
package/src/eventOrder.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  const port = process.env.USER_EVENT_PORT;
3
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user-event";
3
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user-event";
4
4
  const userEventOrderUrl = `${basePath}/user-event/event-order`;
5
5
  import { IChargeModel, IEventOrderModel } from "@nimee/shared-types";
6
6
  export class EventOrderClient {
@@ -1,7 +1,7 @@
1
1
  import { IMarketPlace } from "@nimee/shared-types";
2
2
  import axios from "axios";
3
3
  const port = process.env.USER_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
5
5
  const userUrl = `${basePath}/user`;
6
6
 
7
7
  export class MarketplaceClient {
package/src/payment.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import axios from "axios";
2
2
  import { IEventModel, ISellerPartnerData, ITicketModel } from "@nimee/shared-types";
3
3
  const port = process.env.PAYMENT_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://payment";
5
5
  const paymentUrl = `${basePath}/payment`;
6
6
 
7
7
  export class PaymentClient {
package/src/segment.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import axios from "axios";
2
2
  import { CustomError } from "@nimee/error-handler";
3
3
  const port = process.env.USER_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
5
5
  const segmentUrl = `${basePath}/user/segment`;
6
6
 
7
7
  export class SegmentClient {
package/src/ticket.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ITicketInfoModel, ITicketModel, IUserEventModel } from "@nimee/shared-types";
2
2
  import axios from "axios";
3
3
  const port = process.env.EVENT_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://event";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://event";
5
5
  const ticketUrl = `${basePath}/event/ticket`;
6
6
 
7
7
  export class TicketClient {
package/src/user.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  const port = process.env.USER_PORT;
3
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user";
3
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user";
4
4
  const userUrl = `${basePath}/user`;
5
5
 
6
6
  export class UserClient {
package/src/userEvent.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { IUserEventModel, ITicketInfoModel } from "@nimee/shared-types";
2
2
  import axios from "axios";
3
3
  const port = process.env.USER_EVENT_PORT;
4
- const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://user-event";
4
+ const basePath = process.env.IS_LOCAL === "true" ? `http://127.0.0.1:${port}` : "http://user-event";
5
5
  const userEventUrl = `${basePath}/user-event`;
6
6
 
7
7
  export class UserEventClient {