@worknice/js-sdk 0.11.6 → 0.11.7-rc.2

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.
@@ -3699,60 +3699,23 @@ type PaperworkSummary = {
3699
3699
  latestAssignmentApprovalSummary: ApprovalSummary;
3700
3700
  person: Person;
3701
3701
  required: Scalars['Boolean']['output'];
3702
- /**
3703
- * A status of this paperwork type for this person.
3704
- *
3705
- * 1. if there is a "latest assignment" for this paperwork summary
3706
- * 1. if the latest assignment is draft
3707
- * 1. if the latest assignment has 1 or more approvals (with any status)
3708
- * 1. if all the approvals on the latest assignment have an "approved" status
3709
- * 1. `APPROVED`
3710
- * 2. else
3711
- * 1. `PENDING_APPROVAL`
3712
- * 2. else
3713
- * 1. `DRAFT`
3714
- * 2. if the latest assignment is assigned
3715
- * 1. if the latest assignment is overdue
3716
- * 1. `OVERDUE`
3717
- * 2. if the latest assignment is due soon
3718
- * 1. `DUE_SOON`
3719
- * 3. else
3720
- * 1. `ASSIGNED`
3721
- * 3. if the latest assignment is submitted
3722
- * 1. `SUBMITTED`
3723
- * 4. else if the template is required
3724
- * 1. if the latest assignment's expiry status is expired or expired recently
3725
- * 1. `EXPIRED`
3726
- * 2. if the latest assignment is expiring soon
3727
- * 1. `EXPIRING_SOON`
3728
- * 3. else
3729
- * 1. `PROCESSED`
3730
- * 5. else
3731
- * 1. `PROCESSED`
3732
- * 2. else
3733
- * 1. if the template is required
3734
- * 1. `MISSING`
3735
- * 2. else
3736
- * 1. `NOT_REQUIRED`
3737
- */
3738
3702
  status: PaperworkSummaryStatus;
3739
3703
  template: Template;
3740
3704
  };
3741
3705
  /**
3742
3706
  * Generally speaking, this expected progression of a paperwork summary:
3743
3707
  *
3744
- * 1. `NOT_REQUIRED`
3745
- * 2. `MISSING`
3746
- * 3. `DRAFT`
3747
- * 4. `PENDING_APPROVAL`
3748
- * 5. `APPROVED`
3749
- * 6. `ASSIGNED`
3750
- * 7. `DUE_SOON`
3751
- * 8. `OVERDUE`
3752
- * 9. `SUBMITTED`
3753
- * 10. `PROCESSED`
3754
- * 11. `EXPIRING_SOON`
3755
- * 12. `EXPIRED`
3708
+ * 1. `MISSING`
3709
+ * 2. `DRAFT`
3710
+ * 3. `PENDING_APPROVAL`
3711
+ * 4. `APPROVED`
3712
+ * 5. `ASSIGNED`
3713
+ * 6. `DUE_SOON`
3714
+ * 7. `OVERDUE`
3715
+ * 8. `SUBMITTED`
3716
+ * 9. `PROCESSED`
3717
+ * 10. `EXPIRING_SOON`
3718
+ * 11. `EXPIRED`
3756
3719
  *
3757
3720
  * The status of a paperwork summary is determined using the following algorithm:
3758
3721
  *
@@ -3787,7 +3750,6 @@ type PaperworkSummary = {
3787
3750
  * 5. Return `PROCESSED`.
3788
3751
  * 5. If the _template_ is marked as required for _person_:
3789
3752
  * 1. Return `MISSING`.
3790
- * 6. Return `NOT_REQUIRED`.
3791
3753
  */
3792
3754
  declare enum PaperworkSummaryStatus {
3793
3755
  Approved = "APPROVED",
@@ -3797,7 +3759,6 @@ declare enum PaperworkSummaryStatus {
3797
3759
  Expired = "EXPIRED",
3798
3760
  ExpiringSoon = "EXPIRING_SOON",
3799
3761
  Missing = "MISSING",
3800
- NotRequired = "NOT_REQUIRED",
3801
3762
  Overdue = "OVERDUE",
3802
3763
  PendingApproval = "PENDING_APPROVAL",
3803
3764
  Processed = "PROCESSED",
@@ -222,7 +222,6 @@ var PaperworkSummaryStatus = /* @__PURE__ */ ((PaperworkSummaryStatus2) => {
222
222
  PaperworkSummaryStatus2["Expired"] = "EXPIRED";
223
223
  PaperworkSummaryStatus2["ExpiringSoon"] = "EXPIRING_SOON";
224
224
  PaperworkSummaryStatus2["Missing"] = "MISSING";
225
- PaperworkSummaryStatus2["NotRequired"] = "NOT_REQUIRED";
226
225
  PaperworkSummaryStatus2["Overdue"] = "OVERDUE";
227
226
  PaperworkSummaryStatus2["PendingApproval"] = "PENDING_APPROVAL";
228
227
  PaperworkSummaryStatus2["Processed"] = "PROCESSED";