@kinotic-ai/persistence 5.0.0-beta.11 → 5.0.0-beta.12

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
@@ -70,6 +70,7 @@ __export(exports_src, {
70
70
  Entity: () => Entity,
71
71
  EntitiesRepository: () => EntitiesRepository,
72
72
  Discriminator: () => Discriminator,
73
+ DateTime: () => DateTime,
73
74
  AutoGeneratedId: () => AutoGeneratedId,
74
75
  AdminEntityRepository: () => AdminEntityRepository,
75
76
  AdminEntitiesRepository: () => AdminEntitiesRepository,
@@ -120,6 +121,7 @@ var PrecisionType;
120
121
 
121
122
  // packages/persistence/src/api/KinoticPersistenceDecorators.ts
122
123
  function AutoGeneratedId(_value, _context) {}
124
+ function DateTime(_value, _context) {}
123
125
  function Discriminator(_propertyName) {
124
126
  return function(_value, _context) {};
125
127
  }
package/dist/index.d.cts CHANGED
@@ -443,6 +443,11 @@ type EntityServiceDecoratorsConfig = Partial<Record<DecoratedFunction, EntitySer
443
443
  */
444
444
  declare function AutoGeneratedId(_value: undefined, _context: ClassFieldDecoratorContext): void;
445
445
  /**
446
+ * Signifies that a property holds a date, which is stored and queried as a date.
447
+ * The property is a string, or an array of strings, holding ISO-8601 dates such as `Date.prototype.toISOString()` returns.
448
+ */
449
+ declare function DateTime(_value: undefined, _context: ClassFieldDecoratorContext<unknown, string | readonly string[] | null | undefined>): void;
450
+ /**
446
451
  * Signifies that a property is a discriminator for the entity.
447
452
  * This is used to determine the type of the entity when deserializing from JSON.
448
453
  * @param propertyName the name of the property to use as the discriminator
@@ -763,4 +768,4 @@ declare const PersistencePlugin: KinoticPlugin<IPersistenceExtension>;
763
768
  declare module "@kinotic-ai/core" {
764
769
  interface KinoticSingleton extends IPersistenceExtension {}
765
770
  }
766
- export { Version, TimeReference, Text, TenantSpecificId, TenantSelection, TenantId, RoleDecorator, Role, QueryParameter, QueryOptions, Query, PrecisionType, Precision, PolicyDecorator, Policy, PersistencePlugin, NotNull, NotIndexed, Nested, MultiTenancyType, Id, IPersistenceExtension, IEntityRepository, IEntitiesRepository, IAdminEntityRepository, IAdminEntitiesRepository, Flattened, EsIndexConfigurationData, EsIndexConfiguration, EntityType, EntityServiceDecoratorsDecorator, EntityServiceDecoratorsConfig, EntityServiceDecorators, EntityServiceDecorator, EntityRepository, Entity, EntitiesRepository, Discriminator, DecoratedFunction, AutoGeneratedId, AdminEntityRepository, AdminEntitiesRepository, APP_API_ZONE, $Role, $Policy };
771
+ export { Version, TimeReference, Text, TenantSpecificId, TenantSelection, TenantId, RoleDecorator, Role, QueryParameter, QueryOptions, Query, PrecisionType, Precision, PolicyDecorator, Policy, PersistencePlugin, NotNull, NotIndexed, Nested, MultiTenancyType, Id, IPersistenceExtension, IEntityRepository, IEntitiesRepository, IAdminEntityRepository, IAdminEntitiesRepository, Flattened, EsIndexConfigurationData, EsIndexConfiguration, EntityType, EntityServiceDecoratorsDecorator, EntityServiceDecoratorsConfig, EntityServiceDecorators, EntityServiceDecorator, EntityRepository, Entity, EntitiesRepository, Discriminator, DecoratedFunction, DateTime, AutoGeneratedId, AdminEntityRepository, AdminEntitiesRepository, APP_API_ZONE, $Role, $Policy };
package/dist/index.d.ts CHANGED
@@ -443,6 +443,11 @@ type EntityServiceDecoratorsConfig = Partial<Record<DecoratedFunction, EntitySer
443
443
  */
444
444
  declare function AutoGeneratedId(_value: undefined, _context: ClassFieldDecoratorContext): void;
445
445
  /**
446
+ * Signifies that a property holds a date, which is stored and queried as a date.
447
+ * The property is a string, or an array of strings, holding ISO-8601 dates such as `Date.prototype.toISOString()` returns.
448
+ */
449
+ declare function DateTime(_value: undefined, _context: ClassFieldDecoratorContext<unknown, string | readonly string[] | null | undefined>): void;
450
+ /**
446
451
  * Signifies that a property is a discriminator for the entity.
447
452
  * This is used to determine the type of the entity when deserializing from JSON.
448
453
  * @param propertyName the name of the property to use as the discriminator
@@ -763,4 +768,4 @@ declare const PersistencePlugin: KinoticPlugin<IPersistenceExtension>;
763
768
  declare module "@kinotic-ai/core" {
764
769
  interface KinoticSingleton extends IPersistenceExtension {}
765
770
  }
766
- export { Version, TimeReference, Text, TenantSpecificId, TenantSelection, TenantId, RoleDecorator, Role, QueryParameter, QueryOptions, Query, PrecisionType, Precision, PolicyDecorator, Policy, PersistencePlugin, NotNull, NotIndexed, Nested, MultiTenancyType, Id, IPersistenceExtension, IEntityRepository, IEntitiesRepository, IAdminEntityRepository, IAdminEntitiesRepository, Flattened, EsIndexConfigurationData, EsIndexConfiguration, EntityType, EntityServiceDecoratorsDecorator, EntityServiceDecoratorsConfig, EntityServiceDecorators, EntityServiceDecorator, EntityRepository, Entity, EntitiesRepository, Discriminator, DecoratedFunction, AutoGeneratedId, AdminEntityRepository, AdminEntitiesRepository, APP_API_ZONE, $Role, $Policy };
771
+ export { Version, TimeReference, Text, TenantSpecificId, TenantSelection, TenantId, RoleDecorator, Role, QueryParameter, QueryOptions, Query, PrecisionType, Precision, PolicyDecorator, Policy, PersistencePlugin, NotNull, NotIndexed, Nested, MultiTenancyType, Id, IPersistenceExtension, IEntityRepository, IEntitiesRepository, IAdminEntityRepository, IAdminEntitiesRepository, Flattened, EsIndexConfigurationData, EsIndexConfiguration, EntityType, EntityServiceDecoratorsDecorator, EntityServiceDecoratorsConfig, EntityServiceDecorators, EntityServiceDecorator, EntityRepository, Entity, EntitiesRepository, Discriminator, DecoratedFunction, DateTime, AutoGeneratedId, AdminEntityRepository, AdminEntitiesRepository, APP_API_ZONE, $Role, $Policy };
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ var PrecisionType;
39
39
 
40
40
  // packages/persistence/src/api/KinoticPersistenceDecorators.ts
41
41
  function AutoGeneratedId(_value, _context) {}
42
+ function DateTime(_value, _context) {}
42
43
  function Discriminator(_propertyName) {
43
44
  return function(_value, _context) {};
44
45
  }
@@ -394,6 +395,7 @@ export {
394
395
  Entity,
395
396
  EntitiesRepository,
396
397
  Discriminator,
398
+ DateTime,
397
399
  AutoGeneratedId,
398
400
  AdminEntityRepository,
399
401
  AdminEntitiesRepository,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinotic-ai/persistence",
3
- "version": "5.0.0-beta.11",
3
+ "version": "5.0.0-beta.12",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -37,14 +37,14 @@
37
37
  "coverage": "bun test --coverage --pass-with-no-tests"
38
38
  },
39
39
  "peerDependencies": {
40
- "@kinotic-ai/core": "^5.0.0-beta.13"
40
+ "@kinotic-ai/core": "^5.0.0-beta.17"
41
41
  },
42
42
  "dependencies": {
43
43
  "@kinotic-ai/idl": "5.0.0-beta.1",
44
44
  "rxjs": "^7.8.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@kinotic-ai/core": "5.0.0-beta.13",
47
+ "@kinotic-ai/core": "5.0.0-beta.17",
48
48
  "@types/node": "^25.3.2",
49
49
  "tslib": "^2.8.1",
50
50
  "typescript": "^5.9.3"