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,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 OrderProfilesSelfMailersAPI from './order-profiles/self-mailers';
|
|
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';
|
|
@@ -83,6 +80,24 @@ export class SelfMailers extends APIResource {
|
|
|
83
80
|
return this._client.delete(path`/print-mail/v1/self_mailers/${id}`, options);
|
|
84
81
|
}
|
|
85
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Progresses a self-mailer's `status` to the next stage. This is only available in
|
|
85
|
+
* test mode and can be used to simulate how a live order would progress through
|
|
86
|
+
* the different statuses.
|
|
87
|
+
*
|
|
88
|
+
* Note: this will fail with an `invalid_progression_error` if the status is one of
|
|
89
|
+
* `completed` or `cancelled`.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const selfMailer =
|
|
94
|
+
* await client.printMail.selfMailers.progress('id');
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
progress(id: string, options?: RequestOptions): APIPromise<SelfMailer> {
|
|
98
|
+
return this._client.post(path`/print-mail/v1/self_mailers/${id}/progressions`, options);
|
|
99
|
+
}
|
|
100
|
+
|
|
86
101
|
/**
|
|
87
102
|
* Retrieve a self-mailer preview URL.
|
|
88
103
|
*
|
|
@@ -129,7 +144,33 @@ export interface SelfMailer {
|
|
|
129
144
|
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
130
145
|
* See `OrderMailingClass` for more details.
|
|
131
146
|
*/
|
|
132
|
-
mailingClass:
|
|
147
|
+
mailingClass:
|
|
148
|
+
| 'first_class'
|
|
149
|
+
| 'standard_class'
|
|
150
|
+
| 'express'
|
|
151
|
+
| 'certified'
|
|
152
|
+
| 'certified_return_receipt'
|
|
153
|
+
| 'registered'
|
|
154
|
+
| 'usps_first_class'
|
|
155
|
+
| 'usps_standard_class'
|
|
156
|
+
| 'usps_eddm'
|
|
157
|
+
| 'usps_express_2_day'
|
|
158
|
+
| 'usps_express_3_day'
|
|
159
|
+
| 'usps_first_class_certified'
|
|
160
|
+
| 'usps_first_class_certified_return_receipt'
|
|
161
|
+
| 'usps_first_class_registered'
|
|
162
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
163
|
+
| 'usps_express_3_day_certified'
|
|
164
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
165
|
+
| 'ca_post_lettermail'
|
|
166
|
+
| 'ca_post_personalized'
|
|
167
|
+
| 'ca_post_neighbourhood_mail'
|
|
168
|
+
| 'ups_express_overnight'
|
|
169
|
+
| 'ups_express_2_day'
|
|
170
|
+
| 'ups_express_3_day'
|
|
171
|
+
| 'royal_mail_first_class'
|
|
172
|
+
| 'royal_mail_second_class'
|
|
173
|
+
| 'au_post_second_class';
|
|
133
174
|
|
|
134
175
|
/**
|
|
135
176
|
* Always `self_mailer`.
|
|
@@ -146,12 +187,12 @@ export interface SelfMailer {
|
|
|
146
187
|
/**
|
|
147
188
|
* Enum representing the supported self-mailer sizes.
|
|
148
189
|
*/
|
|
149
|
-
size:
|
|
190
|
+
size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
150
191
|
|
|
151
192
|
/**
|
|
152
193
|
* See `OrderStatus` for more details on the status of this order.
|
|
153
194
|
*/
|
|
154
|
-
status:
|
|
195
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
155
196
|
|
|
156
197
|
/**
|
|
157
198
|
* The recipient of this order. This will be provided even if you delete the
|
|
@@ -168,7 +209,7 @@ export interface SelfMailer {
|
|
|
168
209
|
* The cancellation details of this order. Populated if the order has been
|
|
169
210
|
* cancelled.
|
|
170
211
|
*/
|
|
171
|
-
cancellation?:
|
|
212
|
+
cancellation?: SelfMailer.Cancellation;
|
|
172
213
|
|
|
173
214
|
/**
|
|
174
215
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -186,7 +227,7 @@ export interface SelfMailer {
|
|
|
186
227
|
* US-printed and US-destined orders. This is the most detailed way to track
|
|
187
228
|
* non-express/certified orders.
|
|
188
229
|
*/
|
|
189
|
-
imbStatus?:
|
|
230
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
190
231
|
|
|
191
232
|
/**
|
|
192
233
|
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
@@ -226,6 +267,29 @@ export interface SelfMailer {
|
|
|
226
267
|
url?: string;
|
|
227
268
|
}
|
|
228
269
|
|
|
270
|
+
export namespace SelfMailer {
|
|
271
|
+
/**
|
|
272
|
+
* The cancellation details of this order. Populated if the order has been
|
|
273
|
+
* cancelled.
|
|
274
|
+
*/
|
|
275
|
+
export interface Cancellation {
|
|
276
|
+
/**
|
|
277
|
+
* The reason for the cancellation.
|
|
278
|
+
*/
|
|
279
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The user ID who cancelled the order.
|
|
283
|
+
*/
|
|
284
|
+
cancelledByUser?: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* An optional note provided by the user who cancelled the order.
|
|
288
|
+
*/
|
|
289
|
+
note?: string;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
229
293
|
export interface SelfMailerRetrieveURLResponse {
|
|
230
294
|
/**
|
|
231
295
|
* A unique ID prefixed with self*mailer*
|
|
@@ -253,7 +317,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
253
317
|
* The contact information of the sender. You can pass contact information inline
|
|
254
318
|
* here just like you can for the `to`.
|
|
255
319
|
*/
|
|
256
|
-
from:
|
|
320
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
257
321
|
|
|
258
322
|
/**
|
|
259
323
|
* The HTML content for the inside of the self-mailer. You can supply _either_ this
|
|
@@ -270,7 +334,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
270
334
|
/**
|
|
271
335
|
* Enum representing the supported self-mailer sizes.
|
|
272
336
|
*/
|
|
273
|
-
size:
|
|
337
|
+
size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
274
338
|
|
|
275
339
|
/**
|
|
276
340
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -278,7 +342,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
278
342
|
* contacts regardless of whether you provide the information inline here or call
|
|
279
343
|
* the contact creation endpoint.
|
|
280
344
|
*/
|
|
281
|
-
to:
|
|
345
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
282
346
|
|
|
283
347
|
/**
|
|
284
348
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -290,7 +354,33 @@ export declare namespace SelfMailerCreateParams {
|
|
|
290
354
|
* The mailing class of this order. If not provided, automatically set to
|
|
291
355
|
* `first_class`.
|
|
292
356
|
*/
|
|
293
|
-
mailingClass?:
|
|
357
|
+
mailingClass?:
|
|
358
|
+
| 'first_class'
|
|
359
|
+
| 'standard_class'
|
|
360
|
+
| 'express'
|
|
361
|
+
| 'certified'
|
|
362
|
+
| 'certified_return_receipt'
|
|
363
|
+
| 'registered'
|
|
364
|
+
| 'usps_first_class'
|
|
365
|
+
| 'usps_standard_class'
|
|
366
|
+
| 'usps_eddm'
|
|
367
|
+
| 'usps_express_2_day'
|
|
368
|
+
| 'usps_express_3_day'
|
|
369
|
+
| 'usps_first_class_certified'
|
|
370
|
+
| 'usps_first_class_certified_return_receipt'
|
|
371
|
+
| 'usps_first_class_registered'
|
|
372
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
373
|
+
| 'usps_express_3_day_certified'
|
|
374
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
375
|
+
| 'ca_post_lettermail'
|
|
376
|
+
| 'ca_post_personalized'
|
|
377
|
+
| 'ca_post_neighbourhood_mail'
|
|
378
|
+
| 'ups_express_overnight'
|
|
379
|
+
| 'ups_express_2_day'
|
|
380
|
+
| 'ups_express_3_day'
|
|
381
|
+
| 'royal_mail_first_class'
|
|
382
|
+
| 'royal_mail_second_class'
|
|
383
|
+
| 'au_post_second_class';
|
|
294
384
|
|
|
295
385
|
/**
|
|
296
386
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -331,7 +421,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
331
421
|
* The contact information of the sender. You can pass contact information inline
|
|
332
422
|
* here just like you can for the `to`.
|
|
333
423
|
*/
|
|
334
|
-
from:
|
|
424
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
335
425
|
|
|
336
426
|
/**
|
|
337
427
|
* A URL pointing to a 2 page PDF file. The first page is the inside of the
|
|
@@ -343,7 +433,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
343
433
|
/**
|
|
344
434
|
* Enum representing the supported self-mailer sizes.
|
|
345
435
|
*/
|
|
346
|
-
size:
|
|
436
|
+
size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
347
437
|
|
|
348
438
|
/**
|
|
349
439
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -351,7 +441,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
351
441
|
* contacts regardless of whether you provide the information inline here or call
|
|
352
442
|
* the contact creation endpoint.
|
|
353
443
|
*/
|
|
354
|
-
to:
|
|
444
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
355
445
|
|
|
356
446
|
/**
|
|
357
447
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -363,7 +453,33 @@ export declare namespace SelfMailerCreateParams {
|
|
|
363
453
|
* The mailing class of this order. If not provided, automatically set to
|
|
364
454
|
* `first_class`.
|
|
365
455
|
*/
|
|
366
|
-
mailingClass?:
|
|
456
|
+
mailingClass?:
|
|
457
|
+
| 'first_class'
|
|
458
|
+
| 'standard_class'
|
|
459
|
+
| 'express'
|
|
460
|
+
| 'certified'
|
|
461
|
+
| 'certified_return_receipt'
|
|
462
|
+
| 'registered'
|
|
463
|
+
| 'usps_first_class'
|
|
464
|
+
| 'usps_standard_class'
|
|
465
|
+
| 'usps_eddm'
|
|
466
|
+
| 'usps_express_2_day'
|
|
467
|
+
| 'usps_express_3_day'
|
|
468
|
+
| 'usps_first_class_certified'
|
|
469
|
+
| 'usps_first_class_certified_return_receipt'
|
|
470
|
+
| 'usps_first_class_registered'
|
|
471
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
472
|
+
| 'usps_express_3_day_certified'
|
|
473
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
474
|
+
| 'ca_post_lettermail'
|
|
475
|
+
| 'ca_post_personalized'
|
|
476
|
+
| 'ca_post_neighbourhood_mail'
|
|
477
|
+
| 'ups_express_overnight'
|
|
478
|
+
| 'ups_express_2_day'
|
|
479
|
+
| 'ups_express_3_day'
|
|
480
|
+
| 'royal_mail_first_class'
|
|
481
|
+
| 'royal_mail_second_class'
|
|
482
|
+
| 'au_post_second_class';
|
|
367
483
|
|
|
368
484
|
/**
|
|
369
485
|
* These will be merged with the variables in the template or HTML you create this
|
|
@@ -390,7 +506,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
390
506
|
* The contact information of the sender. You can pass contact information inline
|
|
391
507
|
* here just like you can for the `to`.
|
|
392
508
|
*/
|
|
393
|
-
from:
|
|
509
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
394
510
|
|
|
395
511
|
/**
|
|
396
512
|
* A 2 page PDF file. The first page is the inside of the self-mailer and the
|
|
@@ -401,7 +517,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
401
517
|
/**
|
|
402
518
|
* Enum representing the supported self-mailer sizes.
|
|
403
519
|
*/
|
|
404
|
-
size:
|
|
520
|
+
size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
|
|
405
521
|
|
|
406
522
|
/**
|
|
407
523
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -409,7 +525,7 @@ export declare namespace SelfMailerCreateParams {
|
|
|
409
525
|
* contacts regardless of whether you provide the information inline here or call
|
|
410
526
|
* the contact creation endpoint.
|
|
411
527
|
*/
|
|
412
|
-
to:
|
|
528
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
413
529
|
|
|
414
530
|
/**
|
|
415
531
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -421,7 +537,33 @@ export declare namespace SelfMailerCreateParams {
|
|
|
421
537
|
* The mailing class of this order. If not provided, automatically set to
|
|
422
538
|
* `first_class`.
|
|
423
539
|
*/
|
|
424
|
-
mailingClass?:
|
|
540
|
+
mailingClass?:
|
|
541
|
+
| 'first_class'
|
|
542
|
+
| 'standard_class'
|
|
543
|
+
| 'express'
|
|
544
|
+
| 'certified'
|
|
545
|
+
| 'certified_return_receipt'
|
|
546
|
+
| 'registered'
|
|
547
|
+
| 'usps_first_class'
|
|
548
|
+
| 'usps_standard_class'
|
|
549
|
+
| 'usps_eddm'
|
|
550
|
+
| 'usps_express_2_day'
|
|
551
|
+
| 'usps_express_3_day'
|
|
552
|
+
| 'usps_first_class_certified'
|
|
553
|
+
| 'usps_first_class_certified_return_receipt'
|
|
554
|
+
| 'usps_first_class_registered'
|
|
555
|
+
| 'usps_express_3_day_signature_confirmation'
|
|
556
|
+
| 'usps_express_3_day_certified'
|
|
557
|
+
| 'usps_express_3_day_certified_return_receipt'
|
|
558
|
+
| 'ca_post_lettermail'
|
|
559
|
+
| 'ca_post_personalized'
|
|
560
|
+
| 'ca_post_neighbourhood_mail'
|
|
561
|
+
| 'ups_express_overnight'
|
|
562
|
+
| 'ups_express_2_day'
|
|
563
|
+
| 'ups_express_3_day'
|
|
564
|
+
| 'royal_mail_first_class'
|
|
565
|
+
| 'royal_mail_second_class'
|
|
566
|
+
| 'au_post_second_class';
|
|
425
567
|
|
|
426
568
|
/**
|
|
427
569
|
* These will be merged with the variables in the template or HTML you create this
|