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,255 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as BoxesAPI from "../boxes.js";
|
|
3
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
-
import { PagePromise, SkipLimit, type SkipLimitParams } from "../../../core/pagination.js";
|
|
5
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
-
export declare class Postcards extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new Postcard Profile. Provide either `frontTemplate` and
|
|
9
|
-
* `backTemplate` IDs, or upload a 2-page `pdf`. If providing a `pdf`, the request
|
|
10
|
-
* `Content-Type` must be `multipart/form-data`.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const postcardProfile =
|
|
15
|
-
* await client.printMail.orderProfiles.postcards.create({
|
|
16
|
-
* size: '6x4',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(params: PostcardCreateParams, options?: RequestOptions): APIPromise<PostcardProfile>;
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves the details of a specific Postcard Profile.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const postcardProfile =
|
|
27
|
-
* await client.printMail.orderProfiles.postcards.retrieve(
|
|
28
|
-
* 'id',
|
|
29
|
-
* );
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
retrieve(id: string, query?: PostcardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PostcardProfile>;
|
|
33
|
-
/**
|
|
34
|
-
* Updates specific fields of an existing Postcard Profile. If providing a `pdf`,
|
|
35
|
-
* the request `Content-Type` must be `multipart/form-data`.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const postcardProfile =
|
|
40
|
-
* await client.printMail.orderProfiles.postcards.update(
|
|
41
|
-
* 'id',
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
update(id: string, params: PostcardUpdateParams, options?: RequestOptions): APIPromise<PostcardProfile>;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves a list of Postcard Profiles.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* // Automatically fetches more pages as needed.
|
|
52
|
-
* for await (const postcardProfile of client.printMail.orderProfiles.postcards.list()) {
|
|
53
|
-
* // ...
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
list(query?: PostcardListParams | null | undefined, options?: RequestOptions): PagePromise<PostcardProfilesSkipLimit, PostcardProfile>;
|
|
58
|
-
/**
|
|
59
|
-
* Deletes a Postcard Profile.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* const postcard =
|
|
64
|
-
* await client.printMail.orderProfiles.postcards.delete(
|
|
65
|
-
* 'id',
|
|
66
|
-
* );
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
delete(id: string, options?: RequestOptions): APIPromise<PostcardDeleteResponse>;
|
|
70
|
-
}
|
|
71
|
-
export type PostcardProfilesSkipLimit = SkipLimit<PostcardProfile>;
|
|
72
|
-
export interface PostcardProfile {
|
|
73
|
-
/**
|
|
74
|
-
* Unique identifier for the order profile.
|
|
75
|
-
*/
|
|
76
|
-
id: string;
|
|
77
|
-
/**
|
|
78
|
-
* Timestamp when the profile was created.
|
|
79
|
-
*/
|
|
80
|
-
createdAt: string;
|
|
81
|
-
/**
|
|
82
|
-
* Indicates if the profile is associated with the live or test environment.
|
|
83
|
-
*/
|
|
84
|
-
live: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Always `postcard_profile`.
|
|
87
|
-
*/
|
|
88
|
-
object: 'postcard_profile';
|
|
89
|
-
/**
|
|
90
|
-
* Enum representing the supported postcard sizes.
|
|
91
|
-
*/
|
|
92
|
-
size: PostcardSize;
|
|
93
|
-
/**
|
|
94
|
-
* Timestamp when the profile was last updated.
|
|
95
|
-
*/
|
|
96
|
-
updatedAt: string;
|
|
97
|
-
/**
|
|
98
|
-
* ID of the template for the back side. Required unless `pdf` is provided.
|
|
99
|
-
*/
|
|
100
|
-
backTemplate?: string;
|
|
101
|
-
/**
|
|
102
|
-
* An optional description for the profile. Set to `null` to remove during update.
|
|
103
|
-
*/
|
|
104
|
-
description?: string | null;
|
|
105
|
-
/**
|
|
106
|
-
* ID of the template for the front side. Required unless `pdf` is provided.
|
|
107
|
-
*/
|
|
108
|
-
frontTemplate?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Mailing class (cannot include extra services like `certified` or `registered`
|
|
111
|
-
* for postcards, though).
|
|
112
|
-
*/
|
|
113
|
-
mailingClass?: BoxesAPI.OrderMailingClass;
|
|
114
|
-
/**
|
|
115
|
-
* Default merge variables for orders created using this profile.
|
|
116
|
-
*/
|
|
117
|
-
mergeVariables?: {
|
|
118
|
-
[key: string]: unknown;
|
|
119
|
-
} | null;
|
|
120
|
-
/**
|
|
121
|
-
* Optional key-value metadata.
|
|
122
|
-
*/
|
|
123
|
-
metadata?: {
|
|
124
|
-
[key: string]: string;
|
|
125
|
-
} | null;
|
|
126
|
-
/**
|
|
127
|
-
* A temporary, signed URL to view the uploaded PDF content, if any.
|
|
128
|
-
*/
|
|
129
|
-
uploadedPDF?: string;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Enum representing the supported postcard sizes.
|
|
133
|
-
*/
|
|
134
|
-
export type PostcardSize = '6x4' | '9x6' | '11x6';
|
|
135
|
-
export interface PostcardDeleteResponse {
|
|
136
|
-
/**
|
|
137
|
-
* Unique identifier for the order profile.
|
|
138
|
-
*/
|
|
139
|
-
id: string;
|
|
140
|
-
deleted: true;
|
|
141
|
-
/**
|
|
142
|
-
* Always `postcard_profile`.
|
|
143
|
-
*/
|
|
144
|
-
object: 'postcard_profile';
|
|
145
|
-
}
|
|
146
|
-
export interface PostcardCreateParams {
|
|
147
|
-
/**
|
|
148
|
-
* Body param: Enum representing the supported postcard sizes.
|
|
149
|
-
*/
|
|
150
|
-
size: PostcardSize;
|
|
151
|
-
/**
|
|
152
|
-
* Query param: Optional list of related resources to expand in the response.
|
|
153
|
-
*/
|
|
154
|
-
expand?: Array<string>;
|
|
155
|
-
/**
|
|
156
|
-
* Body param: ID of the template for the back side. Required unless `pdf` is
|
|
157
|
-
* provided.
|
|
158
|
-
*/
|
|
159
|
-
backTemplate?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Body param: An optional description for the profile. Set to `null` to remove
|
|
162
|
-
* during update.
|
|
163
|
-
*/
|
|
164
|
-
description?: string | null;
|
|
165
|
-
/**
|
|
166
|
-
* Body param: ID of the template for the front side. Required unless `pdf` is
|
|
167
|
-
* provided.
|
|
168
|
-
*/
|
|
169
|
-
frontTemplate?: string;
|
|
170
|
-
/**
|
|
171
|
-
* Body param: Mailing class (cannot include extra services like `certified` or
|
|
172
|
-
* `registered` for postcards, though).
|
|
173
|
-
*/
|
|
174
|
-
mailingClass?: BoxesAPI.OrderMailingClass;
|
|
175
|
-
/**
|
|
176
|
-
* Body param: Default merge variables for orders created using this profile.
|
|
177
|
-
*/
|
|
178
|
-
mergeVariables?: {
|
|
179
|
-
[key: string]: unknown;
|
|
180
|
-
} | null;
|
|
181
|
-
/**
|
|
182
|
-
* Body param: Optional key-value metadata.
|
|
183
|
-
*/
|
|
184
|
-
metadata?: {
|
|
185
|
-
[key: string]: string;
|
|
186
|
-
} | null;
|
|
187
|
-
/**
|
|
188
|
-
* Body param: A 2-page PDF file containing the postcard content (front and back).
|
|
189
|
-
* Cannot be used with `frontTemplate`/`backTemplate`.
|
|
190
|
-
*/
|
|
191
|
-
pdf?: string;
|
|
192
|
-
}
|
|
193
|
-
export interface PostcardRetrieveParams {
|
|
194
|
-
/**
|
|
195
|
-
* Optional list of related resources to expand in the response.
|
|
196
|
-
*/
|
|
197
|
-
expand?: Array<string>;
|
|
198
|
-
}
|
|
199
|
-
export interface PostcardUpdateParams {
|
|
200
|
-
/**
|
|
201
|
-
* Query param: Optional list of related resources to expand in the response.
|
|
202
|
-
*/
|
|
203
|
-
expand?: Array<string>;
|
|
204
|
-
/**
|
|
205
|
-
* Body param: ID of the template for the back side. Required unless `pdf` is
|
|
206
|
-
* provided.
|
|
207
|
-
*/
|
|
208
|
-
backTemplate?: string;
|
|
209
|
-
/**
|
|
210
|
-
* Body param: An optional description for the profile. Set to `null` to remove
|
|
211
|
-
* during update.
|
|
212
|
-
*/
|
|
213
|
-
description?: string | null;
|
|
214
|
-
/**
|
|
215
|
-
* Body param: ID of the template for the front side. Required unless `pdf` is
|
|
216
|
-
* provided.
|
|
217
|
-
*/
|
|
218
|
-
frontTemplate?: string;
|
|
219
|
-
/**
|
|
220
|
-
* Body param: Mailing class (cannot include extra services like `certified` or
|
|
221
|
-
* `registered` for postcards, though).
|
|
222
|
-
*/
|
|
223
|
-
mailingClass?: BoxesAPI.OrderMailingClass;
|
|
224
|
-
/**
|
|
225
|
-
* Body param: Default merge variables for orders created using this profile.
|
|
226
|
-
*/
|
|
227
|
-
mergeVariables?: {
|
|
228
|
-
[key: string]: unknown;
|
|
229
|
-
} | null;
|
|
230
|
-
/**
|
|
231
|
-
* Body param: Optional key-value metadata.
|
|
232
|
-
*/
|
|
233
|
-
metadata?: {
|
|
234
|
-
[key: string]: string;
|
|
235
|
-
} | null;
|
|
236
|
-
/**
|
|
237
|
-
* Body param: A 2-page PDF file containing the postcard content (front and back).
|
|
238
|
-
* Cannot be used with `frontTemplate`/`backTemplate`.
|
|
239
|
-
*/
|
|
240
|
-
pdf?: string;
|
|
241
|
-
}
|
|
242
|
-
export interface PostcardListParams extends SkipLimitParams {
|
|
243
|
-
/**
|
|
244
|
-
* You can supply any string to help narrow down the list of resources. For
|
|
245
|
-
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
246
|
-
* that string present somewhere in their response. Alternatively, you can supply a
|
|
247
|
-
* structured search query. See the documentation on `StructuredSearchQuery` for
|
|
248
|
-
* more details.
|
|
249
|
-
*/
|
|
250
|
-
search?: string;
|
|
251
|
-
}
|
|
252
|
-
export declare namespace Postcards {
|
|
253
|
-
export { type PostcardProfile as PostcardProfile, type PostcardSize as PostcardSize, type PostcardDeleteResponse as PostcardDeleteResponse, type PostcardProfilesSkipLimit as PostcardProfilesSkipLimit, type PostcardCreateParams as PostcardCreateParams, type PostcardRetrieveParams as PostcardRetrieveParams, type PostcardUpdateParams as PostcardUpdateParams, type PostcardListParams as PostcardListParams, };
|
|
254
|
-
}
|
|
255
|
-
//# sourceMappingURL=postcards.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcards.d.ts","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/postcards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAS3F;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IASvG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG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G;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAE5C;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Postcards = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../../../core/pagination.js");
|
|
7
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
-
class Postcards extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Creates a new Postcard Profile. Provide either `frontTemplate` and
|
|
11
|
-
* `backTemplate` IDs, or upload a 2-page `pdf`. If providing a `pdf`, the request
|
|
12
|
-
* `Content-Type` must be `multipart/form-data`.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const postcardProfile =
|
|
17
|
-
* await client.printMail.orderProfiles.postcards.create({
|
|
18
|
-
* size: '6x4',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(params, options) {
|
|
23
|
-
const { expand, ...body } = params;
|
|
24
|
-
return this._client.post('/print-mail/v1/order_profiles/postcards', {
|
|
25
|
-
query: { expand },
|
|
26
|
-
body,
|
|
27
|
-
...options,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Retrieves the details of a specific Postcard Profile.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const postcardProfile =
|
|
36
|
-
* await client.printMail.orderProfiles.postcards.retrieve(
|
|
37
|
-
* 'id',
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
retrieve(id, query = {}, options) {
|
|
42
|
-
return this._client.get((0, path_1.path) `/print-mail/v1/order_profiles/postcards/${id}`, { query, ...options });
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Updates specific fields of an existing Postcard Profile. If providing a `pdf`,
|
|
46
|
-
* the request `Content-Type` must be `multipart/form-data`.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const postcardProfile =
|
|
51
|
-
* await client.printMail.orderProfiles.postcards.update(
|
|
52
|
-
* 'id',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
update(id, params, options) {
|
|
57
|
-
const { expand, ...body } = params;
|
|
58
|
-
return this._client.post((0, path_1.path) `/print-mail/v1/order_profiles/postcards/${id}`, {
|
|
59
|
-
query: { expand },
|
|
60
|
-
body,
|
|
61
|
-
...options,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Retrieves a list of Postcard Profiles.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* // Automatically fetches more pages as needed.
|
|
70
|
-
* for await (const postcardProfile of client.printMail.orderProfiles.postcards.list()) {
|
|
71
|
-
* // ...
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
list(query = {}, options) {
|
|
76
|
-
return this._client.getAPIList('/print-mail/v1/order_profiles/postcards', (pagination_1.SkipLimit), {
|
|
77
|
-
query,
|
|
78
|
-
...options,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Deletes a Postcard Profile.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```ts
|
|
86
|
-
* const postcard =
|
|
87
|
-
* await client.printMail.orderProfiles.postcards.delete(
|
|
88
|
-
* 'id',
|
|
89
|
-
* );
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
delete(id, options) {
|
|
93
|
-
return this._client.delete((0, path_1.path) `/print-mail/v1/order_profiles/postcards/${id}`, options);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.Postcards = Postcards;
|
|
97
|
-
//# sourceMappingURL=postcards.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcards.js","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/postcards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAwF;AAExF,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,MAA4B,EAAE,OAAwB;QACvE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE;YAC5E,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yCAAyC,EAAE,CAAA,sBAA0B,CAAA,EAAE;YACpG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2CAA2C,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;CACF;AAlGD,8BAkGC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { SkipLimit } from "../../../core/pagination.mjs";
|
|
4
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
-
export class Postcards extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a new Postcard Profile. Provide either `frontTemplate` and
|
|
8
|
-
* `backTemplate` IDs, or upload a 2-page `pdf`. If providing a `pdf`, the request
|
|
9
|
-
* `Content-Type` must be `multipart/form-data`.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const postcardProfile =
|
|
14
|
-
* await client.printMail.orderProfiles.postcards.create({
|
|
15
|
-
* size: '6x4',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(params, options) {
|
|
20
|
-
const { expand, ...body } = params;
|
|
21
|
-
return this._client.post('/print-mail/v1/order_profiles/postcards', {
|
|
22
|
-
query: { expand },
|
|
23
|
-
body,
|
|
24
|
-
...options,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves the details of a specific Postcard Profile.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const postcardProfile =
|
|
33
|
-
* await client.printMail.orderProfiles.postcards.retrieve(
|
|
34
|
-
* 'id',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(id, query = {}, options) {
|
|
39
|
-
return this._client.get(path `/print-mail/v1/order_profiles/postcards/${id}`, { query, ...options });
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Updates specific fields of an existing Postcard Profile. If providing a `pdf`,
|
|
43
|
-
* the request `Content-Type` must be `multipart/form-data`.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const postcardProfile =
|
|
48
|
-
* await client.printMail.orderProfiles.postcards.update(
|
|
49
|
-
* 'id',
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
update(id, params, options) {
|
|
54
|
-
const { expand, ...body } = params;
|
|
55
|
-
return this._client.post(path `/print-mail/v1/order_profiles/postcards/${id}`, {
|
|
56
|
-
query: { expand },
|
|
57
|
-
body,
|
|
58
|
-
...options,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves a list of Postcard Profiles.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* // Automatically fetches more pages as needed.
|
|
67
|
-
* for await (const postcardProfile of client.printMail.orderProfiles.postcards.list()) {
|
|
68
|
-
* // ...
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
list(query = {}, options) {
|
|
73
|
-
return this._client.getAPIList('/print-mail/v1/order_profiles/postcards', (SkipLimit), {
|
|
74
|
-
query,
|
|
75
|
-
...options,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Deletes a Postcard Profile.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const postcard =
|
|
84
|
-
* await client.printMail.orderProfiles.postcards.delete(
|
|
85
|
-
* 'id',
|
|
86
|
-
* );
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
delete(id, options) {
|
|
90
|
-
return this._client.delete(path `/print-mail/v1/order_profiles/postcards/${id}`, options);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=postcards.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcards.mjs","sourceRoot":"","sources":["../../../src/resources/print-mail/order-profiles/postcards.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,SAAS,EAAwB;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,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