50p82u21t54k 0.0.15 → 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 (96) 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 +7 -13
  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 +3 -0
  35. package/dist/legacy/gKey/index.d.ts.map +1 -0
  36. package/dist/{gKey → legacy/gKey}/method.d.ts +1 -1
  37. package/dist/legacy/gKey/method.d.ts.map +1 -0
  38. package/dist/legacy/gKey/type.d.ts +5 -0
  39. package/dist/legacy/gKey/type.d.ts.map +1 -0
  40. package/dist/legacy/language/index.d.ts +3 -0
  41. package/dist/legacy/language/index.d.ts.map +1 -0
  42. package/dist/legacy/language/method.d.ts +3 -0
  43. package/dist/legacy/language/method.d.ts.map +1 -0
  44. package/dist/legacy/language/type.d.ts +11 -0
  45. package/dist/legacy/language/type.d.ts.map +1 -0
  46. package/dist/legacy/platforms/index.d.ts +3 -0
  47. package/dist/legacy/platforms/index.d.ts.map +1 -0
  48. package/dist/{platforms → legacy/platforms}/method.d.ts +0 -1
  49. package/dist/legacy/platforms/method.d.ts.map +1 -0
  50. package/dist/{platforms → legacy/platforms}/type.d.ts +0 -1
  51. package/dist/legacy/platforms/type.d.ts.map +1 -0
  52. package/dist/legacy/products/index.d.ts +3 -0
  53. package/dist/legacy/products/index.d.ts.map +1 -0
  54. package/dist/{products → legacy/products}/method.d.ts +0 -1
  55. package/dist/legacy/products/method.d.ts.map +1 -0
  56. package/dist/{products → legacy/products}/type.d.ts +0 -1
  57. package/dist/legacy/products/type.d.ts.map +1 -0
  58. package/dist/legacy/promotions/index.d.ts +3 -0
  59. package/dist/legacy/promotions/index.d.ts.map +1 -0
  60. package/dist/{promotions → legacy/promotions}/method.d.ts +0 -1
  61. package/dist/legacy/promotions/method.d.ts.map +1 -0
  62. package/dist/{promotions → legacy/promotions}/type.d.ts +0 -1
  63. package/dist/legacy/promotions/type.d.ts.map +1 -0
  64. package/dist/plugin.d.ts +2 -5
  65. package/dist/plugin.d.ts.map +1 -1
  66. package/dist/trialGames/index.d.ts +3 -0
  67. package/dist/trialGames/index.d.ts.map +1 -0
  68. package/dist/trialGames/method.d.ts +26 -0
  69. package/dist/trialGames/method.d.ts.map +1 -0
  70. package/dist/trialGames/type.d.ts +26 -0
  71. package/dist/trialGames/type.d.ts.map +1 -0
  72. package/dist/util/axiosConfig.d.ts +1 -1
  73. package/package.json +1 -1
  74. package/dist/50p82u21t54k.es.js +0 -219
  75. package/dist/50p82u21t54k.umd.js +0 -1
  76. package/dist/announcement/index.d.ts.map +0 -1
  77. package/dist/announcement/method.d.ts.map +0 -1
  78. package/dist/announcement/type.d.ts.map +0 -1
  79. package/dist/gKey/index.d.ts.map +0 -1
  80. package/dist/gKey/method.d.ts.map +0 -1
  81. package/dist/gKey/type.d.ts +0 -6
  82. package/dist/gKey/type.d.ts.map +0 -1
  83. package/dist/platforms/index.d.ts.map +0 -1
  84. package/dist/platforms/method.d.ts.map +0 -1
  85. package/dist/platforms/type.d.ts.map +0 -1
  86. package/dist/products/index.d.ts.map +0 -1
  87. package/dist/products/method.d.ts.map +0 -1
  88. package/dist/products/type.d.ts.map +0 -1
  89. package/dist/promotions/index.d.ts.map +0 -1
  90. package/dist/promotions/type.d.ts.map +0 -1
  91. package/dist/vite.svg +0 -1
  92. /package/dist/{announcement → fishGames}/index.d.ts +0 -0
  93. /package/dist/{gKey → getSetting}/index.d.ts +0 -0
  94. /package/dist/{platforms → home}/index.d.ts +0 -0
  95. /package/dist/{products → hotGames}/index.d.ts +0 -0
  96. /package/dist/{promotions → legacy/announcement}/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,CAqDjE"}
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,MAAM,QAAQ,CAAA;AAMnD,wBAAsB,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,CA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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,YAAY,EAAE,CAAA;IAC5B,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;IACtC,QAAQ,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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,19 +1,13 @@
1
- export * from './products';
2
- export * from './platforms';
3
- export * from './announcement';
4
- export * from './gKey';
5
- export * from './promotions';
1
+ export * from './legacy/announcement';
2
+ export * from './legacy/gKey';
3
+ export * from './legacy/language';
6
4
  export { default as Repository } from './plugin';
7
- import * as products from './products';
8
- import * as platforms from './platforms';
9
- import * as announcement from './announcement';
10
- import * as gKey from './gKey';
11
- import * as promotions from './promotions';
5
+ import * as announcement from './legacy/announcement';
6
+ import * as gKey from './legacy/gKey';
7
+ import * as language from './legacy/language';
12
8
  export type RepositoryType = {
13
- products: typeof products;
14
- platforms: typeof platforms;
15
9
  announcement: typeof announcement;
16
10
  gKey: typeof gKey;
17
- promotions: typeof promotions;
11
+ language: typeof language;
18
12
  };
19
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,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"}
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,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/gKey/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { GetGKeyResponse } from './type';
2
-
2
+ export declare function setGKey(key: string): Promise<void>;
3
3
  export declare function getGKey(): Promise<GetGKeyResponse>;
4
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"}
@@ -0,0 +1,3 @@
1
+ import { GetLanguageListResponse } from './type';
2
+ export declare function getLanguageList(): Promise<GetLanguageListResponse>;
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"}
@@ -0,0 +1,11 @@
1
+ import { BaseType } from '../../util/type';
2
+ export type GetLanguageListResponse = BaseType & {
3
+ data: string[];
4
+ };
5
+ export type LocaleList = {
6
+ [key: string]: Locale;
7
+ };
8
+ export type Locale = {
9
+ label: string;
10
+ };
11
+ //# sourceMappingURL=type.d.ts.map
@@ -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,10 +1,7 @@
1
- import { App } from 'vue';
2
-
3
- export declare function setGKey(key: string): void;
4
- export declare function getGKey(): string;
1
+ export declare const gKey: import("vue").Ref<string>;
5
2
  export declare function getRender(): number;
6
3
  declare const _default: {
7
- install(app: App): void;
4
+ install(): void;
8
5
  };
9
6
  export default _default;
10
7
  //# 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;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"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,2BAAU,CAAA;AAE3B,wBAAgB,SAAS,IAAI,MAAM,CAElC;;;;AAED,wBAEC"}
@@ -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.15",
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,219 +0,0 @@
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;
66
- }
67
- function m() {
68
- return i;
69
- }
70
- function n() {
71
- return i === "" ? 0 : 1;
72
- }
73
- const f = {
74
- install(e) {
75
- e.provide("setRepositoryGKey", p);
76
- }
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), "";
101
- }
102
- };
103
- async function y() {
104
- const e = {
105
- status: 200,
106
- message: "",
107
- data: []
108
- };
109
- try {
110
- const s = await c.get("/products", {
111
- params: {
112
- render: n()
113
- }
114
- });
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;
120
- }
121
- }
122
- async function _() {
123
- const e = {
124
- status: 200,
125
- message: "",
126
- data: []
127
- };
128
- try {
129
- const s = await c.get("/platforms", {
130
- params: {
131
- render: n()
132
- }
133
- });
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;
139
- }
140
- }
141
- async function x() {
142
- const e = {
143
- status: 200,
144
- message: "",
145
- data: []
146
- };
147
- try {
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;
162
- }
163
- }
164
- async function S() {
165
- const e = {
166
- status: 200,
167
- message: "",
168
- data: ""
169
- };
170
- try {
171
- const t = (await c.get("/getGKey", {
172
- params: {
173
- render: n()
174
- }
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;
180
- }
181
- }
182
- async function h() {
183
- const e = {
184
- status: 200,
185
- message: "",
186
- data: []
187
- };
188
- try {
189
- const s = await c.get("/promotions", {
190
- params: {
191
- render: n()
192
- }
193
- });
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;
210
- }
211
- }
212
- export {
213
- f as Repository,
214
- x as getAnnouncement,
215
- S as getGKey,
216
- _ as getPlatforms,
217
- y as getProducts,
218
- h as getPromotions
219
- };
@@ -1 +0,0 @@
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 +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,CA4CrE"}
@@ -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;AAExC,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/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