av6-core 1.6.8 → 1.7.0
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.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -323,7 +323,7 @@ interface Col {
|
|
|
323
323
|
}
|
|
324
324
|
interface ColValue {
|
|
325
325
|
value: string[] | number[];
|
|
326
|
-
type: "string" | "number" | "date" | "range" | "gt" | "lt";
|
|
326
|
+
type: "string" | "number" | "date" | "range" | "gt" | "lt" | "null";
|
|
327
327
|
}
|
|
328
328
|
interface NewFixedSearchRequest extends NewSearchRequest {
|
|
329
329
|
fixedSearch?: Record<string, ColValue>;
|
|
@@ -623,6 +623,12 @@ type EmitPayload = {
|
|
|
623
623
|
service: string;
|
|
624
624
|
shortCode: string;
|
|
625
625
|
data?: Record<string, any>;
|
|
626
|
+
attachments?: Array<{
|
|
627
|
+
filename: string;
|
|
628
|
+
path: string;
|
|
629
|
+
cid: string;
|
|
630
|
+
content?: Buffer;
|
|
631
|
+
}>;
|
|
626
632
|
};
|
|
627
633
|
type ILogger = winston.Logger | Console;
|
|
628
634
|
type NotificationEmitterDeps = {
|
package/dist/index.d.ts
CHANGED
|
@@ -323,7 +323,7 @@ interface Col {
|
|
|
323
323
|
}
|
|
324
324
|
interface ColValue {
|
|
325
325
|
value: string[] | number[];
|
|
326
|
-
type: "string" | "number" | "date" | "range" | "gt" | "lt";
|
|
326
|
+
type: "string" | "number" | "date" | "range" | "gt" | "lt" | "null";
|
|
327
327
|
}
|
|
328
328
|
interface NewFixedSearchRequest extends NewSearchRequest {
|
|
329
329
|
fixedSearch?: Record<string, ColValue>;
|
|
@@ -623,6 +623,12 @@ type EmitPayload = {
|
|
|
623
623
|
service: string;
|
|
624
624
|
shortCode: string;
|
|
625
625
|
data?: Record<string, any>;
|
|
626
|
+
attachments?: Array<{
|
|
627
|
+
filename: string;
|
|
628
|
+
path: string;
|
|
629
|
+
cid: string;
|
|
630
|
+
content?: Buffer;
|
|
631
|
+
}>;
|
|
626
632
|
};
|
|
627
633
|
type ILogger = winston.Logger | Console;
|
|
628
634
|
type NotificationEmitterDeps = {
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,8 @@ function buildFieldCondition(fieldPath, fieldType, values, isNot = false) {
|
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
} else if (fieldType === "null") {
|
|
209
|
+
finalLeaf = isNot ? { [lastKey]: { not: null } } : { [lastKey]: null };
|
|
208
210
|
} else {
|
|
209
211
|
finalLeaf = buildSingleValueCondition(lastKey, fieldType, values[0], isNot);
|
|
210
212
|
}
|
|
@@ -3578,7 +3580,8 @@ var NotificationService = class {
|
|
|
3578
3580
|
recipient: { email: recipient },
|
|
3579
3581
|
subject: msg.subject,
|
|
3580
3582
|
body: msg.body,
|
|
3581
|
-
priority: cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "low"
|
|
3583
|
+
priority: cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "low",
|
|
3584
|
+
attachments: evt.attachments
|
|
3582
3585
|
});
|
|
3583
3586
|
return this.mapProviderResult(res);
|
|
3584
3587
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -154,6 +154,8 @@ function buildFieldCondition(fieldPath, fieldType, values, isNot = false) {
|
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
+
} else if (fieldType === "null") {
|
|
158
|
+
finalLeaf = isNot ? { [lastKey]: { not: null } } : { [lastKey]: null };
|
|
157
159
|
} else {
|
|
158
160
|
finalLeaf = buildSingleValueCondition(lastKey, fieldType, values[0], isNot);
|
|
159
161
|
}
|
|
@@ -3527,7 +3529,8 @@ var NotificationService = class {
|
|
|
3527
3529
|
recipient: { email: recipient },
|
|
3528
3530
|
subject: msg.subject,
|
|
3529
3531
|
body: msg.body,
|
|
3530
|
-
priority: cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "low"
|
|
3532
|
+
priority: cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "low",
|
|
3533
|
+
attachments: evt.attachments
|
|
3531
3534
|
});
|
|
3532
3535
|
return this.mapProviderResult(res);
|
|
3533
3536
|
}
|