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
|
@@ -5,7 +5,143 @@ import * as AddressVerificationAPI from './address-verification';
|
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* International Address Verification API.
|
|
10
|
+
*
|
|
11
|
+
* Provides endpoints to verify and standardize international addresses,
|
|
12
|
+
* supporting both structured and freeform inputs.
|
|
13
|
+
*/
|
|
8
14
|
export class IntlAddressVerification extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Resolves an address preview `id` (from `GET /completions`) into a full address.
|
|
17
|
+
*
|
|
18
|
+
* Optionally verifies the resolved address through the standard US/CA verifier
|
|
19
|
+
* when `verify=true` is supplied and the address is in the US or Canada.
|
|
20
|
+
*
|
|
21
|
+
* - Uses 1 lookup per call.
|
|
22
|
+
* - When `verify=true` resolves a US or CA address, the response will be a
|
|
23
|
+
* `VerifiedAddress` instead of an `IntlAddressCompletion`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const response =
|
|
28
|
+
* await client.intlAddressVerification.autocomplete({
|
|
29
|
+
* id: 'id',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
autocomplete(
|
|
34
|
+
params: IntlAddressVerificationAutocompleteParams,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<IntlAddressVerificationAutocompleteResponse> {
|
|
37
|
+
const { includeDetails, properCase, useEnhancedChinaDataset, verify, ...body } = params;
|
|
38
|
+
return this._client.post('/v1/intl_addver/completions', {
|
|
39
|
+
query: { includeDetails, properCase, useEnhancedChinaDataset, verify },
|
|
40
|
+
body,
|
|
41
|
+
...options,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Verify a batch of international addresses in a single request. Each address can
|
|
47
|
+
* be freeform or structured, matching the same input formats accepted by the
|
|
48
|
+
* single verification endpoint.
|
|
49
|
+
*
|
|
50
|
+
* - Uses 1 lookup per address.
|
|
51
|
+
* - Requires a secret API key.
|
|
52
|
+
* - Returns results in the same order as the input addresses.
|
|
53
|
+
* - If an individual address fails, its result will contain an `error` field
|
|
54
|
+
* rather than a `verifiedAddress`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response =
|
|
59
|
+
* await client.intlAddressVerification.batchVerification({
|
|
60
|
+
* addresses: [
|
|
61
|
+
* {
|
|
62
|
+
* address: {
|
|
63
|
+
* country: 'country',
|
|
64
|
+
* line1: 'line1',
|
|
65
|
+
* postalOrZip: 'postalOrZip',
|
|
66
|
+
* provinceOrState: 'provinceOrState',
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
batchVerification(
|
|
74
|
+
params: IntlAddressVerificationBatchVerificationParams,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): APIPromise<IntlAddressVerificationBatchVerificationResponse> {
|
|
77
|
+
const { geoData, includeDetails, properCase, useEnhancedChinaDataset, ...body } = params;
|
|
78
|
+
return this._client.post('/v1/intl_addver/verifications/batch', {
|
|
79
|
+
query: { geoData, includeDetails, properCase, useEnhancedChinaDataset },
|
|
80
|
+
body,
|
|
81
|
+
...options,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Returns address completion previews for a partial address string, suitable for
|
|
87
|
+
* populating an autocomplete dropdown.
|
|
88
|
+
*
|
|
89
|
+
* **Regular mode** — supply `partialStreet` to search by partial street address.
|
|
90
|
+
* Results may include `Address` types (resolvable directly) and `Container` types
|
|
91
|
+
* (buildings/complexes that require a follow-up call).
|
|
92
|
+
*
|
|
93
|
+
* **Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
|
|
94
|
+
* regular call) to drill into a building or complex and retrieve individual unit
|
|
95
|
+
* addresses.
|
|
96
|
+
*
|
|
97
|
+
* Results with `type: "Address"` can be fully resolved by passing their `id` to
|
|
98
|
+
* `POST /completions`.
|
|
99
|
+
*
|
|
100
|
+
* - Does not consume a lookup.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const response =
|
|
105
|
+
* await client.intlAddressVerification.getAutocompleteAdvancedPreviews();
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
getAutocompleteAdvancedPreviews(
|
|
109
|
+
query: IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams | null | undefined = {},
|
|
110
|
+
options?: RequestOptions,
|
|
111
|
+
): APIPromise<IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse> {
|
|
112
|
+
return this._client.get('/v1/intl_addver/completions', { query, ...options });
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Returns address completion previews for a partial address string, suitable for
|
|
117
|
+
* populating an autocomplete dropdown.
|
|
118
|
+
*
|
|
119
|
+
* **Regular mode** — supply `partialStreet` to search by partial street address.
|
|
120
|
+
* Results may include `Address` types (resolvable directly) and `Container` types
|
|
121
|
+
* (buildings/complexes that require a follow-up call).
|
|
122
|
+
*
|
|
123
|
+
* **Advanced mode** — supply `advanced=true` and a `container` ID (from a previous
|
|
124
|
+
* regular call) to drill into a building or complex and retrieve individual unit
|
|
125
|
+
* addresses.
|
|
126
|
+
*
|
|
127
|
+
* Results with `type: "Address"` can be fully resolved by passing their `id` to
|
|
128
|
+
* `POST /completions`.
|
|
129
|
+
*
|
|
130
|
+
* - Does not consume a lookup.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* const response =
|
|
135
|
+
* await client.intlAddressVerification.getAutocompletePreviews();
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
getAutocompletePreviews(
|
|
139
|
+
query: IntlAddressVerificationGetAutocompletePreviewsParams | null | undefined = {},
|
|
140
|
+
options?: RequestOptions,
|
|
141
|
+
): APIPromise<IntlAddressVerificationGetAutocompletePreviewsResponse> {
|
|
142
|
+
return this._client.get('/v1/intl_addver/completions', { query, ...options });
|
|
143
|
+
}
|
|
144
|
+
|
|
9
145
|
/**
|
|
10
146
|
* Verify and standardize an international address.
|
|
11
147
|
*
|
|
@@ -18,33 +154,7 @@ export class IntlAddressVerification extends APIResource {
|
|
|
18
154
|
* ```ts
|
|
19
155
|
* const response =
|
|
20
156
|
* await client.intlAddressVerification.verify({
|
|
21
|
-
* address: {
|
|
22
|
-
* '0': '3',
|
|
23
|
-
* '1': '1',
|
|
24
|
-
* '2': ' ',
|
|
25
|
-
* '3': 'F',
|
|
26
|
-
* '4': 'l',
|
|
27
|
-
* '5': ' ',
|
|
28
|
-
* '6': 'S',
|
|
29
|
-
* '7': 'c',
|
|
30
|
-
* '8': 'a',
|
|
31
|
-
* '9': 'r',
|
|
32
|
-
* '10': 'b',
|
|
33
|
-
* '11': 'o',
|
|
34
|
-
* '12': 'r',
|
|
35
|
-
* '13': 'o',
|
|
36
|
-
* '14': 'u',
|
|
37
|
-
* '15': 'g',
|
|
38
|
-
* '16': 'h',
|
|
39
|
-
* '17': ',',
|
|
40
|
-
* '18': ' ',
|
|
41
|
-
* '19': 'C',
|
|
42
|
-
* '20': 'a',
|
|
43
|
-
* '21': 'n',
|
|
44
|
-
* '22': 'a',
|
|
45
|
-
* '23': 'd',
|
|
46
|
-
* '24': 'a',
|
|
47
|
-
* },
|
|
157
|
+
* address: {},
|
|
48
158
|
* });
|
|
49
159
|
* ```
|
|
50
160
|
*/
|
|
@@ -61,22 +171,104 @@ export class IntlAddressVerification extends APIResource {
|
|
|
61
171
|
}
|
|
62
172
|
}
|
|
63
173
|
|
|
64
|
-
export interface
|
|
174
|
+
export interface IntlAddressVerificationAutocompleteResponse {
|
|
65
175
|
/**
|
|
66
|
-
*
|
|
176
|
+
* A fully resolved international address returned by `POST /completions`.
|
|
67
177
|
*/
|
|
68
|
-
data:
|
|
178
|
+
data:
|
|
179
|
+
| IntlAddressVerificationAutocompleteResponse.IntlAddressCompletion
|
|
180
|
+
| IntlAddressVerificationAutocompleteResponse.VerifiedAddress;
|
|
69
181
|
|
|
70
182
|
message: string;
|
|
71
183
|
|
|
72
184
|
status: 'success' | 'error';
|
|
73
185
|
}
|
|
74
186
|
|
|
75
|
-
export namespace
|
|
187
|
+
export namespace IntlAddressVerificationAutocompleteResponse {
|
|
188
|
+
/**
|
|
189
|
+
* A fully resolved international address returned by `POST /completions`.
|
|
190
|
+
*/
|
|
191
|
+
export interface IntlAddressCompletion {
|
|
192
|
+
/**
|
|
193
|
+
* The building name, if applicable.
|
|
194
|
+
*/
|
|
195
|
+
building?: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The city or locality.
|
|
199
|
+
*/
|
|
200
|
+
city?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The company or organization name, if applicable.
|
|
204
|
+
*/
|
|
205
|
+
company?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The country name.
|
|
209
|
+
*/
|
|
210
|
+
country?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The ISO 2-letter country code.
|
|
214
|
+
*/
|
|
215
|
+
countryCode?: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The department or floor, if applicable.
|
|
219
|
+
*/
|
|
220
|
+
department?: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* An error message if resolution failed.
|
|
224
|
+
*/
|
|
225
|
+
error?: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The full formatted address string.
|
|
229
|
+
*/
|
|
230
|
+
formattedAddress?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The first address line.
|
|
234
|
+
*/
|
|
235
|
+
line1?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The second address line.
|
|
239
|
+
*/
|
|
240
|
+
line2?: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The third address line.
|
|
244
|
+
*/
|
|
245
|
+
line3?: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The fourth address line.
|
|
249
|
+
*/
|
|
250
|
+
line4?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The postal or ZIP code.
|
|
254
|
+
*/
|
|
255
|
+
postalOrZip?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The province or state code.
|
|
259
|
+
*/
|
|
260
|
+
provinceCode?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* The province or state name.
|
|
264
|
+
*/
|
|
265
|
+
provinceOrState?: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
76
268
|
/**
|
|
77
269
|
* The result of a verified international address.
|
|
78
270
|
*/
|
|
79
|
-
export interface
|
|
271
|
+
export interface VerifiedAddress {
|
|
80
272
|
/**
|
|
81
273
|
* The city or locality.
|
|
82
274
|
*/
|
|
@@ -111,7 +303,7 @@ export namespace IntlAddressVerificationVerifyResponse {
|
|
|
111
303
|
* Additional details about the verified address, such as premise, thoroughfare,
|
|
112
304
|
* and locality.
|
|
113
305
|
*/
|
|
114
|
-
details?:
|
|
306
|
+
details?: VerifiedAddress.Details;
|
|
115
307
|
|
|
116
308
|
/**
|
|
117
309
|
* Errors encountered during address verification.
|
|
@@ -131,7 +323,7 @@ export namespace IntlAddressVerificationVerifyResponse {
|
|
|
131
323
|
/**
|
|
132
324
|
* Geocoding result for the verified address.
|
|
133
325
|
*/
|
|
134
|
-
geoData?:
|
|
326
|
+
geoData?: VerifiedAddress.GeoData;
|
|
135
327
|
|
|
136
328
|
/**
|
|
137
329
|
* The second address line.
|
|
@@ -151,7 +343,7 @@ export namespace IntlAddressVerificationVerifyResponse {
|
|
|
151
343
|
/**
|
|
152
344
|
* A summary of the verification process and match levels.
|
|
153
345
|
*/
|
|
154
|
-
summary?:
|
|
346
|
+
summary?: VerifiedAddress.Summary;
|
|
155
347
|
|
|
156
348
|
/**
|
|
157
349
|
* The ZIP+4 code (for US addresses).
|
|
@@ -159,7 +351,7 @@ export namespace IntlAddressVerificationVerifyResponse {
|
|
|
159
351
|
zipPlus4?: string;
|
|
160
352
|
}
|
|
161
353
|
|
|
162
|
-
export namespace
|
|
354
|
+
export namespace VerifiedAddress {
|
|
163
355
|
/**
|
|
164
356
|
* Additional details about the verified address, such as premise, thoroughfare,
|
|
165
357
|
* and locality.
|
|
@@ -403,6 +595,982 @@ export namespace IntlAddressVerificationVerifyResponse {
|
|
|
403
595
|
}
|
|
404
596
|
}
|
|
405
597
|
|
|
598
|
+
export interface IntlAddressVerificationBatchVerificationResponse {
|
|
599
|
+
data: IntlAddressVerificationBatchVerificationResponse.Data;
|
|
600
|
+
|
|
601
|
+
message: string;
|
|
602
|
+
|
|
603
|
+
status: 'success' | 'error';
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export namespace IntlAddressVerificationBatchVerificationResponse {
|
|
607
|
+
export interface Data {
|
|
608
|
+
results: Array<Data.Result>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export namespace Data {
|
|
612
|
+
export interface Result {
|
|
613
|
+
/**
|
|
614
|
+
* An error message for this address. Present when verification failed.
|
|
615
|
+
*/
|
|
616
|
+
error?: string;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* The result of a verified international address.
|
|
620
|
+
*/
|
|
621
|
+
verifiedAddress?: Result.VerifiedAddress;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export namespace Result {
|
|
625
|
+
/**
|
|
626
|
+
* The result of a verified international address.
|
|
627
|
+
*/
|
|
628
|
+
export interface VerifiedAddress {
|
|
629
|
+
/**
|
|
630
|
+
* The city or locality.
|
|
631
|
+
*/
|
|
632
|
+
city: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* The country code (ISO 3166-1 alpha-2).
|
|
636
|
+
*/
|
|
637
|
+
country: string;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* The first address line.
|
|
641
|
+
*/
|
|
642
|
+
line1: string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* The postal or ZIP code.
|
|
646
|
+
*/
|
|
647
|
+
postalOrZip: string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* The province or state.
|
|
651
|
+
*/
|
|
652
|
+
provinceOrState: string;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* The full country name.
|
|
656
|
+
*/
|
|
657
|
+
countryName?: string;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Additional details about the verified address, such as premise, thoroughfare,
|
|
661
|
+
* and locality.
|
|
662
|
+
*/
|
|
663
|
+
details?: VerifiedAddress.Details;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Errors encountered during address verification.
|
|
667
|
+
*/
|
|
668
|
+
errors?: AddressVerificationAPI.Errors;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* The firm or company name, if available.
|
|
672
|
+
*/
|
|
673
|
+
firmName?: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* The formatted address string.
|
|
677
|
+
*/
|
|
678
|
+
formattedAddress?: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Geocoding result for the verified address.
|
|
682
|
+
*/
|
|
683
|
+
geoData?: VerifiedAddress.GeoData;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* The second address line.
|
|
687
|
+
*/
|
|
688
|
+
line2?: string;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* The third address line, if available.
|
|
692
|
+
*/
|
|
693
|
+
line3?: string;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* The verification status of an address.
|
|
697
|
+
*/
|
|
698
|
+
status?: AddressVerificationAPI.Status;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* A summary of the verification process and match levels.
|
|
702
|
+
*/
|
|
703
|
+
summary?: VerifiedAddress.Summary;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* The ZIP+4 code (for US addresses).
|
|
707
|
+
*/
|
|
708
|
+
zipPlus4?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export namespace VerifiedAddress {
|
|
712
|
+
/**
|
|
713
|
+
* Additional details about the verified address, such as premise, thoroughfare,
|
|
714
|
+
* and locality.
|
|
715
|
+
*/
|
|
716
|
+
export interface Details {
|
|
717
|
+
/**
|
|
718
|
+
* The building name or number.
|
|
719
|
+
*/
|
|
720
|
+
building?: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* The type of building (e.g., apartment, office).
|
|
724
|
+
*/
|
|
725
|
+
buildingType?: string;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* The full city name.
|
|
729
|
+
*/
|
|
730
|
+
cityName?: string;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Secondary city information.
|
|
734
|
+
*/
|
|
735
|
+
citySecondary?: string;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* The type of city (e.g., city, town, village).
|
|
739
|
+
*/
|
|
740
|
+
cityType?: string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* The full delivery address.
|
|
744
|
+
*/
|
|
745
|
+
deliveryAddress?: string;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* The dependent locality (UK addresses).
|
|
749
|
+
*/
|
|
750
|
+
dependentLocality?: string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* The double dependent locality (UK addresses).
|
|
754
|
+
*/
|
|
755
|
+
doubleDependentLocality?: string;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* The organization or company name.
|
|
759
|
+
*/
|
|
760
|
+
organization?: string;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* The primary part of the postal or ZIP code.
|
|
764
|
+
*/
|
|
765
|
+
postalOrZipPrimary?: string;
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* The secondary part of the postal or ZIP code.
|
|
769
|
+
*/
|
|
770
|
+
postalOrZipSecondary?: string;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* The post box number.
|
|
774
|
+
*/
|
|
775
|
+
postBox?: string;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* The premise name or number.
|
|
779
|
+
*/
|
|
780
|
+
premise?: string;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* The premise number.
|
|
784
|
+
*/
|
|
785
|
+
premiseNumber?: string;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Secondary premise information.
|
|
789
|
+
*/
|
|
790
|
+
premiseSecondary?: string;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* The type of premise (e.g., house, flat).
|
|
794
|
+
*/
|
|
795
|
+
premiseType?: string;
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* The full name of the province or state.
|
|
799
|
+
*/
|
|
800
|
+
provinceOrStateName?: string;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* The type of province or state (e.g., province, state, region).
|
|
804
|
+
*/
|
|
805
|
+
provinceOrStateType?: string;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* The street name.
|
|
809
|
+
*/
|
|
810
|
+
street?: string;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* The directional suffix for the street (e.g., N, S, E, W).
|
|
814
|
+
*/
|
|
815
|
+
streetPostDirection?: string;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* The directional prefix for the street (e.g., N, S, E, W).
|
|
819
|
+
*/
|
|
820
|
+
streetPreDirection?: string;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* The type of street (e.g., St, Ave, Blvd).
|
|
824
|
+
*/
|
|
825
|
+
streetType?: string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* The sub-administrative area.
|
|
829
|
+
*/
|
|
830
|
+
subAdministrativeArea?: string;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* The sub-building name or number (e.g., unit, suite).
|
|
834
|
+
*/
|
|
835
|
+
subBuilding?: string;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* The floor of the sub-building.
|
|
839
|
+
*/
|
|
840
|
+
SubBuildingFloor?: string;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* The sub-building number.
|
|
844
|
+
*/
|
|
845
|
+
subBuildingNumber?: string;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* The type of sub-building (e.g., floor, wing).
|
|
849
|
+
*/
|
|
850
|
+
subBuildingType?: string;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* The sub-street name.
|
|
854
|
+
*/
|
|
855
|
+
subStreet?: string;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* The directional suffix for the sub-street.
|
|
859
|
+
*/
|
|
860
|
+
subStreetPostDirection?: string;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* The directional prefix for the sub-street.
|
|
864
|
+
*/
|
|
865
|
+
subStreetPreDirection?: string;
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* The type of sub-street.
|
|
869
|
+
*/
|
|
870
|
+
subStreetType?: string;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The super-administrative area.
|
|
874
|
+
*/
|
|
875
|
+
superAdministrativeArea?: string;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* The telephone number associated with the address.
|
|
879
|
+
*/
|
|
880
|
+
telephone?: string;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Geocoding result for the verified address.
|
|
885
|
+
*/
|
|
886
|
+
export interface GeoData {
|
|
887
|
+
/**
|
|
888
|
+
* The geocode accuracy.
|
|
889
|
+
*/
|
|
890
|
+
geoAccuracy?: string;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* The latitude of the address.
|
|
894
|
+
*/
|
|
895
|
+
latitude?: string;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* The longitude of the address.
|
|
899
|
+
*/
|
|
900
|
+
longitude?: string;
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* A summary of the verification process and match levels.
|
|
905
|
+
*/
|
|
906
|
+
export interface Summary {
|
|
907
|
+
/**
|
|
908
|
+
* Context identification match level.
|
|
909
|
+
*/
|
|
910
|
+
contextIdentificationMatchLevel?: string;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Lexicon identification match level.
|
|
914
|
+
*/
|
|
915
|
+
lexiconIdentificationMatchLevel?: string;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* The match score (0-100).
|
|
919
|
+
*/
|
|
920
|
+
matchScore?: number;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Additional message about the verification.
|
|
924
|
+
*/
|
|
925
|
+
message?: string;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* The parsing status of the address.
|
|
929
|
+
*/
|
|
930
|
+
parsingStatus?: string;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The status of the postal code.
|
|
934
|
+
*/
|
|
935
|
+
postCodeStatus?: string;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* The match level after post-processing.
|
|
939
|
+
*/
|
|
940
|
+
postProcessedVerificationMatchLevel?: string;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* The match level before post-processing.
|
|
944
|
+
*/
|
|
945
|
+
preProcessedVerificationMatchLevel?: string;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* The overall verification status.
|
|
949
|
+
*/
|
|
950
|
+
verificationStatus?: string;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse {
|
|
958
|
+
data: Array<IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse.Data>;
|
|
959
|
+
|
|
960
|
+
message: string;
|
|
961
|
+
|
|
962
|
+
status: 'success' | 'error';
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
export namespace IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse {
|
|
966
|
+
/**
|
|
967
|
+
* A single address suggestion returned by `GET /completions`. Use the `id` field
|
|
968
|
+
* to retrieve the full address via `POST /completions`.
|
|
969
|
+
*/
|
|
970
|
+
export interface Data {
|
|
971
|
+
/**
|
|
972
|
+
* The unique identifier for this result. Pass this to `POST /completions` to
|
|
973
|
+
* retrieve the full address. If the `type` is `Container`, pass it as the
|
|
974
|
+
* `container` parameter to `GET /completions` to drill down further.
|
|
975
|
+
*/
|
|
976
|
+
id?: string;
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* A secondary description of the result (e.g. city and country).
|
|
980
|
+
*/
|
|
981
|
+
description?: string;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* An error message if the lookup failed for this result.
|
|
985
|
+
*/
|
|
986
|
+
error?: string;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Character ranges within `text` that match the search input, for bolding in UI.
|
|
990
|
+
*/
|
|
991
|
+
highlight?: string;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* The human-readable address suggestion text.
|
|
995
|
+
*/
|
|
996
|
+
text?: string;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* The type of result. `Address` means this can be resolved directly via
|
|
1000
|
+
* `POST /completions`. `Container` means the result represents a building or
|
|
1001
|
+
* complex — perform another `GET /completions` with this `id` as `container` to
|
|
1002
|
+
* get individual unit addresses.
|
|
1003
|
+
*/
|
|
1004
|
+
type?: string;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export interface IntlAddressVerificationGetAutocompletePreviewsResponse {
|
|
1009
|
+
data: Array<IntlAddressVerificationGetAutocompletePreviewsResponse.Data>;
|
|
1010
|
+
|
|
1011
|
+
message: string;
|
|
1012
|
+
|
|
1013
|
+
status: 'success' | 'error';
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
export namespace IntlAddressVerificationGetAutocompletePreviewsResponse {
|
|
1017
|
+
/**
|
|
1018
|
+
* A single address suggestion returned by `GET /completions`. Use the `id` field
|
|
1019
|
+
* to retrieve the full address via `POST /completions`.
|
|
1020
|
+
*/
|
|
1021
|
+
export interface Data {
|
|
1022
|
+
/**
|
|
1023
|
+
* The unique identifier for this result. Pass this to `POST /completions` to
|
|
1024
|
+
* retrieve the full address. If the `type` is `Container`, pass it as the
|
|
1025
|
+
* `container` parameter to `GET /completions` to drill down further.
|
|
1026
|
+
*/
|
|
1027
|
+
id?: string;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* A secondary description of the result (e.g. city and country).
|
|
1031
|
+
*/
|
|
1032
|
+
description?: string;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* An error message if the lookup failed for this result.
|
|
1036
|
+
*/
|
|
1037
|
+
error?: string;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Character ranges within `text` that match the search input, for bolding in UI.
|
|
1041
|
+
*/
|
|
1042
|
+
highlight?: string;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* The human-readable address suggestion text.
|
|
1046
|
+
*/
|
|
1047
|
+
text?: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* The type of result. `Address` means this can be resolved directly via
|
|
1051
|
+
* `POST /completions`. `Container` means the result represents a building or
|
|
1052
|
+
* complex — perform another `GET /completions` with this `id` as `container` to
|
|
1053
|
+
* get individual unit addresses.
|
|
1054
|
+
*/
|
|
1055
|
+
type?: string;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export interface IntlAddressVerificationVerifyResponse {
|
|
1060
|
+
/**
|
|
1061
|
+
* The result of a verified international address.
|
|
1062
|
+
*/
|
|
1063
|
+
data: IntlAddressVerificationVerifyResponse.Data;
|
|
1064
|
+
|
|
1065
|
+
message: string;
|
|
1066
|
+
|
|
1067
|
+
status: 'success' | 'error';
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export namespace IntlAddressVerificationVerifyResponse {
|
|
1071
|
+
/**
|
|
1072
|
+
* The result of a verified international address.
|
|
1073
|
+
*/
|
|
1074
|
+
export interface Data {
|
|
1075
|
+
/**
|
|
1076
|
+
* The city or locality.
|
|
1077
|
+
*/
|
|
1078
|
+
city: string;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* The country code (ISO 3166-1 alpha-2).
|
|
1082
|
+
*/
|
|
1083
|
+
country: string;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* The first address line.
|
|
1087
|
+
*/
|
|
1088
|
+
line1: string;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* The postal or ZIP code.
|
|
1092
|
+
*/
|
|
1093
|
+
postalOrZip: string;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* The province or state.
|
|
1097
|
+
*/
|
|
1098
|
+
provinceOrState: string;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* The full country name.
|
|
1102
|
+
*/
|
|
1103
|
+
countryName?: string;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Additional details about the verified address, such as premise, thoroughfare,
|
|
1107
|
+
* and locality.
|
|
1108
|
+
*/
|
|
1109
|
+
details?: Data.Details;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Errors encountered during address verification.
|
|
1113
|
+
*/
|
|
1114
|
+
errors?: AddressVerificationAPI.Errors;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* The firm or company name, if available.
|
|
1118
|
+
*/
|
|
1119
|
+
firmName?: string;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* The formatted address string.
|
|
1123
|
+
*/
|
|
1124
|
+
formattedAddress?: string;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Geocoding result for the verified address.
|
|
1128
|
+
*/
|
|
1129
|
+
geoData?: Data.GeoData;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* The second address line.
|
|
1133
|
+
*/
|
|
1134
|
+
line2?: string;
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* The third address line, if available.
|
|
1138
|
+
*/
|
|
1139
|
+
line3?: string;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* The verification status of an address.
|
|
1143
|
+
*/
|
|
1144
|
+
status?: AddressVerificationAPI.Status;
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* A summary of the verification process and match levels.
|
|
1148
|
+
*/
|
|
1149
|
+
summary?: Data.Summary;
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* The ZIP+4 code (for US addresses).
|
|
1153
|
+
*/
|
|
1154
|
+
zipPlus4?: string;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export namespace Data {
|
|
1158
|
+
/**
|
|
1159
|
+
* Additional details about the verified address, such as premise, thoroughfare,
|
|
1160
|
+
* and locality.
|
|
1161
|
+
*/
|
|
1162
|
+
export interface Details {
|
|
1163
|
+
/**
|
|
1164
|
+
* The building name or number.
|
|
1165
|
+
*/
|
|
1166
|
+
building?: string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* The type of building (e.g., apartment, office).
|
|
1170
|
+
*/
|
|
1171
|
+
buildingType?: string;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* The full city name.
|
|
1175
|
+
*/
|
|
1176
|
+
cityName?: string;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* Secondary city information.
|
|
1180
|
+
*/
|
|
1181
|
+
citySecondary?: string;
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* The type of city (e.g., city, town, village).
|
|
1185
|
+
*/
|
|
1186
|
+
cityType?: string;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* The full delivery address.
|
|
1190
|
+
*/
|
|
1191
|
+
deliveryAddress?: string;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* The dependent locality (UK addresses).
|
|
1195
|
+
*/
|
|
1196
|
+
dependentLocality?: string;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* The double dependent locality (UK addresses).
|
|
1200
|
+
*/
|
|
1201
|
+
doubleDependentLocality?: string;
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* The organization or company name.
|
|
1205
|
+
*/
|
|
1206
|
+
organization?: string;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* The primary part of the postal or ZIP code.
|
|
1210
|
+
*/
|
|
1211
|
+
postalOrZipPrimary?: string;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* The secondary part of the postal or ZIP code.
|
|
1215
|
+
*/
|
|
1216
|
+
postalOrZipSecondary?: string;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* The post box number.
|
|
1220
|
+
*/
|
|
1221
|
+
postBox?: string;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* The premise name or number.
|
|
1225
|
+
*/
|
|
1226
|
+
premise?: string;
|
|
1227
|
+
|
|
1228
|
+
/**
|
|
1229
|
+
* The premise number.
|
|
1230
|
+
*/
|
|
1231
|
+
premiseNumber?: string;
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Secondary premise information.
|
|
1235
|
+
*/
|
|
1236
|
+
premiseSecondary?: string;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* The type of premise (e.g., house, flat).
|
|
1240
|
+
*/
|
|
1241
|
+
premiseType?: string;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* The full name of the province or state.
|
|
1245
|
+
*/
|
|
1246
|
+
provinceOrStateName?: string;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* The type of province or state (e.g., province, state, region).
|
|
1250
|
+
*/
|
|
1251
|
+
provinceOrStateType?: string;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* The street name.
|
|
1255
|
+
*/
|
|
1256
|
+
street?: string;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* The directional suffix for the street (e.g., N, S, E, W).
|
|
1260
|
+
*/
|
|
1261
|
+
streetPostDirection?: string;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* The directional prefix for the street (e.g., N, S, E, W).
|
|
1265
|
+
*/
|
|
1266
|
+
streetPreDirection?: string;
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* The type of street (e.g., St, Ave, Blvd).
|
|
1270
|
+
*/
|
|
1271
|
+
streetType?: string;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* The sub-administrative area.
|
|
1275
|
+
*/
|
|
1276
|
+
subAdministrativeArea?: string;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* The sub-building name or number (e.g., unit, suite).
|
|
1280
|
+
*/
|
|
1281
|
+
subBuilding?: string;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* The floor of the sub-building.
|
|
1285
|
+
*/
|
|
1286
|
+
SubBuildingFloor?: string;
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* The sub-building number.
|
|
1290
|
+
*/
|
|
1291
|
+
subBuildingNumber?: string;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* The type of sub-building (e.g., floor, wing).
|
|
1295
|
+
*/
|
|
1296
|
+
subBuildingType?: string;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* The sub-street name.
|
|
1300
|
+
*/
|
|
1301
|
+
subStreet?: string;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* The directional suffix for the sub-street.
|
|
1305
|
+
*/
|
|
1306
|
+
subStreetPostDirection?: string;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* The directional prefix for the sub-street.
|
|
1310
|
+
*/
|
|
1311
|
+
subStreetPreDirection?: string;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* The type of sub-street.
|
|
1315
|
+
*/
|
|
1316
|
+
subStreetType?: string;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* The super-administrative area.
|
|
1320
|
+
*/
|
|
1321
|
+
superAdministrativeArea?: string;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* The telephone number associated with the address.
|
|
1325
|
+
*/
|
|
1326
|
+
telephone?: string;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Geocoding result for the verified address.
|
|
1331
|
+
*/
|
|
1332
|
+
export interface GeoData {
|
|
1333
|
+
/**
|
|
1334
|
+
* The geocode accuracy.
|
|
1335
|
+
*/
|
|
1336
|
+
geoAccuracy?: string;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* The latitude of the address.
|
|
1340
|
+
*/
|
|
1341
|
+
latitude?: string;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* The longitude of the address.
|
|
1345
|
+
*/
|
|
1346
|
+
longitude?: string;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* A summary of the verification process and match levels.
|
|
1351
|
+
*/
|
|
1352
|
+
export interface Summary {
|
|
1353
|
+
/**
|
|
1354
|
+
* Context identification match level.
|
|
1355
|
+
*/
|
|
1356
|
+
contextIdentificationMatchLevel?: string;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Lexicon identification match level.
|
|
1360
|
+
*/
|
|
1361
|
+
lexiconIdentificationMatchLevel?: string;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* The match score (0-100).
|
|
1365
|
+
*/
|
|
1366
|
+
matchScore?: number;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Additional message about the verification.
|
|
1370
|
+
*/
|
|
1371
|
+
message?: string;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* The parsing status of the address.
|
|
1375
|
+
*/
|
|
1376
|
+
parsingStatus?: string;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* The status of the postal code.
|
|
1380
|
+
*/
|
|
1381
|
+
postCodeStatus?: string;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* The match level after post-processing.
|
|
1385
|
+
*/
|
|
1386
|
+
postProcessedVerificationMatchLevel?: string;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* The match level before post-processing.
|
|
1390
|
+
*/
|
|
1391
|
+
preProcessedVerificationMatchLevel?: string;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* The overall verification status.
|
|
1395
|
+
*/
|
|
1396
|
+
verificationStatus?: string;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export interface IntlAddressVerificationAutocompleteParams {
|
|
1402
|
+
/**
|
|
1403
|
+
* Body param
|
|
1404
|
+
*/
|
|
1405
|
+
id: string;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Query param
|
|
1409
|
+
*/
|
|
1410
|
+
includeDetails?: boolean;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Query param
|
|
1414
|
+
*/
|
|
1415
|
+
properCase?: boolean;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Query param
|
|
1419
|
+
*/
|
|
1420
|
+
useEnhancedChinaDataset?: boolean;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Query param
|
|
1424
|
+
*/
|
|
1425
|
+
verify?: boolean;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
export interface IntlAddressVerificationBatchVerificationParams {
|
|
1429
|
+
/**
|
|
1430
|
+
* Body param: Array of addresses to verify. Each item can be a freeform string or
|
|
1431
|
+
* a structured address object.
|
|
1432
|
+
*/
|
|
1433
|
+
addresses: Array<
|
|
1434
|
+
| IntlAddressVerificationBatchVerificationParams.StructuredAddressInput
|
|
1435
|
+
| IntlAddressVerificationBatchVerificationParams.FreeformAddressInput
|
|
1436
|
+
>;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Query param
|
|
1440
|
+
*/
|
|
1441
|
+
geoData?: boolean;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Query param
|
|
1445
|
+
*/
|
|
1446
|
+
includeDetails?: boolean;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Query param
|
|
1450
|
+
*/
|
|
1451
|
+
properCase?: boolean;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Query param
|
|
1455
|
+
*/
|
|
1456
|
+
useEnhancedChinaDataset?: boolean;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export namespace IntlAddressVerificationBatchVerificationParams {
|
|
1460
|
+
/**
|
|
1461
|
+
* Input model for structured international address verification.
|
|
1462
|
+
*/
|
|
1463
|
+
export interface StructuredAddressInput {
|
|
1464
|
+
address: StructuredAddressInput.Address;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
export namespace StructuredAddressInput {
|
|
1468
|
+
export interface Address {
|
|
1469
|
+
/**
|
|
1470
|
+
* The country code (ISO 3166-1 alpha-2 or alpha-3).
|
|
1471
|
+
*/
|
|
1472
|
+
country: string;
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* The first line of the address (e.g., street address, building, etc.).
|
|
1476
|
+
*/
|
|
1477
|
+
line1: string;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* The postal or ZIP code.
|
|
1481
|
+
*/
|
|
1482
|
+
postalOrZip: string;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* The administrative area (e.g., state, province, region).
|
|
1486
|
+
*/
|
|
1487
|
+
provinceOrState: string;
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* The city, town, or locality of the address.
|
|
1491
|
+
*/
|
|
1492
|
+
city?: string;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* The second line of the address (e.g., apartment, suite, etc.).
|
|
1496
|
+
*/
|
|
1497
|
+
line2?: string;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* The third line of the address (e.g., additional locality or delivery info).
|
|
1501
|
+
*/
|
|
1502
|
+
line3?: string;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* The fourth line of the address (e.g., further address details).
|
|
1506
|
+
*/
|
|
1507
|
+
line4?: string;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Input model for freeform international address verification.
|
|
1513
|
+
*/
|
|
1514
|
+
export interface FreeformAddressInput {
|
|
1515
|
+
/**
|
|
1516
|
+
* The full address as a single string.
|
|
1517
|
+
*/
|
|
1518
|
+
address: string;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
export interface IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams {
|
|
1523
|
+
advanced?: boolean;
|
|
1524
|
+
|
|
1525
|
+
cityFilter?: string;
|
|
1526
|
+
|
|
1527
|
+
container?: string;
|
|
1528
|
+
|
|
1529
|
+
countriesFilter?: string;
|
|
1530
|
+
|
|
1531
|
+
disableIPBiasing?: boolean;
|
|
1532
|
+
|
|
1533
|
+
language?: string;
|
|
1534
|
+
|
|
1535
|
+
limit?: number;
|
|
1536
|
+
|
|
1537
|
+
partialStreet?: string;
|
|
1538
|
+
|
|
1539
|
+
postalOrZipFilter?: string;
|
|
1540
|
+
|
|
1541
|
+
standardFallback?: boolean;
|
|
1542
|
+
|
|
1543
|
+
streetFilter?: string;
|
|
1544
|
+
|
|
1545
|
+
useEnhancedChinaDataset?: boolean;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
export interface IntlAddressVerificationGetAutocompletePreviewsParams {
|
|
1549
|
+
advanced?: boolean;
|
|
1550
|
+
|
|
1551
|
+
cityFilter?: string;
|
|
1552
|
+
|
|
1553
|
+
container?: string;
|
|
1554
|
+
|
|
1555
|
+
countriesFilter?: string;
|
|
1556
|
+
|
|
1557
|
+
disableIPBiasing?: boolean;
|
|
1558
|
+
|
|
1559
|
+
language?: string;
|
|
1560
|
+
|
|
1561
|
+
limit?: number;
|
|
1562
|
+
|
|
1563
|
+
partialStreet?: string;
|
|
1564
|
+
|
|
1565
|
+
postalOrZipFilter?: string;
|
|
1566
|
+
|
|
1567
|
+
standardFallback?: boolean;
|
|
1568
|
+
|
|
1569
|
+
streetFilter?: string;
|
|
1570
|
+
|
|
1571
|
+
useEnhancedChinaDataset?: boolean;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
406
1574
|
export type IntlAddressVerificationVerifyParams =
|
|
407
1575
|
| IntlAddressVerificationVerifyParams.StructuredAddressInput
|
|
408
1576
|
| IntlAddressVerificationVerifyParams.FreeformAddressInput;
|
|
@@ -410,22 +1578,22 @@ export type IntlAddressVerificationVerifyParams =
|
|
|
410
1578
|
export declare namespace IntlAddressVerificationVerifyParams {
|
|
411
1579
|
export interface StructuredAddressInput {
|
|
412
1580
|
/**
|
|
413
|
-
* Body param
|
|
1581
|
+
* Body param
|
|
414
1582
|
*/
|
|
415
1583
|
address: StructuredAddressInput.Address;
|
|
416
1584
|
|
|
417
1585
|
/**
|
|
418
|
-
* Query param
|
|
1586
|
+
* Query param
|
|
419
1587
|
*/
|
|
420
1588
|
geoData?: boolean;
|
|
421
1589
|
|
|
422
1590
|
/**
|
|
423
|
-
* Query param
|
|
1591
|
+
* Query param
|
|
424
1592
|
*/
|
|
425
1593
|
includeDetails?: boolean;
|
|
426
1594
|
|
|
427
1595
|
/**
|
|
428
|
-
* Query param
|
|
1596
|
+
* Query param
|
|
429
1597
|
*/
|
|
430
1598
|
properCase?: boolean;
|
|
431
1599
|
}
|
|
@@ -481,17 +1649,17 @@ export declare namespace IntlAddressVerificationVerifyParams {
|
|
|
481
1649
|
address: string;
|
|
482
1650
|
|
|
483
1651
|
/**
|
|
484
|
-
* Query param
|
|
1652
|
+
* Query param
|
|
485
1653
|
*/
|
|
486
1654
|
geoData?: boolean;
|
|
487
1655
|
|
|
488
1656
|
/**
|
|
489
|
-
* Query param
|
|
1657
|
+
* Query param
|
|
490
1658
|
*/
|
|
491
1659
|
includeDetails?: boolean;
|
|
492
1660
|
|
|
493
1661
|
/**
|
|
494
|
-
* Query param
|
|
1662
|
+
* Query param
|
|
495
1663
|
*/
|
|
496
1664
|
properCase?: boolean;
|
|
497
1665
|
}
|
|
@@ -499,7 +1667,15 @@ export declare namespace IntlAddressVerificationVerifyParams {
|
|
|
499
1667
|
|
|
500
1668
|
export declare namespace IntlAddressVerification {
|
|
501
1669
|
export {
|
|
1670
|
+
type IntlAddressVerificationAutocompleteResponse as IntlAddressVerificationAutocompleteResponse,
|
|
1671
|
+
type IntlAddressVerificationBatchVerificationResponse as IntlAddressVerificationBatchVerificationResponse,
|
|
1672
|
+
type IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse as IntlAddressVerificationGetAutocompleteAdvancedPreviewsResponse,
|
|
1673
|
+
type IntlAddressVerificationGetAutocompletePreviewsResponse as IntlAddressVerificationGetAutocompletePreviewsResponse,
|
|
502
1674
|
type IntlAddressVerificationVerifyResponse as IntlAddressVerificationVerifyResponse,
|
|
1675
|
+
type IntlAddressVerificationAutocompleteParams as IntlAddressVerificationAutocompleteParams,
|
|
1676
|
+
type IntlAddressVerificationBatchVerificationParams as IntlAddressVerificationBatchVerificationParams,
|
|
1677
|
+
type IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams as IntlAddressVerificationGetAutocompleteAdvancedPreviewsParams,
|
|
1678
|
+
type IntlAddressVerificationGetAutocompletePreviewsParams as IntlAddressVerificationGetAutocompletePreviewsParams,
|
|
503
1679
|
type IntlAddressVerificationVerifyParams as IntlAddressVerificationVerifyParams,
|
|
504
1680
|
};
|
|
505
1681
|
}
|