@kinotic-ai/os-api 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -46,14 +46,12 @@ __export(exports_src, {
46
46
  TenantSelectionC3Type: () => TenantSelectionC3Type,
47
47
  TenantIdDecorator: () => TenantIdDecorator,
48
48
  SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
49
- RoleDecorator: () => RoleDecorator,
50
49
  QueryOptionsC3Type: () => QueryOptionsC3Type,
51
50
  QueryDecorator: () => QueryDecorator,
52
51
  ProjectType: () => ProjectType,
53
52
  ProjectService: () => ProjectService,
54
53
  Project: () => Project,
55
54
  ProgressType: () => ProgressType,
56
- PolicyDecorator: () => PolicyDecorator,
57
55
  PageableC3Type: () => PageableC3Type,
58
56
  PageC3Type: () => PageC3Type,
59
57
  OsApiPlugin: () => OsApiPlugin,
@@ -66,8 +64,6 @@ __export(exports_src, {
66
64
  LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
67
65
  LogManager: () => LogManager,
68
66
  LogLevel: () => LogLevel,
69
- KinoticSingleton: () => import_core5.KinoticSingleton,
70
- Kinotic: () => import_core5.Kinotic,
71
67
  IdDecorator: () => IdDecorator,
72
68
  GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor,
73
69
  FlattenedDecorator: () => FlattenedDecorator,
@@ -79,9 +75,7 @@ __export(exports_src, {
79
75
  DataInsightsService: () => DataInsightsService,
80
76
  AutoGeneratedIdDecorator: () => AutoGeneratedIdDecorator,
81
77
  ApplicationService: () => ApplicationService,
82
- Application: () => Application,
83
- $Role: () => $Role,
84
- $Policy: () => $Policy
78
+ Application: () => Application
85
79
  });
86
80
  module.exports = __toCommonJS(exports_src);
87
81
 
@@ -174,20 +168,6 @@ class NotIndexedDecorator extends import_idl8.C3Decorator {
174
168
  this.type = "NotIndexedDecorator";
175
169
  }
176
170
  }
177
- // packages/os-api/src/api/model/idl/decorators/PolicyDecorator.ts
178
- var import_persistence2 = require("@kinotic-ai/persistence");
179
-
180
- class PolicyDecorator extends import_persistence2.EntityServiceDecorator {
181
- policies;
182
- constructor(policies) {
183
- super();
184
- this.type = "PolicyDecorator";
185
- this.policies = policies;
186
- }
187
- }
188
- function $Policy(policies) {
189
- return new PolicyDecorator(policies);
190
- }
191
171
  // packages/os-api/src/api/model/idl/decorators/QueryDecorator.ts
192
172
  var import_idl9 = require("@kinotic-ai/idl");
193
173
 
@@ -199,20 +179,6 @@ class QueryDecorator extends import_idl9.C3Decorator {
199
179
  this.statements = statements;
200
180
  }
201
181
  }
202
- // packages/os-api/src/api/model/idl/decorators/RoleDecorator.ts
203
- var import_persistence3 = require("@kinotic-ai/persistence");
204
-
205
- class RoleDecorator extends import_persistence3.EntityServiceDecorator {
206
- roles;
207
- constructor(roles) {
208
- super();
209
- this.type = "RoleDecorator";
210
- this.roles = roles;
211
- }
212
- }
213
- function $Role(roles) {
214
- return new RoleDecorator(roles);
215
- }
216
182
  // packages/os-api/src/api/model/idl/decorators/TenantIdDecorator.ts
217
183
  var import_idl10 = require("@kinotic-ai/idl");
218
184
 
@@ -553,6 +519,3 @@ var OsApiPlugin = {
553
519
  };
554
520
  }
555
521
  };
556
-
557
- // packages/os-api/src/index.ts
558
- var import_core5 = require("@kinotic-ai/core");
package/dist/index.d.cts CHANGED
@@ -26,7 +26,7 @@ declare class EntityDecorator extends C3Decorator3 {
26
26
  withMultiTenancyType(type: MultiTenancyType): EntityDecorator;
27
27
  withEntityType(type: EntityType): EntityDecorator;
28
28
  }
29
- import { EsIndexConfigurationData } from "@/api/model/idl/decorators/EsIndexConfigurationData";
29
+ import { EsIndexConfigurationData } from "@kinotic-ai/persistence";
30
30
  import { C3Decorator as C3Decorator4 } from "@kinotic-ai/idl";
31
31
  declare class EsIndexConfigurationDecorator extends C3Decorator4 {
32
32
  value: EsIndexConfigurationData;
@@ -61,31 +61,11 @@ import { C3Decorator as C3Decorator8 } from "@kinotic-ai/idl";
61
61
  declare class NotIndexedDecorator extends C3Decorator8 {
62
62
  constructor();
63
63
  }
64
- import { EntityServiceDecorator } from "@kinotic-ai/persistence";
65
- declare class PolicyDecorator extends EntityServiceDecorator {
66
- policies: string[][];
67
- constructor(policies: string[][]);
68
- }
69
- /**
70
- * Provides a mechanism to apply the @Policy decorator to an {@link EntityService}
71
- * @param policies to be supplied
72
- */
73
- declare function $Policy(policies: string[][]): PolicyDecorator;
74
64
  import { C3Decorator as C3Decorator9 } from "@kinotic-ai/idl";
75
65
  declare class QueryDecorator extends C3Decorator9 {
76
66
  statements: string;
77
67
  constructor(statements: string);
78
68
  }
79
- import { EntityServiceDecorator as EntityServiceDecorator2 } from "@kinotic-ai/persistence";
80
- declare class RoleDecorator extends EntityServiceDecorator2 {
81
- roles: string[];
82
- constructor(roles: string[]);
83
- }
84
- /**
85
- * Provides a mechanism to apply the @Role decorator to an {@link EntityService}
86
- * @param roles to be supplied
87
- */
88
- declare function $Role(roles: string[]): RoleDecorator;
89
69
  import { C3Decorator as C3Decorator10 } from "@kinotic-ai/idl";
90
70
  /**
91
71
  * Denotes the field that will hold the tenant id to use as the Multi Tenant discriminator field
@@ -631,8 +611,7 @@ interface IOsApiExtension {
631
611
  dataInsights: IDataInsightsService;
632
612
  }
633
613
  declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
634
- import { Kinotic, KinoticSingleton as KinoticSingleton2, IKinotic as IKinotic8, KinoticPlugin as KinoticPlugin2 } from "@kinotic-ai/core";
635
614
  declare module "@kinotic-ai/core" {
636
615
  interface KinoticSingleton extends IOsApiExtension {}
637
616
  }
638
- export { VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, RoleDecorator, QueryOptionsC3Type, QueryDecorator, ProjectType2 as ProjectType, ProjectService, Project, ProgressType, PolicyDecorator, PageableC3Type, PageC3Type, OsApiPlugin, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticSingleton2 as KinoticSingleton, KinoticPlugin2 as KinoticPlugin, Kinotic, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, IKinotic8 as IKinotic, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, ApplicationService, Application, $Role, $Policy };
617
+ export { VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, QueryOptionsC3Type, QueryDecorator, ProjectType2 as ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, ApplicationService, Application };
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ declare class EntityDecorator extends C3Decorator3 {
26
26
  withMultiTenancyType(type: MultiTenancyType): EntityDecorator;
27
27
  withEntityType(type: EntityType): EntityDecorator;
28
28
  }
29
- import { EsIndexConfigurationData } from "@/api/model/idl/decorators/EsIndexConfigurationData";
29
+ import { EsIndexConfigurationData } from "@kinotic-ai/persistence";
30
30
  import { C3Decorator as C3Decorator4 } from "@kinotic-ai/idl";
31
31
  declare class EsIndexConfigurationDecorator extends C3Decorator4 {
32
32
  value: EsIndexConfigurationData;
@@ -61,31 +61,11 @@ import { C3Decorator as C3Decorator8 } from "@kinotic-ai/idl";
61
61
  declare class NotIndexedDecorator extends C3Decorator8 {
62
62
  constructor();
63
63
  }
64
- import { EntityServiceDecorator } from "@kinotic-ai/persistence";
65
- declare class PolicyDecorator extends EntityServiceDecorator {
66
- policies: string[][];
67
- constructor(policies: string[][]);
68
- }
69
- /**
70
- * Provides a mechanism to apply the @Policy decorator to an {@link EntityService}
71
- * @param policies to be supplied
72
- */
73
- declare function $Policy(policies: string[][]): PolicyDecorator;
74
64
  import { C3Decorator as C3Decorator9 } from "@kinotic-ai/idl";
75
65
  declare class QueryDecorator extends C3Decorator9 {
76
66
  statements: string;
77
67
  constructor(statements: string);
78
68
  }
79
- import { EntityServiceDecorator as EntityServiceDecorator2 } from "@kinotic-ai/persistence";
80
- declare class RoleDecorator extends EntityServiceDecorator2 {
81
- roles: string[];
82
- constructor(roles: string[]);
83
- }
84
- /**
85
- * Provides a mechanism to apply the @Role decorator to an {@link EntityService}
86
- * @param roles to be supplied
87
- */
88
- declare function $Role(roles: string[]): RoleDecorator;
89
69
  import { C3Decorator as C3Decorator10 } from "@kinotic-ai/idl";
90
70
  /**
91
71
  * Denotes the field that will hold the tenant id to use as the Multi Tenant discriminator field
@@ -631,8 +611,7 @@ interface IOsApiExtension {
631
611
  dataInsights: IDataInsightsService;
632
612
  }
633
613
  declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
634
- import { Kinotic, KinoticSingleton as KinoticSingleton2, IKinotic as IKinotic8, KinoticPlugin as KinoticPlugin2 } from "@kinotic-ai/core";
635
614
  declare module "@kinotic-ai/core" {
636
615
  interface KinoticSingleton extends IOsApiExtension {}
637
616
  }
638
- export { VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, RoleDecorator, QueryOptionsC3Type, QueryDecorator, ProjectType2 as ProjectType, ProjectService, Project, ProgressType, PolicyDecorator, PageableC3Type, PageC3Type, OsApiPlugin, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticSingleton2 as KinoticSingleton, KinoticPlugin2 as KinoticPlugin, Kinotic, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, IKinotic8 as IKinotic, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, ApplicationService, Application, $Role, $Policy };
617
+ export { VersionDecorator, TimeReferenceDecorator, TextDecorator, TenantSelectionC3Type, TenantIdDecorator, SingleLoggerLevelsDescriptor, QueryOptionsC3Type, QueryDecorator, ProjectType2 as ProjectType, ProjectService, Project, ProgressType, PageableC3Type, PageC3Type, OsApiPlugin, NotIndexedDecorator, NestedDecorator, NamedQueriesDefinitionService, NamedQueriesDefinition, MigrationService, MigrationResult, MigrationRequest, MigrationDefinition, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, IEntityDefinitionService, IDataInsightsService, IApplicationService, GroupLoggerLevelsDescriptor, FlattenedDecorator, EsIndexConfigurationDecorator, EntityDefinitionService, EntityDefinition, EntityDecorator, DiscriminatorDecorator, DataInsightsService, DataInsightsComponent, AutoGeneratedIdDecorator, ApplicationService, Application };
package/dist/index.js CHANGED
@@ -87,20 +87,6 @@ class NotIndexedDecorator extends C3Decorator8 {
87
87
  this.type = "NotIndexedDecorator";
88
88
  }
89
89
  }
90
- // packages/os-api/src/api/model/idl/decorators/PolicyDecorator.ts
91
- import { EntityServiceDecorator } from "@kinotic-ai/persistence";
92
-
93
- class PolicyDecorator extends EntityServiceDecorator {
94
- policies;
95
- constructor(policies) {
96
- super();
97
- this.type = "PolicyDecorator";
98
- this.policies = policies;
99
- }
100
- }
101
- function $Policy(policies) {
102
- return new PolicyDecorator(policies);
103
- }
104
90
  // packages/os-api/src/api/model/idl/decorators/QueryDecorator.ts
105
91
  import { C3Decorator as C3Decorator9 } from "@kinotic-ai/idl";
106
92
 
@@ -112,20 +98,6 @@ class QueryDecorator extends C3Decorator9 {
112
98
  this.statements = statements;
113
99
  }
114
100
  }
115
- // packages/os-api/src/api/model/idl/decorators/RoleDecorator.ts
116
- import { EntityServiceDecorator as EntityServiceDecorator2 } from "@kinotic-ai/persistence";
117
-
118
- class RoleDecorator extends EntityServiceDecorator2 {
119
- roles;
120
- constructor(roles) {
121
- super();
122
- this.type = "RoleDecorator";
123
- this.roles = roles;
124
- }
125
- }
126
- function $Role(roles) {
127
- return new RoleDecorator(roles);
128
- }
129
101
  // packages/os-api/src/api/model/idl/decorators/TenantIdDecorator.ts
130
102
  import { C3Decorator as C3Decorator10 } from "@kinotic-ai/idl";
131
103
 
@@ -466,9 +438,6 @@ var OsApiPlugin = {
466
438
  };
467
439
  }
468
440
  };
469
-
470
- // packages/os-api/src/index.ts
471
- import { Kinotic, KinoticSingleton } from "@kinotic-ai/core";
472
441
  export {
473
442
  VersionDecorator,
474
443
  TimeReferenceDecorator,
@@ -476,14 +445,12 @@ export {
476
445
  TenantSelectionC3Type,
477
446
  TenantIdDecorator,
478
447
  SingleLoggerLevelsDescriptor,
479
- RoleDecorator,
480
448
  QueryOptionsC3Type,
481
449
  QueryDecorator,
482
450
  ProjectType,
483
451
  ProjectService,
484
452
  Project,
485
453
  ProgressType,
486
- PolicyDecorator,
487
454
  PageableC3Type,
488
455
  PageC3Type,
489
456
  OsApiPlugin,
@@ -496,8 +463,6 @@ export {
496
463
  LoggerLevelsDescriptor,
497
464
  LogManager,
498
465
  LogLevel,
499
- KinoticSingleton,
500
- Kinotic,
501
466
  IdDecorator,
502
467
  GroupLoggerLevelsDescriptor,
503
468
  FlattenedDecorator,
@@ -509,7 +474,5 @@ export {
509
474
  DataInsightsService,
510
475
  AutoGeneratedIdDecorator,
511
476
  ApplicationService,
512
- Application,
513
- $Role,
514
- $Policy
477
+ Application
515
478
  };
package/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/os-api",
3
+ "version": "1.0.7",
3
4
  "type": "module",
4
5
  "files": [
5
6
  "dist"
@@ -32,9 +33,9 @@
32
33
  "ui-test": "vitest --ui --coverage.enabled=true --mode development"
33
34
  },
34
35
  "dependencies": {
35
- "@kinotic-ai/core": "1.0.0-beta.0",
36
- "@kinotic-ai/idl": "1.0.0-beta.0",
37
- "@kinotic-ai/persistence": "1.0.0-beta.0",
36
+ "@kinotic-ai/core": "1.0.7",
37
+ "@kinotic-ai/idl": "1.0.7",
38
+ "@kinotic-ai/persistence": "1.0.7",
38
39
  "rxjs": "^7.8.2"
39
40
  },
40
41
  "devDependencies": {
@@ -50,6 +51,5 @@
50
51
  "typescript": {
51
52
  "optional": true
52
53
  }
53
- },
54
- "version": "1.0.5"
54
+ }
55
55
  }