@forklaunch/core 3.2.0 → 3.2.1
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/lib/http/emailClient.d.ts +2 -1
- package/lib/http/emailClient.d.ts.map +1 -1
- package/lib/http/index.js +4 -4
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +4 -4
- package/lib/http/index.mjs.map +1 -1
- package/lib/http/instanceGateway.d.ts +10 -6
- package/lib/http/instanceGateway.d.ts.map +1 -1
- package/lib/http/modelGatewayClient.d.ts +13 -12
- package/lib/http/modelGatewayClient.d.ts.map +1 -1
- package/lib/http/smsClient.d.ts +2 -2
- package/lib/http/smsClient.d.ts.map +1 -1
- package/lib/http/voiceClient.d.ts +4 -4
- package/lib/http/voiceClient.d.ts.map +1 -1
- package/lib/http/whatsappClient.d.ts +5 -5
- package/lib/persistence/compliantField.d.ts.map +1 -1
- package/lib/persistence/index.js +6 -1
- package/lib/persistence/index.js.map +1 -1
- package/lib/persistence/index.mjs +6 -1
- package/lib/persistence/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1037,7 +1037,7 @@ var CompliantTypeBase = class extends Type2 {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
var CompliantType = class extends CompliantTypeBase {
|
|
1039
1039
|
convertToDatabaseValue(value, _platform, context) {
|
|
1040
|
-
if (context?.fromQuery) {
|
|
1040
|
+
if (context?.fromQuery && context.mode !== "query-data") {
|
|
1041
1041
|
throw new CompliantQueryError(
|
|
1042
1042
|
`${this.spec.path} cannot be queried: declare it with .compliance('${this.spec.level}', { queryable: true }) to allow equality lookups`
|
|
1043
1043
|
);
|
|
@@ -1064,6 +1064,11 @@ var EQUALITY_OPERATORS = /* @__PURE__ */ new Set(["$eq", "$ne", "$in", "$nin"]);
|
|
|
1064
1064
|
var CompliantIndexType = class extends CompliantTypeBase {
|
|
1065
1065
|
convertToDatabaseValue(value, _platform, context) {
|
|
1066
1066
|
if (value === null || value === void 0) return null;
|
|
1067
|
+
if (context?.mode === "query-data") {
|
|
1068
|
+
throw new CompliantQueryError(
|
|
1069
|
+
`${this.spec.path} is queryable, so a bulk update (nativeUpdate, qb.update) cannot set it: its sealed value lives in a second column the update does not write. Load the entity, assign the value and flush.`
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1067
1072
|
if (context?.fromQuery) {
|
|
1068
1073
|
const key = context.key;
|
|
1069
1074
|
if (key !== void 0 && !EQUALITY_OPERATORS.has(String(key)) && !/^\d+$/.test(String(key))) {
|