postgrid-node 0.5.0 → 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 +84 -0
- package/LICENSE +1 -1
- package/README.md +13 -10
- package/client.d.mts +30 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -10
- package/client.d.ts.map +1 -1
- package/client.js +56 -10
- package/client.js.map +1 -1
- package/client.mjs +57 -11
- 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 +7 -1
- 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 +995 -0
- package/resources/print-mail/boxes.d.mts.map +1 -0
- package/resources/print-mail/boxes.d.ts +995 -0
- package/resources/print-mail/boxes.d.ts.map +1 -0
- package/resources/print-mail/boxes.js +103 -0
- package/resources/print-mail/boxes.js.map +1 -0
- package/resources/print-mail/boxes.mjs +99 -0
- package/resources/print-mail/boxes.mjs.map +1 -0
- 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 +35 -5
- package/resources/print-mail/cheques.d.mts.map +1 -1
- package/resources/print-mail/cheques.d.ts +35 -5
- 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 -7
- package/resources/print-mail/index.d.mts.map +1 -1
- package/resources/print-mail/index.d.ts +12 -7
- package/resources/print-mail/index.d.ts.map +1 -1
- package/resources/print-mail/index.js +15 -5
- package/resources/print-mail/index.js.map +1 -1
- package/resources/print-mail/index.mjs +6 -1
- package/resources/print-mail/index.mjs.map +1 -1
- package/resources/print-mail/letters.d.mts +36 -6
- package/resources/print-mail/letters.d.mts.map +1 -1
- package/resources/print-mail/letters.d.ts +36 -6
- 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 +63 -13
- package/resources/print-mail/postcards.d.mts.map +1 -1
- package/resources/print-mail/postcards.d.ts +63 -13
- 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 +42 -159
- package/resources/print-mail/print-mail.d.mts.map +1 -1
- package/resources/print-mail/print-mail.d.ts +42 -159
- package/resources/print-mail/print-mail.d.ts.map +1 -1
- package/resources/print-mail/print-mail.js +36 -16
- package/resources/print-mail/print-mail.js.map +1 -1
- package/resources/print-mail/print-mail.mjs +36 -16
- 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 +25 -12
- package/resources/print-mail/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/self-mailers.d.ts +25 -12
- 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 +116 -26
- 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 +1324 -0
- package/src/resources/print-mail/campaigns.ts +1449 -59
- package/src/resources/print-mail/cheques.ts +42 -4
- package/src/resources/print-mail/contacts.ts +167 -4
- package/src/resources/print-mail/index.ts +79 -4
- package/src/resources/print-mail/letters.ts +43 -5
- 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 +74 -12
- package/src/resources/print-mail/print-mail.ts +245 -239
- 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 +28 -12
- 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 -387
- package/resources/print-mail/order-profiles/cheques.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/cheques.d.ts +0 -387
- 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 -324
- package/resources/print-mail/order-profiles/letters.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/letters.d.ts +0 -324
- 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 -254
- package/resources/print-mail/order-profiles/postcards.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/postcards.d.ts +0 -254
- 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 -259
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.d.ts +0 -259
- 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 -589
- package/src/resources/print-mail/order-profiles/index.ts +0 -47
- package/src/resources/print-mail/order-profiles/letters.ts +0 -489
- package/src/resources/print-mail/order-profiles/order-profiles.ts +0 -113
- package/src/resources/print-mail/order-profiles/postcards.ts +0 -404
- package/src/resources/print-mail/order-profiles/self-mailers.ts +0 -415
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ContactsAPI from './contacts';
|
|
5
|
-
import * as PrintMailAPI from './print-mail';
|
|
6
5
|
import { APIPromise } from '../../core/api-promise';
|
|
7
6
|
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
8
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -95,6 +94,40 @@ export class Cheques extends APIResource {
|
|
|
95
94
|
return this._client.delete(path`/print-mail/v1/cheques/${id}`, options);
|
|
96
95
|
}
|
|
97
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Cancel a cheque by ID with a note. Note that this operation cannot be undone and
|
|
99
|
+
* that only cheques with a status of `ready` can be cancelled.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const cheque = await client.printMail.cheques.cancel('id', {
|
|
104
|
+
* note: 'Cancelling this cheque',
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
cancel(id: string, body: ChequeCancelParams, options?: RequestOptions): APIPromise<Cheque> {
|
|
109
|
+
return this._client.post(path`/print-mail/v1/cheques/${id}/cancellation`, { body, ...options });
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Progresses a cheque's `status` to the next stage. This is only available in test
|
|
114
|
+
* mode and can be used to simulate how a live order would progress through the
|
|
115
|
+
* different statuses.
|
|
116
|
+
*
|
|
117
|
+
* Note: this will fail with an `invalid_progression_error` if the status is one of
|
|
118
|
+
* `completed` or `cancelled`.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```ts
|
|
122
|
+
* const cheque = await client.printMail.cheques.progress(
|
|
123
|
+
* 'id',
|
|
124
|
+
* );
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
progress(id: string, options?: RequestOptions): APIPromise<Cheque> {
|
|
128
|
+
return this._client.post(path`/print-mail/v1/cheques/${id}/progressions`, options);
|
|
129
|
+
}
|
|
130
|
+
|
|
98
131
|
/**
|
|
99
132
|
* Retrieve a cheque preview URL.
|
|
100
133
|
*
|
|
@@ -407,7 +440,7 @@ export interface ChequeCreateParams {
|
|
|
407
440
|
* The contact information of the sender. You can pass contact information inline
|
|
408
441
|
* here just like you can for the `to`.
|
|
409
442
|
*/
|
|
410
|
-
from:
|
|
443
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
411
444
|
|
|
412
445
|
/**
|
|
413
446
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -415,7 +448,7 @@ export interface ChequeCreateParams {
|
|
|
415
448
|
* contacts regardless of whether you provide the information inline here or call
|
|
416
449
|
* the contact creation endpoint.
|
|
417
450
|
*/
|
|
418
|
-
to:
|
|
451
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
419
452
|
|
|
420
453
|
/**
|
|
421
454
|
* The currency code of the cheque. This will be set to the default currency of the
|
|
@@ -519,7 +552,7 @@ export interface ChequeCreateParams {
|
|
|
519
552
|
* mail it forward to the final recipient yourself. One use case for this is
|
|
520
553
|
* signing cheques at your office before mailing them out yourself.
|
|
521
554
|
*/
|
|
522
|
-
redirectTo?:
|
|
555
|
+
redirectTo?: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
523
556
|
|
|
524
557
|
/**
|
|
525
558
|
* This order will transition from `ready` to `printing` on the day after this
|
|
@@ -544,6 +577,10 @@ export interface ChequeListParams extends SkipLimitParams {
|
|
|
544
577
|
search?: string;
|
|
545
578
|
}
|
|
546
579
|
|
|
580
|
+
export interface ChequeCancelParams {
|
|
581
|
+
note: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
547
584
|
export declare namespace Cheques {
|
|
548
585
|
export {
|
|
549
586
|
type Cheque as Cheque,
|
|
@@ -553,5 +590,6 @@ export declare namespace Cheques {
|
|
|
553
590
|
type ChequesSkipLimit as ChequesSkipLimit,
|
|
554
591
|
type ChequeCreateParams as ChequeCreateParams,
|
|
555
592
|
type ChequeListParams as ChequeListParams,
|
|
593
|
+
type ChequeCancelParams as ChequeCancelParams,
|
|
556
594
|
};
|
|
557
595
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
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 PrintMailAPI from './print-mail';
|
|
5
4
|
import { APIPromise } from '../../core/api-promise';
|
|
6
5
|
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
7
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -208,9 +207,171 @@ export interface Contact {
|
|
|
208
207
|
skipVerification?: boolean;
|
|
209
208
|
}
|
|
210
209
|
|
|
211
|
-
export type ContactCreate =
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
export type ContactCreate = ContactCreateWithFirstName | ContactCreateWithCompanyName;
|
|
211
|
+
|
|
212
|
+
export interface ContactCreateWithCompanyName {
|
|
213
|
+
/**
|
|
214
|
+
* The first line of the contact's address.
|
|
215
|
+
*/
|
|
216
|
+
addressLine1: string;
|
|
217
|
+
|
|
218
|
+
companyName: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
222
|
+
*/
|
|
223
|
+
countryCode: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Second line of the contact's address, if applicable.
|
|
227
|
+
*/
|
|
228
|
+
addressLine2?: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The city of the contact's address.
|
|
232
|
+
*/
|
|
233
|
+
city?: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
237
|
+
* dashboard.
|
|
238
|
+
*/
|
|
239
|
+
description?: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Email of the contact.
|
|
243
|
+
*/
|
|
244
|
+
email?: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* First name of the contact.
|
|
248
|
+
*/
|
|
249
|
+
firstName?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
253
|
+
* `verified` even if our address verification system says otherwise.
|
|
254
|
+
*/
|
|
255
|
+
forceVerifiedStatus?: boolean;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Job title of the contact.
|
|
259
|
+
*/
|
|
260
|
+
jobTitle?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Last name of the contact.
|
|
264
|
+
*/
|
|
265
|
+
lastName?: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* See the section on Metadata.
|
|
269
|
+
*/
|
|
270
|
+
metadata?: { [key: string]: unknown };
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Phone number of the contact.
|
|
274
|
+
*/
|
|
275
|
+
phoneNumber?: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The postal or ZIP code of the contact's address.
|
|
279
|
+
*/
|
|
280
|
+
postalOrZip?: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Province or state of the contact's address.
|
|
284
|
+
*/
|
|
285
|
+
provinceOrState?: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
289
|
+
* verification system.
|
|
290
|
+
*/
|
|
291
|
+
skipVerification?: boolean;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface ContactCreateWithFirstName {
|
|
295
|
+
/**
|
|
296
|
+
* The first line of the contact's address.
|
|
297
|
+
*/
|
|
298
|
+
addressLine1: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
302
|
+
*/
|
|
303
|
+
countryCode: string;
|
|
304
|
+
|
|
305
|
+
firstName: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Second line of the contact's address, if applicable.
|
|
309
|
+
*/
|
|
310
|
+
addressLine2?: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* The city of the contact's address.
|
|
314
|
+
*/
|
|
315
|
+
city?: string;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Company name of the contact.
|
|
319
|
+
*/
|
|
320
|
+
companyName?: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
324
|
+
* dashboard.
|
|
325
|
+
*/
|
|
326
|
+
description?: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Email of the contact.
|
|
330
|
+
*/
|
|
331
|
+
email?: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
335
|
+
* `verified` even if our address verification system says otherwise.
|
|
336
|
+
*/
|
|
337
|
+
forceVerifiedStatus?: boolean;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Job title of the contact.
|
|
341
|
+
*/
|
|
342
|
+
jobTitle?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Last name of the contact.
|
|
346
|
+
*/
|
|
347
|
+
lastName?: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* See the section on Metadata.
|
|
351
|
+
*/
|
|
352
|
+
metadata?: { [key: string]: unknown };
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Phone number of the contact.
|
|
356
|
+
*/
|
|
357
|
+
phoneNumber?: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The postal or ZIP code of the contact's address.
|
|
361
|
+
*/
|
|
362
|
+
postalOrZip?: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Province or state of the contact's address.
|
|
366
|
+
*/
|
|
367
|
+
provinceOrState?: string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
371
|
+
* verification system.
|
|
372
|
+
*/
|
|
373
|
+
skipVerification?: boolean;
|
|
374
|
+
}
|
|
214
375
|
|
|
215
376
|
export interface ContactDeleteResponse {
|
|
216
377
|
/**
|
|
@@ -411,6 +572,8 @@ export declare namespace Contacts {
|
|
|
411
572
|
export {
|
|
412
573
|
type Contact as Contact,
|
|
413
574
|
type ContactCreate as ContactCreate,
|
|
575
|
+
type ContactCreateWithCompanyName as ContactCreateWithCompanyName,
|
|
576
|
+
type ContactCreateWithFirstName as ContactCreateWithFirstName,
|
|
414
577
|
type ContactDeleteResponse as ContactDeleteResponse,
|
|
415
578
|
type ContactsSkipLimit as ContactsSkipLimit,
|
|
416
579
|
type ContactCreateParams as ContactCreateParams,
|
|
@@ -9,6 +9,17 @@ export {
|
|
|
9
9
|
type BankAccountListParams,
|
|
10
10
|
type BankAccountsSkipLimit,
|
|
11
11
|
} from './bank-accounts';
|
|
12
|
+
export {
|
|
13
|
+
Boxes,
|
|
14
|
+
type BoxCreateResponse,
|
|
15
|
+
type BoxRetrieveResponse,
|
|
16
|
+
type BoxListResponse,
|
|
17
|
+
type BoxDeleteResponse,
|
|
18
|
+
type BoxProgressionsResponse,
|
|
19
|
+
type BoxCreateParams,
|
|
20
|
+
type BoxListParams,
|
|
21
|
+
type BoxListResponsesSkipLimit,
|
|
22
|
+
} from './boxes';
|
|
12
23
|
export {
|
|
13
24
|
Campaigns,
|
|
14
25
|
type Campaign,
|
|
@@ -27,12 +38,15 @@ export {
|
|
|
27
38
|
type ChequeRetrieveURLResponse,
|
|
28
39
|
type ChequeCreateParams,
|
|
29
40
|
type ChequeListParams,
|
|
41
|
+
type ChequeCancelParams,
|
|
30
42
|
type ChequesSkipLimit,
|
|
31
43
|
} from './cheques';
|
|
32
44
|
export {
|
|
33
45
|
Contacts,
|
|
34
46
|
type Contact,
|
|
35
47
|
type ContactCreate,
|
|
48
|
+
type ContactCreateWithCompanyName,
|
|
49
|
+
type ContactCreateWithFirstName,
|
|
36
50
|
type ContactDeleteResponse,
|
|
37
51
|
type ContactCreateParams,
|
|
38
52
|
type ContactListParams,
|
|
@@ -48,6 +62,7 @@ export {
|
|
|
48
62
|
type LetterRetrieveURLResponse,
|
|
49
63
|
type LetterCreateParams,
|
|
50
64
|
type LetterListParams,
|
|
65
|
+
type LetterCancelParams,
|
|
51
66
|
type LettersSkipLimit,
|
|
52
67
|
} from './letters';
|
|
53
68
|
export {
|
|
@@ -72,16 +87,16 @@ export {
|
|
|
72
87
|
type MailingListJobsParams,
|
|
73
88
|
type MailingListsSkipLimit,
|
|
74
89
|
} from './mailing-lists';
|
|
75
|
-
export { OrderProfiles } from './order-profiles/index';
|
|
76
90
|
export {
|
|
77
91
|
Postcards,
|
|
78
92
|
type Postcard,
|
|
79
93
|
type PostcardRetrieveURLResponse,
|
|
80
94
|
type PostcardCreateParams,
|
|
81
95
|
type PostcardListParams,
|
|
96
|
+
type PostcardCancelParams,
|
|
82
97
|
type PostcardsSkipLimit,
|
|
83
98
|
} from './postcards';
|
|
84
|
-
export { PrintMail
|
|
99
|
+
export { PrintMail } from './print-mail';
|
|
85
100
|
export {
|
|
86
101
|
Reports,
|
|
87
102
|
type DeletedResponse,
|
|
@@ -100,17 +115,52 @@ export {
|
|
|
100
115
|
type SelfMailerListParams,
|
|
101
116
|
type SelfMailersSkipLimit,
|
|
102
117
|
} from './self-mailers';
|
|
118
|
+
export {
|
|
119
|
+
SnapPacks,
|
|
120
|
+
type SnapPackCreateResponse,
|
|
121
|
+
type SnapPackRetrieveResponse,
|
|
122
|
+
type SnapPackListResponse,
|
|
123
|
+
type SnapPackDeleteResponse,
|
|
124
|
+
type SnapPackProgressionsResponse,
|
|
125
|
+
type SnapPackRetrieveCapabilitiesResponse,
|
|
126
|
+
type SnapPackCreateParams,
|
|
127
|
+
type SnapPackListParams,
|
|
128
|
+
type SnapPackRetrieveCapabilitiesParams,
|
|
129
|
+
type SnapPackListResponsesSkipLimit,
|
|
130
|
+
} from './snap-packs';
|
|
103
131
|
export {
|
|
104
132
|
SubOrganizations,
|
|
105
133
|
type EmailPreferences,
|
|
106
134
|
type SubOrganization,
|
|
107
|
-
type
|
|
135
|
+
type SubOrganizationCreateResponse,
|
|
108
136
|
type SubOrganizationRetrieveUsersResponse,
|
|
109
|
-
type
|
|
137
|
+
type SubOrganizationCreateParams,
|
|
110
138
|
type SubOrganizationListParams,
|
|
111
139
|
type SubOrganizationRetrieveUsersParams,
|
|
112
140
|
type SubOrganizationsSkipLimit,
|
|
113
141
|
} from './sub-organizations';
|
|
142
|
+
export {
|
|
143
|
+
TargetedListBuilds,
|
|
144
|
+
type TargetedListBuildCreateResponse,
|
|
145
|
+
type TargetedListBuildRetrieveResponse,
|
|
146
|
+
type TargetedListBuildUpdateResponse,
|
|
147
|
+
type TargetedListBuildListResponse,
|
|
148
|
+
type TargetedListBuildDeleteResponse,
|
|
149
|
+
type TargetedListBuildConfirmResponse,
|
|
150
|
+
type TargetedListBuildCreateParams,
|
|
151
|
+
type TargetedListBuildUpdateParams,
|
|
152
|
+
type TargetedListBuildListParams,
|
|
153
|
+
type TargetedListBuildListResponsesSkipLimit,
|
|
154
|
+
} from './targeted-list-builds/index';
|
|
155
|
+
export {
|
|
156
|
+
TemplateEditorSessions,
|
|
157
|
+
type TemplateEditorSessionCreateResponse,
|
|
158
|
+
type TemplateEditorSessionListResponse,
|
|
159
|
+
type TemplateEditorSessionDeleteResponse,
|
|
160
|
+
type TemplateEditorSessionCreateParams,
|
|
161
|
+
type TemplateEditorSessionListParams,
|
|
162
|
+
type TemplateEditorSessionListResponsesSkipLimit,
|
|
163
|
+
} from './template-editor-sessions';
|
|
114
164
|
export {
|
|
115
165
|
Templates,
|
|
116
166
|
type Template,
|
|
@@ -120,3 +170,28 @@ export {
|
|
|
120
170
|
type TemplateListParams,
|
|
121
171
|
type TemplatesSkipLimit,
|
|
122
172
|
} from './templates';
|
|
173
|
+
export {
|
|
174
|
+
Trackers,
|
|
175
|
+
type TrackerCreateResponse,
|
|
176
|
+
type TrackerRetrieveResponse,
|
|
177
|
+
type TrackerUpdateResponse,
|
|
178
|
+
type TrackerListResponse,
|
|
179
|
+
type TrackerDeleteResponse,
|
|
180
|
+
type TrackerRetrieveVisitsResponse,
|
|
181
|
+
type TrackerCreateParams,
|
|
182
|
+
type TrackerUpdateParams,
|
|
183
|
+
type TrackerListParams,
|
|
184
|
+
type TrackerRetrieveVisitsParams,
|
|
185
|
+
type TrackerListResponsesSkipLimit,
|
|
186
|
+
type TrackerRetrieveVisitsResponsesSkipLimit,
|
|
187
|
+
} from './trackers';
|
|
188
|
+
export {
|
|
189
|
+
VirtualMailboxes,
|
|
190
|
+
type VirtualMailboxCreateResponse,
|
|
191
|
+
type VirtualMailboxRetrieveResponse,
|
|
192
|
+
type VirtualMailboxListResponse,
|
|
193
|
+
type VirtualMailboxRetrieveAddressResponse,
|
|
194
|
+
type VirtualMailboxCreateParams,
|
|
195
|
+
type VirtualMailboxListParams,
|
|
196
|
+
type VirtualMailboxListResponsesSkipLimit,
|
|
197
|
+
} from './virtual-mailboxes/index';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ContactsAPI from './contacts';
|
|
5
|
-
import * as PrintMailAPI from './print-mail';
|
|
6
5
|
import { APIPromise } from '../../core/api-promise';
|
|
7
6
|
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
8
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -74,6 +73,40 @@ export class Letters extends APIResource {
|
|
|
74
73
|
return this._client.delete(path`/print-mail/v1/letters/${id}`, options);
|
|
75
74
|
}
|
|
76
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
|
+
|
|
77
110
|
/**
|
|
78
111
|
* Retrieve a letter preview URL.
|
|
79
112
|
*
|
|
@@ -457,7 +490,7 @@ export declare namespace LetterCreateParams {
|
|
|
457
490
|
* The contact information of the sender. You can pass contact information inline
|
|
458
491
|
* here just like you can for the `to`.
|
|
459
492
|
*/
|
|
460
|
-
from:
|
|
493
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
461
494
|
|
|
462
495
|
/**
|
|
463
496
|
* The HTML content for the letter. You can supply _either_ this or `template` but
|
|
@@ -471,7 +504,7 @@ export declare namespace LetterCreateParams {
|
|
|
471
504
|
* contacts regardless of whether you provide the information inline here or call
|
|
472
505
|
* the contact creation endpoint.
|
|
473
506
|
*/
|
|
474
|
-
to:
|
|
507
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
475
508
|
|
|
476
509
|
/**
|
|
477
510
|
* Enum representing the placement of the address on the letter.
|
|
@@ -591,7 +624,7 @@ export declare namespace LetterCreateParams {
|
|
|
591
624
|
* The contact information of the sender. You can pass contact information inline
|
|
592
625
|
* here just like you can for the `to`.
|
|
593
626
|
*/
|
|
594
|
-
from:
|
|
627
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
595
628
|
|
|
596
629
|
/**
|
|
597
630
|
* A URL pointing to a PDF file for the letter or the PDF file itself.
|
|
@@ -604,7 +637,7 @@ export declare namespace LetterCreateParams {
|
|
|
604
637
|
* contacts regardless of whether you provide the information inline here or call
|
|
605
638
|
* the contact creation endpoint.
|
|
606
639
|
*/
|
|
607
|
-
to:
|
|
640
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
608
641
|
|
|
609
642
|
/**
|
|
610
643
|
* Enum representing the placement of the address on the letter.
|
|
@@ -723,6 +756,10 @@ export interface LetterListParams extends SkipLimitParams {
|
|
|
723
756
|
search?: string;
|
|
724
757
|
}
|
|
725
758
|
|
|
759
|
+
export interface LetterCancelParams {
|
|
760
|
+
note: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
726
763
|
export declare namespace Letters {
|
|
727
764
|
export {
|
|
728
765
|
type AddressPlacement as AddressPlacement,
|
|
@@ -734,5 +771,6 @@ export declare namespace Letters {
|
|
|
734
771
|
type LettersSkipLimit as LettersSkipLimit,
|
|
735
772
|
type LetterCreateParams as LetterCreateParams,
|
|
736
773
|
type LetterListParams as LetterListParams,
|
|
774
|
+
type LetterCancelParams as LetterCancelParams,
|
|
737
775
|
};
|
|
738
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
|
}
|