postgrid-node 0.1.0-alpha.5 → 0.2.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.
Files changed (907) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/LICENSE +1 -1
  3. package/README.md +124 -85
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +191 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +191 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +492 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +488 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +1 -46
  55. package/error.d.ts.map +1 -1
  56. package/error.js +3 -110
  57. package/error.js.map +1 -1
  58. package/error.mjs +1 -96
  59. package/error.mjs.map +1 -1
  60. package/index.d.mts +6 -157
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +5 -156
  63. package/index.d.ts.map +1 -1
  64. package/index.js +12 -166
  65. package/index.js.map +1 -1
  66. package/index.mjs +5 -139
  67. package/index.mjs.map +1 -1
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +1 -0
  111. package/internal/qs/formats.d.ts.map +1 -1
  112. package/internal/qs/formats.js +4 -2
  113. package/internal/qs/formats.js.map +1 -1
  114. package/internal/qs/formats.mjs +2 -1
  115. package/internal/qs/formats.mjs.map +1 -1
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts.map +1 -1
  119. package/internal/qs/stringify.d.mts +3 -0
  120. package/internal/qs/stringify.d.mts.map +1 -0
  121. package/internal/qs/stringify.d.ts.map +1 -1
  122. package/internal/qs/stringify.js +16 -19
  123. package/internal/qs/stringify.js.map +1 -1
  124. package/internal/qs/stringify.mjs +17 -19
  125. package/internal/qs/stringify.mjs.map +1 -1
  126. package/internal/qs/types.d.mts +57 -0
  127. package/internal/qs/types.d.mts.map +1 -0
  128. package/internal/qs/utils.d.mts +15 -0
  129. package/internal/qs/utils.d.mts.map +1 -0
  130. package/internal/qs/utils.d.ts +1 -0
  131. package/internal/qs/utils.d.ts.map +1 -1
  132. package/internal/qs/utils.js +22 -21
  133. package/internal/qs/utils.js.map +1 -1
  134. package/internal/qs/utils.mjs +12 -12
  135. package/internal/qs/utils.mjs.map +1 -1
  136. package/internal/request-options.d.mts +75 -0
  137. package/internal/request-options.d.mts.map +1 -0
  138. package/internal/request-options.d.ts +75 -0
  139. package/internal/request-options.d.ts.map +1 -0
  140. package/internal/request-options.js +14 -0
  141. package/internal/request-options.js.map +1 -0
  142. package/internal/request-options.mjs +10 -0
  143. package/internal/request-options.mjs.map +1 -0
  144. package/internal/shim-types.d.mts +17 -0
  145. package/internal/shim-types.d.mts.map +1 -0
  146. package/internal/shim-types.d.ts +17 -0
  147. package/internal/shim-types.d.ts.map +1 -0
  148. package/internal/shim-types.js +4 -0
  149. package/internal/shim-types.js.map +1 -0
  150. package/internal/shim-types.mjs +3 -0
  151. package/internal/shim-types.mjs.map +1 -0
  152. package/internal/shims.d.mts +20 -0
  153. package/internal/shims.d.mts.map +1 -0
  154. package/internal/shims.d.ts +20 -0
  155. package/internal/shims.d.ts.map +1 -0
  156. package/internal/shims.js +92 -0
  157. package/internal/shims.js.map +1 -0
  158. package/internal/shims.mjs +85 -0
  159. package/internal/shims.mjs.map +1 -0
  160. package/internal/to-file.d.mts +45 -0
  161. package/internal/to-file.d.mts.map +1 -0
  162. package/internal/to-file.d.ts +45 -0
  163. package/internal/to-file.d.ts.map +1 -0
  164. package/internal/to-file.js +91 -0
  165. package/internal/to-file.js.map +1 -0
  166. package/internal/to-file.mjs +88 -0
  167. package/internal/to-file.mjs.map +1 -0
  168. package/internal/tslib.js +81 -0
  169. package/internal/tslib.mjs +17 -0
  170. package/internal/types.d.mts +69 -0
  171. package/internal/types.d.mts.map +1 -0
  172. package/internal/types.d.ts +69 -0
  173. package/internal/types.d.ts.map +1 -0
  174. package/internal/types.js +4 -0
  175. package/internal/types.js.map +1 -0
  176. package/internal/types.mjs +3 -0
  177. package/internal/types.mjs.map +1 -0
  178. package/internal/uploads.d.mts +42 -0
  179. package/internal/uploads.d.mts.map +1 -0
  180. package/internal/uploads.d.ts +42 -0
  181. package/internal/uploads.d.ts.map +1 -0
  182. package/internal/uploads.js +141 -0
  183. package/internal/uploads.js.map +1 -0
  184. package/internal/uploads.mjs +131 -0
  185. package/internal/uploads.mjs.map +1 -0
  186. package/internal/utils/base64.d.mts +3 -0
  187. package/internal/utils/base64.d.mts.map +1 -0
  188. package/internal/utils/base64.d.ts +3 -0
  189. package/internal/utils/base64.d.ts.map +1 -0
  190. package/internal/utils/base64.js +38 -0
  191. package/internal/utils/base64.js.map +1 -0
  192. package/internal/utils/base64.mjs +33 -0
  193. package/internal/utils/base64.mjs.map +1 -0
  194. package/internal/utils/bytes.d.mts +4 -0
  195. package/internal/utils/bytes.d.mts.map +1 -0
  196. package/internal/utils/bytes.d.ts +4 -0
  197. package/internal/utils/bytes.d.ts.map +1 -0
  198. package/internal/utils/bytes.js +31 -0
  199. package/internal/utils/bytes.js.map +1 -0
  200. package/internal/utils/bytes.mjs +26 -0
  201. package/internal/utils/bytes.mjs.map +1 -0
  202. package/internal/utils/env.d.mts +9 -0
  203. package/internal/utils/env.d.mts.map +1 -0
  204. package/internal/utils/env.d.ts +9 -0
  205. package/internal/utils/env.d.ts.map +1 -0
  206. package/internal/utils/env.js +22 -0
  207. package/internal/utils/env.js.map +1 -0
  208. package/internal/utils/env.mjs +18 -0
  209. package/internal/utils/env.mjs.map +1 -0
  210. package/internal/utils/log.d.mts +37 -0
  211. package/internal/utils/log.d.mts.map +1 -0
  212. package/internal/utils/log.d.ts +37 -0
  213. package/internal/utils/log.d.ts.map +1 -0
  214. package/internal/utils/log.js +86 -0
  215. package/internal/utils/log.js.map +1 -0
  216. package/internal/utils/log.mjs +80 -0
  217. package/internal/utils/log.mjs.map +1 -0
  218. package/internal/utils/path.d.mts +15 -0
  219. package/internal/utils/path.d.mts.map +1 -0
  220. package/internal/utils/path.d.ts +15 -0
  221. package/internal/utils/path.d.ts.map +1 -0
  222. package/internal/utils/path.js +79 -0
  223. package/internal/utils/path.js.map +1 -0
  224. package/internal/utils/path.mjs +74 -0
  225. package/internal/utils/path.mjs.map +1 -0
  226. package/internal/utils/sleep.d.mts +2 -0
  227. package/internal/utils/sleep.d.mts.map +1 -0
  228. package/internal/utils/sleep.d.ts +2 -0
  229. package/internal/utils/sleep.d.ts.map +1 -0
  230. package/internal/utils/sleep.js +7 -0
  231. package/internal/utils/sleep.js.map +1 -0
  232. package/internal/utils/sleep.mjs +3 -0
  233. package/internal/utils/sleep.mjs.map +1 -0
  234. package/internal/utils/uuid.d.mts +5 -0
  235. package/internal/utils/uuid.d.mts.map +1 -0
  236. package/internal/utils/uuid.d.ts +5 -0
  237. package/internal/utils/uuid.d.ts.map +1 -0
  238. package/internal/utils/uuid.js +19 -0
  239. package/internal/utils/uuid.js.map +1 -0
  240. package/internal/utils/uuid.mjs +15 -0
  241. package/internal/utils/uuid.mjs.map +1 -0
  242. package/internal/utils/values.d.mts +18 -0
  243. package/internal/utils/values.d.mts.map +1 -0
  244. package/internal/utils/values.d.ts +18 -0
  245. package/internal/utils/values.d.ts.map +1 -0
  246. package/internal/utils/values.js +112 -0
  247. package/internal/utils/values.js.map +1 -0
  248. package/internal/utils/values.mjs +94 -0
  249. package/internal/utils/values.mjs.map +1 -0
  250. package/internal/utils.d.mts +7 -0
  251. package/internal/utils.d.mts.map +1 -0
  252. package/internal/utils.d.ts +7 -0
  253. package/internal/utils.d.ts.map +1 -0
  254. package/internal/utils.js +11 -0
  255. package/internal/utils.js.map +1 -0
  256. package/internal/utils.mjs +8 -0
  257. package/internal/utils.mjs.map +1 -0
  258. package/package.json +110 -75
  259. package/resource.d.mts +2 -0
  260. package/resource.d.mts.map +1 -0
  261. package/resource.d.ts +1 -5
  262. package/resource.d.ts.map +1 -1
  263. package/resource.js +3 -8
  264. package/resource.js.map +1 -1
  265. package/resource.mjs +1 -6
  266. package/resource.mjs.map +1 -1
  267. package/resources/address-verification.d.mts +425 -0
  268. package/resources/address-verification.d.mts.map +1 -0
  269. package/resources/address-verification.d.ts +425 -0
  270. package/resources/address-verification.d.ts.map +1 -0
  271. package/resources/address-verification.js +36 -0
  272. package/resources/address-verification.js.map +1 -0
  273. package/resources/address-verification.mjs +32 -0
  274. package/resources/address-verification.mjs.map +1 -0
  275. package/resources/index.d.mts +4 -0
  276. package/resources/index.d.mts.map +1 -0
  277. package/resources/index.d.ts +3 -15
  278. package/resources/index.d.ts.map +1 -1
  279. package/resources/index.js +7 -57
  280. package/resources/index.js.map +1 -1
  281. package/resources/index.mjs +3 -15
  282. package/resources/index.mjs.map +1 -1
  283. package/resources/intl-address-verification.d.mts +406 -0
  284. package/resources/intl-address-verification.d.mts.map +1 -0
  285. package/resources/intl-address-verification.d.ts +406 -0
  286. package/resources/intl-address-verification.d.ts.map +1 -0
  287. package/resources/intl-address-verification.js +59 -0
  288. package/resources/intl-address-verification.js.map +1 -0
  289. package/resources/intl-address-verification.mjs +55 -0
  290. package/resources/intl-address-verification.mjs.map +1 -0
  291. package/resources/print-mail/bank-accounts.d.mts +345 -0
  292. package/resources/print-mail/bank-accounts.d.mts.map +1 -0
  293. package/resources/print-mail/bank-accounts.d.ts +345 -0
  294. package/resources/print-mail/bank-accounts.d.ts.map +1 -0
  295. package/resources/print-mail/bank-accounts.js +72 -0
  296. package/resources/print-mail/bank-accounts.js.map +1 -0
  297. package/resources/print-mail/bank-accounts.mjs +68 -0
  298. package/resources/print-mail/bank-accounts.mjs.map +1 -0
  299. package/resources/print-mail/boxes.d.mts +873 -0
  300. package/resources/print-mail/boxes.d.mts.map +1 -0
  301. package/resources/print-mail/boxes.d.ts +873 -0
  302. package/resources/print-mail/boxes.d.ts.map +1 -0
  303. package/resources/print-mail/boxes.js +81 -0
  304. package/resources/print-mail/boxes.js.map +1 -0
  305. package/resources/print-mail/boxes.mjs +77 -0
  306. package/resources/print-mail/boxes.mjs.map +1 -0
  307. package/resources/print-mail/campaigns.d.mts +317 -0
  308. package/resources/print-mail/campaigns.d.mts.map +1 -0
  309. package/resources/print-mail/campaigns.d.ts +317 -0
  310. package/resources/print-mail/campaigns.d.ts.map +1 -0
  311. package/resources/print-mail/campaigns.js +114 -0
  312. package/resources/print-mail/campaigns.js.map +1 -0
  313. package/resources/print-mail/campaigns.mjs +110 -0
  314. package/resources/print-mail/campaigns.mjs.map +1 -0
  315. package/resources/print-mail/cheques.d.mts +817 -0
  316. package/resources/print-mail/cheques.d.mts.map +1 -0
  317. package/resources/print-mail/cheques.d.ts +817 -0
  318. package/resources/print-mail/cheques.d.ts.map +1 -0
  319. package/resources/print-mail/cheques.js +121 -0
  320. package/resources/print-mail/cheques.js.map +1 -0
  321. package/resources/print-mail/cheques.mjs +117 -0
  322. package/resources/print-mail/cheques.mjs.map +1 -0
  323. package/resources/print-mail/contacts.d.mts +475 -0
  324. package/resources/print-mail/contacts.d.mts.map +1 -0
  325. package/resources/print-mail/contacts.d.ts +475 -0
  326. package/resources/print-mail/contacts.d.ts.map +1 -0
  327. package/resources/print-mail/contacts.js +76 -0
  328. package/resources/print-mail/contacts.js.map +1 -0
  329. package/resources/print-mail/contacts.mjs +72 -0
  330. package/resources/print-mail/contacts.mjs.map +1 -0
  331. package/resources/print-mail/index.d.mts +16 -0
  332. package/resources/print-mail/index.d.mts.map +1 -0
  333. package/resources/print-mail/index.d.ts +16 -0
  334. package/resources/print-mail/index.d.ts.map +1 -0
  335. package/resources/print-mail/index.js +35 -0
  336. package/resources/print-mail/index.js.map +1 -0
  337. package/resources/print-mail/index.mjs +17 -0
  338. package/resources/print-mail/index.mjs.map +1 -0
  339. package/resources/print-mail/letters.d.mts +1079 -0
  340. package/resources/print-mail/letters.d.mts.map +1 -0
  341. package/resources/print-mail/letters.d.ts +1079 -0
  342. package/resources/print-mail/letters.d.ts.map +1 -0
  343. package/resources/print-mail/letters.js +83 -0
  344. package/resources/print-mail/letters.js.map +1 -0
  345. package/resources/print-mail/letters.mjs +79 -0
  346. package/resources/print-mail/letters.mjs.map +1 -0
  347. package/resources/print-mail/mailing-list-imports.d.mts +354 -0
  348. package/resources/print-mail/mailing-list-imports.d.mts.map +1 -0
  349. package/resources/print-mail/mailing-list-imports.d.ts +354 -0
  350. package/resources/print-mail/mailing-list-imports.d.ts.map +1 -0
  351. package/resources/print-mail/mailing-list-imports.js +105 -0
  352. package/resources/print-mail/mailing-list-imports.js.map +1 -0
  353. package/resources/print-mail/mailing-list-imports.mjs +101 -0
  354. package/resources/print-mail/mailing-list-imports.mjs.map +1 -0
  355. package/resources/print-mail/mailing-lists.d.mts +247 -0
  356. package/resources/print-mail/mailing-lists.d.mts.map +1 -0
  357. package/resources/print-mail/mailing-lists.d.ts +247 -0
  358. package/resources/print-mail/mailing-lists.d.ts.map +1 -0
  359. package/resources/print-mail/mailing-lists.js +117 -0
  360. package/resources/print-mail/mailing-lists.js.map +1 -0
  361. package/resources/print-mail/mailing-lists.mjs +113 -0
  362. package/resources/print-mail/mailing-lists.mjs.map +1 -0
  363. package/resources/print-mail/order-profiles/cheques.d.mts +398 -0
  364. package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -0
  365. package/resources/print-mail/order-profiles/cheques.d.ts +398 -0
  366. package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -0
  367. package/resources/print-mail/order-profiles/cheques.js +92 -0
  368. package/resources/print-mail/order-profiles/cheques.js.map +1 -0
  369. package/resources/print-mail/order-profiles/cheques.mjs +88 -0
  370. package/resources/print-mail/order-profiles/cheques.mjs.map +1 -0
  371. package/resources/print-mail/order-profiles/index.d.mts +6 -0
  372. package/resources/print-mail/order-profiles/index.d.mts.map +1 -0
  373. package/resources/print-mail/order-profiles/index.d.ts +6 -0
  374. package/resources/print-mail/order-profiles/index.d.ts.map +1 -0
  375. package/resources/print-mail/order-profiles/index.js +15 -0
  376. package/resources/print-mail/order-profiles/index.js.map +1 -0
  377. package/resources/print-mail/order-profiles/index.mjs +7 -0
  378. package/resources/print-mail/order-profiles/index.mjs.map +1 -0
  379. package/resources/print-mail/order-profiles/letters.d.mts +333 -0
  380. package/resources/print-mail/order-profiles/letters.d.mts.map +1 -0
  381. package/resources/print-mail/order-profiles/letters.d.ts +333 -0
  382. package/resources/print-mail/order-profiles/letters.d.ts.map +1 -0
  383. package/resources/print-mail/order-profiles/letters.js +99 -0
  384. package/resources/print-mail/order-profiles/letters.js.map +1 -0
  385. package/resources/print-mail/order-profiles/letters.mjs +95 -0
  386. package/resources/print-mail/order-profiles/letters.mjs.map +1 -0
  387. package/resources/print-mail/order-profiles/order-profiles.d.mts +22 -0
  388. package/resources/print-mail/order-profiles/order-profiles.d.mts.map +1 -0
  389. package/resources/print-mail/order-profiles/order-profiles.d.ts +22 -0
  390. package/resources/print-mail/order-profiles/order-profiles.d.ts.map +1 -0
  391. package/resources/print-mail/order-profiles/order-profiles.js +29 -0
  392. package/resources/print-mail/order-profiles/order-profiles.js.map +1 -0
  393. package/resources/print-mail/order-profiles/order-profiles.mjs +24 -0
  394. package/resources/print-mail/order-profiles/order-profiles.mjs.map +1 -0
  395. package/resources/print-mail/order-profiles/postcards.d.mts +263 -0
  396. package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -0
  397. package/resources/print-mail/order-profiles/postcards.d.ts +263 -0
  398. package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -0
  399. package/resources/print-mail/order-profiles/postcards.js +91 -0
  400. package/resources/print-mail/order-profiles/postcards.js.map +1 -0
  401. package/resources/print-mail/order-profiles/postcards.mjs +87 -0
  402. package/resources/print-mail/order-profiles/postcards.mjs.map +1 -0
  403. package/resources/print-mail/order-profiles/self-mailers.d.mts +268 -0
  404. package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -0
  405. package/resources/print-mail/order-profiles/self-mailers.d.ts +268 -0
  406. package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -0
  407. package/resources/print-mail/order-profiles/self-mailers.js +92 -0
  408. package/resources/print-mail/order-profiles/self-mailers.js.map +1 -0
  409. package/resources/print-mail/order-profiles/self-mailers.mjs +88 -0
  410. package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -0
  411. package/resources/print-mail/order-profiles.d.mts +2 -0
  412. package/resources/print-mail/order-profiles.d.mts.map +1 -0
  413. package/resources/print-mail/order-profiles.d.ts.map +1 -0
  414. package/resources/print-mail/order-profiles.js +6 -0
  415. package/resources/print-mail/order-profiles.js.map +1 -0
  416. package/resources/print-mail/order-profiles.mjs.map +1 -0
  417. package/resources/print-mail/postcards.d.mts +1220 -0
  418. package/resources/print-mail/postcards.d.mts.map +1 -0
  419. package/resources/print-mail/postcards.d.ts +1220 -0
  420. package/resources/print-mail/postcards.d.ts.map +1 -0
  421. package/resources/print-mail/postcards.js +87 -0
  422. package/resources/print-mail/postcards.js.map +1 -0
  423. package/resources/print-mail/postcards.mjs +83 -0
  424. package/resources/print-mail/postcards.mjs.map +1 -0
  425. package/resources/print-mail/print-mail.d.mts +62 -0
  426. package/resources/print-mail/print-mail.d.mts.map +1 -0
  427. package/resources/print-mail/print-mail.d.ts +62 -0
  428. package/resources/print-mail/print-mail.d.ts.map +1 -0
  429. package/resources/print-mail/print-mail.js +69 -0
  430. package/resources/print-mail/print-mail.js.map +1 -0
  431. package/resources/print-mail/print-mail.mjs +64 -0
  432. package/resources/print-mail/print-mail.mjs.map +1 -0
  433. package/resources/print-mail/reports/exports.d.mts +165 -0
  434. package/resources/print-mail/reports/exports.d.mts.map +1 -0
  435. package/resources/print-mail/reports/exports.d.ts +165 -0
  436. package/resources/print-mail/reports/exports.d.ts.map +1 -0
  437. package/resources/print-mail/reports/exports.js +66 -0
  438. package/resources/print-mail/reports/exports.js.map +1 -0
  439. package/resources/print-mail/reports/exports.mjs +62 -0
  440. package/resources/print-mail/reports/exports.mjs.map +1 -0
  441. package/resources/print-mail/reports/index.d.mts +4 -0
  442. package/resources/print-mail/reports/index.d.mts.map +1 -0
  443. package/resources/print-mail/reports/index.d.ts +4 -0
  444. package/resources/print-mail/reports/index.d.ts.map +1 -0
  445. package/resources/print-mail/reports/index.js +11 -0
  446. package/resources/print-mail/reports/index.js.map +1 -0
  447. package/resources/print-mail/reports/index.mjs +5 -0
  448. package/resources/print-mail/reports/index.mjs.map +1 -0
  449. package/resources/print-mail/reports/reports.d.mts +214 -0
  450. package/resources/print-mail/reports/reports.d.mts.map +1 -0
  451. package/resources/print-mail/reports/reports.d.ts +214 -0
  452. package/resources/print-mail/reports/reports.d.ts.map +1 -0
  453. package/resources/print-mail/reports/reports.js +110 -0
  454. package/resources/print-mail/reports/reports.js.map +1 -0
  455. package/resources/print-mail/reports/reports.mjs +105 -0
  456. package/resources/print-mail/reports/reports.mjs.map +1 -0
  457. package/resources/print-mail/reports/samples.d.mts +69 -0
  458. package/resources/print-mail/reports/samples.d.mts.map +1 -0
  459. package/resources/print-mail/reports/samples.d.ts +69 -0
  460. package/resources/print-mail/reports/samples.d.ts.map +1 -0
  461. package/resources/print-mail/reports/samples.js +28 -0
  462. package/resources/print-mail/reports/samples.js.map +1 -0
  463. package/resources/print-mail/reports/samples.mjs +24 -0
  464. package/resources/print-mail/reports/samples.mjs.map +1 -0
  465. package/resources/print-mail/reports.d.mts +2 -0
  466. package/resources/print-mail/reports.d.mts.map +1 -0
  467. package/resources/print-mail/reports.d.ts.map +1 -0
  468. package/resources/print-mail/reports.js +6 -0
  469. package/resources/print-mail/reports.js.map +1 -0
  470. package/resources/print-mail/reports.mjs.map +1 -0
  471. package/resources/print-mail/self-mailers.d.mts +1218 -0
  472. package/resources/print-mail/self-mailers.d.mts.map +1 -0
  473. package/resources/print-mail/self-mailers.d.ts +1218 -0
  474. package/resources/print-mail/self-mailers.d.ts.map +1 -0
  475. package/resources/print-mail/self-mailers.js +87 -0
  476. package/resources/print-mail/self-mailers.js.map +1 -0
  477. package/resources/print-mail/self-mailers.mjs +83 -0
  478. package/resources/print-mail/self-mailers.mjs.map +1 -0
  479. package/resources/print-mail/sub-organizations.d.mts +304 -0
  480. package/resources/print-mail/sub-organizations.d.mts.map +1 -0
  481. package/resources/print-mail/sub-organizations.d.ts +304 -0
  482. package/resources/print-mail/sub-organizations.d.ts.map +1 -0
  483. package/resources/print-mail/sub-organizations.js +69 -0
  484. package/resources/print-mail/sub-organizations.js.map +1 -0
  485. package/resources/print-mail/sub-organizations.mjs +65 -0
  486. package/resources/print-mail/sub-organizations.mjs.map +1 -0
  487. package/resources/print-mail/templates.d.mts +169 -0
  488. package/resources/print-mail/templates.d.mts.map +1 -0
  489. package/resources/print-mail/templates.d.ts +169 -0
  490. package/resources/print-mail/templates.d.ts.map +1 -0
  491. package/resources/print-mail/templates.js +79 -0
  492. package/resources/print-mail/templates.js.map +1 -0
  493. package/resources/print-mail/templates.mjs +75 -0
  494. package/resources/print-mail/templates.mjs.map +1 -0
  495. package/resources/print-mail.d.mts +2 -0
  496. package/resources/print-mail.d.mts.map +1 -0
  497. package/resources/print-mail.d.ts +2 -0
  498. package/resources/print-mail.d.ts.map +1 -0
  499. package/resources/print-mail.js +6 -0
  500. package/resources/print-mail.js.map +1 -0
  501. package/resources/print-mail.mjs +3 -0
  502. package/resources/print-mail.mjs.map +1 -0
  503. package/resources.d.mts +2 -0
  504. package/resources.d.mts.map +1 -0
  505. package/resources.d.ts.map +1 -1
  506. package/resources.js +2 -15
  507. package/resources.js.map +1 -1
  508. package/src/api-promise.ts +2 -0
  509. package/src/client.ts +793 -0
  510. package/src/core/README.md +3 -0
  511. package/src/core/api-promise.ts +92 -0
  512. package/src/core/error.ts +130 -0
  513. package/src/core/resource.ts +11 -0
  514. package/src/core/uploads.ts +2 -0
  515. package/src/error.ts +2 -130
  516. package/src/index.ts +5 -520
  517. package/src/internal/README.md +3 -0
  518. package/src/internal/builtin-types.ts +93 -0
  519. package/src/internal/detect-platform.ts +196 -0
  520. package/src/internal/errors.ts +33 -0
  521. package/src/internal/headers.ts +97 -0
  522. package/src/internal/parse.ts +50 -0
  523. package/src/internal/qs/formats.ts +2 -1
  524. package/src/internal/qs/stringify.ts +17 -20
  525. package/src/internal/qs/utils.ts +14 -14
  526. package/src/internal/request-options.ts +91 -0
  527. package/src/internal/shim-types.ts +26 -0
  528. package/src/internal/shims.ts +107 -0
  529. package/src/internal/to-file.ts +154 -0
  530. package/src/internal/types.ts +95 -0
  531. package/src/internal/uploads.ts +187 -0
  532. package/src/internal/utils/base64.ts +40 -0
  533. package/src/internal/utils/bytes.ts +32 -0
  534. package/src/internal/utils/env.ts +18 -0
  535. package/src/internal/utils/log.ts +127 -0
  536. package/src/internal/utils/path.ts +88 -0
  537. package/src/internal/utils/sleep.ts +3 -0
  538. package/src/internal/utils/uuid.ts +17 -0
  539. package/src/internal/utils/values.ts +105 -0
  540. package/src/internal/utils.ts +8 -0
  541. package/src/resource.ts +2 -11
  542. package/src/resources/address-verification.ts +542 -0
  543. package/src/resources/index.ts +12 -142
  544. package/src/resources/intl-address-verification.ts +505 -0
  545. package/src/resources/print-mail/bank-accounts.ts +432 -0
  546. package/src/resources/print-mail/boxes.ts +1079 -0
  547. package/src/resources/print-mail/campaigns.ts +408 -0
  548. package/src/resources/print-mail/cheques.ts +995 -0
  549. package/src/resources/print-mail/contacts.ts +594 -0
  550. package/src/resources/print-mail/index.ts +134 -0
  551. package/src/resources/print-mail/letters.ts +1319 -0
  552. package/src/resources/print-mail/mailing-list-imports.ts +433 -0
  553. package/src/resources/print-mail/mailing-lists.ts +316 -0
  554. package/src/resources/print-mail/order-profiles/cheques.ts +498 -0
  555. package/src/resources/print-mail/order-profiles/index.ts +46 -0
  556. package/src/resources/print-mail/order-profiles/letters.ts +423 -0
  557. package/src/resources/print-mail/order-profiles/order-profiles.ts +111 -0
  558. package/src/resources/print-mail/order-profiles/postcards.ts +338 -0
  559. package/src/resources/print-mail/order-profiles/self-mailers.ts +348 -0
  560. package/src/resources/print-mail/postcards.ts +1483 -0
  561. package/src/resources/print-mail/print-mail.ts +331 -0
  562. package/src/resources/print-mail/reports/exports.ts +209 -0
  563. package/src/resources/print-mail/reports/index.ts +20 -0
  564. package/src/resources/print-mail/reports/reports.ts +290 -0
  565. package/src/resources/print-mail/reports/samples.ts +84 -0
  566. package/src/resources/print-mail/self-mailers.ts +1481 -0
  567. package/src/resources/print-mail/sub-organizations.ts +394 -0
  568. package/src/resources/print-mail/templates.ts +216 -0
  569. package/src/resources/print-mail.ts +3 -0
  570. package/src/tsconfig.json +2 -2
  571. package/src/uploads.ts +2 -255
  572. package/src/version.ts +1 -1
  573. package/uploads.d.mts +2 -0
  574. package/uploads.d.mts.map +1 -0
  575. package/uploads.d.ts +1 -74
  576. package/uploads.d.ts.map +1 -1
  577. package/uploads.js +3 -168
  578. package/uploads.js.map +1 -1
  579. package/uploads.mjs +1 -157
  580. package/uploads.mjs.map +1 -1
  581. package/version.d.mts +2 -0
  582. package/version.d.mts.map +1 -0
  583. package/version.d.ts +1 -1
  584. package/version.d.ts.map +1 -1
  585. package/version.js +1 -1
  586. package/version.js.map +1 -1
  587. package/version.mjs +1 -1
  588. package/version.mjs.map +1 -1
  589. package/_shims/MultipartBody.d.ts +0 -9
  590. package/_shims/MultipartBody.d.ts.map +0 -1
  591. package/_shims/MultipartBody.js +0 -16
  592. package/_shims/MultipartBody.js.map +0 -1
  593. package/_shims/MultipartBody.mjs +0 -12
  594. package/_shims/MultipartBody.mjs.map +0 -1
  595. package/_shims/README.md +0 -46
  596. package/_shims/auto/runtime-bun.d.ts +0 -5
  597. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  598. package/_shims/auto/runtime-bun.js +0 -21
  599. package/_shims/auto/runtime-bun.js.map +0 -1
  600. package/_shims/auto/runtime-bun.mjs +0 -2
  601. package/_shims/auto/runtime-bun.mjs.map +0 -1
  602. package/_shims/auto/runtime-node.d.ts +0 -5
  603. package/_shims/auto/runtime-node.d.ts.map +0 -1
  604. package/_shims/auto/runtime-node.js +0 -21
  605. package/_shims/auto/runtime-node.js.map +0 -1
  606. package/_shims/auto/runtime-node.mjs +0 -2
  607. package/_shims/auto/runtime-node.mjs.map +0 -1
  608. package/_shims/auto/runtime.d.ts +0 -5
  609. package/_shims/auto/runtime.d.ts.map +0 -1
  610. package/_shims/auto/runtime.js +0 -21
  611. package/_shims/auto/runtime.js.map +0 -1
  612. package/_shims/auto/runtime.mjs +0 -2
  613. package/_shims/auto/runtime.mjs.map +0 -1
  614. package/_shims/auto/types-node.d.ts +0 -5
  615. package/_shims/auto/types-node.d.ts.map +0 -1
  616. package/_shims/auto/types-node.js +0 -21
  617. package/_shims/auto/types-node.js.map +0 -1
  618. package/_shims/auto/types-node.mjs +0 -2
  619. package/_shims/auto/types-node.mjs.map +0 -1
  620. package/_shims/auto/types.d.ts +0 -101
  621. package/_shims/auto/types.js +0 -3
  622. package/_shims/auto/types.mjs +0 -3
  623. package/_shims/bun-runtime.d.ts +0 -6
  624. package/_shims/bun-runtime.d.ts.map +0 -1
  625. package/_shims/bun-runtime.js +0 -14
  626. package/_shims/bun-runtime.js.map +0 -1
  627. package/_shims/bun-runtime.mjs +0 -10
  628. package/_shims/bun-runtime.mjs.map +0 -1
  629. package/_shims/index.d.ts +0 -83
  630. package/_shims/index.js +0 -17
  631. package/_shims/index.mjs +0 -11
  632. package/_shims/manual-types.d.ts +0 -12
  633. package/_shims/manual-types.js +0 -3
  634. package/_shims/manual-types.mjs +0 -3
  635. package/_shims/node-runtime.d.ts +0 -3
  636. package/_shims/node-runtime.d.ts.map +0 -1
  637. package/_shims/node-runtime.js +0 -89
  638. package/_shims/node-runtime.js.map +0 -1
  639. package/_shims/node-runtime.mjs +0 -56
  640. package/_shims/node-runtime.mjs.map +0 -1
  641. package/_shims/node-types.d.ts +0 -42
  642. package/_shims/node-types.js +0 -3
  643. package/_shims/node-types.mjs +0 -3
  644. package/_shims/registry.d.ts +0 -37
  645. package/_shims/registry.d.ts.map +0 -1
  646. package/_shims/registry.js +0 -41
  647. package/_shims/registry.js.map +0 -1
  648. package/_shims/registry.mjs +0 -37
  649. package/_shims/registry.mjs.map +0 -1
  650. package/_shims/web-runtime.d.ts +0 -5
  651. package/_shims/web-runtime.d.ts.map +0 -1
  652. package/_shims/web-runtime.js +0 -78
  653. package/_shims/web-runtime.js.map +0 -1
  654. package/_shims/web-runtime.mjs +0 -71
  655. package/_shims/web-runtime.mjs.map +0 -1
  656. package/_shims/web-types.d.ts +0 -83
  657. package/_shims/web-types.js +0 -3
  658. package/_shims/web-types.mjs +0 -3
  659. package/core.d.ts +0 -255
  660. package/core.d.ts.map +0 -1
  661. package/core.js +0 -924
  662. package/core.js.map +0 -1
  663. package/core.mjs +0 -892
  664. package/core.mjs.map +0 -1
  665. package/pagination.d.ts +0 -26
  666. package/pagination.d.ts.map +0 -1
  667. package/pagination.js +0 -46
  668. package/pagination.js.map +0 -1
  669. package/pagination.mjs +0 -42
  670. package/pagination.mjs.map +0 -1
  671. package/resources/bank-accounts.d.ts +0 -342
  672. package/resources/bank-accounts.d.ts.map +0 -1
  673. package/resources/bank-accounts.js +0 -70
  674. package/resources/bank-accounts.js.map +0 -1
  675. package/resources/bank-accounts.mjs +0 -65
  676. package/resources/bank-accounts.mjs.map +0 -1
  677. package/resources/boxes.d.ts +0 -748
  678. package/resources/boxes.d.ts.map +0 -1
  679. package/resources/boxes.js +0 -81
  680. package/resources/boxes.js.map +0 -1
  681. package/resources/boxes.mjs +0 -76
  682. package/resources/boxes.mjs.map +0 -1
  683. package/resources/campaigns.d.ts +0 -658
  684. package/resources/campaigns.d.ts.map +0 -1
  685. package/resources/campaigns.js +0 -67
  686. package/resources/campaigns.js.map +0 -1
  687. package/resources/campaigns.mjs +0 -62
  688. package/resources/campaigns.mjs.map +0 -1
  689. package/resources/cheques/cheques.d.ts +0 -388
  690. package/resources/cheques/cheques.d.ts.map +0 -1
  691. package/resources/cheques/cheques.js +0 -118
  692. package/resources/cheques/cheques.js.map +0 -1
  693. package/resources/cheques/cheques.mjs +0 -90
  694. package/resources/cheques/cheques.mjs.map +0 -1
  695. package/resources/cheques/index.d.ts +0 -4
  696. package/resources/cheques/index.d.ts.map +0 -1
  697. package/resources/cheques/index.js +0 -12
  698. package/resources/cheques/index.js.map +0 -1
  699. package/resources/cheques/index.mjs +0 -5
  700. package/resources/cheques/index.mjs.map +0 -1
  701. package/resources/cheques/url.d.ts +0 -34
  702. package/resources/cheques/url.d.ts.map +0 -1
  703. package/resources/cheques/url.js +0 -25
  704. package/resources/cheques/url.js.map +0 -1
  705. package/resources/cheques/url.mjs +0 -21
  706. package/resources/cheques/url.mjs.map +0 -1
  707. package/resources/cheques/with-deposit-ready-pdf.d.ts +0 -19
  708. package/resources/cheques/with-deposit-ready-pdf.d.ts.map +0 -1
  709. package/resources/cheques/with-deposit-ready-pdf.js +0 -24
  710. package/resources/cheques/with-deposit-ready-pdf.js.map +0 -1
  711. package/resources/cheques/with-deposit-ready-pdf.mjs +0 -20
  712. package/resources/cheques/with-deposit-ready-pdf.mjs.map +0 -1
  713. package/resources/cheques.d.ts +0 -2
  714. package/resources/cheques.d.ts.map +0 -1
  715. package/resources/cheques.js +0 -19
  716. package/resources/cheques.js.map +0 -1
  717. package/resources/cheques.mjs +0 -3
  718. package/resources/cheques.mjs.map +0 -1
  719. package/resources/contacts.d.ts +0 -329
  720. package/resources/contacts.d.ts.map +0 -1
  721. package/resources/contacts.js +0 -72
  722. package/resources/contacts.js.map +0 -1
  723. package/resources/contacts.mjs +0 -67
  724. package/resources/contacts.mjs.map +0 -1
  725. package/resources/letters.d.ts +0 -683
  726. package/resources/letters.d.ts.map +0 -1
  727. package/resources/letters.js +0 -79
  728. package/resources/letters.js.map +0 -1
  729. package/resources/letters.mjs +0 -74
  730. package/resources/letters.mjs.map +0 -1
  731. package/resources/mailing-list-imports.d.ts +0 -919
  732. package/resources/mailing-list-imports.d.ts.map +0 -1
  733. package/resources/mailing-list-imports.js +0 -95
  734. package/resources/mailing-list-imports.js.map +0 -1
  735. package/resources/mailing-list-imports.mjs +0 -90
  736. package/resources/mailing-list-imports.mjs.map +0 -1
  737. package/resources/mailing-lists.d.ts +0 -398
  738. package/resources/mailing-lists.d.ts.map +0 -1
  739. package/resources/mailing-lists.js +0 -101
  740. package/resources/mailing-lists.js.map +0 -1
  741. package/resources/mailing-lists.mjs +0 -96
  742. package/resources/mailing-lists.mjs.map +0 -1
  743. package/resources/order-profiles/cheques.d.ts +0 -588
  744. package/resources/order-profiles/cheques.d.ts.map +0 -1
  745. package/resources/order-profiles/cheques.js +0 -74
  746. package/resources/order-profiles/cheques.js.map +0 -1
  747. package/resources/order-profiles/cheques.mjs +0 -69
  748. package/resources/order-profiles/cheques.mjs.map +0 -1
  749. package/resources/order-profiles/index.d.ts +0 -6
  750. package/resources/order-profiles/index.d.ts.map +0 -1
  751. package/resources/order-profiles/index.js +0 -19
  752. package/resources/order-profiles/index.js.map +0 -1
  753. package/resources/order-profiles/index.mjs +0 -7
  754. package/resources/order-profiles/index.mjs.map +0 -1
  755. package/resources/order-profiles/letters.d.ts +0 -647
  756. package/resources/order-profiles/letters.d.ts.map +0 -1
  757. package/resources/order-profiles/letters.js +0 -80
  758. package/resources/order-profiles/letters.js.map +0 -1
  759. package/resources/order-profiles/letters.mjs +0 -75
  760. package/resources/order-profiles/letters.mjs.map +0 -1
  761. package/resources/order-profiles/order-profiles.d.ts +0 -22
  762. package/resources/order-profiles/order-profiles.d.ts.map +0 -1
  763. package/resources/order-profiles/order-profiles.js +0 -55
  764. package/resources/order-profiles/order-profiles.js.map +0 -1
  765. package/resources/order-profiles/order-profiles.mjs +0 -28
  766. package/resources/order-profiles/order-profiles.mjs.map +0 -1
  767. package/resources/order-profiles/postcards.d.ts +0 -423
  768. package/resources/order-profiles/postcards.d.ts.map +0 -1
  769. package/resources/order-profiles/postcards.js +0 -73
  770. package/resources/order-profiles/postcards.js.map +0 -1
  771. package/resources/order-profiles/postcards.mjs +0 -68
  772. package/resources/order-profiles/postcards.mjs.map +0 -1
  773. package/resources/order-profiles/self-mailers.d.ts +0 -435
  774. package/resources/order-profiles/self-mailers.d.ts.map +0 -1
  775. package/resources/order-profiles/self-mailers.js +0 -75
  776. package/resources/order-profiles/self-mailers.js.map +0 -1
  777. package/resources/order-profiles/self-mailers.mjs +0 -70
  778. package/resources/order-profiles/self-mailers.mjs.map +0 -1
  779. package/resources/order-profiles.d.ts.map +0 -1
  780. package/resources/order-profiles.js +0 -19
  781. package/resources/order-profiles.js.map +0 -1
  782. package/resources/order-profiles.mjs.map +0 -1
  783. package/resources/postcards.d.ts +0 -396
  784. package/resources/postcards.d.ts.map +0 -1
  785. package/resources/postcards.js +0 -82
  786. package/resources/postcards.js.map +0 -1
  787. package/resources/postcards.mjs +0 -77
  788. package/resources/postcards.mjs.map +0 -1
  789. package/resources/reports/exports.d.ts +0 -240
  790. package/resources/reports/exports.d.ts.map +0 -1
  791. package/resources/reports/exports.js +0 -60
  792. package/resources/reports/exports.js.map +0 -1
  793. package/resources/reports/exports.mjs +0 -56
  794. package/resources/reports/exports.mjs.map +0 -1
  795. package/resources/reports/index.d.ts +0 -3
  796. package/resources/reports/index.d.ts.map +0 -1
  797. package/resources/reports/index.js +0 -10
  798. package/resources/reports/index.js.map +0 -1
  799. package/resources/reports/index.mjs +0 -4
  800. package/resources/reports/index.mjs.map +0 -1
  801. package/resources/reports/reports.d.ts +0 -382
  802. package/resources/reports/reports.d.ts.map +0 -1
  803. package/resources/reports/reports.js +0 -142
  804. package/resources/reports/reports.js.map +0 -1
  805. package/resources/reports/reports.mjs +0 -114
  806. package/resources/reports/reports.mjs.map +0 -1
  807. package/resources/reports.d.ts.map +0 -1
  808. package/resources/reports.js +0 -19
  809. package/resources/reports.js.map +0 -1
  810. package/resources/reports.mjs.map +0 -1
  811. package/resources/self-mailers.d.ts +0 -706
  812. package/resources/self-mailers.d.ts.map +0 -1
  813. package/resources/self-mailers.js +0 -83
  814. package/resources/self-mailers.js.map +0 -1
  815. package/resources/self-mailers.mjs +0 -78
  816. package/resources/self-mailers.mjs.map +0 -1
  817. package/resources/shared.d.ts +0 -151
  818. package/resources/shared.d.ts.map +0 -1
  819. package/resources/shared.js +0 -4
  820. package/resources/shared.js.map +0 -1
  821. package/resources/shared.mjs +0 -3
  822. package/resources/shared.mjs.map +0 -1
  823. package/resources/sub-organizations.d.ts +0 -394
  824. package/resources/sub-organizations.d.ts.map +0 -1
  825. package/resources/sub-organizations.js +0 -63
  826. package/resources/sub-organizations.js.map +0 -1
  827. package/resources/sub-organizations.mjs +0 -58
  828. package/resources/sub-organizations.mjs.map +0 -1
  829. package/resources/templates.d.ts +0 -166
  830. package/resources/templates.d.ts.map +0 -1
  831. package/resources/templates.js +0 -72
  832. package/resources/templates.js.map +0 -1
  833. package/resources/templates.mjs +0 -67
  834. package/resources/templates.mjs.map +0 -1
  835. package/shims/node.d.ts +0 -30
  836. package/shims/node.d.ts.map +0 -1
  837. package/shims/node.js +0 -31
  838. package/shims/node.js.map +0 -1
  839. package/shims/node.mjs +0 -5
  840. package/shims/node.mjs.map +0 -1
  841. package/shims/web.d.ts +0 -26
  842. package/shims/web.d.ts.map +0 -1
  843. package/shims/web.js +0 -31
  844. package/shims/web.js.map +0 -1
  845. package/shims/web.mjs +0 -5
  846. package/shims/web.mjs.map +0 -1
  847. package/src/_shims/MultipartBody.ts +0 -9
  848. package/src/_shims/README.md +0 -46
  849. package/src/_shims/auto/runtime-bun.ts +0 -4
  850. package/src/_shims/auto/runtime-node.ts +0 -4
  851. package/src/_shims/auto/runtime.ts +0 -4
  852. package/src/_shims/auto/types-node.ts +0 -4
  853. package/src/_shims/auto/types.d.ts +0 -101
  854. package/src/_shims/auto/types.js +0 -3
  855. package/src/_shims/auto/types.mjs +0 -3
  856. package/src/_shims/bun-runtime.ts +0 -14
  857. package/src/_shims/index.d.ts +0 -83
  858. package/src/_shims/index.js +0 -17
  859. package/src/_shims/index.mjs +0 -11
  860. package/src/_shims/manual-types.d.ts +0 -12
  861. package/src/_shims/manual-types.js +0 -3
  862. package/src/_shims/manual-types.mjs +0 -3
  863. package/src/_shims/node-runtime.ts +0 -81
  864. package/src/_shims/node-types.d.ts +0 -42
  865. package/src/_shims/node-types.js +0 -3
  866. package/src/_shims/node-types.mjs +0 -3
  867. package/src/_shims/registry.ts +0 -67
  868. package/src/_shims/web-runtime.ts +0 -103
  869. package/src/_shims/web-types.d.ts +0 -83
  870. package/src/_shims/web-types.js +0 -3
  871. package/src/_shims/web-types.mjs +0 -3
  872. package/src/core.ts +0 -1236
  873. package/src/pagination.ts +0 -74
  874. package/src/resources/bank-accounts.ts +0 -435
  875. package/src/resources/boxes.ts +0 -1017
  876. package/src/resources/campaigns.ts +0 -853
  877. package/src/resources/cheques/cheques.ts +0 -524
  878. package/src/resources/cheques/index.ts +0 -12
  879. package/src/resources/cheques/url.ts +0 -42
  880. package/src/resources/cheques/with-deposit-ready-pdf.ts +0 -23
  881. package/src/resources/cheques.ts +0 -3
  882. package/src/resources/contacts.ts +0 -415
  883. package/src/resources/letters.ts +0 -902
  884. package/src/resources/mailing-list-imports.ts +0 -1076
  885. package/src/resources/mailing-lists.ts +0 -511
  886. package/src/resources/order-profiles/cheques.ts +0 -888
  887. package/src/resources/order-profiles/index.ts +0 -55
  888. package/src/resources/order-profiles/letters.ts +0 -956
  889. package/src/resources/order-profiles/order-profiles.ts +0 -133
  890. package/src/resources/order-profiles/postcards.ts +0 -694
  891. package/src/resources/order-profiles/self-mailers.ts +0 -707
  892. package/src/resources/postcards.ts +0 -582
  893. package/src/resources/reports/exports.ts +0 -299
  894. package/src/resources/reports/index.ts +0 -25
  895. package/src/resources/reports/reports.ts +0 -494
  896. package/src/resources/self-mailers.ts +0 -1024
  897. package/src/resources/shared.ts +0 -182
  898. package/src/resources/sub-organizations.ts +0 -518
  899. package/src/resources/templates.ts +0 -218
  900. package/src/shims/node.ts +0 -50
  901. package/src/shims/web.ts +0 -50
  902. /package/resources/{order-profiles.d.ts → print-mail/order-profiles.d.ts} +0 -0
  903. /package/resources/{order-profiles.mjs → print-mail/order-profiles.mjs} +0 -0
  904. /package/resources/{reports.d.ts → print-mail/reports.d.ts} +0 -0
  905. /package/resources/{reports.mjs → print-mail/reports.mjs} +0 -0
  906. /package/src/resources/{order-profiles.ts → print-mail/order-profiles.ts} +0 -0
  907. /package/src/resources/{reports.ts → print-mail/reports.ts} +0 -0
package/error.js CHANGED
@@ -1,113 +1,6 @@
1
1
  "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InternalServerError = exports.RateLimitError = exports.UnprocessableEntityError = exports.ConflictError = exports.NotFoundError = exports.PermissionDeniedError = exports.AuthenticationError = exports.BadRequestError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIUserAbortError = exports.APIError = exports.PostGridError = void 0;
5
- const core_1 = require("./core.js");
6
- class PostGridError extends Error {
7
- }
8
- exports.PostGridError = PostGridError;
9
- class APIError extends PostGridError {
10
- constructor(status, error, message, headers) {
11
- super(`${APIError.makeMessage(status, error, message)}`);
12
- this.status = status;
13
- this.headers = headers;
14
- this.error = error;
15
- }
16
- static makeMessage(status, error, message) {
17
- const msg = error?.message ?
18
- typeof error.message === 'string' ?
19
- error.message
20
- : JSON.stringify(error.message)
21
- : error ? JSON.stringify(error)
22
- : message;
23
- if (status && msg) {
24
- return `${status} ${msg}`;
25
- }
26
- if (status) {
27
- return `${status} status code (no body)`;
28
- }
29
- if (msg) {
30
- return msg;
31
- }
32
- return '(no status code or body)';
33
- }
34
- static generate(status, errorResponse, message, headers) {
35
- if (!status || !headers) {
36
- return new APIConnectionError({ message, cause: (0, core_1.castToError)(errorResponse) });
37
- }
38
- const error = errorResponse;
39
- if (status === 400) {
40
- return new BadRequestError(status, error, message, headers);
41
- }
42
- if (status === 401) {
43
- return new AuthenticationError(status, error, message, headers);
44
- }
45
- if (status === 403) {
46
- return new PermissionDeniedError(status, error, message, headers);
47
- }
48
- if (status === 404) {
49
- return new NotFoundError(status, error, message, headers);
50
- }
51
- if (status === 409) {
52
- return new ConflictError(status, error, message, headers);
53
- }
54
- if (status === 422) {
55
- return new UnprocessableEntityError(status, error, message, headers);
56
- }
57
- if (status === 429) {
58
- return new RateLimitError(status, error, message, headers);
59
- }
60
- if (status >= 500) {
61
- return new InternalServerError(status, error, message, headers);
62
- }
63
- return new APIError(status, error, message, headers);
64
- }
65
- }
66
- exports.APIError = APIError;
67
- class APIUserAbortError extends APIError {
68
- constructor({ message } = {}) {
69
- super(undefined, undefined, message || 'Request was aborted.', undefined);
70
- }
71
- }
72
- exports.APIUserAbortError = APIUserAbortError;
73
- class APIConnectionError extends APIError {
74
- constructor({ message, cause }) {
75
- super(undefined, undefined, message || 'Connection error.', undefined);
76
- // in some environments the 'cause' property is already declared
77
- // @ts-ignore
78
- if (cause)
79
- this.cause = cause;
80
- }
81
- }
82
- exports.APIConnectionError = APIConnectionError;
83
- class APIConnectionTimeoutError extends APIConnectionError {
84
- constructor({ message } = {}) {
85
- super({ message: message ?? 'Request timed out.' });
86
- }
87
- }
88
- exports.APIConnectionTimeoutError = APIConnectionTimeoutError;
89
- class BadRequestError extends APIError {
90
- }
91
- exports.BadRequestError = BadRequestError;
92
- class AuthenticationError extends APIError {
93
- }
94
- exports.AuthenticationError = AuthenticationError;
95
- class PermissionDeniedError extends APIError {
96
- }
97
- exports.PermissionDeniedError = PermissionDeniedError;
98
- class NotFoundError extends APIError {
99
- }
100
- exports.NotFoundError = NotFoundError;
101
- class ConflictError extends APIError {
102
- }
103
- exports.ConflictError = ConflictError;
104
- class UnprocessableEntityError extends APIError {
105
- }
106
- exports.UnprocessableEntityError = UnprocessableEntityError;
107
- class RateLimitError extends APIError {
108
- }
109
- exports.RateLimitError = RateLimitError;
110
- class InternalServerError extends APIError {
111
- }
112
- exports.InternalServerError = InternalServerError;
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/error instead */
5
+ tslib_1.__exportStar(require("./core/error.js"), exports);
113
6
  //# sourceMappingURL=error.js.map
package/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA8C;AAE9C,MAAa,aAAc,SAAQ,KAAK;CAAG;AAA3C,sCAA2C;AAE3C,MAAa,QAIX,SAAQ,aAAa;IAQrB,YAAY,MAAe,EAAE,KAAa,EAAE,OAA2B,EAAE,OAAiB;QACxF,KAAK,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,I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,SAAS,CAAC,CAAC;QACvE,gEAAgE;QAChE,aAAa;QACb,IAAI,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC;CACF;AAPD,gDAOC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;IAC/D,YAAY,EAAE,OAAO,KAA2B,EAAE;QAChD,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AAJD,8DAIC;AAED,MAAa,eAAgB,SAAQ,QAAsB;CAAG;AAA9D,0CAA8D;AAE9D,MAAa,mBAAoB,SAAQ,QAAsB;CAAG;AAAlE,kDAAkE;AAElE,MAAa,qBAAsB,SAAQ,QAAsB;CAAG;AAApE,sDAAoE;AAEpE,MAAa,aAAc,SAAQ,QAAsB;CAAG;AAA5D,sCAA4D;AAE5D,MAAa,aAAc,SAAQ,QAAsB;CAAG;AAA5D,sCAA4D;AAE5D,MAAa,wBAAyB,SAAQ,QAAsB;CAAG;AAAvE,4DAAuE;AAEvE,MAAa,cAAe,SAAQ,QAAsB;CAAG;AAA7D,wCAA6D;AAE7D,MAAa,mBAAoB,SAAQ,QAAyB;CAAG;AAArE,kDAAqE"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,0DAA6B"}
package/error.mjs CHANGED
@@ -1,97 +1,2 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { castToError } from "./core.mjs";
3
- export class PostGridError extends Error {
4
- }
5
- export class APIError extends PostGridError {
6
- constructor(status, error, message, headers) {
7
- super(`${APIError.makeMessage(status, error, message)}`);
8
- this.status = status;
9
- this.headers = headers;
10
- this.error = error;
11
- }
12
- static makeMessage(status, error, message) {
13
- const msg = error?.message ?
14
- typeof error.message === 'string' ?
15
- error.message
16
- : JSON.stringify(error.message)
17
- : error ? JSON.stringify(error)
18
- : message;
19
- if (status && msg) {
20
- return `${status} ${msg}`;
21
- }
22
- if (status) {
23
- return `${status} status code (no body)`;
24
- }
25
- if (msg) {
26
- return msg;
27
- }
28
- return '(no status code or body)';
29
- }
30
- static generate(status, errorResponse, message, headers) {
31
- if (!status || !headers) {
32
- return new APIConnectionError({ message, cause: castToError(errorResponse) });
33
- }
34
- const error = errorResponse;
35
- if (status === 400) {
36
- return new BadRequestError(status, error, message, headers);
37
- }
38
- if (status === 401) {
39
- return new AuthenticationError(status, error, message, headers);
40
- }
41
- if (status === 403) {
42
- return new PermissionDeniedError(status, error, message, headers);
43
- }
44
- if (status === 404) {
45
- return new NotFoundError(status, error, message, headers);
46
- }
47
- if (status === 409) {
48
- return new ConflictError(status, error, message, headers);
49
- }
50
- if (status === 422) {
51
- return new UnprocessableEntityError(status, error, message, headers);
52
- }
53
- if (status === 429) {
54
- return new RateLimitError(status, error, message, headers);
55
- }
56
- if (status >= 500) {
57
- return new InternalServerError(status, error, message, headers);
58
- }
59
- return new APIError(status, error, message, headers);
60
- }
61
- }
62
- export class APIUserAbortError extends APIError {
63
- constructor({ message } = {}) {
64
- super(undefined, undefined, message || 'Request was aborted.', undefined);
65
- }
66
- }
67
- export class APIConnectionError extends APIError {
68
- constructor({ message, cause }) {
69
- super(undefined, undefined, message || 'Connection error.', undefined);
70
- // in some environments the 'cause' property is already declared
71
- // @ts-ignore
72
- if (cause)
73
- this.cause = cause;
74
- }
75
- }
76
- export class APIConnectionTimeoutError extends APIConnectionError {
77
- constructor({ message } = {}) {
78
- super({ message: message ?? 'Request timed out.' });
79
- }
80
- }
81
- export class BadRequestError extends APIError {
82
- }
83
- export class AuthenticationError extends APIError {
84
- }
85
- export class PermissionDeniedError extends APIError {
86
- }
87
- export class NotFoundError extends APIError {
88
- }
89
- export class ConflictError extends APIError {
90
- }
91
- export class UnprocessableEntityError extends APIError {
92
- }
93
- export class RateLimitError extends APIError {
94
- }
95
- export class InternalServerError extends APIError {
96
- }
1
+ export * from "./core/error.mjs";
97
2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AO,IAAI,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,QAAyC;IAC9E,YAAY,EAAE,OAAO,KAA2B,EAAE;QAChD,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,IAAI,sBAAsB,EAAE,SAAS,CAAC,CAAC;IAC5E,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,QAAyC;IAC/E,YAAY,EAAE,OAAO,EAAE,KAAK,EAA+D;QACzF,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,IAAI,mBAAmB,EAAE,SAAS,CAAC,CAAC;QACvE,gEAAgE;QAChE,aAAa;QACb,IAAI,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,kBAAkB;IAC/D,YAAY,EAAE,OAAO,KAA2B,EAAE;QAChD,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,QAAsB;CAAG;AAE9D,MAAM,OAAO,mBAAoB,SAAQ,QAAsB;CAAG;AAElE,MAAM,OAAO,qBAAsB,SAAQ,QAAsB;CAAG;AAEpE,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,aAAc,SAAQ,QAAsB;CAAG;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,QAAsB;CAAG;AAEvE,MAAM,OAAO,cAAe,SAAQ,QAAsB;CAAG;AAE7D,MAAM,OAAO,mBAAoB,SAAQ,QAAyB;CAAG"}
1
+ {"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
package/index.d.mts CHANGED
@@ -1,157 +1,6 @@
1
- import { type Agent } from "./_shims/index.js";
2
- import * as Core from "./core.js";
3
- import * as Errors from "./error.js";
4
- import * as Pagination from "./pagination.js";
5
- import { type ListParams, ListResponse } from "./pagination.js";
6
- import * as Uploads from "./uploads.js";
7
- import * as API from "./resources/index.js";
8
- import { BankAccount, BankAccountCreateParams, BankAccountDeleteResponse, BankAccountList, BankAccountListParams, BankAccounts, BankAccountsList } from "./resources/bank-accounts.js";
9
- import { BoxCancelResponse, BoxCreateParams, BoxCreateResponse, BoxListParams, BoxListResponse, BoxListResponsesList, BoxRetrieveResponse, Boxes } from "./resources/boxes.js";
10
- import { CampaignCreateParams, CampaignCreateResponse, CampaignDeleteResponse, CampaignListParams, CampaignListResponse, CampaignListResponsesList, CampaignRetrieveResponse, CampaignSendParams, CampaignSendResponse, CampaignUpdateParams, CampaignUpdateResponse, Campaigns } from "./resources/campaigns.js";
11
- import { Contact, ContactCreateParams, ContactDeleteResponse, ContactListParams, Contacts, ContactsList } from "./resources/contacts.js";
12
- import { Letter, LetterCreateParams, LetterList, LetterListParams, LetterURLResponse, Letters, LettersList } from "./resources/letters.js";
13
- import { MailingListImportCreateParams, MailingListImportCreateResponse, MailingListImportDeleteResponse, MailingListImportListParams, MailingListImportListResponse, MailingListImportListResponsesList, MailingListImportRetrieveResponse, MailingListImportUpdateParams, MailingListImportUpdateResponse, MailingListImports } from "./resources/mailing-list-imports.js";
14
- import { MailingListCreateParams, MailingListCreateResponse, MailingListDeleteResponse, MailingListListParams, MailingListListResponse, MailingListListResponsesList, MailingListRetrieveResponse, MailingListSubmitJobParams, MailingListSubmitJobResponse, MailingListUpdateParams, MailingListUpdateResponse, MailingLists } from "./resources/mailing-lists.js";
15
- import { Postcard, PostcardCreateParams, PostcardList, PostcardListParams, PostcardURLResponse, Postcards, PostcardsList } from "./resources/postcards.js";
16
- import { SelfMailerCancelResponse, SelfMailerCreateParams, SelfMailerCreateResponse, SelfMailerListParams, SelfMailerListResponse, SelfMailerListResponsesList, SelfMailerRetrievePreviewURLResponse, SelfMailerRetrieveResponse, SelfMailers } from "./resources/self-mailers.js";
17
- import { SubOrganizationCreateParams, SubOrganizationCreateResponse, SubOrganizationListParams, SubOrganizationListResponse, SubOrganizationListResponsesList, SubOrganizationListUsersParams, SubOrganizationListUsersResponse, SubOrganizationRetrieveResponse, SubOrganizations } from "./resources/sub-organizations.js";
18
- import { Template, TemplateCreateParams, TemplateDeleteResponse, TemplateList, TemplateListParams, TemplateUpdateParams, Templates, TemplatesList } from "./resources/templates.js";
19
- import { Cheque, ChequeCreateParams, ChequeList, ChequeListParams, Cheques, ChequesList } from "./resources/cheques/cheques.js";
20
- import { OrderProfiles } from "./resources/order-profiles/order-profiles.js";
21
- import { ReportCreateParams, ReportCreateResponse, ReportDeleteResponse, ReportListParams, ReportListResponse, ReportListResponsesList, ReportRetrieveResponse, ReportRunAdHocQueryParams, ReportRunAdHocQueryResponse, ReportSampleParams, ReportSampleResponse, ReportUpdateParams, ReportUpdateResponse, Reports } from "./resources/reports/reports.js";
22
- export interface ClientOptions {
23
- apiKey: string;
24
- /**
25
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
26
- *
27
- * Defaults to process.env['POSTGRID_BASE_URL'].
28
- */
29
- baseURL?: string | null | undefined;
30
- /**
31
- * The maximum amount of time (in milliseconds) that the client should wait for a response
32
- * from the server before timing out a single request.
33
- *
34
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
35
- * much longer than this timeout before the promise succeeds or fails.
36
- *
37
- * @unit milliseconds
38
- */
39
- timeout?: number | undefined;
40
- /**
41
- * An HTTP agent used to manage HTTP(S) connections.
42
- *
43
- * If not provided, an agent will be constructed by default in the Node.js environment,
44
- * otherwise no agent is used.
45
- */
46
- httpAgent?: Agent | undefined;
47
- /**
48
- * Specify a custom `fetch` function implementation.
49
- *
50
- * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
51
- * defined globally.
52
- */
53
- fetch?: Core.Fetch | undefined;
54
- /**
55
- * The maximum number of times that the client will retry a request in case of a
56
- * temporary failure, like a network error or a 5XX error from the server.
57
- *
58
- * @default 2
59
- */
60
- maxRetries?: number | undefined;
61
- /**
62
- * Default headers to include with every request to the API.
63
- *
64
- * These can be removed in individual requests by explicitly setting the
65
- * header to `undefined` or `null` in request options.
66
- */
67
- defaultHeaders?: Core.Headers | undefined;
68
- /**
69
- * Default query parameters to include with every request to the API.
70
- *
71
- * These can be removed in individual requests by explicitly setting the
72
- * param to `undefined` in request options.
73
- */
74
- defaultQuery?: Core.DefaultQuery | undefined;
75
- }
76
- /**
77
- * API Client for interfacing with the PostGrid API.
78
- */
79
- export declare class PostGrid extends Core.APIClient {
80
- #private;
81
- apiKey: string;
82
- private _options;
83
- /**
84
- * API Client for interfacing with the PostGrid API.
85
- *
86
- * @param {string} opts.apiKey
87
- * @param {string} [opts.baseURL=process.env['POSTGRID_BASE_URL'] ?? https://api.postgrid.com/print-mail/v1] - Override the default base URL for the API.
88
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
89
- * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
90
- * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
91
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
92
- * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
93
- * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
94
- */
95
- constructor({ baseURL, apiKey, ...opts }: ClientOptions);
96
- contacts: API.Contacts;
97
- templates: API.Templates;
98
- bankAccounts: API.BankAccounts;
99
- cheques: API.Cheques;
100
- letters: API.Letters;
101
- postcards: API.Postcards;
102
- boxes: API.Boxes;
103
- campaigns: API.Campaigns;
104
- reports: API.Reports;
105
- selfMailers: API.SelfMailers;
106
- mailingListImports: API.MailingListImports;
107
- mailingLists: API.MailingLists;
108
- orderProfiles: API.OrderProfiles;
109
- subOrganizations: API.SubOrganizations;
110
- protected defaultQuery(): Core.DefaultQuery | undefined;
111
- protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
112
- protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
113
- protected stringifyQuery(query: Record<string, unknown>): string;
114
- static PostGrid: typeof PostGrid;
115
- static DEFAULT_TIMEOUT: number;
116
- static PostGridError: typeof Errors.PostGridError;
117
- static APIError: typeof Errors.APIError;
118
- static APIConnectionError: typeof Errors.APIConnectionError;
119
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
120
- static APIUserAbortError: typeof Errors.APIUserAbortError;
121
- static NotFoundError: typeof Errors.NotFoundError;
122
- static ConflictError: typeof Errors.ConflictError;
123
- static RateLimitError: typeof Errors.RateLimitError;
124
- static BadRequestError: typeof Errors.BadRequestError;
125
- static AuthenticationError: typeof Errors.AuthenticationError;
126
- static InternalServerError: typeof Errors.InternalServerError;
127
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
128
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
129
- static toFile: typeof Uploads.toFile;
130
- static fileFromPath: typeof Uploads.fileFromPath;
131
- }
132
- export declare namespace PostGrid {
133
- export type RequestOptions = Core.RequestOptions;
134
- export import List = Pagination.List;
135
- export { type ListParams as ListParams, type ListResponse as ListResponse };
136
- export { Contacts as Contacts, type Contact as Contact, type ContactDeleteResponse as ContactDeleteResponse, ContactsList as ContactsList, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
137
- export { Templates as Templates, type Template as Template, type TemplateList as TemplateList, type TemplateDeleteResponse as TemplateDeleteResponse, TemplatesList as TemplatesList, type TemplateCreateParams as TemplateCreateParams, type TemplateUpdateParams as TemplateUpdateParams, type TemplateListParams as TemplateListParams, };
138
- export { BankAccounts as BankAccounts, type BankAccount as BankAccount, type BankAccountList as BankAccountList, type BankAccountDeleteResponse as BankAccountDeleteResponse, BankAccountsList as BankAccountsList, type BankAccountCreateParams as BankAccountCreateParams, type BankAccountListParams as BankAccountListParams, };
139
- export { Cheques as Cheques, type Cheque as Cheque, type ChequeList as ChequeList, ChequesList as ChequesList, type ChequeCreateParams as ChequeCreateParams, type ChequeListParams as ChequeListParams, };
140
- export { Letters as Letters, type Letter as Letter, type LetterList as LetterList, type LetterURLResponse as LetterURLResponse, LettersList as LettersList, type LetterCreateParams as LetterCreateParams, type LetterListParams as LetterListParams, };
141
- export { Postcards as Postcards, type Postcard as Postcard, type PostcardList as PostcardList, type PostcardURLResponse as PostcardURLResponse, PostcardsList as PostcardsList, type PostcardCreateParams as PostcardCreateParams, type PostcardListParams as PostcardListParams, };
142
- export { Boxes as Boxes, type BoxCreateResponse as BoxCreateResponse, type BoxRetrieveResponse as BoxRetrieveResponse, type BoxListResponse as BoxListResponse, type BoxCancelResponse as BoxCancelResponse, BoxListResponsesList as BoxListResponsesList, type BoxCreateParams as BoxCreateParams, type BoxListParams as BoxListParams, };
143
- export { Campaigns as Campaigns, type CampaignCreateResponse as CampaignCreateResponse, type CampaignRetrieveResponse as CampaignRetrieveResponse, type CampaignUpdateResponse as CampaignUpdateResponse, type CampaignListResponse as CampaignListResponse, type CampaignDeleteResponse as CampaignDeleteResponse, type CampaignSendResponse as CampaignSendResponse, CampaignListResponsesList as CampaignListResponsesList, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, type CampaignSendParams as CampaignSendParams, };
144
- export { Reports as Reports, type ReportCreateResponse as ReportCreateResponse, type ReportRetrieveResponse as ReportRetrieveResponse, type ReportUpdateResponse as ReportUpdateResponse, type ReportListResponse as ReportListResponse, type ReportDeleteResponse as ReportDeleteResponse, type ReportRunAdHocQueryResponse as ReportRunAdHocQueryResponse, type ReportSampleResponse as ReportSampleResponse, ReportListResponsesList as ReportListResponsesList, type ReportCreateParams as ReportCreateParams, type ReportUpdateParams as ReportUpdateParams, type ReportListParams as ReportListParams, type ReportRunAdHocQueryParams as ReportRunAdHocQueryParams, type ReportSampleParams as ReportSampleParams, };
145
- export { SelfMailers as SelfMailers, type SelfMailerCreateResponse as SelfMailerCreateResponse, type SelfMailerRetrieveResponse as SelfMailerRetrieveResponse, type SelfMailerListResponse as SelfMailerListResponse, type SelfMailerCancelResponse as SelfMailerCancelResponse, type SelfMailerRetrievePreviewURLResponse as SelfMailerRetrievePreviewURLResponse, SelfMailerListResponsesList as SelfMailerListResponsesList, type SelfMailerCreateParams as SelfMailerCreateParams, type SelfMailerListParams as SelfMailerListParams, };
146
- export { MailingListImports as MailingListImports, type MailingListImportCreateResponse as MailingListImportCreateResponse, type MailingListImportRetrieveResponse as MailingListImportRetrieveResponse, type MailingListImportUpdateResponse as MailingListImportUpdateResponse, type MailingListImportListResponse as MailingListImportListResponse, type MailingListImportDeleteResponse as MailingListImportDeleteResponse, MailingListImportListResponsesList as MailingListImportListResponsesList, type MailingListImportCreateParams as MailingListImportCreateParams, type MailingListImportUpdateParams as MailingListImportUpdateParams, type MailingListImportListParams as MailingListImportListParams, };
147
- export { MailingLists as MailingLists, type MailingListCreateResponse as MailingListCreateResponse, type MailingListRetrieveResponse as MailingListRetrieveResponse, type MailingListUpdateResponse as MailingListUpdateResponse, type MailingListListResponse as MailingListListResponse, type MailingListDeleteResponse as MailingListDeleteResponse, type MailingListSubmitJobResponse as MailingListSubmitJobResponse, MailingListListResponsesList as MailingListListResponsesList, type MailingListCreateParams as MailingListCreateParams, type MailingListUpdateParams as MailingListUpdateParams, type MailingListListParams as MailingListListParams, type MailingListSubmitJobParams as MailingListSubmitJobParams, };
148
- export { OrderProfiles as OrderProfiles };
149
- export { SubOrganizations as SubOrganizations, type SubOrganizationCreateResponse as SubOrganizationCreateResponse, type SubOrganizationRetrieveResponse as SubOrganizationRetrieveResponse, type SubOrganizationListResponse as SubOrganizationListResponse, type SubOrganizationListUsersResponse as SubOrganizationListUsersResponse, SubOrganizationListResponsesList as SubOrganizationListResponsesList, type SubOrganizationCreateParams as SubOrganizationCreateParams, type SubOrganizationListParams as SubOrganizationListParams, type SubOrganizationListUsersParams as SubOrganizationListUsersParams, };
150
- export type Cancellation = API.Cancellation;
151
- export type ContactCreateWithCompanyName = API.ContactCreateWithCompanyName;
152
- export type ContactCreateWithFirstName = API.ContactCreateWithFirstName;
153
- }
154
- export { toFile, fileFromPath } from "./uploads.js";
155
- export { PostGridError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
156
- export default PostGrid;
157
- //# sourceMappingURL=index.d.ts.map
1
+ export { PostGrid as default } from "./client.mjs";
2
+ export { type Uploadable, toFile } from "./core/uploads.mjs";
3
+ export { APIPromise } from "./core/api-promise.mjs";
4
+ export { PostGrid, type ClientOptions } from "./client.mjs";
5
+ export { PostGridError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
6
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,IAAI,OAAO,EAAE;OAEvB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE;OAChC,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
package/index.d.ts CHANGED
@@ -1,157 +1,6 @@
1
- import { type Agent } from "./_shims/index.js";
2
- import * as Core from "./core.js";
3
- import * as Errors from "./error.js";
4
- import * as Pagination from "./pagination.js";
5
- import { type ListParams, ListResponse } from "./pagination.js";
6
- import * as Uploads from "./uploads.js";
7
- import * as API from "./resources/index.js";
8
- import { BankAccount, BankAccountCreateParams, BankAccountDeleteResponse, BankAccountList, BankAccountListParams, BankAccounts, BankAccountsList } from "./resources/bank-accounts.js";
9
- import { BoxCancelResponse, BoxCreateParams, BoxCreateResponse, BoxListParams, BoxListResponse, BoxListResponsesList, BoxRetrieveResponse, Boxes } from "./resources/boxes.js";
10
- import { CampaignCreateParams, CampaignCreateResponse, CampaignDeleteResponse, CampaignListParams, CampaignListResponse, CampaignListResponsesList, CampaignRetrieveResponse, CampaignSendParams, CampaignSendResponse, CampaignUpdateParams, CampaignUpdateResponse, Campaigns } from "./resources/campaigns.js";
11
- import { Contact, ContactCreateParams, ContactDeleteResponse, ContactListParams, Contacts, ContactsList } from "./resources/contacts.js";
12
- import { Letter, LetterCreateParams, LetterList, LetterListParams, LetterURLResponse, Letters, LettersList } from "./resources/letters.js";
13
- import { MailingListImportCreateParams, MailingListImportCreateResponse, MailingListImportDeleteResponse, MailingListImportListParams, MailingListImportListResponse, MailingListImportListResponsesList, MailingListImportRetrieveResponse, MailingListImportUpdateParams, MailingListImportUpdateResponse, MailingListImports } from "./resources/mailing-list-imports.js";
14
- import { MailingListCreateParams, MailingListCreateResponse, MailingListDeleteResponse, MailingListListParams, MailingListListResponse, MailingListListResponsesList, MailingListRetrieveResponse, MailingListSubmitJobParams, MailingListSubmitJobResponse, MailingListUpdateParams, MailingListUpdateResponse, MailingLists } from "./resources/mailing-lists.js";
15
- import { Postcard, PostcardCreateParams, PostcardList, PostcardListParams, PostcardURLResponse, Postcards, PostcardsList } from "./resources/postcards.js";
16
- import { SelfMailerCancelResponse, SelfMailerCreateParams, SelfMailerCreateResponse, SelfMailerListParams, SelfMailerListResponse, SelfMailerListResponsesList, SelfMailerRetrievePreviewURLResponse, SelfMailerRetrieveResponse, SelfMailers } from "./resources/self-mailers.js";
17
- import { SubOrganizationCreateParams, SubOrganizationCreateResponse, SubOrganizationListParams, SubOrganizationListResponse, SubOrganizationListResponsesList, SubOrganizationListUsersParams, SubOrganizationListUsersResponse, SubOrganizationRetrieveResponse, SubOrganizations } from "./resources/sub-organizations.js";
18
- import { Template, TemplateCreateParams, TemplateDeleteResponse, TemplateList, TemplateListParams, TemplateUpdateParams, Templates, TemplatesList } from "./resources/templates.js";
19
- import { Cheque, ChequeCreateParams, ChequeList, ChequeListParams, Cheques, ChequesList } from "./resources/cheques/cheques.js";
20
- import { OrderProfiles } from "./resources/order-profiles/order-profiles.js";
21
- import { ReportCreateParams, ReportCreateResponse, ReportDeleteResponse, ReportListParams, ReportListResponse, ReportListResponsesList, ReportRetrieveResponse, ReportRunAdHocQueryParams, ReportRunAdHocQueryResponse, ReportSampleParams, ReportSampleResponse, ReportUpdateParams, ReportUpdateResponse, Reports } from "./resources/reports/reports.js";
22
- export interface ClientOptions {
23
- apiKey: string;
24
- /**
25
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
26
- *
27
- * Defaults to process.env['POSTGRID_BASE_URL'].
28
- */
29
- baseURL?: string | null | undefined;
30
- /**
31
- * The maximum amount of time (in milliseconds) that the client should wait for a response
32
- * from the server before timing out a single request.
33
- *
34
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
35
- * much longer than this timeout before the promise succeeds or fails.
36
- *
37
- * @unit milliseconds
38
- */
39
- timeout?: number | undefined;
40
- /**
41
- * An HTTP agent used to manage HTTP(S) connections.
42
- *
43
- * If not provided, an agent will be constructed by default in the Node.js environment,
44
- * otherwise no agent is used.
45
- */
46
- httpAgent?: Agent | undefined;
47
- /**
48
- * Specify a custom `fetch` function implementation.
49
- *
50
- * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
51
- * defined globally.
52
- */
53
- fetch?: Core.Fetch | undefined;
54
- /**
55
- * The maximum number of times that the client will retry a request in case of a
56
- * temporary failure, like a network error or a 5XX error from the server.
57
- *
58
- * @default 2
59
- */
60
- maxRetries?: number | undefined;
61
- /**
62
- * Default headers to include with every request to the API.
63
- *
64
- * These can be removed in individual requests by explicitly setting the
65
- * header to `undefined` or `null` in request options.
66
- */
67
- defaultHeaders?: Core.Headers | undefined;
68
- /**
69
- * Default query parameters to include with every request to the API.
70
- *
71
- * These can be removed in individual requests by explicitly setting the
72
- * param to `undefined` in request options.
73
- */
74
- defaultQuery?: Core.DefaultQuery | undefined;
75
- }
76
- /**
77
- * API Client for interfacing with the PostGrid API.
78
- */
79
- export declare class PostGrid extends Core.APIClient {
80
- #private;
81
- apiKey: string;
82
- private _options;
83
- /**
84
- * API Client for interfacing with the PostGrid API.
85
- *
86
- * @param {string} opts.apiKey
87
- * @param {string} [opts.baseURL=process.env['POSTGRID_BASE_URL'] ?? https://api.postgrid.com/print-mail/v1] - Override the default base URL for the API.
88
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
89
- * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
90
- * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
91
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
92
- * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
93
- * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
94
- */
95
- constructor({ baseURL, apiKey, ...opts }: ClientOptions);
96
- contacts: API.Contacts;
97
- templates: API.Templates;
98
- bankAccounts: API.BankAccounts;
99
- cheques: API.Cheques;
100
- letters: API.Letters;
101
- postcards: API.Postcards;
102
- boxes: API.Boxes;
103
- campaigns: API.Campaigns;
104
- reports: API.Reports;
105
- selfMailers: API.SelfMailers;
106
- mailingListImports: API.MailingListImports;
107
- mailingLists: API.MailingLists;
108
- orderProfiles: API.OrderProfiles;
109
- subOrganizations: API.SubOrganizations;
110
- protected defaultQuery(): Core.DefaultQuery | undefined;
111
- protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
112
- protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
113
- protected stringifyQuery(query: Record<string, unknown>): string;
114
- static PostGrid: typeof PostGrid;
115
- static DEFAULT_TIMEOUT: number;
116
- static PostGridError: typeof Errors.PostGridError;
117
- static APIError: typeof Errors.APIError;
118
- static APIConnectionError: typeof Errors.APIConnectionError;
119
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
120
- static APIUserAbortError: typeof Errors.APIUserAbortError;
121
- static NotFoundError: typeof Errors.NotFoundError;
122
- static ConflictError: typeof Errors.ConflictError;
123
- static RateLimitError: typeof Errors.RateLimitError;
124
- static BadRequestError: typeof Errors.BadRequestError;
125
- static AuthenticationError: typeof Errors.AuthenticationError;
126
- static InternalServerError: typeof Errors.InternalServerError;
127
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
128
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
129
- static toFile: typeof Uploads.toFile;
130
- static fileFromPath: typeof Uploads.fileFromPath;
131
- }
132
- export declare namespace PostGrid {
133
- export type RequestOptions = Core.RequestOptions;
134
- export import List = Pagination.List;
135
- export { type ListParams as ListParams, type ListResponse as ListResponse };
136
- export { Contacts as Contacts, type Contact as Contact, type ContactDeleteResponse as ContactDeleteResponse, ContactsList as ContactsList, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
137
- export { Templates as Templates, type Template as Template, type TemplateList as TemplateList, type TemplateDeleteResponse as TemplateDeleteResponse, TemplatesList as TemplatesList, type TemplateCreateParams as TemplateCreateParams, type TemplateUpdateParams as TemplateUpdateParams, type TemplateListParams as TemplateListParams, };
138
- export { BankAccounts as BankAccounts, type BankAccount as BankAccount, type BankAccountList as BankAccountList, type BankAccountDeleteResponse as BankAccountDeleteResponse, BankAccountsList as BankAccountsList, type BankAccountCreateParams as BankAccountCreateParams, type BankAccountListParams as BankAccountListParams, };
139
- export { Cheques as Cheques, type Cheque as Cheque, type ChequeList as ChequeList, ChequesList as ChequesList, type ChequeCreateParams as ChequeCreateParams, type ChequeListParams as ChequeListParams, };
140
- export { Letters as Letters, type Letter as Letter, type LetterList as LetterList, type LetterURLResponse as LetterURLResponse, LettersList as LettersList, type LetterCreateParams as LetterCreateParams, type LetterListParams as LetterListParams, };
141
- export { Postcards as Postcards, type Postcard as Postcard, type PostcardList as PostcardList, type PostcardURLResponse as PostcardURLResponse, PostcardsList as PostcardsList, type PostcardCreateParams as PostcardCreateParams, type PostcardListParams as PostcardListParams, };
142
- export { Boxes as Boxes, type BoxCreateResponse as BoxCreateResponse, type BoxRetrieveResponse as BoxRetrieveResponse, type BoxListResponse as BoxListResponse, type BoxCancelResponse as BoxCancelResponse, BoxListResponsesList as BoxListResponsesList, type BoxCreateParams as BoxCreateParams, type BoxListParams as BoxListParams, };
143
- export { Campaigns as Campaigns, type CampaignCreateResponse as CampaignCreateResponse, type CampaignRetrieveResponse as CampaignRetrieveResponse, type CampaignUpdateResponse as CampaignUpdateResponse, type CampaignListResponse as CampaignListResponse, type CampaignDeleteResponse as CampaignDeleteResponse, type CampaignSendResponse as CampaignSendResponse, CampaignListResponsesList as CampaignListResponsesList, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, type CampaignSendParams as CampaignSendParams, };
144
- export { Reports as Reports, type ReportCreateResponse as ReportCreateResponse, type ReportRetrieveResponse as ReportRetrieveResponse, type ReportUpdateResponse as ReportUpdateResponse, type ReportListResponse as ReportListResponse, type ReportDeleteResponse as ReportDeleteResponse, type ReportRunAdHocQueryResponse as ReportRunAdHocQueryResponse, type ReportSampleResponse as ReportSampleResponse, ReportListResponsesList as ReportListResponsesList, type ReportCreateParams as ReportCreateParams, type ReportUpdateParams as ReportUpdateParams, type ReportListParams as ReportListParams, type ReportRunAdHocQueryParams as ReportRunAdHocQueryParams, type ReportSampleParams as ReportSampleParams, };
145
- export { SelfMailers as SelfMailers, type SelfMailerCreateResponse as SelfMailerCreateResponse, type SelfMailerRetrieveResponse as SelfMailerRetrieveResponse, type SelfMailerListResponse as SelfMailerListResponse, type SelfMailerCancelResponse as SelfMailerCancelResponse, type SelfMailerRetrievePreviewURLResponse as SelfMailerRetrievePreviewURLResponse, SelfMailerListResponsesList as SelfMailerListResponsesList, type SelfMailerCreateParams as SelfMailerCreateParams, type SelfMailerListParams as SelfMailerListParams, };
146
- export { MailingListImports as MailingListImports, type MailingListImportCreateResponse as MailingListImportCreateResponse, type MailingListImportRetrieveResponse as MailingListImportRetrieveResponse, type MailingListImportUpdateResponse as MailingListImportUpdateResponse, type MailingListImportListResponse as MailingListImportListResponse, type MailingListImportDeleteResponse as MailingListImportDeleteResponse, MailingListImportListResponsesList as MailingListImportListResponsesList, type MailingListImportCreateParams as MailingListImportCreateParams, type MailingListImportUpdateParams as MailingListImportUpdateParams, type MailingListImportListParams as MailingListImportListParams, };
147
- export { MailingLists as MailingLists, type MailingListCreateResponse as MailingListCreateResponse, type MailingListRetrieveResponse as MailingListRetrieveResponse, type MailingListUpdateResponse as MailingListUpdateResponse, type MailingListListResponse as MailingListListResponse, type MailingListDeleteResponse as MailingListDeleteResponse, type MailingListSubmitJobResponse as MailingListSubmitJobResponse, MailingListListResponsesList as MailingListListResponsesList, type MailingListCreateParams as MailingListCreateParams, type MailingListUpdateParams as MailingListUpdateParams, type MailingListListParams as MailingListListParams, type MailingListSubmitJobParams as MailingListSubmitJobParams, };
148
- export { OrderProfiles as OrderProfiles };
149
- export { SubOrganizations as SubOrganizations, type SubOrganizationCreateResponse as SubOrganizationCreateResponse, type SubOrganizationRetrieveResponse as SubOrganizationRetrieveResponse, type SubOrganizationListResponse as SubOrganizationListResponse, type SubOrganizationListUsersResponse as SubOrganizationListUsersResponse, SubOrganizationListResponsesList as SubOrganizationListResponsesList, type SubOrganizationCreateParams as SubOrganizationCreateParams, type SubOrganizationListParams as SubOrganizationListParams, type SubOrganizationListUsersParams as SubOrganizationListUsersParams, };
150
- export type Cancellation = API.Cancellation;
151
- export type ContactCreateWithCompanyName = API.ContactCreateWithCompanyName;
152
- export type ContactCreateWithFirstName = API.ContactCreateWithFirstName;
153
- }
154
- export { toFile, fileFromPath } from "./uploads.js";
155
- export { PostGridError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
156
- export default PostGrid;
1
+ export { PostGrid as default } from "./client.js";
2
+ export { type Uploadable, toFile } from "./core/uploads.js";
3
+ export { APIPromise } from "./core/api-promise.js";
4
+ export { PostGrid, type ClientOptions } from "./client.js";
5
+ export { PostGridError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.js";
157
6
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,EACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB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