karin-plugin-mys-core 1.0.11 → 1.0.12

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 (153) hide show
  1. package/README.md +1 -1
  2. package/lib/apps/MiHoYoLogin.js +6 -38
  3. package/lib/apps/MysDevice.js +5 -37
  4. package/lib/apps/UIDManage.js +6 -38
  5. package/lib/{chunk-BBJ4U2IY.js → chunk-A5FZEOIN.js} +75 -4
  6. package/lib/{chunk-4BTKE3LO.js → chunk-HTL64YH2.js} +300 -178
  7. package/lib/chunk-IASM5MM5.js +639 -0
  8. package/lib/{chunk-5DXIT7UB.js → chunk-RX4VMVAI.js} +0 -5
  9. package/lib/{chunk-AFLOM3CG.js → chunk-SZHK7OGF.js} +6 -10
  10. package/lib/chunk-UIPRZFST.js +184 -0
  11. package/lib/exports/config/index.d.ts +56 -1
  12. package/lib/exports/config/index.js +3 -9
  13. package/lib/exports/database/index.d.ts +78 -12
  14. package/lib/exports/database/index.js +12 -40
  15. package/lib/exports/mys/index.d.ts +379 -14
  16. package/lib/exports/mys/index.js +9 -43
  17. package/lib/exports/render/index.d.ts +36 -3
  18. package/lib/exports/render/index.js +3 -8
  19. package/lib/exports/utils/index.d.ts +45 -2
  20. package/lib/exports/utils/index.js +1 -4
  21. package/lib/{exports/database/types/dbs/base.d.ts → mysUserInfo-BsyEENbc.d.ts} +60 -1
  22. package/package.json +1 -1
  23. package/resources/image/frame-logo.webp +0 -0
  24. package/resources/image/launcher-icon//345/216/237/347/245/236.webp +0 -0
  25. package/resources/image/launcher-icon//345/264/251/345/235/2173.webp +0 -0
  26. package/resources/image/launcher-icon//345/264/251/345/235/217/345/255/246/345/233/2552.webp +0 -0
  27. 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.webp +0 -0
  28. 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.webp +0 -0
  29. package/resources/image/launcher-icon//346/230/237/345/270/203/350/260/267/345/234/260.webp +0 -0
  30. package/resources/image/launcher-icon//346/234/252/345/256/232/344/272/213/344/273/266/347/260/277.webp +0 -0
  31. package/resources/image/launcher-icon//347/273/235/345/214/272/351/233/266.webp +0 -0
  32. package/resources/image/mys-core-logo.webp +0 -0
  33. package/resources/image/mys-logo.webp +0 -0
  34. package/lib/chunk-2BVJS5VE.js +0 -49
  35. package/lib/chunk-3ERB3ILC.js +0 -0
  36. package/lib/chunk-3JN5WYUN.js +0 -135
  37. package/lib/chunk-7KEG6SDX.js +0 -0
  38. package/lib/chunk-7VAWV6ZE.js +0 -0
  39. package/lib/chunk-ARLTXJFJ.js +0 -0
  40. package/lib/chunk-CFS2WFOO.js +0 -0
  41. package/lib/chunk-DMJ5OQR6.js +0 -73
  42. package/lib/chunk-EDNBKOMS.js +0 -30
  43. package/lib/chunk-FBWSEBAW.js +0 -0
  44. package/lib/chunk-FOAQZIZ2.js +0 -0
  45. package/lib/chunk-G5W5WAY5.js +0 -64
  46. package/lib/chunk-G7TMVDGP.js +0 -68
  47. package/lib/chunk-HJ6HX5HB.js +0 -29
  48. package/lib/chunk-I7XZONDN.js +0 -13
  49. package/lib/chunk-JRH4JC43.js +0 -0
  50. package/lib/chunk-JVJQKRJ4.js +0 -89
  51. package/lib/chunk-K5U2O3HH.js +0 -0
  52. package/lib/chunk-KQVWWGRH.js +0 -31
  53. package/lib/chunk-LBLGKL3W.js +0 -77
  54. package/lib/chunk-LJSDSOY6.js +0 -0
  55. package/lib/chunk-LYTNREAI.js +0 -0
  56. package/lib/chunk-MPZP23EX.js +0 -219
  57. package/lib/chunk-MWYDWDR4.js +0 -0
  58. package/lib/chunk-PMFOX5HA.js +0 -80
  59. package/lib/chunk-PYTECG57.js +0 -0
  60. package/lib/chunk-SEWEEPJN.js +0 -0
  61. package/lib/chunk-SHW6FHIB.js +0 -10
  62. package/lib/chunk-T7W4DXRM.js +0 -0
  63. package/lib/chunk-TTN7NFCA.js +0 -109
  64. package/lib/chunk-W4DBT7AD.js +0 -0
  65. package/lib/chunk-WCX7WZAQ.js +0 -0
  66. package/lib/chunk-Z5I6A73Y.js +0 -0
  67. package/lib/chunk-ZTOR2DXG.js +0 -38
  68. package/lib/common-BlI5Gsw_.d.ts +0 -35
  69. package/lib/define-B9r20dK6.d.ts +0 -130
  70. package/lib/exports/config/array.d.ts +0 -1
  71. package/lib/exports/config/array.js +0 -7
  72. package/lib/exports/config/config.d.ts +0 -56
  73. package/lib/exports/config/config.js +0 -12
  74. package/lib/exports/database/database.d.ts +0 -30
  75. package/lib/exports/database/database.js +0 -22
  76. package/lib/exports/database/dbs/base.d.ts +0 -25
  77. package/lib/exports/database/dbs/base.js +0 -19
  78. package/lib/exports/database/dbs/index.d.ts +0 -4
  79. package/lib/exports/database/dbs/index.js +0 -29
  80. package/lib/exports/database/dbs/sqlite3.d.ts +0 -27
  81. package/lib/exports/database/dbs/sqlite3.js +0 -23
  82. package/lib/exports/database/dbs/table.d.ts +0 -20
  83. package/lib/exports/database/dbs/table.js +0 -25
  84. package/lib/exports/database/tables/index.d.ts +0 -9
  85. package/lib/exports/database/tables/index.js +0 -40
  86. package/lib/exports/database/tables/mysAccountInfo.d.ts +0 -9
  87. package/lib/exports/database/tables/mysAccountInfo.js +0 -27
  88. package/lib/exports/database/tables/mysDeviceInfo.d.ts +0 -9
  89. package/lib/exports/database/tables/mysDeviceInfo.js +0 -27
  90. package/lib/exports/database/tables/mysUserInfo.d.ts +0 -9
  91. package/lib/exports/database/tables/mysUserInfo.js +0 -27
  92. package/lib/exports/database/types/database.d.ts +0 -6
  93. package/lib/exports/database/types/database.js +0 -1
  94. package/lib/exports/database/types/dbs/base.js +0 -11
  95. package/lib/exports/database/types/dbs/index.d.ts +0 -2
  96. package/lib/exports/database/types/dbs/index.js +0 -12
  97. package/lib/exports/database/types/index.d.ts +0 -6
  98. package/lib/exports/database/types/index.js +0 -24
  99. package/lib/exports/database/types/tables/index.d.ts +0 -5
  100. package/lib/exports/database/types/tables/index.js +0 -13
  101. package/lib/exports/database/types/tables/mysAccountInfo.d.ts +0 -14
  102. package/lib/exports/database/types/tables/mysAccountInfo.js +0 -7
  103. package/lib/exports/database/types/tables/mysDeviceInfo.d.ts +0 -19
  104. package/lib/exports/database/types/tables/mysDeviceInfo.js +0 -1
  105. package/lib/exports/database/types/tables/mysUserInfo.d.ts +0 -32
  106. package/lib/exports/database/types/tables/mysUserInfo.js +0 -7
  107. package/lib/exports/mys/api/apis.d.ts +0 -82
  108. package/lib/exports/mys/api/apis.js +0 -56
  109. package/lib/exports/mys/api/app.d.ts +0 -60
  110. package/lib/exports/mys/api/app.js +0 -32
  111. package/lib/exports/mys/api/define.d.ts +0 -6
  112. package/lib/exports/mys/api/define.js +0 -42
  113. package/lib/exports/mys/api/index.d.ts +0 -11
  114. package/lib/exports/mys/api/index.js +0 -63
  115. package/lib/exports/mys/types/api/define.d.ts +0 -6
  116. package/lib/exports/mys/types/api/define.js +0 -1
  117. package/lib/exports/mys/types/api/index.d.ts +0 -6
  118. package/lib/exports/mys/types/api/index.js +0 -2
  119. package/lib/exports/mys/types/index.d.ts +0 -12
  120. package/lib/exports/mys/types/index.js +0 -6
  121. package/lib/exports/mys/types/user/game.d.ts +0 -23
  122. package/lib/exports/mys/types/user/game.js +0 -1
  123. package/lib/exports/mys/types/user/index.d.ts +0 -12
  124. package/lib/exports/mys/types/user/index.js +0 -3
  125. package/lib/exports/mys/types/user/userInfo.d.ts +0 -43
  126. package/lib/exports/mys/types/user/userInfo.js +0 -1
  127. package/lib/exports/mys/user/deviceInfo.d.ts +0 -11
  128. package/lib/exports/mys/user/deviceInfo.js +0 -30
  129. package/lib/exports/mys/user/game.d.ts +0 -40
  130. package/lib/exports/mys/user/game.js +0 -9
  131. package/lib/exports/mys/user/index.d.ts +0 -14
  132. package/lib/exports/mys/user/index.js +0 -52
  133. package/lib/exports/mys/user/userInfo.d.ts +0 -53
  134. package/lib/exports/mys/user/userInfo.js +0 -44
  135. package/lib/exports/render/render.d.ts +0 -38
  136. package/lib/exports/render/render.js +0 -12
  137. package/lib/exports/utils/common.d.ts +0 -1
  138. package/lib/exports/utils/common.js +0 -15
  139. package/lib/exports/utils/types/common.d.ts +0 -11
  140. package/lib/exports/utils/types/common.js +0 -1
  141. package/lib/exports/utils/types/index.d.ts +0 -1
  142. package/lib/exports/utils/types/index.js +0 -2
  143. package/resources/image/frame-logo.png +0 -0
  144. package/resources/image/launcher-icon//345/216/237/347/245/236.png +0 -0
  145. package/resources/image/launcher-icon//345/264/251/345/235/2173.png +0 -0
  146. package/resources/image/launcher-icon//345/264/251/345/235/217/345/255/246/345/233/2552.png +0 -0
  147. 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
  148. 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
  149. package/resources/image/launcher-icon//346/230/237/345/270/203/350/260/267/345/234/260.png +0 -0
  150. package/resources/image/launcher-icon//346/234/252/345/256/232/344/272/213/344/273/266/347/260/277.png +0 -0
  151. package/resources/image/launcher-icon//347/273/235/345/214/272/351/233/266.png +0 -0
  152. package/resources/image/mys-core-logo.png +0 -0
  153. package/resources/image/mys-logo.png +0 -0
@@ -1,56 +0,0 @@
1
- declare class Config<C extends Record<string, any>> {
2
- #private;
3
- /**
4
- * @param name 插件名称:配置名称
5
- */
6
- constructor(name: `${string}:${string}`, ConfigDir: string, DefaultConfig: C, DefineConfig: Record<string, any>);
7
- loadConfig(): C;
8
- mergeWithDefaults(userConfig: C, defaultConfig: C, DefineConfig: Record<string, any>): C;
9
- /**
10
- * @description 获取配置路径对应的默认配置
11
- */
12
- getDef<T>(path: string): T;
13
- /**
14
- * @description 获取配置路径对应的配置
15
- */
16
- get<T>(path: string, isArray?: false, def?: T): T;
17
- get<T>(path: string, isArray: true, def?: T[]): EnhancedArray<T>;
18
- /**
19
- * @param save 是否立即保存
20
- */
21
- set<T>(path: string, value: T, save: boolean): void;
22
- /**
23
- * @description 立即保存配置
24
- */
25
- save(): void;
26
- watch(fnc?: (self: Config<C>, oldData: C, newData: C) => Promise<void> | void): this;
27
- }
28
-
29
- declare class EnhancedArray<T> extends Array<T> {
30
- #private;
31
- constructor(cfg: Config<any>, items: T[], path: string);
32
- /**
33
- * @param element - string | number
34
- * @returns
35
- */
36
- has(element: T & (string | number)): boolean;
37
- /**
38
- * @param isEqual 是否不添加重复元素
39
- * @param save 是否立即保存
40
- */
41
- add(element: T, isEqual: boolean, save: boolean): this;
42
- /**
43
- * @param isEqual 是否不添加重复元素
44
- * @param save 是否立即保存
45
- */
46
- addSome(elements: T[], isEqual: boolean, save: boolean): this;
47
- /** @description 删除指定索引 */
48
- pullAt(idx: number, save: boolean): this;
49
- /** @description 删除指定元素 */
50
- pullAll(elements: T[], save: boolean): this;
51
- /** @description 使用条件函数删除元素 */
52
- remove(predicate: (item: T) => boolean, save: boolean): this;
53
- clear(): this;
54
- }
55
-
56
- export { Config, EnhancedArray as E };
@@ -1,12 +0,0 @@
1
- import {
2
- Config
3
- } from "../../chunk-TTN7NFCA.js";
4
- import "../../chunk-ARLTXJFJ.js";
5
- import "../../chunk-PYTECG57.js";
6
- import "../../chunk-T7W4DXRM.js";
7
- import "../../chunk-5DXIT7UB.js";
8
- import "../../chunk-PMFOX5HA.js";
9
- import "../../chunk-MLKGABMK.js";
10
- export {
11
- Config
12
- };
@@ -1,30 +0,0 @@
1
- import { DatabaseFn } from './types/database.js';
2
- import { Dialect, DatabaseClassStatic, DatabaseType, DatabaseClassInstance } from './types/dbs/base.js';
3
- import { DataTypes, ModelAttributeColumnOptions, Model } from 'sequelize';
4
-
5
- declare const Database: {
6
- "__#private@#defaultDialect": Dialect;
7
- "__#private@#DatabaseMap": Map<Dialect, {
8
- Database: DatabaseFn;
9
- Static: DatabaseClassStatic;
10
- }>;
11
- default(dialect: Dialect): void;
12
- /** @description 添加数据库 */
13
- Add(Db: DatabaseFn, Static: DatabaseClassStatic): Promise<void>;
14
- get Db(): {
15
- Database: DatabaseFn;
16
- Static: DatabaseClassStatic;
17
- };
18
- get details(): {
19
- dialect: Dialect;
20
- desc: string;
21
- }[];
22
- /** @description 获取当前使用的数据库 */
23
- get<T extends Record<string, any>, D extends DatabaseType>(): DatabaseClassInstance<T, D>;
24
- get PkColumn(): (type: keyof typeof DataTypes, option?: Partial<ModelAttributeColumnOptions<Model>>) => ModelAttributeColumnOptions<Model>;
25
- get Column(): DatabaseClassStatic["Column"];
26
- get ArrayColumn(): DatabaseClassStatic["ArrayColumn"];
27
- get JsonColumn(): DatabaseClassStatic["JsonColumn"];
28
- };
29
-
30
- export { Database };
@@ -1,22 +0,0 @@
1
- import {
2
- Database
3
- } from "../../chunk-DMJ5OQR6.js";
4
- import "../../chunk-MPZP23EX.js";
5
- import "../../chunk-3JN5WYUN.js";
6
- import "../../chunk-7KEG6SDX.js";
7
- import "../../chunk-FBWSEBAW.js";
8
- import "../../chunk-JVJQKRJ4.js";
9
- import "../../chunk-LYTNREAI.js";
10
- import "../../chunk-SHW6FHIB.js";
11
- import "../../chunk-K5U2O3HH.js";
12
- import "../../chunk-I7XZONDN.js";
13
- import "../../chunk-JRH4JC43.js";
14
- import "../../chunk-SHLPPEAY.js";
15
- import "../../chunk-ARLTXJFJ.js";
16
- import "../../chunk-PYTECG57.js";
17
- import "../../chunk-T7W4DXRM.js";
18
- import "../../chunk-5DXIT7UB.js";
19
- import "../../chunk-MLKGABMK.js";
20
- export {
21
- Database
22
- };
@@ -1,25 +0,0 @@
1
- import { ModelStatic, Model } from 'sequelize';
2
- import { DatabaseType, ModelAttributes, DatabaseReturn } from '../types/dbs/base.js';
3
-
4
- declare class DbBase<T extends Record<string, any>, D extends DatabaseType> {
5
- primaryKey: keyof T | undefined;
6
- model: ModelStatic<Model> | undefined;
7
- databasePath: string;
8
- databaseType: D;
9
- modelName: string;
10
- modelSchema: ModelAttributes<Model, T>;
11
- modelSchemaDefine: Partial<Record<keyof T, any>>;
12
- initBase(DataDir: string, modelName: string, modelSchema: ModelAttributes<Model, T>, modelSchemaDefine: Partial<Record<keyof T, any>>, type: D, primaryKey?: keyof T): void;
13
- schemaToJSON(pk: string): T;
14
- userPath(pk: string): string;
15
- readSync(path: string, pk: string): DatabaseReturn<T>[DatabaseType.File];
16
- readDirSync(pk: string): DatabaseReturn<T>[DatabaseType.Dir];
17
- writeDirSync(pk: string, data: Record<string, any>): boolean;
18
- saveFile(pk: string): (data: T) => Promise<DatabaseReturn<T>[DatabaseType.File]>;
19
- saveDir(pk: string): (data: T) => Promise<DatabaseReturn<T>[DatabaseType.Dir]>;
20
- destroyPath(pk: string): Promise<boolean>;
21
- saveSql(model: Model<any, any>, pk: string): (data: Partial<T>) => Promise<DatabaseReturn<T>[DatabaseType.Db]>;
22
- destroySql(pk: string): Promise<boolean>;
23
- }
24
-
25
- export { DbBase };
@@ -1,19 +0,0 @@
1
- import {
2
- DbBase
3
- } from "../../../chunk-3JN5WYUN.js";
4
- import "../../../chunk-7KEG6SDX.js";
5
- import "../../../chunk-FBWSEBAW.js";
6
- import "../../../chunk-JVJQKRJ4.js";
7
- import "../../../chunk-LYTNREAI.js";
8
- import "../../../chunk-SHW6FHIB.js";
9
- import "../../../chunk-K5U2O3HH.js";
10
- import "../../../chunk-I7XZONDN.js";
11
- import "../../../chunk-JRH4JC43.js";
12
- import "../../../chunk-ARLTXJFJ.js";
13
- import "../../../chunk-PYTECG57.js";
14
- import "../../../chunk-T7W4DXRM.js";
15
- import "../../../chunk-5DXIT7UB.js";
16
- import "../../../chunk-MLKGABMK.js";
17
- export {
18
- DbBase
19
- };
@@ -1,4 +0,0 @@
1
- export { DbBase } from './base.js';
2
- export { Table, createTable } from './table.js';
3
- import 'sequelize';
4
- import '../types/dbs/base.js';
@@ -1,29 +0,0 @@
1
- import "../../../chunk-SEWEEPJN.js";
2
- import {
3
- Table,
4
- createTable
5
- } from "../../../chunk-G7TMVDGP.js";
6
- import "../../../chunk-DMJ5OQR6.js";
7
- import "../../../chunk-MPZP23EX.js";
8
- import {
9
- DbBase
10
- } from "../../../chunk-3JN5WYUN.js";
11
- import "../../../chunk-7KEG6SDX.js";
12
- import "../../../chunk-FBWSEBAW.js";
13
- import "../../../chunk-JVJQKRJ4.js";
14
- import "../../../chunk-LYTNREAI.js";
15
- import "../../../chunk-SHW6FHIB.js";
16
- import "../../../chunk-K5U2O3HH.js";
17
- import "../../../chunk-I7XZONDN.js";
18
- import "../../../chunk-JRH4JC43.js";
19
- import "../../../chunk-SHLPPEAY.js";
20
- import "../../../chunk-ARLTXJFJ.js";
21
- import "../../../chunk-PYTECG57.js";
22
- import "../../../chunk-T7W4DXRM.js";
23
- import "../../../chunk-5DXIT7UB.js";
24
- import "../../../chunk-MLKGABMK.js";
25
- export {
26
- DbBase,
27
- Table,
28
- createTable
29
- };
@@ -1,27 +0,0 @@
1
- import { Model, DataTypes, ModelAttributeColumnOptions } from 'sequelize';
2
- import { DatabaseType, DatabaseClassInstance, Dialect, ModelAttributes, DatabaseReturn, DatabaseArray } from '../types/dbs/base.js';
3
- import { DbBase } from './base.js';
4
-
5
- declare class Sqlite3<T extends Record<string, any>, D extends DatabaseType> extends DbBase<T, D> implements DatabaseClassInstance<T, D> {
6
- dialect: Dialect;
7
- check(): Promise<boolean>;
8
- init(DataDir: string, modelName: string, modelSchema: ModelAttributes<Model, T>, modelSchemaDefine: Partial<Record<keyof T, any>>, type: D, primaryKey?: keyof T): Promise<DatabaseClassInstance<T, D>>;
9
- findByPk(pk: string, create: true): Promise<DatabaseReturn<T>[D]>;
10
- findByPk(pk: string, create?: false): Promise<DatabaseReturn<T>[D] | undefined>;
11
- findAllByPks(pks: string[]): Promise<DatabaseReturn<T>[D][]>;
12
- findAll(excludePks?: string[]): Promise<DatabaseReturn<T>[D][]>;
13
- destroy(pk: string): Promise<boolean>;
14
- }
15
- declare const Sqlite3Static: {
16
- dialect: Dialect;
17
- description: string;
18
- Column<T>(type: keyof typeof DataTypes, def: T, option?: Partial<ModelAttributeColumnOptions<Model>>): ModelAttributeColumnOptions<Model>;
19
- ArrayColumn<T>(key: string, fn?: (data: DatabaseArray<T>) => T[]): ModelAttributeColumnOptions<Model> & {
20
- ArrayColumn: true;
21
- };
22
- JsonColumn<T>(key: string, def: T): ModelAttributeColumnOptions<Model> & {
23
- JsonColumn: true;
24
- };
25
- };
26
-
27
- export { Sqlite3, Sqlite3Static };
@@ -1,23 +0,0 @@
1
- import {
2
- Sqlite3,
3
- Sqlite3Static
4
- } from "../../../chunk-MPZP23EX.js";
5
- import "../../../chunk-3JN5WYUN.js";
6
- import "../../../chunk-7KEG6SDX.js";
7
- import "../../../chunk-FBWSEBAW.js";
8
- import "../../../chunk-JVJQKRJ4.js";
9
- import "../../../chunk-LYTNREAI.js";
10
- import "../../../chunk-SHW6FHIB.js";
11
- import "../../../chunk-K5U2O3HH.js";
12
- import "../../../chunk-I7XZONDN.js";
13
- import "../../../chunk-JRH4JC43.js";
14
- import "../../../chunk-SHLPPEAY.js";
15
- import "../../../chunk-ARLTXJFJ.js";
16
- import "../../../chunk-PYTECG57.js";
17
- import "../../../chunk-T7W4DXRM.js";
18
- import "../../../chunk-5DXIT7UB.js";
19
- import "../../../chunk-MLKGABMK.js";
20
- export {
21
- Sqlite3,
22
- Sqlite3Static
23
- };
@@ -1,20 +0,0 @@
1
- import { Model } from 'sequelize';
2
- import { DatabaseType, DatabaseClassInstance, ModelAttributes } from '../types/dbs/base.js';
3
-
4
- declare class Table<TableType extends Record<string, any>, ExtraTableType extends Record<string, any> = {}, DBType extends DatabaseType = DatabaseType> {
5
- #private;
6
- initCache: DatabaseClassInstance<TableType, DBType>;
7
- modelSchema: ModelAttributes<Model, TableType>;
8
- modelSchemaDefine: Partial<Record<keyof TableType, any>>;
9
- /**
10
- * @param type Db: 直接保存在sqlite数据中、 File: 保存在单个json文件中、 Dir: 保存在多个json文件的目录中、Schema中除pk外每一个键值对应一个文件 e.g tableName/user/key.json
11
- */
12
- constructor(DataDir: string, tableName: string, type: DBType, primaryKey?: keyof TableType);
13
- init(Schema: ModelAttributes<Model, TableType>, SchemaDefine?: Partial<Record<keyof TableType, any>>): Promise<() => Promise<DatabaseClassInstance<TableType, DBType>>>;
14
- addSchem<newTableType extends ExtraTableType>(newSchema: ModelAttributes<Model, newTableType>, SchemaDefine?: Partial<Record<keyof newTableType, any>>): Promise<() => Promise<DatabaseClassInstance<TableType & newTableType, DBType>>>;
15
- }
16
- declare function createTable<TableType extends Record<string, any>, ExtraTableType extends Record<string, any> = {}>(DataDir: string, tableName: string, type: DatabaseType.File, primaryKey: keyof TableType): Table<TableType, ExtraTableType, DatabaseType.File>;
17
- declare function createTable<TableType extends Record<string, any>, ExtraTableType extends Record<string, any> = {}>(DataDir: string, tableName: string, type: DatabaseType.Dir, primaryKey: keyof TableType): Table<TableType, ExtraTableType, DatabaseType.Dir>;
18
- declare function createTable<TableType extends Record<string, any>, ExtraTableType extends Record<string, any> = {}>(DataDir: string, tableName: string, type: DatabaseType.Db, primaryKey?: keyof TableType): Table<TableType, ExtraTableType, DatabaseType.Db>;
19
-
20
- export { Table, createTable };
@@ -1,25 +0,0 @@
1
- import {
2
- Table,
3
- createTable
4
- } from "../../../chunk-G7TMVDGP.js";
5
- import "../../../chunk-DMJ5OQR6.js";
6
- import "../../../chunk-MPZP23EX.js";
7
- import "../../../chunk-3JN5WYUN.js";
8
- import "../../../chunk-7KEG6SDX.js";
9
- import "../../../chunk-FBWSEBAW.js";
10
- import "../../../chunk-JVJQKRJ4.js";
11
- import "../../../chunk-LYTNREAI.js";
12
- import "../../../chunk-SHW6FHIB.js";
13
- import "../../../chunk-K5U2O3HH.js";
14
- import "../../../chunk-I7XZONDN.js";
15
- import "../../../chunk-JRH4JC43.js";
16
- import "../../../chunk-SHLPPEAY.js";
17
- import "../../../chunk-ARLTXJFJ.js";
18
- import "../../../chunk-PYTECG57.js";
19
- import "../../../chunk-T7W4DXRM.js";
20
- import "../../../chunk-5DXIT7UB.js";
21
- import "../../../chunk-MLKGABMK.js";
22
- export {
23
- Table,
24
- createTable
25
- };
@@ -1,9 +0,0 @@
1
- export { MysAccountInfoDB, MysAccountInfoTable } from './mysAccountInfo.js';
2
- export { MysDeviceInfoDB, MysDeviceInfoTable } from './mysDeviceInfo.js';
3
- export { MysUserInfoDB, MysUserInfoTable } from './mysUserInfo.js';
4
- import '../types/dbs/base.js';
5
- import 'sequelize';
6
- import '../types/tables/mysAccountInfo.js';
7
- import '../dbs/table.js';
8
- import '../types/tables/mysDeviceInfo.js';
9
- import '../types/tables/mysUserInfo.js';
@@ -1,40 +0,0 @@
1
- import "../../../chunk-Z5I6A73Y.js";
2
- import {
3
- MysAccountInfoDB,
4
- MysAccountInfoTable
5
- } from "../../../chunk-EDNBKOMS.js";
6
- import {
7
- MysDeviceInfoDB,
8
- MysDeviceInfoTable
9
- } from "../../../chunk-ZTOR2DXG.js";
10
- import {
11
- MysUserInfoDB,
12
- MysUserInfoTable
13
- } from "../../../chunk-HJ6HX5HB.js";
14
- import "../../../chunk-SEWEEPJN.js";
15
- import "../../../chunk-G7TMVDGP.js";
16
- import "../../../chunk-DMJ5OQR6.js";
17
- import "../../../chunk-MPZP23EX.js";
18
- import "../../../chunk-3JN5WYUN.js";
19
- import "../../../chunk-7KEG6SDX.js";
20
- import "../../../chunk-FBWSEBAW.js";
21
- import "../../../chunk-JVJQKRJ4.js";
22
- import "../../../chunk-LYTNREAI.js";
23
- import "../../../chunk-SHW6FHIB.js";
24
- import "../../../chunk-K5U2O3HH.js";
25
- import "../../../chunk-I7XZONDN.js";
26
- import "../../../chunk-JRH4JC43.js";
27
- import "../../../chunk-SHLPPEAY.js";
28
- import "../../../chunk-ARLTXJFJ.js";
29
- import "../../../chunk-PYTECG57.js";
30
- import "../../../chunk-T7W4DXRM.js";
31
- import "../../../chunk-5DXIT7UB.js";
32
- import "../../../chunk-MLKGABMK.js";
33
- export {
34
- MysAccountInfoDB,
35
- MysAccountInfoTable,
36
- MysDeviceInfoDB,
37
- MysDeviceInfoTable,
38
- MysUserInfoDB,
39
- MysUserInfoTable
40
- };
@@ -1,9 +0,0 @@
1
- import { DatabaseType, DatabaseClassInstance } from '../types/dbs/base.js';
2
- import { MysAccountInfoTableType } from '../types/tables/mysAccountInfo.js';
3
- import { Table } from '../dbs/table.js';
4
- import 'sequelize';
5
-
6
- declare const MysAccountInfoTable: Table<MysAccountInfoTableType, {}, DatabaseType.Db>;
7
- declare const MysAccountInfoDB: () => Promise<DatabaseClassInstance<MysAccountInfoTableType, DatabaseType.Db>>;
8
-
9
- export { MysAccountInfoDB, MysAccountInfoTable };
@@ -1,27 +0,0 @@
1
- import {
2
- MysAccountInfoDB,
3
- MysAccountInfoTable
4
- } from "../../../chunk-EDNBKOMS.js";
5
- import "../../../chunk-SEWEEPJN.js";
6
- import "../../../chunk-G7TMVDGP.js";
7
- import "../../../chunk-DMJ5OQR6.js";
8
- import "../../../chunk-MPZP23EX.js";
9
- import "../../../chunk-3JN5WYUN.js";
10
- import "../../../chunk-7KEG6SDX.js";
11
- import "../../../chunk-FBWSEBAW.js";
12
- import "../../../chunk-JVJQKRJ4.js";
13
- import "../../../chunk-LYTNREAI.js";
14
- import "../../../chunk-SHW6FHIB.js";
15
- import "../../../chunk-K5U2O3HH.js";
16
- import "../../../chunk-I7XZONDN.js";
17
- import "../../../chunk-JRH4JC43.js";
18
- import "../../../chunk-SHLPPEAY.js";
19
- import "../../../chunk-ARLTXJFJ.js";
20
- import "../../../chunk-PYTECG57.js";
21
- import "../../../chunk-T7W4DXRM.js";
22
- import "../../../chunk-5DXIT7UB.js";
23
- import "../../../chunk-MLKGABMK.js";
24
- export {
25
- MysAccountInfoDB,
26
- MysAccountInfoTable
27
- };
@@ -1,9 +0,0 @@
1
- import { DatabaseType, DatabaseClassInstance } from '../types/dbs/base.js';
2
- import { MysDeviceInfoTableType } from '../types/tables/mysDeviceInfo.js';
3
- import { Table } from '../dbs/table.js';
4
- import 'sequelize';
5
-
6
- declare const MysDeviceInfoTable: Table<MysDeviceInfoTableType, {}, DatabaseType.Db>;
7
- declare const MysDeviceInfoDB: () => Promise<DatabaseClassInstance<MysDeviceInfoTableType, DatabaseType.Db>>;
8
-
9
- export { MysDeviceInfoDB, MysDeviceInfoTable };
@@ -1,27 +0,0 @@
1
- import {
2
- MysDeviceInfoDB,
3
- MysDeviceInfoTable
4
- } from "../../../chunk-ZTOR2DXG.js";
5
- import "../../../chunk-SEWEEPJN.js";
6
- import "../../../chunk-G7TMVDGP.js";
7
- import "../../../chunk-DMJ5OQR6.js";
8
- import "../../../chunk-MPZP23EX.js";
9
- import "../../../chunk-3JN5WYUN.js";
10
- import "../../../chunk-7KEG6SDX.js";
11
- import "../../../chunk-FBWSEBAW.js";
12
- import "../../../chunk-JVJQKRJ4.js";
13
- import "../../../chunk-LYTNREAI.js";
14
- import "../../../chunk-SHW6FHIB.js";
15
- import "../../../chunk-K5U2O3HH.js";
16
- import "../../../chunk-I7XZONDN.js";
17
- import "../../../chunk-JRH4JC43.js";
18
- import "../../../chunk-SHLPPEAY.js";
19
- import "../../../chunk-ARLTXJFJ.js";
20
- import "../../../chunk-PYTECG57.js";
21
- import "../../../chunk-T7W4DXRM.js";
22
- import "../../../chunk-5DXIT7UB.js";
23
- import "../../../chunk-MLKGABMK.js";
24
- export {
25
- MysDeviceInfoDB,
26
- MysDeviceInfoTable
27
- };
@@ -1,9 +0,0 @@
1
- import { DatabaseType, DatabaseClassInstance } from '../types/dbs/base.js';
2
- import { BaseUserInfoTableType, BaseGameUIDInfoTableType } from '../types/tables/mysUserInfo.js';
3
- import { Table } from '../dbs/table.js';
4
- import 'sequelize';
5
-
6
- declare const MysUserInfoTable: Table<BaseUserInfoTableType, BaseGameUIDInfoTableType<string>, DatabaseType.Db>;
7
- declare const MysUserInfoDB: () => Promise<DatabaseClassInstance<BaseUserInfoTableType, DatabaseType.Db>>;
8
-
9
- export { MysUserInfoDB, MysUserInfoTable };
@@ -1,27 +0,0 @@
1
- import {
2
- MysUserInfoDB,
3
- MysUserInfoTable
4
- } from "../../../chunk-HJ6HX5HB.js";
5
- import "../../../chunk-SEWEEPJN.js";
6
- import "../../../chunk-G7TMVDGP.js";
7
- import "../../../chunk-DMJ5OQR6.js";
8
- import "../../../chunk-MPZP23EX.js";
9
- import "../../../chunk-3JN5WYUN.js";
10
- import "../../../chunk-7KEG6SDX.js";
11
- import "../../../chunk-FBWSEBAW.js";
12
- import "../../../chunk-JVJQKRJ4.js";
13
- import "../../../chunk-LYTNREAI.js";
14
- import "../../../chunk-SHW6FHIB.js";
15
- import "../../../chunk-K5U2O3HH.js";
16
- import "../../../chunk-I7XZONDN.js";
17
- import "../../../chunk-JRH4JC43.js";
18
- import "../../../chunk-SHLPPEAY.js";
19
- import "../../../chunk-ARLTXJFJ.js";
20
- import "../../../chunk-PYTECG57.js";
21
- import "../../../chunk-T7W4DXRM.js";
22
- import "../../../chunk-5DXIT7UB.js";
23
- import "../../../chunk-MLKGABMK.js";
24
- export {
25
- MysUserInfoDB,
26
- MysUserInfoTable
27
- };
@@ -1,6 +0,0 @@
1
- import { DatabaseType, DatabaseClassInstance } from './dbs/base.js';
2
- import 'sequelize';
3
-
4
- type DatabaseFn = <T extends Record<string, any>, D extends DatabaseType>() => DatabaseClassInstance<T, D>;
5
-
6
- export type { DatabaseFn };
@@ -1 +0,0 @@
1
- import "../../../chunk-JRH4JC43.js";
@@ -1,11 +0,0 @@
1
- import {
2
- DatabaseArray,
3
- DatabaseType,
4
- Dialect
5
- } from "../../../../chunk-JVJQKRJ4.js";
6
- import "../../../../chunk-MLKGABMK.js";
7
- export {
8
- DatabaseArray,
9
- DatabaseType,
10
- Dialect
11
- };
@@ -1,2 +0,0 @@
1
- export { DatabaseArray, DatabaseClassInstance, DatabaseClassStatic, DatabaseReturn, DatabaseType, Dialect, ModelAttributes } from './base.js';
2
- import 'sequelize';
@@ -1,12 +0,0 @@
1
- import "../../../../chunk-FBWSEBAW.js";
2
- import {
3
- DatabaseArray,
4
- DatabaseType,
5
- Dialect
6
- } from "../../../../chunk-JVJQKRJ4.js";
7
- import "../../../../chunk-MLKGABMK.js";
8
- export {
9
- DatabaseArray,
10
- DatabaseType,
11
- Dialect
12
- };
@@ -1,6 +0,0 @@
1
- export { DatabaseFn } from './database.js';
2
- export { DatabaseArray, DatabaseClassInstance, DatabaseClassStatic, DatabaseReturn, DatabaseType, Dialect, ModelAttributes } from './dbs/base.js';
3
- export { MysAccountInfoTableType, MysAccountType } from './tables/mysAccountInfo.js';
4
- export { MysDeviceInfoDatabaseBaseType, MysDeviceInfoDatabaseIdFpType, MysDeviceInfoTableType } from './tables/mysDeviceInfo.js';
5
- export { BaseGameUIDInfoTableType, BaseUserInfoTableType, BindUidsItemType, UidPermission } from './tables/mysUserInfo.js';
6
- import 'sequelize';
@@ -1,24 +0,0 @@
1
- import "../../../chunk-7KEG6SDX.js";
2
- import "../../../chunk-FBWSEBAW.js";
3
- import {
4
- DatabaseArray,
5
- DatabaseType,
6
- Dialect
7
- } from "../../../chunk-JVJQKRJ4.js";
8
- import "../../../chunk-LYTNREAI.js";
9
- import {
10
- MysAccountType
11
- } from "../../../chunk-SHW6FHIB.js";
12
- import "../../../chunk-K5U2O3HH.js";
13
- import {
14
- UidPermission
15
- } from "../../../chunk-I7XZONDN.js";
16
- import "../../../chunk-JRH4JC43.js";
17
- import "../../../chunk-MLKGABMK.js";
18
- export {
19
- DatabaseArray,
20
- DatabaseType,
21
- Dialect,
22
- MysAccountType,
23
- UidPermission
24
- };
@@ -1,5 +0,0 @@
1
- export { MysAccountInfoTableType, MysAccountType } from './mysAccountInfo.js';
2
- export { MysDeviceInfoDatabaseBaseType, MysDeviceInfoDatabaseIdFpType, MysDeviceInfoTableType } from './mysDeviceInfo.js';
3
- export { BaseGameUIDInfoTableType, BaseUserInfoTableType, BindUidsItemType, UidPermission } from './mysUserInfo.js';
4
- import '../dbs/base.js';
5
- import 'sequelize';
@@ -1,13 +0,0 @@
1
- import "../../../../chunk-LYTNREAI.js";
2
- import {
3
- MysAccountType
4
- } from "../../../../chunk-SHW6FHIB.js";
5
- import "../../../../chunk-K5U2O3HH.js";
6
- import {
7
- UidPermission
8
- } from "../../../../chunk-I7XZONDN.js";
9
- import "../../../../chunk-MLKGABMK.js";
10
- export {
11
- MysAccountType,
12
- UidPermission
13
- };
@@ -1,14 +0,0 @@
1
- declare const enum MysAccountType {
2
- cn = "mihoyo",
3
- os = "hoyolab"
4
- }
5
- interface MysAccountInfoTableType {
6
- ltuid: string;
7
- type: MysAccountType;
8
- cookie: string;
9
- stoken: string;
10
- /** 绑定的设备md5 */
11
- deviceMd5: string;
12
- }
13
-
14
- export { type MysAccountInfoTableType, MysAccountType };
@@ -1,7 +0,0 @@
1
- import {
2
- MysAccountType
3
- } from "../../../../chunk-SHW6FHIB.js";
4
- import "../../../../chunk-MLKGABMK.js";
5
- export {
6
- MysAccountType
7
- };
@@ -1,19 +0,0 @@
1
- interface MysDeviceInfoDatabaseBaseType {
2
- name: string;
3
- board: string;
4
- /** @description 重要参数 */
5
- model: string;
6
- oaid: string;
7
- version: number;
8
- fingerprint: string;
9
- product: string;
10
- }
11
- interface MysDeviceInfoDatabaseIdFpType {
12
- deviceId: string;
13
- deviceFp: string;
14
- }
15
- interface MysDeviceInfoTableType extends MysDeviceInfoDatabaseBaseType, MysDeviceInfoDatabaseIdFpType {
16
- md5: string;
17
- }
18
-
19
- export type { MysDeviceInfoDatabaseBaseType, MysDeviceInfoDatabaseIdFpType, MysDeviceInfoTableType };
@@ -1 +0,0 @@
1
- import "../../../../chunk-K5U2O3HH.js";