50p82u21t54k 0.0.7 → 0.0.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.
Files changed (46) hide show
  1. package/dist/50p82u21t54k.es.js +113 -36
  2. package/dist/50p82u21t54k.umd.js +1 -1
  3. package/dist/announcement/index.d.ts +2 -0
  4. package/dist/announcement/index.d.ts.map +1 -0
  5. package/dist/announcement/method.d.ts +2 -0
  6. package/dist/announcement/method.d.ts.map +1 -0
  7. package/dist/announcement/type.d.ts +9 -0
  8. package/dist/announcement/type.d.ts.map +1 -0
  9. package/dist/gKey/index.d.ts +2 -0
  10. package/dist/gKey/index.d.ts.map +1 -0
  11. package/dist/gKey/method.d.ts +2 -0
  12. package/dist/gKey/method.d.ts.map +1 -0
  13. package/dist/gKey/type.d.ts +1 -0
  14. package/dist/gKey/type.d.ts.map +1 -0
  15. package/dist/index.d.ts +18 -4
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/plugin.d.ts +3 -6
  18. package/dist/plugin.d.ts.map +1 -1
  19. package/dist/product/index.d.ts +3 -0
  20. package/dist/product/index.d.ts.map +1 -0
  21. package/dist/product/method.d.ts +4 -0
  22. package/dist/product/method.d.ts.map +1 -0
  23. package/dist/{products/model.d.ts → product/type.d.ts} +2 -2
  24. package/dist/product/type.d.ts.map +1 -0
  25. package/dist/promo/index.d.ts +3 -0
  26. package/dist/promo/index.d.ts.map +1 -0
  27. package/dist/promo/method.d.ts +4 -0
  28. package/dist/promo/method.d.ts.map +1 -0
  29. package/dist/promo/type.d.ts +14 -0
  30. package/dist/promo/type.d.ts.map +1 -0
  31. package/dist/promoCat/index.d.ts +3 -0
  32. package/dist/promoCat/index.d.ts.map +1 -0
  33. package/dist/promoCat/method.d.ts +4 -0
  34. package/dist/promoCat/method.d.ts.map +1 -0
  35. package/dist/promoCat/type.d.ts +10 -0
  36. package/dist/promoCat/type.d.ts.map +1 -0
  37. package/dist/util/tool.d.ts +2 -0
  38. package/dist/util/tool.d.ts.map +1 -0
  39. package/dist/util/type.d.ts +6 -1
  40. package/dist/util/type.d.ts.map +1 -1
  41. package/package.json +4 -1
  42. package/dist/products/index.d.ts +0 -3
  43. package/dist/products/index.d.ts.map +0 -1
  44. package/dist/products/method.d.ts +0 -4
  45. package/dist/products/method.d.ts.map +0 -1
  46. package/dist/products/model.d.ts.map +0 -1
@@ -1,51 +1,128 @@
1
- let o = "", u = !1;
2
- function r(t) {
3
- o = t;
4
- }
5
- function c() {
6
- return `${o}/api`;
7
- }
8
- function l(t) {
9
- u = t;
1
+ import o from "axios";
2
+ import a from "crypto-js";
3
+ let c = "";
4
+ function u(t) {
5
+ c = t;
10
6
  }
11
7
  function g() {
12
- return u;
8
+ return c;
13
9
  }
14
- const i = {
15
- install(t, s) {
16
- r(s.baseURL), l(s.status);
10
+ function r() {
11
+ return c === "" ? 0 : 1;
12
+ }
13
+ const f = {
14
+ install(t) {
15
+ t.provide("setRepositoryGKey", u);
16
+ }
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;
17
38
  }
18
39
  };
19
- async function f() {
40
+ async function l() {
41
+ const t = {
42
+ status: 0,
43
+ message: "",
44
+ data: []
45
+ };
46
+ try {
47
+ const e = await o.get("/apis/products", {
48
+ params: {
49
+ render: r()
50
+ }
51
+ });
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;
56
+ }
57
+ }
58
+ async function y() {
59
+ try {
60
+ const t = await o.get("/apis/announcements", {
61
+ params: {
62
+ render: r()
63
+ }
64
+ });
65
+ let e;
66
+ return r() ? e = i(t.data) : e = t.data, e;
67
+ } catch (t) {
68
+ return JSON.stringify(t);
69
+ }
70
+ }
71
+ async function S() {
72
+ try {
73
+ return "";
74
+ } catch (t) {
75
+ return JSON.stringify(t);
76
+ }
77
+ }
78
+ async function J() {
79
+ const t = {
80
+ status: 0,
81
+ message: "",
82
+ data: []
83
+ };
84
+ try {
85
+ const e = await o.get("/apis/promo", {
86
+ params: {
87
+ render: r()
88
+ }
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;
101
+ }
102
+ }
103
+ async function _() {
20
104
  const t = {
21
- status: !1,
105
+ status: 0,
22
106
  message: "",
23
107
  data: []
24
108
  };
25
109
  try {
26
- const s = `${c()}/products`, e = await fetch(s, {
27
- method: "GET"
28
- }), a = await e.text();
29
- if (g()) {
30
- console.log(e.status);
31
- try {
32
- console.log(JSON.parse(a));
33
- } catch {
34
- console.log(a);
110
+ const e = await o.get("/apis/promoCat", {
111
+ params: {
112
+ render: r()
35
113
  }
36
- }
37
- if (t.status = e.status == 200, !t.status)
38
- return t.message = a, t;
39
- if (t.status && e.ok) {
40
- const n = JSON.parse(a);
41
- return t.data = n.results.data, t;
42
- }
43
- return t;
44
- } catch (s) {
45
- return t.status = !1, t.message = `${s}`, t;
114
+ });
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;
46
119
  }
47
120
  }
48
121
  export {
49
- f as getProducts,
50
- i as libraryPlugin
122
+ f as Repository,
123
+ y as getAnnouncement,
124
+ S as getGKey,
125
+ l as getProduct,
126
+ J as getPromo,
127
+ _ as getPromoCat
51
128
  };
@@ -1 +1 @@
1
- (function(e,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(e=typeof globalThis<"u"?globalThis:e||self,s(e["50p82u21t54k"]={}))})(this,function(e){"use strict";let s="",a=!1;function r(t){s=t}function c(){return`${s}/api`}function f(t){a=t}function l(){return a}const d={install(t,n){r(n.baseURL),f(n.status)}};async function g(){const t={status:!1,message:"",data:[]};try{const n=`${c()}/products`,o=await fetch(n,{method:"GET"}),u=await o.text();if(l()){console.log(o.status);try{console.log(JSON.parse(u))}catch{console.log(u)}}if(t.status=o.status==200,!t.status)return t.message=u,t;if(t.status&&o.ok){const i=JSON.parse(u);return t.data=i.results.data,t}return t}catch(n){return t.status=!1,t.message=`${n}`,t}}e.getProducts=g,e.libraryPlugin=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
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"})});
@@ -0,0 +1,2 @@
1
+ export * from './method';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function getAnnouncement(): Promise<string>;
2
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ import { BaseType } from '../util/type';
2
+
3
+ export type YourNameResponse = BaseType & {
4
+ data: YourName[];
5
+ };
6
+ export type YourName = {
7
+ name: string;
8
+ };
9
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export * from './method';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function getGKey(): Promise<string>;
2
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/gKey/type.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,19 @@
1
- export * from './products';
2
- export { default as libraryPlugin } from './plugin';
3
- import * as library from './products';
4
- export type LibraryType = typeof library;
1
+ export * from './product';
2
+ export * from './announcement';
3
+ export * from './gKey';
4
+ export * from './promo';
5
+ export * from './promoCat';
6
+ export { default as Repository } from './plugin';
7
+ import * as product from './product';
8
+ import * as announcement from './announcement';
9
+ import * as gKey from './gKey';
10
+ import * as promo from './promo';
11
+ import * as promoCat from './promoCat';
12
+ export type RepositoryType = {
13
+ product: typeof product;
14
+ announcement: typeof announcement;
15
+ gKey: typeof gKey;
16
+ promo: typeof promo;
17
+ promoCat: typeof promoCat;
18
+ };
5
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA;AAGnD,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AAErC,MAAM,MAAM,WAAW,GAAG,OAAO,OAAO,CAAA"}
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"}
package/dist/plugin.d.ts CHANGED
@@ -1,12 +1,9 @@
1
1
  import { App } from 'vue';
2
2
 
3
- export declare function getBaseURL(): string;
4
- export declare function getDebugMode(): boolean;
3
+ export declare function getGKey(): string;
4
+ export declare function getRender(): number;
5
5
  declare const _default: {
6
- install(_: App, options: {
7
- baseURL: string;
8
- status: boolean;
9
- }): void;
6
+ install(app: App): void;
10
7
  };
11
8
  export default _default;
12
9
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AASzB,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAMD,wBAAgB,YAAY,IAAI,OAAO,CAEtC;;eAGY,GAAG,WAAW;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE;;AAD/D,wBAKC"}
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"}
@@ -0,0 +1,3 @@
1
+ export * from './method';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ProductResponse } from './type';
2
+
3
+ export declare function getProduct(): Promise<ProductResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
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,6 +1,6 @@
1
1
  import { BaseType } from '../util/type';
2
2
 
3
- export type ProductsResponse = BaseType & {
3
+ export type ProductResponse = BaseType & {
4
4
  data: Product[];
5
5
  };
6
6
  export type Product = {
@@ -21,4 +21,4 @@ export type PlatformProduct = {
21
21
  name: string;
22
22
  url: string;
23
23
  };
24
- //# sourceMappingURL=model.d.ts.map
24
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export * from './method';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promo/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { PromoResponse } from './type';
2
+
3
+ export declare function getPromo(): Promise<PromoResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export * from './method';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promoCat/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { PromoCatResponse } from './type';
2
+
3
+ export declare function getPromoCat(): Promise<PromoCatResponse>;
4
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare const decrypt: (data: string) => any;
2
+ //# sourceMappingURL=tool.d.ts.map
@@ -0,0 +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,5 +1,10 @@
1
1
  export type BaseType = {
2
- status: boolean;
2
+ status: number;
3
3
  message: string;
4
4
  };
5
+ export type EncryptedData = {
6
+ ct: string;
7
+ iv?: string;
8
+ s?: string;
9
+ };
5
10
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/util/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/util/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,CAAA;CACX,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "50p82u21t54k",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/50p82u21t54k.umd.js",
6
6
  "module": "dist/50p82u21t54k.es.js",
@@ -37,6 +37,9 @@
37
37
  "vite-plugin-dts": "^3.9.1"
38
38
  },
39
39
  "dependencies": {
40
+ "@types/crypto-js": "^4.2.2",
41
+ "axios": "^1.7.2",
42
+ "crypto-js": "^4.2.0",
40
43
  "vue": "^3.4.27"
41
44
  }
42
45
  }
@@ -1,3 +0,0 @@
1
- export * from './method';
2
- export * from './model';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
@@ -1,4 +0,0 @@
1
- import { ProductsResponse } from './model';
2
-
3
- export declare function getProducts(): Promise<ProductsResponse>;
4
- //# sourceMappingURL=method.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/products/method.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAEnD,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA4C7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/products/model.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"}