@jctrans-materials/shared 1.0.37-beta.9 → 1.0.37
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/axios-CrXHzPXT.mjs +57 -0
- package/dist/axios-DkZyqM8j.js +1 -0
- package/dist/index.cjs.js +1 -6
- package/dist/index.d.ts +26 -0
- package/dist/index.esm.js +1891 -3615
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -271,6 +271,14 @@ export declare function getExpiresTimeIn(): number;
|
|
|
271
271
|
*/
|
|
272
272
|
export declare function getFirstDomain(): string | undefined;
|
|
273
273
|
|
|
274
|
+
/**
|
|
275
|
+
* 全局获取 GIO 相关 session
|
|
276
|
+
* @returns
|
|
277
|
+
*/
|
|
278
|
+
export declare function getGioSessionItems(): {
|
|
279
|
+
registerEntry: string | null;
|
|
280
|
+
};
|
|
281
|
+
|
|
274
282
|
/**
|
|
275
283
|
* 兼容全环境的语言判断方法
|
|
276
284
|
* 逻辑优先级:Nuxt Composables > 浏览器 Cookie > Nuxt SSR 上下文
|
|
@@ -366,6 +374,8 @@ export declare function getSeaport(params?: {
|
|
|
366
374
|
countryId?: number;
|
|
367
375
|
}): Promise<BaseResponse<UnifiedItem>>;
|
|
368
376
|
|
|
377
|
+
export declare function getSessionHeaderValue(key: string): string;
|
|
378
|
+
|
|
369
379
|
/**
|
|
370
380
|
* 获取当前配置
|
|
371
381
|
*/
|
|
@@ -1231,6 +1241,12 @@ declare interface RequestOptions {
|
|
|
1231
1241
|
*/
|
|
1232
1242
|
export declare function resetAuthSessionItems(): void;
|
|
1233
1243
|
|
|
1244
|
+
/**
|
|
1245
|
+
* 重置 GIO 相关 session
|
|
1246
|
+
* @returns
|
|
1247
|
+
*/
|
|
1248
|
+
export declare function resetGioSessionItems(): void;
|
|
1249
|
+
|
|
1234
1250
|
/**
|
|
1235
1251
|
* 重置密码
|
|
1236
1252
|
* @param data
|
|
@@ -1352,6 +1368,14 @@ export declare function setAuthSessionItems(data: {
|
|
|
1352
1368
|
compKey?: string | null;
|
|
1353
1369
|
}): void;
|
|
1354
1370
|
|
|
1371
|
+
/**
|
|
1372
|
+
* 全局设置 GIO 相关 session
|
|
1373
|
+
* @param data
|
|
1374
|
+
*/
|
|
1375
|
+
export declare function setGioSessionItems(data: {
|
|
1376
|
+
registerEntry?: string | null;
|
|
1377
|
+
}): void;
|
|
1378
|
+
|
|
1355
1379
|
/**
|
|
1356
1380
|
* 记住账号 (替代存密码)
|
|
1357
1381
|
*/
|
|
@@ -1459,6 +1483,8 @@ export declare interface TokenData {
|
|
|
1459
1483
|
*/
|
|
1460
1484
|
export declare const TokenKey = "JC-JAVA-Token-Root";
|
|
1461
1485
|
|
|
1486
|
+
export declare function toSafeHeaderValue(value: string): string;
|
|
1487
|
+
|
|
1462
1488
|
export declare const tracker: GioTracker;
|
|
1463
1489
|
|
|
1464
1490
|
/** 归一化之后的实体 */
|