karin-plugin-mys-core 1.0.0 → 1.0.2

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 (168) hide show
  1. package/LICENSE +674 -0
  2. package/lib/apps/MiHoYoLogin.d.ts +3 -1
  3. package/lib/apps/MiHoYoLogin.js +181 -125
  4. package/lib/apps/MysDevice.d.ts +5 -0
  5. package/lib/apps/MysDevice.js +101 -0
  6. package/lib/apps/UIDManage.d.ts +10 -0
  7. package/lib/apps/UIDManage.js +52 -0
  8. package/lib/array-CZDr9qst.d.ts +62 -0
  9. package/lib/chunk-2DHTKQ34.js +0 -0
  10. package/lib/chunk-3BIQN6QA.js +27 -0
  11. package/lib/chunk-3CNBOOKY.js +31 -0
  12. package/lib/chunk-5NA7ZPDS.js +54 -0
  13. package/lib/chunk-6PIXUPZ6.js +82 -0
  14. package/lib/chunk-7KEG6SDX.js +0 -0
  15. package/lib/chunk-7SZX3RBZ.js +0 -0
  16. package/lib/chunk-7VAWV6ZE.js +0 -0
  17. package/lib/chunk-7WESXE4X.js +29 -0
  18. package/lib/chunk-7YZHHLS5.js +130 -0
  19. package/lib/chunk-ARLTXJFJ.js +0 -0
  20. package/lib/chunk-CFS2WFOO.js +0 -0
  21. package/lib/chunk-EMAUATE3.js +217 -0
  22. package/lib/chunk-FBWSEBAW.js +0 -0
  23. package/lib/chunk-FOAQZIZ2.js +0 -0
  24. package/lib/chunk-G547WVGV.js +73 -0
  25. package/lib/chunk-G5W5WAY5.js +64 -0
  26. package/lib/chunk-HVYNK5BN.js +45 -0
  27. package/lib/chunk-I7XZONDN.js +13 -0
  28. package/lib/chunk-IVZICDGW.js +19 -0
  29. package/lib/chunk-JBGXPVO2.js +179 -0
  30. package/lib/chunk-JRH4JC43.js +0 -0
  31. package/lib/chunk-JVJQKRJ4.js +89 -0
  32. package/lib/chunk-K5U2O3HH.js +0 -0
  33. package/lib/chunk-KN5SHBVI.js +30 -0
  34. package/lib/chunk-LG34FPBI.js +50 -0
  35. package/lib/chunk-LJSDSOY6.js +0 -0
  36. package/lib/chunk-LYTNREAI.js +0 -0
  37. package/lib/chunk-MWYDWDR4.js +0 -0
  38. package/lib/chunk-QMSYS77M.js +38 -0
  39. package/lib/chunk-SEWEEPJN.js +0 -0
  40. package/lib/{chunk-JML6VYXN.js → chunk-SHLPPEAY.js} +13 -17
  41. package/lib/chunk-SHW6FHIB.js +10 -0
  42. package/lib/chunk-W4DBT7AD.js +0 -0
  43. package/lib/chunk-X75DW4KI.js +510 -0
  44. package/lib/chunk-XQWTJIT4.js +0 -0
  45. package/lib/chunk-Y3J3J5B2.js +124 -0
  46. package/lib/chunk-Z5I6A73Y.js +0 -0
  47. package/lib/common-Dw5l6Uud.d.ts +33 -0
  48. package/lib/define-BWuQ7acM.d.ts +131 -0
  49. package/lib/dir.d.ts +11 -13
  50. package/lib/dir.js +1 -1
  51. package/lib/exports/config/array.d.ts +1 -0
  52. package/lib/exports/config/array.js +7 -0
  53. package/lib/exports/config/config.d.ts +1 -0
  54. package/lib/exports/config/config.js +8 -0
  55. package/lib/exports/config/index.d.ts +2 -0
  56. package/lib/exports/config/index.js +14 -0
  57. package/lib/exports/config/types/config.d.ts +12 -0
  58. package/lib/exports/config/types/config.js +1 -0
  59. package/lib/exports/config/types/index.d.ts +1 -0
  60. package/lib/exports/config/types/index.js +2 -0
  61. package/lib/exports/database/database.d.ts +30 -0
  62. package/lib/exports/database/database.js +18 -0
  63. package/lib/exports/database/dbs/base.d.ts +23 -0
  64. package/lib/exports/database/dbs/base.js +15 -0
  65. package/lib/exports/database/dbs/index.d.ts +4 -0
  66. package/lib/exports/database/dbs/index.js +23 -0
  67. package/lib/exports/database/dbs/sqlite3.d.ts +23 -0
  68. package/lib/exports/database/dbs/sqlite3.js +19 -0
  69. package/lib/exports/database/dbs/table.d.ts +13 -0
  70. package/lib/exports/database/dbs/table.js +19 -0
  71. package/lib/exports/database/index.d.ts +12 -0
  72. package/lib/exports/database/index.js +62 -0
  73. package/lib/exports/database/tables/index.d.ts +9 -0
  74. package/lib/exports/database/tables/index.js +39 -0
  75. package/lib/exports/database/tables/mysAccountInfo.d.ts +9 -0
  76. package/lib/exports/database/tables/mysAccountInfo.js +23 -0
  77. package/lib/exports/database/tables/mysDeviceInfo.d.ts +9 -0
  78. package/lib/exports/database/tables/mysDeviceInfo.js +26 -0
  79. package/lib/exports/database/tables/mysUserInfo.d.ts +9 -0
  80. package/lib/exports/database/tables/mysUserInfo.js +23 -0
  81. package/lib/exports/database/types/database.d.ts +6 -0
  82. package/lib/exports/database/types/database.js +1 -0
  83. package/lib/exports/database/types/dbs/base.d.ts +114 -0
  84. package/lib/exports/database/types/dbs/base.js +11 -0
  85. package/lib/exports/database/types/dbs/index.d.ts +2 -0
  86. package/lib/exports/database/types/dbs/index.js +12 -0
  87. package/lib/exports/database/types/index.d.ts +6 -0
  88. package/lib/exports/database/types/index.js +24 -0
  89. package/lib/exports/database/types/tables/index.d.ts +5 -0
  90. package/lib/exports/database/types/tables/index.js +13 -0
  91. package/lib/exports/database/types/tables/mysAccountInfo.d.ts +14 -0
  92. package/lib/exports/database/types/tables/mysAccountInfo.js +7 -0
  93. package/lib/exports/database/types/tables/mysDeviceInfo.d.ts +19 -0
  94. package/lib/exports/database/types/tables/mysDeviceInfo.js +1 -0
  95. package/lib/exports/database/types/tables/mysUserInfo.d.ts +31 -0
  96. package/lib/exports/database/types/tables/mysUserInfo.js +7 -0
  97. package/lib/exports/mys/api/apis.d.ts +82 -0
  98. package/lib/exports/mys/api/apis.js +57 -0
  99. package/lib/exports/mys/api/app.d.ts +60 -0
  100. package/lib/exports/mys/api/app.js +31 -0
  101. package/lib/exports/mys/api/define.d.ts +6 -0
  102. package/lib/exports/mys/api/define.js +43 -0
  103. package/lib/exports/mys/api/index.d.ts +11 -0
  104. package/lib/exports/mys/api/index.js +64 -0
  105. package/lib/exports/mys/index.d.ts +13 -0
  106. package/lib/exports/mys/index.js +77 -0
  107. package/lib/exports/mys/types/api/define.d.ts +6 -0
  108. package/lib/exports/mys/types/api/define.js +1 -0
  109. package/lib/exports/mys/types/api/index.d.ts +6 -0
  110. package/lib/exports/mys/types/api/index.js +2 -0
  111. package/lib/exports/mys/types/index.d.ts +10 -0
  112. package/lib/exports/mys/types/index.js +12 -0
  113. package/lib/exports/mys/types/user/game.d.ts +10 -0
  114. package/lib/exports/mys/types/user/game.js +1 -0
  115. package/lib/exports/mys/types/user/index.d.ts +10 -0
  116. package/lib/exports/mys/types/user/index.js +9 -0
  117. package/lib/exports/mys/types/user/userInfo.d.ts +10 -0
  118. package/lib/exports/mys/types/user/userInfo.js +7 -0
  119. package/lib/exports/mys/user/deviceInfo.d.ts +11 -0
  120. package/lib/exports/mys/user/deviceInfo.js +29 -0
  121. package/lib/exports/mys/user/game.d.ts +20 -0
  122. package/lib/exports/mys/user/game.js +7 -0
  123. package/lib/exports/mys/user/index.d.ts +12 -0
  124. package/lib/exports/mys/user/index.js +51 -0
  125. package/lib/exports/mys/user/userInfo.d.ts +10 -0
  126. package/lib/exports/mys/user/userInfo.js +45 -0
  127. package/lib/exports/utils/common.d.ts +1 -0
  128. package/lib/exports/utils/common.js +13 -0
  129. package/lib/exports/utils/index.d.ts +2 -0
  130. package/lib/exports/utils/index.js +12 -0
  131. package/lib/exports/utils/render.d.ts +21 -0
  132. package/lib/exports/utils/render.js +7 -0
  133. package/lib/index-DEEWbZ0V.d.ts +102 -0
  134. package/lib/index.js +1 -1
  135. package/package.json +29 -16
  136. package/resources/fonts/HYWenHei-55W.ttf +0 -0
  137. package/resources/image/launcher-icon//345/216/237/347/245/236.png +0 -0
  138. package/resources/image/launcher-icon//345/264/251/345/235/2173.png +0 -0
  139. package/resources/image/launcher-icon//345/264/251/345/235/217/345/255/246/345/233/2552.png +0 -0
  140. package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/345/233/240/347/274/230/347/262/276/347/201/265.png +0 -0
  141. package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/346/230/237/347/251/271/351/223/201/351/201/223.png +0 -0
  142. package/resources/image/launcher-icon//346/230/237/345/270/203/350/260/267/345/234/260.png +0 -0
  143. package/resources/image/launcher-icon//346/234/252/345/256/232/344/272/213/344/273/266/347/260/277.png +0 -0
  144. package/resources/image/launcher-icon//347/273/235/345/214/272/351/233/266.png +0 -0
  145. package/resources/image/mys-logo.png +0 -0
  146. package/resources/template/ShowBindAccount/index.css +1 -0
  147. package/resources/template/ShowBindAccount/index.html +65 -0
  148. package/resources/template/ShowBindDevice/index.html +20 -0
  149. package/resources/template/ShowBindDevice/inex.css +1 -0
  150. package/resources/template/layout/default.css +1 -0
  151. package/resources/template/layout/default.html +27 -0
  152. package/config/config.json +0 -3
  153. package/lib/app.d.ts +0 -2
  154. package/lib/base-B1BvQ4ol.d.ts +0 -99
  155. package/lib/chunk-4JTLXC2G.js +0 -519
  156. package/lib/chunk-7QISGXVH.js +0 -347
  157. package/lib/chunk-JIO4GOQA.js +0 -31
  158. package/lib/database-BDHrI6Vm.d.ts +0 -5
  159. package/lib/define-CrfHwHnK.d.ts +0 -163
  160. package/lib/exports/core.d.ts +0 -228
  161. package/lib/exports/core.js +0 -39
  162. package/lib/exports/database.d.ts +0 -47
  163. package/lib/exports/database.js +0 -17
  164. package/lib/exports/types.d.ts +0 -10
  165. package/lib/exports/types.js +0 -11
  166. package/lib/index.d.ts +0 -2
  167. package/lib/web.config.d.ts +0 -5
  168. package/lib/web.config.js +0 -30
@@ -1,228 +0,0 @@
1
- import { c as DefineMysApi, a as BaseMysRes, B as BaseltuidInfo, b as UserGameRoleItem, S as StokenParms, R as RefreshUidData, C as Config } from '../define-CrfHwHnK.js';
2
- export { d as MysApp } from '../define-CrfHwHnK.js';
3
- import { B as BaseUserInfoType, b as DatabaseReturn, e as MysAccountInfoType, f as MysAccountType } from '../base-B1BvQ4ol.js';
4
- export { dir as CoreDir } from '../dir.js';
5
- import 'node-karin/axios';
6
- import 'sequelize';
7
-
8
- declare const fetchQRcode: () => DefineMysApi<BaseMysRes & {
9
- data: {
10
- url: string;
11
- };
12
- }, {
13
- device: string;
14
- }>;
15
- declare const queryQRcode: () => DefineMysApi<BaseMysRes & {
16
- data: {
17
- stat: "Scanned" | "Confirmed";
18
- payload: {
19
- raw: string;
20
- };
21
- };
22
- }, {
23
- device: string;
24
- ticket: string;
25
- }>;
26
- declare const getTokenByGameToken: () => DefineMysApi<BaseMysRes & {
27
- data: {
28
- token: {
29
- token: string;
30
- };
31
- user_info: {
32
- aid: string;
33
- mid: string;
34
- };
35
- };
36
- }, {
37
- account_id: number;
38
- game_token: string;
39
- }>;
40
- declare const getCookieAccountInfoByGameToken: () => DefineMysApi<BaseMysRes & {
41
- data: {
42
- cookie_token: string;
43
- };
44
- }, {
45
- account_id: string;
46
- game_token: string;
47
- }>;
48
- declare const getCookieTokenBySToken: (method: "GET" | "POST") => DefineMysApi<BaseMysRes & {
49
- data: {
50
- cookie_token: string;
51
- };
52
- }, {
53
- stoken: string;
54
- }>;
55
- declare const getUserGameRolesByCookie: (uidInfo: {
56
- cookie: string;
57
- } & BaseltuidInfo) => DefineMysApi<BaseMysRes & {
58
- data: {
59
- list: UserGameRoleItem[];
60
- };
61
- }, {}>;
62
- declare const getUserFullInfo: (uidInfo: {
63
- cookie: string;
64
- } & BaseltuidInfo) => DefineMysApi<BaseMysRes & {
65
- data: {
66
- user_info: {
67
- uid: string;
68
- };
69
- };
70
- }, {}>;
71
-
72
- declare const MysHosts: Readonly<{
73
- bbs: {
74
- mihoyo: string;
75
- hoyolab: string;
76
- };
77
- web: {
78
- mihoyo: string;
79
- hoyolab: string;
80
- /** new web host */
81
- miyoushe: string;
82
- };
83
- static: "https://api-takumi-static.mihoyo.com/";
84
- record: {
85
- mihoyo: string;
86
- hoyolab: string;
87
- };
88
- hk4e: {
89
- mihoyo: string;
90
- hoyolab: string;
91
- };
92
- hk4eGacha: "https://public-operation-hk4e.mihoyo.com/";
93
- hk4eSdk: "https://hk4e-sdk.mihoyo.com/";
94
- napGacha: {
95
- mihoyo: string;
96
- hoyolab: string;
97
- };
98
- publicData: {
99
- mihoyo: string;
100
- hoyolab: string;
101
- };
102
- napAct: {
103
- mihoyo: string;
104
- hoyolab: string;
105
- };
106
- passport: "https://passport-api.mihoyo.com/";
107
- hk4eSg: {
108
- hoyolab: string;
109
- };
110
- publicSg: {
111
- hoyolab: string;
112
- hoyoverse: string;
113
- };
114
- }>;
115
-
116
- declare class BaseUserInfo<U extends BaseUserInfoType> {
117
- #private;
118
- userId: BaseUserInfoType['userId'];
119
- UserInfo: DatabaseReturn<BaseUserInfoType>;
120
- refresh: () => Promise<this>;
121
- constructor(userId: string);
122
- get ltuids(): string[];
123
- get stuids(): string[];
124
- get deviceList(): string[];
125
- initMysAccountInfo(UserInfo: DatabaseReturn<BaseUserInfoType>): Promise<void>;
126
- getLtuidInfo(ltuid: string): Readonly<DatabaseReturn<MysAccountInfoType> | undefined>;
127
- saveUserInfo(data: U): Promise<void>;
128
- saveMysAccountInfo(data: MysAccountInfoType): Promise<void>;
129
- }
130
- declare class UserInfo extends BaseUserInfo<BaseUserInfoType> {
131
- static create(userId: string): Promise<BaseUserInfo<BaseUserInfoType>>;
132
- static refreshCookie(stokenParams: StokenParms, serv: MysAccountType): Promise<{
133
- Serv: MysAccountType;
134
- cookie: string;
135
- message: string;
136
- }>;
137
- static refreshUidFn(key: string, fn: (uidList: RefreshUidData) => void): void;
138
- static refreshUid: (options: {
139
- cookie: string;
140
- } & BaseltuidInfo) => Promise<{
141
- Serv: MysAccountType;
142
- uids: RefreshUidData;
143
- message: string;
144
- }>;
145
- }
146
-
147
- /**
148
- * 生成随机数
149
- * @param min - 最小值
150
- * @param max - 最大值
151
- * @returns
152
- */
153
- declare const random: (min: number, max: number) => number;
154
- /**
155
- * 睡眠函数
156
- * @param ms - 毫秒
157
- */
158
- declare const sleep: (ms: number) => Promise<unknown>;
159
- /**
160
- * 使用moment返回时间
161
- * @param format - 格式
162
- */
163
- declare const timef: (format?: string) => string;
164
- /**
165
- * 生成设备guid
166
- */
167
- declare const getDeviceGuid: () => string;
168
- /**
169
- * 生成随机字符串
170
- * @param length - 字符串长度
171
- */
172
- declare const randomString: (length: number, type: "Lower" | "Upper" | "All") => string;
173
- /**
174
- * 将字符串解析为key-value键值对
175
- * @param Str - 字符串
176
- * @param sep - 分隔符
177
- */
178
- declare const StrToObj: <D extends {
179
- [key: string]: string;
180
- }>(Str: string, sep: string | RegExp) => Partial<D>;
181
- /**
182
- * 将key-value键值对解析为字符串
183
- * @param obj - key-value键值对
184
- * @param sep - 分隔符
185
- */
186
- declare const ObjToStr: (obj: {
187
- [key: string]: string | number;
188
- }, sep: string) => string;
189
- /**
190
- * 使用moment返回今日剩余时间
191
- */
192
- declare const getEndOfDay: () => number;
193
-
194
- declare const common_ObjToStr: typeof ObjToStr;
195
- declare const common_StrToObj: typeof StrToObj;
196
- declare const common_getDeviceGuid: typeof getDeviceGuid;
197
- declare const common_getEndOfDay: typeof getEndOfDay;
198
- declare const common_random: typeof random;
199
- declare const common_randomString: typeof randomString;
200
- declare const common_sleep: typeof sleep;
201
- declare const common_timef: typeof timef;
202
- declare namespace common {
203
- export { common_ObjToStr as ObjToStr, common_StrToObj as StrToObj, common_getDeviceGuid as getDeviceGuid, common_getEndOfDay as getEndOfDay, common_random as random, common_randomString as randomString, common_sleep as sleep, common_timef as timef };
204
- }
205
-
206
- declare const Cfg: {
207
- "__#1173@#configCache": Config | null;
208
- loadConfig(): Config;
209
- mergeWithDefaults(userConfig: Record<string, any>, defaultConfig: Record<string, any>): Config;
210
- /**
211
- *
212
- * @param path 配置路径
213
- * @template T 配置类型
214
- * @description 获取配置路径对应的配置
215
- * @returns
216
- */
217
- get<T>(path: string, isArray: false): T;
218
- get<T>(path: string, isArray: true): EnhancedArray<T>;
219
- set<T>(path: string, value: T): void;
220
- };
221
- declare class EnhancedArray<T> extends Array<T> {
222
- #private;
223
- constructor(items: T[], path: string);
224
- add(element: T): this;
225
- remove(predicate: T | ((item: T) => boolean), isIndex?: boolean): this;
226
- }
227
-
228
- export { BaseUserInfo, Cfg, DefineMysApi, MysHosts, UserInfo, common, fetchQRcode, getCookieAccountInfoByGameToken, getCookieTokenBySToken, getTokenByGameToken, getUserFullInfo, getUserGameRolesByCookie, queryQRcode };
@@ -1,39 +0,0 @@
1
- import {
2
- BaseUserInfo,
3
- Cfg,
4
- DefineMysApi,
5
- MysApp,
6
- MysHosts,
7
- UserInfo,
8
- common_exports,
9
- fetchQRcode,
10
- getCookieAccountInfoByGameToken,
11
- getCookieTokenBySToken,
12
- getTokenByGameToken,
13
- getUserFullInfo,
14
- getUserGameRolesByCookie,
15
- queryQRcode
16
- } from "../chunk-4JTLXC2G.js";
17
- import "../chunk-7QISGXVH.js";
18
- import {
19
- dir
20
- } from "../chunk-JML6VYXN.js";
21
- import "../chunk-JIO4GOQA.js";
22
- import "../chunk-MLKGABMK.js";
23
- export {
24
- BaseUserInfo,
25
- Cfg,
26
- dir as CoreDir,
27
- DefineMysApi,
28
- MysApp,
29
- MysHosts,
30
- UserInfo,
31
- common_exports as common,
32
- fetchQRcode,
33
- getCookieAccountInfoByGameToken,
34
- getCookieTokenBySToken,
35
- getTokenByGameToken,
36
- getUserFullInfo,
37
- getUserGameRolesByCookie,
38
- queryQRcode
39
- };
@@ -1,47 +0,0 @@
1
- import { D as DatabaseFn } from '../database-BDHrI6Vm.js';
2
- import { d as DatabaseClassStatic, c as DatabaseClassInstance, a as DatabaseType, M as ModelAttributes, b as DatabaseReturn, e as MysAccountInfoType, B as BaseUserInfoType } from '../base-B1BvQ4ol.js';
3
- import * as sequelize from 'sequelize';
4
- import { DataTypes, ModelAttributeColumnOptions, Model, ModelStatic } from 'sequelize';
5
-
6
- declare class DatabaseClass {
7
- #private;
8
- constructor();
9
- /** 设置默认数据库 */
10
- default(Database: DatabaseFn, Static: DatabaseClassStatic): Promise<void>;
11
- /** 获取当前使用的数据库 */
12
- get<T extends Record<string, any>>(): DatabaseClassInstance<T>;
13
- get PkColumn(): (type: keyof typeof DataTypes, option?: Partial<ModelAttributeColumnOptions<Model>>) => ModelAttributeColumnOptions<Model>;
14
- get Column(): DatabaseClassStatic['Column'];
15
- get ArrayColumn(): DatabaseClassStatic['ArrayColumn'];
16
- get JsonColumn(): DatabaseClassStatic['JsonColumn'];
17
- }
18
- declare const Database: DatabaseClass;
19
-
20
- declare class DbBase<T extends Record<string, any>> {
21
- model: ModelStatic<Model>;
22
- databasePath: string;
23
- databaseType: DatabaseType;
24
- modelName: string;
25
- modelSchema: ModelAttributes<Model>;
26
- schemaToJSON(pk: string): T;
27
- userPath(pk: string): string;
28
- readSync(path: string, pk: string): DatabaseReturn<T>;
29
- readDirSync(pk: string): DatabaseReturn<T>;
30
- writeFileSync(pk: string, data: Record<string, any>): boolean;
31
- writeDirSync(pk: string, data: Record<string, any>): boolean;
32
- saveFile(pk: string): (data: T) => Promise<void>;
33
- saveDir(pk: string): (data: T) => Promise<void>;
34
- saveSql(model: Model<any, any>, pk: string): (data: T) => Promise<void>;
35
- }
36
-
37
- declare const MysAccountInfoDB: DatabaseClassInstance<MysAccountInfoType>;
38
-
39
- declare const BaseMysUserInfoSchema: {
40
- userId: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
41
- ltuids: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
42
- stuids: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
43
- deviceList: sequelize.ModelAttributeColumnOptions<sequelize.Model<any, any>>;
44
- };
45
- declare const MysUserInfoDB: DatabaseClassInstance<BaseUserInfoType>;
46
-
47
- export { BaseMysUserInfoSchema, Database, DbBase, MysAccountInfoDB, MysUserInfoDB };
@@ -1,17 +0,0 @@
1
- import {
2
- BaseMysUserInfoSchema,
3
- Database,
4
- DbBase,
5
- MysAccountInfoDB,
6
- MysUserInfoDB
7
- } from "../chunk-7QISGXVH.js";
8
- import "../chunk-JML6VYXN.js";
9
- import "../chunk-JIO4GOQA.js";
10
- import "../chunk-MLKGABMK.js";
11
- export {
12
- BaseMysUserInfoSchema,
13
- Database,
14
- DbBase,
15
- MysAccountInfoDB,
16
- MysUserInfoDB
17
- };
@@ -1,10 +0,0 @@
1
- export { a as BaseMysRes, B as BaseltuidInfo, C as Config, D as DeviceInfo, M as MysApiInfoFn, R as RefreshUidData, S as StokenParms, U as UidInfo, b as UserGameRoleItem } from '../define-CrfHwHnK.js';
2
- export { D as DatabaseFn } from '../database-BDHrI6Vm.js';
3
- export { B as BaseUserInfoType, c as DatabaseClassInstance, d as DatabaseClassStatic, b as DatabaseReturn, a as DatabaseType, D as Dialect, M as ModelAttributes, e as MysAccountInfoType, f as MysAccountType } from '../base-B1BvQ4ol.js';
4
- import 'node-karin/axios';
5
- import 'sequelize';
6
-
7
- interface MysDeviceInfoType {
8
- }
9
-
10
- export type { MysDeviceInfoType };
@@ -1,11 +0,0 @@
1
- import {
2
- DatabaseType,
3
- Dialect,
4
- MysAccountType
5
- } from "../chunk-JIO4GOQA.js";
6
- import "../chunk-MLKGABMK.js";
7
- export {
8
- DatabaseType,
9
- Dialect,
10
- MysAccountType
11
- };
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,5 +0,0 @@
1
- import * as node_karin from 'node-karin';
2
-
3
- declare const _default: node_karin.DefineConfig<any>;
4
-
5
- export { _default as default };
package/lib/web.config.js DELETED
@@ -1,30 +0,0 @@
1
- import {
2
- dir
3
- } from "./chunk-JML6VYXN.js";
4
- import "./chunk-MLKGABMK.js";
5
-
6
- // src/web.config.ts
7
- import { defineConfig } from "node-karin";
8
- var web_config_default = defineConfig({
9
- /** 插件信息配置 */
10
- info: {
11
- id: dir.name,
12
- name: dir.name,
13
- version: dir.version
14
- },
15
- /** 动态渲染的组件 */
16
- components: () => [
17
- // 在这里面 添加各种子组件
18
- ],
19
- /** 前端点击保存之后调用的方法 */
20
- save: (config) => {
21
- console.log("\u4FDD\u5B58\u7684\u914D\u7F6E:", config);
22
- return {
23
- success: true,
24
- message: "\u4FDD\u5B58\u6210\u529F"
25
- };
26
- }
27
- });
28
- export {
29
- web_config_default as default
30
- };