@acorex/connectivity 19.2.20 → 19.3.0-next.1
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/api/lib/api-storage.service.d.ts +2 -1
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +1082 -427
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/lib/common/common.module.d.ts +6 -0
- package/mock/lib/common/dashboard/dashboard.mock.data.d.ts +13 -0
- package/mock/lib/common/dashboard/dashboard.mock.service.d.ts +50 -0
- package/mock/lib/common/dashboard/dashboard.seeder.d.ts +8 -0
- package/mock/lib/common/dashboard/index.d.ts +3 -0
- package/mock/lib/common/index.d.ts +1 -0
- package/mock/lib/conversation/comments/comment.mock.service.d.ts +2 -2
- package/mock/lib/dexie-storage.service.d.ts +16 -0
- package/mock/lib/document-management/document-type/document-type.mock.d.ts +1 -2
- package/mock/lib/document-management/document-type/document-type.seeder.d.ts +0 -1
- package/mock/lib/document-management/file/file.service.d.ts +1 -6
- package/mock/lib/document-management/folder/folder.service.d.ts +1 -1
- package/mock/lib/form-template-management/{category.seeder.d.ts → data.seeder.d.ts} +0 -1
- package/mock/lib/form-template-management/mock.data.d.ts +3 -0
- package/mock/lib/mock.module.d.ts +2 -1
- package/mock/lib/security-management/mock-data.d.ts +4 -0
- package/package.json +1 -1
- package/mock/lib/form-template-management/datasource-provider.mock.service.d.ts +0 -4
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class AXCCommonMockModule {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCCommonMockModule, never>;
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCCommonMockModule, never, never, never>;
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCCommonMockModule>;
|
6
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
type AXMCommonDashboardEntityModel = {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
title: string;
|
5
|
+
description: string;
|
6
|
+
widget: any[];
|
7
|
+
createdAt?: Date;
|
8
|
+
createdBy?: string;
|
9
|
+
};
|
10
|
+
export declare function generateRandomDashboard(): AXMCommonDashboardEntityModel;
|
11
|
+
export declare function generateExtraRandomDashboards(count: number): AXMCommonDashboardEntityModel[];
|
12
|
+
export declare const DASHBOARDS: AXMCommonDashboardEntityModel[];
|
13
|
+
export {};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { AXMCommonDashboardEntityModel, AXMDashboardServiceImpl } from '@acorex/modules/common';
|
2
|
+
import { AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
interface AXPPagedListResult<T> {
|
6
|
+
items: T[];
|
7
|
+
total: number;
|
8
|
+
}
|
9
|
+
interface AXPQueryRequest {
|
10
|
+
skip?: number;
|
11
|
+
take?: number;
|
12
|
+
filter?: any;
|
13
|
+
}
|
14
|
+
export declare class AXMDashboardMockService extends AXMDashboardServiceImpl {
|
15
|
+
private readonly dashboardCollection;
|
16
|
+
protected readonly mockStorage: AXPEntityStorageService<any, any, any, any, any>;
|
17
|
+
constructor();
|
18
|
+
get storageService(): any;
|
19
|
+
insertOne(request: Omit<AXMCommonDashboardEntityModel, 'id'>): Promise<string>;
|
20
|
+
getOne(id: string): Promise<AXMCommonDashboardEntityModel>;
|
21
|
+
deleteOne(id: string): Promise<void>;
|
22
|
+
updateOne(id: string, values: {
|
23
|
+
[key: string]: any;
|
24
|
+
}): Promise<AXMCommonDashboardEntityModel>;
|
25
|
+
query(request?: AXPQueryRequest): Promise<AXPPagedListResult<AXMCommonDashboardEntityModel>>;
|
26
|
+
getAll(): Promise<AXMCommonDashboardEntityModel[]>;
|
27
|
+
/**
|
28
|
+
* Generate a random dashboard and add it to the store
|
29
|
+
*/
|
30
|
+
createRandomDashboard(): Promise<string>;
|
31
|
+
/**
|
32
|
+
* Update widget configuration within a dashboard
|
33
|
+
*/
|
34
|
+
updateWidgetConfig(dashboardId: string, widgetId: string, config: any): Promise<void>;
|
35
|
+
/**
|
36
|
+
* Update widget node within a dashboard
|
37
|
+
*/
|
38
|
+
updateWidgetNode(dashboardId: string, widgetId: string, node: any): Promise<void>;
|
39
|
+
/**
|
40
|
+
* Get dashboards as Observable for the store
|
41
|
+
*/
|
42
|
+
getDashboards(): Observable<AXMCommonDashboardEntityModel[]>;
|
43
|
+
/**
|
44
|
+
* Save a dashboard (create or update)
|
45
|
+
*/
|
46
|
+
saveDashboard(dashboard: AXMCommonDashboardEntityModel): Promise<string>;
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMDashboardMockService, never>;
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMDashboardMockService>;
|
49
|
+
}
|
50
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { AXPDataSeeder } from '@acorex/platform/layout/entity';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXPDashboardDataSeeder implements AXPDataSeeder {
|
4
|
+
private storageService;
|
5
|
+
seed(): Promise<void>;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDashboardDataSeeder, never>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDashboardDataSeeder>;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './common.module';
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { AXMCreateCommentDto, AXMCommentServiceImpl, AXMMessageReactionEntityModel } from '@acorex/modules/conversation';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class AXMCommentMockService extends AXMCommentServiceImpl {
|
4
4
|
private sessionService;
|
5
|
-
insertOne(request:
|
5
|
+
insertOne(request: AXMCreateCommentDto): Promise<string>;
|
6
6
|
like(payload: AXMMessageReactionEntityModel): Promise<string>;
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMCommentMockService, never>;
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMCommentMockService>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import Dexie from 'dexie';
|
2
|
+
import { AXPPagedListResult, AXPQueryRequest } from '@acorex/platform/core';
|
3
|
+
import { AXPEntityStorageService } from '@acorex/platform/layout/entity';
|
4
|
+
export declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
|
5
|
+
constructor();
|
6
|
+
get dbName(): string;
|
7
|
+
initial<T = any>(entityName: string, collection: T[]): Promise<T[]>;
|
8
|
+
getOne<T = any>(entityName: string, id: string): Promise<T>;
|
9
|
+
updateOne<T = any>(entityName: string, id: string, keyValue: {
|
10
|
+
[key: string]: any;
|
11
|
+
}): Promise<T>;
|
12
|
+
deleteOne(entityName: string, id: string): Promise<void>;
|
13
|
+
insertOne<T = any>(entityName: string, entity: T): Promise<string>;
|
14
|
+
getAll<T = any>(entityName: string): Promise<T[]>;
|
15
|
+
query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
|
16
|
+
}
|
@@ -1,3 +1,2 @@
|
|
1
1
|
import { AXMDocumentManagementDocumentTypeEntityModel } from '@acorex/modules/document-management';
|
2
|
-
|
3
|
-
export declare function DocumentTypeMockGenerator(injector: Injector): Promise<AXMDocumentManagementDocumentTypeEntityModel[]>;
|
2
|
+
export declare const DOCUMENT_TYPES: AXMDocumentManagementDocumentTypeEntityModel[];
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { AXPDataSeeder } from '@acorex/platform/layout/entity';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class AXCDocumentTypeDataSeeder implements AXPDataSeeder {
|
4
|
-
private injector;
|
5
4
|
private storageService;
|
6
5
|
seed(): Promise<void>;
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCDocumentTypeDataSeeder, never>;
|
@@ -7,12 +7,7 @@ export declare class AXMFileMockService extends AXMDocumentServiceImpl {
|
|
7
7
|
insertOne(request: Omit<AXMDocumentManagementDocumentEntityModel, 'id'>): Promise<string>;
|
8
8
|
updateOne(id: string, values: Partial<AXMDocumentManagementDocumentEntityModel>): Promise<AXMDocumentManagementDocumentEntityModel>;
|
9
9
|
deleteOne(id: string): Promise<void>;
|
10
|
-
getPath(documentId: string): Promise<AXMDocumentManagementFolderEntityModel[]>;
|
11
|
-
/**
|
12
|
-
* جستجوی فایلها با نام مشخص شده با استفاده از روش بازگشتی
|
13
|
-
* @param searchTerm عبارت جستجو
|
14
|
-
* @param rootFolderId شناسه فولدر ریشه برای شروع جستجو
|
15
|
-
*/
|
10
|
+
getPath(documentId: string, stop?: string): Promise<AXMDocumentManagementFolderEntityModel[]>;
|
16
11
|
searchFiles(searchTerm: string, rootFolderId: string): Promise<AXMDocumentManagementDocumentEntityModel[]>;
|
17
12
|
/**
|
18
13
|
* جستجوی بازگشتی فایلها
|
@@ -5,7 +5,7 @@ export declare class AXMFolderMockService extends AXMFolderServiceImpl {
|
|
5
5
|
insertOne(request: Omit<AXMDocumentManagementFolderEntityModel, 'id'>): Promise<string>;
|
6
6
|
updateOne(id: string, values: Partial<AXMDocumentManagementFolderEntityModel>): Promise<AXMDocumentManagementFolderEntityModel>;
|
7
7
|
deleteOne(id: string): Promise<void>;
|
8
|
-
getPath(folderId: string): Promise<AXMDocumentManagementFolderEntityModel[]>;
|
8
|
+
getPath(folderId: string, stopFolderId?: string): Promise<AXMDocumentManagementFolderEntityModel[]>;
|
9
9
|
getOne(id: string): Promise<AXMDocumentManagementFolderEntityModel>;
|
10
10
|
/**
|
11
11
|
* Search folders with specified name using recursive method
|
@@ -3,7 +3,6 @@ import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPFormTemplateCategoryDataSeeder implements AXPDataSeeder {
|
4
4
|
private storageService;
|
5
5
|
seed(): Promise<void>;
|
6
|
-
private generateCategories;
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPFormTemplateCategoryDataSeeder, never>;
|
8
7
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPFormTemplateCategoryDataSeeder>;
|
9
8
|
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { AXMCreateFormTemplateDto, AXMFormTemplateCategoryEntityModel } from '@acorex/modules/form-template-management';
|
2
|
+
export declare const TEMPLATE_CATEGORIES: AXMFormTemplateCategoryEntityModel[];
|
3
|
+
export declare const TEMPLATE_FORM_TEMPLATES: AXMCreateFormTemplateDto[];
|
@@ -4,8 +4,9 @@ import * as i2 from "./form-template-management/form-template-management-mock.mo
|
|
4
4
|
import * as i3 from "./organization-management/organization-management-mock.module";
|
5
5
|
import * as i4 from "./conversation/conversation.module";
|
6
6
|
import * as i5 from "./security-management/security-management-mock.module";
|
7
|
+
import * as i6 from "./common/common.module";
|
7
8
|
export declare class AXCMockModule {
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1.AXPAuthModule, typeof i2.AXCFormTemplateManagementMockModule, typeof i3.AXCFOrganizationManagementMockModule, typeof i4.AXCConversationMockModule, typeof i5.AXCSecurityManagementMockModule], never>;
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1.AXPAuthModule, typeof i2.AXCFormTemplateManagementMockModule, typeof i3.AXCFOrganizationManagementMockModule, typeof i4.AXCConversationMockModule, typeof i5.AXCSecurityManagementMockModule, typeof i6.AXCCommonMockModule], never>;
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
11
12
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AXPApplication, AXPTenant } from '@acorex/platform/auth';
|
1
2
|
export interface MockRole {
|
2
3
|
id: string;
|
3
4
|
name: string;
|
@@ -10,6 +11,7 @@ interface UserRole {
|
|
10
11
|
title: string;
|
11
12
|
}
|
12
13
|
export interface MockUser {
|
14
|
+
id: string;
|
13
15
|
username: string;
|
14
16
|
firstname: string;
|
15
17
|
lastname: string;
|
@@ -17,6 +19,8 @@ export interface MockUser {
|
|
17
19
|
mobile: string;
|
18
20
|
roleIds: UserRole[];
|
19
21
|
}
|
22
|
+
export declare const tenantsMock: AXPTenant[];
|
23
|
+
export declare const applications: AXPApplication[];
|
20
24
|
export declare const mockRoleDefinitions: {
|
21
25
|
id: string;
|
22
26
|
name: string;
|
package/package.json
CHANGED