@laiye_packages/uci 1.0.3 → 1.0.4
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/app/base/index.d.ts +3 -5
- package/dist/app/index.d.ts +2 -2
- package/dist/app/organization/app/index.d.ts +5 -4
- package/dist/app/tenant/app/index.d.ts +2 -0
- package/dist/http/index.d.ts +1 -1
- package/dist/index.js +1097 -1100
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/app/base/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LYObject } from '../../object';
|
|
2
|
-
import { LYAppHttpClient,
|
|
2
|
+
import { LYAppHttpClient, type IHeaderProvider } from '../../http';
|
|
3
3
|
import type { LYAppPermission } from '../../permission';
|
|
4
|
+
import { LYCrypto } from '../../crypto';
|
|
4
5
|
import { LYi18n, ILYi18n, LYKeyofLang } from '../../i18n';
|
|
5
6
|
import { ILYStorageSync, ILYStorage } from '../../storage';
|
|
6
7
|
import { LYEnv } from '../../env';
|
|
@@ -66,15 +67,12 @@ export declare class LYBaseApp extends LYObject {
|
|
|
66
67
|
get cloudStore(): ILYStorage;
|
|
67
68
|
get isLoaded(): boolean;
|
|
68
69
|
get env(): LYEnv;
|
|
70
|
+
get crypto(): LYCrypto;
|
|
69
71
|
protected _createHttpClient(): LYAppHttpClient;
|
|
70
72
|
load(): Promise<void>;
|
|
71
|
-
private getBaseUrl;
|
|
72
73
|
protected doLoad(): Promise<void>;
|
|
73
74
|
private initI18n;
|
|
74
75
|
getI18nResourceUrl(relativeUrl: string, lang?: LYKeyofLang): string;
|
|
75
76
|
getComponent<T>(componentName: string): Promise<T>;
|
|
76
77
|
private loadRemoteComponents;
|
|
77
78
|
}
|
|
78
|
-
export declare class LYBaseTenantApp extends LYBaseApp {
|
|
79
|
-
protected _createHttpClient(): LYTenantHttpClient;
|
|
80
|
-
}
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LYEnv } from '../env';
|
|
2
|
-
import { LYBaseApp,
|
|
2
|
+
import { LYBaseApp, ORGANIZATION_APP_NAME, TENANT_APP_NAME } from './base';
|
|
3
3
|
import { LYOrganizationApp, SSOConfig } from './organization';
|
|
4
4
|
import { LYTenantApp } from './tenant';
|
|
5
5
|
import { LYTenantSession } from './tenant/session';
|
|
@@ -8,7 +8,7 @@ import { LYGatewayAuthorizer } from './organization/authorizer/gateway';
|
|
|
8
8
|
import { LYDirectAuthorizer } from './organization/authorizer/direct';
|
|
9
9
|
import { LYRedirectAuthorizer } from './organization/authorizer/redirect';
|
|
10
10
|
import { LYTenantAuthorizer } from './tenant/authorizer';
|
|
11
|
-
declare class LYApp extends
|
|
11
|
+
declare class LYApp extends LYBaseApp {
|
|
12
12
|
}
|
|
13
13
|
export type { SSOConfig };
|
|
14
14
|
export { LYApp, LYBaseApp, LYTenantApp, LYOrganizationApp, LYTenantSession, TENANT_APP_NAME, ORGANIZATION_APP_NAME, LYEnv, LYWebAuthorizer, LYGatewayAuthorizer, LYDirectAuthorizer, LYRedirectAuthorizer, LYTenantAuthorizer };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LYBaseApp } from '../../base';
|
|
2
2
|
import { LYSessionApi } from '../api/session';
|
|
3
3
|
import type { SSOConfig } from '../api/session';
|
|
4
4
|
import { LYUserApi } from '../api/user';
|
|
5
5
|
import type { LYBaseAuthorizer } from '../authorizer/base';
|
|
6
6
|
import { LYLicenseApi } from '../api/license';
|
|
7
|
-
import { LYCrypto } from '../../../crypto';
|
|
8
7
|
import { LYOEMApi } from '../api/oem';
|
|
9
8
|
import { LYVerificationCodesApi } from '../api/verificationCodes';
|
|
10
|
-
|
|
9
|
+
import { LYAppHttpClient } from '../../../http';
|
|
10
|
+
declare class LYOrganizationApp extends LYBaseApp {
|
|
11
11
|
static _instance?: LYOrganizationApp;
|
|
12
12
|
private _sessionApi;
|
|
13
13
|
private _userApi;
|
|
@@ -17,14 +17,15 @@ declare class LYOrganizationApp extends LYBaseTenantApp {
|
|
|
17
17
|
private _verificationCodesApi;
|
|
18
18
|
constructor(name: string, version: string, description: string);
|
|
19
19
|
static get instance(): LYOrganizationApp;
|
|
20
|
+
_createHttpClient(): LYAppHttpClient;
|
|
20
21
|
get sessionApi(): LYSessionApi;
|
|
21
22
|
get userApi(): LYUserApi;
|
|
22
23
|
get oemApi(): LYOEMApi;
|
|
23
24
|
get licenseApi(): LYLicenseApi;
|
|
24
|
-
get crypto(): LYCrypto;
|
|
25
25
|
get verificationCodesApi(): LYVerificationCodesApi;
|
|
26
26
|
protected doLoad(): Promise<void>;
|
|
27
27
|
private mergeOEM;
|
|
28
28
|
getAuthorizer<T extends LYBaseAuthorizer = LYBaseAuthorizer>(name?: string): T;
|
|
29
|
+
private getBaseUrl;
|
|
29
30
|
}
|
|
30
31
|
export { LYOrganizationApp, SSOConfig };
|
|
@@ -3,6 +3,7 @@ import { LYTenantApi } from '../api/tenant';
|
|
|
3
3
|
import { LYUserApi } from '../api/user';
|
|
4
4
|
import { LYConfigurationApi } from '../api/configuration';
|
|
5
5
|
import { LYTenantAuthorizer } from '../authorizer';
|
|
6
|
+
import { LYAppHttpClient } from '../../../http';
|
|
6
7
|
declare class LYTenantApp extends LYBaseApp {
|
|
7
8
|
static _instance?: LYTenantApp;
|
|
8
9
|
private _tenantApi;
|
|
@@ -10,6 +11,7 @@ declare class LYTenantApp extends LYBaseApp {
|
|
|
10
11
|
private _configuration;
|
|
11
12
|
private _authorizer;
|
|
12
13
|
constructor(name: string, version: string, description: string);
|
|
14
|
+
_createHttpClient(): LYAppHttpClient;
|
|
13
15
|
static get instance(): LYTenantApp;
|
|
14
16
|
get tenantApi(): LYTenantApi;
|
|
15
17
|
get userApi(): LYUserApi;
|
package/dist/http/index.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ export declare class LYAppHttpClient extends LYHttpClient {
|
|
|
163
163
|
*/
|
|
164
164
|
private parseChunk;
|
|
165
165
|
}
|
|
166
|
-
export declare class
|
|
166
|
+
export declare class LYOrganizationHttpClient extends LYAppHttpClient {
|
|
167
167
|
static getTenantName(): string;
|
|
168
168
|
protected _getUrl(url: string): string;
|
|
169
169
|
}
|