@antcde/connect-ts 0.0.50 → 0.0.53
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/build/AntConnect.d.ts +0 -12
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +0 -12
- package/build/comms/client.d.ts +5 -3
- package/build/comms/client.d.ts.map +1 -1
- package/build/comms/client.js +10 -5
- package/build/comms/host.d.ts +16 -1
- package/build/comms/host.d.ts.map +1 -1
- package/build/comms/host.js +18 -12
- package/build/comms/logRecordServiceCalls.d.ts +3 -0
- package/build/comms/logRecordServiceCalls.d.ts.map +1 -0
- package/build/comms/logRecordServiceCalls.js +59 -0
- package/build/comms/models.d.ts +2 -1
- package/build/comms/models.d.ts.map +1 -1
- package/build/comms/signal.d.ts +74 -0
- package/build/comms/signal.d.ts.map +1 -0
- package/build/comms/signal.js +27 -0
- package/build/comms/utils.d.ts +7 -0
- package/build/comms/utils.d.ts.map +1 -1
- package/build/comms/utils.js +11 -1
- package/build/index.d.ts +8 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/services/AppService.d.ts +7 -5
- package/build/services/AppService.d.ts.map +1 -1
- package/build/services/AppService.js +1 -0
- package/build/services/ColumnService.d.ts +1 -2
- package/build/services/ColumnService.d.ts.map +1 -1
- package/build/services/LabelService.d.ts +1 -6
- package/build/services/LabelService.d.ts.map +1 -1
- package/build/services/LabelService.js +1 -2
- package/build/services/ProjectService.d.ts +0 -2
- package/build/services/ProjectService.d.ts.map +1 -1
- package/build/services/RBAC/RoleService.d.ts.map +1 -1
- package/build/services/RecordService.d.ts +1 -1
- package/build/services/RecordService.d.ts.map +1 -1
- package/build/services/RecordService.js +2 -5
- package/build/services/ScriptsService.d.ts +2 -3
- package/build/services/ScriptsService.d.ts.map +1 -1
- package/build/services/TaskService.d.ts +70 -34
- package/build/services/TaskService.d.ts.map +1 -1
- package/build/services/TaskService.js +5 -4
- package/build/services/UserService.d.ts +0 -2
- package/build/services/UserService.d.ts.map +1 -1
- package/build/services/WorkflowService.d.ts.map +1 -1
- package/build/services/WorkflowService.js +2 -3
- package/package.json +4 -3
- package/build/cjs/AntConnect.d.ts +0 -69
- package/build/cjs/AntConnect.d.ts.map +0 -1
- package/build/cjs/AntConnect.js +0 -68
- package/build/cjs/AntHttpClient.d.ts +0 -34
- package/build/cjs/AntHttpClient.d.ts.map +0 -1
- package/build/cjs/AntHttpClient.js +0 -106
- package/build/cjs/ResponseStatusCodes.d.ts +0 -64
- package/build/cjs/ResponseStatusCodes.d.ts.map +0 -1
- package/build/cjs/ResponseStatusCodes.js +0 -67
- package/build/cjs/comms/client.d.ts +0 -33
- package/build/cjs/comms/client.d.ts.map +0 -1
- package/build/cjs/comms/client.js +0 -122
- package/build/cjs/comms/host.d.ts +0 -29
- package/build/cjs/comms/host.d.ts.map +0 -1
- package/build/cjs/comms/host.js +0 -132
- package/build/cjs/comms/models.d.ts +0 -58
- package/build/cjs/comms/models.d.ts.map +0 -1
- package/build/cjs/comms/models.js +0 -4
- package/build/cjs/comms/utils.d.ts +0 -45
- package/build/cjs/comms/utils.d.ts.map +0 -1
- package/build/cjs/comms/utils.js +0 -82
- package/build/cjs/index.d.ts +0 -19
- package/build/cjs/index.d.ts.map +0 -1
- package/build/cjs/index.js +0 -34
- package/build/cjs/services/AppService.d.ts +0 -97
- package/build/cjs/services/AppService.d.ts.map +0 -1
- package/build/cjs/services/AppService.js +0 -27
- package/build/cjs/services/ClientService.d.ts +0 -19
- package/build/cjs/services/ClientService.d.ts.map +0 -1
- package/build/cjs/services/ClientService.js +0 -10
- package/build/cjs/services/ColumnService.d.ts +0 -38
- package/build/cjs/services/ColumnService.d.ts.map +0 -1
- package/build/cjs/services/ColumnService.js +0 -12
- package/build/cjs/services/DmsService.d.ts +0 -58
- package/build/cjs/services/DmsService.d.ts.map +0 -1
- package/build/cjs/services/DmsService.js +0 -27
- package/build/cjs/services/DownloadService.d.ts +0 -16
- package/build/cjs/services/DownloadService.d.ts.map +0 -1
- package/build/cjs/services/DownloadService.js +0 -9
- package/build/cjs/services/LabelService.d.ts +0 -35
- package/build/cjs/services/LabelService.d.ts.map +0 -1
- package/build/cjs/services/LabelService.js +0 -13
- package/build/cjs/services/LaravelQueueService.d.ts +0 -8
- package/build/cjs/services/LaravelQueueService.d.ts.map +0 -1
- package/build/cjs/services/LaravelQueueService.js +0 -9
- package/build/cjs/services/LicenseService.d.ts +0 -27
- package/build/cjs/services/LicenseService.d.ts.map +0 -1
- package/build/cjs/services/LicenseService.js +0 -13
- package/build/cjs/services/LinkService.d.ts +0 -17
- package/build/cjs/services/LinkService.d.ts.map +0 -1
- package/build/cjs/services/LinkService.js +0 -11
- package/build/cjs/services/ModuleService.d.ts +0 -45
- package/build/cjs/services/ModuleService.d.ts.map +0 -1
- package/build/cjs/services/ModuleService.js +0 -19
- package/build/cjs/services/NewsService.d.ts +0 -19
- package/build/cjs/services/NewsService.d.ts.map +0 -1
- package/build/cjs/services/NewsService.js +0 -9
- package/build/cjs/services/PermissionService.d.ts +0 -28
- package/build/cjs/services/PermissionService.d.ts.map +0 -1
- package/build/cjs/services/PermissionService.js +0 -12
- package/build/cjs/services/Project/ProjectUserService.d.ts +0 -17
- package/build/cjs/services/Project/ProjectUserService.d.ts.map +0 -1
- package/build/cjs/services/Project/ProjectUserService.js +0 -10
- package/build/cjs/services/ProjectMemberService.d.ts +0 -24
- package/build/cjs/services/ProjectMemberService.d.ts.map +0 -1
- package/build/cjs/services/ProjectMemberService.js +0 -10
- package/build/cjs/services/ProjectRoleService.d.ts +0 -77
- package/build/cjs/services/ProjectRoleService.d.ts.map +0 -1
- package/build/cjs/services/ProjectRoleService.js +0 -16
- package/build/cjs/services/ProjectService.d.ts +0 -73
- package/build/cjs/services/ProjectService.d.ts.map +0 -1
- package/build/cjs/services/ProjectService.js +0 -15
- package/build/cjs/services/RBAC/PermissionService.d.ts +0 -55
- package/build/cjs/services/RBAC/PermissionService.d.ts.map +0 -1
- package/build/cjs/services/RBAC/PermissionService.js +0 -12
- package/build/cjs/services/RBAC/RoleService.d.ts +0 -36
- package/build/cjs/services/RBAC/RoleService.d.ts.map +0 -1
- package/build/cjs/services/RBAC/RoleService.js +0 -18
- package/build/cjs/services/RecordService.d.ts +0 -50
- package/build/cjs/services/RecordService.d.ts.map +0 -1
- package/build/cjs/services/RecordService.js +0 -37
- package/build/cjs/services/RevisionService.d.ts +0 -29
- package/build/cjs/services/RevisionService.d.ts.map +0 -1
- package/build/cjs/services/RevisionService.js +0 -12
- package/build/cjs/services/SbsService.d.ts +0 -34
- package/build/cjs/services/SbsService.d.ts.map +0 -1
- package/build/cjs/services/SbsService.js +0 -13
- package/build/cjs/services/ScriptsService.d.ts +0 -45
- package/build/cjs/services/ScriptsService.d.ts.map +0 -1
- package/build/cjs/services/ScriptsService.js +0 -23
- package/build/cjs/services/SignService.d.ts +0 -9
- package/build/cjs/services/SignService.d.ts.map +0 -1
- package/build/cjs/services/SignService.js +0 -8
- package/build/cjs/services/TableQueryService.d.ts +0 -46
- package/build/cjs/services/TableQueryService.d.ts.map +0 -1
- package/build/cjs/services/TableQueryService.js +0 -14
- package/build/cjs/services/TableService.d.ts +0 -87
- package/build/cjs/services/TableService.d.ts.map +0 -1
- package/build/cjs/services/TableService.js +0 -19
- package/build/cjs/services/TaskQueryService.d.ts +0 -12
- package/build/cjs/services/TaskQueryService.d.ts.map +0 -1
- package/build/cjs/services/TaskQueryService.js +0 -11
- package/build/cjs/services/TaskService.d.ts +0 -249
- package/build/cjs/services/TaskService.d.ts.map +0 -1
- package/build/cjs/services/TaskService.js +0 -143
- package/build/cjs/services/TokenService.d.ts +0 -32
- package/build/cjs/services/TokenService.d.ts.map +0 -1
- package/build/cjs/services/TokenService.js +0 -12
- package/build/cjs/services/UserService.d.ts +0 -99
- package/build/cjs/services/UserService.d.ts.map +0 -1
- package/build/cjs/services/UserService.js +0 -46
- package/build/cjs/services/WorkflowService.d.ts +0 -112
- package/build/cjs/services/WorkflowService.d.ts.map +0 -1
- package/build/cjs/services/WorkflowService.js +0 -185
- package/build/cjs/types.d.ts +0 -21
- package/build/cjs/types.d.ts.map +0 -1
- package/build/cjs/types.js +0 -2
- package/build/services/LinkService.d.ts +0 -17
- package/build/services/LinkService.d.ts.map +0 -1
- package/build/services/LinkService.js +0 -8
- package/build/services/ModuleService.d.ts +0 -45
- package/build/services/ModuleService.d.ts.map +0 -1
- package/build/services/ModuleService.js +0 -16
- package/build/services/NewsService.d.ts +0 -19
- package/build/services/NewsService.d.ts.map +0 -1
- package/build/services/NewsService.js +0 -6
- package/build/services/PermissionService.d.ts +0 -28
- package/build/services/PermissionService.d.ts.map +0 -1
- package/build/services/PermissionService.js +0 -9
- package/build/services/ProjectMemberService.d.ts +0 -24
- package/build/services/ProjectMemberService.d.ts.map +0 -1
- package/build/services/ProjectMemberService.js +0 -7
- package/build/services/ProjectRoleService.d.ts +0 -77
- package/build/services/ProjectRoleService.d.ts.map +0 -1
- package/build/services/ProjectRoleService.js +0 -13
- package/build/types/AntConnect.d.ts +0 -69
- package/build/types/AntConnect.d.ts.map +0 -1
- package/build/types/AntHttpClient.d.ts +0 -34
- package/build/types/AntHttpClient.d.ts.map +0 -1
- package/build/types/ResponseStatusCodes.d.ts +0 -64
- package/build/types/ResponseStatusCodes.d.ts.map +0 -1
- package/build/types/comms/client.d.ts +0 -33
- package/build/types/comms/client.d.ts.map +0 -1
- package/build/types/comms/host.d.ts +0 -29
- package/build/types/comms/host.d.ts.map +0 -1
- package/build/types/comms/models.d.ts +0 -58
- package/build/types/comms/models.d.ts.map +0 -1
- package/build/types/comms/utils.d.ts +0 -45
- package/build/types/comms/utils.d.ts.map +0 -1
- package/build/types/index.d.ts +0 -19
- package/build/types/index.d.ts.map +0 -1
- package/build/types/services/AppService.d.ts +0 -97
- package/build/types/services/AppService.d.ts.map +0 -1
- package/build/types/services/ClientService.d.ts +0 -19
- package/build/types/services/ClientService.d.ts.map +0 -1
- package/build/types/services/ColumnService.d.ts +0 -38
- package/build/types/services/ColumnService.d.ts.map +0 -1
- package/build/types/services/DmsService.d.ts +0 -58
- package/build/types/services/DmsService.d.ts.map +0 -1
- package/build/types/services/DownloadService.d.ts +0 -16
- package/build/types/services/DownloadService.d.ts.map +0 -1
- package/build/types/services/LabelService.d.ts +0 -35
- package/build/types/services/LabelService.d.ts.map +0 -1
- package/build/types/services/LaravelQueueService.d.ts +0 -8
- package/build/types/services/LaravelQueueService.d.ts.map +0 -1
- package/build/types/services/LicenseService.d.ts +0 -27
- package/build/types/services/LicenseService.d.ts.map +0 -1
- package/build/types/services/LinkService.d.ts +0 -17
- package/build/types/services/LinkService.d.ts.map +0 -1
- package/build/types/services/ModuleService.d.ts +0 -45
- package/build/types/services/ModuleService.d.ts.map +0 -1
- package/build/types/services/NewsService.d.ts +0 -19
- package/build/types/services/NewsService.d.ts.map +0 -1
- package/build/types/services/PermissionService.d.ts +0 -28
- package/build/types/services/PermissionService.d.ts.map +0 -1
- package/build/types/services/Project/ProjectUserService.d.ts +0 -17
- package/build/types/services/Project/ProjectUserService.d.ts.map +0 -1
- package/build/types/services/ProjectMemberService.d.ts +0 -24
- package/build/types/services/ProjectMemberService.d.ts.map +0 -1
- package/build/types/services/ProjectRoleService.d.ts +0 -77
- package/build/types/services/ProjectRoleService.d.ts.map +0 -1
- package/build/types/services/ProjectService.d.ts +0 -73
- package/build/types/services/ProjectService.d.ts.map +0 -1
- package/build/types/services/RBAC/PermissionService.d.ts +0 -55
- package/build/types/services/RBAC/PermissionService.d.ts.map +0 -1
- package/build/types/services/RBAC/RoleService.d.ts +0 -36
- package/build/types/services/RBAC/RoleService.d.ts.map +0 -1
- package/build/types/services/RecordService.d.ts +0 -50
- package/build/types/services/RecordService.d.ts.map +0 -1
- package/build/types/services/RevisionService.d.ts +0 -29
- package/build/types/services/RevisionService.d.ts.map +0 -1
- package/build/types/services/SbsService.d.ts +0 -34
- package/build/types/services/SbsService.d.ts.map +0 -1
- package/build/types/services/ScriptsService.d.ts +0 -45
- package/build/types/services/ScriptsService.d.ts.map +0 -1
- package/build/types/services/SignService.d.ts +0 -9
- package/build/types/services/SignService.d.ts.map +0 -1
- package/build/types/services/TableQueryService.d.ts +0 -46
- package/build/types/services/TableQueryService.d.ts.map +0 -1
- package/build/types/services/TableService.d.ts +0 -87
- package/build/types/services/TableService.d.ts.map +0 -1
- package/build/types/services/TaskQueryService.d.ts +0 -12
- package/build/types/services/TaskQueryService.d.ts.map +0 -1
- package/build/types/services/TaskService.d.ts +0 -249
- package/build/types/services/TaskService.d.ts.map +0 -1
- package/build/types/services/TokenService.d.ts +0 -32
- package/build/types/services/TokenService.d.ts.map +0 -1
- package/build/types/services/UserService.d.ts +0 -99
- package/build/types/services/UserService.d.ts.map +0 -1
- package/build/types/services/WorkflowService.d.ts +0 -112
- package/build/types/services/WorkflowService.d.ts.map +0 -1
- package/build/types/types.d.ts +0 -21
- package/build/types/types.d.ts.map +0 -1
package/build/AntConnect.d.ts
CHANGED
|
@@ -7,13 +7,7 @@ import type DownloadService from './services/DownloadService';
|
|
|
7
7
|
import type LabelService from './services/LabelService';
|
|
8
8
|
import type LaravelQueueService from './services/LaravelQueueService';
|
|
9
9
|
import type LicenseService from './services/LicenseService';
|
|
10
|
-
import type LinkService from './services/LinkService';
|
|
11
|
-
import type ModuleService from './services/ModuleService';
|
|
12
|
-
import type NewsService from './services/NewsService';
|
|
13
|
-
import type PermissionService from './services/PermissionService';
|
|
14
10
|
import type { ProjectUserService } from './services/Project/ProjectUserService';
|
|
15
|
-
import type ProjectMemberService from './services/ProjectMemberService';
|
|
16
|
-
import type ProjectRoleService from './services/ProjectRoleService';
|
|
17
11
|
import type ProjectService from './services/ProjectService';
|
|
18
12
|
import type { RBACPermissionService } from './services/RBAC/PermissionService';
|
|
19
13
|
import type { RBACRoleService } from './services/RBAC/RoleService';
|
|
@@ -39,24 +33,18 @@ export interface AntConnect {
|
|
|
39
33
|
readonly dms: DmsService;
|
|
40
34
|
readonly queue: LaravelQueueService;
|
|
41
35
|
readonly licenses: LicenseService;
|
|
42
|
-
readonly modules: ModuleService;
|
|
43
|
-
readonly news: NewsService;
|
|
44
|
-
readonly permissions: PermissionService;
|
|
45
36
|
readonly projects: ProjectService;
|
|
46
|
-
readonly projectMembers: ProjectMemberService;
|
|
47
37
|
readonly records: RecordService;
|
|
48
38
|
readonly revisions: RevisionService;
|
|
49
39
|
readonly sbs: SbsService;
|
|
50
40
|
readonly sign: SignService;
|
|
51
41
|
readonly tables: TableService;
|
|
52
|
-
readonly links: LinkService;
|
|
53
42
|
readonly tasks: TaskService;
|
|
54
43
|
readonly tasksQuery: TaskQueryService;
|
|
55
44
|
readonly tokens: TokenService;
|
|
56
45
|
readonly clients: ClientService;
|
|
57
46
|
readonly users: UserService;
|
|
58
47
|
readonly workflows: WorkflowService;
|
|
59
|
-
readonly projectRoles: ProjectRoleService;
|
|
60
48
|
readonly scripts: ScriptsService;
|
|
61
49
|
readonly labels: LabelService;
|
|
62
50
|
readonly apps: AppService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AntConnect.d.ts","sourceRoot":"","sources":["../src/AntConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,YAAY,MAAM,yBAAyB,CAAA;AACvD,OAAO,KAAK,mBAAmB,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AntConnect.d.ts","sourceRoot":"","sources":["../src/AntConnect.ts"],"names":[],"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,EAAE,aAAa,GAAG,UAAU,CA4BnE"}
|
package/build/AntConnect.js
CHANGED
|
@@ -6,13 +6,7 @@ import { newDownloadService } from './services/DownloadService';
|
|
|
6
6
|
import { newLabelService } from './services/LabelService';
|
|
7
7
|
import { newLaravelQueueService } from './services/LaravelQueueService';
|
|
8
8
|
import { newLicenseService } from './services/LicenseService';
|
|
9
|
-
import { newLinkService } from './services/LinkService';
|
|
10
|
-
import { newModuleService } from './services/ModuleService';
|
|
11
|
-
import { newNewsService } from './services/NewsService';
|
|
12
|
-
import { newPermissionService } from './services/PermissionService';
|
|
13
9
|
import { newProjectUserService } from './services/Project/ProjectUserService';
|
|
14
|
-
import { newProjectMemberService } from './services/ProjectMemberService';
|
|
15
|
-
import { newProjectRoleService } from './services/ProjectRoleService';
|
|
16
10
|
import { newProjectService } from './services/ProjectService';
|
|
17
11
|
import { newRBACPermissionService } from './services/RBAC/PermissionService';
|
|
18
12
|
import { newRBACRoleService } from './services/RBAC/RoleService';
|
|
@@ -32,28 +26,22 @@ export function newAntConnect(httpClient) {
|
|
|
32
26
|
return {
|
|
33
27
|
httpClient,
|
|
34
28
|
projects: newProjectService(httpClient),
|
|
35
|
-
projectMembers: newProjectMemberService(httpClient),
|
|
36
29
|
columns: newColumnService(httpClient),
|
|
37
30
|
downloads: newDownloadService(httpClient),
|
|
38
31
|
dms: newDmsService(httpClient),
|
|
39
32
|
queue: newLaravelQueueService(httpClient),
|
|
40
33
|
licenses: newLicenseService(httpClient),
|
|
41
|
-
modules: newModuleService(httpClient),
|
|
42
|
-
news: newNewsService(httpClient),
|
|
43
|
-
permissions: newPermissionService(httpClient),
|
|
44
34
|
records: newRecordService(httpClient),
|
|
45
35
|
revisions: newRevisionService(httpClient),
|
|
46
36
|
sbs: newSbsService(httpClient),
|
|
47
37
|
sign: newSignService(httpClient),
|
|
48
38
|
tables: newTableService(httpClient),
|
|
49
|
-
links: newLinkService(httpClient),
|
|
50
39
|
tasks: newTaskService(httpClient),
|
|
51
40
|
tasksQuery: newTaskQueryService(httpClient),
|
|
52
41
|
tokens: newTokenService(httpClient),
|
|
53
42
|
clients: newClientService(httpClient),
|
|
54
43
|
users: newUserService(httpClient),
|
|
55
44
|
workflows: newWorkflowService(httpClient),
|
|
56
|
-
projectRoles: newProjectRoleService(httpClient),
|
|
57
45
|
scripts: newScriptsService(httpClient),
|
|
58
46
|
labels: newLabelService(httpClient),
|
|
59
47
|
apps: newAppService(httpClient),
|
package/build/comms/client.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AntConnect } from "../AntConnect";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { Context, LocaleData, Notepad, Notifications, Toolbar } from './models';
|
|
4
4
|
import { type Scope } from './utils';
|
|
5
|
+
import { SignalReceiver, SignalSender } from './signal';
|
|
5
6
|
interface ClientParams {
|
|
6
7
|
parent: Window;
|
|
7
8
|
connect?: AntConnect;
|
|
@@ -11,7 +12,7 @@ interface Box {
|
|
|
11
12
|
scope: Scope;
|
|
12
13
|
parent: Window;
|
|
13
14
|
}
|
|
14
|
-
export interface Client extends
|
|
15
|
+
export interface Client extends Subscription {
|
|
15
16
|
notepad: Notepad;
|
|
16
17
|
notifications: Notifications;
|
|
17
18
|
connect: AntConnect;
|
|
@@ -25,6 +26,7 @@ export interface Client extends SubscriptionLike {
|
|
|
25
26
|
set: (state: string) => Promise<void>;
|
|
26
27
|
};
|
|
27
28
|
locales: Observable<LocaleData>;
|
|
29
|
+
signal: SignalSender & SignalReceiver;
|
|
28
30
|
}
|
|
29
31
|
export declare function newCommsClient(params: ClientParams): Client;
|
|
30
32
|
export declare function newNotepad({ scope, parent, clientIdChanges }: Box): Notepad;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/comms/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAoB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OAAO,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA;IAC/B,MAAM,EAAE,YAAY,GAAG,cAAc,CAAA;CACtC;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAkC3D;AA0ED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,EAAE,GAAG,GAAG,OAAO,CAe3E;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,GAAG,iBAevE"}
|
package/build/comms/client.js
CHANGED
|
@@ -7,16 +7,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import { BehaviorSubject, combineLatest, concatMap, firstValueFrom, identity, map, shareReplay, switchMap, take, tap, } from 'rxjs';
|
|
10
|
+
import { BehaviorSubject, combineLatest, concatMap, firstValueFrom, identity, map, share, shareReplay, switchMap, take, tap } from 'rxjs';
|
|
12
11
|
import { notificationTypes } from './models';
|
|
12
|
+
import { send } from 'post-robot';
|
|
13
13
|
import { clone, newScope, takeUntilClosed } from './utils';
|
|
14
|
+
import { newSignaler } from './signal';
|
|
14
15
|
export function newCommsClient(params) {
|
|
15
16
|
var _a;
|
|
16
17
|
const scope = newScope();
|
|
17
18
|
const clientIdChanges = scope
|
|
18
|
-
.once('ant/comms/init'
|
|
19
|
-
.pipe(
|
|
19
|
+
.once('ant/comms/init')
|
|
20
|
+
.pipe(map(({ data }) => data.clientId), shareReplay(1));
|
|
20
21
|
const box = {
|
|
21
22
|
clientIdChanges,
|
|
22
23
|
scope,
|
|
@@ -30,6 +31,10 @@ export function newCommsClient(params) {
|
|
|
30
31
|
toolbar: handleToolbarChanges(box),
|
|
31
32
|
appState: handleAppStateChanges(box),
|
|
32
33
|
locales: handleLocalesChange(box),
|
|
34
|
+
signal: newSignaler({
|
|
35
|
+
send: signals => firstValueFrom(clientIdChanges.pipe(take(1), concatMap(clientId => scope.send(parent, `ant/${clientId}/signal`, signals, { fireAndForget: false })), map(e => e.data))),
|
|
36
|
+
receiver: clientIdChanges.pipe(switchMap(clientId => scope.on(`ant/${clientId}/signal`)), share())
|
|
37
|
+
})
|
|
33
38
|
});
|
|
34
39
|
}
|
|
35
40
|
function handleAppStateChanges({ scope, clientIdChanges, parent }) {
|
|
@@ -45,7 +50,7 @@ function handleLocalesChange({ clientIdChanges, scope }) {
|
|
|
45
50
|
return clientIdChanges.pipe(switchMap(clientId => scope.on(`ant/${clientId}/locales`)), map(e => e.data));
|
|
46
51
|
}
|
|
47
52
|
function handleToolbarChanges({ scope, parent, clientIdChanges }) {
|
|
48
|
-
const toolbar = new BehaviorSubject({ menu: [], search: { enabled: false, input: '' } });
|
|
53
|
+
const toolbar = new BehaviorSubject({ menu: [], search: { enabled: false, input: '' }, isLoading: false });
|
|
49
54
|
const set = (value) => {
|
|
50
55
|
if (typeof value === 'function') {
|
|
51
56
|
toolbar.next(value(toolbar.value));
|
package/build/comms/host.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AntConnect } from "../AntConnect";
|
|
2
|
-
import type { Observable, SubscriptionLike } from 'rxjs';
|
|
2
|
+
import type { Observable, Subject, SubscriptionLike } from 'rxjs';
|
|
3
3
|
import type { Context, LocaleData, Notepad, Notification, Toolbar } from './models';
|
|
4
|
+
import type { SignalReceiver, SignalSender } from './signal';
|
|
5
|
+
import type { Scope } from './utils';
|
|
4
6
|
interface HostParams {
|
|
5
7
|
windowChanges: Observable<Window>;
|
|
6
8
|
contextChanges: Observable<Context>;
|
|
@@ -10,6 +12,12 @@ interface HostParams {
|
|
|
10
12
|
locales: Observable<LocaleData>;
|
|
11
13
|
appState?: string;
|
|
12
14
|
}
|
|
15
|
+
export interface Box {
|
|
16
|
+
params: HostParams;
|
|
17
|
+
clientId: string;
|
|
18
|
+
scope: Scope;
|
|
19
|
+
connectionInitialized: Subject<void>;
|
|
20
|
+
}
|
|
13
21
|
export interface Host extends SubscriptionLike {
|
|
14
22
|
toolbar: Observable<Toolbar> & {
|
|
15
23
|
get: () => Toolbar;
|
|
@@ -18,6 +26,7 @@ export interface Host extends SubscriptionLike {
|
|
|
18
26
|
};
|
|
19
27
|
};
|
|
20
28
|
isConnectionInitialized: Observable<boolean>;
|
|
29
|
+
signal: SignalReceiver & SignalSender;
|
|
21
30
|
appState: {
|
|
22
31
|
changes: Observable<string>;
|
|
23
32
|
get: () => string;
|
|
@@ -25,5 +34,11 @@ export interface Host extends SubscriptionLike {
|
|
|
25
34
|
};
|
|
26
35
|
}
|
|
27
36
|
export declare function newCommsHost(params: HostParams): Host;
|
|
37
|
+
export interface ConnectCallData {
|
|
38
|
+
service: string;
|
|
39
|
+
name: string;
|
|
40
|
+
args: any[];
|
|
41
|
+
}
|
|
42
|
+
export type ConnectCall = (box: Box, data: ConnectCallData, next: () => Promise<any>) => Promise<any>;
|
|
28
43
|
export {};
|
|
29
44
|
//# sourceMappingURL=host.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/comms/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAoB;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/comms/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAoB;AAC9C,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,gBAAgB,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;A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IAAI,EAAE,GAAG,EAAE,CAAA;CAAE;AAC/E,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA"}
|
package/build/comms/host.js
CHANGED
|
@@ -8,8 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { on, send } from 'post-robot';
|
|
11
|
-
import { BehaviorSubject, combineLatest, concatMap, delay, distinctUntilChanged, filter, identity, map, of, ReplaySubject, retry, startWith, switchMap, take, tap, } from 'rxjs';
|
|
11
|
+
import { BehaviorSubject, combineLatest, concatMap, delay, distinctUntilChanged, filter, firstValueFrom, identity, map, of, ReplaySubject, retry, share, startWith, switchMap, take, tap, } from 'rxjs';
|
|
12
12
|
import { fromArrayLike } from 'rxjs/internal/observable/innerFrom';
|
|
13
|
+
import { newSignaler } from './signal';
|
|
13
14
|
import { newId, newScope, takeUntilClosed } from './utils';
|
|
14
15
|
export function newCommsHost(params) {
|
|
15
16
|
const scope = newScope();
|
|
@@ -30,6 +31,10 @@ export function newCommsHost(params) {
|
|
|
30
31
|
return Object.assign(scope, {
|
|
31
32
|
toolbar,
|
|
32
33
|
appState,
|
|
34
|
+
signal: newSignaler({
|
|
35
|
+
send: signals => firstValueFrom(combineLatest([params.windowChanges, connectionInitialized]).pipe(take(1), switchMap(([source]) => send(source, `ant/${clientId}/signal`, signals)))),
|
|
36
|
+
receiver: scope.on(`ant/${clientId}/signal`).pipe(share()),
|
|
37
|
+
}),
|
|
33
38
|
isConnectionInitialized: connectionInitialized
|
|
34
39
|
.asObservable()
|
|
35
40
|
.pipe(map(() => true), startWith(false), takeUntilClosed(scope)),
|
|
@@ -52,12 +57,15 @@ function handleNotificationChanges({ scope, params, clientId }) {
|
|
|
52
57
|
})))
|
|
53
58
|
.catch(identity); // consume the cancellation error
|
|
54
59
|
}
|
|
55
|
-
|
|
60
|
+
const defaultConnectCall = ({ params }, { service, name, args }) => params.connect[service][name](...args);
|
|
61
|
+
function handleConnectChanges(box) {
|
|
62
|
+
const { scope, clientId } = box;
|
|
63
|
+
const connectCall = Array
|
|
64
|
+
.of(defaultConnectCall)
|
|
65
|
+
// .of<ConnectCall>(...logRecordServiceCalls, defaultConnectCall)
|
|
66
|
+
.reduce((left, right) => (box, data, next) => left(box, data, () => right(box, data, next)));
|
|
56
67
|
scope
|
|
57
|
-
.resolve(on(`ant/${clientId}/connect`, ({ data }) =>
|
|
58
|
-
const { service, name, args } = data;
|
|
59
|
-
return params.connect[service][name](...args);
|
|
60
|
-
}))
|
|
68
|
+
.resolve(on(`ant/${clientId}/connect`, ({ data }) => connectCall(box, data, () => Promise.reject(new Error('No API available')))))
|
|
61
69
|
.catch(identity); // consume the cancellation error
|
|
62
70
|
}
|
|
63
71
|
function handleNotepadChanges({ scope, params, clientId }) {
|
|
@@ -84,7 +92,7 @@ function handleContextChanges({ params, clientId, scope, connectionInitialized }
|
|
|
84
92
|
.subscribe();
|
|
85
93
|
}
|
|
86
94
|
function handleToolbarChanges({ scope, clientId, connectionInitialized, params }) {
|
|
87
|
-
const toolbar = new BehaviorSubject({ menu: [], search: { enabled: false, input: '' } });
|
|
95
|
+
const toolbar = new BehaviorSubject({ menu: [], search: { enabled: false, input: '' }, isLoading: false });
|
|
88
96
|
scope.on(`ant/${clientId}/toolbar`)
|
|
89
97
|
.pipe(tap(({ data, source }) => {
|
|
90
98
|
var _a;
|
|
@@ -100,11 +108,9 @@ function handleToolbarChanges({ scope, clientId, connectionInitialized, params }
|
|
|
100
108
|
return Object.assign(toolbar.asObservable(), {
|
|
101
109
|
get: () => toolbar.value,
|
|
102
110
|
set: {
|
|
103
|
-
search: (value) =>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.forEach(identity);
|
|
107
|
-
},
|
|
111
|
+
search: (value) => combineLatest([params.windowChanges, connectionInitialized])
|
|
112
|
+
.pipe(take(1), switchMap(([source]) => send(source, `ant/${clientId}/toolbar/search`, { value })))
|
|
113
|
+
.forEach(identity),
|
|
108
114
|
},
|
|
109
115
|
});
|
|
110
116
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logRecordServiceCalls.d.ts","sourceRoot":"","sources":["../../src/comms/logRecordServiceCalls.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,WAAW,EAAmB,MAAM,QAAQ,CAAA;AAE1D,eAAO,MAAM,qBAAqB,EAAE,WAAW,EAkC9C,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { concatMap, identity, take } from 'rxjs';
|
|
2
|
+
export const logRecordServiceCalls = [
|
|
3
|
+
ifRecordsService('createRecord', (createRecord, box, { args }) => {
|
|
4
|
+
const tableId = args[0];
|
|
5
|
+
return createRecord(tableId, args[1]).then(tap((record) => logRecords(box, tableId, record.id)));
|
|
6
|
+
}),
|
|
7
|
+
// TODO @Lars I think we have to exclude this API call, since the response is ambiguous
|
|
8
|
+
// ifRecordsService('importRecords', (importRecords, box, { args }) => {
|
|
9
|
+
// const tableId: string = args[0]
|
|
10
|
+
//
|
|
11
|
+
// return importRecords(tableId, args[1]).then(tap((records) => {
|
|
12
|
+
// const recordIds = records.map((e) => e['id']).filter(isString)
|
|
13
|
+
//
|
|
14
|
+
// return logRecords(box, tableId, ...recordIds)
|
|
15
|
+
// }))
|
|
16
|
+
// }),
|
|
17
|
+
ifRecordsService('updateRecord', (updateRecord, box, { args }) => {
|
|
18
|
+
const tableId = args[0];
|
|
19
|
+
const recordId = args[1];
|
|
20
|
+
return updateRecord(tableId, recordId, args[2]).then(tap(() => logRecords(box, tableId, recordId)));
|
|
21
|
+
}),
|
|
22
|
+
ifRecordsService('deleteRecord', (deleteRecord, box, { args }) => {
|
|
23
|
+
var _a;
|
|
24
|
+
const data = args[0];
|
|
25
|
+
const recordIds = [data.record].concat(...(_a = data.records) !== null && _a !== void 0 ? _a : []).filter(isString);
|
|
26
|
+
return deleteRecord(data).then(tap(() => logRecords(box, data.table, ...recordIds)));
|
|
27
|
+
}),
|
|
28
|
+
ifRecordsService('deleteRecords', (deleteRecords, box, { args }) => {
|
|
29
|
+
const tableId = args[1];
|
|
30
|
+
const recordIds = args[2];
|
|
31
|
+
return deleteRecords(args[0], tableId, recordIds).then(tap(() => logRecords(box, tableId, ...recordIds)));
|
|
32
|
+
})
|
|
33
|
+
];
|
|
34
|
+
function ifRecordsService(key, fn) {
|
|
35
|
+
return (box, data, next) => data.service === 'records' && box.params.connect[data.service][key]
|
|
36
|
+
? fn(box.params.connect[data.service][key], box, data)
|
|
37
|
+
: next();
|
|
38
|
+
}
|
|
39
|
+
function logRecords(box, tableId, ...recordIds) {
|
|
40
|
+
const { params: { connect, contextChanges } } = box;
|
|
41
|
+
const { updateRecord } = connect.records; // TODO @Lars is this the way to attach a Task to a record?
|
|
42
|
+
return contextChanges
|
|
43
|
+
.pipe(take(1), concatMap(context => context.task ? [context.task.id] : []), concatMap(session => recordIds.map(recordId => ({ session, recordId }))), concatMap(({ session, recordId }) => updateRecord(tableId, recordId, { session })))
|
|
44
|
+
.forEach(identity);
|
|
45
|
+
}
|
|
46
|
+
function isString(value) {
|
|
47
|
+
return typeof value === 'string';
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Runs the callback and returns the previously passed value. It will log and consume any errors
|
|
51
|
+
*
|
|
52
|
+
* @param fn
|
|
53
|
+
*/
|
|
54
|
+
function tap(fn) {
|
|
55
|
+
return value => Promise.resolve(value)
|
|
56
|
+
.then(() => fn(value))
|
|
57
|
+
.catch(console.error)
|
|
58
|
+
.then(() => value, () => value);
|
|
59
|
+
}
|
package/build/comms/models.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { License } from "../services/LicenseService";
|
|
|
2
2
|
import type { ProjectShort } from "../services/ProjectService";
|
|
3
3
|
import type { Task } from "../services/TaskService";
|
|
4
4
|
import type { User } from "../services/UserService";
|
|
5
|
-
import
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
6
|
export interface Context {
|
|
7
7
|
user?: User | null;
|
|
8
8
|
license?: License | null;
|
|
@@ -28,6 +28,7 @@ export interface Toolbar {
|
|
|
28
28
|
input: string;
|
|
29
29
|
};
|
|
30
30
|
menu: ToolbarItem[];
|
|
31
|
+
isLoading: boolean;
|
|
31
32
|
}
|
|
32
33
|
export type NotepadVisibility = boolean | 'task' | 'apps' | 'tasks' | 'sbs';
|
|
33
34
|
export interface Notepad {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/comms/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,mCAAiC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,mCAAiC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/comms/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,mCAAiC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,mCAAiC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAGnC,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAC7B,GAAG,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAA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AAC,OAAO,CAAC,GAAG,YAAY,CAAC,CAAA;AAE1H,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAC3B"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Message } from '../comms/utils';
|
|
3
|
+
import { License } from "../services/LicenseService";
|
|
4
|
+
import { Project } from "../services/ProjectService";
|
|
5
|
+
import { App } from "../services/AppService";
|
|
6
|
+
import { SbsRecord } from "../services/SbsService";
|
|
7
|
+
import { Task } from "../services/TaskService";
|
|
8
|
+
/**
|
|
9
|
+
* Constructing a Signal seems a bit too much, but this format makes it really easy to check on the receiving end:
|
|
10
|
+
*
|
|
11
|
+
* ```(signal: Signal) => signal.overlay && showOverlay(signal.overlay.action === 'show')```
|
|
12
|
+
*
|
|
13
|
+
* ```(signal: Signal) => signal.task && renderUI()```
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* You can construct a Signal with multiple properties, but they will be sent as single entry objects:
|
|
17
|
+
*
|
|
18
|
+
* ```
|
|
19
|
+
* client.signal.send({ overlay: {action: 'show' }, { sbs: {id: '123' }} })
|
|
20
|
+
*
|
|
21
|
+
* host.signal.receive.subscribe((s: Signal) => s.overlay && renderUI(s.overlay.action === 'show'))
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* NOTE: Prefer to add non-truthy/falsey values in order to support the above pattern-matching behavior.
|
|
25
|
+
*/
|
|
26
|
+
type Cause<T extends {
|
|
27
|
+
id: string | number;
|
|
28
|
+
}> = {
|
|
29
|
+
id: string;
|
|
30
|
+
action?: 'created' | 'updated' | 'deleted';
|
|
31
|
+
data?: Partial<T>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* This is the core message that can be sent and received by host and client. It made to be is simple to add your own ones.
|
|
35
|
+
*
|
|
36
|
+
* The nested object looks quirky, but makes it simple on the receiving and to filter out the right message
|
|
37
|
+
*
|
|
38
|
+
* ```
|
|
39
|
+
* host.receive.subscribe((s) => s.task && doSomething(s.taks.id)) // task prop is check to be defined, so all set!
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export interface Signal {
|
|
43
|
+
overlay?: {
|
|
44
|
+
action: 'show' | 'hide';
|
|
45
|
+
};
|
|
46
|
+
license?: Cause<License>;
|
|
47
|
+
project?: Cause<Project>;
|
|
48
|
+
app?: Cause<App>;
|
|
49
|
+
sbs?: Cause<SbsRecord>;
|
|
50
|
+
task?: Cause<Task>;
|
|
51
|
+
}
|
|
52
|
+
export interface SendSignal {
|
|
53
|
+
(...value: Signal[]): Promise<unknown>;
|
|
54
|
+
}
|
|
55
|
+
export interface SignalBuilder {
|
|
56
|
+
append(...value: Signal[]): SignalBuilder;
|
|
57
|
+
send: SendSignal;
|
|
58
|
+
}
|
|
59
|
+
export interface SignalSender extends SendSignal, SignalBuilder {
|
|
60
|
+
}
|
|
61
|
+
export type Unsubscribe = () => void;
|
|
62
|
+
export interface SignalReceiver {
|
|
63
|
+
/**
|
|
64
|
+
* The Signal type is simplified to a multi-prop object, but you will receive multiple single-prop objects.
|
|
65
|
+
*/
|
|
66
|
+
receive: (next: (signal: Signal) => void) => Unsubscribe;
|
|
67
|
+
}
|
|
68
|
+
interface NewSignalInput {
|
|
69
|
+
receiver: Observable<Message<Array<Signal>>>;
|
|
70
|
+
send: (data: Signal[]) => Promise<unknown>;
|
|
71
|
+
}
|
|
72
|
+
export declare function newSignaler(input: NewSignalInput): SignalSender & SignalReceiver;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/comms/signal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AAM,WAAW,YAAa,SAAQ,UAAU,EAAE,aAAa;CAC9D;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,KAAK,WAAW,CAAA;CACzD;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IAC5C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CAC3C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,cAAc,CAiChF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { concatMap, tap } from 'rxjs';
|
|
2
|
+
import { objectDelete } from '../comms/utils';
|
|
3
|
+
export function newSignaler(input) {
|
|
4
|
+
const data = Array.of();
|
|
5
|
+
const toSingleEntrySignals = (s) => Object.entries(s).map(([key, value]) => ({ [key]: value }));
|
|
6
|
+
const send = (...signal) => {
|
|
7
|
+
const values = data.concat(...signal).flatMap(toSingleEntrySignals);
|
|
8
|
+
data.splice(0, data.length);
|
|
9
|
+
return input.send(values);
|
|
10
|
+
};
|
|
11
|
+
const builder = {
|
|
12
|
+
append(...signal) {
|
|
13
|
+
data.push(...signal);
|
|
14
|
+
return this;
|
|
15
|
+
},
|
|
16
|
+
send
|
|
17
|
+
};
|
|
18
|
+
const receiver = {
|
|
19
|
+
receive(next) {
|
|
20
|
+
const subscription = input.receiver
|
|
21
|
+
.pipe(concatMap(e => e.data), tap(e => { var _a; return objectDelete((_a = e.license) === null || _a === void 0 ? void 0 : _a.data, 'id'); }), tap(e => { var _a; return objectDelete((_a = e.project) === null || _a === void 0 ? void 0 : _a.data, 'id'); }), tap(e => { var _a; return objectDelete((_a = e.app) === null || _a === void 0 ? void 0 : _a.data, 'id'); }), tap(e => { var _a; return objectDelete((_a = e.sbs) === null || _a === void 0 ? void 0 : _a.data, 'id'); }), tap(e => { var _a; return objectDelete((_a = e.task) === null || _a === void 0 ? void 0 : _a.data, 'id'); }))
|
|
22
|
+
.subscribe(next);
|
|
23
|
+
return () => subscription.unsubscribe();
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return Object.assign(send, builder, receiver);
|
|
27
|
+
}
|
package/build/comms/utils.d.ts
CHANGED
|
@@ -41,5 +41,12 @@ export interface AppStateData {
|
|
|
41
41
|
timestamp: number;
|
|
42
42
|
state: string;
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Deletes properties of an object in place
|
|
46
|
+
* @param value The object to delete properties from
|
|
47
|
+
* @param keys Property names to keep
|
|
48
|
+
* @returns The original object with only the specified properties
|
|
49
|
+
*/
|
|
50
|
+
export declare function objectDelete<T extends object, K extends keyof T>(value?: T, ...keys: K[]): Omit<T, K>;
|
|
44
51
|
export {};
|
|
45
52
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/comms/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/comms/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,EAAqC,UAAU,EAAW,YAAY,EAAwB,MAAM,MAAM,CAAA;AAKjH;;;;;GAKG;AAEH,wBAAgB,eAAe,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAW1F;AA0BD,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,CAAC,GAAG,OAAO;IA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AED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAGrG"}
|
package/build/comms/utils.js
CHANGED
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { on, once, send } from 'post-robot';
|
|
11
10
|
import { EMPTY, first, firstValueFrom, map, Observable, Subject, Subscription, takeUntil, takeWhile } from 'rxjs';
|
|
11
|
+
import { on, once, send } from 'post-robot';
|
|
12
12
|
import { fromPromise } from 'rxjs/internal/observable/innerFrom';
|
|
13
13
|
import { isPromise } from 'rxjs/internal/util/isPromise';
|
|
14
14
|
/**
|
|
@@ -73,3 +73,13 @@ export const newId = () => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).t
|
|
|
73
73
|
export function clone(value) {
|
|
74
74
|
return JSON.parse(JSON.stringify(value));
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Deletes properties of an object in place
|
|
78
|
+
* @param value The object to delete properties from
|
|
79
|
+
* @param keys Property names to keep
|
|
80
|
+
* @returns The original object with only the specified properties
|
|
81
|
+
*/
|
|
82
|
+
export function objectDelete(value, ...keys) {
|
|
83
|
+
value && keys.forEach(key => delete value[key]);
|
|
84
|
+
return value;
|
|
85
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -5,13 +5,19 @@ export { type Client, newCommsClient } from './comms/client';
|
|
|
5
5
|
export { newNotepad } from './comms/client';
|
|
6
6
|
export { type Host, newCommsHost } from './comms/host';
|
|
7
7
|
export type { Context, LocaleData, Notepad, NotepadVisibility, Notification, Notifications, Toolbar, ToolbarItem } from './comms/models';
|
|
8
|
+
export type { SignalReceiver, SignalSender, SendSignal, Signal } from './comms/signal';
|
|
8
9
|
export { clone, newScope, type Scope } from './comms/utils';
|
|
9
|
-
export type { App } from './services/AppService';
|
|
10
|
+
export type { App, AppFormData, AppVersion, AppVersionFormData, AttachVersionToAppFormData } from './services/AppService';
|
|
11
|
+
export type { Column } from './services/ColumnService';
|
|
10
12
|
export { type License } from './services/LicenseService';
|
|
13
|
+
export type { ProjectMember } from './services/ProjectService';
|
|
11
14
|
export { type Project, type ProjectRequestBody, type ProjectShort } from './services/ProjectService';
|
|
15
|
+
export type { Permission, PermissionData, PermissionGroup } from './services/RBAC/PermissionService';
|
|
16
|
+
export type { RBACRoleService, Role } from './services/RBAC/RoleService';
|
|
12
17
|
export type { SbsRecord } from './services/SbsService';
|
|
13
18
|
export type { TableQueryService, TableQueryShort } from './services/TableQueryService';
|
|
14
|
-
export {
|
|
19
|
+
export type { TableRecords } from './services/TableService';
|
|
20
|
+
export { type Task, type TaskService, type TaskStatus, taskStatuses, type TaskPriority } from './services/TaskService';
|
|
15
21
|
export { defaultGetTaskQuery, defaultGetTasksQuery } from './services/TaskService';
|
|
16
22
|
export type { Token, TokenData, TokenRequestBody } from './services/TokenService';
|
|
17
23
|
export type { FileInRequest, User, UserShort } from './services/UserService';
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EAAE,KAAK,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,KAAK,IAAI,E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AAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AACxE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAEtF,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACtH,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClF,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACjF,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC5E,cAAc,SAAS,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -4,5 +4,6 @@ export { newCommsClient } from './comms/client';
|
|
|
4
4
|
export { newNotepad } from './comms/client';
|
|
5
5
|
export { newCommsHost } from './comms/host';
|
|
6
6
|
export { clone, newScope } from './comms/utils';
|
|
7
|
+
export { taskStatuses } from './services/TaskService';
|
|
7
8
|
export { defaultGetTaskQuery, defaultGetTasksQuery } from './services/TaskService';
|
|
8
9
|
export * from './types';
|
|
@@ -49,21 +49,22 @@ export interface AppVersion {
|
|
|
49
49
|
enabled?: boolean;
|
|
50
50
|
enabled_in_license?: boolean;
|
|
51
51
|
}
|
|
52
|
-
export interface
|
|
52
|
+
export interface AttachVersionToAppFormData {
|
|
53
53
|
app_id: number;
|
|
54
54
|
app_version_id: number;
|
|
55
55
|
}
|
|
56
|
+
export interface AppVersionFormData {
|
|
57
|
+
build64: string;
|
|
58
|
+
release_type: string;
|
|
59
|
+
release_notes?: string;
|
|
60
|
+
}
|
|
56
61
|
export interface AppFormData {
|
|
57
62
|
title?: string;
|
|
58
63
|
description?: string;
|
|
59
64
|
color?: string;
|
|
60
65
|
icon?: string;
|
|
61
66
|
image?: File | null;
|
|
62
|
-
build?: File | null;
|
|
63
67
|
image64?: string;
|
|
64
|
-
build64?: string;
|
|
65
|
-
release_type?: string;
|
|
66
|
-
release_notes?: string;
|
|
67
68
|
is_system: boolean;
|
|
68
69
|
is_private: boolean;
|
|
69
70
|
project_required: boolean;
|
|
@@ -81,6 +82,7 @@ export interface AppService {
|
|
|
81
82
|
createApp: (appData: AppFormData) => Promise<App>;
|
|
82
83
|
updateApp: (appId: number, appData: Partial<AppFormData>) => Promise<App>;
|
|
83
84
|
deleteApp: (appId: number) => Promise<MessageResponse>;
|
|
85
|
+
createAppVersion: (appId: number, versionData: AppVersionFormData) => Promise<App>;
|
|
84
86
|
fetchAppProjects: (licenseId: string, appId: number) => Promise<Project[]>;
|
|
85
87
|
fetchAppDetails: (appId: number) => Promise<Partial<App>>;
|
|
86
88
|
fetchLicenseApps: (licenseId: string) => Promise<DataWrapper<App[]>>;
|