@devtable/dashboard 5.7.1 → 5.8.0

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.
Files changed (79) hide show
  1. package/dist/commits.structure.26a44e4e.mjs +13 -0
  2. package/dist/dashboard.es.js +10171 -9239
  3. package/dist/dashboard.umd.js +135 -28
  4. package/dist/definition-editor/query-editor/delete-query.d.ts +8 -0
  5. package/dist/efficiency.schema.5ba0fdb1.mjs +82 -0
  6. package/dist/efficiency.structure.8ac41504.mjs +12 -0
  7. package/dist/efficiency.structure.cf755f40.mjs +12 -0
  8. package/dist/filter/filter-multi-select/render.d.ts +3 -1
  9. package/dist/filter/filter-select/render.d.ts +3 -1
  10. package/dist/heatmap.structure.75d4a09a.mjs +11 -0
  11. package/dist/interactions/components/index.d.ts +2 -0
  12. package/dist/interactions/hooks/index.d.ts +2 -0
  13. package/dist/interactions/index.d.ts +5 -0
  14. package/dist/interactions/operation/index.d.ts +2 -0
  15. package/dist/interactions/operation/operation-manager-impl.d.ts +3 -0
  16. package/dist/interactions/trigger/index.d.ts +1 -0
  17. package/dist/interactions/trigger/trigger-manager-impl.d.ts +3 -0
  18. package/dist/main/use-panel-full-screen.d.ts +136 -0
  19. package/dist/model/mock-context.d.ts +0 -3
  20. package/dist/model/queries/index.d.ts +69 -17
  21. package/dist/model/sql-snippets/index.d.ts +0 -14
  22. package/dist/model/views/index.d.ts +21911 -0
  23. package/dist/model/views/view/index.d.ts +612 -0
  24. package/dist/model/views/view/panels/index.d.ts +204 -0
  25. package/dist/model/views/view/panels/panel.d.ts +68 -0
  26. package/dist/panel/plugin-adaptor.d.ts +5 -3
  27. package/dist/panel/use-config-viz-instance-service.d.ts +3 -0
  28. package/dist/pareto.structure.64175247.mjs +11 -0
  29. package/dist/pareto.structure.870fcfae.mjs +11 -0
  30. package/dist/plugins/instance-migrator/index.d.ts +29 -0
  31. package/dist/plugins/plugin-context.d.ts +18 -1
  32. package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +4 -4
  33. package/dist/plugins/viz-components/expert-system/index.d.ts +2 -0
  34. package/dist/plugins/viz-components/expert-system/metric-set-selector.d.ts +8 -0
  35. package/dist/plugins/viz-components/expert-system/request/call-expert-system.d.ts +6 -0
  36. package/dist/plugins/viz-components/expert-system/request/payload/comparison/efficiency.d.ts +10 -0
  37. package/dist/plugins/viz-components/expert-system/request/payload/comparison/index.d.ts +8 -0
  38. package/dist/plugins/viz-components/expert-system/request/payload/dev_load/heatmap.d.ts +9 -0
  39. package/dist/plugins/viz-components/expert-system/request/payload/dev_load/index.d.ts +14 -0
  40. package/dist/plugins/viz-components/expert-system/request/payload/dev_load/pareto.d.ts +9 -0
  41. package/dist/plugins/viz-components/expert-system/request/payload/dev_load/productivity.d.ts +11 -0
  42. package/dist/plugins/viz-components/expert-system/request/payload/index.d.ts +2 -0
  43. package/dist/plugins/viz-components/expert-system/request/payload/performance/efficiency.d.ts +10 -0
  44. package/dist/plugins/viz-components/expert-system/request/payload/performance/index.d.ts +31 -0
  45. package/dist/plugins/viz-components/expert-system/request/payload/performance/pareto.d.ts +9 -0
  46. package/dist/plugins/viz-components/expert-system/request/payload/performance/quality.d.ts +34 -0
  47. package/dist/plugins/viz-components/expert-system/request/payload/performance/quality_history.d.ts +12 -0
  48. package/dist/plugins/viz-components/expert-system/request/payload/personal_report/commits.d.ts +11 -0
  49. package/dist/plugins/viz-components/expert-system/request/payload/personal_report/index.d.ts +14 -0
  50. package/dist/plugins/viz-components/expert-system/request/payload/personal_report/quality.d.ts +13 -0
  51. package/dist/plugins/viz-components/expert-system/request/payload/personal_report/skills.d.ts +8 -0
  52. package/dist/plugins/viz-components/expert-system/request/schema/comparison/efficiency.structure.d.ts +2 -0
  53. package/dist/plugins/viz-components/expert-system/request/schema/dev_load/heatmap.structure.d.ts +2 -0
  54. package/dist/plugins/viz-components/expert-system/request/schema/dev_load/pareto.structure.d.ts +2 -0
  55. package/dist/plugins/viz-components/expert-system/request/schema/dev_load/productivity.structure.d.ts +2 -0
  56. package/dist/plugins/viz-components/expert-system/request/schema/index.d.ts +3 -0
  57. package/dist/plugins/viz-components/expert-system/request/schema/performance/efficiency.structure.d.ts +2 -0
  58. package/dist/plugins/viz-components/expert-system/request/schema/performance/pareto.structure.d.ts +2 -0
  59. package/dist/plugins/viz-components/expert-system/request/schema/performance/quality.structure.d.ts +2 -0
  60. package/dist/plugins/viz-components/expert-system/request/schema/performance/quality_history.structure.d.ts +2 -0
  61. package/dist/plugins/viz-components/expert-system/request/schema/personal_report/commits.structure.d.ts +2 -0
  62. package/dist/plugins/viz-components/expert-system/request/schema/personal_report/quality.structure.d.ts +2 -0
  63. package/dist/plugins/viz-components/expert-system/request/schema/personal_report/skills.structure.d.ts +2 -0
  64. package/dist/plugins/viz-components/expert-system/request/schema-and-validation.d.ts +8 -0
  65. package/dist/plugins/viz-components/expert-system/scenario-selector.d.ts +8 -0
  66. package/dist/plugins/viz-components/expert-system/type.d.ts +22 -0
  67. package/dist/plugins/viz-components/expert-system/viz-expert-system-panel.d.ts +3 -0
  68. package/dist/plugins/viz-components/expert-system/viz-expert-system.d.ts +3 -0
  69. package/dist/productivity.structure.1fc6f3e4.mjs +13 -0
  70. package/dist/quality.schema.4f5a1bc0.mjs +182 -0
  71. package/dist/quality.structure.b1ac00db.mjs +15 -0
  72. package/dist/quality.structure.bb057537.mjs +19 -0
  73. package/dist/quality_history.schema.5c04f870.mjs +118 -0
  74. package/dist/quality_history.structure.ffc4ca11.mjs +24 -0
  75. package/dist/service-locator/index.d.ts +27 -0
  76. package/dist/service-locator/use-service-locator.d.ts +8 -0
  77. package/dist/skills.structure.8ceda40e.mjs +10 -0
  78. package/dist/types/plugin/index.d.ts +14 -6
  79. package/package.json +2 -1
@@ -54,6 +54,74 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
54
54
  };
55
55
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
56
56
  }, {
57
+ readonly query: ({
58
+ id: string;
59
+ type: import("../../../queries/types").DataSourceType;
60
+ key: string;
61
+ sql: string;
62
+ state: "idle" | "loading" | "error";
63
+ data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
64
+ error: any;
65
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
66
+ readonly valid: string;
67
+ readonly configurations: {
68
+ id: string;
69
+ type: import("../../../queries/types").DataSourceType;
70
+ key: string;
71
+ sql: string;
72
+ };
73
+ } & {
74
+ readonly formattedSQL: any;
75
+ } & {
76
+ readonly json: {
77
+ id: string;
78
+ type: import("../../../queries/types").DataSourceType;
79
+ key: string;
80
+ sql: string;
81
+ };
82
+ } & {
83
+ setID(id: string): void;
84
+ setKey(key: string): void;
85
+ setType(type: import("../../../queries/types").DataSourceType): void;
86
+ setSQL(sql: string): void;
87
+ fetchData: () => Promise<void>;
88
+ } & {
89
+ afterCreate(): void;
90
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
91
+ id: import("mobx-state-tree").ISimpleType<string>;
92
+ type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
93
+ key: import("mobx-state-tree").ISimpleType<string>;
94
+ sql: import("mobx-state-tree").ISimpleType<string>;
95
+ } & {
96
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
97
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
98
+ error: import("mobx-state-tree").IType<any, any, any>;
99
+ }, {
100
+ readonly valid: string;
101
+ readonly configurations: {
102
+ id: string;
103
+ type: import("../../../queries/types").DataSourceType;
104
+ key: string;
105
+ sql: string;
106
+ };
107
+ } & {
108
+ readonly formattedSQL: any;
109
+ } & {
110
+ readonly json: {
111
+ id: string;
112
+ type: import("../../../queries/types").DataSourceType;
113
+ key: string;
114
+ sql: string;
115
+ };
116
+ } & {
117
+ setID(id: string): void;
118
+ setKey(key: string): void;
119
+ setType(type: import("../../../queries/types").DataSourceType): void;
120
+ setSQL(sql: string): void;
121
+ fetchData: () => Promise<void>;
122
+ } & {
123
+ afterCreate(): void;
124
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
57
125
  readonly json: {
58
126
  id: string;
59
127
  title: string;
@@ -223,6 +291,74 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
223
291
  };
224
292
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
225
293
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
294
+ readonly query: ({
295
+ id: string;
296
+ type: import("../../../queries/types").DataSourceType;
297
+ key: string;
298
+ sql: string;
299
+ state: "idle" | "loading" | "error";
300
+ data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
301
+ error: any;
302
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
303
+ readonly valid: string;
304
+ readonly configurations: {
305
+ id: string;
306
+ type: import("../../../queries/types").DataSourceType;
307
+ key: string;
308
+ sql: string;
309
+ };
310
+ } & {
311
+ readonly formattedSQL: any;
312
+ } & {
313
+ readonly json: {
314
+ id: string;
315
+ type: import("../../../queries/types").DataSourceType;
316
+ key: string;
317
+ sql: string;
318
+ };
319
+ } & {
320
+ setID(id: string): void;
321
+ setKey(key: string): void;
322
+ setType(type: import("../../../queries/types").DataSourceType): void;
323
+ setSQL(sql: string): void;
324
+ fetchData: () => Promise<void>;
325
+ } & {
326
+ afterCreate(): void;
327
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
328
+ id: import("mobx-state-tree").ISimpleType<string>;
329
+ type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
330
+ key: import("mobx-state-tree").ISimpleType<string>;
331
+ sql: import("mobx-state-tree").ISimpleType<string>;
332
+ } & {
333
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
334
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
335
+ error: import("mobx-state-tree").IType<any, any, any>;
336
+ }, {
337
+ readonly valid: string;
338
+ readonly configurations: {
339
+ id: string;
340
+ type: import("../../../queries/types").DataSourceType;
341
+ key: string;
342
+ sql: string;
343
+ };
344
+ } & {
345
+ readonly formattedSQL: any;
346
+ } & {
347
+ readonly json: {
348
+ id: string;
349
+ type: import("../../../queries/types").DataSourceType;
350
+ key: string;
351
+ sql: string;
352
+ };
353
+ } & {
354
+ setID(id: string): void;
355
+ setKey(key: string): void;
356
+ setType(type: import("../../../queries/types").DataSourceType): void;
357
+ setSQL(sql: string): void;
358
+ fetchData: () => Promise<void>;
359
+ } & {
360
+ afterCreate(): void;
361
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
226
362
  readonly json: {
227
363
  id: string;
228
364
  title: string;
@@ -305,6 +441,74 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
305
441
  };
306
442
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
307
443
  }, {
444
+ readonly query: ({
445
+ id: string;
446
+ type: import("../../../queries/types").DataSourceType;
447
+ key: string;
448
+ sql: string;
449
+ state: "idle" | "loading" | "error";
450
+ data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
451
+ error: any;
452
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
453
+ readonly valid: string;
454
+ readonly configurations: {
455
+ id: string;
456
+ type: import("../../../queries/types").DataSourceType;
457
+ key: string;
458
+ sql: string;
459
+ };
460
+ } & {
461
+ readonly formattedSQL: any;
462
+ } & {
463
+ readonly json: {
464
+ id: string;
465
+ type: import("../../../queries/types").DataSourceType;
466
+ key: string;
467
+ sql: string;
468
+ };
469
+ } & {
470
+ setID(id: string): void;
471
+ setKey(key: string): void;
472
+ setType(type: import("../../../queries/types").DataSourceType): void;
473
+ setSQL(sql: string): void;
474
+ fetchData: () => Promise<void>;
475
+ } & {
476
+ afterCreate(): void;
477
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
478
+ id: import("mobx-state-tree").ISimpleType<string>;
479
+ type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
480
+ key: import("mobx-state-tree").ISimpleType<string>;
481
+ sql: import("mobx-state-tree").ISimpleType<string>;
482
+ } & {
483
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
484
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
485
+ error: import("mobx-state-tree").IType<any, any, any>;
486
+ }, {
487
+ readonly valid: string;
488
+ readonly configurations: {
489
+ id: string;
490
+ type: import("../../../queries/types").DataSourceType;
491
+ key: string;
492
+ sql: string;
493
+ };
494
+ } & {
495
+ readonly formattedSQL: any;
496
+ } & {
497
+ readonly json: {
498
+ id: string;
499
+ type: import("../../../queries/types").DataSourceType;
500
+ key: string;
501
+ sql: string;
502
+ };
503
+ } & {
504
+ setID(id: string): void;
505
+ setKey(key: string): void;
506
+ setType(type: import("../../../queries/types").DataSourceType): void;
507
+ setSQL(sql: string): void;
508
+ fetchData: () => Promise<void>;
509
+ } & {
510
+ afterCreate(): void;
511
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
308
512
  readonly json: {
309
513
  id: string;
310
514
  title: string;
@@ -53,6 +53,74 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
53
53
  };
54
54
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
55
55
  }, {
56
+ readonly query: ({
57
+ id: string;
58
+ type: import("../../../queries/types").DataSourceType;
59
+ key: string;
60
+ sql: string;
61
+ state: "idle" | "loading" | "error";
62
+ data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
63
+ error: any;
64
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
65
+ readonly valid: string;
66
+ readonly configurations: {
67
+ id: string;
68
+ type: import("../../../queries/types").DataSourceType;
69
+ key: string;
70
+ sql: string;
71
+ };
72
+ } & {
73
+ readonly formattedSQL: any;
74
+ } & {
75
+ readonly json: {
76
+ id: string;
77
+ type: import("../../../queries/types").DataSourceType;
78
+ key: string;
79
+ sql: string;
80
+ };
81
+ } & {
82
+ setID(id: string): void;
83
+ setKey(key: string): void;
84
+ setType(type: import("../../../queries/types").DataSourceType): void;
85
+ setSQL(sql: string): void;
86
+ fetchData: () => Promise<void>;
87
+ } & {
88
+ afterCreate(): void;
89
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
90
+ id: import("mobx-state-tree").ISimpleType<string>;
91
+ type: import("mobx-state-tree").ISimpleType<import("../../../queries/types").DataSourceType>;
92
+ key: import("mobx-state-tree").ISimpleType<string>;
93
+ sql: import("mobx-state-tree").ISimpleType<string>;
94
+ } & {
95
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
96
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
97
+ error: import("mobx-state-tree").IType<any, any, any>;
98
+ }, {
99
+ readonly valid: string;
100
+ readonly configurations: {
101
+ id: string;
102
+ type: import("../../../queries/types").DataSourceType;
103
+ key: string;
104
+ sql: string;
105
+ };
106
+ } & {
107
+ readonly formattedSQL: any;
108
+ } & {
109
+ readonly json: {
110
+ id: string;
111
+ type: import("../../../queries/types").DataSourceType;
112
+ key: string;
113
+ sql: string;
114
+ };
115
+ } & {
116
+ setID(id: string): void;
117
+ setKey(key: string): void;
118
+ setType(type: import("../../../queries/types").DataSourceType): void;
119
+ setSQL(sql: string): void;
120
+ fetchData: () => Promise<void>;
121
+ } & {
122
+ afterCreate(): void;
123
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
56
124
  readonly json: {
57
125
  id: string;
58
126
  title: string;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
3
3
  import { IVizConfig } from '../types';
4
- export declare function PluginVizConfigComponent({ setVizConf, ...props }: IConfigComponentProps & {
4
+ declare type SetVizConfType = {
5
5
  setVizConf: (val: React.SetStateAction<IVizConfig['conf']>) => void;
6
- }): JSX.Element;
7
- export declare function PluginVizViewComponent(props: IViewComponentProps): JSX.Element;
6
+ };
7
+ export declare function PluginVizConfigComponent({ setVizConf, ...props }: IConfigComponentProps & SetVizConfType): JSX.Element;
8
+ export declare function PluginVizViewComponent(props: IViewComponentProps & SetVizConfType): JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IPanelInfo } from '~/plugins';
2
+ import { IServiceLocator } from '~/service-locator';
3
+ export declare function useConfigVizInstanceService(panel: IPanelInfo): (services: IServiceLocator) => IServiceLocator;
@@ -0,0 +1,11 @@
1
+ const t = `
2
+ {
3
+ name?: string;
4
+ actor: string;
5
+ contributor: string;
6
+ eloc: number;
7
+ }
8
+ `;
9
+ export {
10
+ t as default
11
+ };
@@ -0,0 +1,11 @@
1
+ const t = `
2
+ {
3
+ name?: string;
4
+ actor: string;
5
+ contributor: string;
6
+ eloc: number;
7
+ }
8
+ `;
9
+ export {
10
+ t as default
11
+ };
@@ -0,0 +1,29 @@
1
+ import { IServiceLocator } from '~/service-locator';
2
+ import { IVizOperationManager, IVizTriggerManager, VizInstance } from '~/types/plugin';
3
+ import { IVizManager } from '../viz-manager';
4
+ export declare enum MigrationResultType {
5
+ migrated = "migrated",
6
+ nothingToMigrate = "nothingToMigrate",
7
+ checkFailed = "checkFailed",
8
+ migrationFailed = "migrationFailed"
9
+ }
10
+ export declare enum MigrationStatus {
11
+ notStarted = "notStarted",
12
+ inProgress = "inProgress",
13
+ done = "done"
14
+ }
15
+ export declare class InstanceMigrator {
16
+ protected vizInstance: VizInstance;
17
+ protected operationManager: IVizOperationManager;
18
+ protected triggerManager: IVizTriggerManager;
19
+ protected vizManager: IVizManager;
20
+ protected runningMigration?: Promise<MigrationResultType>;
21
+ status: MigrationStatus;
22
+ constructor(serviceLocator: IServiceLocator);
23
+ createMigrationTask(): Promise<MigrationResultType>;
24
+ runMigration(): Promise<MigrationResultType>;
25
+ protected runInteractionMigration(): Promise<void>;
26
+ protected runInstanceMigration(): Promise<void>;
27
+ private instanceNeedMigration;
28
+ private interactionNeedMigration;
29
+ }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { IPluginManager } from '~/types/plugin';
2
+ import { InstanceMigrator } from '~/plugins/instance-migrator';
3
+ import { IPluginManager, IVizInteractionManager, IVizOperationManager, IVizTriggerManager, VizInstance } from '~/types/plugin';
3
4
  import { IColorManager } from './color-manager';
4
5
  import { PluginManager } from './plugin-manager';
5
6
  import { VizManager } from './viz-manager';
@@ -9,6 +10,22 @@ interface IPluginContextProps {
9
10
  colorManager: IColorManager;
10
11
  }
11
12
  export declare const pluginManager: PluginManager;
13
+ /**
14
+ * All available tokens of services, it also serves as an overview of the
15
+ * plugin system
16
+ */
17
+ export declare const tokens: {
18
+ pluginManager: import("~/service-locator").Token<IPluginManager>;
19
+ vizManager: import("~/service-locator").Token<VizManager>;
20
+ colorManager: import("~/service-locator").Token<IColorManager>;
21
+ instanceScope: {
22
+ vizInstance: import("~/service-locator").Token<VizInstance>;
23
+ interactionManager: import("~/service-locator").Token<IVizInteractionManager>;
24
+ migrator: import("~/service-locator").Token<InstanceMigrator>;
25
+ operationManager: import("~/service-locator").Token<IVizOperationManager>;
26
+ triggerManager: import("~/service-locator").Token<IVizTriggerManager>;
27
+ };
28
+ };
12
29
  export declare const createPluginContext: () => IPluginContextProps;
13
30
  export declare const PluginContext: import("react").Context<IPluginContextProps>;
14
31
  export {};
@@ -1,4 +1,4 @@
1
- import { IVizComponentMigrator, VizComponentMigrationContext } from '~/types/plugin';
1
+ import { IConfigMigrator, IConfigMigrationContext } from '~/types/plugin';
2
2
  import { PluginDataMigrator } from './plugin-data-migrator';
3
3
  /**
4
4
  * Instance version is read from the `instanceData.version` field.
@@ -8,11 +8,11 @@ import { PluginDataMigrator } from './plugin-data-migrator';
8
8
  * You can implement the `configVersions` method to
9
9
  * specify how migrations are performed.
10
10
  */
11
- export declare abstract class VersionBasedMigrator extends PluginDataMigrator implements IVizComponentMigrator {
11
+ export declare abstract class VersionBasedMigrator extends PluginDataMigrator implements IConfigMigrator {
12
12
  abstract readonly VERSION: number;
13
13
  abstract configVersions(): void;
14
14
  constructor();
15
15
  version(version: number, handler: (data: $TSFixMe) => $TSFixMe): PluginDataMigrator;
16
- migrate({ instanceData }: VizComponentMigrationContext): Promise<void>;
17
- needMigration({ instanceData }: VizComponentMigrationContext): Promise<boolean>;
16
+ migrate({ configData }: IConfigMigrationContext): Promise<void>;
17
+ needMigration({ configData }: IConfigMigrationContext): Promise<boolean>;
18
18
  }
@@ -0,0 +1,2 @@
1
+ import { VizComponent } from '../../../types/plugin';
2
+ export declare const ExpertSystemVizComponent: VizComponent;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { EMetricSet, IExpertSystemConf } from './type';
3
+ interface IMetricSetSelector {
4
+ conf: IExpertSystemConf;
5
+ setConfByKey: (key: string, val: EMetricSet) => void;
6
+ }
7
+ export declare const MetricSetSelector: ({ conf, setConfByKey }: IMetricSetSelector) => JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ interface ICallExpertSystem {
2
+ baseURL?: string;
3
+ payload: $TSFixMe;
4
+ }
5
+ export declare const callExpertSystem: ({ baseURL, payload }: ICallExpertSystem) => () => Promise<any>;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare type TDataForComparisonEfficiency = {
2
+ name?: string;
3
+ actor: string;
4
+ eloc_type: 'accumulated' | 'new';
5
+ ref_date: string;
6
+ eloc: number;
7
+ };
8
+ export declare function comparison_efficiency(data: TDataForComparisonEfficiency[]): {
9
+ efficiency: any[];
10
+ };
@@ -0,0 +1,8 @@
1
+ import { IExpertSystemConf } from '../../../type';
2
+ import { TDataForComparisonEfficiency } from './efficiency';
3
+ export declare type TComparisonData = $TSFixMe | TDataForComparisonEfficiency[];
4
+ export declare function buildPayloadForComparison(conf: IExpertSystemConf, data: TComparisonData): {
5
+ comparison: {
6
+ efficiency: any[];
7
+ };
8
+ };
@@ -0,0 +1,9 @@
1
+ export declare type TDataForHeatmap = {
2
+ name?: string;
3
+ actor: string;
4
+ ref_date: string;
5
+ eloc: number;
6
+ };
7
+ export declare function dev_load_heatmap(data: TDataForHeatmap[]): {
8
+ heatmap: any[];
9
+ };
@@ -0,0 +1,14 @@
1
+ import { IExpertSystemConf } from '../../../type';
2
+ import { TDataForHeatmap } from './heatmap';
3
+ import { TDataForPareto } from './pareto';
4
+ import { TDataForProductivity } from './productivity';
5
+ export declare type TDevLoadData = $TSFixMe | TDataForProductivity[] | TDataForHeatmap[] | TDataForPareto[];
6
+ export declare function buildPayloadForDevLoad(conf: IExpertSystemConf, data: TDevLoadData): {
7
+ dev_load: {
8
+ productivity: any[];
9
+ } | {
10
+ heatmap: any[];
11
+ } | {
12
+ pareto: any[];
13
+ };
14
+ };
@@ -0,0 +1,9 @@
1
+ export declare type TDataForPareto = {
2
+ name?: string;
3
+ actor: string;
4
+ contributor: string;
5
+ eloc: number;
6
+ };
7
+ export declare function dev_load_pareto(data: TDataForPareto[]): {
8
+ pareto: any[];
9
+ };
@@ -0,0 +1,11 @@
1
+ export declare type TDataForProductivity = {
2
+ name?: string;
3
+ actor: string;
4
+ ref_date: string;
5
+ baseline: number;
6
+ eloc: number;
7
+ eloc_type: 'current' | 'previous';
8
+ };
9
+ export declare function dev_load_productivity(data: TDataForProductivity[]): {
10
+ productivity: any[];
11
+ };
@@ -0,0 +1,2 @@
1
+ import { IExpertSystemConf } from '../../type';
2
+ export declare function buildPayload(conf: IExpertSystemConf, data: any): {};
@@ -0,0 +1,10 @@
1
+ export declare type TDataForEfficiency = {
2
+ name?: string;
3
+ actor: string;
4
+ eloc_type: 'accumulated' | 'new';
5
+ ref_date: string;
6
+ eloc: number;
7
+ };
8
+ export declare function performance_efficiency(data: TDataForEfficiency[]): {
9
+ efficiency: any[];
10
+ };
@@ -0,0 +1,31 @@
1
+ import { IExpertSystemConf } from '../../../type';
2
+ import { TDataForQuality } from './quality';
3
+ export declare type TPerformanceData = $TSFixMe | TDataForQuality[];
4
+ export declare function buildPayloadForPerformance(conf: IExpertSystemConf, data: TPerformanceData): {
5
+ performance: {
6
+ quality: {
7
+ actor: string;
8
+ actor_type: string;
9
+ code: {
10
+ issues: {
11
+ blocker: number;
12
+ critical: number;
13
+ info: number;
14
+ major: number;
15
+ minor: number;
16
+ };
17
+ doc_coverage: number;
18
+ test_coverage: number;
19
+ dryness: number;
20
+ modularity: number;
21
+ issues_density: number;
22
+ };
23
+ }[];
24
+ } | {
25
+ quality_history: any[];
26
+ } | {
27
+ efficiency: any[];
28
+ } | {
29
+ pareto: any[];
30
+ };
31
+ };
@@ -0,0 +1,9 @@
1
+ export declare type TDataForPareto = {
2
+ name?: string;
3
+ actor: string;
4
+ contributor: string;
5
+ eloc: number;
6
+ };
7
+ export declare function performance_pareto(data: TDataForPareto[]): {
8
+ pareto: any[];
9
+ };
@@ -0,0 +1,34 @@
1
+ export declare type TDataForQuality = {
2
+ name?: string;
3
+ actor: string;
4
+ doc_coverage: number;
5
+ test_coverage: number;
6
+ dryness: number;
7
+ modularity: number;
8
+ issues_density: number;
9
+ issues_blocker: number;
10
+ issues_critical: number;
11
+ issues_info: number;
12
+ issues_major: number;
13
+ issues_minor: number;
14
+ };
15
+ export declare function performance_quality(data: TDataForQuality[]): {
16
+ quality: {
17
+ actor: string;
18
+ actor_type: string;
19
+ code: {
20
+ issues: {
21
+ blocker: number;
22
+ critical: number;
23
+ info: number;
24
+ major: number;
25
+ minor: number;
26
+ };
27
+ doc_coverage: number;
28
+ test_coverage: number;
29
+ dryness: number;
30
+ modularity: number;
31
+ issues_density: number;
32
+ };
33
+ }[];
34
+ };
@@ -0,0 +1,12 @@
1
+ export declare type TDataForQualityHistory = {
2
+ name?: string;
3
+ actor: string;
4
+ val_type: 'doc_coverage' | 'test_coverage' | 'dryness' | 'modularity' | 'blocker_issues' | 'critical_issues' | 'major_issues' | 'minor_issues' | 'info_issues' | 'issues_density';
5
+ baseline_lower: number;
6
+ baseline_upper: number;
7
+ ref_date: string;
8
+ val: number;
9
+ };
10
+ export declare function performance_quality_history(data: TDataForQualityHistory[]): {
11
+ quality_history: any[];
12
+ };
@@ -0,0 +1,11 @@
1
+ export declare type TDataForCommits = {
2
+ name?: string;
3
+ actor: string;
4
+ repos: number;
5
+ range_days: number;
6
+ ref_date: string;
7
+ eloc: number;
8
+ };
9
+ export declare function personal_report_commits(data: TDataForCommits[]): {
10
+ commits: any[];
11
+ };
@@ -0,0 +1,14 @@
1
+ import { IExpertSystemConf } from '../../../type';
2
+ import { TDataForPersonalReportQuality } from './quality';
3
+ import { TDataForCommits } from './commits';
4
+ import { TDataForSkills } from './skills';
5
+ export declare type TPersonalReportData = $TSFixMe | TDataForSkills[] | TDataForPersonalReportQuality[] | TDataForCommits[];
6
+ export declare function buildPayloadForPersonalReport(conf: IExpertSystemConf, data: TPersonalReportData): {
7
+ personal_report: {
8
+ skills: any[];
9
+ } | {
10
+ quality: any[];
11
+ } | {
12
+ commits: any[];
13
+ };
14
+ };