@kinotic-ai/os-api 1.0.6 → 1.0.8

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
 
@@ -327,17 +295,17 @@ class EntityDefinition {
327
295
  applicationId;
328
296
  projectId;
329
297
  name;
330
- entityDefinition;
298
+ schema;
331
299
  description;
332
300
  created;
333
301
  updated;
334
302
  published;
335
303
  publishedTimestamp;
336
- constructor(applicationId, projectId, name, entityDefinition, description) {
304
+ constructor(applicationId, projectId, name, schema, description) {
337
305
  this.applicationId = applicationId;
338
306
  this.projectId = projectId;
339
307
  this.name = name;
340
- this.entityDefinition = entityDefinition;
308
+ this.schema = schema;
341
309
  this.description = description;
342
310
  }
343
311
  }
@@ -346,13 +314,13 @@ class NamedQueriesDefinition {
346
314
  id;
347
315
  applicationId;
348
316
  projectId;
349
- structure;
317
+ entityDefinitionName;
350
318
  namedQueries;
351
- constructor(id, applicationId, projectId, structure, namedQueries) {
319
+ constructor(id, applicationId, projectId, entityDefinitionName, namedQueries) {
352
320
  this.id = id;
353
321
  this.applicationId = applicationId;
354
322
  this.projectId = projectId;
355
- this.structure = structure;
323
+ this.entityDefinitionName = entityDefinitionName;
356
324
  this.namedQueries = namedQueries;
357
325
  }
358
326
  }
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
@@ -216,26 +196,26 @@ declare class EntityDefinition implements Identifiable3<string> {
216
196
  */
217
197
  projectId: string;
218
198
  name: string;
219
- entityDefinition: ObjectC3Type3;
199
+ schema: ObjectC3Type3;
220
200
  description?: string | null;
221
201
  created: number;
222
202
  updated: number;
223
203
  published: boolean;
224
204
  publishedTimestamp: number;
225
- constructor(applicationId: string, projectId: string, name: string, entityDefinition: ObjectC3Type3, description?: string | null);
205
+ constructor(applicationId: string, projectId: string, name: string, schema: ObjectC3Type3, description?: string | null);
226
206
  }
227
207
  import { Identifiable as Identifiable4 } from "@kinotic-ai/core";
228
208
  import { FunctionDefinition } from "@kinotic-ai/idl";
229
209
  /**
230
- * Provides Metadata that represents Named Queries for a Application
210
+ * Provides Metadata that represents Named Queries for an Application
231
211
  */
232
212
  declare class NamedQueriesDefinition implements Identifiable4<string> {
233
213
  id: string;
234
214
  applicationId: string;
235
215
  projectId: string;
236
- structure: string;
216
+ entityDefinitionName: string;
237
217
  namedQueries: FunctionDefinition[];
238
- constructor(id: string, applicationId: string, projectId: string, structure: string, namedQueries: FunctionDefinition[]);
218
+ constructor(id: string, applicationId: string, projectId: string, entityDefinitionName: string, namedQueries: FunctionDefinition[]);
239
219
  }
240
220
  /**
241
221
  * Represents a migration definition that can be sent via the API.
@@ -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
@@ -216,26 +196,26 @@ declare class EntityDefinition implements Identifiable3<string> {
216
196
  */
217
197
  projectId: string;
218
198
  name: string;
219
- entityDefinition: ObjectC3Type3;
199
+ schema: ObjectC3Type3;
220
200
  description?: string | null;
221
201
  created: number;
222
202
  updated: number;
223
203
  published: boolean;
224
204
  publishedTimestamp: number;
225
- constructor(applicationId: string, projectId: string, name: string, entityDefinition: ObjectC3Type3, description?: string | null);
205
+ constructor(applicationId: string, projectId: string, name: string, schema: ObjectC3Type3, description?: string | null);
226
206
  }
227
207
  import { Identifiable as Identifiable4 } from "@kinotic-ai/core";
228
208
  import { FunctionDefinition } from "@kinotic-ai/idl";
229
209
  /**
230
- * Provides Metadata that represents Named Queries for a Application
210
+ * Provides Metadata that represents Named Queries for an Application
231
211
  */
232
212
  declare class NamedQueriesDefinition implements Identifiable4<string> {
233
213
  id: string;
234
214
  applicationId: string;
235
215
  projectId: string;
236
- structure: string;
216
+ entityDefinitionName: string;
237
217
  namedQueries: FunctionDefinition[];
238
- constructor(id: string, applicationId: string, projectId: string, structure: string, namedQueries: FunctionDefinition[]);
218
+ constructor(id: string, applicationId: string, projectId: string, entityDefinitionName: string, namedQueries: FunctionDefinition[]);
239
219
  }
240
220
  /**
241
221
  * Represents a migration definition that can be sent via the API.
@@ -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
 
@@ -242,17 +214,17 @@ class EntityDefinition {
242
214
  applicationId;
243
215
  projectId;
244
216
  name;
245
- entityDefinition;
217
+ schema;
246
218
  description;
247
219
  created;
248
220
  updated;
249
221
  published;
250
222
  publishedTimestamp;
251
- constructor(applicationId, projectId, name, entityDefinition, description) {
223
+ constructor(applicationId, projectId, name, schema, description) {
252
224
  this.applicationId = applicationId;
253
225
  this.projectId = projectId;
254
226
  this.name = name;
255
- this.entityDefinition = entityDefinition;
227
+ this.schema = schema;
256
228
  this.description = description;
257
229
  }
258
230
  }
@@ -261,13 +233,13 @@ class NamedQueriesDefinition {
261
233
  id;
262
234
  applicationId;
263
235
  projectId;
264
- structure;
236
+ entityDefinitionName;
265
237
  namedQueries;
266
- constructor(id, applicationId, projectId, structure, namedQueries) {
238
+ constructor(id, applicationId, projectId, entityDefinitionName, namedQueries) {
267
239
  this.id = id;
268
240
  this.applicationId = applicationId;
269
241
  this.projectId = projectId;
270
- this.structure = structure;
242
+ this.entityDefinitionName = entityDefinitionName;
271
243
  this.namedQueries = namedQueries;
272
244
  }
273
245
  }
@@ -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.8",
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.8",
37
+ "@kinotic-ai/idl": "1.0.8",
38
+ "@kinotic-ai/persistence": "1.0.8",
39
39
  "rxjs": "^7.8.2"
40
40
  },
41
41
  "devDependencies": {