50p82u21t54k 0.0.16 → 0.0.17

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 (98) hide show
  1. package/dist/fishGames/index.d.ts.map +1 -0
  2. package/dist/fishGames/method.d.ts +29 -0
  3. package/dist/fishGames/method.d.ts.map +1 -0
  4. package/dist/fishGames/type.d.ts +29 -0
  5. package/dist/fishGames/type.d.ts.map +1 -0
  6. package/dist/getSetting/index.d.ts.map +1 -0
  7. package/dist/getSetting/method.d.ts +3 -0
  8. package/dist/{promotions → getSetting}/method.d.ts.map +1 -1
  9. package/dist/getSetting/type.d.ts +11 -0
  10. package/dist/getSetting/type.d.ts.map +1 -0
  11. package/dist/historyGames (incomplete)/index.d.ts +1 -0
  12. package/dist/historyGames (incomplete)/index.d.ts.map +1 -0
  13. package/dist/historyGames (incomplete)/method.d.ts +1 -0
  14. package/dist/historyGames (incomplete)/method.d.ts.map +1 -0
  15. package/dist/historyGames (incomplete)/type.d.ts +1 -0
  16. package/dist/historyGames (incomplete)/type.d.ts.map +1 -0
  17. package/dist/home/index.d.ts.map +1 -0
  18. package/dist/home/method.d.ts +97 -0
  19. package/dist/home/method.d.ts.map +1 -0
  20. package/dist/home/type.d.ts +101 -0
  21. package/dist/home/type.d.ts.map +1 -0
  22. package/dist/hotGames/index.d.ts.map +1 -0
  23. package/dist/hotGames/method.d.ts +37 -0
  24. package/dist/hotGames/method.d.ts.map +1 -0
  25. package/dist/hotGames/type.d.ts +37 -0
  26. package/dist/hotGames/type.d.ts.map +1 -0
  27. package/dist/index.d.ts +6 -15
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/legacy/announcement/index.d.ts.map +1 -0
  30. package/dist/{announcement → legacy/announcement}/method.d.ts +0 -1
  31. package/dist/legacy/announcement/method.d.ts.map +1 -0
  32. package/dist/{announcement → legacy/announcement}/type.d.ts +1 -2
  33. package/dist/legacy/announcement/type.d.ts.map +1 -0
  34. package/dist/legacy/gKey/index.d.ts.map +1 -0
  35. package/dist/{gKey → legacy/gKey}/method.d.ts +0 -1
  36. package/dist/legacy/gKey/method.d.ts.map +1 -0
  37. package/dist/legacy/gKey/type.d.ts +5 -0
  38. package/dist/legacy/gKey/type.d.ts.map +1 -0
  39. package/dist/legacy/language/index.d.ts +3 -0
  40. package/dist/legacy/language/index.d.ts.map +1 -0
  41. package/dist/{language → legacy/language}/method.d.ts +0 -1
  42. package/dist/legacy/language/method.d.ts.map +1 -0
  43. package/dist/{language → legacy/language}/type.d.ts +1 -2
  44. package/dist/legacy/language/type.d.ts.map +1 -0
  45. package/dist/legacy/platforms/index.d.ts +3 -0
  46. package/dist/legacy/platforms/index.d.ts.map +1 -0
  47. package/dist/{platforms → legacy/platforms}/method.d.ts +0 -1
  48. package/dist/legacy/platforms/method.d.ts.map +1 -0
  49. package/dist/{platforms → legacy/platforms}/type.d.ts +0 -1
  50. package/dist/legacy/platforms/type.d.ts.map +1 -0
  51. package/dist/legacy/products/index.d.ts +3 -0
  52. package/dist/legacy/products/index.d.ts.map +1 -0
  53. package/dist/{products → legacy/products}/method.d.ts +0 -1
  54. package/dist/legacy/products/method.d.ts.map +1 -0
  55. package/dist/{products → legacy/products}/type.d.ts +0 -1
  56. package/dist/legacy/products/type.d.ts.map +1 -0
  57. package/dist/legacy/promotions/index.d.ts +3 -0
  58. package/dist/legacy/promotions/index.d.ts.map +1 -0
  59. package/dist/{promotions → legacy/promotions}/method.d.ts +0 -1
  60. package/dist/legacy/promotions/method.d.ts.map +1 -0
  61. package/dist/{promotions → legacy/promotions}/type.d.ts +0 -1
  62. package/dist/legacy/promotions/type.d.ts.map +1 -0
  63. package/dist/plugin.d.ts +1 -1
  64. package/dist/trialGames/index.d.ts +3 -0
  65. package/dist/trialGames/index.d.ts.map +1 -0
  66. package/dist/trialGames/method.d.ts +26 -0
  67. package/dist/trialGames/method.d.ts.map +1 -0
  68. package/dist/trialGames/type.d.ts +26 -0
  69. package/dist/trialGames/type.d.ts.map +1 -0
  70. package/dist/util/axiosConfig.d.ts +1 -1
  71. package/package.json +1 -1
  72. package/dist/50p82u21t54k.es.js +0 -237
  73. package/dist/50p82u21t54k.umd.js +0 -1
  74. package/dist/announcement/index.d.ts.map +0 -1
  75. package/dist/announcement/method.d.ts.map +0 -1
  76. package/dist/announcement/type.d.ts.map +0 -1
  77. package/dist/gKey/index.d.ts.map +0 -1
  78. package/dist/gKey/method.d.ts.map +0 -1
  79. package/dist/gKey/type.d.ts +0 -6
  80. package/dist/gKey/type.d.ts.map +0 -1
  81. package/dist/language/index.d.ts.map +0 -1
  82. package/dist/language/method.d.ts.map +0 -1
  83. package/dist/language/type.d.ts.map +0 -1
  84. package/dist/platforms/index.d.ts.map +0 -1
  85. package/dist/platforms/method.d.ts.map +0 -1
  86. package/dist/platforms/type.d.ts.map +0 -1
  87. package/dist/products/index.d.ts.map +0 -1
  88. package/dist/products/method.d.ts.map +0 -1
  89. package/dist/products/type.d.ts.map +0 -1
  90. package/dist/promotions/index.d.ts.map +0 -1
  91. package/dist/promotions/type.d.ts.map +0 -1
  92. package/dist/vite.svg +0 -1
  93. /package/dist/{announcement → fishGames}/index.d.ts +0 -0
  94. /package/dist/{gKey → getSetting}/index.d.ts +0 -0
  95. /package/dist/{language → home}/index.d.ts +0 -0
  96. /package/dist/{platforms → hotGames}/index.d.ts +0 -0
  97. /package/dist/{products → legacy/announcement}/index.d.ts +0 -0
  98. /package/dist/{promotions → legacy/gKey}/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fishGames/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { FishGamesResponse } from './type';
2
+ export type RawFishGamesResponse = {
3
+ hotfish: RawFishGame[];
4
+ data: RawFishGame[];
5
+ };
6
+ export type RawFishGame = {
7
+ id: number;
8
+ name: string;
9
+ pp_id: number;
10
+ img: string;
11
+ desc: string;
12
+ pp_name: string;
13
+ platform_code: string;
14
+ code: string;
15
+ flag: number;
16
+ game_id: number;
17
+ imgSrc: string;
18
+ imgPf: string;
19
+ favourite_flag: number;
20
+ platform_status_Fflag: string;
21
+ platform_flag_name: string;
22
+ platform_status_params: {
23
+ eb: boolean;
24
+ fit: boolean;
25
+ fs: boolean;
26
+ };
27
+ };
28
+ export declare function getFishGames(): Promise<FishGamesResponse>;
29
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/fishGames/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAGpD,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,IAAI,EAAE,WAAW,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,sBAAsB,EAAE;QACtB,EAAE,EAAE,OAAO,CAAA;QACX,GAAG,EAAE,OAAO,CAAA;QACZ,EAAE,EAAE,OAAO,CAAA;KACZ,CAAA;CACF,CAAA;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CA8C/D"}
@@ -0,0 +1,29 @@
1
+ import { BaseType } from '@/util/type';
2
+ export type FishGamesResponse = BaseType & {
3
+ hotfish: FishGame[];
4
+ data: FishGame[];
5
+ };
6
+ export type FishGame = {
7
+ id: number;
8
+ name: string;
9
+ ppid: number;
10
+ img: string;
11
+ desc: string;
12
+ ppname: string;
13
+ platformCode: string;
14
+ code: string;
15
+ flag: number;
16
+ gameId: number;
17
+ imgSrc: string;
18
+ imgPf: string;
19
+ favouriteFlag: boolean;
20
+ platformStatusFflag: string;
21
+ platformFlagName: string;
22
+ platformStatusParams: FishPlatformStatusParam;
23
+ };
24
+ export type FishPlatformStatusParam = {
25
+ eb: boolean;
26
+ fit: boolean;
27
+ fs: boolean;
28
+ };
29
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/fishGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG;IACzC,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,uBAAuB,CAAA;CAC9C,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getSetting/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { GetSettingResponse } from './type';
2
+ export declare function getGetSetting(): Promise<GetSettingResponse>;
3
+ //# sourceMappingURL=method.d.ts.map
@@ -1 +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,CAuDjE"}
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/getSetting/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CA6CjE"}
@@ -0,0 +1,11 @@
1
+ import { BaseType } from '@/util/type';
2
+ export type GetSettingResponse = BaseType & {
3
+ data: {
4
+ csrf: string;
5
+ getCaptcha: boolean;
6
+ verificationBeforeLogin: boolean;
7
+ publicKey: string;
8
+ concantenatedKey: string;
9
+ } | null;
10
+ };
11
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/getSetting/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;QACZ,UAAU,EAAE,OAAO,CAAA;QACnB,uBAAuB,EAAE,OAAO,CAAA;QAChC,SAAS,EAAE,MAAM,CAAA;QACjB,gBAAgB,EAAE,MAAM,CAAA;KACzB,GAAG,IAAI,CAAA;CACT,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/historyGames (incomplete)/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/historyGames (incomplete)/method.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/historyGames (incomplete)/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/home/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,97 @@
1
+ import { HomeResponse } from './type';
2
+ export declare function getHome(): Promise<HomeResponse>;
3
+ export type RawHomeResponse = {
4
+ game: RawGame;
5
+ mobileBanner: RawMobileBanner[];
6
+ announcement: RawAnnouncement[];
7
+ alert_announcement: RawAlertAnnouncement[];
8
+ };
9
+ export type RawGame = {
10
+ SPORT: RawPlatformGame[];
11
+ SPECIAL: RawPlatformGame[];
12
+ PVP: RawPlatformGame[];
13
+ LIVE: RawPlatformGame[];
14
+ EVENT: RawPlatformGame[];
15
+ ESPORT: RawPlatformGame[];
16
+ EGAME: RawPlatformGame[];
17
+ BINGO: RawPlatformGame[];
18
+ };
19
+ export type RawPlatformGame = {
20
+ id: number;
21
+ id_PlatformMaster: number;
22
+ id_ProductMaster: number;
23
+ name: string;
24
+ shortName: string;
25
+ img: string;
26
+ mobileUrl: string;
27
+ url: string;
28
+ desc: string;
29
+ seq: number;
30
+ flag: number;
31
+ status: string;
32
+ created_by: number;
33
+ created_on: string;
34
+ categoryid: number;
35
+ com: string;
36
+ cur: string;
37
+ pt: string;
38
+ pp_name: string;
39
+ pp_image: string;
40
+ platform_code: string;
41
+ platform_name: string;
42
+ class_icon: string;
43
+ product_code: string;
44
+ product_name: string;
45
+ game_id: number;
46
+ fAuth: boolean;
47
+ platform_status_params: {
48
+ eb: boolean;
49
+ fit: boolean;
50
+ fs: boolean;
51
+ };
52
+ login_flag: string;
53
+ link: string;
54
+ favourite_flag: number;
55
+ platform_status_flag: string;
56
+ platform_flag_name: string;
57
+ home_logo: string;
58
+ imgPf: string;
59
+ imgSport: string;
60
+ imgTemplate: string;
61
+ };
62
+ export type RawMobileBanner = {
63
+ name: string;
64
+ content: string;
65
+ link: string;
66
+ link_target: string;
67
+ updated_on: string;
68
+ id_cms_category: number;
69
+ content_org: string;
70
+ };
71
+ export type RawAnnouncement = {
72
+ announcement_index: number;
73
+ announcement_english: string;
74
+ announcement_simplified: string;
75
+ announcement_traditional: string;
76
+ announcement_malay: string;
77
+ announcement_status: string;
78
+ announcement_show: string;
79
+ announcement_alert: string;
80
+ announcement_user: string;
81
+ announcement_sequence: number;
82
+ announcement_company: string;
83
+ companyindex: number;
84
+ announcement_lastupdated: string;
85
+ announcement_datecreated: string;
86
+ announcement_smaid: string;
87
+ ann_timer: string;
88
+ ann_start: string;
89
+ ann_end: string;
90
+ grp: string;
91
+ time: string;
92
+ };
93
+ export type RawAlertAnnouncement = {
94
+ announcement_datecreated: string;
95
+ announcement_simplified: string;
96
+ };
97
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/home/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAgB,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,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,wBAAwB,EAAE,MAAM,CAAA;IAChC,wBAAwB,EAAE,MAAM,CAAA;IAChC,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,wBAAwB,EAAE,MAAM,CAAA;IAChC,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
@@ -0,0 +1,101 @@
1
+ import { FishGamesResponse } from '@/fishGames';
2
+ import { HotGamesResponse } from '@/hotGames';
3
+ import { BaseType } from '@/util/type';
4
+ export type HomeResponse = BaseType & {
5
+ game: Game;
6
+ mobileBanner: MobileBanner[];
7
+ announcement: Announcement[];
8
+ alertAnnouncement: AlertAnnouncement[];
9
+ hotGames: HotGamesResponse;
10
+ fishGames: FishGamesResponse;
11
+ };
12
+ export type Game = {
13
+ SPORT: PlatformGame[];
14
+ SPECIAL: PlatformGame[];
15
+ PVP: PlatformGame[];
16
+ LIVE: PlatformGame[];
17
+ EVENT: PlatformGame[];
18
+ ESPORT: PlatformGame[];
19
+ EGAME: PlatformGame[];
20
+ BINGO: PlatformGame[];
21
+ };
22
+ export type PlatformGame = {
23
+ id: number;
24
+ idPlatformMaster: number;
25
+ idProductMaster: number;
26
+ name: string;
27
+ shortName: string;
28
+ img: string;
29
+ mobileUrl: string;
30
+ url: string;
31
+ desc: string;
32
+ seq: number;
33
+ flag: number;
34
+ status: string;
35
+ createdBy: number;
36
+ createdOn: string;
37
+ categoryID: number;
38
+ com: string;
39
+ cur: string;
40
+ pt: string;
41
+ ppName: string;
42
+ ppImage: string;
43
+ platformCode: string;
44
+ platformName: string;
45
+ classIcon: string;
46
+ productCode: string;
47
+ productName: string;
48
+ gameID: number;
49
+ fAuth: boolean;
50
+ platformStatusParams: PlatformStatusParam;
51
+ loginFlag: boolean;
52
+ link: string;
53
+ favouriteFlag: boolean;
54
+ platformStatusFlag: string;
55
+ platformFlagName: string;
56
+ homeLogo: string;
57
+ imgPf: string;
58
+ imgSport: string;
59
+ imgTemplate: string;
60
+ };
61
+ export type PlatformStatusParam = {
62
+ eb: boolean;
63
+ fit: boolean;
64
+ fs: boolean;
65
+ };
66
+ export type MobileBanner = {
67
+ name: string;
68
+ content: string;
69
+ link: string;
70
+ linkTarget: string;
71
+ updatedOn: string;
72
+ idCmsCategory: number;
73
+ contentOrg: string;
74
+ };
75
+ export type Announcement = {
76
+ announcementIndex: number;
77
+ announcementEnglish: string;
78
+ announcementSimplified: string;
79
+ announcementTraditional: string;
80
+ announcementMalay: string;
81
+ announcementStatus: boolean;
82
+ announcementShow: boolean;
83
+ announcementAlert: boolean;
84
+ announcementUser: boolean;
85
+ announcementSequence: number;
86
+ announcementCompany: boolean;
87
+ companyIndex: number;
88
+ announcementLastUpdated: string;
89
+ announcementDateCreated: string;
90
+ announcementSmaid: string;
91
+ annTimer: string;
92
+ annStart: string;
93
+ annEnd: string;
94
+ grp: string;
95
+ time: string;
96
+ };
97
+ export type AlertAnnouncement = {
98
+ announcementDateCreated: string;
99
+ announcementSimplified: string;
100
+ };
101
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/home/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG;IACpC,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,EAAE,YAAY,EAAE,CAAA;IAC5B,YAAY,EAAE,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IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,sBAAsB,EAAE,MAAM,CAAA;CAC/B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hotGames/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { HotGamesResponse } from './type';
2
+ export type RawHotGamesResponse = {
3
+ current_page: number;
4
+ data: {
5
+ id: number;
6
+ name: string;
7
+ pfid: number;
8
+ ppname: string;
9
+ code: string;
10
+ img: string;
11
+ progressive: string;
12
+ ppid: number;
13
+ notry: number;
14
+ product_code: string;
15
+ imgSrc: string;
16
+ imgPf: string;
17
+ favourite_flag: number;
18
+ platform_status_flag: string;
19
+ platform_flag_name: string;
20
+ platform_status_params: {
21
+ eb: boolean;
22
+ fit: boolean;
23
+ fs: boolean;
24
+ };
25
+ game_id: number;
26
+ }[];
27
+ from: number;
28
+ last_page: number;
29
+ next_page_url: string;
30
+ path: string;
31
+ per_page: number;
32
+ prev_page_url: string;
33
+ to: number;
34
+ total: number;
35
+ };
36
+ export declare function getHotGames(): Promise<HotGamesResponse>;
37
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/hotGames/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAGzC,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,YAAY,EAAE,MAAM,CAAA;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,cAAc,EAAE,MAAM,CAAA;QACtB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,kBAAkB,EAAE,MAAM,CAAA;QAC1B,sBAAsB,EAAE;YACtB,EAAE,EAAE,OAAO,CAAA;YACX,GAAG,EAAE,OAAO,CAAA;YACZ,EAAE,EAAE,OAAO,CAAA;SACZ,CAAA;QACD,OAAO,EAAE,MAAM,CAAA;KAChB,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAkF7D"}
@@ -0,0 +1,37 @@
1
+ import { BaseType } from '@/util/type';
2
+ export type HotGamesResponse = BaseType & {
3
+ currentPage: number;
4
+ data: {
5
+ id: number;
6
+ name: string;
7
+ pfid: number;
8
+ ppname: string;
9
+ code: string;
10
+ img: string;
11
+ progressive: string;
12
+ ppid: number;
13
+ notry: boolean;
14
+ productCode: string;
15
+ imgSrc: string;
16
+ imgPf: string;
17
+ favouriteFlag: boolean;
18
+ platformStatusFlag: string;
19
+ platformFlagName: string;
20
+ platformStatusParams: HotPlatformStatusParam;
21
+ gameId: number;
22
+ }[];
23
+ from: number;
24
+ lastPage: number;
25
+ nextPageUrl: string;
26
+ path: string;
27
+ perPage: number;
28
+ prevPageUrl: string;
29
+ to: number;
30
+ total: number;
31
+ };
32
+ export type HotPlatformStatusParam = {
33
+ eb: boolean;
34
+ fit: boolean;
35
+ fs: boolean;
36
+ };
37
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/hotGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,OAAO,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;QACb,aAAa,EAAE,OAAO,CAAA;QACtB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,gBAAgB,EAAE,MAAM,CAAA;QACxB,oBAAoB,EAAE,sBAAsB,CAAA;QAC5C,MAAM,EAAE,MAAM,CAAA;KACf,EAAE,CAAA;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,22 +1,13 @@
1
- export * from './products';
2
- export * from './platforms';
3
- export * from './announcement';
4
- export * from './gKey';
5
- export * from './promotions';
6
- export * from './language';
1
+ export * from './legacy/announcement';
2
+ export * from './legacy/gKey';
3
+ export * from './legacy/language';
7
4
  export { default as Repository } from './plugin';
8
- import * as products from './products';
9
- import * as platforms from './platforms';
10
- import * as announcement from './announcement';
11
- import * as gKey from './gKey';
12
- import * as promotions from './promotions';
13
- import * as language from './language';
5
+ import * as announcement from './legacy/announcement';
6
+ import * as gKey from './legacy/gKey';
7
+ import * as language from './legacy/language';
14
8
  export type RepositoryType = {
15
- products: typeof products;
16
- platforms: typeof platforms;
17
9
  announcement: typeof announcement;
18
10
  gKey: typeof gKey;
19
- promotions: typeof promotions;
20
11
  language: typeof language;
21
12
  };
22
13
  //# 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,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,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;AAC1C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AAEtC,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;IAC7B,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAA;AACrC,cAAc,eAAe,CAAA;AAE7B,cAAc,mBAAmB,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAIhD,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAA;AACrD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AAErC,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,MAAM,MAAM,cAAc,GAAG;IAG3B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,IAAI,CAAA;IAEjB,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC1B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,3 @@
1
1
  import { AnnouncementResponse } from './type';
2
-
3
2
  export declare function getAnnouncement(): Promise<AnnouncementResponse>;
4
3
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/announcement/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAE7C,wBAAsB,eAAe,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA8CrE"}
@@ -1,5 +1,4 @@
1
- import { BaseType } from '../util/type';
2
-
1
+ import { BaseType } from '../../util/type';
3
2
  export type AnnouncementResponse = BaseType & {
4
3
  data: Announcement[];
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/announcement/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { GetGKeyResponse } from './type';
2
-
3
2
  export declare function setGKey(key: string): Promise<void>;
4
3
  export declare function getGKey(): Promise<GetGKeyResponse>;
5
4
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/gKey/method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAGxC,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExD;AAED,wBAAsB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CA+BxD"}
@@ -0,0 +1,5 @@
1
+ import { BaseType } from '../../util/type';
2
+ export type GetGKeyResponse = BaseType & {
3
+ data: string;
4
+ };
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/gKey/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,MAAM,CAAA;CACb,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/legacy/language/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,3 @@
1
1
  import { GetLanguageListResponse } from './type';
2
-
3
2
  export declare function getLanguageList(): Promise<GetLanguageListResponse>;
4
3
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/language/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,wBAAsB,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAiDxE"}
@@ -1,5 +1,4 @@
1
- import { BaseType } from '../util/type';
2
-
1
+ import { BaseType } from '../../util/type';
3
2
  export type GetLanguageListResponse = BaseType & {
4
3
  data: string[];
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/language/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG;IAC/C,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,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/legacy/platforms/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,3 @@
1
1
  import { PlatformsResponse } from './type';
2
-
3
2
  export declare function getPlatforms(): Promise<PlatformsResponse>;
4
3
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/platforms/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAE1C,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CA2C/D"}
@@ -1,5 +1,4 @@
1
1
  import { BaseType } from '../util/type';
2
-
3
2
  export type PlatformsResponse = BaseType & {
4
3
  data: Platform[];
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/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"}
@@ -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/legacy/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,3 @@
1
1
  import { ProductsResponse } from './type';
2
-
3
2
  export declare function getProducts(): Promise<ProductsResponse>;
4
3
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/products/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,wBAAsB,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA2C7D"}
@@ -1,5 +1,4 @@
1
1
  import { BaseType } from '../util/type';
2
-
3
2
  export type ProductsResponse = BaseType & {
4
3
  data: Product[];
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/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,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/legacy/promotions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,3 @@
1
1
  import { PromotionsResponse } from './type';
2
-
3
2
  export declare function getPromotions(): Promise<PromotionsResponse>;
4
3
  //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../../src/legacy/promotions/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAuDjE"}
@@ -1,5 +1,4 @@
1
1
  import { BaseType } from '../util/type';
2
-
3
2
  export type PromotionsResponse = BaseType & {
4
3
  data: PromotionsCategory[];
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/legacy/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"}
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const gKey: import('vue').Ref<string>;
1
+ export declare const gKey: import("vue").Ref<string>;
2
2
  export declare function getRender(): number;
3
3
  declare const _default: {
4
4
  install(): void;
@@ -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/trialGames/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { TrialGamesResponse } from './type';
2
+ export type RawTrialGamesResponse = {
3
+ ppid: number;
4
+ ppname: string;
5
+ games: RawTrialGames[];
6
+ };
7
+ export type RawTrialGames = {
8
+ id: number;
9
+ name: string;
10
+ img: string;
11
+ progressive: string;
12
+ notry: number;
13
+ imgSrc: string;
14
+ imgPf: string;
15
+ favourite_flag: number;
16
+ platform_status_Fflag: string;
17
+ platform_flag_name: string;
18
+ platform_status_params: {
19
+ eb: boolean;
20
+ fit: boolean;
21
+ fs: boolean;
22
+ };
23
+ ppname: string;
24
+ };
25
+ export declare function getTrialGames(): Promise<TrialGamesResponse>;
26
+ //# sourceMappingURL=method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/trialGames/method.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,sBAAsB,EAAE;QACtB,EAAE,EAAE,OAAO,CAAA;QACX,GAAG,EAAE,OAAO,CAAA;QACZ,EAAE,EAAE,OAAO,CAAA;KACZ,CAAA;IACD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CA+DjE"}
@@ -0,0 +1,26 @@
1
+ import { BaseType } from '@/util/type';
2
+ export type TrialGamesResponse = BaseType & {
3
+ ppid: number;
4
+ ppname: string;
5
+ games: TrialGames[];
6
+ };
7
+ export type TrialGames = {
8
+ id: number;
9
+ name: string;
10
+ img: string;
11
+ progressive: string;
12
+ notry: boolean;
13
+ imgSrc: string;
14
+ imgPf: string;
15
+ favouriteFlag: boolean;
16
+ platformStatusFflag: string;
17
+ platformFlagName: string;
18
+ platformStatusParams: TrialPlatformStatusParam;
19
+ ppname: string;
20
+ };
21
+ export type TrialPlatformStatusParam = {
22
+ eb: boolean;
23
+ fit: boolean;
24
+ fs: boolean;
25
+ };
26
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/trialGames/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,oBAAoB,EAAE,wBAAwB,CAAA;IAC9C,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,EAAE,EAAE,OAAO,CAAA;CACZ,CAAA"}
@@ -1,3 +1,3 @@
1
- declare const axiosInstance: import('axios').AxiosInstance;
1
+ declare const axiosInstance: import("axios").AxiosInstance;
2
2
  export default axiosInstance;
3
3
  //# sourceMappingURL=axiosConfig.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "50p82u21t54k",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/50p82u21t54k.umd.js",
6
6
  "module": "dist/50p82u21t54k.es.js",
@@ -1,237 +0,0 @@
1
- import d from "axios";
2
- import { ref as m } from "vue";
3
- import c from "crypto-js";
4
- const o = d.create({
5
- baseURL: "/apis",
6
- timeout: 5e3,
7
- // Request timeout
8
- headers: {
9
- "Content-Type": "application/json"
10
- }
11
- // params: { apiKey: 'your-api-key' }, // Default query parameters that will be sent with each request.
12
- // auth: { username: 'user', password: 'pass' }, // Basic authentication credentials.
13
- // responseEncoding: 'utf8', // Indicates the encoding to use for the response.
14
- // responseType: 'json', // Specifies the type of data the server will respond with.
15
- // xsrfCookieName: 'XSRF-TOKEN', // The name of the cookie to use as a value for the xsrf token.
16
- // xsrfHeaderName: 'X-XSRF-TOKEN', // The name of the HTTP header that carries the xsrf token value.
17
- // maxContentLength: 2000, // The maximum size of the HTTP response content in bytes allowed.
18
- // maxBodyLength: 2000, // The maximum size of the request body in bytes allowed.
19
- // // Allows changes to the request data before it is sent to the server.
20
- // transformRequest: [
21
- // (data, headers) => {
22
- // console.log(headers)
23
- // console.log(data)
24
- // // Modify data and headers here
25
- // return data
26
- // },
27
- // ],
28
- // // Allows changes to the response data before it is passed to then or catch.
29
- // transformResponse: [
30
- // (data) => {
31
- // // Modify data here
32
- // return data
33
- // },
34
- // ],
35
- // // Custom function to validate the response status code.
36
- // validateStatus: (status) => {
37
- // return status >= 200 && status < 300 // default
38
- // },
39
- // withCredentials: true, // Indicates whether or not cross-site Access-Control requests should be made using credentials.
40
- // // Defines the proxy server settings.
41
- // proxy: {
42
- // host: '127.0.0.1',
43
- // port: 9000,
44
- // auth: {
45
- // username: 'proxyuser',
46
- // password: 'proxypass',
47
- // },
48
- // },
49
- });
50
- o.interceptors.request.use(
51
- (e) => e,
52
- (e) => (console.error("Error request:", e.response), Promise.reject(e))
53
- );
54
- o.interceptors.response.use(
55
- (e) => e,
56
- (e) => {
57
- const s = {
58
- status: null,
59
- message: "An error occurred"
60
- };
61
- 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);
62
- }
63
- );
64
- const i = m("");
65
- function a() {
66
- return i.value === "" ? 0 : 1;
67
- }
68
- const f = {
69
- install() {
70
- }
71
- }, u = (e) => {
72
- try {
73
- const s = JSON.parse(
74
- c.AES.decrypt(e, i.value, {
75
- format: {
76
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
- stringify: (t) => {
78
- const r = {
79
- ct: t.ciphertext.toString(c.enc.Base64)
80
- };
81
- return t.iv && (r.iv = t.iv.toString()), t.salt && (r.s = t.salt.toString()), JSON.stringify(r);
82
- },
83
- parse: (t) => {
84
- const r = JSON.parse(t), n = c.lib.CipherParams.create({
85
- ciphertext: c.enc.Base64.parse(r.ct)
86
- });
87
- return r.iv && (n.iv = c.enc.Hex.parse(r.iv)), r.s && (n.salt = c.enc.Hex.parse(r.s)), n;
88
- }
89
- }
90
- }).toString(c.enc.Utf8)
91
- );
92
- return s !== "" ? JSON.parse(s) : s;
93
- } catch (s) {
94
- return console.error(s), "";
95
- }
96
- };
97
- async function y() {
98
- const e = {
99
- status: 200,
100
- message: "",
101
- data: []
102
- };
103
- try {
104
- const s = await o.get("/products", {
105
- params: {
106
- render: a()
107
- }
108
- });
109
- let t;
110
- return a() ? 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);
111
- } catch (s) {
112
- const t = s;
113
- return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
114
- }
115
- }
116
- async function _() {
117
- const e = {
118
- status: 200,
119
- message: "",
120
- data: []
121
- };
122
- try {
123
- const s = await o.get("/platforms", {
124
- params: {
125
- render: a()
126
- }
127
- });
128
- let t;
129
- return a() ? 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);
130
- } catch (s) {
131
- const t = s;
132
- return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
133
- }
134
- }
135
- async function x() {
136
- const e = {
137
- status: 200,
138
- message: "",
139
- data: []
140
- };
141
- try {
142
- const s = await o.get("/announcements", {
143
- params: {
144
- render: a()
145
- }
146
- });
147
- let t;
148
- return a() ? t = u(s.data) : t = s.data, t.code != 200 ? (e.status = t.code, e.message = t.message, e) : (console.log(t), e.data = t.results.data.map((r) => ({
149
- alert: r.alert === "1",
150
- announcement_content: r.announcement_content,
151
- date_created: r.date_created
152
- })), e);
153
- } catch (s) {
154
- const t = s;
155
- return e.status = t.status || 500, e.message = "", e;
156
- }
157
- }
158
- async function S(e) {
159
- i.value = e;
160
- }
161
- async function h() {
162
- const e = {
163
- status: 200,
164
- message: "",
165
- data: ""
166
- };
167
- try {
168
- const t = (await o.get("/getGKey", {
169
- params: {
170
- render: a()
171
- }
172
- })).data;
173
- return t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (e.data = t.results.gkey, e);
174
- } catch (s) {
175
- const t = s;
176
- return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
177
- }
178
- }
179
- async function A() {
180
- const e = {
181
- status: 200,
182
- message: "",
183
- data: []
184
- };
185
- try {
186
- const s = await o.get("/promotions", {
187
- params: {
188
- render: a()
189
- }
190
- });
191
- let t;
192
- return a() ? t = u(s.data) : t = s.data, t.code !== 200 ? (e.status = t.code, e.message = t.message, e) : (console.log(t), e.data = t.results.data.map((r) => ({
193
- cat_id: r.cat_id,
194
- name: r.name,
195
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
196
- promo_list: r.promo_list.map((n) => ({
197
- promo_title: n.promo_title,
198
- start_time: n.start_time ?? "",
199
- end_time: n.end_time ?? "",
200
- img_path: n.img_path,
201
- content: n.content
202
- }))
203
- })), e);
204
- } catch (s) {
205
- const t = s;
206
- return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
207
- }
208
- }
209
- async function w() {
210
- const e = {
211
- status: 200,
212
- message: "",
213
- data: []
214
- };
215
- try {
216
- const s = await o.get("/getLangList", {
217
- params: {
218
- render: a()
219
- }
220
- });
221
- let t;
222
- return a() ? t = u(s.data) : t = s.data, t.code !== 200 && (e.status = t.code, e.message = t.message), e;
223
- } catch (s) {
224
- const t = s;
225
- return e.status = t.status || 500, e.message = t.message || "An unexpected error occurred", e;
226
- }
227
- }
228
- export {
229
- f as Repository,
230
- x as getAnnouncement,
231
- h as getGKey,
232
- w as getLanguageList,
233
- _ as getPlatforms,
234
- y as getProducts,
235
- A as getPromotions,
236
- S as setGKey
237
- };
@@ -1 +0,0 @@
1
- (function(a,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],i):(a=typeof globalThis<"u"?globalThis:a||self,i(a["50p82u21t54k"]={},a.axios,a.Vue,a.CryptoJS))})(this,function(a,i,m,u){"use strict";const c=i.create({baseURL:"/apis",timeout:5e3,headers:{"Content-Type":"application/json"}});c.interceptors.request.use(e=>e,e=>(console.error("Error request:",e.response),Promise.reject(e))),c.interceptors.response.use(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)});const g=m.ref("");function n(){return g.value===""?0:1}const l={install(){}},d=e=>{try{const s=JSON.parse(u.AES.decrypt(e,g.value,{format:{stringify:t=>{const r={ct:t.ciphertext.toString(u.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=u.lib.CipherParams.create({ciphertext:u.enc.Base64.parse(r.ct)});return r.iv&&(o.iv=u.enc.Hex.parse(r.iv)),r.s&&(o.salt=u.enc.Hex.parse(r.s)),o}}}).toString(u.enc.Utf8));return s!==""?JSON.parse(s):s}catch(s){return console.error(s),""}};async function p(){const e={status:200,message:"",data:[]};try{const s=await c.get("/products",{params:{render:n()}});let t;return n()?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 f(){const e={status:200,message:"",data:[]};try{const s=await c.get("/platforms",{params:{render:n()}});let t;return n()?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 c.get("/announcements",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!=200?(e.status=t.code,e.message=t.message,e):(console.log(t),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 _(e){g.value=e}async function h(){const e={status:200,message:"",data:""};try{const t=(await c.get("/getGKey",{params:{render:n()}})).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 j(){const e={status:200,message:"",data:[]};try{const s=await c.get("/promotions",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200?(e.status=t.code,e.message=t.message,e):(console.log(t),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}}async function x(){const e={status:200,message:"",data:[]};try{const s=await c.get("/getLangList",{params:{render:n()}});let t;return n()?t=d(s.data):t=s.data,t.code!==200&&(e.status=t.code,e.message=t.message),e}catch(s){const t=s;return e.status=t.status||500,e.message=t.message||"An unexpected error occurred",e}}a.Repository=l,a.getAnnouncement=y,a.getGKey=h,a.getLanguageList=x,a.getPlatforms=f,a.getProducts=p,a.getPromotions=j,a.setGKey=_,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
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,CA8CrE"}
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/gKey/method.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAGxC,wBAAsB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAExD;AAED,wBAAsB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,CA+BxD"}
@@ -1,6 +0,0 @@
1
- import { BaseType } from '../util/type';
2
-
3
- export type GetGKeyResponse = BaseType & {
4
- data: string;
5
- };
6
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/language/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/language/method.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,wBAAsB,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAiDxE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/language/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG;IAC/C,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platforms/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/products/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
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 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promotions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1 +0,0 @@
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"}
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
File without changes
File without changes
File without changes
File without changes
File without changes