@jctrans-materials/shared 1.0.40-beta.13 → 1.0.40-beta.14

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.
package/dist/index.cjs.js CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { AxiosInstance } from 'axios';
2
+ import { BoardQueryResult } from '@jctrans/dw-sdk';
3
+ import { DateType } from '@jctrans/dw-sdk';
2
4
  import { Emitter } from 'mitt';
5
+ import { GraphQLClientError } from '@jctrans/dw-sdk';
6
+ import { OpportunityBoardParams } from '@jctrans/dw-sdk';
3
7
 
4
8
  declare type ActionKeys = (typeof MODAL_ACTION)[keyof typeof MODAL_ACTION];
5
9
 
@@ -51,6 +55,8 @@ export declare function bindThirdPartyByCodeApi(data: any): Promise<any>;
51
55
 
52
56
  export declare function bindThirdPartyByPwdApi(data: any): Promise<any>;
53
57
 
58
+ export { BoardQueryResult }
59
+
54
60
  export declare function checkAccountExistsFPApi(data: ForgotPasswordAccountData): Promise<any>;
55
61
 
56
62
  export declare function checkEmailCodeApi(data: {
@@ -148,6 +154,8 @@ export declare const currentConfig: {
148
154
  readonly appId: string | undefined;
149
155
  };
150
156
 
157
+ export { DateType }
158
+
151
159
  /** 兼容旧名 */
152
160
  export declare const Decrypt: typeof decrypt;
153
161
 
@@ -782,6 +790,8 @@ export declare interface GioUserAttributes {
782
790
  [key: string]: GioAttributeValue;
783
791
  }
784
792
 
793
+ export { GraphQLClientError }
794
+
785
795
  export declare const HasLoginKey: string;
786
796
 
787
797
  export declare const initCommonKeys: (newKeys: Partial<CommonKeysConfig>) => void;
@@ -989,6 +999,8 @@ export declare const normalizeAttrs: (attrs?: GioTrackAttrs) => GioTrackAttrs;
989
999
 
990
1000
  export declare const normalizeClickPageAttrs: (eventName: string, attrs?: GioTrackAttrs) => GioTrackAttrs;
991
1001
 
1002
+ export { OpportunityBoardParams }
1003
+
992
1004
  /**
993
1005
  * 页面变更回调
994
1006
  */
@@ -1002,6 +1014,28 @@ export declare interface PageParams {
1002
1014
 
1003
1015
  export declare const PrjId: string;
1004
1016
 
1017
+ /**
1018
+ * 查询商机有效看板数据(分页)。
1019
+ *
1020
+ * 【每次调用新建 SDK 实例,无状态污染】
1021
+ *
1022
+ * @example
1023
+ * ```ts
1024
+ * import { queryOpportunityBoard } from '@jctrans-materials/shared'
1025
+ *
1026
+ * const result = await queryOpportunityBoard({
1027
+ * compId: 12345,
1028
+ * dateType: 'QUARTER',
1029
+ * dateValue: '2026-Q2',
1030
+ * })
1031
+ *
1032
+ * if (result.success) {
1033
+ * console.log(result.data.records)
1034
+ * }
1035
+ * ```
1036
+ */
1037
+ export declare function queryOpportunityBoard(params: OpportunityBoardParams): Promise<BoardQueryResult>;
1038
+
1005
1039
  export declare const RefreshExpiresInKey: string;
1006
1040
 
1007
1041
  export declare const RefreshExpiresInTimeKey: string;
package/dist/index.esm.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jctrans-materials/shared",
3
- "version": "1.0.40-beta.13",
3
+ "version": "1.0.40-beta.14",
4
4
  "private": false,
5
5
  "description": "Shared utilities including auth, request, crypto, and GrowingIO analytics.",
6
6
  "main": "dist/index.cjs.js",
@@ -18,6 +18,7 @@
18
18
  ],
19
19
  "packageManager": "pnpm@10.12.4",
20
20
  "dependencies": {
21
+ "@jctrans/dw-sdk": "^1.0.1",
21
22
  "crypto-js": "^4.2.0",
22
23
  "js-cookie": "^3.0.5",
23
24
  "mitt": "^3.0.1",