@kinotic-ai/core 1.0.2 → 1.0.4

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
@@ -1076,6 +1076,7 @@ __export(exports_src, {
1076
1076
  OffsetPageable: () => OffsetPageable,
1077
1077
  NullHandling: () => NullHandling,
1078
1078
  KinoticSingleton: () => KinoticSingleton,
1079
+ KinoticProjectConfig: () => KinoticProjectConfig,
1079
1080
  KinoticError: () => KinoticError,
1080
1081
  Kinotic: () => Kinotic,
1081
1082
  JsonEventFactory: () => JsonEventFactory,
@@ -2238,6 +2239,16 @@ class KinoticSingleton {
2238
2239
  }
2239
2240
  }
2240
2241
  var Kinotic = new KinoticSingleton;
2242
+ // packages/core/src/api/KinoticProjectConfig.ts
2243
+ class KinoticProjectConfig {
2244
+ name;
2245
+ description;
2246
+ application;
2247
+ entitiesPaths;
2248
+ generatedPath;
2249
+ fileExtensionForImports = ".js";
2250
+ validate;
2251
+ }
2241
2252
  // packages/core/src/api/crud/AbstractIterablePage.ts
2242
2253
  class AbstractIterablePage {
2243
2254
  pageable;
package/dist/index.d.cts CHANGED
@@ -637,6 +637,40 @@ declare function Version(version: string): (target: Function) => void;
637
637
  declare function Context(): (target: any, propertyKey: string, parameterIndex: number) => void;
638
638
  declare function Publish(namespace: string, name?: string): (target: Function) => any;
639
639
  /**
640
+ * The project configuration for a Kinotic project.
641
+ */
642
+ declare class KinoticProjectConfig {
643
+ /**
644
+ * The name of the project or undefined if a project name is used.
645
+ * i.e. if the project is typescript the package.json name will be used.
646
+ */
647
+ name?: string;
648
+ /**
649
+ * The description of the project.
650
+ */
651
+ description?: string;
652
+ /**
653
+ * The Kinotic Application that this project belongs to.
654
+ */
655
+ application: string;
656
+ /**
657
+ * The paths to search for classes decorated with @Entity that Kinotic will be created for.
658
+ */
659
+ entitiesPaths: string[];
660
+ /**
661
+ * The path to where generated files will be placed.
662
+ */
663
+ generatedPath: string;
664
+ /**
665
+ * The file extension to use for imports in generated files.
666
+ */
667
+ fileExtensionForImports: string;
668
+ /**
669
+ * If true the generated EntityService classes will validate all data before sending to the server.
670
+ */
671
+ validate?: boolean;
672
+ }
673
+ /**
640
674
  * A page is a sublist of a list of objects.
641
675
  * @author Navid Mitchell
642
676
  */
@@ -1085,4 +1119,4 @@ declare class ParticipantConstants {
1085
1119
  static readonly PARTICIPANT_TYPE_NODE: string;
1086
1120
  static readonly CLI_PARTICIPANT_ID: string;
1087
1121
  }
1088
- export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable2 as Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent2 as IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
1122
+ export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticProjectConfig, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable2 as Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent2 as IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
package/dist/index.d.ts CHANGED
@@ -637,6 +637,40 @@ declare function Version(version: string): (target: Function) => void;
637
637
  declare function Context(): (target: any, propertyKey: string, parameterIndex: number) => void;
638
638
  declare function Publish(namespace: string, name?: string): (target: Function) => any;
639
639
  /**
640
+ * The project configuration for a Kinotic project.
641
+ */
642
+ declare class KinoticProjectConfig {
643
+ /**
644
+ * The name of the project or undefined if a project name is used.
645
+ * i.e. if the project is typescript the package.json name will be used.
646
+ */
647
+ name?: string;
648
+ /**
649
+ * The description of the project.
650
+ */
651
+ description?: string;
652
+ /**
653
+ * The Kinotic Application that this project belongs to.
654
+ */
655
+ application: string;
656
+ /**
657
+ * The paths to search for classes decorated with @Entity that Kinotic will be created for.
658
+ */
659
+ entitiesPaths: string[];
660
+ /**
661
+ * The path to where generated files will be placed.
662
+ */
663
+ generatedPath: string;
664
+ /**
665
+ * The file extension to use for imports in generated files.
666
+ */
667
+ fileExtensionForImports: string;
668
+ /**
669
+ * If true the generated EntityService classes will validate all data before sending to the server.
670
+ */
671
+ validate?: boolean;
672
+ }
673
+ /**
640
674
  * A page is a sublist of a list of objects.
641
675
  * @author Navid Mitchell
642
676
  */
@@ -1085,4 +1119,4 @@ declare class ParticipantConstants {
1085
1119
  static readonly PARTICIPANT_TYPE_NODE: string;
1086
1120
  static readonly CLI_PARTICIPANT_ID: string;
1087
1121
  }
1088
- export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable2 as Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent2 as IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
1122
+ export { createCRI, Version, TextEventFactory, Sort, ServiceRegistry, ServiceContext, ServerInfo, Scope, Publish, ParticipantConstants, Participant, Pageable, Page, Order, OffsetPageable, NullHandling, KinoticSingleton, KinoticProjectConfig, KinoticPlugin, KinoticError, Kinotic, JsonEventFactory, IterablePage, Identifiable2 as Identifiable, IServiceRegistry, IServiceProxy, IParticipant, IKinotic, IEventFactory, IEventBus, IEvent2 as IEvent, IEditableDataSource, IDataSource, ICrudServiceProxyFactory, ICrudServiceProxy, FunctionalIterablePage, EventConstants, EventBus, Event, Direction, DefaultCRI, DataSourceUtils, CursorPageable, CrudServiceProxyFactory, CrudServiceProxy, ContextInterceptor, Context, ConnectionInfo, ConnectedInfo, ConnectHeaders, CRI, CONTEXT_METADATA_KEY, AuthorizationError, AuthenticationError, AbstractIterablePage };
package/dist/index.js CHANGED
@@ -2169,6 +2169,16 @@ class KinoticSingleton {
2169
2169
  }
2170
2170
  }
2171
2171
  var Kinotic = new KinoticSingleton;
2172
+ // packages/core/src/api/KinoticProjectConfig.ts
2173
+ class KinoticProjectConfig {
2174
+ name;
2175
+ description;
2176
+ application;
2177
+ entitiesPaths;
2178
+ generatedPath;
2179
+ fileExtensionForImports = ".js";
2180
+ validate;
2181
+ }
2172
2182
  // packages/core/src/api/crud/AbstractIterablePage.ts
2173
2183
  class AbstractIterablePage {
2174
2184
  pageable;
@@ -2450,6 +2460,7 @@ export {
2450
2460
  OffsetPageable,
2451
2461
  NullHandling,
2452
2462
  KinoticSingleton,
2463
+ KinoticProjectConfig,
2453
2464
  KinoticError,
2454
2465
  Kinotic,
2455
2466
  JsonEventFactory,
package/package.json CHANGED
@@ -71,5 +71,5 @@
71
71
  "optional": true
72
72
  }
73
73
  },
74
- "version": "1.0.2"
74
+ "version": "1.0.4"
75
75
  }