@kinotic-ai/os-api 1.0.6 → 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,
@@ -77,9 +75,7 @@ __export(exports_src, {
77
75
  DataInsightsService: () => DataInsightsService,
78
76
  AutoGeneratedIdDecorator: () => AutoGeneratedIdDecorator,
79
77
  ApplicationService: () => ApplicationService,
80
- Application: () => Application,
81
- $Role: () => $Role,
82
- $Policy: () => $Policy
78
+ Application: () => Application
83
79
  });
84
80
  module.exports = __toCommonJS(exports_src);
85
81
 
@@ -172,20 +168,6 @@ class NotIndexedDecorator extends import_idl8.C3Decorator {
172
168
  this.type = "NotIndexedDecorator";
173
169
  }
174
170
  }
175
- // packages/os-api/src/api/model/idl/decorators/PolicyDecorator.ts
176
- var import_persistence2 = require("@kinotic-ai/persistence");
177
-
178
- class PolicyDecorator extends import_persistence2.EntityServiceDecorator {
179
- policies;
180
- constructor(policies) {
181
- super();
182
- this.type = "PolicyDecorator";
183
- this.policies = policies;
184
- }
185
- }
186
- function $Policy(policies) {
187
- return new PolicyDecorator(policies);
188
- }
189
171
  // packages/os-api/src/api/model/idl/decorators/QueryDecorator.ts
190
172
  var import_idl9 = require("@kinotic-ai/idl");
191
173
 
@@ -197,20 +179,6 @@ class QueryDecorator extends import_idl9.C3Decorator {
197
179
  this.statements = statements;
198
180
  }
199
181
  }
200
- // packages/os-api/src/api/model/idl/decorators/RoleDecorator.ts
201
- var import_persistence3 = require("@kinotic-ai/persistence");
202
-
203
- class RoleDecorator extends import_persistence3.EntityServiceDecorator {
204
- roles;
205
- constructor(roles) {
206
- super();
207
- this.type = "RoleDecorator";
208
- this.roles = roles;
209
- }
210
- }
211
- function $Role(roles) {
212
- return new RoleDecorator(roles);
213
- }
214
182
  // packages/os-api/src/api/model/idl/decorators/TenantIdDecorator.ts
215
183
  var import_idl10 = require("@kinotic-ai/idl");
216
184
 
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
@@ -634,4 +614,4 @@ declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
634
614
  declare module "@kinotic-ai/core" {
635
615
  interface KinoticSingleton extends IOsApiExtension {}
636
616
  }
637
- 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, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, 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
@@ -634,4 +614,4 @@ declare const OsApiPlugin: KinoticPlugin<IOsApiExtension>;
634
614
  declare module "@kinotic-ai/core" {
635
615
  interface KinoticSingleton extends IOsApiExtension {}
636
616
  }
637
- 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, InsightRequest, InsightProgress, IdDecorator, IProjectService, IOsApiExtension, INamedQueriesDefinitionService, IMigrationService, ILogManager, 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
 
@@ -473,14 +445,12 @@ export {
473
445
  TenantSelectionC3Type,
474
446
  TenantIdDecorator,
475
447
  SingleLoggerLevelsDescriptor,
476
- RoleDecorator,
477
448
  QueryOptionsC3Type,
478
449
  QueryDecorator,
479
450
  ProjectType,
480
451
  ProjectService,
481
452
  Project,
482
453
  ProgressType,
483
- PolicyDecorator,
484
454
  PageableC3Type,
485
455
  PageC3Type,
486
456
  OsApiPlugin,
@@ -504,7 +474,5 @@ export {
504
474
  DataInsightsService,
505
475
  AutoGeneratedIdDecorator,
506
476
  ApplicationService,
507
- Application,
508
- $Role,
509
- $Policy
477
+ Application
510
478
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/os-api",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -33,9 +33,9 @@
33
33
  "ui-test": "vitest --ui --coverage.enabled=true --mode development"
34
34
  },
35
35
  "dependencies": {
36
- "@kinotic-ai/core": "1.0.6",
37
- "@kinotic-ai/idl": "1.0.6",
38
- "@kinotic-ai/persistence": "1.0.6",
36
+ "@kinotic-ai/core": "1.0.7",
37
+ "@kinotic-ai/idl": "1.0.7",
38
+ "@kinotic-ai/persistence": "1.0.7",
39
39
  "rxjs": "^7.8.2"
40
40
  },
41
41
  "devDependencies": {