postgrid-node 0.4.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -0
- package/LICENSE +1 -1
- package/README.md +15 -12
- package/client.d.mts +35 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -15
- package/client.d.ts.map +1 -1
- package/client.js +61 -15
- package/client.js.map +1 -1
- package/client.mjs +62 -16
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +9 -3
- package/resources/address-verification.d.mts +1689 -15
- package/resources/address-verification.d.mts.map +1 -1
- package/resources/address-verification.d.ts +1689 -15
- package/resources/address-verification.d.ts.map +1 -1
- package/resources/address-verification.js +200 -0
- package/resources/address-verification.js.map +1 -1
- package/resources/address-verification.mjs +200 -0
- package/resources/address-verification.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intl-address-verification.d.mts +956 -35
- package/resources/intl-address-verification.d.mts.map +1 -1
- package/resources/intl-address-verification.d.ts +956 -35
- package/resources/intl-address-verification.d.ts.map +1 -1
- package/resources/intl-address-verification.js +121 -27
- package/resources/intl-address-verification.js.map +1 -1
- package/resources/intl-address-verification.mjs +121 -27
- package/resources/intl-address-verification.mjs.map +1 -1
- package/resources/print-mail/boxes.d.mts +733 -59
- package/resources/print-mail/boxes.d.mts.map +1 -1
- package/resources/print-mail/boxes.d.ts +733 -59
- package/resources/print-mail/boxes.d.ts.map +1 -1
- package/resources/print-mail/boxes.js +19 -1
- package/resources/print-mail/boxes.js.map +1 -1
- package/resources/print-mail/boxes.mjs +19 -1
- package/resources/print-mail/boxes.mjs.map +1 -1
- package/resources/print-mail/campaigns.d.mts +923 -34
- package/resources/print-mail/campaigns.d.mts.map +1 -1
- package/resources/print-mail/campaigns.d.ts +923 -34
- package/resources/print-mail/campaigns.d.ts.map +1 -1
- package/resources/print-mail/campaigns.js +10 -3
- package/resources/print-mail/campaigns.js.map +1 -1
- package/resources/print-mail/campaigns.mjs +10 -3
- package/resources/print-mail/campaigns.mjs.map +1 -1
- package/resources/print-mail/cheques.d.mts +60 -11
- package/resources/print-mail/cheques.d.mts.map +1 -1
- package/resources/print-mail/cheques.d.ts +60 -11
- package/resources/print-mail/cheques.d.ts.map +1 -1
- package/resources/print-mail/cheques.js +32 -0
- package/resources/print-mail/cheques.js.map +1 -1
- package/resources/print-mail/cheques.mjs +32 -0
- package/resources/print-mail/cheques.mjs.map +1 -1
- package/resources/print-mail/contacts.d.mts +138 -3
- package/resources/print-mail/contacts.d.mts.map +1 -1
- package/resources/print-mail/contacts.d.ts +138 -3
- package/resources/print-mail/contacts.d.ts.map +1 -1
- package/resources/print-mail/contacts.js.map +1 -1
- package/resources/print-mail/contacts.mjs.map +1 -1
- package/resources/print-mail/index.d.mts +12 -8
- package/resources/print-mail/index.d.mts.map +1 -1
- package/resources/print-mail/index.d.ts +12 -8
- package/resources/print-mail/index.d.ts.map +1 -1
- package/resources/print-mail/index.js +13 -5
- package/resources/print-mail/index.js.map +1 -1
- package/resources/print-mail/index.mjs +5 -1
- package/resources/print-mail/index.mjs.map +1 -1
- package/resources/print-mail/letters.d.mts +62 -13
- package/resources/print-mail/letters.d.mts.map +1 -1
- package/resources/print-mail/letters.d.ts +62 -13
- package/resources/print-mail/letters.d.ts.map +1 -1
- package/resources/print-mail/letters.js +32 -0
- package/resources/print-mail/letters.js.map +1 -1
- package/resources/print-mail/letters.mjs +32 -0
- package/resources/print-mail/letters.mjs.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.mts +5 -1
- package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.ts +5 -1
- package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
- package/resources/print-mail/mailing-list-imports.js +4 -0
- package/resources/print-mail/mailing-list-imports.js.map +1 -1
- package/resources/print-mail/mailing-list-imports.mjs +4 -0
- package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
- package/resources/print-mail/mailing-lists.d.mts +5 -1
- package/resources/print-mail/mailing-lists.d.mts.map +1 -1
- package/resources/print-mail/mailing-lists.d.ts +5 -1
- package/resources/print-mail/mailing-lists.d.ts.map +1 -1
- package/resources/print-mail/mailing-lists.js +4 -0
- package/resources/print-mail/mailing-lists.js.map +1 -1
- package/resources/print-mail/mailing-lists.mjs +4 -0
- package/resources/print-mail/mailing-lists.mjs.map +1 -1
- package/resources/print-mail/postcards.d.mts +90 -21
- package/resources/print-mail/postcards.d.mts.map +1 -1
- package/resources/print-mail/postcards.d.ts +90 -21
- package/resources/print-mail/postcards.d.ts.map +1 -1
- package/resources/print-mail/postcards.js +33 -0
- package/resources/print-mail/postcards.js.map +1 -1
- package/resources/print-mail/postcards.mjs +33 -0
- package/resources/print-mail/postcards.mjs.map +1 -1
- package/resources/print-mail/print-mail.d.mts +41 -162
- package/resources/print-mail/print-mail.d.mts.map +1 -1
- package/resources/print-mail/print-mail.d.ts +41 -162
- package/resources/print-mail/print-mail.d.ts.map +1 -1
- package/resources/print-mail/print-mail.js +34 -18
- package/resources/print-mail/print-mail.js.map +1 -1
- package/resources/print-mail/print-mail.mjs +34 -18
- package/resources/print-mail/print-mail.mjs.map +1 -1
- package/resources/print-mail/reports/exports.d.mts +7 -0
- package/resources/print-mail/reports/exports.d.mts.map +1 -1
- package/resources/print-mail/reports/exports.d.ts +7 -0
- package/resources/print-mail/reports/exports.d.ts.map +1 -1
- package/resources/print-mail/reports/exports.js +7 -0
- package/resources/print-mail/reports/exports.js.map +1 -1
- package/resources/print-mail/reports/exports.mjs +7 -0
- package/resources/print-mail/reports/exports.mjs.map +1 -1
- package/resources/print-mail/reports/reports.d.mts +7 -0
- package/resources/print-mail/reports/reports.d.mts.map +1 -1
- package/resources/print-mail/reports/reports.d.ts +7 -0
- package/resources/print-mail/reports/reports.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.js +7 -0
- package/resources/print-mail/reports/reports.js.map +1 -1
- package/resources/print-mail/reports/reports.mjs +7 -0
- package/resources/print-mail/reports/reports.mjs.map +1 -1
- package/resources/print-mail/reports/samples.d.mts +7 -0
- package/resources/print-mail/reports/samples.d.mts.map +1 -1
- package/resources/print-mail/reports/samples.d.ts +7 -0
- package/resources/print-mail/reports/samples.d.ts.map +1 -1
- package/resources/print-mail/reports/samples.js +7 -0
- package/resources/print-mail/reports/samples.js.map +1 -1
- package/resources/print-mail/reports/samples.mjs +7 -0
- package/resources/print-mail/reports/samples.mjs.map +1 -1
- package/resources/print-mail/self-mailers.d.mts +52 -20
- package/resources/print-mail/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/self-mailers.d.ts +52 -20
- package/resources/print-mail/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/self-mailers.js +17 -0
- package/resources/print-mail/self-mailers.js.map +1 -1
- package/resources/print-mail/self-mailers.mjs +17 -0
- package/resources/print-mail/self-mailers.mjs.map +1 -1
- package/resources/print-mail/snap-packs.d.mts +1060 -0
- package/resources/print-mail/snap-packs.d.mts.map +1 -0
- package/resources/print-mail/snap-packs.d.ts +1060 -0
- package/resources/print-mail/snap-packs.d.ts.map +1 -0
- package/resources/print-mail/snap-packs.js +117 -0
- package/resources/print-mail/snap-packs.js.map +1 -0
- package/resources/print-mail/snap-packs.mjs +113 -0
- package/resources/print-mail/snap-packs.mjs.map +1 -0
- package/resources/print-mail/sub-organizations.d.mts +29 -17
- package/resources/print-mail/sub-organizations.d.mts.map +1 -1
- package/resources/print-mail/sub-organizations.d.ts +29 -17
- package/resources/print-mail/sub-organizations.d.ts.map +1 -1
- package/resources/print-mail/sub-organizations.js +26 -14
- package/resources/print-mail/sub-organizations.js.map +1 -1
- package/resources/print-mail/sub-organizations.mjs +26 -14
- package/resources/print-mail/sub-organizations.mjs.map +1 -1
- package/resources/print-mail/targeted-list-builds/filters.d.mts +92 -0
- package/resources/print-mail/targeted-list-builds/filters.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.d.ts +92 -0
- package/resources/print-mail/targeted-list-builds/filters.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.js +60 -0
- package/resources/print-mail/targeted-list-builds/filters.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.mjs +56 -0
- package/resources/print-mail/targeted-list-builds/filters.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.d.mts +3 -0
- package/resources/print-mail/targeted-list-builds/index.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.d.ts +3 -0
- package/resources/print-mail/targeted-list-builds/index.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.js +9 -0
- package/resources/print-mail/targeted-list-builds/index.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.mjs +4 -0
- package/resources/print-mail/targeted-list-builds/index.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts +1633 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts +1633 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.js +154 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs +149 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds.d.mts +2 -0
- package/resources/print-mail/targeted-list-builds.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds.d.ts +2 -0
- package/resources/print-mail/targeted-list-builds.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds.js +6 -0
- package/resources/print-mail/targeted-list-builds.js.map +1 -0
- package/resources/print-mail/targeted-list-builds.mjs +3 -0
- package/resources/print-mail/targeted-list-builds.mjs.map +1 -0
- package/resources/print-mail/template-editor-sessions.d.mts +355 -0
- package/resources/print-mail/template-editor-sessions.d.mts.map +1 -0
- package/resources/print-mail/template-editor-sessions.d.ts +355 -0
- package/resources/print-mail/template-editor-sessions.d.ts.map +1 -0
- package/resources/print-mail/template-editor-sessions.js +78 -0
- package/resources/print-mail/template-editor-sessions.js.map +1 -0
- package/resources/print-mail/template-editor-sessions.mjs +74 -0
- package/resources/print-mail/template-editor-sessions.mjs.map +1 -0
- package/resources/print-mail/trackers.d.mts +409 -0
- package/resources/print-mail/trackers.d.mts.map +1 -0
- package/resources/print-mail/trackers.d.ts +409 -0
- package/resources/print-mail/trackers.d.ts.map +1 -0
- package/resources/print-mail/trackers.js +116 -0
- package/resources/print-mail/trackers.js.map +1 -0
- package/resources/print-mail/trackers.mjs +112 -0
- package/resources/print-mail/trackers.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.d.mts +3 -0
- package/resources/print-mail/virtual-mailboxes/index.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.d.ts +3 -0
- package/resources/print-mail/virtual-mailboxes/index.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.js +9 -0
- package/resources/print-mail/virtual-mailboxes/index.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.mjs +4 -0
- package/resources/print-mail/virtual-mailboxes/index.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.d.mts +235 -0
- package/resources/print-mail/virtual-mailboxes/items.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.d.ts +235 -0
- package/resources/print-mail/virtual-mailboxes/items.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.js +69 -0
- package/resources/print-mail/virtual-mailboxes/items.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.mjs +65 -0
- package/resources/print-mail/virtual-mailboxes/items.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts +334 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts +334 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js +92 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs +87 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes.d.mts +2 -0
- package/resources/print-mail/virtual-mailboxes.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes.d.ts +2 -0
- package/resources/print-mail/virtual-mailboxes.d.ts.map +1 -0
- package/resources/print-mail/{order-profiles.js → virtual-mailboxes.js} +2 -2
- package/resources/print-mail/virtual-mailboxes.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes.mjs +3 -0
- package/resources/print-mail/virtual-mailboxes.mjs.map +1 -0
- package/src/client.ts +123 -33
- package/src/internal/parse.ts +6 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -1
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/address-verification.ts +2190 -24
- package/src/resources/index.ts +24 -5
- package/src/resources/intl-address-verification.ts +1219 -43
- package/src/resources/print-mail/boxes.ts +1011 -99
- package/src/resources/print-mail/campaigns.ts +1449 -59
- package/src/resources/print-mail/cheques.ts +122 -10
- package/src/resources/print-mail/contacts.ts +167 -4
- package/src/resources/print-mail/index.ts +74 -11
- package/src/resources/print-mail/letters.ts +150 -12
- package/src/resources/print-mail/mailing-list-imports.ts +5 -1
- package/src/resources/print-mail/mailing-lists.ts +5 -1
- package/src/resources/print-mail/postcards.ts +208 -20
- package/src/resources/print-mail/print-mail.ts +239 -261
- package/src/resources/print-mail/reports/exports.ts +7 -0
- package/src/resources/print-mail/reports/reports.ts +7 -0
- package/src/resources/print-mail/reports/samples.ts +7 -0
- package/src/resources/print-mail/self-mailers.ts +162 -20
- package/src/resources/print-mail/snap-packs.ts +1484 -0
- package/src/resources/print-mail/sub-organizations.ts +35 -23
- package/src/resources/print-mail/targeted-list-builds/filters.ts +113 -0
- package/src/resources/print-mail/targeted-list-builds/index.ts +16 -0
- package/src/resources/print-mail/targeted-list-builds/targeted-list-builds.ts +2158 -0
- package/{resources/print-mail/order-profiles.mjs → src/resources/print-mail/targeted-list-builds.ts} +2 -2
- package/src/resources/print-mail/template-editor-sessions.ts +435 -0
- package/src/resources/print-mail/trackers.ts +513 -0
- package/src/resources/print-mail/virtual-mailboxes/index.ts +22 -0
- package/src/resources/print-mail/virtual-mailboxes/items.ts +296 -0
- package/src/resources/print-mail/virtual-mailboxes/virtual-mailboxes.ts +434 -0
- package/src/resources/print-mail/{order-profiles.ts → virtual-mailboxes.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/resources/print-mail/order-profiles/cheques.d.mts +0 -388
- package/resources/print-mail/order-profiles/cheques.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/cheques.d.ts +0 -388
- package/resources/print-mail/order-profiles/cheques.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/cheques.js +0 -98
- package/resources/print-mail/order-profiles/cheques.js.map +0 -1
- package/resources/print-mail/order-profiles/cheques.mjs +0 -94
- package/resources/print-mail/order-profiles/cheques.mjs.map +0 -1
- package/resources/print-mail/order-profiles/index.d.mts +0 -6
- package/resources/print-mail/order-profiles/index.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/index.d.ts +0 -6
- package/resources/print-mail/order-profiles/index.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/index.js +0 -15
- package/resources/print-mail/order-profiles/index.js.map +0 -1
- package/resources/print-mail/order-profiles/index.mjs +0 -7
- package/resources/print-mail/order-profiles/index.mjs.map +0 -1
- package/resources/print-mail/order-profiles/letters.d.mts +0 -325
- package/resources/print-mail/order-profiles/letters.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/letters.d.ts +0 -325
- package/resources/print-mail/order-profiles/letters.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/letters.js +0 -105
- package/resources/print-mail/order-profiles/letters.js.map +0 -1
- package/resources/print-mail/order-profiles/letters.mjs +0 -101
- package/resources/print-mail/order-profiles/letters.mjs.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.d.mts +0 -22
- package/resources/print-mail/order-profiles/order-profiles.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.d.ts +0 -22
- package/resources/print-mail/order-profiles/order-profiles.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.js +0 -29
- package/resources/print-mail/order-profiles/order-profiles.js.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.mjs +0 -24
- package/resources/print-mail/order-profiles/order-profiles.mjs.map +0 -1
- package/resources/print-mail/order-profiles/postcards.d.mts +0 -255
- package/resources/print-mail/order-profiles/postcards.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/postcards.d.ts +0 -255
- package/resources/print-mail/order-profiles/postcards.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/postcards.js +0 -97
- package/resources/print-mail/order-profiles/postcards.js.map +0 -1
- package/resources/print-mail/order-profiles/postcards.mjs +0 -93
- package/resources/print-mail/order-profiles/postcards.mjs.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.d.mts +0 -260
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.d.ts +0 -260
- package/resources/print-mail/order-profiles/self-mailers.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.js +0 -95
- package/resources/print-mail/order-profiles/self-mailers.js.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.mjs +0 -91
- package/resources/print-mail/order-profiles/self-mailers.mjs.map +0 -1
- package/resources/print-mail/order-profiles.d.mts +0 -2
- package/resources/print-mail/order-profiles.d.mts.map +0 -1
- package/resources/print-mail/order-profiles.d.ts +0 -2
- package/resources/print-mail/order-profiles.d.ts.map +0 -1
- package/resources/print-mail/order-profiles.js.map +0 -1
- package/resources/print-mail/order-profiles.mjs.map +0 -1
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/resources/print-mail/order-profiles/cheques.ts +0 -486
- package/src/resources/print-mail/order-profiles/index.ts +0 -47
- package/src/resources/print-mail/order-profiles/letters.ts +0 -412
- package/src/resources/print-mail/order-profiles/order-profiles.ts +0 -113
- package/src/resources/print-mail/order-profiles/postcards.ts +0 -327
- package/src/resources/print-mail/order-profiles/self-mailers.ts +0 -338
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as BoxesAPI from './boxes';
|
|
5
4
|
import * as ContactsAPI from './contacts';
|
|
6
|
-
import * as PrintMailAPI from './print-mail';
|
|
7
5
|
import { APIPromise } from '../../core/api-promise';
|
|
8
6
|
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
9
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -75,6 +73,40 @@ export class Letters extends APIResource {
|
|
|
75
73
|
return this._client.delete(path`/print-mail/v1/letters/${id}`, options);
|
|
76
74
|
}
|
|
77
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Cancel a letter by ID with a note. Note that this operation cannot be undone and
|
|
78
|
+
* that only letters with a status of `ready` can be cancelled.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const letter = await client.printMail.letters.cancel('id', {
|
|
83
|
+
* note: 'Cancelling this letter',
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
cancel(id: string, body: LetterCancelParams, options?: RequestOptions): APIPromise<Letter> {
|
|
88
|
+
return this._client.post(path`/print-mail/v1/letters/${id}/cancellation`, { body, ...options });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Progresses a letter's `status` to the next stage. This is only available in test
|
|
93
|
+
* mode and can be used to simulate how a live order would progress through the
|
|
94
|
+
* different statuses.
|
|
95
|
+
*
|
|
96
|
+
* Note: this will fail with an `invalid_progression_error` if the status is one of
|
|
97
|
+
* `completed` or `cancelled`.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* const letter = await client.printMail.letters.progress(
|
|
102
|
+
* 'id',
|
|
103
|
+
* );
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
progress(id: string, options?: RequestOptions): APIPromise<Letter> {
|
|
107
|
+
return this._client.post(path`/print-mail/v1/letters/${id}/progressions`, options);
|
|
108
|
+
}
|
|
109
|
+
|
|
78
110
|
/**
|
|
79
111
|
* Retrieve a letter preview URL.
|
|
80
112
|
*
|
|
@@ -162,7 +194,33 @@ export interface Letter {
|
|
|
162
194
|
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
163
195
|
* See `OrderMailingClass` for more details.
|
|
164
196
|
*/
|
|
165
|
-
mailingClass:
|
|
197
|
+
mailingClass:
|
|
198
|
+
| 'first_class'
|
|
199
|
+
| 'standard_class'
|
|
200
|
+
| 'express'
|
|
201
|
+
| 'certified'
|
|
202
|
+
| 'certified_return_receipt'
|
|
203
|
+
| 'registered'
|
|
204
|
+
| 'usps_first_class'
|
|
205
|
+
| 'usps_standard_class'
|
|
206
|
+
| 'usps_eddm'
|
|
207
|
+
| 'usps_express_2_day'
|
|
208
|
+
| 'usps_express_3_day'
|
|
209
|
+
| 'usps_first_class_certified'
|
|
210
|
+
| 'usps_first_class_certified_return_receipt'
|
|
211
|
+
| 'usps_first_class_registered'
|
|
212
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
213
|
+
| 'usps_express_3_day_certified'
|
|
214
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
215
|
+
| 'ca_post_lettermail'
|
|
216
|
+
| 'ca_post_personalized'
|
|
217
|
+
| 'ca_post_neighbourhood_mail'
|
|
218
|
+
| 'ups_express_overnight'
|
|
219
|
+
| 'ups_express_2_day'
|
|
220
|
+
| 'ups_express_3_day'
|
|
221
|
+
| 'royal_mail_first_class'
|
|
222
|
+
| 'royal_mail_second_class'
|
|
223
|
+
| 'au_post_second_class';
|
|
166
224
|
|
|
167
225
|
/**
|
|
168
226
|
* Always `letter`.
|
|
@@ -184,7 +242,7 @@ export interface Letter {
|
|
|
184
242
|
/**
|
|
185
243
|
* See `OrderStatus` for more details on the status of this order.
|
|
186
244
|
*/
|
|
187
|
-
status:
|
|
245
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
188
246
|
|
|
189
247
|
/**
|
|
190
248
|
* The recipient of this order. This will be provided even if you delete the
|
|
@@ -206,7 +264,7 @@ export interface Letter {
|
|
|
206
264
|
* The cancellation details of this order. Populated if the order has been
|
|
207
265
|
* cancelled.
|
|
208
266
|
*/
|
|
209
|
-
cancellation?:
|
|
267
|
+
cancellation?: Letter.Cancellation;
|
|
210
268
|
|
|
211
269
|
/**
|
|
212
270
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -230,7 +288,7 @@ export interface Letter {
|
|
|
230
288
|
* US-printed and US-destined orders. This is the most detailed way to track
|
|
231
289
|
* non-express/certified orders.
|
|
232
290
|
*/
|
|
233
|
-
imbStatus?:
|
|
291
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
234
292
|
|
|
235
293
|
/**
|
|
236
294
|
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
@@ -303,6 +361,29 @@ export interface Letter {
|
|
|
303
361
|
url?: string;
|
|
304
362
|
}
|
|
305
363
|
|
|
364
|
+
export namespace Letter {
|
|
365
|
+
/**
|
|
366
|
+
* The cancellation details of this order. Populated if the order has been
|
|
367
|
+
* cancelled.
|
|
368
|
+
*/
|
|
369
|
+
export interface Cancellation {
|
|
370
|
+
/**
|
|
371
|
+
* The reason for the cancellation.
|
|
372
|
+
*/
|
|
373
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The user ID who cancelled the order.
|
|
377
|
+
*/
|
|
378
|
+
cancelledByUser?: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* An optional note provided by the user who cancelled the order.
|
|
382
|
+
*/
|
|
383
|
+
note?: string;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
306
387
|
/**
|
|
307
388
|
* Enum representing the supported letter sizes.
|
|
308
389
|
*/
|
|
@@ -409,7 +490,7 @@ export declare namespace LetterCreateParams {
|
|
|
409
490
|
* The contact information of the sender. You can pass contact information inline
|
|
410
491
|
* here just like you can for the `to`.
|
|
411
492
|
*/
|
|
412
|
-
from:
|
|
493
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
413
494
|
|
|
414
495
|
/**
|
|
415
496
|
* The HTML content for the letter. You can supply _either_ this or `template` but
|
|
@@ -423,7 +504,7 @@ export declare namespace LetterCreateParams {
|
|
|
423
504
|
* contacts regardless of whether you provide the information inline here or call
|
|
424
505
|
* the contact creation endpoint.
|
|
425
506
|
*/
|
|
426
|
-
to:
|
|
507
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
427
508
|
|
|
428
509
|
/**
|
|
429
510
|
* Enum representing the placement of the address on the letter.
|
|
@@ -461,7 +542,33 @@ export declare namespace LetterCreateParams {
|
|
|
461
542
|
* The mailing class of this order. If not provided, automatically set to
|
|
462
543
|
* `first_class`.
|
|
463
544
|
*/
|
|
464
|
-
mailingClass?:
|
|
545
|
+
mailingClass?:
|
|
546
|
+
| 'first_class'
|
|
547
|
+
| 'standard_class'
|
|
548
|
+
| 'express'
|
|
549
|
+
| 'certified'
|
|
550
|
+
| 'certified_return_receipt'
|
|
551
|
+
| 'registered'
|
|
552
|
+
| 'usps_first_class'
|
|
553
|
+
| 'usps_standard_class'
|
|
554
|
+
| 'usps_eddm'
|
|
555
|
+
| 'usps_express_2_day'
|
|
556
|
+
| 'usps_express_3_day'
|
|
557
|
+
| 'usps_first_class_certified'
|
|
558
|
+
| 'usps_first_class_certified_return_receipt'
|
|
559
|
+
| 'usps_first_class_registered'
|
|
560
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
561
|
+
| 'usps_express_3_day_certified'
|
|
562
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
563
|
+
| 'ca_post_lettermail'
|
|
564
|
+
| 'ca_post_personalized'
|
|
565
|
+
| 'ca_post_neighbourhood_mail'
|
|
566
|
+
| 'ups_express_overnight'
|
|
567
|
+
| 'ups_express_2_day'
|
|
568
|
+
| 'ups_express_3_day'
|
|
569
|
+
| 'royal_mail_first_class'
|
|
570
|
+
| 'royal_mail_second_class'
|
|
571
|
+
| 'au_post_second_class';
|
|
465
572
|
|
|
466
573
|
/**
|
|
467
574
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -517,7 +624,7 @@ export declare namespace LetterCreateParams {
|
|
|
517
624
|
* The contact information of the sender. You can pass contact information inline
|
|
518
625
|
* here just like you can for the `to`.
|
|
519
626
|
*/
|
|
520
|
-
from:
|
|
627
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
521
628
|
|
|
522
629
|
/**
|
|
523
630
|
* A URL pointing to a PDF file for the letter or the PDF file itself.
|
|
@@ -530,7 +637,7 @@ export declare namespace LetterCreateParams {
|
|
|
530
637
|
* contacts regardless of whether you provide the information inline here or call
|
|
531
638
|
* the contact creation endpoint.
|
|
532
639
|
*/
|
|
533
|
-
to:
|
|
640
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
534
641
|
|
|
535
642
|
/**
|
|
536
643
|
* Enum representing the placement of the address on the letter.
|
|
@@ -568,7 +675,33 @@ export declare namespace LetterCreateParams {
|
|
|
568
675
|
* The mailing class of this order. If not provided, automatically set to
|
|
569
676
|
* `first_class`.
|
|
570
677
|
*/
|
|
571
|
-
mailingClass?:
|
|
678
|
+
mailingClass?:
|
|
679
|
+
| 'first_class'
|
|
680
|
+
| 'standard_class'
|
|
681
|
+
| 'express'
|
|
682
|
+
| 'certified'
|
|
683
|
+
| 'certified_return_receipt'
|
|
684
|
+
| 'registered'
|
|
685
|
+
| 'usps_first_class'
|
|
686
|
+
| 'usps_standard_class'
|
|
687
|
+
| 'usps_eddm'
|
|
688
|
+
| 'usps_express_2_day'
|
|
689
|
+
| 'usps_express_3_day'
|
|
690
|
+
| 'usps_first_class_certified'
|
|
691
|
+
| 'usps_first_class_certified_return_receipt'
|
|
692
|
+
| 'usps_first_class_registered'
|
|
693
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
694
|
+
| 'usps_express_3_day_certified'
|
|
695
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
696
|
+
| 'ca_post_lettermail'
|
|
697
|
+
| 'ca_post_personalized'
|
|
698
|
+
| 'ca_post_neighbourhood_mail'
|
|
699
|
+
| 'ups_express_overnight'
|
|
700
|
+
| 'ups_express_2_day'
|
|
701
|
+
| 'ups_express_3_day'
|
|
702
|
+
| 'royal_mail_first_class'
|
|
703
|
+
| 'royal_mail_second_class'
|
|
704
|
+
| 'au_post_second_class';
|
|
572
705
|
|
|
573
706
|
/**
|
|
574
707
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -623,6 +756,10 @@ export interface LetterListParams extends SkipLimitParams {
|
|
|
623
756
|
search?: string;
|
|
624
757
|
}
|
|
625
758
|
|
|
759
|
+
export interface LetterCancelParams {
|
|
760
|
+
note: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
626
763
|
export declare namespace Letters {
|
|
627
764
|
export {
|
|
628
765
|
type AddressPlacement as AddressPlacement,
|
|
@@ -634,5 +771,6 @@ export declare namespace Letters {
|
|
|
634
771
|
type LettersSkipLimit as LettersSkipLimit,
|
|
635
772
|
type LetterCreateParams as LetterCreateParams,
|
|
636
773
|
type LetterListParams as LetterListParams,
|
|
774
|
+
type LetterCancelParams as LetterCancelParams,
|
|
637
775
|
};
|
|
638
776
|
}
|
|
@@ -8,6 +8,10 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
8
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
9
9
|
import { path } from '../../internal/utils/path';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* The mailing list imports API enables you to import contact lists from files
|
|
13
|
+
* and validate them for use in campaigns.
|
|
14
|
+
*/
|
|
11
15
|
export class MailingListImports extends APIResource {
|
|
12
16
|
/**
|
|
13
17
|
* Create a new mailing list import.
|
|
@@ -379,7 +383,7 @@ export interface MailingListImportCreateParams {
|
|
|
379
383
|
senderMergeVariableMapping?: { [key: string]: string };
|
|
380
384
|
|
|
381
385
|
/**
|
|
382
|
-
* Header param
|
|
386
|
+
* Header param
|
|
383
387
|
*/
|
|
384
388
|
'idempotency-key'?: string;
|
|
385
389
|
}
|
|
@@ -7,6 +7,10 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The mailing lists API enables you to manage collections of contacts
|
|
12
|
+
* that can be used for bulk mail campaigns.
|
|
13
|
+
*/
|
|
10
14
|
export class MailingLists extends APIResource {
|
|
11
15
|
/**
|
|
12
16
|
* Create a new mailing list.
|
|
@@ -236,7 +240,7 @@ export interface MailingListCreateParams {
|
|
|
236
240
|
metadata?: { [key: string]: unknown };
|
|
237
241
|
|
|
238
242
|
/**
|
|
239
|
-
* Header param
|
|
243
|
+
* Header param
|
|
240
244
|
*/
|
|
241
245
|
'idempotency-key'?: string;
|
|
242
246
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as BoxesAPI from './boxes';
|
|
5
4
|
import * as ContactsAPI from './contacts';
|
|
6
|
-
import * as PrintMailAPI from './print-mail';
|
|
7
|
-
import * as OrderProfilesPostcardsAPI from './order-profiles/postcards';
|
|
8
5
|
import { APIPromise } from '../../core/api-promise';
|
|
9
6
|
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
10
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -81,6 +78,41 @@ export class Postcards extends APIResource {
|
|
|
81
78
|
return this._client.delete(path`/print-mail/v1/postcards/${id}`, options);
|
|
82
79
|
}
|
|
83
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Cancel a postcard by ID with a note. Note that this operation cannot be undone
|
|
83
|
+
* and that only postcards with a status of `ready` can be cancelled.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const postcard = await client.printMail.postcards.cancel(
|
|
88
|
+
* 'id',
|
|
89
|
+
* { note: 'Cancelling this postcard' },
|
|
90
|
+
* );
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
cancel(id: string, body: PostcardCancelParams, options?: RequestOptions): APIPromise<Postcard> {
|
|
94
|
+
return this._client.post(path`/print-mail/v1/postcards/${id}/cancellation`, { body, ...options });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Progresses a postcard's `status` to the next stage. This is only available in
|
|
99
|
+
* test mode and can be used to simulate how a live order would progress through
|
|
100
|
+
* the different statuses.
|
|
101
|
+
*
|
|
102
|
+
* Note: this will fail with an `invalid_progression_error` if the status is one of
|
|
103
|
+
* `completed` or `cancelled`.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const postcard = await client.printMail.postcards.progress(
|
|
108
|
+
* 'id',
|
|
109
|
+
* );
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
progress(id: string, options?: RequestOptions): APIPromise<Postcard> {
|
|
113
|
+
return this._client.post(path`/print-mail/v1/postcards/${id}/progressions`, options);
|
|
114
|
+
}
|
|
115
|
+
|
|
84
116
|
/**
|
|
85
117
|
* Retrieve a postcard preview URL.
|
|
86
118
|
*
|
|
@@ -122,7 +154,33 @@ export interface Postcard {
|
|
|
122
154
|
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
123
155
|
* See `OrderMailingClass` for more details.
|
|
124
156
|
*/
|
|
125
|
-
mailingClass:
|
|
157
|
+
mailingClass:
|
|
158
|
+
| 'first_class'
|
|
159
|
+
| 'standard_class'
|
|
160
|
+
| 'express'
|
|
161
|
+
| 'certified'
|
|
162
|
+
| 'certified_return_receipt'
|
|
163
|
+
| 'registered'
|
|
164
|
+
| 'usps_first_class'
|
|
165
|
+
| 'usps_standard_class'
|
|
166
|
+
| 'usps_eddm'
|
|
167
|
+
| 'usps_express_2_day'
|
|
168
|
+
| 'usps_express_3_day'
|
|
169
|
+
| 'usps_first_class_certified'
|
|
170
|
+
| 'usps_first_class_certified_return_receipt'
|
|
171
|
+
| 'usps_first_class_registered'
|
|
172
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
173
|
+
| 'usps_express_3_day_certified'
|
|
174
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
175
|
+
| 'ca_post_lettermail'
|
|
176
|
+
| 'ca_post_personalized'
|
|
177
|
+
| 'ca_post_neighbourhood_mail'
|
|
178
|
+
| 'ups_express_overnight'
|
|
179
|
+
| 'ups_express_2_day'
|
|
180
|
+
| 'ups_express_3_day'
|
|
181
|
+
| 'royal_mail_first_class'
|
|
182
|
+
| 'royal_mail_second_class'
|
|
183
|
+
| 'au_post_second_class';
|
|
126
184
|
|
|
127
185
|
/**
|
|
128
186
|
* Always `postcard`.
|
|
@@ -139,12 +197,12 @@ export interface Postcard {
|
|
|
139
197
|
/**
|
|
140
198
|
* Enum representing the supported postcard sizes.
|
|
141
199
|
*/
|
|
142
|
-
size:
|
|
200
|
+
size: '6x4' | '9x6' | '11x6';
|
|
143
201
|
|
|
144
202
|
/**
|
|
145
203
|
* See `OrderStatus` for more details on the status of this order.
|
|
146
204
|
*/
|
|
147
|
-
status:
|
|
205
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
148
206
|
|
|
149
207
|
/**
|
|
150
208
|
* The recipient of this order. This will be provided even if you delete the
|
|
@@ -161,7 +219,7 @@ export interface Postcard {
|
|
|
161
219
|
* The cancellation details of this order. Populated if the order has been
|
|
162
220
|
* cancelled.
|
|
163
221
|
*/
|
|
164
|
-
cancellation?:
|
|
222
|
+
cancellation?: Postcard.Cancellation;
|
|
165
223
|
|
|
166
224
|
/**
|
|
167
225
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -184,7 +242,7 @@ export interface Postcard {
|
|
|
184
242
|
* US-printed and US-destined orders. This is the most detailed way to track
|
|
185
243
|
* non-express/certified orders.
|
|
186
244
|
*/
|
|
187
|
-
imbStatus?:
|
|
245
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
188
246
|
|
|
189
247
|
/**
|
|
190
248
|
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
@@ -205,6 +263,12 @@ export interface Postcard {
|
|
|
205
263
|
*/
|
|
206
264
|
metadata?: { [key: string]: unknown };
|
|
207
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Premium paper identifier. Use "standard" for regular stock or a premium*paper*\*
|
|
268
|
+
* ID.
|
|
269
|
+
*/
|
|
270
|
+
paper?: string;
|
|
271
|
+
|
|
208
272
|
/**
|
|
209
273
|
* The tracking number of this order. Populated after an express/certified order
|
|
210
274
|
* has been processed for delivery.
|
|
@@ -224,6 +288,29 @@ export interface Postcard {
|
|
|
224
288
|
url?: string;
|
|
225
289
|
}
|
|
226
290
|
|
|
291
|
+
export namespace Postcard {
|
|
292
|
+
/**
|
|
293
|
+
* The cancellation details of this order. Populated if the order has been
|
|
294
|
+
* cancelled.
|
|
295
|
+
*/
|
|
296
|
+
export interface Cancellation {
|
|
297
|
+
/**
|
|
298
|
+
* The reason for the cancellation.
|
|
299
|
+
*/
|
|
300
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The user ID who cancelled the order.
|
|
304
|
+
*/
|
|
305
|
+
cancelledByUser?: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* An optional note provided by the user who cancelled the order.
|
|
309
|
+
*/
|
|
310
|
+
note?: string;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
227
314
|
export interface PostcardRetrieveURLResponse {
|
|
228
315
|
/**
|
|
229
316
|
* A unique ID prefixed with postcard\_
|
|
@@ -262,7 +349,7 @@ export declare namespace PostcardCreateParams {
|
|
|
262
349
|
/**
|
|
263
350
|
* Enum representing the supported postcard sizes.
|
|
264
351
|
*/
|
|
265
|
-
size:
|
|
352
|
+
size: '6x4' | '9x6' | '11x6';
|
|
266
353
|
|
|
267
354
|
/**
|
|
268
355
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -270,7 +357,7 @@ export declare namespace PostcardCreateParams {
|
|
|
270
357
|
* contacts regardless of whether you provide the information inline here or call
|
|
271
358
|
* the contact creation endpoint.
|
|
272
359
|
*/
|
|
273
|
-
to:
|
|
360
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
274
361
|
|
|
275
362
|
/**
|
|
276
363
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -283,13 +370,39 @@ export declare namespace PostcardCreateParams {
|
|
|
283
370
|
* here just like you can for the `to`. Unlike other order types, the sender
|
|
284
371
|
* address is optional for postcards.
|
|
285
372
|
*/
|
|
286
|
-
from?:
|
|
373
|
+
from?: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
287
374
|
|
|
288
375
|
/**
|
|
289
376
|
* The mailing class of this order. If not provided, automatically set to
|
|
290
377
|
* `first_class`.
|
|
291
378
|
*/
|
|
292
|
-
mailingClass?:
|
|
379
|
+
mailingClass?:
|
|
380
|
+
| 'first_class'
|
|
381
|
+
| 'standard_class'
|
|
382
|
+
| 'express'
|
|
383
|
+
| 'certified'
|
|
384
|
+
| 'certified_return_receipt'
|
|
385
|
+
| 'registered'
|
|
386
|
+
| 'usps_first_class'
|
|
387
|
+
| 'usps_standard_class'
|
|
388
|
+
| 'usps_eddm'
|
|
389
|
+
| 'usps_express_2_day'
|
|
390
|
+
| 'usps_express_3_day'
|
|
391
|
+
| 'usps_first_class_certified'
|
|
392
|
+
| 'usps_first_class_certified_return_receipt'
|
|
393
|
+
| 'usps_first_class_registered'
|
|
394
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
395
|
+
| 'usps_express_3_day_certified'
|
|
396
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
397
|
+
| 'ca_post_lettermail'
|
|
398
|
+
| 'ca_post_personalized'
|
|
399
|
+
| 'ca_post_neighbourhood_mail'
|
|
400
|
+
| 'ups_express_overnight'
|
|
401
|
+
| 'ups_express_2_day'
|
|
402
|
+
| 'ups_express_3_day'
|
|
403
|
+
| 'royal_mail_first_class'
|
|
404
|
+
| 'royal_mail_second_class'
|
|
405
|
+
| 'au_post_second_class';
|
|
293
406
|
|
|
294
407
|
/**
|
|
295
408
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -304,6 +417,12 @@ export declare namespace PostcardCreateParams {
|
|
|
304
417
|
*/
|
|
305
418
|
metadata?: { [key: string]: unknown };
|
|
306
419
|
|
|
420
|
+
/**
|
|
421
|
+
* Premium paper identifier. Use "standard" for regular stock or a premium*paper*\*
|
|
422
|
+
* ID.
|
|
423
|
+
*/
|
|
424
|
+
paper?: string;
|
|
425
|
+
|
|
307
426
|
/**
|
|
308
427
|
* This order will transition from `ready` to `printing` on the day after this
|
|
309
428
|
* date. You can use this parameter to schedule orders for a future date.
|
|
@@ -335,7 +454,7 @@ export declare namespace PostcardCreateParams {
|
|
|
335
454
|
/**
|
|
336
455
|
* Enum representing the supported postcard sizes.
|
|
337
456
|
*/
|
|
338
|
-
size:
|
|
457
|
+
size: '6x4' | '9x6' | '11x6';
|
|
339
458
|
|
|
340
459
|
/**
|
|
341
460
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -343,7 +462,7 @@ export declare namespace PostcardCreateParams {
|
|
|
343
462
|
* contacts regardless of whether you provide the information inline here or call
|
|
344
463
|
* the contact creation endpoint.
|
|
345
464
|
*/
|
|
346
|
-
to:
|
|
465
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
347
466
|
|
|
348
467
|
/**
|
|
349
468
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -356,13 +475,39 @@ export declare namespace PostcardCreateParams {
|
|
|
356
475
|
* here just like you can for the `to`. Unlike other order types, the sender
|
|
357
476
|
* address is optional for postcards.
|
|
358
477
|
*/
|
|
359
|
-
from?:
|
|
478
|
+
from?: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
360
479
|
|
|
361
480
|
/**
|
|
362
481
|
* The mailing class of this order. If not provided, automatically set to
|
|
363
482
|
* `first_class`.
|
|
364
483
|
*/
|
|
365
|
-
mailingClass?:
|
|
484
|
+
mailingClass?:
|
|
485
|
+
| 'first_class'
|
|
486
|
+
| 'standard_class'
|
|
487
|
+
| 'express'
|
|
488
|
+
| 'certified'
|
|
489
|
+
| 'certified_return_receipt'
|
|
490
|
+
| 'registered'
|
|
491
|
+
| 'usps_first_class'
|
|
492
|
+
| 'usps_standard_class'
|
|
493
|
+
| 'usps_eddm'
|
|
494
|
+
| 'usps_express_2_day'
|
|
495
|
+
| 'usps_express_3_day'
|
|
496
|
+
| 'usps_first_class_certified'
|
|
497
|
+
| 'usps_first_class_certified_return_receipt'
|
|
498
|
+
| 'usps_first_class_registered'
|
|
499
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
500
|
+
| 'usps_express_3_day_certified'
|
|
501
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
502
|
+
| 'ca_post_lettermail'
|
|
503
|
+
| 'ca_post_personalized'
|
|
504
|
+
| 'ca_post_neighbourhood_mail'
|
|
505
|
+
| 'ups_express_overnight'
|
|
506
|
+
| 'ups_express_2_day'
|
|
507
|
+
| 'ups_express_3_day'
|
|
508
|
+
| 'royal_mail_first_class'
|
|
509
|
+
| 'royal_mail_second_class'
|
|
510
|
+
| 'au_post_second_class';
|
|
366
511
|
|
|
367
512
|
/**
|
|
368
513
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -377,6 +522,12 @@ export declare namespace PostcardCreateParams {
|
|
|
377
522
|
*/
|
|
378
523
|
metadata?: { [key: string]: unknown };
|
|
379
524
|
|
|
525
|
+
/**
|
|
526
|
+
* Premium paper identifier. Use "standard" for regular stock or a premium*paper*\*
|
|
527
|
+
* ID.
|
|
528
|
+
*/
|
|
529
|
+
paper?: string;
|
|
530
|
+
|
|
380
531
|
/**
|
|
381
532
|
* This order will transition from `ready` to `printing` on the day after this
|
|
382
533
|
* date. You can use this parameter to schedule orders for a future date.
|
|
@@ -394,7 +545,7 @@ export declare namespace PostcardCreateParams {
|
|
|
394
545
|
/**
|
|
395
546
|
* Enum representing the supported postcard sizes.
|
|
396
547
|
*/
|
|
397
|
-
size:
|
|
548
|
+
size: '6x4' | '9x6' | '11x6';
|
|
398
549
|
|
|
399
550
|
/**
|
|
400
551
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -402,7 +553,7 @@ export declare namespace PostcardCreateParams {
|
|
|
402
553
|
* contacts regardless of whether you provide the information inline here or call
|
|
403
554
|
* the contact creation endpoint.
|
|
404
555
|
*/
|
|
405
|
-
to:
|
|
556
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
406
557
|
|
|
407
558
|
/**
|
|
408
559
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -415,13 +566,39 @@ export declare namespace PostcardCreateParams {
|
|
|
415
566
|
* here just like you can for the `to`. Unlike other order types, the sender
|
|
416
567
|
* address is optional for postcards.
|
|
417
568
|
*/
|
|
418
|
-
from?:
|
|
569
|
+
from?: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
419
570
|
|
|
420
571
|
/**
|
|
421
572
|
* The mailing class of this order. If not provided, automatically set to
|
|
422
573
|
* `first_class`.
|
|
423
574
|
*/
|
|
424
|
-
mailingClass?:
|
|
575
|
+
mailingClass?:
|
|
576
|
+
| 'first_class'
|
|
577
|
+
| 'standard_class'
|
|
578
|
+
| 'express'
|
|
579
|
+
| 'certified'
|
|
580
|
+
| 'certified_return_receipt'
|
|
581
|
+
| 'registered'
|
|
582
|
+
| 'usps_first_class'
|
|
583
|
+
| 'usps_standard_class'
|
|
584
|
+
| 'usps_eddm'
|
|
585
|
+
| 'usps_express_2_day'
|
|
586
|
+
| 'usps_express_3_day'
|
|
587
|
+
| 'usps_first_class_certified'
|
|
588
|
+
| 'usps_first_class_certified_return_receipt'
|
|
589
|
+
| 'usps_first_class_registered'
|
|
590
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
591
|
+
| 'usps_express_3_day_certified'
|
|
592
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
593
|
+
| 'ca_post_lettermail'
|
|
594
|
+
| 'ca_post_personalized'
|
|
595
|
+
| 'ca_post_neighbourhood_mail'
|
|
596
|
+
| 'ups_express_overnight'
|
|
597
|
+
| 'ups_express_2_day'
|
|
598
|
+
| 'ups_express_3_day'
|
|
599
|
+
| 'royal_mail_first_class'
|
|
600
|
+
| 'royal_mail_second_class'
|
|
601
|
+
| 'au_post_second_class';
|
|
425
602
|
|
|
426
603
|
/**
|
|
427
604
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -436,6 +613,12 @@ export declare namespace PostcardCreateParams {
|
|
|
436
613
|
*/
|
|
437
614
|
metadata?: { [key: string]: unknown };
|
|
438
615
|
|
|
616
|
+
/**
|
|
617
|
+
* Premium paper identifier. Use "standard" for regular stock or a premium*paper*\*
|
|
618
|
+
* ID.
|
|
619
|
+
*/
|
|
620
|
+
paper?: string;
|
|
621
|
+
|
|
439
622
|
/**
|
|
440
623
|
* This order will transition from `ready` to `printing` on the day after this
|
|
441
624
|
* date. You can use this parameter to schedule orders for a future date.
|
|
@@ -455,6 +638,10 @@ export interface PostcardListParams extends SkipLimitParams {
|
|
|
455
638
|
search?: string;
|
|
456
639
|
}
|
|
457
640
|
|
|
641
|
+
export interface PostcardCancelParams {
|
|
642
|
+
note: string;
|
|
643
|
+
}
|
|
644
|
+
|
|
458
645
|
export declare namespace Postcards {
|
|
459
646
|
export {
|
|
460
647
|
type Postcard as Postcard,
|
|
@@ -462,5 +649,6 @@ export declare namespace Postcards {
|
|
|
462
649
|
type PostcardsSkipLimit as PostcardsSkipLimit,
|
|
463
650
|
type PostcardCreateParams as PostcardCreateParams,
|
|
464
651
|
type PostcardListParams as PostcardListParams,
|
|
652
|
+
type PostcardCancelParams as PostcardCancelParams,
|
|
465
653
|
};
|
|
466
654
|
}
|