Skip to content

Variable: SubmissionDetail ​

ts
const SubmissionDetail: ZodObject<{
  flow: ZodObject<{
     createdAt: ZodCoercedDate<unknown>;
     createdBy: ZodOptional<ZodNullable<ZodString>>;
     definition: ZodObject<{
        entryStepId: ZodString;
        linkTtlSeconds: ZodOptional<ZodNumber>;
        outcome: ZodOptional<ZodObject<{
           approved: ZodOptional<ZodObject<..., ...>>;
           rejected: ZodOptional<ZodObject<..., ...>>;
           review: ZodOptional<ZodObject<..., ...>>;
           visibility: ZodOptional<ZodEnum<...>>;
        }, $strip>>;
        presentation: ZodOptional<ZodObject<{
           intro: ZodOptional<ZodObject<..., ...>>;
           outro: ZodOptional<ZodObject<..., ...>>;
        }, $strip>>;
        steps: ZodArray<ZodObject<{
           branches: ZodOptional<ZodArray<...>>;
           description: ZodOptional<ZodString>;
           fields: ZodArray<ZodObject<..., ...>>;
           id: ZodString;
           next: ZodOptional<ZodString>;
           title: ZodString;
        }, $strip>>;
        translations: ZodOptional<ZodRecord<ZodString, ZodObject<{
           description: ZodOptional<...>;
           name: ZodOptional<...>;
           outcome: ZodOptional<...>;
           presentation: ZodOptional<...>;
           steps: ZodOptional<...>;
        }, $strip>>>;
     }, $strip>;
     description: ZodOptional<ZodNullable<ZodString>>;
     id: ZodGUID;
     key: ZodString;
     name: ZodString;
     note: ZodOptional<ZodNullable<ZodString>>;
     status: ZodEnum<{
        archived: "archived";
        draft: "draft";
        pending_approval: "pending_approval";
        published: "published";
     }>;
     tenantId: ZodGUID;
     updatedAt: ZodCoercedDate<unknown>;
     updatedBy: ZodOptional<ZodNullable<ZodString>>;
     version: ZodNumber;
  }, $strip>;
  submission: ZodObject<{
     caseId: ZodOptional<ZodNullable<ZodGUID>>;
     createdAt: ZodCoercedDate<unknown>;
     currentStepId: ZodOptional<ZodNullable<ZodString>>;
     data: ZodRecord<ZodString, ZodUnknown>;
     expiresAt: ZodOptional<ZodNullable<ZodCoercedDate<unknown>>>;
     flowDefinitionId: ZodGUID;
     flowKey: ZodString;
     flowVersion: ZodNumber;
     id: ZodGUID;
     requestMessage: ZodOptional<ZodNullable<ZodString>>;
     status: ZodEnum<{
        expired: "expired";
        in_progress: "in_progress";
        submitted: "submitted";
        withdrawn: "withdrawn";
     }>;
     subjectId: ZodGUID;
     submittedAt: ZodOptional<ZodNullable<ZodCoercedDate<unknown>>>;
     tenantId: ZodGUID;
     updatedAt: ZodCoercedDate<unknown>;
     workflowRunId: ZodOptional<ZodNullable<ZodGUID>>;
  }, $strip>;
}, $strip>;

Responses of the /collection-submissions routes the client parses.

Released under the Apache-2.0 License.