@managemint-solutions/sdk 0.30.0 → 0.32.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.
|
@@ -17,6 +17,8 @@ export type CreateNotificationInput = {
|
|
|
17
17
|
recipient_id?: string;
|
|
18
18
|
recipient_email?: string;
|
|
19
19
|
recipient_phone?: string;
|
|
20
|
+
/** The invoice the email carries as a PDF attachment; the worker renders it at send time. */
|
|
21
|
+
invoice_id?: string;
|
|
20
22
|
};
|
|
21
23
|
export type CreatedNotification = NotificationEntity & {
|
|
22
24
|
organization_id: string | null;
|
|
@@ -31,6 +33,7 @@ export type QueuedNotification = {
|
|
|
31
33
|
template_id: string | null;
|
|
32
34
|
template_variables: Record<string, string>;
|
|
33
35
|
recipient_email: string | null;
|
|
36
|
+
invoice_id: string | null;
|
|
34
37
|
attempts: number;
|
|
35
38
|
sent_at: string | null;
|
|
36
39
|
deleted: boolean;
|
package/dist/tasks/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./dto"), exports);
|
|
|
25
25
|
// defined in the api's supabase/migrations).
|
|
26
26
|
const TASK_LIST_SELECT = `
|
|
27
27
|
mms_id,
|
|
28
|
+
task_number:task_id,
|
|
28
29
|
name,
|
|
29
30
|
start_date,
|
|
30
31
|
end_date,
|
|
@@ -45,6 +46,7 @@ const TASK_DETAIL_SELECT = `
|
|
|
45
46
|
created_by:user_profiles!created_by (*),
|
|
46
47
|
updated_at,
|
|
47
48
|
last_updated_by:user_profiles!last_updated_by (*),
|
|
49
|
+
task_number:task_id,
|
|
48
50
|
name,
|
|
49
51
|
description,
|
|
50
52
|
start_date,
|
|
@@ -101,7 +103,10 @@ class TasksResource {
|
|
|
101
103
|
.order('created_at', { ascending: false })
|
|
102
104
|
.range(offset, offset + pageSize - 1);
|
|
103
105
|
if (trimmedSearch) {
|
|
104
|
-
|
|
106
|
+
// "12" or "#12" also finds task number 12; anything else is a text search only.
|
|
107
|
+
const taskNumber = trimmedSearch.match(/^#?(\d+)$/)?.[1];
|
|
108
|
+
const textFilter = (0, transforms_1.orIlike)(['name', 'description'], trimmedSearch);
|
|
109
|
+
tasksQuery = tasksQuery.or(taskNumber ? `${textFilter},task_id.eq.${taskNumber}` : textFilter);
|
|
105
110
|
}
|
|
106
111
|
if (query.client_id) {
|
|
107
112
|
tasksQuery = tasksQuery.eq('client_id', query.client_id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managemint-solutions/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Typed Supabase data-access SDK for ManageMint Solutions",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Scott Bebington <scottbebington@gmail.com>",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"testEnvironment": "node"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@managemint-solutions/entities": "^1.
|
|
50
|
+
"@managemint-solutions/entities": "^1.16.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@nestjs/common": "^11.0.0",
|