Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit ea232788 authored by Symeon LAMPADARIOS's avatar Symeon LAMPADARIOS Committed by Yannick HUARD
Browse files

feat: update POA schemas - EBSIINT-10721

parent 77d22e4b
Branches
No related tags found
2 merge requests!85Publish changes,!78feat: update POA schemas - EBSIINT-10721
Showing
with 43 additions and 24 deletions
---
"@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema": major
---
Rename package from `@cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema` to `@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema`.
Update schema title and description.
---
"@cef-ebsi/vcdm1.1-idunion-poa-schema": patch
---
Update schema description.
......@@ -89,6 +89,12 @@ pnpm test test/examples.test.js
pnpm test test/schemas.test.js
```
## Creating a pull request
Before opening a pull request, make sure that the tests are up-to-date — run `pnpm test -- -u` to update them — and that your branch contains a [`changeset`](https://github.com/changesets/changesets).
In order to add a changeset, run `pnpm changeset add` to open an interactive shell, select the packages that have been affected by your changes, and define if those changes deserve a `major`, `minor` or `patch` version bump according to the [semver](https://semver.org/) convention. By default, the `changesets` CLI will give a random name to the newly created changeset file, however we recommend renaming this file with the ticket number related to your pull request — e.g. `.changeset/EBSIINT-1234.md`.
## Publishing the packages
From the `next` branch, create a new branch called `chore/release`. Then, run:
......
......@@ -168,13 +168,13 @@
"context": "General"
},
{
"name": "@cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema",
"name": "@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema",
"version": "1.0.0",
"title": "Power of Attorney",
"description": "A credential used to issue a power of attorney (POA).",
"title": "Customs Clearance Representative",
"description": "Specialized Power of Attorney (PoA) schema for customs clearance in goods importation, tailored for corporate PoA use.",
"idBase16": "0x5337b2726b3d0b5e32809302cc27f604899bc1c98a1706d07bd3dcbfd0e564e3",
"idBase58": "z6br6faZV1as1cm65p7VK64yKEM63c5utLYJC4WRPB7wY",
"file": "schemas/vcdm1.1/e-origin/power-of-attorney/schema.json",
"file": "schemas/vcdm1.1/e-origin/customs-clearance-representative/schema.json",
"vcdm": "1.1",
"verification": "Documents",
"context": "Digital Public Services Access"
......@@ -291,7 +291,7 @@
"name": "@cef-ebsi/vcdm1.1-idunion-poa-schema",
"version": "1.0.0",
"title": "Power-of-Attorney",
"description": "",
"description": "Legal document that allows one person (the principal) to appoint another person (the agent or attorney-in-fact) to act on their behalf in various matters.",
"idBase16": "0x1bd1afd9a838d8c3f1679fca6478f8e05f6e0380ef29ca84c671df72142637a2",
"idBase58": "z2sbTT23X2zfsdMCPFMC7GiUwyHE91Lg9BpeEA5uqtT9s",
"file": "schemas/vcdm1.1/idunion/poa/schema.json",
......
......@@ -129,7 +129,7 @@ importers:
specifier: workspace:*
version: link:../attestation
schemas/vcdm1.1/e-origin/power-of-attorney:
schemas/vcdm1.1/e-origin/customs-clearance-representative:
dependencies:
'@cef-ebsi/vcdm1.1-attestation-schema':
specifier: workspace:*
......
# @cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema
# @cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema
## 1.0.0
......
![EBSI Logo](https://ec.europa.eu/digital-building-blocks/sites/images/logo/default-space-logo.svg)
# @cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema
# @cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema
> Power of Attorney
> Customs Clearance Representative
>
> A credential used to issue a power of attorney (POA).
> Specialized Power of Attorney (PoA) schema for customs clearance in goods importation, tailored for corporate PoA use.
The schema is published to the [Trusted Schemas Registry](https://hub.ebsi.eu/apis/pilot/trusted-schemas-registry) with the IDs:
......@@ -23,8 +23,8 @@ The schema is published to the [Trusted Schemas Registry](https://hub.ebsi.eu/ap
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Power of Attorney",
"description": "A credential used to issue a power of attorney (POA).",
"title": "Customs Clearance Representative",
"description": "Specialized Power of Attorney (PoA) schema for customs clearance in goods importation, tailored for corporate PoA use.",
"allOf": [
{
"$ref": "./node_modules/@cef-ebsi/vcdm1.1-attestation-schema/schema.json"
......@@ -328,13 +328,13 @@ The schema is published to the [Trusted Schemas Registry](https://hub.ebsi.eu/ap
```sh
# with npm
npm add @cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema@1.0.0
npm add @cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema@1.0.0
# with Yarn
yarn add @cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema@1.0.0
yarn add @cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema@1.0.0
# with pnpm
pnpm add @cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema@1.0.0
pnpm add @cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema@1.0.0
```
## Usage
......@@ -345,7 +345,7 @@ The package exports the schema and its metadata as JavaScript objects:
import {
schema,
metadata,
} from "@cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema";
} from "@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema";
// you can now use the schema and metadata
```
......@@ -353,7 +353,7 @@ import {
In addition, the package exports a TypeScript type corresponding to the schema:
```ts
import type { PowerOfAttorney } from "@cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema";
import type { CustomsClearanceRepresentative } from "@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema";
```
## License
......
{
"name": "@cef-ebsi/vcdm1.1-e-origin-power-of-attorney-schema",
"name": "@cef-ebsi/vcdm1.1-e-origin-customs-clearance-representative-schema",
"version": "1.0.0",
"description": "A credential used to issue a power of attorney (POA).",
"description": "Specialized Power of Attorney (PoA) schema for customs clearance in goods importation, tailored for corporate PoA use.",
"license": "EUPL-1.2",
"publishConfig": {
"access": "public"
......@@ -9,7 +9,7 @@
"repository": {
"type": "git",
"url": "https://code.europa.eu/ebsi/json-schema.git",
"directory": "schemas/vcdm1.1/e-origin/power-of-attorney"
"directory": "schemas/vcdm1.1/e-origin/customs-clearance-representative"
},
"type": "module",
"exports": "./dist/index.js",
......
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Power of Attorney",
"description": "A credential used to issue a power of attorney (POA).",
"title": "Customs Clearance Representative",
"description": "Specialized Power of Attorney (PoA) schema for customs clearance in goods importation, tailored for corporate PoA use.",
"allOf": [
{
"$ref": "./node_modules/@cef-ebsi/vcdm1.1-attestation-schema/schema.json"
......
......@@ -3,6 +3,8 @@
# @cef-ebsi/vcdm1.1-idunion-poa-schema
> Power-of-Attorney
>
> Legal document that allows one person (the principal) to appoint another person (the agent or attorney-in-fact) to act on their behalf in various matters.
The schema is published to the [Trusted Schemas Registry](https://hub.ebsi.eu/apis/pilot/trusted-schemas-registry) with the IDs:
......@@ -22,7 +24,7 @@ The schema is published to the [Trusted Schemas Registry](https://hub.ebsi.eu/ap
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Power-of-Attorney",
"description": "",
"description": "Legal document that allows one person (the principal) to appoint another person (the agent or attorney-in-fact) to act on their behalf in various matters.",
"type": "object",
"allOf": [
{
......
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Power-of-Attorney",
"description": "",
"description": "Legal document that allows one person (the principal) to appoint another person (the agent or attorney-in-fact) to act on their behalf in various matters.",
"type": "object",
"allOf": [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment