@ronin/compiler 0.17.4-corny-ron-1099-experimental-383 → 0.17.4-corny-ron-1099-experimental-384
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.d.ts +1 -1
- package/dist/index.js +5 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -307,7 +307,7 @@ type ModelTrigger<T extends ModelEntityList<ModelField> = ModelEntityList<ModelF
|
|
307
307
|
/** When the trigger should fire in the case that a matching query is executed. */
|
308
308
|
when: 'BEFORE' | 'DURING' | 'AFTER';
|
309
309
|
/** A list of queries that should be executed when the trigger fires. */
|
310
|
-
effects: Array<Query
|
310
|
+
effects: Array<Record<typeof QUERY_SYMBOLS.QUERY, Query>>;
|
311
311
|
/** A list of field slugs for which the trigger should fire. */
|
312
312
|
fields?: Array<ModelTriggerField<T>>;
|
313
313
|
/**
|
package/dist/index.js
CHANGED
@@ -1987,17 +1987,11 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
|
|
1987
1987
|
statementParts.push("WHEN", `(${withStatement})`);
|
1988
1988
|
}
|
1989
1989
|
const effectStatements = trigger.effects.map((effectQuery) => {
|
1990
|
-
return compileQueryInput(
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
{
|
1996
|
-
returning: false,
|
1997
|
-
parentModel: existingModel,
|
1998
|
-
inlineDefaults: options.inlineDefaults
|
1999
|
-
}
|
2000
|
-
).main.statement;
|
1990
|
+
return compileQueryInput(effectQuery[QUERY_SYMBOLS.QUERY], models, null, {
|
1991
|
+
returning: false,
|
1992
|
+
parentModel: existingModel,
|
1993
|
+
inlineDefaults: options.inlineDefaults
|
1994
|
+
}).main.statement;
|
2001
1995
|
});
|
2002
1996
|
statementParts.push("BEGIN");
|
2003
1997
|
statementParts.push(`${effectStatements.join("; ")};`);
|
package/package.json
CHANGED