50p82u21t54k 0.0.10 → 0.0.12
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/50p82u21t54k.es.js +174 -83
- package/dist/50p82u21t54k.umd.js +1 -1
- package/dist/announcement/index.d.ts +1 -0
- package/dist/announcement/index.d.ts.map +1 -1
- package/dist/announcement/method.d.ts +3 -1
- package/dist/announcement/method.d.ts.map +1 -1
- package/dist/announcement/type.d.ts +6 -4
- package/dist/announcement/type.d.ts.map +1 -1
- package/dist/gKey/index.d.ts +1 -0
- package/dist/gKey/index.d.ts.map +1 -1
- package/dist/gKey/method.d.ts +3 -1
- package/dist/gKey/method.d.ts.map +1 -1
- package/dist/gKey/type.d.ts +5 -0
- package/dist/gKey/type.d.ts.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/platforms/index.d.ts.map +1 -0
- package/dist/platforms/method.d.ts +4 -0
- package/dist/platforms/method.d.ts.map +1 -0
- package/dist/platforms/type.d.ts +9 -0
- package/dist/platforms/type.d.ts.map +1 -0
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/products/index.d.ts.map +1 -0
- package/dist/products/method.d.ts +4 -0
- package/dist/{promoCat → products}/method.d.ts.map +1 -1
- package/dist/{product → products}/type.d.ts +1 -1
- package/dist/products/type.d.ts.map +1 -0
- package/dist/promotions/index.d.ts.map +1 -0
- package/dist/promotions/method.d.ts +4 -0
- package/dist/promotions/method.d.ts.map +1 -0
- package/dist/promotions/type.d.ts +18 -0
- package/dist/promotions/type.d.ts.map +1 -0
- package/dist/util/axiosConfig.d.ts +3 -0
- package/dist/util/axiosConfig.d.ts.map +1 -0
- package/dist/util/tool.d.ts +1 -1
- package/dist/util/tool.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/product/index.d.ts.map +0 -1
- package/dist/product/method.d.ts +0 -4
- package/dist/product/method.d.ts.map +0 -1
- package/dist/product/type.d.ts.map +0 -1
- package/dist/promo/index.d.ts.map +0 -1
- package/dist/promo/method.d.ts +0 -4
- package/dist/promo/method.d.ts.map +0 -1
- package/dist/promo/type.d.ts +0 -14
- package/dist/promo/type.d.ts.map +0 -1
- package/dist/promoCat/index.d.ts.map +0 -1
- package/dist/promoCat/method.d.ts +0 -4
- package/dist/promoCat/type.d.ts +0 -10
- package/dist/promoCat/type.d.ts.map +0 -1
- /package/dist/{product → platforms}/index.d.ts +0 -0
- /package/dist/{promo → products}/index.d.ts +0 -0
- /package/dist/{promoCat → promotions}/index.d.ts +0 -0
package/dist/50p82u21t54k.es.js
CHANGED
|
@@ -1,128 +1,219 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import d from "axios";
|
|
2
|
+
import o from "crypto-js";
|
|
3
|
+
const c = d.create({
|
|
4
|
+
baseURL: "/apis",
|
|
5
|
+
timeout: 5e3,
|
|
6
|
+
// Request timeout
|
|
7
|
+
headers: {
|
|
8
|
+
"Content-Type": "application/json"
|
|
9
|
+
}
|
|
10
|
+
// params: { apiKey: 'your-api-key' }, // Default query parameters that will be sent with each request.
|
|
11
|
+
// auth: { username: 'user', password: 'pass' }, // Basic authentication credentials.
|
|
12
|
+
// responseEncoding: 'utf8', // Indicates the encoding to use for the response.
|
|
13
|
+
// responseType: 'json', // Specifies the type of data the server will respond with.
|
|
14
|
+
// xsrfCookieName: 'XSRF-TOKEN', // The name of the cookie to use as a value for the xsrf token.
|
|
15
|
+
// xsrfHeaderName: 'X-XSRF-TOKEN', // The name of the HTTP header that carries the xsrf token value.
|
|
16
|
+
// maxContentLength: 2000, // The maximum size of the HTTP response content in bytes allowed.
|
|
17
|
+
// maxBodyLength: 2000, // The maximum size of the request body in bytes allowed.
|
|
18
|
+
// // Allows changes to the request data before it is sent to the server.
|
|
19
|
+
// transformRequest: [
|
|
20
|
+
// (data, headers) => {
|
|
21
|
+
// console.log(headers)
|
|
22
|
+
// console.log(data)
|
|
23
|
+
// // Modify data and headers here
|
|
24
|
+
// return data
|
|
25
|
+
// },
|
|
26
|
+
// ],
|
|
27
|
+
// // Allows changes to the response data before it is passed to then or catch.
|
|
28
|
+
// transformResponse: [
|
|
29
|
+
// (data) => {
|
|
30
|
+
// // Modify data here
|
|
31
|
+
// return data
|
|
32
|
+
// },
|
|
33
|
+
// ],
|
|
34
|
+
// // Custom function to validate the response status code.
|
|
35
|
+
// validateStatus: (status) => {
|
|
36
|
+
// return status >= 200 && status < 300 // default
|
|
37
|
+
// },
|
|
38
|
+
// withCredentials: true, // Indicates whether or not cross-site Access-Control requests should be made using credentials.
|
|
39
|
+
// // Defines the proxy server settings.
|
|
40
|
+
// proxy: {
|
|
41
|
+
// host: '127.0.0.1',
|
|
42
|
+
// port: 9000,
|
|
43
|
+
// auth: {
|
|
44
|
+
// username: 'proxyuser',
|
|
45
|
+
// password: 'proxypass',
|
|
46
|
+
// },
|
|
47
|
+
// },
|
|
48
|
+
});
|
|
49
|
+
c.interceptors.request.use(
|
|
50
|
+
(e) => e,
|
|
51
|
+
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
52
|
+
);
|
|
53
|
+
c.interceptors.response.use(
|
|
54
|
+
(e) => (console.log("Response:", e), e),
|
|
55
|
+
(e) => {
|
|
56
|
+
const s = {
|
|
57
|
+
status: null,
|
|
58
|
+
message: "An error occurred"
|
|
59
|
+
};
|
|
60
|
+
return e.response ? (s.status = e.response.status, s.message = e.response.data.message || e.response.statusText, console.error("Error response:", JSON.stringify(s)), e.response.status === 401 ? console.error("Unauthorized access - redirecting to login.") : e.response.status === 404 ? console.error("Resource not found.") : e.response.status >= 500 && console.error("Server error. Please try again later.")) : e.request ? console.error("No response received:", e.request) : console.error("Error setting up request:", e.message), Promise.reject(s);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
let i = "";
|
|
64
|
+
function p(e) {
|
|
65
|
+
i = e;
|
|
6
66
|
}
|
|
7
|
-
function
|
|
8
|
-
return
|
|
67
|
+
function m() {
|
|
68
|
+
return i;
|
|
9
69
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
70
|
+
function n() {
|
|
71
|
+
return i === "" ? 0 : 1;
|
|
12
72
|
}
|
|
13
73
|
const f = {
|
|
14
|
-
install(
|
|
15
|
-
|
|
74
|
+
install(e) {
|
|
75
|
+
e.provide("setRepositoryGKey", p);
|
|
16
76
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
77
|
+
}, u = (e) => {
|
|
78
|
+
try {
|
|
79
|
+
const s = JSON.parse(
|
|
80
|
+
o.AES.decrypt(e, m(), {
|
|
81
|
+
format: {
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
83
|
+
stringify: (t) => {
|
|
84
|
+
const r = {
|
|
85
|
+
ct: t.ciphertext.toString(o.enc.Base64)
|
|
86
|
+
};
|
|
87
|
+
return t.iv && (r.iv = t.iv.toString()), t.salt && (r.s = t.salt.toString()), JSON.stringify(r);
|
|
88
|
+
},
|
|
89
|
+
parse: (t) => {
|
|
90
|
+
const r = JSON.parse(t), a = o.lib.CipherParams.create({
|
|
91
|
+
ciphertext: o.enc.Base64.parse(r.ct)
|
|
92
|
+
});
|
|
93
|
+
return r.iv && (a.iv = o.enc.Hex.parse(r.iv)), r.s && (a.salt = o.enc.Hex.parse(r.s)), a;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}).toString(o.enc.Utf8)
|
|
97
|
+
);
|
|
98
|
+
return s !== "" ? JSON.parse(s) : s;
|
|
99
|
+
} catch (s) {
|
|
100
|
+
return console.log(s), "";
|
|
38
101
|
}
|
|
39
102
|
};
|
|
40
|
-
async function
|
|
41
|
-
const
|
|
42
|
-
status:
|
|
103
|
+
async function y() {
|
|
104
|
+
const e = {
|
|
105
|
+
status: 200,
|
|
43
106
|
message: "",
|
|
44
107
|
data: []
|
|
45
108
|
};
|
|
46
109
|
try {
|
|
47
|
-
const
|
|
110
|
+
const s = await c.get("/products", {
|
|
48
111
|
params: {
|
|
49
|
-
render:
|
|
112
|
+
render: n()
|
|
50
113
|
}
|
|
51
114
|
});
|
|
52
|
-
let
|
|
53
|
-
return
|
|
54
|
-
} catch (
|
|
55
|
-
|
|
115
|
+
let t;
|
|
116
|
+
return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
|
|
117
|
+
} catch (s) {
|
|
118
|
+
const t = s;
|
|
119
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
56
120
|
}
|
|
57
121
|
}
|
|
58
|
-
async function
|
|
122
|
+
async function _() {
|
|
123
|
+
const e = {
|
|
124
|
+
status: 200,
|
|
125
|
+
message: "",
|
|
126
|
+
data: []
|
|
127
|
+
};
|
|
59
128
|
try {
|
|
60
|
-
const
|
|
129
|
+
const s = await c.get("/platforms", {
|
|
61
130
|
params: {
|
|
62
|
-
render:
|
|
131
|
+
render: n()
|
|
63
132
|
}
|
|
64
133
|
});
|
|
65
|
-
let
|
|
66
|
-
return
|
|
67
|
-
} catch (
|
|
68
|
-
|
|
134
|
+
let t;
|
|
135
|
+
return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data, e);
|
|
136
|
+
} catch (s) {
|
|
137
|
+
const t = s;
|
|
138
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
69
139
|
}
|
|
70
140
|
}
|
|
71
|
-
async function
|
|
141
|
+
async function x() {
|
|
142
|
+
const e = {
|
|
143
|
+
status: 200,
|
|
144
|
+
message: "",
|
|
145
|
+
data: []
|
|
146
|
+
};
|
|
72
147
|
try {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
148
|
+
const s = await c.get("/announcements", {
|
|
149
|
+
params: {
|
|
150
|
+
render: n()
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
let t;
|
|
154
|
+
return n() ? t = u(s.data) : t = s.data, t.code != 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data.map((r) => ({
|
|
155
|
+
alert: r.alert === "1",
|
|
156
|
+
announcement_content: r.announcement_content,
|
|
157
|
+
date_created: r.date_created
|
|
158
|
+
})), e);
|
|
159
|
+
} catch (s) {
|
|
160
|
+
const t = s;
|
|
161
|
+
return e.status = t.status || 500, e.message = "", e;
|
|
76
162
|
}
|
|
77
163
|
}
|
|
78
|
-
async function
|
|
79
|
-
const
|
|
80
|
-
status:
|
|
164
|
+
async function S() {
|
|
165
|
+
const e = {
|
|
166
|
+
status: 200,
|
|
81
167
|
message: "",
|
|
82
|
-
data:
|
|
168
|
+
data: ""
|
|
83
169
|
};
|
|
84
170
|
try {
|
|
85
|
-
const
|
|
171
|
+
const t = (await c.get("/getGKey", {
|
|
86
172
|
params: {
|
|
87
|
-
render:
|
|
173
|
+
render: n()
|
|
88
174
|
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
content: n.content,
|
|
95
|
-
start_time: n.start_time ?? "",
|
|
96
|
-
end_time: n.end_time ?? "",
|
|
97
|
-
img_path: n.img_path
|
|
98
|
-
})), t);
|
|
99
|
-
} catch (e) {
|
|
100
|
-
return console.error(JSON.stringify(e)), t.message = `${e}`, t;
|
|
175
|
+
})).data;
|
|
176
|
+
return t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.gkey, e);
|
|
177
|
+
} catch (s) {
|
|
178
|
+
const t = s;
|
|
179
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
101
180
|
}
|
|
102
181
|
}
|
|
103
|
-
async function
|
|
104
|
-
const
|
|
105
|
-
status:
|
|
182
|
+
async function h() {
|
|
183
|
+
const e = {
|
|
184
|
+
status: 200,
|
|
106
185
|
message: "",
|
|
107
186
|
data: []
|
|
108
187
|
};
|
|
109
188
|
try {
|
|
110
|
-
const
|
|
189
|
+
const s = await c.get("/promotions", {
|
|
111
190
|
params: {
|
|
112
|
-
render:
|
|
191
|
+
render: n()
|
|
113
192
|
}
|
|
114
193
|
});
|
|
115
|
-
let
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
194
|
+
let t;
|
|
195
|
+
return n() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.data.map((r) => ({
|
|
196
|
+
cat_id: r.cat_id,
|
|
197
|
+
name: r.name,
|
|
198
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
199
|
+
promo_list: r.promo_list.map((a) => ({
|
|
200
|
+
promo_title: a.promo_title,
|
|
201
|
+
start_time: a.start_time ?? "",
|
|
202
|
+
end_time: a.end_time ?? "",
|
|
203
|
+
img_path: a.img_path,
|
|
204
|
+
content: a.content
|
|
205
|
+
}))
|
|
206
|
+
})), e);
|
|
207
|
+
} catch (s) {
|
|
208
|
+
const t = s;
|
|
209
|
+
return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
|
|
119
210
|
}
|
|
120
211
|
}
|
|
121
212
|
export {
|
|
122
213
|
f as Repository,
|
|
123
|
-
|
|
214
|
+
x as getAnnouncement,
|
|
124
215
|
S as getGKey,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
216
|
+
_ as getPlatforms,
|
|
217
|
+
y as getProducts,
|
|
218
|
+
h as getPromotions
|
|
128
219
|
};
|
package/dist/50p82u21t54k.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("axios"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","crypto-js"],i):(n=typeof globalThis<"u"?globalThis:n||self,i(n["50p82u21t54k"]={},n.axios,n.CryptoJS))})(this,function(n,i,c){"use strict";const u=i.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});u.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),u.interceptors.response.use(e=>(console.log("Response:",e),e),e=>{const s={status:null,message:"An error occurred"};return e.response?(s.status=e.response.status,s.message=e.response.data.message||e.response.statusText,console.error("Error response:",JSON.stringify(s)),e.response.status===401?console.error("Unauthorized access - redirecting to login."):e.response.status===404?console.error("Resource not found."):e.response.status>=500&&console.error("Server error. Please try again later.")):e.request?console.error("No response received:",e.request):console.error("Error setting up request:",e.message),Promise.reject(s)});let g="";function m(e){g=e}function p(){return g}function a(){return g===""?0:1}const l={install(e){e.provide("setRepositoryGKey",m)}},d=e=>{try{const s=JSON.parse(c.AES.decrypt(e,p(),{format:{stringify:t=>{const r={ct:t.ciphertext.toString(c.enc.Base64)};return t.iv&&(r.iv=t.iv.toString()),t.salt&&(r.s=t.salt.toString()),JSON.stringify(r)},parse:t=>{const r=JSON.parse(t),o=c.lib.CipherParams.create({ciphertext:c.enc.Base64.parse(r.ct)});return r.iv&&(o.iv=c.enc.Hex.parse(r.iv)),r.s&&(o.salt=c.enc.Hex.parse(r.s)),o}}}).toString(c.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.log(s),""}};async function f(){const e={status:200,message:"",data:[]};try{const s=await u.get("/products",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function y(){const e={status:200,message:"",data:[]};try{const s=await u.get("/platforms",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function _(){const e={status:200,message:"",data:[]};try{const s=await u.get("/announcements",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!=200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data.map(r=>({alert:r.alert==="1",announcement_content:r.announcement_content,date_created:r.date_created})),e)}catch(s){const t=s;return e.status=t.status||500,e.message="",e}}async function h(){const e={status:200,message:"",data:""};try{const t=(await u.get("/getGKey",{params:{render:a()}})).data;return t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.gkey,e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}async function x(){const e={status:200,message:"",data:[]};try{const s=await u.get("/promotions",{params:{render:a()}});let t;return a()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(e.data=t.results.data.map(r=>({cat_id:r.cat_id,name:r.name,promo_list:r.promo_list.map(o=>({promo_title:o.promo_title,start_time:o.start_time??"",end_time:o.end_time??"",img_path:o.img_path,content:o.content}))})),e)}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}n.Repository=l,n.getAnnouncement=_,n.getGKey=h,n.getPlatforms=y,n.getProducts=f,n.getPromotions=x,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/announcement/method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/announcement/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,wBAAsB,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA4CrE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseType } from '../util/type';
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
data:
|
|
3
|
+
export type AnnouncementResponse = BaseType & {
|
|
4
|
+
data: Announcement[];
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
6
|
+
export type Announcement = {
|
|
7
|
+
alert: boolean;
|
|
8
|
+
announcement_content: string;
|
|
9
|
+
date_created: string;
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/announcement/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/announcement/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG;IAC5C,IAAI,EAAE,YAAY,EAAE,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,OAAO,CAAA;IACd,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
package/dist/gKey/index.d.ts
CHANGED
package/dist/gKey/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
package/dist/gKey/method.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAsB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CA+BxD"}
|
package/dist/gKey/type.d.ts
CHANGED
package/dist/gKey/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/gKey/type.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/gKey/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './products';
|
|
2
|
+
export * from './platforms';
|
|
2
3
|
export * from './announcement';
|
|
3
4
|
export * from './gKey';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './promoCat';
|
|
5
|
+
export * from './promotions';
|
|
6
6
|
export { default as Repository } from './plugin';
|
|
7
|
-
import * as
|
|
7
|
+
import * as products from './products';
|
|
8
|
+
import * as platforms from './platforms';
|
|
8
9
|
import * as announcement from './announcement';
|
|
9
10
|
import * as gKey from './gKey';
|
|
10
|
-
import * as
|
|
11
|
-
import * as promoCat from './promoCat';
|
|
11
|
+
import * as promotions from './promotions';
|
|
12
12
|
export type RepositoryType = {
|
|
13
|
-
|
|
13
|
+
products: typeof products;
|
|
14
|
+
platforms: typeof platforms;
|
|
14
15
|
announcement: typeof announcement;
|
|
15
16
|
gKey: typeof gKey;
|
|
16
|
-
|
|
17
|
-
promoCat: typeof promoCat;
|
|
17
|
+
promotions: typeof promotions;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAE1C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,SAAS,EAAE,OAAO,SAAS,CAAA;IAC3B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,UAAU,EAAE,OAAO,UAAU,CAAA;CAC9B,CAAA"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platforms/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/platforms/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CA2C/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/platforms/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
package/dist/plugin.d.ts
CHANGED
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAIzB,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;;iBAGc,GAAG;;AADlB,wBAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/products/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA2C7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/products/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/promotions/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAqDjE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseType } from '../util/type';
|
|
2
|
+
|
|
3
|
+
export type PromotionsResponse = BaseType & {
|
|
4
|
+
data: PromotionsCategory[];
|
|
5
|
+
};
|
|
6
|
+
export type PromotionsCategory = {
|
|
7
|
+
cat_id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
promo_list: PromotionsCategoryItem[];
|
|
10
|
+
};
|
|
11
|
+
export type PromotionsCategoryItem = {
|
|
12
|
+
promo_title: string;
|
|
13
|
+
start_time: string;
|
|
14
|
+
end_time: string;
|
|
15
|
+
img_path: string;
|
|
16
|
+
content: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/promotions/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,kBAAkB,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,sBAAsB,EAAE,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axiosConfig.d.ts","sourceRoot":"","sources":["../../src/util/axiosConfig.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa,+BA4CjB,CAAA;AAyDF,eAAe,aAAa,CAAA"}
|
package/dist/util/tool.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const decrypt: (data:
|
|
1
|
+
export declare const decrypt: (data: any) => string;
|
|
2
2
|
//# sourceMappingURL=tool.d.ts.map
|
package/dist/util/tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/util/tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/util/tool.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,SAAU,GAAG,KAAG,MAoCnC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
package/dist/product/method.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/product/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,eAAe,EAAE,MAAM,QAAQ,CAAA;AAEjD,wBAAsB,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,CA6C3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/product/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,OAAO,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,EAAE,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promo/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
package/dist/promo/method.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/promo/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,wBAAsB,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,CAoDvD"}
|
package/dist/promo/type.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseType } from '../util/type';
|
|
2
|
-
|
|
3
|
-
export type PromoResponse = BaseType & {
|
|
4
|
-
data: Promo[];
|
|
5
|
-
};
|
|
6
|
-
export type Promo = {
|
|
7
|
-
category_id: number;
|
|
8
|
-
promo_title: string;
|
|
9
|
-
content: string;
|
|
10
|
-
start_time: string;
|
|
11
|
-
end_time: string;
|
|
12
|
-
img_path: string;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=type.d.ts.map
|
package/dist/promo/type.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/promo/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACrC,IAAI,EAAE,KAAK,EAAE,CAAA;CACd,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promoCat/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
|
package/dist/promoCat/type.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/promoCat/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,GAAG,EAAE,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,GAAG,GAAG;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|