@iss-ai/easy-web-store 0.0.1 → 0.0.3

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.
@@ -43,6 +43,24 @@ export interface IQueryCondition<T extends IBase = any> {
43
43
  /** 字段选择 */
44
44
  fields?: Partial<Record<keyof T, 1>>;
45
45
  }
46
+ /**
47
+ * 查询条件值类型,支持简单值和复杂操作符
48
+ */
49
+ export type QueryValue<T = any> = T | {
50
+ $eq?: T;
51
+ $neq?: T;
52
+ $gt?: T;
53
+ $gte?: T;
54
+ $lt?: T;
55
+ $lte?: T;
56
+ $in?: T[];
57
+ $nin?: T[];
58
+ $like?: string;
59
+ $likeIgnoreCase?: string;
60
+ $startsWith?: string;
61
+ $startsWithIgnoreCase?: string;
62
+ $regexp?: string | RegExp;
63
+ };
46
64
  /**
47
65
  * 分页结果接口
48
66
  * @interface IPaginationResult
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 生成唯一 ID(UUID v4 格式)
3
+ * @returns UUID 字符串
4
+ */
5
+ export declare function generateId(): string;
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@iss-ai/easy-web-store",
3
3
  "description": "A simple and efficient state management library for web applications.",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "author": "",
6
6
  "keywords": [
7
7
  "indexeddb",
8
+ "localstorage",
9
+ "sessionstorage",
10
+ "cookies",
11
+ "dexie",
8
12
  "typescript",
9
13
  "rollup",
10
14
  "jest",
@@ -1,2 +0,0 @@
1
- export * from './interface/types';
2
- export * from './easy/DexieStore';