@ronin/compiler 0.17.17 → 0.17.18-fix-export-result-record-experimental-410

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +20 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -371,15 +371,31 @@ type PublicModel<T extends ModelEntityList<ModelField> = ModelEntityList<ModelFi
371
371
 
372
372
  type RawRow = Array<unknown>;
373
373
  type ObjectRow = Record<string, unknown>;
374
- type ResultRecord = Record<string, unknown> & {
374
+ type ResultRecordBase<T extends Date | string = string> = {
375
+ /**
376
+ * The unique identifier of the record.
377
+ */
375
378
  id: string;
376
379
  ronin: {
377
- createdAt: string;
380
+ /**
381
+ * The timestamp of when the record was created.
382
+ */
383
+ createdAt: T;
384
+ /**
385
+ * The ID of the user who created the record.
386
+ */
378
387
  createdBy: string | null;
379
- updatedAt: string;
388
+ /**
389
+ * The timestamp of the last time the record was updated.
390
+ */
391
+ updatedAt: T;
392
+ /**
393
+ * The ID of the user who last updated the record.
394
+ */
380
395
  updatedBy: string | null;
381
396
  };
382
397
  };
398
+ type ResultRecord = Record<string, unknown> & ResultRecordBase;
383
399
  type SingleRecordResult<T = ResultRecord> = {
384
400
  record: T | null;
385
401
  modelFields: Record<ModelField['slug'], ModelField['type']>;
@@ -475,4 +491,4 @@ declare class Transaction {
475
491
 
476
492
  declare const CLEAN_ROOT_MODEL: PublicModel;
477
493
 
478
- export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, DDL_QUERY_TYPES, DML_QUERY_TYPES, DML_QUERY_TYPES_READ, DML_QUERY_TYPES_WRITE, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, QUERY_TYPES, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RegularResult, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
494
+ export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, DDL_QUERY_TYPES, DML_QUERY_TYPES, DML_QUERY_TYPES_READ, DML_QUERY_TYPES_WRITE, type DropQuery, type ExpandedResult, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, QUERY_TYPES, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RegularResult, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, type ResultRecord, type ResultRecordBase, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.17",
3
+ "version": "0.17.18-fix-export-result-record-experimental-410",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {