@worknice/js-sdk 0.11.11 → 0.11.13
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/api/_generated.d.ts
CHANGED
|
@@ -3719,10 +3719,6 @@ type PaperworkAssignmentNotificationsArgs = {
|
|
|
3719
3719
|
* explains relationship between each person and template (e.g. "missing" if the templates needs
|
|
3720
3720
|
* to be assigned to the person or "expired" if the person's most recent assignment that belongs to
|
|
3721
3721
|
* that template has expired).
|
|
3722
|
-
*
|
|
3723
|
-
* Note: A paperwork summary will never be returned for a "not required" case — when the template
|
|
3724
|
-
* is not marked as required for the person and the person does not have any assignments that belong
|
|
3725
|
-
* to the template.
|
|
3726
3722
|
*/
|
|
3727
3723
|
type PaperworkSummary = {
|
|
3728
3724
|
/** @deprecated Use the 'latestAssignment' field instead. */
|
|
@@ -3765,7 +3761,7 @@ type PaperworkSummary = {
|
|
|
3765
3761
|
* 1. If _latest assignment_ has 1 or more approvals (with any status):
|
|
3766
3762
|
*
|
|
3767
3763
|
* 1. If all the approvals on _latest assignment_ have an "approved"
|
|
3768
|
-
*
|
|
3764
|
+
* status:
|
|
3769
3765
|
*
|
|
3770
3766
|
* 1. Return `APPROVED`.
|
|
3771
3767
|
* 2. Return `PENDING_APPROVAL`.
|
|
@@ -3779,7 +3775,7 @@ type PaperworkSummary = {
|
|
|
3779
3775
|
* 1. Return `OVERDUE`.
|
|
3780
3776
|
*
|
|
3781
3777
|
* 2. If the current date is after the due date of _latest assignment_
|
|
3782
|
-
*
|
|
3778
|
+
* minus 14 days:
|
|
3783
3779
|
*
|
|
3784
3780
|
* 1. Return `DUE_SOON`.
|
|
3785
3781
|
* 3. Return `ASSIGNED`.
|
|
@@ -3788,26 +3784,22 @@ type PaperworkSummary = {
|
|
|
3788
3784
|
*
|
|
3789
3785
|
* 1. Return `SUBMITTED`.
|
|
3790
3786
|
*
|
|
3791
|
-
* 4. If the
|
|
3792
|
-
*
|
|
3793
|
-
* 1. If the expiry status of _latest assignment_ is `EXPIRED` or
|
|
3794
|
-
* `RECENTLY_EXPIRED`:
|
|
3795
|
-
*
|
|
3796
|
-
* 1. Return `EXPIRED`.
|
|
3787
|
+
* 4. If the expiry status of _latest assignment_ is `EXPIRED` or
|
|
3788
|
+
* `RECENTLY_EXPIRED`:
|
|
3797
3789
|
*
|
|
3798
|
-
*
|
|
3790
|
+
* 1. Return `EXPIRED`.
|
|
3799
3791
|
*
|
|
3800
|
-
*
|
|
3792
|
+
* 5. If the expiry status of _latest assignment_ is `EXPIRING_SOON`:
|
|
3801
3793
|
*
|
|
3802
|
-
*
|
|
3794
|
+
* 1. Return `EXPIRING_SOON`.
|
|
3803
3795
|
*
|
|
3804
|
-
*
|
|
3796
|
+
* 6. Return `PROCESSED`.
|
|
3805
3797
|
*
|
|
3806
3798
|
* 5. If the _template_ is marked as required for _person_:
|
|
3807
3799
|
*
|
|
3808
3800
|
* 1. Return `MISSING`.
|
|
3809
3801
|
*
|
|
3810
|
-
* 6. Return nothing. (
|
|
3802
|
+
* 6. Return nothing. (The template is not required for the person and there is no assignment — a paperwork summary will not exist and therefore a status is not needed.)
|
|
3811
3803
|
*/
|
|
3812
3804
|
declare enum PaperworkSummaryStatus {
|
|
3813
3805
|
Approved = "APPROVED",
|