auth-mn 0.1.8 → 0.1.9
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/auth.js +2 -2
- package/dist/find.js +5 -5
- package/dist/notification.js +5 -5
- package/dist/socket.js +3 -3
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -5,7 +5,7 @@ const _1 = require("./");
|
|
|
5
5
|
const axios_master_1 = require("axios-master");
|
|
6
6
|
const TOKEN = async (auth) => {
|
|
7
7
|
try {
|
|
8
|
-
const response = await (0, axios_master_1.
|
|
8
|
+
const response = await (0, axios_master_1.axiosMasterLogger)({
|
|
9
9
|
method: "POST",
|
|
10
10
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/client/login`,
|
|
11
11
|
headers: {
|
|
@@ -49,7 +49,7 @@ const TOKEN = async (auth) => {
|
|
|
49
49
|
};
|
|
50
50
|
const getToken = async () => {
|
|
51
51
|
try {
|
|
52
|
-
const response = await (0, axios_master_1.
|
|
52
|
+
const response = await (0, axios_master_1.axiosMasterLogger)({
|
|
53
53
|
method: "POST",
|
|
54
54
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/client/login`,
|
|
55
55
|
headers: {
|
package/dist/find.js
CHANGED
|
@@ -7,7 +7,7 @@ const axios_master_1 = require("axios-master");
|
|
|
7
7
|
const USER = async (body) => {
|
|
8
8
|
var _a;
|
|
9
9
|
try {
|
|
10
|
-
const result = await (0, axios_master_1.
|
|
10
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
11
11
|
method: "POST",
|
|
12
12
|
maxBodyLength: Infinity,
|
|
13
13
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/support/find/user`,
|
|
@@ -56,7 +56,7 @@ exports.USER = USER;
|
|
|
56
56
|
const MERCHANT = async (body) => {
|
|
57
57
|
var _a;
|
|
58
58
|
try {
|
|
59
|
-
const result = await (0, axios_master_1.
|
|
59
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
60
60
|
method: "POST",
|
|
61
61
|
maxBodyLength: Infinity,
|
|
62
62
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/support/find/merchant`,
|
|
@@ -105,7 +105,7 @@ exports.MERCHANT = MERCHANT;
|
|
|
105
105
|
const ADMIN = async (body) => {
|
|
106
106
|
var _a;
|
|
107
107
|
try {
|
|
108
|
-
const result = await (0, axios_master_1.
|
|
108
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
109
109
|
method: "POST",
|
|
110
110
|
maxBodyLength: Infinity,
|
|
111
111
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/support/find/admin`,
|
|
@@ -154,7 +154,7 @@ exports.ADMIN = ADMIN;
|
|
|
154
154
|
const CLIENT = async (body) => {
|
|
155
155
|
var _a;
|
|
156
156
|
try {
|
|
157
|
-
const result = await (0, axios_master_1.
|
|
157
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
158
158
|
method: "POST",
|
|
159
159
|
maxBodyLength: Infinity,
|
|
160
160
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/support/find/client`,
|
|
@@ -203,7 +203,7 @@ exports.CLIENT = CLIENT;
|
|
|
203
203
|
const CRM = async (body) => {
|
|
204
204
|
var _a;
|
|
205
205
|
try {
|
|
206
|
-
const result = await (0, axios_master_1.
|
|
206
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
207
207
|
method: "POST",
|
|
208
208
|
maxBodyLength: Infinity,
|
|
209
209
|
url: `${_1.config.hosts.MAIN}/main/v1/auth/support/find/crm`,
|
package/dist/notification.js
CHANGED
|
@@ -7,7 +7,7 @@ const axios_master_1 = require("axios-master");
|
|
|
7
7
|
const SinglePushNoti = async (body) => {
|
|
8
8
|
var _a;
|
|
9
9
|
try {
|
|
10
|
-
const result = await (0, axios_master_1.
|
|
10
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
11
11
|
method: "POST",
|
|
12
12
|
maxBodyLength: Infinity,
|
|
13
13
|
url: `${_1.config.hosts.MAIN}/main/v1/notification/single-push`,
|
|
@@ -56,7 +56,7 @@ exports.SinglePushNoti = SinglePushNoti;
|
|
|
56
56
|
const SMS = async (body) => {
|
|
57
57
|
var _a;
|
|
58
58
|
try {
|
|
59
|
-
const result = await (0, axios_master_1.
|
|
59
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
60
60
|
method: "POST",
|
|
61
61
|
maxBodyLength: Infinity,
|
|
62
62
|
url: `${_1.config.hosts.MAIN}/main/v1/notification/sms`,
|
|
@@ -105,7 +105,7 @@ exports.SMS = SMS;
|
|
|
105
105
|
const MAIL = async (body) => {
|
|
106
106
|
var _a;
|
|
107
107
|
try {
|
|
108
|
-
const result = await (0, axios_master_1.
|
|
108
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
109
109
|
method: "POST",
|
|
110
110
|
maxBodyLength: Infinity,
|
|
111
111
|
url: `${_1.config.hosts.MAIN}/main/v1/notification/mail`,
|
|
@@ -154,7 +154,7 @@ exports.MAIL = MAIL;
|
|
|
154
154
|
const _3RD_TOKI_NOTI = async (body) => {
|
|
155
155
|
var _a;
|
|
156
156
|
try {
|
|
157
|
-
const result = await (0, axios_master_1.
|
|
157
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
158
158
|
method: "POST",
|
|
159
159
|
maxBodyLength: Infinity,
|
|
160
160
|
url: `${_1.config.hosts.MAIN}/main/v1/notification/3rd/toki-app`,
|
|
@@ -203,7 +203,7 @@ exports._3RD_TOKI_NOTI = _3RD_TOKI_NOTI;
|
|
|
203
203
|
const _3RD_TOKI_HIPAY = async (body) => {
|
|
204
204
|
var _a;
|
|
205
205
|
try {
|
|
206
|
-
const result = await (0, axios_master_1.
|
|
206
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
207
207
|
method: "POST",
|
|
208
208
|
maxBodyLength: Infinity,
|
|
209
209
|
url: `${_1.config.hosts.MAIN}/main/v1/notification/3rd/hipay-app`,
|
package/dist/socket.js
CHANGED
|
@@ -7,7 +7,7 @@ const axios_master_1 = require("axios-master");
|
|
|
7
7
|
const ShowToast = async (body) => {
|
|
8
8
|
var _a;
|
|
9
9
|
try {
|
|
10
|
-
const result = await (0, axios_master_1.
|
|
10
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
11
11
|
method: "POST",
|
|
12
12
|
maxBodyLength: Infinity,
|
|
13
13
|
url: `${_1.config.hosts.MAIN}/main/v1/socket/notification/toast`,
|
|
@@ -56,7 +56,7 @@ exports.ShowToast = ShowToast;
|
|
|
56
56
|
const ShowStatus = async (body) => {
|
|
57
57
|
var _a;
|
|
58
58
|
try {
|
|
59
|
-
const result = await (0, axios_master_1.
|
|
59
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
60
60
|
method: "POST",
|
|
61
61
|
url: `${_1.config.hosts.MAIN}/main/v1/socket/notification/status`,
|
|
62
62
|
headers: {
|
|
@@ -104,7 +104,7 @@ exports.ShowStatus = ShowStatus;
|
|
|
104
104
|
const ShowOrderStatus = async (body) => {
|
|
105
105
|
var _a;
|
|
106
106
|
try {
|
|
107
|
-
const result = await (0, axios_master_1.
|
|
107
|
+
const result = await (0, axios_master_1.axiosMasterLogger)({
|
|
108
108
|
method: "POST",
|
|
109
109
|
url: `${_1.config.hosts.MAIN}/main/v1/socket/notification/order/status`,
|
|
110
110
|
headers: {
|