@defra-fish/fulfilment-job

中文文档
1.77.1发布于 2026/11/12SEE LICENSE IN LICENSEES Module构建来源已验证近 30 天下载 3221

Rod Licensing Sales Fulfilment Job

原始使用文档

Rod Licensing - Fulfilment Processor

The fulfilment-job package handles the delivery of fulfilment requests to the fulfilment provider via FTP.

Fulfilment is where a licence card and an accompanying letter are posted to an angler who has purchased a licence.

This job will query the configured Microsoft Dynamics instance for fulfilment requests which have not yet been associated with a fulfilment request file. Each outstanding fulfilment request is staged into AWS S3.

The initial export phase writes fulfilment requests into 'part files'. This is due to limitations in the number of requests that can be sent to Microsoft Dynamics in a batch transaction. Currently that limit is 1000 requests and for each batch of 1000 one request in required to create/update the fulfilment file entity, leaving 999 requests available to associate the fulfilment requests which were written to the part file with the fulfilment file entity. This means that each part file may contain up to 999 fulfilment request records. Multiple part files may be written for each fulfilment file depending on the configured FULFILMENT_FILE_SIZE.

After the export phase has completed, the delivery phase retrieves all of the part files from AWS S3 and aggregates these into the final fulfilment files to be delivered. The aggregated files and corresponding sha256 hashes are written to both AWS S3 and to the FTP server of the fulfilment provider.

Environment variables

namedescriptionrequireddefaultvalidnotes
NODE_ENVNode environmentnodevelopment, fsh-{env}
FULFILMENT_FILE_SIZEThe maximum number of records written to an aggregated fulfilment fileyes
FULFILMENT_S3_BUCKETThe name of the AWS S3 bucket in which to stage and aggregate fulfilment datayes
FULFILMENT_SEND_UNENCRYPTED_FILEFlag for whether to send the unencrypted fulfilment filenofalsetrue, false, 0, 1
FULFILMENT_PGP_PUBLIC_KEY_SECRET_IDThe secret id for the file encryption public keyyes
DEBUGUse to enable output of debug information to the consoleyesfulfilment:*, fulfilment:staging, fulfilment:transport, fulfilment:ftp
AIRBRAKE_HOSTURL of airbrake hostno
AIRBRAKE_PROJECT_KEYProject key for airbrake loggingno

See also:

Prerequisites

See main project documentation.

版本与发布记录

@defra-fish/fulfilment-job 共发布 1,026 个版本,首次发布于 2020/07/08;过去 12 个月发布了 136 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.77.1latest2026/11/12今天
1.78.0-rc.1rc2026/11/11今天
1.78.0-rc.02026/11/111 天前
1.77.02026/11/093 天前
1.77.0-rc.182026/11/066 天前
1.77.0-rc.172026/11/0210 天前

其他发布通道:multibuy-rc → 1.28.0-multibuy-rc.0,rc → 1.78.0-rc.1。

关于 @defra-fish/fulfilment-job 的常见问题

@defra-fish/fulfilment-job 是什么?

Rod Licensing Sales Fulfilment Job

如何安装 @defra-fish/fulfilment-job?

在项目目录运行 npm install @defra-fish/fulfilment-job,或使用 pnpm add / yarn add / bun add。

@defra-fish/fulfilment-job 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/defra-fish__fulfilment-job 是否存在。

@defra-fish/fulfilment-job 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@defra-fish/fulfilment-job 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@defra-fish/fulfilment-job 可以商用吗?

@defra-fish/fulfilment-job 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@defra-fish/fulfilment-job 的下载量有多少?

根据 npm 官方下载统计,@defra-fish/fulfilment-job 在 2026/10/12 – 2026/11/10 这 30 天内被下载 3,221 次,日均约 107 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@defra-fish/fulfilment-job 还在维护吗?

最新版本 1.77.1 发布于 2026/11/12(今天);至今共发布 1026 个版本,其中过去 12 个月发布了 136 个;首次发布于 2020/07/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。