Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 51 additions & 25 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"required": [
"year",
"month"
]
],
"additionalProperties": false
},
"ApiError": {
"type": "object",
Expand All @@ -46,7 +47,8 @@
"required": [
"error",
"message"
]
],
"additionalProperties": false
},
"NomenclatureItem": {
"type": "object",
Expand All @@ -71,7 +73,8 @@
"description",
"indent",
"hier_pos"
]
],
"additionalProperties": false
},
"SearchHit": {
"type": "object",
Expand All @@ -90,7 +93,8 @@
"required": [
"goods_code",
"description"
]
],
"additionalProperties": false
},
"ImportDutyItem": {
"type": "object",
Expand Down Expand Up @@ -138,7 +142,8 @@
"measure_type",
"meas_type_code",
"additional_code"
]
],
"additionalProperties": false
},
"CodeDetail": {
"type": "object",
Expand Down Expand Up @@ -188,7 +193,8 @@
"year",
"month",
"duties"
]
],
"additionalProperties": false
}
}
},
Expand All @@ -197,7 +203,8 @@
"description",
"hierarchy",
"duties"
]
],
"additionalProperties": false
},
"Signals": {
"type": "object",
Expand Down Expand Up @@ -243,7 +250,8 @@
"note",
"prefix",
"narrower"
]
],
"additionalProperties": false
},
"description": "Orientation only, check the act: EUDR, CBAM, dual-use (non-binding table) and Russia sanctions import/export bans."
},
Expand Down Expand Up @@ -303,7 +311,8 @@
"balance",
"last_import",
"state"
]
],
"additionalProperties": false
},
"description": "Tariff quotas that apply, with the balance at `quotas_as_of`."
},
Expand Down Expand Up @@ -342,7 +351,8 @@
"required": [
"country",
"imports_eur"
]
],
"additionalProperties": false
}
},
"cn8_codes": {
Expand All @@ -358,7 +368,8 @@
"exports_eur",
"origins",
"cn8_codes"
]
],
"additionalProperties": false
},
{
"type": "null"
Expand Down Expand Up @@ -402,7 +413,8 @@
"change",
"to",
"heading_deleted"
]
],
"additionalProperties": false
},
{
"type": "null"
Expand All @@ -422,6 +434,7 @@
"hs2028",
"rules_of_origin_url"
],
"additionalProperties": false,
"description": "Current data from the latest snapshot, set for the latest year only. Credit: European Commission, Eurostat."
},
"ClassifyResponse": {
Expand Down Expand Up @@ -481,13 +494,15 @@
"required": [
"label",
"goods_code"
]
],
"additionalProperties": false
}
}
},
"required": [
"options"
]
],
"additionalProperties": false
},
{
"type": "null"
Expand All @@ -508,7 +523,8 @@
"results",
"question",
"disclaimer"
]
],
"additionalProperties": false
},
"ClassifyResult": {
"type": "object",
Expand Down Expand Up @@ -561,7 +577,8 @@
"confidence",
"reasoning",
"duties"
]
],
"additionalProperties": false
},
"ClassifyRequest": {
"type": "object",
Expand Down Expand Up @@ -627,7 +644,8 @@
"mode",
"items",
"disclaimer"
]
],
"additionalProperties": false
},
"ClassifyBatchItem": {
"type": "object",
Expand Down Expand Up @@ -675,13 +693,15 @@
"required": [
"label",
"goods_code"
]
],
"additionalProperties": false
}
}
},
"required": [
"options"
]
],
"additionalProperties": false
},
{
"type": "null"
Expand Down Expand Up @@ -711,7 +731,8 @@
"question",
"id",
"error"
]
],
"additionalProperties": false
},
"ClassifyBatchRequest": {
"type": "object",
Expand Down Expand Up @@ -815,7 +836,8 @@
"langs",
"latest",
"snapshots"
]
],
"additionalProperties": false
}
}
}
Expand Down Expand Up @@ -867,7 +889,8 @@
},
"required": [
"items"
]
],
"additionalProperties": false
}
}
}
Expand Down Expand Up @@ -966,7 +989,8 @@
},
"required": [
"items"
]
],
"additionalProperties": false
}
}
}
Expand Down Expand Up @@ -1076,7 +1100,8 @@
},
"required": [
"items"
]
],
"additionalProperties": false
}
}
}
Expand Down Expand Up @@ -1185,7 +1210,8 @@
},
"required": [
"items"
]
],
"additionalProperties": false
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions zapier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ The auth test calls `GET /api/v1/snapshots`. It spends no AI units (one lookup)
```bash
npm install
npm test # nock-based, no network
npx zapier-platform validate # local schema checks, no login
npm run validate # local schema checks, no login
```

## Publish

Account needed: a Zapier developer account (free).

```bash
npx zapier-platform login
npx zapier-platform register "hscode.info"
npx zapier-platform push
npx zapier-platform invite you@example.com # private testing
npx zapier-platform promote 0.1.0 # needs Zapier review for public listing
npx -p zapier-platform-cli zapier-platform login
npx -p zapier-platform-cli zapier-platform register "hscode.info"
npx -p zapier-platform-cli zapier-platform push
npx -p zapier-platform-cli zapier-platform invite you@example.com # private testing
npx -p zapier-platform-cli zapier-platform promote 0.1.0 # needs Zapier review for public listing
```

Public listing needs an icon (256x256 PNG), a description and a review by Zapier.
Expand Down
Loading
Loading