postgrid-node 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +201 -0
  3. package/README.md +346 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +144 -0
  87. package/index.d.ts +144 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +161 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +118 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +124 -0
  94. package/pagination.d.ts +24 -0
  95. package/pagination.d.ts.map +1 -0
  96. package/pagination.js +45 -0
  97. package/pagination.js.map +1 -0
  98. package/pagination.mjs +41 -0
  99. package/pagination.mjs.map +1 -0
  100. package/resource.d.ts +6 -0
  101. package/resource.d.ts.map +1 -0
  102. package/resource.js +11 -0
  103. package/resource.js.map +1 -0
  104. package/resource.mjs +7 -0
  105. package/resource.mjs.map +1 -0
  106. package/resources/bank-accounts.d.ts +285 -0
  107. package/resources/bank-accounts.d.ts.map +1 -0
  108. package/resources/bank-accounts.js +45 -0
  109. package/resources/bank-accounts.js.map +1 -0
  110. package/resources/bank-accounts.mjs +40 -0
  111. package/resources/bank-accounts.mjs.map +1 -0
  112. package/resources/boxes.d.ts +683 -0
  113. package/resources/boxes.d.ts.map +1 -0
  114. package/resources/boxes.js +54 -0
  115. package/resources/boxes.js.map +1 -0
  116. package/resources/boxes.mjs +49 -0
  117. package/resources/boxes.mjs.map +1 -0
  118. package/resources/campaigns.d.ts +644 -0
  119. package/resources/campaigns.d.ts.map +1 -0
  120. package/resources/campaigns.js +67 -0
  121. package/resources/campaigns.js.map +1 -0
  122. package/resources/campaigns.mjs +62 -0
  123. package/resources/campaigns.mjs.map +1 -0
  124. package/resources/cheques/cheques.d.ts +349 -0
  125. package/resources/cheques/cheques.d.ts.map +1 -0
  126. package/resources/cheques/cheques.js +95 -0
  127. package/resources/cheques/cheques.js.map +1 -0
  128. package/resources/cheques/cheques.mjs +67 -0
  129. package/resources/cheques/cheques.mjs.map +1 -0
  130. package/resources/cheques/index.d.ts +4 -0
  131. package/resources/cheques/index.d.ts.map +1 -0
  132. package/resources/cheques/index.js +12 -0
  133. package/resources/cheques/index.js.map +1 -0
  134. package/resources/cheques/index.mjs +5 -0
  135. package/resources/cheques/index.mjs.map +1 -0
  136. package/resources/cheques/url.d.ts +29 -0
  137. package/resources/cheques/url.d.ts.map +1 -0
  138. package/resources/cheques/url.js +20 -0
  139. package/resources/cheques/url.js.map +1 -0
  140. package/resources/cheques/url.mjs +16 -0
  141. package/resources/cheques/url.mjs.map +1 -0
  142. package/resources/cheques/with-deposit-ready-pdf.d.ts +13 -0
  143. package/resources/cheques/with-deposit-ready-pdf.d.ts.map +1 -0
  144. package/resources/cheques/with-deposit-ready-pdf.js +18 -0
  145. package/resources/cheques/with-deposit-ready-pdf.js.map +1 -0
  146. package/resources/cheques/with-deposit-ready-pdf.mjs +14 -0
  147. package/resources/cheques/with-deposit-ready-pdf.mjs.map +1 -0
  148. package/resources/contacts.d.ts +295 -0
  149. package/resources/contacts.d.ts.map +1 -0
  150. package/resources/contacts.js +52 -0
  151. package/resources/contacts.js.map +1 -0
  152. package/resources/contacts.mjs +47 -0
  153. package/resources/contacts.mjs.map +1 -0
  154. package/resources/index.d.ts +12 -0
  155. package/resources/index.d.ts.map +1 -0
  156. package/resources/index.js +50 -0
  157. package/resources/index.js.map +1 -0
  158. package/resources/index.mjs +13 -0
  159. package/resources/index.mjs.map +1 -0
  160. package/resources/letters.d.ts +639 -0
  161. package/resources/letters.d.ts.map +1 -0
  162. package/resources/letters.js +55 -0
  163. package/resources/letters.js.map +1 -0
  164. package/resources/letters.mjs +50 -0
  165. package/resources/letters.mjs.map +1 -0
  166. package/resources/postcards.d.ts +346 -0
  167. package/resources/postcards.d.ts.map +1 -0
  168. package/resources/postcards.js +56 -0
  169. package/resources/postcards.js.map +1 -0
  170. package/resources/postcards.mjs +51 -0
  171. package/resources/postcards.mjs.map +1 -0
  172. package/resources/reports/exports.d.ts +207 -0
  173. package/resources/reports/exports.d.ts.map +1 -0
  174. package/resources/reports/exports.js +33 -0
  175. package/resources/reports/exports.js.map +1 -0
  176. package/resources/reports/exports.mjs +29 -0
  177. package/resources/reports/exports.mjs.map +1 -0
  178. package/resources/reports/index.d.ts +4 -0
  179. package/resources/reports/index.d.ts.map +1 -0
  180. package/resources/reports/index.js +12 -0
  181. package/resources/reports/index.js.map +1 -0
  182. package/resources/reports/index.mjs +5 -0
  183. package/resources/reports/index.mjs.map +1 -0
  184. package/resources/reports/reports.d.ts +245 -0
  185. package/resources/reports/reports.d.ts.map +1 -0
  186. package/resources/reports/reports.js +85 -0
  187. package/resources/reports/reports.js.map +1 -0
  188. package/resources/reports/reports.mjs +57 -0
  189. package/resources/reports/reports.mjs.map +1 -0
  190. package/resources/reports/samples.d.ts +81 -0
  191. package/resources/reports/samples.d.ts.map +1 -0
  192. package/resources/reports/samples.js +26 -0
  193. package/resources/reports/samples.js.map +1 -0
  194. package/resources/reports/samples.mjs +22 -0
  195. package/resources/reports/samples.mjs.map +1 -0
  196. package/resources/self-mailers.d.ts +622 -0
  197. package/resources/self-mailers.d.ts.map +1 -0
  198. package/resources/self-mailers.js +45 -0
  199. package/resources/self-mailers.js.map +1 -0
  200. package/resources/self-mailers.mjs +40 -0
  201. package/resources/self-mailers.mjs.map +1 -0
  202. package/resources/shared.d.ts +147 -0
  203. package/resources/shared.d.ts.map +1 -0
  204. package/resources/shared.js +4 -0
  205. package/resources/shared.js.map +1 -0
  206. package/resources/shared.mjs +3 -0
  207. package/resources/shared.mjs.map +1 -0
  208. package/resources/templates.d.ts +126 -0
  209. package/resources/templates.d.ts.map +1 -0
  210. package/resources/templates.js +46 -0
  211. package/resources/templates.js.map +1 -0
  212. package/resources/templates.mjs +41 -0
  213. package/resources/templates.mjs.map +1 -0
  214. package/shims/node.d.ts +30 -0
  215. package/shims/node.d.ts.map +1 -0
  216. package/shims/node.js +31 -0
  217. package/shims/node.js.map +1 -0
  218. package/shims/node.mjs +5 -0
  219. package/shims/node.mjs.map +1 -0
  220. package/shims/web.d.ts +26 -0
  221. package/shims/web.d.ts.map +1 -0
  222. package/shims/web.js +31 -0
  223. package/shims/web.js.map +1 -0
  224. package/shims/web.mjs +5 -0
  225. package/shims/web.mjs.map +1 -0
  226. package/src/_shims/MultipartBody.ts +9 -0
  227. package/src/_shims/README.md +46 -0
  228. package/src/_shims/auto/runtime-bun.ts +4 -0
  229. package/src/_shims/auto/runtime-node.ts +4 -0
  230. package/src/_shims/auto/runtime.ts +4 -0
  231. package/src/_shims/auto/types-node.ts +4 -0
  232. package/src/_shims/auto/types.d.ts +101 -0
  233. package/src/_shims/auto/types.js +3 -0
  234. package/src/_shims/auto/types.mjs +3 -0
  235. package/src/_shims/bun-runtime.ts +14 -0
  236. package/src/_shims/index.d.ts +81 -0
  237. package/src/_shims/index.js +13 -0
  238. package/src/_shims/index.mjs +7 -0
  239. package/src/_shims/manual-types.d.ts +12 -0
  240. package/src/_shims/manual-types.js +3 -0
  241. package/src/_shims/manual-types.mjs +3 -0
  242. package/src/_shims/node-runtime.ts +81 -0
  243. package/src/_shims/node-types.d.ts +42 -0
  244. package/src/_shims/node-types.js +3 -0
  245. package/src/_shims/node-types.mjs +3 -0
  246. package/src/_shims/registry.ts +67 -0
  247. package/src/_shims/web-runtime.ts +103 -0
  248. package/src/_shims/web-types.d.ts +83 -0
  249. package/src/_shims/web-types.js +3 -0
  250. package/src/_shims/web-types.mjs +3 -0
  251. package/src/core.ts +1208 -0
  252. package/src/error.ts +130 -0
  253. package/src/index.ts +428 -0
  254. package/src/lib/.keep +4 -0
  255. package/src/pagination.ts +69 -0
  256. package/src/resource.ts +11 -0
  257. package/src/resources/bank-accounts.ts +382 -0
  258. package/src/resources/boxes.ts +982 -0
  259. package/src/resources/campaigns.ts +853 -0
  260. package/src/resources/cheques/cheques.ts +493 -0
  261. package/src/resources/cheques/index.ts +12 -0
  262. package/src/resources/cheques/url.ts +37 -0
  263. package/src/resources/cheques/with-deposit-ready-pdf.ts +17 -0
  264. package/src/resources/contacts.ts +387 -0
  265. package/src/resources/index.ts +102 -0
  266. package/src/resources/letters.ts +870 -0
  267. package/src/resources/postcards.ts +548 -0
  268. package/src/resources/reports/exports.ts +272 -0
  269. package/src/resources/reports/index.ts +28 -0
  270. package/src/resources/reports/reports.ts +359 -0
  271. package/src/resources/reports/samples.ts +109 -0
  272. package/src/resources/self-mailers.ts +958 -0
  273. package/src/resources/shared.ts +182 -0
  274. package/src/resources/templates.ts +184 -0
  275. package/src/shims/node.ts +50 -0
  276. package/src/shims/web.ts +50 -0
  277. package/src/tsconfig.json +11 -0
  278. package/src/uploads.ts +255 -0
  279. package/src/version.ts +1 -0
  280. package/uploads.d.ts +75 -0
  281. package/uploads.d.ts.map +1 -0
  282. package/uploads.js +171 -0
  283. package/uploads.js.map +1 -0
  284. package/uploads.mjs +158 -0
  285. package/uploads.mjs.map +1 -0
  286. package/version.d.ts +2 -0
  287. package/version.d.ts.map +1 -0
  288. package/version.js +5 -0
  289. package/version.js.map +1 -0
  290. package/version.mjs +2 -0
  291. package/version.mjs.map +1 -0
@@ -0,0 +1,622 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ import * as ContactsAPI from "./contacts.js";
4
+ import * as Shared from "./shared.js";
5
+ import { List, type ListParams } from "../pagination.js";
6
+ export declare class SelfMailers extends APIResource {
7
+ /**
8
+ * Create a self-mailer. Note that you can supply one of the following:
9
+ *
10
+ * - HTML content for the inside and outside of the self-mailer
11
+ * - A template ID for the inside and outside of the self-mailer
12
+ * - A URL or file for a 2 page PDF where the first page is the outside of the
13
+ * self-mailer and the second page is the inside
14
+ * - Upload the aforementioned PDF file via a multipart form upload request
15
+ */
16
+ create(body: SelfMailerCreateParams, options?: Core.RequestOptions): Core.APIPromise<SelfMailerCreateResponse>;
17
+ /**
18
+ * Retrieve a self-mailer by ID.
19
+ */
20
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<SelfMailerRetrieveResponse>;
21
+ /**
22
+ * Get a list of self-mailers.
23
+ */
24
+ list(query?: SelfMailerListParams, options?: Core.RequestOptions): Core.PagePromise<SelfMailerListResponsesList, SelfMailerListResponse>;
25
+ list(options?: Core.RequestOptions): Core.PagePromise<SelfMailerListResponsesList, SelfMailerListResponse>;
26
+ /**
27
+ * Cancel a self-mailer by ID. Note that this operation cannot be undone.
28
+ */
29
+ cancel(id: string, options?: Core.RequestOptions): Core.APIPromise<SelfMailerCancelResponse>;
30
+ }
31
+ export declare class SelfMailerListResponsesList extends List<SelfMailerListResponse> {
32
+ }
33
+ export interface SelfMailerCreateResponse {
34
+ /**
35
+ * A unique ID prefixed with self*mailer*
36
+ */
37
+ id: string;
38
+ /**
39
+ * The UTC time at which this resource was created.
40
+ */
41
+ createdAt: string;
42
+ /**
43
+ * The contact information of the sender.
44
+ */
45
+ from: ContactsAPI.Contact;
46
+ /**
47
+ * `true` if this is a live mode resource else `false`.
48
+ */
49
+ live: boolean;
50
+ /**
51
+ * The mailing class of this order. This determines the speed and cost of delivery.
52
+ * See `OrderMailingClass` for more details.
53
+ */
54
+ mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
55
+ /**
56
+ * Always `self_mailer`.
57
+ */
58
+ object: 'self_mailer';
59
+ /**
60
+ * This order will transition from `ready` to `printing` on the day after this
61
+ * date. For example, if this is a date on Tuesday, the order will transition to
62
+ * `printing` on Wednesday at midnight eastern time.
63
+ */
64
+ sendDate: string;
65
+ /**
66
+ * Enum representing the supported self-mailer sizes.
67
+ */
68
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
69
+ /**
70
+ * See `OrderStatus` for more details on the status of this order.
71
+ */
72
+ status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
73
+ /**
74
+ * The recipient of this order. This will be provided even if you delete the
75
+ * underlying contact.
76
+ */
77
+ to: ContactsAPI.Contact;
78
+ /**
79
+ * The UTC time at which this resource was last updated.
80
+ */
81
+ updatedAt: string;
82
+ /**
83
+ * The cancellation details of this order. Populated if the order has been
84
+ * cancelled.
85
+ */
86
+ cancellation?: Shared.Cancellation;
87
+ /**
88
+ * An optional string describing this resource. Will be visible in the API and the
89
+ * dashboard.
90
+ */
91
+ description?: string;
92
+ /**
93
+ * The last date that the IMB status was updated. See `imbStatus` for more details.
94
+ */
95
+ imbDate?: string;
96
+ /**
97
+ * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
98
+ * US-printed and US-destined orders. This is the most detailed way to track
99
+ * non-express/certified orders.
100
+ */
101
+ imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
102
+ /**
103
+ * The most recent ZIP code of the USPS facility that the order has been processed
104
+ * through. Only populated when an `imbStatus` is present.
105
+ */
106
+ imbZIPCode?: string;
107
+ /**
108
+ * These will be merged with the variables in the template or HTML you create this
109
+ * order with. The keys in this object should match the variable names in the
110
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
111
+ * PDFs uploaded with the order.
112
+ */
113
+ mergeVariables?: Record<string, unknown>;
114
+ /**
115
+ * See the section on Metadata.
116
+ */
117
+ metadata?: Record<string, unknown>;
118
+ /**
119
+ * The tracking number of this order. Populated after an express/certified order
120
+ * has been processed for delivery.
121
+ */
122
+ trackingNumber?: string;
123
+ /**
124
+ * PostGrid renders a PDF preview for all orders. This should be inspected to
125
+ * ensure that the order is correct before it is sent out because it shows what
126
+ * will be printed and mailed to the recipient. Once the PDF preview is generated,
127
+ * this field will be returned by all `GET` endpoints which produce this order.
128
+ *
129
+ * This URL is a signed link to the PDF preview. It will expire after a short
130
+ * period of time. If you need to access this URL after it has expired, you can
131
+ * regenerate it by calling the `GET` endpoint again.
132
+ */
133
+ url?: string;
134
+ }
135
+ export interface SelfMailerRetrieveResponse {
136
+ /**
137
+ * A unique ID prefixed with self*mailer*
138
+ */
139
+ id: string;
140
+ /**
141
+ * The UTC time at which this resource was created.
142
+ */
143
+ createdAt: string;
144
+ /**
145
+ * The contact information of the sender.
146
+ */
147
+ from: ContactsAPI.Contact;
148
+ /**
149
+ * `true` if this is a live mode resource else `false`.
150
+ */
151
+ live: boolean;
152
+ /**
153
+ * The mailing class of this order. This determines the speed and cost of delivery.
154
+ * See `OrderMailingClass` for more details.
155
+ */
156
+ mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
157
+ /**
158
+ * Always `self_mailer`.
159
+ */
160
+ object: 'self_mailer';
161
+ /**
162
+ * This order will transition from `ready` to `printing` on the day after this
163
+ * date. For example, if this is a date on Tuesday, the order will transition to
164
+ * `printing` on Wednesday at midnight eastern time.
165
+ */
166
+ sendDate: string;
167
+ /**
168
+ * Enum representing the supported self-mailer sizes.
169
+ */
170
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
171
+ /**
172
+ * See `OrderStatus` for more details on the status of this order.
173
+ */
174
+ status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
175
+ /**
176
+ * The recipient of this order. This will be provided even if you delete the
177
+ * underlying contact.
178
+ */
179
+ to: ContactsAPI.Contact;
180
+ /**
181
+ * The UTC time at which this resource was last updated.
182
+ */
183
+ updatedAt: string;
184
+ /**
185
+ * The cancellation details of this order. Populated if the order has been
186
+ * cancelled.
187
+ */
188
+ cancellation?: Shared.Cancellation;
189
+ /**
190
+ * An optional string describing this resource. Will be visible in the API and the
191
+ * dashboard.
192
+ */
193
+ description?: string;
194
+ /**
195
+ * The last date that the IMB status was updated. See `imbStatus` for more details.
196
+ */
197
+ imbDate?: string;
198
+ /**
199
+ * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
200
+ * US-printed and US-destined orders. This is the most detailed way to track
201
+ * non-express/certified orders.
202
+ */
203
+ imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
204
+ /**
205
+ * The most recent ZIP code of the USPS facility that the order has been processed
206
+ * through. Only populated when an `imbStatus` is present.
207
+ */
208
+ imbZIPCode?: string;
209
+ /**
210
+ * These will be merged with the variables in the template or HTML you create this
211
+ * order with. The keys in this object should match the variable names in the
212
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
213
+ * PDFs uploaded with the order.
214
+ */
215
+ mergeVariables?: Record<string, unknown>;
216
+ /**
217
+ * See the section on Metadata.
218
+ */
219
+ metadata?: Record<string, unknown>;
220
+ /**
221
+ * The tracking number of this order. Populated after an express/certified order
222
+ * has been processed for delivery.
223
+ */
224
+ trackingNumber?: string;
225
+ /**
226
+ * PostGrid renders a PDF preview for all orders. This should be inspected to
227
+ * ensure that the order is correct before it is sent out because it shows what
228
+ * will be printed and mailed to the recipient. Once the PDF preview is generated,
229
+ * this field will be returned by all `GET` endpoints which produce this order.
230
+ *
231
+ * This URL is a signed link to the PDF preview. It will expire after a short
232
+ * period of time. If you need to access this URL after it has expired, you can
233
+ * regenerate it by calling the `GET` endpoint again.
234
+ */
235
+ url?: string;
236
+ }
237
+ export interface SelfMailerListResponse {
238
+ /**
239
+ * A unique ID prefixed with self*mailer*
240
+ */
241
+ id: string;
242
+ /**
243
+ * The UTC time at which this resource was created.
244
+ */
245
+ createdAt: string;
246
+ /**
247
+ * The contact information of the sender.
248
+ */
249
+ from: ContactsAPI.Contact;
250
+ /**
251
+ * `true` if this is a live mode resource else `false`.
252
+ */
253
+ live: boolean;
254
+ /**
255
+ * The mailing class of this order. This determines the speed and cost of delivery.
256
+ * See `OrderMailingClass` for more details.
257
+ */
258
+ mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
259
+ /**
260
+ * Always `self_mailer`.
261
+ */
262
+ object: 'self_mailer';
263
+ /**
264
+ * This order will transition from `ready` to `printing` on the day after this
265
+ * date. For example, if this is a date on Tuesday, the order will transition to
266
+ * `printing` on Wednesday at midnight eastern time.
267
+ */
268
+ sendDate: string;
269
+ /**
270
+ * Enum representing the supported self-mailer sizes.
271
+ */
272
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
273
+ /**
274
+ * See `OrderStatus` for more details on the status of this order.
275
+ */
276
+ status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
277
+ /**
278
+ * The recipient of this order. This will be provided even if you delete the
279
+ * underlying contact.
280
+ */
281
+ to: ContactsAPI.Contact;
282
+ /**
283
+ * The UTC time at which this resource was last updated.
284
+ */
285
+ updatedAt: string;
286
+ /**
287
+ * The cancellation details of this order. Populated if the order has been
288
+ * cancelled.
289
+ */
290
+ cancellation?: Shared.Cancellation;
291
+ /**
292
+ * An optional string describing this resource. Will be visible in the API and the
293
+ * dashboard.
294
+ */
295
+ description?: string;
296
+ /**
297
+ * The last date that the IMB status was updated. See `imbStatus` for more details.
298
+ */
299
+ imbDate?: string;
300
+ /**
301
+ * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
302
+ * US-printed and US-destined orders. This is the most detailed way to track
303
+ * non-express/certified orders.
304
+ */
305
+ imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
306
+ /**
307
+ * The most recent ZIP code of the USPS facility that the order has been processed
308
+ * through. Only populated when an `imbStatus` is present.
309
+ */
310
+ imbZIPCode?: string;
311
+ /**
312
+ * These will be merged with the variables in the template or HTML you create this
313
+ * order with. The keys in this object should match the variable names in the
314
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
315
+ * PDFs uploaded with the order.
316
+ */
317
+ mergeVariables?: Record<string, unknown>;
318
+ /**
319
+ * See the section on Metadata.
320
+ */
321
+ metadata?: Record<string, unknown>;
322
+ /**
323
+ * The tracking number of this order. Populated after an express/certified order
324
+ * has been processed for delivery.
325
+ */
326
+ trackingNumber?: string;
327
+ /**
328
+ * PostGrid renders a PDF preview for all orders. This should be inspected to
329
+ * ensure that the order is correct before it is sent out because it shows what
330
+ * will be printed and mailed to the recipient. Once the PDF preview is generated,
331
+ * this field will be returned by all `GET` endpoints which produce this order.
332
+ *
333
+ * This URL is a signed link to the PDF preview. It will expire after a short
334
+ * period of time. If you need to access this URL after it has expired, you can
335
+ * regenerate it by calling the `GET` endpoint again.
336
+ */
337
+ url?: string;
338
+ }
339
+ export interface SelfMailerCancelResponse {
340
+ /**
341
+ * A unique ID prefixed with self*mailer*
342
+ */
343
+ id: string;
344
+ /**
345
+ * The UTC time at which this resource was created.
346
+ */
347
+ createdAt: string;
348
+ /**
349
+ * The contact information of the sender.
350
+ */
351
+ from: ContactsAPI.Contact;
352
+ /**
353
+ * `true` if this is a live mode resource else `false`.
354
+ */
355
+ live: boolean;
356
+ /**
357
+ * The mailing class of this order. This determines the speed and cost of delivery.
358
+ * See `OrderMailingClass` for more details.
359
+ */
360
+ mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
361
+ /**
362
+ * Always `self_mailer`.
363
+ */
364
+ object: 'self_mailer';
365
+ /**
366
+ * This order will transition from `ready` to `printing` on the day after this
367
+ * date. For example, if this is a date on Tuesday, the order will transition to
368
+ * `printing` on Wednesday at midnight eastern time.
369
+ */
370
+ sendDate: string;
371
+ /**
372
+ * Enum representing the supported self-mailer sizes.
373
+ */
374
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
375
+ /**
376
+ * See `OrderStatus` for more details on the status of this order.
377
+ */
378
+ status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
379
+ /**
380
+ * The recipient of this order. This will be provided even if you delete the
381
+ * underlying contact.
382
+ */
383
+ to: ContactsAPI.Contact;
384
+ /**
385
+ * The UTC time at which this resource was last updated.
386
+ */
387
+ updatedAt: string;
388
+ /**
389
+ * The cancellation details of this order. Populated if the order has been
390
+ * cancelled.
391
+ */
392
+ cancellation?: Shared.Cancellation;
393
+ /**
394
+ * An optional string describing this resource. Will be visible in the API and the
395
+ * dashboard.
396
+ */
397
+ description?: string;
398
+ /**
399
+ * The last date that the IMB status was updated. See `imbStatus` for more details.
400
+ */
401
+ imbDate?: string;
402
+ /**
403
+ * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
404
+ * US-printed and US-destined orders. This is the most detailed way to track
405
+ * non-express/certified orders.
406
+ */
407
+ imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
408
+ /**
409
+ * The most recent ZIP code of the USPS facility that the order has been processed
410
+ * through. Only populated when an `imbStatus` is present.
411
+ */
412
+ imbZIPCode?: string;
413
+ /**
414
+ * These will be merged with the variables in the template or HTML you create this
415
+ * order with. The keys in this object should match the variable names in the
416
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
417
+ * PDFs uploaded with the order.
418
+ */
419
+ mergeVariables?: Record<string, unknown>;
420
+ /**
421
+ * See the section on Metadata.
422
+ */
423
+ metadata?: Record<string, unknown>;
424
+ /**
425
+ * The tracking number of this order. Populated after an express/certified order
426
+ * has been processed for delivery.
427
+ */
428
+ trackingNumber?: string;
429
+ /**
430
+ * PostGrid renders a PDF preview for all orders. This should be inspected to
431
+ * ensure that the order is correct before it is sent out because it shows what
432
+ * will be printed and mailed to the recipient. Once the PDF preview is generated,
433
+ * this field will be returned by all `GET` endpoints which produce this order.
434
+ *
435
+ * This URL is a signed link to the PDF preview. It will expire after a short
436
+ * period of time. If you need to access this URL after it has expired, you can
437
+ * regenerate it by calling the `GET` endpoint again.
438
+ */
439
+ url?: string;
440
+ }
441
+ export type SelfMailerCreateParams = SelfMailerCreateParams.SelfMailerCreateWithHTML | SelfMailerCreateParams.SelfMailerCreateWithTemplate | SelfMailerCreateParams.SelfMailerCreateWithPdfurl | SelfMailerCreateParams.SelfMailerCreateWithPdfFile;
442
+ export declare namespace SelfMailerCreateParams {
443
+ interface SelfMailerCreateWithHTML {
444
+ /**
445
+ * The contact information of the sender. You can pass contact information inline
446
+ * here just like you can for the `to`.
447
+ */
448
+ from: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
449
+ /**
450
+ * The HTML content for the inside of the self-mailer. You can supply _either_ this
451
+ * or `insideTemplate` but not both.
452
+ */
453
+ insideHTML: string;
454
+ /**
455
+ * The HTML content for the outside of the self-mailer. You can supply _either_
456
+ * this or `outsideTemplate` but not both.
457
+ */
458
+ outsideHTML: string;
459
+ /**
460
+ * Enum representing the supported self-mailer sizes.
461
+ */
462
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
463
+ /**
464
+ * The recipient of this order. You can either supply the contact information
465
+ * inline here or provide a contact ID. PostGrid will automatically deduplicate
466
+ * contacts regardless of whether you provide the information inline here or call
467
+ * the contact creation endpoint.
468
+ */
469
+ to: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
470
+ /**
471
+ * An optional string describing this resource. Will be visible in the API and the
472
+ * dashboard.
473
+ */
474
+ description?: string;
475
+ /**
476
+ * The mailing class of this order. If not provided, automatically set to
477
+ * `first_class`.
478
+ */
479
+ mailingClass?: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
480
+ /**
481
+ * These will be merged with the variables in the template or HTML you create this
482
+ * order with. The keys in this object should match the variable names in the
483
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
484
+ * PDFs uploaded with the order.
485
+ */
486
+ mergeVariables?: Record<string, unknown>;
487
+ /**
488
+ * See the section on Metadata.
489
+ */
490
+ metadata?: Record<string, unknown>;
491
+ /**
492
+ * This order will transition from `ready` to `printing` on the day after this
493
+ * date. You can use this parameter to schedule orders for a future date.
494
+ */
495
+ sendDate?: string;
496
+ }
497
+ interface SelfMailerCreateWithTemplate {
498
+ /**
499
+ * The template ID for the inside of the self-mailer. You can supply _either_ this
500
+ * or `insideHTML` but not both.
501
+ */
502
+ insideTemplate: string;
503
+ /**
504
+ * The template ID for the outside of the self-mailer. You can supply _either_ this
505
+ * or `outsideHTML` but not both.
506
+ */
507
+ outsideTemplate: string;
508
+ }
509
+ interface SelfMailerCreateWithPdfurl {
510
+ /**
511
+ * The contact information of the sender. You can pass contact information inline
512
+ * here just like you can for the `to`.
513
+ */
514
+ from: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
515
+ /**
516
+ * A URL pointing to a 2 page PDF file. The first page is the inside of the
517
+ * self-mailer and the second page is the outside (where the address will be
518
+ * stamped on).
519
+ */
520
+ pdf: string;
521
+ /**
522
+ * Enum representing the supported self-mailer sizes.
523
+ */
524
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
525
+ /**
526
+ * The recipient of this order. You can either supply the contact information
527
+ * inline here or provide a contact ID. PostGrid will automatically deduplicate
528
+ * contacts regardless of whether you provide the information inline here or call
529
+ * the contact creation endpoint.
530
+ */
531
+ to: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
532
+ /**
533
+ * An optional string describing this resource. Will be visible in the API and the
534
+ * dashboard.
535
+ */
536
+ description?: string;
537
+ /**
538
+ * The mailing class of this order. If not provided, automatically set to
539
+ * `first_class`.
540
+ */
541
+ mailingClass?: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
542
+ /**
543
+ * These will be merged with the variables in the template or HTML you create this
544
+ * order with. The keys in this object should match the variable names in the
545
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
546
+ * PDFs uploaded with the order.
547
+ */
548
+ mergeVariables?: Record<string, unknown>;
549
+ /**
550
+ * See the section on Metadata.
551
+ */
552
+ metadata?: Record<string, unknown>;
553
+ /**
554
+ * This order will transition from `ready` to `printing` on the day after this
555
+ * date. You can use this parameter to schedule orders for a future date.
556
+ */
557
+ sendDate?: string;
558
+ }
559
+ interface SelfMailerCreateWithPdfFile {
560
+ /**
561
+ * The contact information of the sender. You can pass contact information inline
562
+ * here just like you can for the `to`.
563
+ */
564
+ from: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
565
+ /**
566
+ * A 2 page PDF file. The first page is the inside of the self-mailer and the
567
+ * second page is the outside (where the address will be stamped on).
568
+ */
569
+ pdf: string;
570
+ /**
571
+ * Enum representing the supported self-mailer sizes.
572
+ */
573
+ size: '8.5x11_bifold' | '8.5x11_trifold' | '9.5x16_trifold';
574
+ /**
575
+ * The recipient of this order. You can either supply the contact information
576
+ * inline here or provide a contact ID. PostGrid will automatically deduplicate
577
+ * contacts regardless of whether you provide the information inline here or call
578
+ * the contact creation endpoint.
579
+ */
580
+ to: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
581
+ /**
582
+ * An optional string describing this resource. Will be visible in the API and the
583
+ * dashboard.
584
+ */
585
+ description?: string;
586
+ /**
587
+ * The mailing class of this order. If not provided, automatically set to
588
+ * `first_class`.
589
+ */
590
+ mailingClass?: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
591
+ /**
592
+ * These will be merged with the variables in the template or HTML you create this
593
+ * order with. The keys in this object should match the variable names in the
594
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
595
+ * PDFs uploaded with the order.
596
+ */
597
+ mergeVariables?: Record<string, unknown>;
598
+ /**
599
+ * See the section on Metadata.
600
+ */
601
+ metadata?: Record<string, unknown>;
602
+ /**
603
+ * This order will transition from `ready` to `printing` on the day after this
604
+ * date. You can use this parameter to schedule orders for a future date.
605
+ */
606
+ sendDate?: string;
607
+ }
608
+ }
609
+ export interface SelfMailerListParams extends ListParams {
610
+ /**
611
+ * You can supply any string to help narrow down the list of resources. For
612
+ * example, if you pass `"New York"` (quoted), it will return resources that have
613
+ * that string present somewhere in their response. Alternatively, you can supply a
614
+ * structured search query. See the documentation on `StructuredSearchQuery` for
615
+ * more details.
616
+ */
617
+ search?: string;
618
+ }
619
+ export declare namespace SelfMailers {
620
+ export { type SelfMailerCreateResponse as SelfMailerCreateResponse, type SelfMailerRetrieveResponse as SelfMailerRetrieveResponse, type SelfMailerListResponse as SelfMailerListResponse, type SelfMailerCancelResponse as SelfMailerCancelResponse, SelfMailerListResponsesList as SelfMailerListResponsesList, type SelfMailerCreateParams as SelfMailerCreateParams, type SelfMailerListParams as SelfMailerListParams, };
621
+ }
622
+ //# sourceMappingURL=self-mailers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-mailers.d.ts","sourceRoot":"","sources":["../src/resources/self-mailers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,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