@aneuhold/core-ts-db-lib 1.0.44 → 1.0.45
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.
|
@@ -30,6 +30,17 @@ export default class DashboardUserConfig extends BaseDocumentWithType implements
|
|
|
30
30
|
automationPage: boolean;
|
|
31
31
|
homePageLinks: boolean;
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* The number of days after which a task is automatically deleted. The
|
|
35
|
+
* requirement is that this number is at least 5 days, and at most 90 days.
|
|
36
|
+
*
|
|
37
|
+
* Tasks are only deleted if:
|
|
38
|
+
*
|
|
39
|
+
* - They are not recurring
|
|
40
|
+
* - They are not completed
|
|
41
|
+
* - They have not been updated in the number listed by this setting
|
|
42
|
+
*/
|
|
43
|
+
autoTaskDeletionDays: number;
|
|
33
44
|
/**
|
|
34
45
|
* The user's tag settings for the dashboard.
|
|
35
46
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserConfig.d.ts","sourceRoot":"","sources":["../../../src/documents/dashboard/UserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,cAAc,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EACL,mCAAmC,EAEpC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,qCAAqC,EAEtC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CACzD,mBAAmB,
|
|
1
|
+
{"version":3,"file":"UserConfig.d.ts","sourceRoot":"","sources":["../../../src/documents/dashboard/UserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,cAAc,MAAM,4CAA4C,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EACL,mCAAmC,EAEpC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,qCAAqC,EAEtC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CACzD,mBAAmB,CAepB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,mBACnB,SAAQ,oBACR,YAAW,cAAc;IAEzB,MAAM,CAAC,OAAO,SAAgB;IAE9B,OAAO,SAA+B;IAEtC;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;;OAGG;IACH,aAAa,EAAE,QAAQ,EAAE,CAAM;IAE/B;;OAEG;IACH,aAAa,UAAS;IAEtB;;OAEG;IACH,eAAe,EAAE;QACf,WAAW,EAAE,OAAO,CAAC;QACrB,cAAc,EAAE,OAAO,CAAC;QACxB,aAAa,EAAE,OAAO,CAAC;KACxB,CAIC;IAEF;;;;;;;;;OASG;IACH,oBAAoB,EAAE,MAAM,CAAM;IAElC;;OAEG;IACH,WAAW,EAAE,oBAAoB,CAAM;IAEvC,oBAAoB,EAAE,mCAAmC,CAAM;IAE/D,sBAAsB,EAAE,qCAAqC,CAAM;gBAEvD,OAAO,EAAE,QAAQ;CAI9B"}
|
|
@@ -17,6 +17,7 @@ const validateDashboardUserConfig = (config) => {
|
|
|
17
17
|
validate.array('collaborators', exampleConfig.collaborators);
|
|
18
18
|
validate.object('tagSettings', {});
|
|
19
19
|
validate.object('enabledFeatures', exampleConfig.enabledFeatures);
|
|
20
|
+
validate.number('autoTaskDeletionDays', exampleConfig.autoTaskDeletionDays);
|
|
20
21
|
(0, SortSettings_1.validateSortSettings)(validate, config);
|
|
21
22
|
(0, FilterSettings_1.validateFilterSettings)(validate, config);
|
|
22
23
|
return { updatedDoc: config, errors };
|
|
@@ -46,6 +47,17 @@ class DashboardUserConfig extends BaseDocumentWithType_1.default {
|
|
|
46
47
|
automationPage: false,
|
|
47
48
|
homePageLinks: false
|
|
48
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* The number of days after which a task is automatically deleted. The
|
|
52
|
+
* requirement is that this number is at least 5 days, and at most 90 days.
|
|
53
|
+
*
|
|
54
|
+
* Tasks are only deleted if:
|
|
55
|
+
*
|
|
56
|
+
* - They are not recurring
|
|
57
|
+
* - They are not completed
|
|
58
|
+
* - They have not been updated in the number listed by this setting
|
|
59
|
+
*/
|
|
60
|
+
autoTaskDeletionDays = 30;
|
|
49
61
|
/**
|
|
50
62
|
* The user's tag settings for the dashboard.
|
|
51
63
|
*/
|