iVendNextDevelopers My apps

7. Manifests — your own data, no code

A manifest is a file of data, not code. It adds your own record types, fields, screens, approvals or print formats to a customer's iVendNext, and it may do anything the customer's administrator can do in Desk, on the customer's own record types too. This chapter is for a developer whose app needs its own data inside the retailer's iVendNext.

Next: Part 1, StepsNext: 9. The extension points, and how to ask for a new one

In seven parts

  1. 1Steps

  2. 2The extension points' kinds

  3. 3Reports, reminders, settings records and multi-select fields

  4. 4Register books, limited fields and your Desk page

  5. 5Print formats that read other records

  6. 6Worked example: an approval

  7. 7What is refused, and technical notes

What a manifest installs, as staff see it in Desk: the workspace, the bins and what is in each

What a manifest installs, as staff see it in Desk: a workspace, the bins on their aisles, and what is in each bin (sample S2). The workspace is never in the Desk's menu as this picture shows it: the retailer's administrator opens it from the App library, and your app's users find it with the search bar (Your Desk page, later in this chapter).

Package or module? A package is your whole app: its records, fields, print formats, buttons, services and label layouts, sent as one manifest. The retailer's administrator presses Install in the App library, reads what it will change, ticks I agree and presses Install; later the retailer can update it or remove it, and Connected apps lists every one. A module is one small program that does one job at an extension point, such as adjusting a price or checking a sale before payment. Two extension points take a module today: the check before payment and pricing. Your package can carry it (extension_modules, later in this chapter), or the retailer's administrator adds your file in Desk, with a certificate our review team signs, and can withdraw it. In short: a package is the app, and a module is one program that does one job.

Technical note: a package installs from the App library, or by hand from the Retail Extension Package screen in Desk; a module is a Retail Extension Module record that the retailer's administrator adds in Desk, or your package installs, at an extension point that takes one (the Wasm kit).

Reference implementation: Shipping your own data in a manifest · Approvals by workflow · the checker ../tools/manifest/ · ../samples/s11_approvals/manifest.json (one workflow on the customer's Purchase Order) · ../samples/s2_bins/manifest.json (five record types, a field on Item, a print format, a workspace, webhooks) · ../samples/s4_receipt_pack/ (a print format alone).

When to use it

Rung 4 of the ladder (chapter 3): configuration cannot hold your data and your app needs it inside the retailer's iVendNext, so staff see it in Desk, a till key reads it or a webhook reports on it. A manifest is data, and none of your code runs from it (a print format in it is a template the server runs when it prints, able to read, change and send the retailer's data, which is why the retailer's summary lists each one); your logic stays on your server (outside apps and the event feed) or in a till key (till keys). Every record type it declares gets the native Desk screens (what you can use).

This page in the kit