postgrid-node 0.1.0-alpha.5 → 0.3.0
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 +134 -103
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +191 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +191 -0
- package/client.d.ts.map +1 -0
- package/client.js +492 -0
- package/client.js.map +1 -0
- package/client.mjs +488 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +6 -157
- package/index.d.mts.map +1 -0
- package/index.d.ts +5 -156
- package/index.d.ts.map +1 -1
- package/index.js +12 -166
- package/index.js.map +1 -1
- package/index.mjs +5 -139
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +110 -75
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/address-verification.d.mts +425 -0
- package/resources/address-verification.d.mts.map +1 -0
- package/resources/address-verification.d.ts +425 -0
- package/resources/address-verification.d.ts.map +1 -0
- package/resources/address-verification.js +36 -0
- package/resources/address-verification.js.map +1 -0
- package/resources/address-verification.mjs +32 -0
- package/resources/address-verification.mjs.map +1 -0
- package/resources/index.d.mts +4 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +3 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -57
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -15
- package/resources/index.mjs.map +1 -1
- package/resources/intl-address-verification.d.mts +406 -0
- package/resources/intl-address-verification.d.mts.map +1 -0
- package/resources/intl-address-verification.d.ts +406 -0
- package/resources/intl-address-verification.d.ts.map +1 -0
- package/resources/intl-address-verification.js +59 -0
- package/resources/intl-address-verification.js.map +1 -0
- package/resources/intl-address-verification.mjs +55 -0
- package/resources/intl-address-verification.mjs.map +1 -0
- package/resources/print-mail/bank-accounts.d.mts +345 -0
- package/resources/print-mail/bank-accounts.d.mts.map +1 -0
- package/resources/print-mail/bank-accounts.d.ts +345 -0
- package/resources/print-mail/bank-accounts.d.ts.map +1 -0
- package/resources/print-mail/bank-accounts.js +72 -0
- package/resources/print-mail/bank-accounts.js.map +1 -0
- package/resources/print-mail/bank-accounts.mjs +68 -0
- package/resources/print-mail/bank-accounts.mjs.map +1 -0
- package/resources/print-mail/boxes.d.mts +873 -0
- package/resources/print-mail/boxes.d.mts.map +1 -0
- package/resources/print-mail/boxes.d.ts +873 -0
- package/resources/print-mail/boxes.d.ts.map +1 -0
- package/resources/print-mail/boxes.js +81 -0
- package/resources/print-mail/boxes.js.map +1 -0
- package/resources/print-mail/boxes.mjs +77 -0
- package/resources/print-mail/boxes.mjs.map +1 -0
- package/resources/print-mail/campaigns.d.mts +317 -0
- package/resources/print-mail/campaigns.d.mts.map +1 -0
- package/resources/print-mail/campaigns.d.ts +317 -0
- package/resources/print-mail/campaigns.d.ts.map +1 -0
- package/resources/print-mail/campaigns.js +114 -0
- package/resources/print-mail/campaigns.js.map +1 -0
- package/resources/print-mail/campaigns.mjs +110 -0
- package/resources/print-mail/campaigns.mjs.map +1 -0
- package/resources/print-mail/cheques.d.mts +817 -0
- package/resources/print-mail/cheques.d.mts.map +1 -0
- package/resources/print-mail/cheques.d.ts +817 -0
- package/resources/print-mail/cheques.d.ts.map +1 -0
- package/resources/print-mail/cheques.js +121 -0
- package/resources/print-mail/cheques.js.map +1 -0
- package/resources/print-mail/cheques.mjs +117 -0
- package/resources/print-mail/cheques.mjs.map +1 -0
- package/resources/print-mail/contacts.d.mts +475 -0
- package/resources/print-mail/contacts.d.mts.map +1 -0
- package/resources/print-mail/contacts.d.ts +475 -0
- package/resources/print-mail/contacts.d.ts.map +1 -0
- package/resources/print-mail/contacts.js +76 -0
- package/resources/print-mail/contacts.js.map +1 -0
- package/resources/print-mail/contacts.mjs +72 -0
- package/resources/print-mail/contacts.mjs.map +1 -0
- package/resources/print-mail/index.d.mts +16 -0
- package/resources/print-mail/index.d.mts.map +1 -0
- package/resources/print-mail/index.d.ts +16 -0
- package/resources/print-mail/index.d.ts.map +1 -0
- package/resources/print-mail/index.js +35 -0
- package/resources/print-mail/index.js.map +1 -0
- package/resources/print-mail/index.mjs +17 -0
- package/resources/print-mail/index.mjs.map +1 -0
- package/resources/print-mail/letters.d.mts +1079 -0
- package/resources/print-mail/letters.d.mts.map +1 -0
- package/resources/print-mail/letters.d.ts +1079 -0
- package/resources/print-mail/letters.d.ts.map +1 -0
- package/resources/print-mail/letters.js +83 -0
- package/resources/print-mail/letters.js.map +1 -0
- package/resources/print-mail/letters.mjs +79 -0
- package/resources/print-mail/letters.mjs.map +1 -0
- package/resources/print-mail/mailing-list-imports.d.mts +354 -0
- package/resources/print-mail/mailing-list-imports.d.mts.map +1 -0
- package/resources/print-mail/mailing-list-imports.d.ts +354 -0
- package/resources/print-mail/mailing-list-imports.d.ts.map +1 -0
- package/resources/print-mail/mailing-list-imports.js +105 -0
- package/resources/print-mail/mailing-list-imports.js.map +1 -0
- package/resources/print-mail/mailing-list-imports.mjs +101 -0
- package/resources/print-mail/mailing-list-imports.mjs.map +1 -0
- package/resources/print-mail/mailing-lists.d.mts +247 -0
- package/resources/print-mail/mailing-lists.d.mts.map +1 -0
- package/resources/print-mail/mailing-lists.d.ts +247 -0
- package/resources/print-mail/mailing-lists.d.ts.map +1 -0
- package/resources/print-mail/mailing-lists.js +117 -0
- package/resources/print-mail/mailing-lists.js.map +1 -0
- package/resources/print-mail/mailing-lists.mjs +113 -0
- package/resources/print-mail/mailing-lists.mjs.map +1 -0
- package/resources/print-mail/order-profiles/cheques.d.mts +398 -0
- package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/cheques.d.ts +398 -0
- package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/cheques.js +92 -0
- package/resources/print-mail/order-profiles/cheques.js.map +1 -0
- package/resources/print-mail/order-profiles/cheques.mjs +88 -0
- package/resources/print-mail/order-profiles/cheques.mjs.map +1 -0
- package/resources/print-mail/order-profiles/index.d.mts +6 -0
- package/resources/print-mail/order-profiles/index.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/index.d.ts +6 -0
- package/resources/print-mail/order-profiles/index.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/index.js +15 -0
- package/resources/print-mail/order-profiles/index.js.map +1 -0
- package/resources/print-mail/order-profiles/index.mjs +7 -0
- package/resources/print-mail/order-profiles/index.mjs.map +1 -0
- package/resources/print-mail/order-profiles/letters.d.mts +333 -0
- package/resources/print-mail/order-profiles/letters.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/letters.d.ts +333 -0
- package/resources/print-mail/order-profiles/letters.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/letters.js +99 -0
- package/resources/print-mail/order-profiles/letters.js.map +1 -0
- package/resources/print-mail/order-profiles/letters.mjs +95 -0
- package/resources/print-mail/order-profiles/letters.mjs.map +1 -0
- package/resources/print-mail/order-profiles/order-profiles.d.mts +22 -0
- package/resources/print-mail/order-profiles/order-profiles.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/order-profiles.d.ts +22 -0
- package/resources/print-mail/order-profiles/order-profiles.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/order-profiles.js +29 -0
- package/resources/print-mail/order-profiles/order-profiles.js.map +1 -0
- package/resources/print-mail/order-profiles/order-profiles.mjs +24 -0
- package/resources/print-mail/order-profiles/order-profiles.mjs.map +1 -0
- package/resources/print-mail/order-profiles/postcards.d.mts +263 -0
- package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/postcards.d.ts +263 -0
- package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/postcards.js +91 -0
- package/resources/print-mail/order-profiles/postcards.js.map +1 -0
- package/resources/print-mail/order-profiles/postcards.mjs +87 -0
- package/resources/print-mail/order-profiles/postcards.mjs.map +1 -0
- package/resources/print-mail/order-profiles/self-mailers.d.mts +268 -0
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -0
- package/resources/print-mail/order-profiles/self-mailers.d.ts +268 -0
- package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -0
- package/resources/print-mail/order-profiles/self-mailers.js +92 -0
- package/resources/print-mail/order-profiles/self-mailers.js.map +1 -0
- package/resources/print-mail/order-profiles/self-mailers.mjs +88 -0
- package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -0
- package/resources/print-mail/order-profiles.d.mts +2 -0
- package/resources/print-mail/order-profiles.d.mts.map +1 -0
- package/resources/print-mail/order-profiles.d.ts.map +1 -0
- package/resources/print-mail/order-profiles.js +6 -0
- package/resources/print-mail/order-profiles.js.map +1 -0
- package/resources/print-mail/order-profiles.mjs.map +1 -0
- package/resources/print-mail/postcards.d.mts +1220 -0
- package/resources/print-mail/postcards.d.mts.map +1 -0
- package/resources/print-mail/postcards.d.ts +1220 -0
- package/resources/print-mail/postcards.d.ts.map +1 -0
- package/resources/print-mail/postcards.js +87 -0
- package/resources/print-mail/postcards.js.map +1 -0
- package/resources/print-mail/postcards.mjs +83 -0
- package/resources/print-mail/postcards.mjs.map +1 -0
- package/resources/print-mail/print-mail.d.mts +62 -0
- package/resources/print-mail/print-mail.d.mts.map +1 -0
- package/resources/print-mail/print-mail.d.ts +62 -0
- package/resources/print-mail/print-mail.d.ts.map +1 -0
- package/resources/print-mail/print-mail.js +69 -0
- package/resources/print-mail/print-mail.js.map +1 -0
- package/resources/print-mail/print-mail.mjs +64 -0
- package/resources/print-mail/print-mail.mjs.map +1 -0
- package/resources/print-mail/reports/exports.d.mts +165 -0
- package/resources/print-mail/reports/exports.d.mts.map +1 -0
- package/resources/print-mail/reports/exports.d.ts +165 -0
- package/resources/print-mail/reports/exports.d.ts.map +1 -0
- package/resources/print-mail/reports/exports.js +66 -0
- package/resources/print-mail/reports/exports.js.map +1 -0
- package/resources/print-mail/reports/exports.mjs +62 -0
- package/resources/print-mail/reports/exports.mjs.map +1 -0
- package/resources/print-mail/reports/index.d.mts +4 -0
- package/resources/print-mail/reports/index.d.mts.map +1 -0
- package/resources/print-mail/reports/index.d.ts +4 -0
- package/resources/print-mail/reports/index.d.ts.map +1 -0
- package/resources/print-mail/reports/index.js +11 -0
- package/resources/print-mail/reports/index.js.map +1 -0
- package/resources/print-mail/reports/index.mjs +5 -0
- package/resources/print-mail/reports/index.mjs.map +1 -0
- package/resources/print-mail/reports/reports.d.mts +214 -0
- package/resources/print-mail/reports/reports.d.mts.map +1 -0
- package/resources/print-mail/reports/reports.d.ts +214 -0
- package/resources/print-mail/reports/reports.d.ts.map +1 -0
- package/resources/print-mail/reports/reports.js +110 -0
- package/resources/print-mail/reports/reports.js.map +1 -0
- package/resources/print-mail/reports/reports.mjs +105 -0
- package/resources/print-mail/reports/reports.mjs.map +1 -0
- package/resources/print-mail/reports/samples.d.mts +69 -0
- package/resources/print-mail/reports/samples.d.mts.map +1 -0
- package/resources/print-mail/reports/samples.d.ts +69 -0
- package/resources/print-mail/reports/samples.d.ts.map +1 -0
- package/resources/print-mail/reports/samples.js +28 -0
- package/resources/print-mail/reports/samples.js.map +1 -0
- package/resources/print-mail/reports/samples.mjs +24 -0
- package/resources/print-mail/reports/samples.mjs.map +1 -0
- package/resources/print-mail/reports.d.mts +2 -0
- package/resources/print-mail/reports.d.mts.map +1 -0
- package/resources/print-mail/reports.d.ts.map +1 -0
- package/resources/print-mail/reports.js +6 -0
- package/resources/print-mail/reports.js.map +1 -0
- package/resources/print-mail/reports.mjs.map +1 -0
- package/resources/print-mail/self-mailers.d.mts +1218 -0
- package/resources/print-mail/self-mailers.d.mts.map +1 -0
- package/resources/print-mail/self-mailers.d.ts +1218 -0
- package/resources/print-mail/self-mailers.d.ts.map +1 -0
- package/resources/print-mail/self-mailers.js +87 -0
- package/resources/print-mail/self-mailers.js.map +1 -0
- package/resources/print-mail/self-mailers.mjs +83 -0
- package/resources/print-mail/self-mailers.mjs.map +1 -0
- package/resources/print-mail/sub-organizations.d.mts +304 -0
- package/resources/print-mail/sub-organizations.d.mts.map +1 -0
- package/resources/print-mail/sub-organizations.d.ts +304 -0
- package/resources/print-mail/sub-organizations.d.ts.map +1 -0
- package/resources/print-mail/sub-organizations.js +69 -0
- package/resources/print-mail/sub-organizations.js.map +1 -0
- package/resources/print-mail/sub-organizations.mjs +65 -0
- package/resources/print-mail/sub-organizations.mjs.map +1 -0
- package/resources/print-mail/templates.d.mts +169 -0
- package/resources/print-mail/templates.d.mts.map +1 -0
- package/resources/print-mail/templates.d.ts +169 -0
- package/resources/print-mail/templates.d.ts.map +1 -0
- package/resources/print-mail/templates.js +79 -0
- package/resources/print-mail/templates.js.map +1 -0
- package/resources/print-mail/templates.mjs +75 -0
- package/resources/print-mail/templates.mjs.map +1 -0
- package/resources/print-mail.d.mts +2 -0
- package/resources/print-mail.d.mts.map +1 -0
- package/resources/print-mail.d.ts +2 -0
- package/resources/print-mail.d.ts.map +1 -0
- package/resources/print-mail.js +6 -0
- package/resources/print-mail.js.map +1 -0
- package/resources/print-mail.mjs +3 -0
- package/resources/print-mail.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +793 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +5 -520
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/resource.ts +2 -11
- package/src/resources/address-verification.ts +542 -0
- package/src/resources/index.ts +12 -142
- package/src/resources/intl-address-verification.ts +505 -0
- package/src/resources/print-mail/bank-accounts.ts +432 -0
- package/src/resources/print-mail/boxes.ts +1079 -0
- package/src/resources/print-mail/campaigns.ts +408 -0
- package/src/resources/print-mail/cheques.ts +995 -0
- package/src/resources/print-mail/contacts.ts +594 -0
- package/src/resources/print-mail/index.ts +134 -0
- package/src/resources/print-mail/letters.ts +1319 -0
- package/src/resources/print-mail/mailing-list-imports.ts +433 -0
- package/src/resources/print-mail/mailing-lists.ts +316 -0
- package/src/resources/print-mail/order-profiles/cheques.ts +498 -0
- package/src/resources/print-mail/order-profiles/index.ts +46 -0
- package/src/resources/print-mail/order-profiles/letters.ts +423 -0
- package/src/resources/print-mail/order-profiles/order-profiles.ts +111 -0
- package/src/resources/print-mail/order-profiles/postcards.ts +338 -0
- package/src/resources/print-mail/order-profiles/self-mailers.ts +348 -0
- package/src/resources/print-mail/postcards.ts +1483 -0
- package/src/resources/print-mail/print-mail.ts +331 -0
- package/src/resources/print-mail/reports/exports.ts +209 -0
- package/src/resources/print-mail/reports/index.ts +20 -0
- package/src/resources/print-mail/reports/reports.ts +290 -0
- package/src/resources/print-mail/reports/samples.ts +84 -0
- package/src/resources/print-mail/self-mailers.ts +1481 -0
- package/src/resources/print-mail/sub-organizations.ts +394 -0
- package/src/resources/print-mail/templates.ts +216 -0
- package/src/resources/print-mail.ts +3 -0
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/pagination.d.ts +0 -26
- package/pagination.d.ts.map +0 -1
- package/pagination.js +0 -46
- package/pagination.js.map +0 -1
- package/pagination.mjs +0 -42
- package/pagination.mjs.map +0 -1
- package/resources/bank-accounts.d.ts +0 -342
- package/resources/bank-accounts.d.ts.map +0 -1
- package/resources/bank-accounts.js +0 -70
- package/resources/bank-accounts.js.map +0 -1
- package/resources/bank-accounts.mjs +0 -65
- package/resources/bank-accounts.mjs.map +0 -1
- package/resources/boxes.d.ts +0 -748
- package/resources/boxes.d.ts.map +0 -1
- package/resources/boxes.js +0 -81
- package/resources/boxes.js.map +0 -1
- package/resources/boxes.mjs +0 -76
- package/resources/boxes.mjs.map +0 -1
- package/resources/campaigns.d.ts +0 -658
- package/resources/campaigns.d.ts.map +0 -1
- package/resources/campaigns.js +0 -67
- package/resources/campaigns.js.map +0 -1
- package/resources/campaigns.mjs +0 -62
- package/resources/campaigns.mjs.map +0 -1
- package/resources/cheques/cheques.d.ts +0 -388
- package/resources/cheques/cheques.d.ts.map +0 -1
- package/resources/cheques/cheques.js +0 -118
- package/resources/cheques/cheques.js.map +0 -1
- package/resources/cheques/cheques.mjs +0 -90
- package/resources/cheques/cheques.mjs.map +0 -1
- package/resources/cheques/index.d.ts +0 -4
- package/resources/cheques/index.d.ts.map +0 -1
- package/resources/cheques/index.js +0 -12
- package/resources/cheques/index.js.map +0 -1
- package/resources/cheques/index.mjs +0 -5
- package/resources/cheques/index.mjs.map +0 -1
- package/resources/cheques/url.d.ts +0 -34
- package/resources/cheques/url.d.ts.map +0 -1
- package/resources/cheques/url.js +0 -25
- package/resources/cheques/url.js.map +0 -1
- package/resources/cheques/url.mjs +0 -21
- package/resources/cheques/url.mjs.map +0 -1
- package/resources/cheques/with-deposit-ready-pdf.d.ts +0 -19
- package/resources/cheques/with-deposit-ready-pdf.d.ts.map +0 -1
- package/resources/cheques/with-deposit-ready-pdf.js +0 -24
- package/resources/cheques/with-deposit-ready-pdf.js.map +0 -1
- package/resources/cheques/with-deposit-ready-pdf.mjs +0 -20
- package/resources/cheques/with-deposit-ready-pdf.mjs.map +0 -1
- package/resources/cheques.d.ts +0 -2
- package/resources/cheques.d.ts.map +0 -1
- package/resources/cheques.js +0 -19
- package/resources/cheques.js.map +0 -1
- package/resources/cheques.mjs +0 -3
- package/resources/cheques.mjs.map +0 -1
- package/resources/contacts.d.ts +0 -329
- package/resources/contacts.d.ts.map +0 -1
- package/resources/contacts.js +0 -72
- package/resources/contacts.js.map +0 -1
- package/resources/contacts.mjs +0 -67
- package/resources/contacts.mjs.map +0 -1
- package/resources/letters.d.ts +0 -683
- package/resources/letters.d.ts.map +0 -1
- package/resources/letters.js +0 -79
- package/resources/letters.js.map +0 -1
- package/resources/letters.mjs +0 -74
- package/resources/letters.mjs.map +0 -1
- package/resources/mailing-list-imports.d.ts +0 -919
- package/resources/mailing-list-imports.d.ts.map +0 -1
- package/resources/mailing-list-imports.js +0 -95
- package/resources/mailing-list-imports.js.map +0 -1
- package/resources/mailing-list-imports.mjs +0 -90
- package/resources/mailing-list-imports.mjs.map +0 -1
- package/resources/mailing-lists.d.ts +0 -398
- package/resources/mailing-lists.d.ts.map +0 -1
- package/resources/mailing-lists.js +0 -101
- package/resources/mailing-lists.js.map +0 -1
- package/resources/mailing-lists.mjs +0 -96
- package/resources/mailing-lists.mjs.map +0 -1
- package/resources/order-profiles/cheques.d.ts +0 -588
- package/resources/order-profiles/cheques.d.ts.map +0 -1
- package/resources/order-profiles/cheques.js +0 -74
- package/resources/order-profiles/cheques.js.map +0 -1
- package/resources/order-profiles/cheques.mjs +0 -69
- package/resources/order-profiles/cheques.mjs.map +0 -1
- package/resources/order-profiles/index.d.ts +0 -6
- package/resources/order-profiles/index.d.ts.map +0 -1
- package/resources/order-profiles/index.js +0 -19
- package/resources/order-profiles/index.js.map +0 -1
- package/resources/order-profiles/index.mjs +0 -7
- package/resources/order-profiles/index.mjs.map +0 -1
- package/resources/order-profiles/letters.d.ts +0 -647
- package/resources/order-profiles/letters.d.ts.map +0 -1
- package/resources/order-profiles/letters.js +0 -80
- package/resources/order-profiles/letters.js.map +0 -1
- package/resources/order-profiles/letters.mjs +0 -75
- package/resources/order-profiles/letters.mjs.map +0 -1
- package/resources/order-profiles/order-profiles.d.ts +0 -22
- package/resources/order-profiles/order-profiles.d.ts.map +0 -1
- package/resources/order-profiles/order-profiles.js +0 -55
- package/resources/order-profiles/order-profiles.js.map +0 -1
- package/resources/order-profiles/order-profiles.mjs +0 -28
- package/resources/order-profiles/order-profiles.mjs.map +0 -1
- package/resources/order-profiles/postcards.d.ts +0 -423
- package/resources/order-profiles/postcards.d.ts.map +0 -1
- package/resources/order-profiles/postcards.js +0 -73
- package/resources/order-profiles/postcards.js.map +0 -1
- package/resources/order-profiles/postcards.mjs +0 -68
- package/resources/order-profiles/postcards.mjs.map +0 -1
- package/resources/order-profiles/self-mailers.d.ts +0 -435
- package/resources/order-profiles/self-mailers.d.ts.map +0 -1
- package/resources/order-profiles/self-mailers.js +0 -75
- package/resources/order-profiles/self-mailers.js.map +0 -1
- package/resources/order-profiles/self-mailers.mjs +0 -70
- package/resources/order-profiles/self-mailers.mjs.map +0 -1
- package/resources/order-profiles.d.ts.map +0 -1
- package/resources/order-profiles.js +0 -19
- package/resources/order-profiles.js.map +0 -1
- package/resources/order-profiles.mjs.map +0 -1
- package/resources/postcards.d.ts +0 -396
- package/resources/postcards.d.ts.map +0 -1
- package/resources/postcards.js +0 -82
- package/resources/postcards.js.map +0 -1
- package/resources/postcards.mjs +0 -77
- package/resources/postcards.mjs.map +0 -1
- package/resources/reports/exports.d.ts +0 -240
- package/resources/reports/exports.d.ts.map +0 -1
- package/resources/reports/exports.js +0 -60
- package/resources/reports/exports.js.map +0 -1
- package/resources/reports/exports.mjs +0 -56
- package/resources/reports/exports.mjs.map +0 -1
- package/resources/reports/index.d.ts +0 -3
- package/resources/reports/index.d.ts.map +0 -1
- package/resources/reports/index.js +0 -10
- package/resources/reports/index.js.map +0 -1
- package/resources/reports/index.mjs +0 -4
- package/resources/reports/index.mjs.map +0 -1
- package/resources/reports/reports.d.ts +0 -382
- package/resources/reports/reports.d.ts.map +0 -1
- package/resources/reports/reports.js +0 -142
- package/resources/reports/reports.js.map +0 -1
- package/resources/reports/reports.mjs +0 -114
- package/resources/reports/reports.mjs.map +0 -1
- package/resources/reports.d.ts.map +0 -1
- package/resources/reports.js +0 -19
- package/resources/reports.js.map +0 -1
- package/resources/reports.mjs.map +0 -1
- package/resources/self-mailers.d.ts +0 -706
- package/resources/self-mailers.d.ts.map +0 -1
- package/resources/self-mailers.js +0 -83
- package/resources/self-mailers.js.map +0 -1
- package/resources/self-mailers.mjs +0 -78
- package/resources/self-mailers.mjs.map +0 -1
- package/resources/shared.d.ts +0 -151
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/resources/sub-organizations.d.ts +0 -394
- package/resources/sub-organizations.d.ts.map +0 -1
- package/resources/sub-organizations.js +0 -63
- package/resources/sub-organizations.js.map +0 -1
- package/resources/sub-organizations.mjs +0 -58
- package/resources/sub-organizations.mjs.map +0 -1
- package/resources/templates.d.ts +0 -166
- package/resources/templates.d.ts.map +0 -1
- package/resources/templates.js +0 -72
- package/resources/templates.js.map +0 -1
- package/resources/templates.mjs +0 -67
- package/resources/templates.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/pagination.ts +0 -74
- package/src/resources/bank-accounts.ts +0 -435
- package/src/resources/boxes.ts +0 -1017
- package/src/resources/campaigns.ts +0 -853
- package/src/resources/cheques/cheques.ts +0 -524
- package/src/resources/cheques/index.ts +0 -12
- package/src/resources/cheques/url.ts +0 -42
- package/src/resources/cheques/with-deposit-ready-pdf.ts +0 -23
- package/src/resources/cheques.ts +0 -3
- package/src/resources/contacts.ts +0 -415
- package/src/resources/letters.ts +0 -902
- package/src/resources/mailing-list-imports.ts +0 -1076
- package/src/resources/mailing-lists.ts +0 -511
- package/src/resources/order-profiles/cheques.ts +0 -888
- package/src/resources/order-profiles/index.ts +0 -55
- package/src/resources/order-profiles/letters.ts +0 -956
- package/src/resources/order-profiles/order-profiles.ts +0 -133
- package/src/resources/order-profiles/postcards.ts +0 -694
- package/src/resources/order-profiles/self-mailers.ts +0 -707
- package/src/resources/postcards.ts +0 -582
- package/src/resources/reports/exports.ts +0 -299
- package/src/resources/reports/index.ts +0 -25
- package/src/resources/reports/reports.ts +0 -494
- package/src/resources/self-mailers.ts +0 -1024
- package/src/resources/shared.ts +0 -182
- package/src/resources/sub-organizations.ts +0 -518
- package/src/resources/templates.ts +0 -218
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
- /package/resources/{order-profiles.d.ts → print-mail/order-profiles.d.ts} +0 -0
- /package/resources/{order-profiles.mjs → print-mail/order-profiles.mjs} +0 -0
- /package/resources/{reports.d.ts → print-mail/reports.d.ts} +0 -0
- /package/resources/{reports.mjs → print-mail/reports.mjs} +0 -0
- /package/src/resources/{order-profiles.ts → print-mail/order-profiles.ts} +0 -0
- /package/src/resources/{reports.ts → print-mail/reports.ts} +0 -0
|
@@ -0,0 +1,1319 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as BoxesAPI from './boxes';
|
|
5
|
+
import * as ContactsAPI from './contacts';
|
|
6
|
+
import { APIPromise } from '../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Letters extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a letter. Note that you can supply one of the following:
|
|
13
|
+
*
|
|
14
|
+
* - HTML content for the letter
|
|
15
|
+
* - A template ID for the letter
|
|
16
|
+
* - A URL or file for a PDF for the letter
|
|
17
|
+
* - Upload the aforementioned PDF file via a multipart form upload request
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const letter = await client.printMail.letters.create({
|
|
22
|
+
* from: 'contact_123',
|
|
23
|
+
* html: '<html>Content</html>',
|
|
24
|
+
* to: 'contact_123',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(body: LetterCreateParams, options?: RequestOptions): APIPromise<Letter> {
|
|
29
|
+
return this._client.post('/print-mail/v1/letters', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a letter by ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const letter = await client.printMail.letters.retrieve(
|
|
38
|
+
* 'id',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Letter> {
|
|
43
|
+
return this._client.get(path`/print-mail/v1/letters/${id}`, options);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get a list of letters.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const letters = await client.printMail.letters.list();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
list(
|
|
55
|
+
query: LetterListParams | null | undefined = {},
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): APIPromise<LetterListResponse> {
|
|
58
|
+
return this._client.get('/print-mail/v1/letters', { query, ...options });
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Cancel a letter by ID. Note that this operation cannot be undone.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const letter = await client.printMail.letters.delete('id');
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
delete(id: string, options?: RequestOptions): APIPromise<Letter> {
|
|
70
|
+
return this._client.delete(path`/print-mail/v1/letters/${id}`, options);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve a letter preview URL.
|
|
75
|
+
*
|
|
76
|
+
* This is only available for customers with our document management addon, which
|
|
77
|
+
* offers document generation and hosting capabilities. This endpoint has a much
|
|
78
|
+
* higher rate limit than the regular order retrieval endpoint, so it is suitable
|
|
79
|
+
* for customer-facing use-cases.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response = await client.printMail.letters.retrieveURL(
|
|
84
|
+
* 'id',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
retrieveURL(id: string, options?: RequestOptions): APIPromise<LetterRetrieveURLResponse> {
|
|
89
|
+
return this._client.get(path`/print-mail/v1/letters/${id}/url`, options);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Enum representing the placement of the address on the letter.
|
|
95
|
+
*/
|
|
96
|
+
export type AddressPlacement = 'top_first_page' | 'insert_blank_page';
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Model representing an attached PDF.
|
|
100
|
+
*/
|
|
101
|
+
export interface AttachedPdf {
|
|
102
|
+
/**
|
|
103
|
+
* The file (multipart form upload) or URL pointing to a PDF for the attached PDF.
|
|
104
|
+
*/
|
|
105
|
+
file: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Enum representing the placement of the attached PDF.
|
|
109
|
+
*/
|
|
110
|
+
placement: 'before_template' | 'after_template';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface Letter {
|
|
114
|
+
/**
|
|
115
|
+
* A unique ID prefixed with letter\_
|
|
116
|
+
*/
|
|
117
|
+
id: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Enum representing the placement of the address on the letter.
|
|
121
|
+
*/
|
|
122
|
+
addressPlacement: AddressPlacement;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Indicates if the letter is in color.
|
|
126
|
+
*/
|
|
127
|
+
color: boolean;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The UTC time at which this resource was created.
|
|
131
|
+
*/
|
|
132
|
+
createdAt: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Indicates if the letter is double-sided.
|
|
136
|
+
*/
|
|
137
|
+
doubleSided: boolean;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The envelope (ID) for the letter or the default `standard` envelope.
|
|
141
|
+
*/
|
|
142
|
+
envelope: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The contact information of the sender.
|
|
146
|
+
*/
|
|
147
|
+
from: ContactsAPI.Contact;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* `true` if this is a live mode resource else `false`.
|
|
151
|
+
*/
|
|
152
|
+
live: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
156
|
+
* See `OrderMailingClass` for more details.
|
|
157
|
+
*/
|
|
158
|
+
mailingClass: BoxesAPI.OrderMailingClass;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Always `letter`.
|
|
162
|
+
*/
|
|
163
|
+
object: 'letter';
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
167
|
+
* date. For example, if this is a date on Tuesday, the order will transition to
|
|
168
|
+
* `printing` on Wednesday at midnight eastern time.
|
|
169
|
+
*/
|
|
170
|
+
sendDate: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Enum representing the supported letter sizes.
|
|
174
|
+
*/
|
|
175
|
+
size: LetterSize;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* See `OrderStatus` for more details on the status of this order.
|
|
179
|
+
*/
|
|
180
|
+
status: BoxesAPI.OrderStatus;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The recipient of this order. This will be provided even if you delete the
|
|
184
|
+
* underlying contact.
|
|
185
|
+
*/
|
|
186
|
+
to: ContactsAPI.Contact;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The UTC time at which this resource was last updated.
|
|
190
|
+
*/
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Model representing an attached PDF.
|
|
195
|
+
*/
|
|
196
|
+
attachedPDF?: AttachedPdf;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The cancellation details of this order. Populated if the order has been
|
|
200
|
+
* cancelled.
|
|
201
|
+
*/
|
|
202
|
+
cancellation?: BoxesAPI.Cancellation;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
206
|
+
* dashboard.
|
|
207
|
+
*/
|
|
208
|
+
description?: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The HTML content for the letter. You can supply _either_ this or `template` but
|
|
212
|
+
* not both.
|
|
213
|
+
*/
|
|
214
|
+
html?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The last date that the IMB status was updated. See `imbStatus` for more details.
|
|
218
|
+
*/
|
|
219
|
+
imbDate?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The Intelligent Mail Barcode (IMB) status of this order. Only populated for
|
|
223
|
+
* US-printed and US-destined orders. This is the most detailed way to track
|
|
224
|
+
* non-express/certified orders.
|
|
225
|
+
*/
|
|
226
|
+
imbStatus?: BoxesAPI.OrderImbStatus;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
230
|
+
* through. Only populated when an `imbStatus` is present.
|
|
231
|
+
*/
|
|
232
|
+
imbZIPCode?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
236
|
+
* order with. The keys in this object should match the variable names in the
|
|
237
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
238
|
+
* PDFs uploaded with the order.
|
|
239
|
+
*/
|
|
240
|
+
mergeVariables?: { [key: string]: unknown };
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* See the section on Metadata.
|
|
244
|
+
*/
|
|
245
|
+
metadata?: { [key: string]: unknown };
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The ID of the PDF workflow run that created the letter, if any.
|
|
249
|
+
*/
|
|
250
|
+
pdfWorkflowRun?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* If specified, indicates which letter page is perforated. Currently, only the
|
|
254
|
+
* first page can be perforated.
|
|
255
|
+
*/
|
|
256
|
+
perforatedPage?: 1;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Model representing a plastic card.
|
|
260
|
+
*/
|
|
261
|
+
plasticCard?: PlasticCard;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The return envelope (ID) sent out with the letter, if any.
|
|
265
|
+
*/
|
|
266
|
+
returnEnvelope?: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The template ID used for the letter. You can supply _either_ this or `html` but
|
|
270
|
+
* not both.
|
|
271
|
+
*/
|
|
272
|
+
template?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The tracking number of this order. Populated after an express/certified order
|
|
276
|
+
* has been processed for delivery.
|
|
277
|
+
*/
|
|
278
|
+
trackingNumber?: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* If a PDF was uploaded for the letter, this will contain the signed link to the
|
|
282
|
+
* uploaded PDF.
|
|
283
|
+
*/
|
|
284
|
+
uploadedPDF?: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* PostGrid renders a PDF preview for all orders. This should be inspected to
|
|
288
|
+
* ensure that the order is correct before it is sent out because it shows what
|
|
289
|
+
* will be printed and mailed to the recipient. Once the PDF preview is generated,
|
|
290
|
+
* this field will be returned by all `GET` endpoints which produce this order.
|
|
291
|
+
*
|
|
292
|
+
* This URL is a signed link to the PDF preview. It will expire after a short
|
|
293
|
+
* period of time. If you need to access this URL after it has expired, you can
|
|
294
|
+
* regenerate it by calling the `GET` endpoint again.
|
|
295
|
+
*/
|
|
296
|
+
url?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Enum representing the supported letter sizes.
|
|
301
|
+
*/
|
|
302
|
+
export type LetterSize = 'us_letter' | 'a4';
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Model representing a plastic card.
|
|
306
|
+
*/
|
|
307
|
+
export interface PlasticCard {
|
|
308
|
+
/**
|
|
309
|
+
* Enum representing the size of the plastic card.
|
|
310
|
+
*/
|
|
311
|
+
size: 'standard';
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Model representing a double-sided plastic card.
|
|
315
|
+
*/
|
|
316
|
+
doubleSided?: PlasticCard.DoubleSided;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Model representing a single-sided plastic card.
|
|
320
|
+
*/
|
|
321
|
+
singleSided?: PlasticCard.SingleSided;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace PlasticCard {
|
|
325
|
+
/**
|
|
326
|
+
* Model representing a double-sided plastic card.
|
|
327
|
+
*/
|
|
328
|
+
export interface DoubleSided {
|
|
329
|
+
/**
|
|
330
|
+
* The HTML content for the back side of the double-sided plastic card.
|
|
331
|
+
*/
|
|
332
|
+
backHTML?: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The template ID for the back side of the double-sided plastic card.
|
|
336
|
+
*/
|
|
337
|
+
backTemplate?: string;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The HTML content for the front side of the double-sided plastic card.
|
|
341
|
+
*/
|
|
342
|
+
frontHTML?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The template ID for the front side of the double-sided plastic card.
|
|
346
|
+
*/
|
|
347
|
+
frontTemplate?: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* A URL pointing to a PDF file for the double-sided plastic card or the file
|
|
351
|
+
* itself.
|
|
352
|
+
*/
|
|
353
|
+
pdf?: string;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Model representing a single-sided plastic card.
|
|
358
|
+
*/
|
|
359
|
+
export interface SingleSided {
|
|
360
|
+
/**
|
|
361
|
+
* The HTML content for the single-sided plastic card. Can specify one of this,
|
|
362
|
+
* `template`, or `pdf`.
|
|
363
|
+
*/
|
|
364
|
+
html?: string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* A URL pointing to a PDF file for the single-sided plastic card or the PDF file
|
|
368
|
+
* itself.
|
|
369
|
+
*/
|
|
370
|
+
pdf?: string;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The template ID for the single-sided plastic card.
|
|
374
|
+
*/
|
|
375
|
+
template?: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface LetterListResponse {
|
|
380
|
+
data: Array<Letter>;
|
|
381
|
+
|
|
382
|
+
limit: number;
|
|
383
|
+
|
|
384
|
+
object: 'list';
|
|
385
|
+
|
|
386
|
+
skip: number;
|
|
387
|
+
|
|
388
|
+
totalCount: number;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface LetterRetrieveURLResponse {
|
|
392
|
+
/**
|
|
393
|
+
* A unique ID prefixed with letter\_
|
|
394
|
+
*/
|
|
395
|
+
id: string;
|
|
396
|
+
|
|
397
|
+
object: string;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* A signed URL linking to the order preview PDF. The link remains valid for 15
|
|
401
|
+
* minutes from the time of the API call.
|
|
402
|
+
*/
|
|
403
|
+
url: string;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export type LetterCreateParams =
|
|
407
|
+
| LetterCreateParams.LetterCreateWithHTML
|
|
408
|
+
| LetterCreateParams.LetterCreateWithTemplate
|
|
409
|
+
| LetterCreateParams.LetterCreateWithPdf;
|
|
410
|
+
|
|
411
|
+
export declare namespace LetterCreateParams {
|
|
412
|
+
export interface LetterCreateWithHTML {
|
|
413
|
+
/**
|
|
414
|
+
* The contact information of the sender. You can pass contact information inline
|
|
415
|
+
* here just like you can for the `to`.
|
|
416
|
+
*/
|
|
417
|
+
from:
|
|
418
|
+
| LetterCreateWithHTML.ContactCreateWithFirstName
|
|
419
|
+
| LetterCreateWithHTML.ContactCreateWithCompanyName
|
|
420
|
+
| string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The HTML content for the letter. You can supply _either_ this or `template` but
|
|
424
|
+
* not both.
|
|
425
|
+
*/
|
|
426
|
+
html: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* The recipient of this order. You can either supply the contact information
|
|
430
|
+
* inline here or provide a contact ID. PostGrid will automatically deduplicate
|
|
431
|
+
* contacts regardless of whether you provide the information inline here or call
|
|
432
|
+
* the contact creation endpoint.
|
|
433
|
+
*/
|
|
434
|
+
to:
|
|
435
|
+
| LetterCreateWithHTML.ContactCreateWithFirstName
|
|
436
|
+
| LetterCreateWithHTML.ContactCreateWithCompanyName
|
|
437
|
+
| string;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Enum representing the placement of the address on the letter.
|
|
441
|
+
*/
|
|
442
|
+
addressPlacement?: AddressPlacement;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Model representing an attached PDF.
|
|
446
|
+
*/
|
|
447
|
+
attachedPDF?: AttachedPdf;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Indicates if the letter is in color.
|
|
451
|
+
*/
|
|
452
|
+
color?: boolean;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
456
|
+
* dashboard.
|
|
457
|
+
*/
|
|
458
|
+
description?: string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Indicates if the letter is double-sided.
|
|
462
|
+
*/
|
|
463
|
+
doubleSided?: boolean;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* The envelope (ID) for the letter. You can either specify a custom envelope ID or
|
|
467
|
+
* use the default `standard` envelope.
|
|
468
|
+
*/
|
|
469
|
+
envelope?: string;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* The mailing class of this order. If not provided, automatically set to
|
|
473
|
+
* `first_class`.
|
|
474
|
+
*/
|
|
475
|
+
mailingClass?: BoxesAPI.OrderMailingClass;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
479
|
+
* order with. The keys in this object should match the variable names in the
|
|
480
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
481
|
+
* PDFs uploaded with the order.
|
|
482
|
+
*/
|
|
483
|
+
mergeVariables?: { [key: string]: unknown };
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* See the section on Metadata.
|
|
487
|
+
*/
|
|
488
|
+
metadata?: { [key: string]: unknown };
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* If specified, indicates which letter page is perforated. Currently, only the
|
|
492
|
+
* first page can be perforated.
|
|
493
|
+
*/
|
|
494
|
+
perforatedPage?: 1;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Model representing a plastic card.
|
|
498
|
+
*/
|
|
499
|
+
plasticCard?: PlasticCard;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The return envelope (ID) sent out with the letter, if any.
|
|
503
|
+
*/
|
|
504
|
+
returnEnvelope?: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
508
|
+
* date. You can use this parameter to schedule orders for a future date.
|
|
509
|
+
*/
|
|
510
|
+
sendDate?: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Enum representing the supported letter sizes.
|
|
514
|
+
*/
|
|
515
|
+
size?: LetterSize;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export namespace LetterCreateWithHTML {
|
|
519
|
+
export interface ContactCreateWithFirstName {
|
|
520
|
+
/**
|
|
521
|
+
* The first line of the contact's address.
|
|
522
|
+
*/
|
|
523
|
+
addressLine1: string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
527
|
+
*/
|
|
528
|
+
countryCode: string;
|
|
529
|
+
|
|
530
|
+
firstName: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Second line of the contact's address, if applicable.
|
|
534
|
+
*/
|
|
535
|
+
addressLine2?: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The city of the contact's address.
|
|
539
|
+
*/
|
|
540
|
+
city?: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Company name of the contact.
|
|
544
|
+
*/
|
|
545
|
+
companyName?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
549
|
+
* dashboard.
|
|
550
|
+
*/
|
|
551
|
+
description?: string;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Email of the contact.
|
|
555
|
+
*/
|
|
556
|
+
email?: string;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
560
|
+
* `verified` even if our address verification system says otherwise.
|
|
561
|
+
*/
|
|
562
|
+
forceVerifiedStatus?: boolean;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Job title of the contact.
|
|
566
|
+
*/
|
|
567
|
+
jobTitle?: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Last name of the contact.
|
|
571
|
+
*/
|
|
572
|
+
lastName?: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* See the section on Metadata.
|
|
576
|
+
*/
|
|
577
|
+
metadata?: { [key: string]: unknown };
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Phone number of the contact.
|
|
581
|
+
*/
|
|
582
|
+
phoneNumber?: string;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* The postal or ZIP code of the contact's address.
|
|
586
|
+
*/
|
|
587
|
+
postalOrZip?: string;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Province or state of the contact's address.
|
|
591
|
+
*/
|
|
592
|
+
provinceOrState?: string;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
596
|
+
* verification system.
|
|
597
|
+
*/
|
|
598
|
+
skipVerification?: boolean;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export interface ContactCreateWithCompanyName {
|
|
602
|
+
/**
|
|
603
|
+
* The first line of the contact's address.
|
|
604
|
+
*/
|
|
605
|
+
addressLine1: string;
|
|
606
|
+
|
|
607
|
+
companyName: string;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
611
|
+
*/
|
|
612
|
+
countryCode: string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Second line of the contact's address, if applicable.
|
|
616
|
+
*/
|
|
617
|
+
addressLine2?: string;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* The city of the contact's address.
|
|
621
|
+
*/
|
|
622
|
+
city?: string;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
626
|
+
* dashboard.
|
|
627
|
+
*/
|
|
628
|
+
description?: string;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Email of the contact.
|
|
632
|
+
*/
|
|
633
|
+
email?: string;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* First name of the contact.
|
|
637
|
+
*/
|
|
638
|
+
firstName?: string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
642
|
+
* `verified` even if our address verification system says otherwise.
|
|
643
|
+
*/
|
|
644
|
+
forceVerifiedStatus?: boolean;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Job title of the contact.
|
|
648
|
+
*/
|
|
649
|
+
jobTitle?: string;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Last name of the contact.
|
|
653
|
+
*/
|
|
654
|
+
lastName?: string;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* See the section on Metadata.
|
|
658
|
+
*/
|
|
659
|
+
metadata?: { [key: string]: unknown };
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Phone number of the contact.
|
|
663
|
+
*/
|
|
664
|
+
phoneNumber?: string;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* The postal or ZIP code of the contact's address.
|
|
668
|
+
*/
|
|
669
|
+
postalOrZip?: string;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Province or state of the contact's address.
|
|
673
|
+
*/
|
|
674
|
+
provinceOrState?: string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
678
|
+
* verification system.
|
|
679
|
+
*/
|
|
680
|
+
skipVerification?: boolean;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export interface ContactCreateWithFirstName {
|
|
684
|
+
/**
|
|
685
|
+
* The first line of the contact's address.
|
|
686
|
+
*/
|
|
687
|
+
addressLine1: string;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
691
|
+
*/
|
|
692
|
+
countryCode: string;
|
|
693
|
+
|
|
694
|
+
firstName: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Second line of the contact's address, if applicable.
|
|
698
|
+
*/
|
|
699
|
+
addressLine2?: string;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* The city of the contact's address.
|
|
703
|
+
*/
|
|
704
|
+
city?: string;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Company name of the contact.
|
|
708
|
+
*/
|
|
709
|
+
companyName?: string;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
713
|
+
* dashboard.
|
|
714
|
+
*/
|
|
715
|
+
description?: string;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Email of the contact.
|
|
719
|
+
*/
|
|
720
|
+
email?: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
724
|
+
* `verified` even if our address verification system says otherwise.
|
|
725
|
+
*/
|
|
726
|
+
forceVerifiedStatus?: boolean;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Job title of the contact.
|
|
730
|
+
*/
|
|
731
|
+
jobTitle?: string;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Last name of the contact.
|
|
735
|
+
*/
|
|
736
|
+
lastName?: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* See the section on Metadata.
|
|
740
|
+
*/
|
|
741
|
+
metadata?: { [key: string]: unknown };
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Phone number of the contact.
|
|
745
|
+
*/
|
|
746
|
+
phoneNumber?: string;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* The postal or ZIP code of the contact's address.
|
|
750
|
+
*/
|
|
751
|
+
postalOrZip?: string;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Province or state of the contact's address.
|
|
755
|
+
*/
|
|
756
|
+
provinceOrState?: string;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
760
|
+
* verification system.
|
|
761
|
+
*/
|
|
762
|
+
skipVerification?: boolean;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export interface ContactCreateWithCompanyName {
|
|
766
|
+
/**
|
|
767
|
+
* The first line of the contact's address.
|
|
768
|
+
*/
|
|
769
|
+
addressLine1: string;
|
|
770
|
+
|
|
771
|
+
companyName: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
775
|
+
*/
|
|
776
|
+
countryCode: string;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Second line of the contact's address, if applicable.
|
|
780
|
+
*/
|
|
781
|
+
addressLine2?: string;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* The city of the contact's address.
|
|
785
|
+
*/
|
|
786
|
+
city?: string;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
790
|
+
* dashboard.
|
|
791
|
+
*/
|
|
792
|
+
description?: string;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Email of the contact.
|
|
796
|
+
*/
|
|
797
|
+
email?: string;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* First name of the contact.
|
|
801
|
+
*/
|
|
802
|
+
firstName?: string;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
806
|
+
* `verified` even if our address verification system says otherwise.
|
|
807
|
+
*/
|
|
808
|
+
forceVerifiedStatus?: boolean;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Job title of the contact.
|
|
812
|
+
*/
|
|
813
|
+
jobTitle?: string;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Last name of the contact.
|
|
817
|
+
*/
|
|
818
|
+
lastName?: string;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* See the section on Metadata.
|
|
822
|
+
*/
|
|
823
|
+
metadata?: { [key: string]: unknown };
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Phone number of the contact.
|
|
827
|
+
*/
|
|
828
|
+
phoneNumber?: string;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* The postal or ZIP code of the contact's address.
|
|
832
|
+
*/
|
|
833
|
+
postalOrZip?: string;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Province or state of the contact's address.
|
|
837
|
+
*/
|
|
838
|
+
provinceOrState?: string;
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
842
|
+
* verification system.
|
|
843
|
+
*/
|
|
844
|
+
skipVerification?: boolean;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export interface LetterCreateWithTemplate {
|
|
849
|
+
/**
|
|
850
|
+
* The template ID for the letter. You can supply _either_ this or `html` but not
|
|
851
|
+
* both.
|
|
852
|
+
*/
|
|
853
|
+
template: string;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export interface LetterCreateWithPdf {
|
|
857
|
+
/**
|
|
858
|
+
* The contact information of the sender. You can pass contact information inline
|
|
859
|
+
* here just like you can for the `to`.
|
|
860
|
+
*/
|
|
861
|
+
from:
|
|
862
|
+
| LetterCreateWithPdf.ContactCreateWithFirstName
|
|
863
|
+
| LetterCreateWithPdf.ContactCreateWithCompanyName
|
|
864
|
+
| string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* A URL pointing to a PDF file for the letter or the PDF file itself.
|
|
868
|
+
*/
|
|
869
|
+
pdf: string;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* The recipient of this order. You can either supply the contact information
|
|
873
|
+
* inline here or provide a contact ID. PostGrid will automatically deduplicate
|
|
874
|
+
* contacts regardless of whether you provide the information inline here or call
|
|
875
|
+
* the contact creation endpoint.
|
|
876
|
+
*/
|
|
877
|
+
to:
|
|
878
|
+
| LetterCreateWithPdf.ContactCreateWithFirstName
|
|
879
|
+
| LetterCreateWithPdf.ContactCreateWithCompanyName
|
|
880
|
+
| string;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Enum representing the placement of the address on the letter.
|
|
884
|
+
*/
|
|
885
|
+
addressPlacement?: AddressPlacement;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Model representing an attached PDF.
|
|
889
|
+
*/
|
|
890
|
+
attachedPDF?: AttachedPdf;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Indicates if the letter is in color.
|
|
894
|
+
*/
|
|
895
|
+
color?: boolean;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
899
|
+
* dashboard.
|
|
900
|
+
*/
|
|
901
|
+
description?: string;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Indicates if the letter is double-sided.
|
|
905
|
+
*/
|
|
906
|
+
doubleSided?: boolean;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* The envelope (ID) for the letter. You can either specify a custom envelope ID or
|
|
910
|
+
* use the default `standard` envelope.
|
|
911
|
+
*/
|
|
912
|
+
envelope?: string;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* The mailing class of this order. If not provided, automatically set to
|
|
916
|
+
* `first_class`.
|
|
917
|
+
*/
|
|
918
|
+
mailingClass?: BoxesAPI.OrderMailingClass;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
922
|
+
* order with. The keys in this object should match the variable names in the
|
|
923
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
924
|
+
* PDFs uploaded with the order.
|
|
925
|
+
*/
|
|
926
|
+
mergeVariables?: { [key: string]: unknown };
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* See the section on Metadata.
|
|
930
|
+
*/
|
|
931
|
+
metadata?: { [key: string]: unknown };
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* If specified, indicates which letter page is perforated. Currently, only the
|
|
935
|
+
* first page can be perforated.
|
|
936
|
+
*/
|
|
937
|
+
perforatedPage?: 1;
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Model representing a plastic card.
|
|
941
|
+
*/
|
|
942
|
+
plasticCard?: PlasticCard;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The return envelope (ID) sent out with the letter, if any.
|
|
946
|
+
*/
|
|
947
|
+
returnEnvelope?: string;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
951
|
+
* date. You can use this parameter to schedule orders for a future date.
|
|
952
|
+
*/
|
|
953
|
+
sendDate?: string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Enum representing the supported letter sizes.
|
|
957
|
+
*/
|
|
958
|
+
size?: LetterSize;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export namespace LetterCreateWithPdf {
|
|
962
|
+
export interface ContactCreateWithFirstName {
|
|
963
|
+
/**
|
|
964
|
+
* The first line of the contact's address.
|
|
965
|
+
*/
|
|
966
|
+
addressLine1: string;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
970
|
+
*/
|
|
971
|
+
countryCode: string;
|
|
972
|
+
|
|
973
|
+
firstName: string;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Second line of the contact's address, if applicable.
|
|
977
|
+
*/
|
|
978
|
+
addressLine2?: string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* The city of the contact's address.
|
|
982
|
+
*/
|
|
983
|
+
city?: string;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Company name of the contact.
|
|
987
|
+
*/
|
|
988
|
+
companyName?: string;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
992
|
+
* dashboard.
|
|
993
|
+
*/
|
|
994
|
+
description?: string;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Email of the contact.
|
|
998
|
+
*/
|
|
999
|
+
email?: string;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
1003
|
+
* `verified` even if our address verification system says otherwise.
|
|
1004
|
+
*/
|
|
1005
|
+
forceVerifiedStatus?: boolean;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Job title of the contact.
|
|
1009
|
+
*/
|
|
1010
|
+
jobTitle?: string;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Last name of the contact.
|
|
1014
|
+
*/
|
|
1015
|
+
lastName?: string;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* See the section on Metadata.
|
|
1019
|
+
*/
|
|
1020
|
+
metadata?: { [key: string]: unknown };
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Phone number of the contact.
|
|
1024
|
+
*/
|
|
1025
|
+
phoneNumber?: string;
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* The postal or ZIP code of the contact's address.
|
|
1029
|
+
*/
|
|
1030
|
+
postalOrZip?: string;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Province or state of the contact's address.
|
|
1034
|
+
*/
|
|
1035
|
+
provinceOrState?: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
1039
|
+
* verification system.
|
|
1040
|
+
*/
|
|
1041
|
+
skipVerification?: boolean;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export interface ContactCreateWithCompanyName {
|
|
1045
|
+
/**
|
|
1046
|
+
* The first line of the contact's address.
|
|
1047
|
+
*/
|
|
1048
|
+
addressLine1: string;
|
|
1049
|
+
|
|
1050
|
+
companyName: string;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
1054
|
+
*/
|
|
1055
|
+
countryCode: string;
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
* Second line of the contact's address, if applicable.
|
|
1059
|
+
*/
|
|
1060
|
+
addressLine2?: string;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* The city of the contact's address.
|
|
1064
|
+
*/
|
|
1065
|
+
city?: string;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
1069
|
+
* dashboard.
|
|
1070
|
+
*/
|
|
1071
|
+
description?: string;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Email of the contact.
|
|
1075
|
+
*/
|
|
1076
|
+
email?: string;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* First name of the contact.
|
|
1080
|
+
*/
|
|
1081
|
+
firstName?: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
1085
|
+
* `verified` even if our address verification system says otherwise.
|
|
1086
|
+
*/
|
|
1087
|
+
forceVerifiedStatus?: boolean;
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Job title of the contact.
|
|
1091
|
+
*/
|
|
1092
|
+
jobTitle?: string;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Last name of the contact.
|
|
1096
|
+
*/
|
|
1097
|
+
lastName?: string;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* See the section on Metadata.
|
|
1101
|
+
*/
|
|
1102
|
+
metadata?: { [key: string]: unknown };
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Phone number of the contact.
|
|
1106
|
+
*/
|
|
1107
|
+
phoneNumber?: string;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* The postal or ZIP code of the contact's address.
|
|
1111
|
+
*/
|
|
1112
|
+
postalOrZip?: string;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Province or state of the contact's address.
|
|
1116
|
+
*/
|
|
1117
|
+
provinceOrState?: string;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
1121
|
+
* verification system.
|
|
1122
|
+
*/
|
|
1123
|
+
skipVerification?: boolean;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
export interface ContactCreateWithFirstName {
|
|
1127
|
+
/**
|
|
1128
|
+
* The first line of the contact's address.
|
|
1129
|
+
*/
|
|
1130
|
+
addressLine1: string;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
1134
|
+
*/
|
|
1135
|
+
countryCode: string;
|
|
1136
|
+
|
|
1137
|
+
firstName: string;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* Second line of the contact's address, if applicable.
|
|
1141
|
+
*/
|
|
1142
|
+
addressLine2?: string;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* The city of the contact's address.
|
|
1146
|
+
*/
|
|
1147
|
+
city?: string;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Company name of the contact.
|
|
1151
|
+
*/
|
|
1152
|
+
companyName?: string;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
1156
|
+
* dashboard.
|
|
1157
|
+
*/
|
|
1158
|
+
description?: string;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Email of the contact.
|
|
1162
|
+
*/
|
|
1163
|
+
email?: string;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
1167
|
+
* `verified` even if our address verification system says otherwise.
|
|
1168
|
+
*/
|
|
1169
|
+
forceVerifiedStatus?: boolean;
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Job title of the contact.
|
|
1173
|
+
*/
|
|
1174
|
+
jobTitle?: string;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Last name of the contact.
|
|
1178
|
+
*/
|
|
1179
|
+
lastName?: string;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* See the section on Metadata.
|
|
1183
|
+
*/
|
|
1184
|
+
metadata?: { [key: string]: unknown };
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Phone number of the contact.
|
|
1188
|
+
*/
|
|
1189
|
+
phoneNumber?: string;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* The postal or ZIP code of the contact's address.
|
|
1193
|
+
*/
|
|
1194
|
+
postalOrZip?: string;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Province or state of the contact's address.
|
|
1198
|
+
*/
|
|
1199
|
+
provinceOrState?: string;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
1203
|
+
* verification system.
|
|
1204
|
+
*/
|
|
1205
|
+
skipVerification?: boolean;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
export interface ContactCreateWithCompanyName {
|
|
1209
|
+
/**
|
|
1210
|
+
* The first line of the contact's address.
|
|
1211
|
+
*/
|
|
1212
|
+
addressLine1: string;
|
|
1213
|
+
|
|
1214
|
+
companyName: string;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* The ISO 3611-1 country code of the contact's address.
|
|
1218
|
+
*/
|
|
1219
|
+
countryCode: string;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Second line of the contact's address, if applicable.
|
|
1223
|
+
*/
|
|
1224
|
+
addressLine2?: string;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* The city of the contact's address.
|
|
1228
|
+
*/
|
|
1229
|
+
city?: string;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
1233
|
+
* dashboard.
|
|
1234
|
+
*/
|
|
1235
|
+
description?: string;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Email of the contact.
|
|
1239
|
+
*/
|
|
1240
|
+
email?: string;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* First name of the contact.
|
|
1244
|
+
*/
|
|
1245
|
+
firstName?: string;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
1249
|
+
* `verified` even if our address verification system says otherwise.
|
|
1250
|
+
*/
|
|
1251
|
+
forceVerifiedStatus?: boolean;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Job title of the contact.
|
|
1255
|
+
*/
|
|
1256
|
+
jobTitle?: string;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Last name of the contact.
|
|
1260
|
+
*/
|
|
1261
|
+
lastName?: string;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* See the section on Metadata.
|
|
1265
|
+
*/
|
|
1266
|
+
metadata?: { [key: string]: unknown };
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Phone number of the contact.
|
|
1270
|
+
*/
|
|
1271
|
+
phoneNumber?: string;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* The postal or ZIP code of the contact's address.
|
|
1275
|
+
*/
|
|
1276
|
+
postalOrZip?: string;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Province or state of the contact's address.
|
|
1280
|
+
*/
|
|
1281
|
+
provinceOrState?: string;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* If `true`, PostGrid will skip running this contact's address through our address
|
|
1285
|
+
* verification system.
|
|
1286
|
+
*/
|
|
1287
|
+
skipVerification?: boolean;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
export interface LetterListParams {
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* You can supply any string to help narrow down the list of resources. For
|
|
1297
|
+
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
1298
|
+
* that string present somewhere in their response. Alternatively, you can supply a
|
|
1299
|
+
* structured search query. See the documentation on `StructuredSearchQuery` for
|
|
1300
|
+
* more details.
|
|
1301
|
+
*/
|
|
1302
|
+
search?: string;
|
|
1303
|
+
|
|
1304
|
+
skip?: number;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
export declare namespace Letters {
|
|
1308
|
+
export {
|
|
1309
|
+
type AddressPlacement as AddressPlacement,
|
|
1310
|
+
type AttachedPdf as AttachedPdf,
|
|
1311
|
+
type Letter as Letter,
|
|
1312
|
+
type LetterSize as LetterSize,
|
|
1313
|
+
type PlasticCard as PlasticCard,
|
|
1314
|
+
type LetterListResponse as LetterListResponse,
|
|
1315
|
+
type LetterRetrieveURLResponse as LetterRetrieveURLResponse,
|
|
1316
|
+
type LetterCreateParams as LetterCreateParams,
|
|
1317
|
+
type LetterListParams as LetterListParams,
|
|
1318
|
+
};
|
|
1319
|
+
}
|