@outliant/sunrise-utils 1.4.3 → 1.4.5
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/CHANGELOG.md +14 -0
- package/constants.js +36 -0
- package/helpers/commonFilter.js +29 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,23 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.4.5](https://github.com/outliant/sunrise-utils/compare/1.4.4...1.4.5)
|
|
8
|
+
|
|
9
|
+
- chore: updated banners [`4999919`](https://github.com/outliant/sunrise-utils/commit/49999195b7a25be28966f5b21ddeb87169f2b1c2)
|
|
10
|
+
|
|
11
|
+
#### [1.4.4](https://github.com/outliant/sunrise-utils/compare/1.4.3...1.4.4)
|
|
12
|
+
|
|
13
|
+
> 29 August 2025
|
|
14
|
+
|
|
15
|
+
- fix: due date empty/not empty filter [`5009a26`](https://github.com/outliant/sunrise-utils/commit/5009a263100797464fb72a8c9e5e771f7666d04d)
|
|
16
|
+
- chore(release): 1.4.4 [`64d49e0`](https://github.com/outliant/sunrise-utils/commit/64d49e09e7cc96e12dd57caaa81c876fba81821c)
|
|
17
|
+
|
|
7
18
|
#### [1.4.3](https://github.com/outliant/sunrise-utils/compare/1.4.2...1.4.3)
|
|
8
19
|
|
|
20
|
+
> 25 June 2025
|
|
21
|
+
|
|
9
22
|
- chore: task pipeline exclude archived tasks by default [`b4b9954`](https://github.com/outliant/sunrise-utils/commit/b4b99546e44b222c2bc7fd42157f30ed71efb883)
|
|
23
|
+
- chore(release): 1.4.3 [`5fd931a`](https://github.com/outliant/sunrise-utils/commit/5fd931a9dd5b9ccaed95ea7029819544885b1bf9)
|
|
10
24
|
|
|
11
25
|
#### [1.4.2](https://github.com/outliant/sunrise-utils/compare/1.4.1...1.4.2)
|
|
12
26
|
|
package/constants.js
CHANGED
|
@@ -38,5 +38,41 @@ module.exports.PROJECT_BANNERS = [
|
|
|
38
38
|
{
|
|
39
39
|
label: 'Rough DC Inspection',
|
|
40
40
|
value: 'rough-dc-inspection'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'Guaranteed 2025 Install',
|
|
44
|
+
value: 'guaranteed-2025-install'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Powerwall 2 Recall',
|
|
48
|
+
value: 'powerwall-2-recall'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'SunPower Lease',
|
|
52
|
+
value: 'sunpower-lease'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Sunnova Lease',
|
|
56
|
+
value: 'sunnova-lease'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Lightreach Lease',
|
|
60
|
+
value: 'lightreach-lease'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'GoodLeap Lease',
|
|
64
|
+
value: 'goodleap-lease'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Enfin Lease',
|
|
68
|
+
value: 'enfin'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'HDM',
|
|
72
|
+
value: 'hdm-lease'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'TXU',
|
|
76
|
+
value: 'txu'
|
|
41
77
|
}
|
|
42
78
|
];
|
package/helpers/commonFilter.js
CHANGED
|
@@ -223,6 +223,21 @@ module.exports.isEmpty = (filter) => {
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
+
|
|
227
|
+
if (filter.field_type === 'date' || filter.field_type === 'number') {
|
|
228
|
+
return {
|
|
229
|
+
bool: {
|
|
230
|
+
must_not: [
|
|
231
|
+
{
|
|
232
|
+
exists: {
|
|
233
|
+
field: filter.type
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
226
241
|
return {
|
|
227
242
|
bool: {
|
|
228
243
|
should: [
|
|
@@ -284,6 +299,20 @@ module.exports.isNotEmpty = (filter) => {
|
|
|
284
299
|
};
|
|
285
300
|
}
|
|
286
301
|
|
|
302
|
+
if (filter.field_type === 'date' || filter.field_type === 'number') {
|
|
303
|
+
return {
|
|
304
|
+
bool: {
|
|
305
|
+
must: [
|
|
306
|
+
{
|
|
307
|
+
exists: {
|
|
308
|
+
field: filter.type
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
|
|
287
316
|
return {
|
|
288
317
|
bool: {
|
|
289
318
|
must_not: [
|