NZ Legislation Tool API - v1.2.0
    Preparing search index...

    Function getWork

    • Get a specific work by ID

      Parameters

      • workId: string

      Returns Promise<
          {
              date: string;
              id: string;
              shortTitle: string
              | undefined;
              status:
                  | "in-force"
                  | "not-yet-in-force"
                  | "repealed"
                  | "partially-repealed"
                  | "withdrawn";
              title: string;
              type: "act"
              | "bill"
              | "regulation"
              | "instrument";
              url: string;
              versionCount: number;
          },
      >