@ronin/compiler 0.14.8 → 0.14.9

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -361,7 +361,7 @@ type PublicModel<T extends Array<ModelField> = Array<ModelField>> = Omit<Partial
361
361
 
362
362
  type RawRow = Array<unknown>;
363
363
  type ObjectRow = Record<string, unknown>;
364
- type NativeRecord = Record<string, unknown> & {
364
+ type ResultRecord = Record<string, unknown> & {
365
365
  id: string;
366
366
  ronin: {
367
367
  locked: boolean;
@@ -371,11 +371,11 @@ type NativeRecord = Record<string, unknown> & {
371
371
  updatedBy: string | null;
372
372
  };
373
373
  };
374
- type SingleRecordResult<T = NativeRecord> = {
374
+ type SingleRecordResult<T = ResultRecord> = {
375
375
  record: T | null;
376
376
  modelFields: Record<ModelField['slug'], ModelField['type']>;
377
377
  };
378
- type MultipleRecordResult<T = NativeRecord> = {
378
+ type MultipleRecordResult<T = ResultRecord> = {
379
379
  records: Array<T>;
380
380
  moreAfter?: string;
381
381
  moreBefore?: string;
@@ -384,7 +384,7 @@ type MultipleRecordResult<T = NativeRecord> = {
384
384
  type AmountResult = {
385
385
  amount: number;
386
386
  };
387
- type Result<T = NativeRecord> = SingleRecordResult<T> | MultipleRecordResult<T> | AmountResult;
387
+ type Result<T = ResultRecord> = SingleRecordResult<T> | MultipleRecordResult<T> | AmountResult;
388
388
 
389
389
  interface TransactionOptions {
390
390
  /** A list of models that already exist in the database. */
@@ -408,4 +408,4 @@ declare class Transaction {
408
408
 
409
409
  declare const CLEAN_ROOT_MODEL: PublicModel;
410
410
 
411
- export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, type DropQuery, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, type RemoveInstructions, type RemoveQuery, type RemoveInstructions as RemoveQueryInstructions, type Result, RoninError, type SetInstructions, type SetQuery, type SetInstructions as SetQueryInstructions, type Statement, type StoredObject, Transaction, type WithInstruction, getQuerySymbol };
411
+ export { type AddInstructions, type AddQuery, type AddInstructions as AddQueryInstructions, type AlterQuery, type CombinedInstructions, type CountInstructions, type CountQuery, type CountInstructions as CountQueryInstructions, type CreateQuery, type DropQuery, type GetInstructions, type GetQuery, type GetInstructions as GetQueryInstructions, type PublicModel as Model, type ModelField, type ModelIndex, type ModelPreset, type ModelTrigger, QUERY_SYMBOLS, type Query, type QueryInstructionType as QueryInstruction, type QuerySchemaType, type QueryType, CLEAN_ROOT_MODEL as ROOT_MODEL, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.8",
3
+ "version": "0.14.9",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {