@xxmachina/common 0.0.0-PLACEHOLDER
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/_shared/auth/index.d.ts +8 -0
- package/_shared/auth/passports/anonymous/index.d.ts +8 -0
- package/_shared/auth/passports/firebase/index.d.ts +19 -0
- package/_shared/auth/passports/internal/index.d.ts +17 -0
- package/_shared/auth/passports/msal/index.d.ts +26 -0
- package/_shared/meta/index.d.ts +8 -0
- package/_shared/meta/redis/index.d.ts +39 -0
- package/auth/index.d.ts +16 -0
- package/azure-auth/index.d.ts +41 -0
- package/domain/builder/index.d.ts +81 -0
- package/domain/builder/screen-item/index.d.ts +7 -0
- package/domain/index.d.ts +2 -0
- package/domain/models/index.d.ts +517 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +20 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +41 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +34 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +49 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs +25 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +99 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs +26 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -0
- package/fesm2022/xxmachina-common-auth.mjs +17 -0
- package/fesm2022/xxmachina-common-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs +160 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs +201 -0
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs +494 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-models.mjs +841 -0
- package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain.mjs +7 -0
- package/fesm2022/xxmachina-common-domain.mjs.map +1 -0
- package/fesm2022/xxmachina-common-firebase-auth.mjs +36 -0
- package/fesm2022/xxmachina-common-firebase-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +39 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +13 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +61 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs +10 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external.mjs +35 -0
- package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +33 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +20 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +18 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +73 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +41 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +105 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra.mjs +368 -0
- package/fesm2022/xxmachina-common-infra.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs +79 -0
- package/fesm2022/xxmachina-common-invoice-domain-builders.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs +432 -0
- package/fesm2022/xxmachina-common-invoice-domain-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs +41 -0
- package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-domain.mjs +8 -0
- package/fesm2022/xxmachina-common-invoice-domain.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs +27 -0
- package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs +191 -0
- package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs +36 -0
- package/fesm2022/xxmachina-common-invoice-usecase-order.mjs.map +1 -0
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs +36 -0
- package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-graphql.mjs +323 -0
- package/fesm2022/xxmachina-common-services-graphql.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-query-config.mjs +44 -0
- package/fesm2022/xxmachina-common-services-query-config.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-query.mjs +65 -0
- package/fesm2022/xxmachina-common-services-query.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-speech.mjs +178 -0
- package/fesm2022/xxmachina-common-services-speech.mjs.map +1 -0
- package/fesm2022/xxmachina-common-services-transformer.mjs +27 -0
- package/fesm2022/xxmachina-common-services-transformer.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs +33 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs +32 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-inmemory.mjs +102 -0
- package/fesm2022/xxmachina-common-stores-inmemory.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores.mjs +16 -0
- package/fesm2022/xxmachina-common-stores.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +67 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs +95 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +51 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs +26 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs +35 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs +45 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase.mjs +198 -0
- package/fesm2022/xxmachina-common-usecase.mjs.map +1 -0
- package/fesm2022/xxmachina-common-utils-crypto.mjs +30 -0
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +1 -0
- package/fesm2022/xxmachina-common-utils.mjs +53 -0
- package/fesm2022/xxmachina-common-utils.mjs.map +1 -0
- package/fesm2022/xxmachina-common.mjs +6 -0
- package/fesm2022/xxmachina-common.mjs.map +1 -0
- package/firebase-auth/index.d.ts +6 -0
- package/index.d.ts +1 -0
- package/infra/converters/google/index.d.ts +15 -0
- package/infra/external/data-connect/index.d.ts +7 -0
- package/infra/external/index.d.ts +24 -0
- package/infra/external/quick-js/index.d.ts +24 -0
- package/infra/external/resend/index.d.ts +16 -0
- package/infra/index.d.ts +206 -0
- package/infra/query/firestore/index.d.ts +20 -0
- package/infra/query/hasura/index.d.ts +9 -0
- package/infra/repository/dataconnect/index.d.ts +28 -0
- package/infra/repository/firestore/index.d.ts +42 -0
- package/infra/repository/hasura/index.d.ts +24 -0
- package/infra/repository/notion/index.d.ts +89 -0
- package/invoice/domain/builders/index.d.ts +31 -0
- package/invoice/domain/index.d.ts +3 -0
- package/invoice/domain/models/index.d.ts +78 -0
- package/invoice/domain/resolvers/index.d.ts +15 -0
- package/invoice/usecase/contract/index.d.ts +14 -0
- package/invoice/usecase/invoice/index.d.ts +34 -0
- package/invoice/usecase/order/index.d.ts +16 -0
- package/invoice/usecase/partner/index.d.ts +16 -0
- package/package.json +276 -0
- package/services/graphql/index.d.ts +97 -0
- package/services/query/config/index.d.ts +18 -0
- package/services/query/index.d.ts +29 -0
- package/services/speech/index.d.ts +37 -0
- package/services/transformer/index.d.ts +14 -0
- package/stores/firestore/index.d.ts +17 -0
- package/stores/hasura/index.d.ts +17 -0
- package/stores/index.d.ts +32 -0
- package/stores/inmemory/index.d.ts +33 -0
- package/usecase/assistant/index.d.ts +18 -0
- package/usecase/database/index.d.ts +39 -0
- package/usecase/graphql/index.d.ts +17 -0
- package/usecase/index.d.ts +73 -0
- package/usecase/link/index.d.ts +13 -0
- package/usecase/project/index.d.ts +16 -0
- package/usecase/spec/index.d.ts +17 -0
- package/utils/crypto/index.d.ts +9 -0
- package/utils/index.d.ts +5 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Strategy } from 'passport-custom';
|
|
2
|
+
|
|
3
|
+
declare const AnonymousStrategy_base: new (...args: any[]) => Strategy;
|
|
4
|
+
declare class AnonymousStrategy extends AnonymousStrategy_base {
|
|
5
|
+
validate(request: Request): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { AnonymousStrategy };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _nestjs_passport from '@nestjs/passport';
|
|
2
|
+
import { ExecutionContext } from '@nestjs/common';
|
|
3
|
+
import { FirebaseAuthStrategy } from '@tfarras/nestjs-firebase-auth';
|
|
4
|
+
import { Request } from 'express';
|
|
5
|
+
import { ParamsDictionary } from 'express-serve-static-core';
|
|
6
|
+
import { ParsedQs } from 'qs';
|
|
7
|
+
|
|
8
|
+
declare const FirebaseAuthGuard_base: _nestjs_passport.Type<_nestjs_passport.IAuthGuard>;
|
|
9
|
+
declare class FirebaseAuthGuard extends FirebaseAuthGuard_base {
|
|
10
|
+
getRequest(context: ExecutionContext): any;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const FirebaseStrategy_base: new (...args: any[]) => FirebaseAuthStrategy;
|
|
14
|
+
declare class FirebaseStrategy extends FirebaseStrategy_base {
|
|
15
|
+
constructor();
|
|
16
|
+
authenticate(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { FirebaseAuthGuard, FirebaseStrategy };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as passport_http_bearer from 'passport-http-bearer';
|
|
2
|
+
import { Strategy } from 'passport-http-bearer';
|
|
3
|
+
import { InjectionToken } from '@nestjs/common';
|
|
4
|
+
|
|
5
|
+
declare const INTERNAL_STRATEGY_TOKEN: InjectionToken;
|
|
6
|
+
declare function provideInternalStrategyToken(token: string): {
|
|
7
|
+
provide: InjectionToken;
|
|
8
|
+
useValue: string;
|
|
9
|
+
};
|
|
10
|
+
declare const InternalStrategy_base: new (...args: any[]) => Strategy<passport_http_bearer.VerifyFunctions>;
|
|
11
|
+
declare class InternalStrategy extends InternalStrategy_base {
|
|
12
|
+
private token;
|
|
13
|
+
constructor(token: string);
|
|
14
|
+
validate(token: string): Promise<boolean>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { INTERNAL_STRATEGY_TOKEN, InternalStrategy, provideInternalStrategyToken };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as _nestjs_passport from '@nestjs/passport';
|
|
2
|
+
import * as jsonwebtoken from 'jsonwebtoken';
|
|
3
|
+
import { Provider } from '@nestjs/common';
|
|
4
|
+
import { Strategy } from 'passport-custom';
|
|
5
|
+
|
|
6
|
+
declare const MsalAuthGuard_base: _nestjs_passport.Type<_nestjs_passport.IAuthGuard>;
|
|
7
|
+
declare class MsalAuthGuard extends MsalAuthGuard_base {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const MSAL_CONFIG = "MSAL_CONFIG";
|
|
11
|
+
interface MsalConfig {
|
|
12
|
+
tenantId: string;
|
|
13
|
+
audience: string;
|
|
14
|
+
applicationId: string;
|
|
15
|
+
scopes: string[];
|
|
16
|
+
}
|
|
17
|
+
declare function provideMsalAuth(useFactory: () => MsalConfig): Provider[];
|
|
18
|
+
declare const MsalStrategy_base: new (...args: any[]) => Strategy;
|
|
19
|
+
declare class MsalStrategy extends MsalStrategy_base {
|
|
20
|
+
private readonly config;
|
|
21
|
+
constructor(config: MsalConfig);
|
|
22
|
+
validate(req: any): Promise<string | jsonwebtoken.JwtPayload>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { MSAL_CONFIG, MsalAuthGuard, MsalStrategy, provideMsalAuth };
|
|
26
|
+
export type { MsalConfig };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { RedisClientType } from 'redis';
|
|
4
|
+
|
|
5
|
+
interface RedisConfig {
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
declare const REDIS_CONFIG: InjectionToken<RedisConfig>;
|
|
9
|
+
declare function provideRedisConfig(config: RedisConfig): {
|
|
10
|
+
provide: InjectionToken<RedisConfig>;
|
|
11
|
+
useValue: RedisConfig;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
declare class Converter<E, R> {
|
|
15
|
+
fromRedis(record: R): E;
|
|
16
|
+
toRedis(entity: E): R;
|
|
17
|
+
}
|
|
18
|
+
declare abstract class RedisRepository<E extends {
|
|
19
|
+
id: string;
|
|
20
|
+
} = any, R extends object = object> {
|
|
21
|
+
protected abstract entityName: string;
|
|
22
|
+
protected converter: Converter<E, R>;
|
|
23
|
+
protected config: RedisConfig;
|
|
24
|
+
protected client: RedisClientType;
|
|
25
|
+
constructor();
|
|
26
|
+
init(): Promise<void>;
|
|
27
|
+
list(): Promise<Awaited<E>[]>;
|
|
28
|
+
get(id: string): Promise<E>;
|
|
29
|
+
create(entity: E): Promise<E>;
|
|
30
|
+
update(entity: any): Promise<void>;
|
|
31
|
+
delete(id: string): Promise<void>;
|
|
32
|
+
deleteAll(): Promise<void>;
|
|
33
|
+
getKey(id: string): string;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RedisRepository<any, any>, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RedisRepository<any, any>>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { Converter, REDIS_CONFIG, RedisRepository, provideRedisConfig };
|
|
39
|
+
export type { RedisConfig };
|
package/auth/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
declare abstract class AuthService {
|
|
6
|
+
abstract readonly auth$: Observable<any>;
|
|
7
|
+
abstract readonly auth: Signal<any>;
|
|
8
|
+
abstract readonly accessToken$: Observable<string>;
|
|
9
|
+
abstract readonly accessToken: Signal<string>;
|
|
10
|
+
abstract signIn(): Promise<any>;
|
|
11
|
+
abstract signOut(): Promise<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { AuthService };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { MsalService } from '@azure/msal-angular';
|
|
5
|
+
import { Configuration, AccountInfo } from '@azure/msal-browser';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
|
|
8
|
+
declare abstract class AuthService {
|
|
9
|
+
abstract readonly auth$: Observable<any>;
|
|
10
|
+
abstract readonly accessToken$: Observable<string>;
|
|
11
|
+
abstract signIn(): Promise<any>;
|
|
12
|
+
abstract signOut(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
interface AzureAuthConfig {
|
|
15
|
+
configuration: Configuration;
|
|
16
|
+
scopes: string[];
|
|
17
|
+
}
|
|
18
|
+
declare const AZURE_AUTH_CONFIG: InjectionToken<AzureAuthConfig>;
|
|
19
|
+
declare class AzureAuthService extends AuthService {
|
|
20
|
+
msal: MsalService;
|
|
21
|
+
protected readonly config: AzureAuthConfig;
|
|
22
|
+
readonly auth$: ReplaySubject<AccountInfo>;
|
|
23
|
+
readonly auth: _angular_core.Signal<AccountInfo>;
|
|
24
|
+
readonly accessToken: _angular_core.WritableSignal<any>;
|
|
25
|
+
readonly accessToken$: Observable<any>;
|
|
26
|
+
readonly http: HttpClient;
|
|
27
|
+
constructor(msal: MsalService);
|
|
28
|
+
initialize(): Promise<void>;
|
|
29
|
+
signIn(): Promise<any>;
|
|
30
|
+
signOut(): Promise<void>;
|
|
31
|
+
protected updateAccessToken(scopes?: string[]): Promise<void>;
|
|
32
|
+
acquireAccessToken(scopes?: string[]): Promise<string>;
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AzureAuthService, never>;
|
|
34
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AzureAuthService>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare function provideAppInitializer(useValue: () => void): EnvironmentProviders;
|
|
38
|
+
declare function provideAzureAuth(config: AzureAuthConfig): EnvironmentProviders;
|
|
39
|
+
|
|
40
|
+
export { AZURE_AUTH_CONFIG, AzureAuthService, provideAppInitializer, provideAzureAuth };
|
|
41
|
+
export type { AzureAuthConfig };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { OpenApi, Command, Query, Database, ScreenItem } from '@xxmachina/common/domain/models';
|
|
2
|
+
import { CreateActionsOptions, Action } from '@ng-atomic/core';
|
|
3
|
+
import { NavigationExtras } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
declare class CommandBuilder {
|
|
6
|
+
buildFromOpenApi(openApi: OpenApi): Command[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare enum ActionId {
|
|
10
|
+
NAVIGATE_TO_COMMAND_PAGE = "[@xxmachina/common] Navigate To Command Page",
|
|
11
|
+
EXECUTE_COMMAND = "[@xxmachina/common] Execute Command"
|
|
12
|
+
}
|
|
13
|
+
interface CommandActionFactoryOptions extends CreateActionsOptions {
|
|
14
|
+
queryId?: string;
|
|
15
|
+
confirm?: () => Promise<boolean> | boolean;
|
|
16
|
+
}
|
|
17
|
+
interface CommandActionPayload<P> {
|
|
18
|
+
command: any;
|
|
19
|
+
body: P;
|
|
20
|
+
options?: {
|
|
21
|
+
confirm?: () => Promise<boolean> | boolean;
|
|
22
|
+
queryId?: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
declare class CommandActionsBuilder {
|
|
26
|
+
private commands;
|
|
27
|
+
private options;
|
|
28
|
+
private item;
|
|
29
|
+
private filterIds;
|
|
30
|
+
private autoIds;
|
|
31
|
+
setCommands(commands: Command[]): CommandActionsBuilder;
|
|
32
|
+
setOptions(options: Partial<CommandActionFactoryOptions>): CommandActionsBuilder;
|
|
33
|
+
setItem(item: any): CommandActionsBuilder;
|
|
34
|
+
setFilterIds(filterIds?: (string | {
|
|
35
|
+
id: string;
|
|
36
|
+
auto: boolean;
|
|
37
|
+
})[]): CommandActionsBuilder;
|
|
38
|
+
setAutoIds(autoIds: string[]): CommandActionsBuilder;
|
|
39
|
+
private applyFilter;
|
|
40
|
+
buildAction(id: string): Action;
|
|
41
|
+
buildActions(item?: any, navigationExtras?: NavigationExtras, overwrite?: Partial<Action>): Action[];
|
|
42
|
+
buildItemActions<T>(): (item: T) => Action[];
|
|
43
|
+
}
|
|
44
|
+
declare function createCommandNavigateAction(command: Command, navigationExtras?: NavigationExtras, item?: any, options?: CommandActionFactoryOptions, overwrite?: Partial<Action>): Action | null;
|
|
45
|
+
declare function createCommandExecutionAction(command: Command, item?: any, options?: CommandActionFactoryOptions, overwrite?: Partial<Action>): Action | null;
|
|
46
|
+
|
|
47
|
+
interface Schema {
|
|
48
|
+
name: string;
|
|
49
|
+
fields: string[];
|
|
50
|
+
relations: Relation[];
|
|
51
|
+
}
|
|
52
|
+
interface Relation {
|
|
53
|
+
source: string;
|
|
54
|
+
target: string;
|
|
55
|
+
label?: string;
|
|
56
|
+
type?: string;
|
|
57
|
+
}
|
|
58
|
+
declare class ErBuilder {
|
|
59
|
+
build(databases: any): string;
|
|
60
|
+
parseDatabaseSchema(database: any, name?: string, map?: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
}): Schema;
|
|
63
|
+
buildMermaidER(schemas: Schema[]): string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare class QueryBuilder {
|
|
67
|
+
static buildByGraphql(graphql: {
|
|
68
|
+
endpoint: string;
|
|
69
|
+
query: string;
|
|
70
|
+
headers: Record<string, string>;
|
|
71
|
+
variables: Record<string, any>;
|
|
72
|
+
transformerTs?: string;
|
|
73
|
+
}, meta?: Partial<Omit<Query, 'graphql'>>): Query;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class ScreenItemBuilder {
|
|
77
|
+
build(database: Database): ScreenItem[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { ActionId, CommandActionsBuilder, CommandBuilder, ErBuilder, QueryBuilder, ScreenItemBuilder, createCommandExecutionAction, createCommandNavigateAction };
|
|
81
|
+
export type { CommandActionFactoryOptions, CommandActionPayload };
|