@nimee/api-clients 1.1.43 → 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.
- package/dist/src/account.js +1 -1
- package/dist/src/endUser.js +1 -1
- package/dist/src/endUserSeasonTicket.js +1 -1
- package/dist/src/endUserSeasonTickets.d.ts +8 -0
- package/dist/src/endUserSeasonTickets.js +32 -0
- package/dist/src/endUserSeasonTickets.js.map +1 -0
- package/dist/src/endUsereason-tickets.d.ts +8 -0
- package/dist/src/endUsereason-tickets.js +32 -0
- package/dist/src/endUsereason-tickets.js.map +1 -0
- package/dist/src/event.js +1 -1
- package/dist/src/eventOrder.js +1 -1
- package/dist/src/marketplace.js +1 -1
- package/dist/src/payment.js +1 -1
- package/dist/src/season-tickets.d.ts +8 -0
- package/dist/src/season-tickets.js +32 -0
- package/dist/src/season-tickets.js.map +1 -0
- package/dist/src/segment.js +1 -1
- package/dist/src/ticket.js +1 -1
- package/dist/src/user.js +1 -1
- package/dist/src/userEvent.js +1 -1
- package/package.json +1 -1
- package/src/account.ts +1 -1
- package/src/endUser.ts +1 -1
- package/src/endUserSeasonTicket.ts +1 -1
- package/src/event.ts +1 -1
- package/src/eventOrder.ts +1 -1
- package/src/marketplace.ts +1 -1
- package/src/payment.ts +1 -1
- package/src/segment.ts +1 -1
- package/src/ticket.ts +1 -1
- package/src/user.ts +1 -1
- package/src/userEvent.ts +1 -1
package/dist/src/account.js
CHANGED
|
@@ -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://
|
|
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) {
|
package/dist/src/endUser.js
CHANGED
|
@@ -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://
|
|
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,7 +15,7 @@ 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://
|
|
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) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SeasonTicketClient = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const port = process.env.PAYMENT_PORT;
|
|
18
|
+
const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
|
|
19
|
+
const endUserSeasonTicketUrl = `${basePath}/payment/endUserSeasonTicket`;
|
|
20
|
+
class SeasonTicketClient {
|
|
21
|
+
getEndUserSeasonTicketBySellerAndSeasonTicket(params) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const { marketplaceId, sellerId, seasonTicketId, jwt } = params;
|
|
24
|
+
const response = yield axios_1.default.get(`${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicket=${seasonTicketId}`, {
|
|
25
|
+
headers: { jwt },
|
|
26
|
+
});
|
|
27
|
+
return response === null || response === void 0 ? void 0 : response.data;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SeasonTicketClient = SeasonTicketClient;
|
|
32
|
+
//# sourceMappingURL=endUserSeasonTickets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUserSeasonTickets.js","sourceRoot":"","sources":["../../src/endUserSeasonTickets.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,kBAAkB;IACvB,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,gDAgBC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SeasonTicketClient = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const port = process.env.PAYMENT_PORT;
|
|
18
|
+
const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
|
|
19
|
+
const endUserSeasonTicketUrl = `${basePath}/payment/endUserSeasonTicket`;
|
|
20
|
+
class SeasonTicketClient {
|
|
21
|
+
getEndUserSeasonTicketBySellerAndSeasonTicket(params) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const { marketplaceId, sellerId, seasonTicketId, jwt } = params;
|
|
24
|
+
const response = yield axios_1.default.get(`${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicket=${seasonTicketId}`, {
|
|
25
|
+
headers: { jwt },
|
|
26
|
+
});
|
|
27
|
+
return response === null || response === void 0 ? void 0 : response.data;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SeasonTicketClient = SeasonTicketClient;
|
|
32
|
+
//# sourceMappingURL=endUsereason-tickets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endUsereason-tickets.js","sourceRoot":"","sources":["../../src/endUsereason-tickets.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,kBAAkB;IACvB,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,gDAgBC"}
|
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://
|
|
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) {
|
package/dist/src/eventOrder.js
CHANGED
|
@@ -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://
|
|
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) {
|
package/dist/src/marketplace.js
CHANGED
|
@@ -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://
|
|
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) {
|
package/dist/src/payment.js
CHANGED
|
@@ -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://
|
|
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) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SeasonTicketClient = void 0;
|
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
|
17
|
+
const port = process.env.PAYMENT_PORT;
|
|
18
|
+
const basePath = process.env.IS_LOCAL === "true" ? `http://localhost:${port}` : "http://payment";
|
|
19
|
+
const endUserSeasonTicketUrl = `${basePath}/payment/endUserSeasonTicket`;
|
|
20
|
+
class SeasonTicketClient {
|
|
21
|
+
getEndUserSeasonTicketBySellerAndSeasonTicket(params) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const { marketplaceId, sellerId, seasonTicketId, jwt } = params;
|
|
24
|
+
const response = yield axios_1.default.get(`${endUserSeasonTicketUrl}/getBySellerId/${marketplaceId}/${sellerId}?seasonTicket=${seasonTicketId}`, {
|
|
25
|
+
headers: { jwt },
|
|
26
|
+
});
|
|
27
|
+
return response === null || response === void 0 ? void 0 : response.data;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SeasonTicketClient = SeasonTicketClient;
|
|
32
|
+
//# sourceMappingURL=season-tickets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"season-tickets.js","sourceRoot":"","sources":["../../src/season-tickets.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,kBAAkB;IACvB,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,gDAgBC"}
|
package/dist/src/segment.js
CHANGED
|
@@ -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://
|
|
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) {
|
package/dist/src/ticket.js
CHANGED
|
@@ -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://
|
|
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://
|
|
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) {
|
package/dist/src/userEvent.js
CHANGED
|
@@ -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://
|
|
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
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://
|
|
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://
|
|
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://
|
|
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 {
|
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://
|
|
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://
|
|
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 {
|
package/src/marketplace.ts
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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://
|
|
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 {
|