Skip to content

Commit

Permalink
feat: reorganisation and create vaccination schema (#25)
Browse files Browse the repository at this point in the history
* refactor: cleanup unused samples

* feat: create vaccination healthcert schema

* refactor: remove unused files

* fix: update render-able samples

* fix: validFrom should be date-time

* refactor: rename to pdt-healthcert

* fix: post-install script

* fix: export generated pdt and vaccination types

* fix: rename url paths

* refactor: notarised to endorsed

* fix: resolve merge conflicts with master

* fix: remove old healthcert path
  • Loading branch information
HJunyuan authored Jul 1, 2021
1 parent 2decf3e commit 500992d
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 4,878 deletions.
1 change: 0 additions & 1 deletion scripts/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const generate = ({ path, rootTypeName }) => {
if (fs.existsSync(quicktype) && process.env.npm_config_production !== "true") {
generate({ path: "sg/gov/tech/geekout/1.0", rootTypeName: "Geekout" });
generate({ path: "sg/gov/tech/notarise/1.0", rootTypeName: "Notarise" });
generate({ path: "sg/gov/moh/healthcert/1.0", rootTypeName: "HealthCert" });
generate({ path: "sg/gov/moh/pdt-healthcert/1.0", rootTypeName: "PDTHealthCert" });
generate({ path: "sg/gov/moh/vaccination-healthcert/1.0", rootTypeName: "VaccinationHealthCert" });
} else {
Expand Down
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as geekout from "./__generated__/sg/gov/tech/geekout/1.0/schema";
import * as notarise from "./__generated__/sg/gov/tech/notarise/1.0/schema";
import * as healthcert from "./__generated__/sg/gov/moh/healthcert/1.0/schema";
import * as pdtHealthcert from "./__generated__/sg/gov/moh/pdt-healthcert/1.0/schema";
import * as vaccinationHealthcert from "./__generated__/sg/gov/moh/healthcert/1.0/schema";
import * as vaccinationHealthcert from "./__generated__/sg/gov/moh/vaccination-healthcert/1.0/schema";

export { geekout, notarise, healthcert, pdtHealthcert, vaccinationHealthcert };
export { geekout, notarise, pdtHealthcert, vaccinationHealthcert };
75 changes: 0 additions & 75 deletions src/sg/gov/moh/fhir/4.0.1/covidcert.json

This file was deleted.

254 changes: 0 additions & 254 deletions src/sg/gov/moh/fhir/4.0.1/fhir-open-attestation-document.json

This file was deleted.

40 changes: 0 additions & 40 deletions src/sg/gov/moh/fhir/4.0.1/fhir-open-attestation-schema.json

This file was deleted.

Loading

0 comments on commit 500992d

Please sign in to comment.