50p82u21t54k 0.0.10 → 0.0.13

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.
Files changed (56) hide show
  1. package/dist/50p82u21t54k.es.js +174 -83
  2. package/dist/50p82u21t54k.umd.js +1 -1
  3. package/dist/announcement/index.d.ts +1 -0
  4. package/dist/announcement/index.d.ts.map +1 -1
  5. package/dist/announcement/method.d.ts +3 -1
  6. package/dist/announcement/method.d.ts.map +1 -1
  7. package/dist/announcement/type.d.ts +6 -4
  8. package/dist/announcement/type.d.ts.map +1 -1
  9. package/dist/gKey/index.d.ts +1 -0
  10. package/dist/gKey/index.d.ts.map +1 -1
  11. package/dist/gKey/method.d.ts +3 -1
  12. package/dist/gKey/method.d.ts.map +1 -1
  13. package/dist/gKey/type.d.ts +5 -0
  14. package/dist/gKey/type.d.ts.map +1 -1
  15. package/dist/index.d.ts +9 -9
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/main.d.ts +2 -0
  18. package/dist/main.d.ts.map +1 -0
  19. package/dist/platforms/index.d.ts.map +1 -0
  20. package/dist/platforms/method.d.ts +4 -0
  21. package/dist/platforms/method.d.ts.map +1 -0
  22. package/dist/platforms/type.d.ts +9 -0
  23. package/dist/platforms/type.d.ts.map +1 -0
  24. package/dist/plugin.d.ts +1 -0
  25. package/dist/plugin.d.ts.map +1 -1
  26. package/dist/products/index.d.ts.map +1 -0
  27. package/dist/products/method.d.ts +4 -0
  28. package/dist/{promoCat → products}/method.d.ts.map +1 -1
  29. package/dist/{product → products}/type.d.ts +1 -1
  30. package/dist/products/type.d.ts.map +1 -0
  31. package/dist/promotions/index.d.ts.map +1 -0
  32. package/dist/promotions/method.d.ts +4 -0
  33. package/dist/promotions/method.d.ts.map +1 -0
  34. package/dist/promotions/type.d.ts +18 -0
  35. package/dist/promotions/type.d.ts.map +1 -0
  36. package/dist/util/axiosConfig.d.ts +3 -0
  37. package/dist/util/axiosConfig.d.ts.map +1 -0
  38. package/dist/util/tool.d.ts +1 -1
  39. package/dist/util/tool.d.ts.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/product/index.d.ts.map +0 -1
  42. package/dist/product/method.d.ts +0 -4
  43. package/dist/product/method.d.ts.map +0 -1
  44. package/dist/product/type.d.ts.map +0 -1
  45. package/dist/promo/index.d.ts.map +0 -1
  46. package/dist/promo/method.d.ts +0 -4
  47. package/dist/promo/method.d.ts.map +0 -1
  48. package/dist/promo/type.d.ts +0 -14
  49. package/dist/promo/type.d.ts.map +0 -1
  50. package/dist/promoCat/index.d.ts.map +0 -1
  51. package/dist/promoCat/method.d.ts +0 -4
  52. package/dist/promoCat/type.d.ts +0 -10
  53. package/dist/promoCat/type.d.ts.map +0 -1
  54. /package/dist/{product → platforms}/index.d.ts +0 -0
  55. /package/dist/{promo → products}/index.d.ts +0 -0
  56. /package/dist/{promoCat → promotions}/index.d.ts +0 -0
@@ -1,128 +1,219 @@
1
- import o from "axios";
2
- import a from "crypto-js";
3
- let c = "";
4
- function u(t) {
5
- c = t;
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 g() {
8
- return c;
67
+ function m() {
68
+ return i;
9
69
  }
10
- function r() {
11
- return c === "" ? 0 : 1;
70
+ function n() {
71
+ return i === "" ? 0 : 1;
12
72
  }
13
73
  const f = {
14
- install(t) {
15
- t.provide("setRepositoryGKey", u);
74
+ install(e) {
75
+ e.provide("setRepositoryGKey", p);
16
76
  }
17
- }, i = (t) => {
18
- const e = JSON.parse(
19
- a.AES.decrypt(t, g(), {
20
- format: d
21
- }).toString(a.enc.Utf8)
22
- );
23
- return e !== "" ? JSON.parse(e) : e;
24
- }, d = {
25
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
26
- stringify: function(t) {
27
- const e = {
28
- ct: t.ciphertext.toString(a.enc.Base64)
29
- };
30
- return t.iv && (e.iv = t.iv.toString()), t.salt && (e.s = t.salt.toString()), JSON.stringify(e);
31
- },
32
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
- parse: function(t) {
34
- const e = JSON.parse(t), s = a.lib.CipherParams.create({
35
- ciphertext: a.enc.Base64.parse(e.ct)
36
- });
37
- return e.iv && (s.iv = a.enc.Hex.parse(e.iv)), e.s && (s.salt = a.enc.Hex.parse(e.s)), t;
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 l() {
41
- const t = {
42
- status: 0,
103
+ async function y() {
104
+ const e = {
105
+ status: 200,
43
106
  message: "",
44
107
  data: []
45
108
  };
46
109
  try {
47
- const e = await o.get("/apis/products", {
110
+ const s = await c.get("/products", {
48
111
  params: {
49
- render: r()
112
+ render: n()
50
113
  }
51
114
  });
52
- let s;
53
- return r() ? s = i(e.data) : s = e.data, t.status = e.status, t.status != 200 ? (t.message = e.statusText, t) : s.code != 200 ? (t.message = s.message, t) : (console.log("this is data"), console.log(s.code), t.data = s.results.data, t);
54
- } catch (e) {
55
- return t.status = 123, t.message = `${e}`, t;
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 y() {
122
+ async function _() {
123
+ const e = {
124
+ status: 200,
125
+ message: "",
126
+ data: []
127
+ };
59
128
  try {
60
- const t = await o.get("/apis/announcements", {
129
+ const s = await c.get("/platforms", {
61
130
  params: {
62
- render: r()
131
+ render: n()
63
132
  }
64
133
  });
65
- let e;
66
- return r() ? e = i(t.data) : e = t.data, e;
67
- } catch (t) {
68
- return JSON.stringify(t);
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 S() {
141
+ async function x() {
142
+ const e = {
143
+ status: 200,
144
+ message: "",
145
+ data: []
146
+ };
72
147
  try {
73
- return "";
74
- } catch (t) {
75
- return JSON.stringify(t);
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 J() {
79
- const t = {
80
- status: 0,
164
+ async function S() {
165
+ const e = {
166
+ status: 200,
81
167
  message: "",
82
- data: []
168
+ data: ""
83
169
  };
84
170
  try {
85
- const e = await o.get("/apis/promo", {
171
+ const t = (await c.get("/getGKey", {
86
172
  params: {
87
- render: r()
173
+ render: n()
88
174
  }
89
- });
90
- let s;
91
- return r() ? s = i(e.data) : s = e.data, t.status = e.status, t.status != 200 ? (t.message = e.statusText, t) : s.code != 200 ? (t.message = s.message, t) : (t.data = s.results.data.map((n) => ({
92
- category_id: n.category_id,
93
- promo_title: n.promo_title,
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 t = {
105
- status: 0,
182
+ async function h() {
183
+ const e = {
184
+ status: 200,
106
185
  message: "",
107
186
  data: []
108
187
  };
109
188
  try {
110
- const e = await o.get("/apis/promoCat", {
189
+ const s = await c.get("/promotions", {
111
190
  params: {
112
- render: r()
191
+ render: n()
113
192
  }
114
193
  });
115
- let s;
116
- return r() ? s = i(e.data) : s = e.data, t.status = e.status, t.status != 200 ? (t.message = e.statusText, t) : s.code != 200 ? (t.message = s.message, t) : (t.data = s.results.data, t);
117
- } catch (e) {
118
- return console.error(JSON.stringify(e)), t.message = `${e}`, t;
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
- y as getAnnouncement,
214
+ x as getAnnouncement,
124
215
  S as getGKey,
125
- l as getProduct,
126
- J as getPromo,
127
- _ as getPromoCat
216
+ _ as getPlatforms,
217
+ y as getProducts,
218
+ h as getPromotions
128
219
  };
@@ -1 +1 @@
1
- (function(r,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("axios"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","crypto-js"],a):(r=typeof globalThis<"u"?globalThis:r||self,a(r["50p82u21t54k"]={},r.axios,r.CryptoJS))})(this,function(r,a,i){"use strict";let c="";function d(t){c=t}function g(){return c}function n(){return c===""?0:1}const f={install(t){t.provide("setRepositoryGKey",d)}},u=t=>{const e=JSON.parse(i.AES.decrypt(t,g(),{format:m}).toString(i.enc.Utf8));return e!==""?JSON.parse(e):e},m={stringify:function(t){const e={ct:t.ciphertext.toString(i.enc.Base64)};return t.iv&&(e.iv=t.iv.toString()),t.salt&&(e.s=t.salt.toString()),JSON.stringify(e)},parse:function(t){const e=JSON.parse(t),s=i.lib.CipherParams.create({ciphertext:i.enc.Base64.parse(e.ct)});return e.iv&&(s.iv=i.enc.Hex.parse(e.iv)),e.s&&(s.salt=i.enc.Hex.parse(e.s)),t}};async function p(){const t={status:0,message:"",data:[]};try{const e=await a.get("/apis/products",{params:{render:n()}});let s;return n()?s=u(e.data):s=e.data,t.status=e.status,t.status!=200?(t.message=e.statusText,t):s.code!=200?(t.message=s.message,t):(console.log("this is data"),console.log(s.code),t.data=s.results.data,t)}catch(e){return t.status=123,t.message=`${e}`,t}}async function l(){try{const t=await a.get("/apis/announcements",{params:{render:n()}});let e;return n()?e=u(t.data):e=t.data,e}catch(t){return JSON.stringify(t)}}async function y(){try{return""}catch(t){return JSON.stringify(t)}}async function h(){const t={status:0,message:"",data:[]};try{const e=await a.get("/apis/promo",{params:{render:n()}});let s;return n()?s=u(e.data):s=e.data,t.status=e.status,t.status!=200?(t.message=e.statusText,t):s.code!=200?(t.message=s.message,t):(t.data=s.results.data.map(o=>({category_id:o.category_id,promo_title:o.promo_title,content:o.content,start_time:o.start_time??"",end_time:o.end_time??"",img_path:o.img_path})),t)}catch(e){return console.error(JSON.stringify(e)),t.message=`${e}`,t}}async function S(){const t={status:0,message:"",data:[]};try{const e=await a.get("/apis/promoCat",{params:{render:n()}});let s;return n()?s=u(e.data):s=e.data,t.status=e.status,t.status!=200?(t.message=e.statusText,t):s.code!=200?(t.message=s.message,t):(t.data=s.results.data,t)}catch(e){return console.error(JSON.stringify(e)),t.message=`${e}`,t}}r.Repository=f,r.getAnnouncement=l,r.getGKey=y,r.getProduct=p,r.getPromo=h,r.getPromoCat=S,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
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,2 +1,3 @@
1
1
  export * from './method';
2
+ export * from './type';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 +1,4 @@
1
- export declare function getAnnouncement(): Promise<string>;
1
+ import { AnnouncementResponse } from './type';
2
+
3
+ export declare function getAnnouncement(): Promise<AnnouncementResponse>;
2
4
  //# sourceMappingURL=method.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/announcement/method.ts"],"names":[],"mappings":"AAIA,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAoBvD"}
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 YourNameResponse = BaseType & {
4
- data: YourName[];
3
+ export type AnnouncementResponse = BaseType & {
4
+ data: Announcement[];
5
5
  };
6
- export type YourName = {
7
- name: string;
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,gBAAgB,GAAG,QAAQ,GAAG;IACxC,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
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"}
@@ -1,2 +1,3 @@
1
1
  export * from './method';
2
+ export * from './type';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,2 +1,4 @@
1
- export declare function getGKey(): Promise<string>;
1
+ import { GetGKeyResponse } from './type';
2
+
3
+ export declare function getGKey(): Promise<GetGKeyResponse>;
2
4
  //# sourceMappingURL=method.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"AAAA,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAM/C"}
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"}
@@ -1 +1,6 @@
1
+ import { BaseType } from '../util/type';
2
+
3
+ export type GetGKeyResponse = BaseType & {
4
+ data: string;
5
+ };
1
6
  //# sourceMappingURL=type.d.ts.map
@@ -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 './product';
1
+ export * from './products';
2
+ export * from './platforms';
2
3
  export * from './announcement';
3
4
  export * from './gKey';
4
- export * from './promo';
5
- export * from './promoCat';
5
+ export * from './promotions';
6
6
  export { default as Repository } from './plugin';
7
- import * as product from './product';
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 promo from './promo';
11
- import * as promoCat from './promoCat';
11
+ import * as promotions from './promotions';
12
12
  export type RepositoryType = {
13
- product: typeof product;
13
+ products: typeof products;
14
+ platforms: typeof platforms;
14
15
  announcement: typeof announcement;
15
16
  gKey: typeof gKey;
16
- promo: typeof promo;
17
- promoCat: typeof promoCat;
17
+ promotions: typeof promotions;
18
18
  };
19
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAEhD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,OAAO,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IACjB,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B,CAAA"}
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main.d.ts.map
@@ -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,4 @@
1
+ import { PlatformsResponse } from './type';
2
+
3
+ export declare function getPlatforms(): Promise<PlatformsResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -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,9 @@
1
+ import { BaseType } from '../util/type';
2
+
3
+ export type PlatformsResponse = BaseType & {
4
+ data: Platform[];
5
+ };
6
+ export type Platform = {
7
+ name: string;
8
+ };
9
+ //# sourceMappingURL=type.d.ts.map
@@ -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
@@ -1,5 +1,6 @@
1
1
  import { App } from 'vue';
2
2
 
3
+ export declare function setGKey(key: string): void;
3
4
  export declare function getGKey(): string;
4
5
  export declare function getRender(): number;
5
6
  declare const _default: {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAQzB,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;;iBAGc,GAAG;;AADlB,wBAIC"}
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"}
@@ -0,0 +1,4 @@
1
+ import { ProductsResponse } from './type';
2
+
3
+ export declare function getProducts(): Promise<ProductsResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/promoCat/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA0C7D"}
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"}
@@ -1,6 +1,6 @@
1
1
  import { BaseType } from '../util/type';
2
2
 
3
- export type ProductResponse = BaseType & {
3
+ export type ProductsResponse = BaseType & {
4
4
  data: Product[];
5
5
  };
6
6
  export type Product = {
@@ -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,4 @@
1
+ import { PromotionsResponse } from './type';
2
+
3
+ export declare function getPromotions(): Promise<PromotionsResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -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,3 @@
1
+ declare const axiosInstance: import('axios').AxiosInstance;
2
+ export default axiosInstance;
3
+ //# sourceMappingURL=axiosConfig.d.ts.map
@@ -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"}
@@ -1,2 +1,2 @@
1
- export declare const decrypt: (data: string) => any;
1
+ export declare const decrypt: (data: any) => string;
2
2
  //# sourceMappingURL=tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/util/tool.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,SAAU,MAAM,QAYnC,CAAA"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "50p82u21t54k",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/50p82u21t54k.umd.js",
6
6
  "module": "dist/50p82u21t54k.es.js",
@@ -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"}
@@ -1,4 +0,0 @@
1
- import { ProductResponse } from './type';
2
-
3
- export declare function getProduct(): Promise<ProductResponse>;
4
- //# sourceMappingURL=method.d.ts.map
@@ -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"}
@@ -1,4 +0,0 @@
1
- import { PromoResponse } from './type';
2
-
3
- export declare function getPromo(): Promise<PromoResponse>;
4
- //# sourceMappingURL=method.d.ts.map
@@ -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"}
@@ -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
@@ -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"}
@@ -1,4 +0,0 @@
1
- import { PromoCatResponse } from './type';
2
-
3
- export declare function getPromoCat(): Promise<PromoCatResponse>;
4
- //# sourceMappingURL=method.d.ts.map
@@ -1,10 +0,0 @@
1
- import { BaseType } from '../util/type';
2
-
3
- export type PromoCatResponse = BaseType & {
4
- data: Cat[];
5
- };
6
- export type Cat = {
7
- cat_id: number;
8
- name: string;
9
- };
10
- //# sourceMappingURL=type.d.ts.map
@@ -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