@worknice/js-sdk 0.54.0 → 0.55.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.
@@ -347,6 +347,7 @@ type BasicAbnForm = Assignment & PaperworkAssignment & {
347
347
  submitter?: Maybe<Person>;
348
348
  template?: Maybe<PaperworkTemplate>;
349
349
  updatedAt: Scalars['DateTime']['output'];
350
+ versionHistory: Array<PaperworkAssignment>;
350
351
  };
351
352
  type BasicAbnFormNotificationsArgs = {
352
353
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -428,6 +429,7 @@ type BasicBankAccountForm = Assignment & PaperworkAssignment & PersonBankAccount
428
429
  submitter?: Maybe<Person>;
429
430
  template?: Maybe<PaperworkTemplate>;
430
431
  updatedAt: Scalars['DateTime']['output'];
432
+ versionHistory: Array<PaperworkAssignment>;
431
433
  };
432
434
  type BasicBankAccountFormNotificationsArgs = {
433
435
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -520,6 +522,7 @@ type BasicEmergencyContactForm = Assignment & PaperworkAssignment & PersonChange
520
522
  submitter?: Maybe<Person>;
521
523
  template?: Maybe<PaperworkTemplate>;
522
524
  updatedAt: Scalars['DateTime']['output'];
525
+ versionHistory: Array<PaperworkAssignment>;
523
526
  };
524
527
  type BasicEmergencyContactFormNotificationsArgs = {
525
528
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -601,6 +604,7 @@ type BasicPersonalDetailsForm = Assignment & PaperworkAssignment & PersonChange
601
604
  submitter?: Maybe<Person>;
602
605
  template?: Maybe<PaperworkTemplate>;
603
606
  updatedAt: Scalars['DateTime']['output'];
607
+ versionHistory: Array<PaperworkAssignment>;
604
608
  };
605
609
  type BasicPersonalDetailsFormNotificationsArgs = {
606
610
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -658,6 +662,7 @@ type BasicPreEmploymentForm = Assignment & PaperworkAssignment & {
658
662
  submitter?: Maybe<Person>;
659
663
  template?: Maybe<PaperworkTemplate>;
660
664
  updatedAt: Scalars['DateTime']['output'];
665
+ versionHistory: Array<PaperworkAssignment>;
661
666
  workplaceAdjustmentsRequired?: Maybe<Scalars['Boolean']['output']>;
662
667
  workplaceAdjustmentsRequiredExplanation?: Maybe<Scalars['String']['output']>;
663
668
  workplaceAdjustmentsRequiredPresence: Scalars['Boolean']['output'];
@@ -737,6 +742,7 @@ type BasicSuperForm = Assignment & PaperworkAssignment & PersonChange & PersonSu
737
742
  template?: Maybe<PaperworkTemplate>;
738
743
  updatedAt: Scalars['DateTime']['output'];
739
744
  usi?: Maybe<Scalars['String']['output']>;
745
+ versionHistory: Array<PaperworkAssignment>;
740
746
  };
741
747
  type BasicSuperFormNotificationsArgs = {
742
748
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -807,6 +813,7 @@ type BasicTaxForm = Assignment & PaperworkAssignment & PersonChange & PersonTaxD
807
813
  taxFreeThresholdClaimed?: Maybe<Scalars['Boolean']['output']>;
808
814
  template?: Maybe<PaperworkTemplate>;
809
815
  updatedAt: Scalars['DateTime']['output'];
816
+ versionHistory: Array<PaperworkAssignment>;
810
817
  };
811
818
  type BasicTaxFormNotificationsArgs = {
812
819
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -910,6 +917,7 @@ type Certificate = Assignment & PaperworkAssignment & {
910
917
  template?: Maybe<PaperworkTemplate>;
911
918
  updatedAt: Scalars['DateTime']['output'];
912
919
  verifyInstructions?: Maybe<Scalars['Markdown']['output']>;
920
+ versionHistory: Array<PaperworkAssignment>;
913
921
  };
914
922
  type CertificateNotificationsArgs = {
915
923
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1296,6 +1304,7 @@ type Document = Assignment & PaperworkAssignment & {
1296
1304
  updatedAt: Scalars['DateTime']['output'];
1297
1305
  /** The signed URL where this document can be accessed. The signed URL will only be accessible for 1 hour following the request. Every request generates a new URL. Only available when the document has finished processing. */
1298
1306
  url?: Maybe<Scalars['String']['output']>;
1307
+ versionHistory: Array<PaperworkAssignment>;
1299
1308
  };
1300
1309
  type DocumentNotificationsArgs = {
1301
1310
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1919,6 +1928,7 @@ type KeypayEmployeeForm = Assignment & PaperworkAssignment & PersonBankAccountsC
1919
1928
  taxPresence: FieldPresence;
1920
1929
  template?: Maybe<PaperworkTemplate>;
1921
1930
  updatedAt: Scalars['DateTime']['output'];
1931
+ versionHistory: Array<PaperworkAssignment>;
1922
1932
  };
1923
1933
  type KeypayEmployeeFormNotificationsArgs = {
1924
1934
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -4099,6 +4109,8 @@ type PaperworkAssignment = {
4099
4109
  /** The template to which this assignment belongs. The template can be changed at any time and there is not guarantee that the assignment was created from the template. */
4100
4110
  template?: Maybe<PaperworkTemplate>;
4101
4111
  updatedAt: Scalars['DateTime']['output'];
4112
+ /** Previous assignments for the same person and paperwork type, ordered from newest to oldest. */
4113
+ versionHistory: Array<PaperworkAssignment>;
4102
4114
  };
4103
4115
  type PaperworkAssignmentNotificationsArgs = {
4104
4116
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -4117,7 +4129,7 @@ type PaperworkRequirementConnection = {
4117
4129
  totalCount: Scalars['Int']['output'];
4118
4130
  };
4119
4131
  /**
4120
- * The intersection of a person and paperwork type. Most usefully, this provides a `status` that
4132
+ * The intersection of a person and paperwork type. Most usefully, this provides a `latestAssignmentSummaryStatus` that
4121
4133
  * explains relationship between each person and paperwork type (e.g. "missing" if the paperwork type
4122
4134
  * needs to be assigned to the person or "expired" if the person's most recent assignment that belongs
4123
4135
  * to that paperwork type has expired).
@@ -4125,12 +4137,14 @@ type PaperworkRequirementConnection = {
4125
4137
  type PaperworkSummary = {
4126
4138
  latestAssignment?: Maybe<PaperworkAssignment>;
4127
4139
  latestAssignmentApprovalSummary: ApprovalSummary;
4140
+ latestAssignmentSummaryStatus: PaperworkSummaryStatus;
4128
4141
  latestNonDraftAssignment?: Maybe<PaperworkAssignment>;
4142
+ latestNonDraftAssignmentSummaryStatus: PaperworkSummaryStatus;
4143
+ latestProcessedAssignment?: Maybe<PaperworkAssignment>;
4144
+ latestProcessedAssignmentSummaryStatus: PaperworkSummaryStatus;
4129
4145
  paperworkType: PaperworkType;
4130
4146
  person: Person;
4131
4147
  required: Scalars['Boolean']['output'];
4132
- status: PaperworkSummaryStatus;
4133
- statusExcludingDrafts: PaperworkSummaryStatus;
4134
4148
  template?: Maybe<PaperworkTemplate>;
4135
4149
  };
4136
4150
  /**
@@ -5330,6 +5344,7 @@ type Questionnaire = Assignment & PaperworkAssignment & {
5330
5344
  submitter?: Maybe<Person>;
5331
5345
  template?: Maybe<PaperworkTemplate>;
5332
5346
  updatedAt: Scalars['DateTime']['output'];
5347
+ versionHistory: Array<PaperworkAssignment>;
5333
5348
  };
5334
5349
  type QuestionnaireNotificationsArgs = {
5335
5350
  includeRead?: InputMaybe<Scalars['Boolean']['input']>;
@@ -5707,6 +5722,7 @@ type Workflow = {
5707
5722
  id: Scalars['ID']['output'];
5708
5723
  name: Scalars['String']['output'];
5709
5724
  participants: WorkflowParticipantConnection;
5725
+ progress: WorkflowRunProgress;
5710
5726
  };
5711
5727
  type WorkflowGroup = {
5712
5728
  eventDateDays?: Maybe<Scalars['Int']['output']>;