@lovrabet/sdk 1.1.23-beta.2 → 1.1.23

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.
@@ -12,7 +12,7 @@
12
12
  * 环境类型定义
13
13
  * @description 支持的运行环境,用于区分不同的 API 端点
14
14
  */
15
- export type Environment = 'online' | 'daily';
15
+ export type Environment = "online" | "daily";
16
16
  /**
17
17
  * 排序方向枚举
18
18
  * @description 定义数据排序的方向
@@ -76,7 +76,7 @@ export interface ListResponse<T> {
76
76
  * - $startWith: 以...开头
77
77
  * - $endWith: 以...结尾
78
78
  */
79
- export type ConditionOperator = '$eq' | '$ne' | '$gte' | '$gteq' | '$lte' | '$lteq' | '$in' | '$contain' | '$startWith' | '$endWith';
79
+ export type ConditionOperator = "$eq" | "$ne" | "$gte" | "$gteq" | "$lte" | "$lteq" | "$in" | "$contain" | "$startWith" | "$endWith";
80
80
  /**
81
81
  * 字段条件类型
82
82
  * @description 单个字段的查询条件
@@ -1,15 +1,14 @@
1
1
  export declare class LovrabetError extends Error {
2
2
  readonly status?: number;
3
3
  readonly code?: string;
4
- readonly data?: any;
5
- readonly originalError?: Error;
6
- constructor(message: string, status?: number, code?: string, data?: any, originalError?: Error);
4
+ readonly response?: any;
5
+ constructor(message: string, status?: number, code?: string, response?: any);
7
6
  toJSON(): {
8
7
  name: string;
9
8
  message: string;
10
9
  status: number;
11
10
  code: string;
12
- data: any;
11
+ response: any;
13
12
  };
14
13
  }
15
14
  export declare function createErrorHandler(onError?: (error: any) => void): (error: any) => Promise<never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/sdk",
3
- "version": "1.1.23-beta.2",
3
+ "version": "1.1.23",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",