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,639 @@
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 Letters extends APIResource {
7
+ /**
8
+ * Create a letter. Note that you can supply one of the following:
9
+ *
10
+ * - HTML content for the letter
11
+ * - A template ID for the letter
12
+ * - A URL or file for a PDF for the letter
13
+ * - Upload the aforementioned PDF file via a multipart form upload request
14
+ */
15
+ create(body: LetterCreateParams, options?: Core.RequestOptions): Core.APIPromise<Letter>;
16
+ /**
17
+ * Retrieve a letter by ID.
18
+ */
19
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<Letter>;
20
+ /**
21
+ * Get a list of letters.
22
+ */
23
+ list(query?: LetterListParams, options?: Core.RequestOptions): Core.PagePromise<LettersList, Letter>;
24
+ list(options?: Core.RequestOptions): Core.PagePromise<LettersList, Letter>;
25
+ /**
26
+ * Cancel a letter by ID. Note that this operation cannot be undone.
27
+ */
28
+ delete(id: string, options?: Core.RequestOptions): Core.APIPromise<Letter>;
29
+ /**
30
+ * Retrieve a letter preview URL.
31
+ *
32
+ * This is only available for customers with our document management addon, which
33
+ * offers document generation and hosting capabilities. This endpoint has a much
34
+ * higher rate limit than the regular order retrieval endpoint, so it is suitable
35
+ * for customer-facing use-cases.
36
+ */
37
+ url(id: string, options?: Core.RequestOptions): Core.APIPromise<LetterURLResponse>;
38
+ }
39
+ export declare class LettersList extends List<Letter> {
40
+ }
41
+ export interface Letter {
42
+ /**
43
+ * A unique ID prefixed with letter\_
44
+ */
45
+ id: string;
46
+ /**
47
+ * Enum representing the placement of the address on the letter.
48
+ */
49
+ addressPlacement: 'top_first_page' | 'insert_blank_page';
50
+ /**
51
+ * Indicates if the letter is in color.
52
+ */
53
+ color: boolean;
54
+ /**
55
+ * The UTC time at which this resource was created.
56
+ */
57
+ createdAt: string;
58
+ /**
59
+ * Indicates if the letter is double-sided.
60
+ */
61
+ doubleSided: boolean;
62
+ /**
63
+ * The envelope (ID) for the letter or the default `standard` envelope.
64
+ */
65
+ envelope: string;
66
+ /**
67
+ * The contact information of the sender.
68
+ */
69
+ from: ContactsAPI.Contact;
70
+ /**
71
+ * `true` if this is a live mode resource else `false`.
72
+ */
73
+ live: boolean;
74
+ /**
75
+ * The mailing class of this order. This determines the speed and cost of delivery.
76
+ * See `OrderMailingClass` for more details.
77
+ */
78
+ 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';
79
+ /**
80
+ * Always `letter`.
81
+ */
82
+ object: 'letter';
83
+ /**
84
+ * This order will transition from `ready` to `printing` on the day after this
85
+ * date. For example, if this is a date on Tuesday, the order will transition to
86
+ * `printing` on Wednesday at midnight eastern time.
87
+ */
88
+ sendDate: string;
89
+ /**
90
+ * Enum representing the supported letter sizes.
91
+ */
92
+ size: 'us_letter' | 'a4';
93
+ /**
94
+ * See `OrderStatus` for more details on the status of this order.
95
+ */
96
+ status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
97
+ /**
98
+ * The recipient of this order. This will be provided even if you delete the
99
+ * underlying contact.
100
+ */
101
+ to: ContactsAPI.Contact;
102
+ /**
103
+ * The UTC time at which this resource was last updated.
104
+ */
105
+ updatedAt: string;
106
+ /**
107
+ * Model representing an attached PDF.
108
+ */
109
+ attachedPDF?: Letter.AttachedPdf;
110
+ /**
111
+ * The cancellation details of this order. Populated if the order has been
112
+ * cancelled.
113
+ */
114
+ cancellation?: Shared.Cancellation;
115
+ /**
116
+ * An optional string describing this resource. Will be visible in the API and the
117
+ * dashboard.
118
+ */
119
+ description?: string;
120
+ /**
121
+ * The HTML content for the letter. You can supply _either_ this or `template` but
122
+ * not both.
123
+ */
124
+ html?: string;
125
+ /**
126
+ * The last date that the IMB status was updated. See `imbStatus` for more details.
127
+ */
128
+ imbDate?: string;
129
+ /**
130
+ * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
131
+ * US-printed and US-destined orders. This is the most detailed way to track
132
+ * non-express/certified orders.
133
+ */
134
+ imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
135
+ /**
136
+ * The most recent ZIP code of the USPS facility that the order has been processed
137
+ * through. Only populated when an `imbStatus` is present.
138
+ */
139
+ imbZIPCode?: string;
140
+ /**
141
+ * These will be merged with the variables in the template or HTML you create this
142
+ * order with. The keys in this object should match the variable names in the
143
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
144
+ * PDFs uploaded with the order.
145
+ */
146
+ mergeVariables?: Record<string, unknown>;
147
+ /**
148
+ * See the section on Metadata.
149
+ */
150
+ metadata?: Record<string, unknown>;
151
+ /**
152
+ * The ID of the PDF workflow run that created the letter, if any.
153
+ */
154
+ pdfWorkflowRun?: string;
155
+ /**
156
+ * If specified, indicates which letter page is perforated. Currently, only the
157
+ * first page can be perforated.
158
+ */
159
+ perforatedPage?: 1;
160
+ /**
161
+ * Model representing a plastic card.
162
+ */
163
+ plasticCard?: Letter.PlasticCard;
164
+ /**
165
+ * The return envelope (ID) sent out with the letter, if any.
166
+ */
167
+ returnEnvelope?: string;
168
+ /**
169
+ * The template ID used for the letter. You can supply _either_ this or `html` but
170
+ * not both.
171
+ */
172
+ template?: string;
173
+ /**
174
+ * The tracking number of this order. Populated after an express/certified order
175
+ * has been processed for delivery.
176
+ */
177
+ trackingNumber?: string;
178
+ /**
179
+ * If a PDF was uploaded for the letter, this will contain the signed link to the
180
+ * uploaded PDF.
181
+ */
182
+ uploadedPDF?: string;
183
+ /**
184
+ * PostGrid renders a PDF preview for all orders. This should be inspected to
185
+ * ensure that the order is correct before it is sent out because it shows what
186
+ * will be printed and mailed to the recipient. Once the PDF preview is generated,
187
+ * this field will be returned by all `GET` endpoints which produce this order.
188
+ *
189
+ * This URL is a signed link to the PDF preview. It will expire after a short
190
+ * period of time. If you need to access this URL after it has expired, you can
191
+ * regenerate it by calling the `GET` endpoint again.
192
+ */
193
+ url?: string;
194
+ }
195
+ export declare namespace Letter {
196
+ /**
197
+ * Model representing an attached PDF.
198
+ */
199
+ interface AttachedPdf {
200
+ /**
201
+ * The file (multipart form upload) or URL pointing to a PDF for the attached PDF.
202
+ */
203
+ file: string;
204
+ /**
205
+ * Enum representing the placement of the attached PDF.
206
+ */
207
+ placement: 'before_template' | 'after_template';
208
+ }
209
+ /**
210
+ * Model representing a plastic card.
211
+ */
212
+ interface PlasticCard {
213
+ /**
214
+ * Enum representing the size of the plastic card.
215
+ */
216
+ size: 'standard';
217
+ /**
218
+ * Model representing a double-sided plastic card.
219
+ */
220
+ doubleSided?: PlasticCard.DoubleSided;
221
+ /**
222
+ * Model representing a single-sided plastic card.
223
+ */
224
+ singleSided?: PlasticCard.SingleSided;
225
+ }
226
+ namespace PlasticCard {
227
+ /**
228
+ * Model representing a double-sided plastic card.
229
+ */
230
+ interface DoubleSided {
231
+ /**
232
+ * The HTML content for the back side of the double-sided plastic card.
233
+ */
234
+ backHTML?: string;
235
+ /**
236
+ * The template ID for the back side of the double-sided plastic card.
237
+ */
238
+ backTemplate?: string;
239
+ /**
240
+ * The HTML content for the front side of the double-sided plastic card.
241
+ */
242
+ frontHTML?: string;
243
+ /**
244
+ * The template ID for the front side of the double-sided plastic card.
245
+ */
246
+ frontTemplate?: string;
247
+ /**
248
+ * A URL pointing to a PDF file for the double-sided plastic card or the file
249
+ * itself.
250
+ */
251
+ pdf?: string;
252
+ }
253
+ /**
254
+ * Model representing a single-sided plastic card.
255
+ */
256
+ interface SingleSided {
257
+ /**
258
+ * The HTML content for the single-sided plastic card. Can specify one of this,
259
+ * `template`, or `pdf`.
260
+ */
261
+ html?: string;
262
+ /**
263
+ * A URL pointing to a PDF file for the single-sided plastic card or the PDF file
264
+ * itself.
265
+ */
266
+ pdf?: string;
267
+ /**
268
+ * The template ID for the single-sided plastic card.
269
+ */
270
+ template?: string;
271
+ }
272
+ }
273
+ }
274
+ export interface LetterList {
275
+ data: Array<Letter>;
276
+ limit: number;
277
+ object: 'list';
278
+ skip: number;
279
+ totalCount: number;
280
+ }
281
+ export interface LetterURLResponse {
282
+ /**
283
+ * A unique ID prefixed with letter\_
284
+ */
285
+ id: string;
286
+ object: string;
287
+ /**
288
+ * A signed URL linking to the order preview PDF. The link remains valid for 15
289
+ * minutes from the time of the API call.
290
+ */
291
+ url: string;
292
+ }
293
+ export type LetterCreateParams = LetterCreateParams.LetterCreateWithHTML | LetterCreateParams.LetterCreateWithTemplate | LetterCreateParams.LetterCreateWithPdf;
294
+ export declare namespace LetterCreateParams {
295
+ interface LetterCreateWithHTML {
296
+ /**
297
+ * The contact information of the sender. You can pass contact information inline
298
+ * here just like you can for the `to`.
299
+ */
300
+ from: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
301
+ /**
302
+ * The HTML content for the letter. You can supply _either_ this or `template` but
303
+ * not both.
304
+ */
305
+ html: string;
306
+ /**
307
+ * The recipient of this order. You can either supply the contact information
308
+ * inline here or provide a contact ID. PostGrid will automatically deduplicate
309
+ * contacts regardless of whether you provide the information inline here or call
310
+ * the contact creation endpoint.
311
+ */
312
+ to: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
313
+ /**
314
+ * Enum representing the placement of the address on the letter.
315
+ */
316
+ addressPlacement?: 'top_first_page' | 'insert_blank_page';
317
+ /**
318
+ * Model representing an attached PDF.
319
+ */
320
+ attachedPDF?: LetterCreateWithHTML.AttachedPdf;
321
+ /**
322
+ * Indicates if the letter is in color.
323
+ */
324
+ color?: boolean;
325
+ /**
326
+ * An optional string describing this resource. Will be visible in the API and the
327
+ * dashboard.
328
+ */
329
+ description?: string;
330
+ /**
331
+ * Indicates if the letter is double-sided.
332
+ */
333
+ doubleSided?: boolean;
334
+ /**
335
+ * The envelope (ID) for the letter. You can either specify a custom envelope ID or
336
+ * use the default `standard` envelope.
337
+ */
338
+ envelope?: string;
339
+ /**
340
+ * The mailing class of this order. If not provided, automatically set to
341
+ * `first_class`.
342
+ */
343
+ 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';
344
+ /**
345
+ * These will be merged with the variables in the template or HTML you create this
346
+ * order with. The keys in this object should match the variable names in the
347
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
348
+ * PDFs uploaded with the order.
349
+ */
350
+ mergeVariables?: Record<string, unknown>;
351
+ /**
352
+ * See the section on Metadata.
353
+ */
354
+ metadata?: Record<string, unknown>;
355
+ /**
356
+ * If specified, indicates which letter page is perforated. Currently, only the
357
+ * first page can be perforated.
358
+ */
359
+ perforatedPage?: 1;
360
+ /**
361
+ * Model representing a plastic card.
362
+ */
363
+ plasticCard?: LetterCreateWithHTML.PlasticCard;
364
+ /**
365
+ * The return envelope (ID) sent out with the letter, if any.
366
+ */
367
+ returnEnvelope?: string;
368
+ /**
369
+ * This order will transition from `ready` to `printing` on the day after this
370
+ * date. You can use this parameter to schedule orders for a future date.
371
+ */
372
+ sendDate?: string;
373
+ /**
374
+ * Enum representing the supported letter sizes.
375
+ */
376
+ size?: 'us_letter' | 'a4';
377
+ }
378
+ namespace LetterCreateWithHTML {
379
+ /**
380
+ * Model representing an attached PDF.
381
+ */
382
+ interface AttachedPdf {
383
+ /**
384
+ * The file (multipart form upload) or URL pointing to a PDF for the attached PDF.
385
+ */
386
+ file: string;
387
+ /**
388
+ * Enum representing the placement of the attached PDF.
389
+ */
390
+ placement: 'before_template' | 'after_template';
391
+ }
392
+ /**
393
+ * Model representing a plastic card.
394
+ */
395
+ interface PlasticCard {
396
+ /**
397
+ * Enum representing the size of the plastic card.
398
+ */
399
+ size: 'standard';
400
+ /**
401
+ * Model representing a double-sided plastic card.
402
+ */
403
+ doubleSided?: PlasticCard.DoubleSided;
404
+ /**
405
+ * Model representing a single-sided plastic card.
406
+ */
407
+ singleSided?: PlasticCard.SingleSided;
408
+ }
409
+ namespace PlasticCard {
410
+ /**
411
+ * Model representing a double-sided plastic card.
412
+ */
413
+ interface DoubleSided {
414
+ /**
415
+ * The HTML content for the back side of the double-sided plastic card.
416
+ */
417
+ backHTML?: string;
418
+ /**
419
+ * The template ID for the back side of the double-sided plastic card.
420
+ */
421
+ backTemplate?: string;
422
+ /**
423
+ * The HTML content for the front side of the double-sided plastic card.
424
+ */
425
+ frontHTML?: string;
426
+ /**
427
+ * The template ID for the front side of the double-sided plastic card.
428
+ */
429
+ frontTemplate?: string;
430
+ /**
431
+ * A URL pointing to a PDF file for the double-sided plastic card or the file
432
+ * itself.
433
+ */
434
+ pdf?: string;
435
+ }
436
+ /**
437
+ * Model representing a single-sided plastic card.
438
+ */
439
+ interface SingleSided {
440
+ /**
441
+ * The HTML content for the single-sided plastic card. Can specify one of this,
442
+ * `template`, or `pdf`.
443
+ */
444
+ html?: string;
445
+ /**
446
+ * A URL pointing to a PDF file for the single-sided plastic card or the PDF file
447
+ * itself.
448
+ */
449
+ pdf?: string;
450
+ /**
451
+ * The template ID for the single-sided plastic card.
452
+ */
453
+ template?: string;
454
+ }
455
+ }
456
+ }
457
+ interface LetterCreateWithTemplate {
458
+ /**
459
+ * The template ID for the letter. You can supply _either_ this or `html` but not
460
+ * both.
461
+ */
462
+ template: string;
463
+ }
464
+ interface LetterCreateWithPdf {
465
+ /**
466
+ * The contact information of the sender. You can pass contact information inline
467
+ * here just like you can for the `to`.
468
+ */
469
+ from: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
470
+ /**
471
+ * A URL pointing to a PDF file for the letter or the PDF file itself.
472
+ */
473
+ pdf: string;
474
+ /**
475
+ * The recipient of this order. You can either supply the contact information
476
+ * inline here or provide a contact ID. PostGrid will automatically deduplicate
477
+ * contacts regardless of whether you provide the information inline here or call
478
+ * the contact creation endpoint.
479
+ */
480
+ to: Shared.ContactCreateWithFirstName | Shared.ContactCreateWithCompanyName | string;
481
+ /**
482
+ * Enum representing the placement of the address on the letter.
483
+ */
484
+ addressPlacement?: 'top_first_page' | 'insert_blank_page';
485
+ /**
486
+ * Model representing an attached PDF.
487
+ */
488
+ attachedPDF?: LetterCreateWithPdf.AttachedPdf;
489
+ /**
490
+ * Indicates if the letter is in color.
491
+ */
492
+ color?: boolean;
493
+ /**
494
+ * An optional string describing this resource. Will be visible in the API and the
495
+ * dashboard.
496
+ */
497
+ description?: string;
498
+ /**
499
+ * Indicates if the letter is double-sided.
500
+ */
501
+ doubleSided?: boolean;
502
+ /**
503
+ * The envelope (ID) for the letter. You can either specify a custom envelope ID or
504
+ * use the default `standard` envelope.
505
+ */
506
+ envelope?: string;
507
+ /**
508
+ * The mailing class of this order. If not provided, automatically set to
509
+ * `first_class`.
510
+ */
511
+ 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';
512
+ /**
513
+ * These will be merged with the variables in the template or HTML you create this
514
+ * order with. The keys in this object should match the variable names in the
515
+ * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
516
+ * PDFs uploaded with the order.
517
+ */
518
+ mergeVariables?: Record<string, unknown>;
519
+ /**
520
+ * See the section on Metadata.
521
+ */
522
+ metadata?: Record<string, unknown>;
523
+ /**
524
+ * If specified, indicates which letter page is perforated. Currently, only the
525
+ * first page can be perforated.
526
+ */
527
+ perforatedPage?: 1;
528
+ /**
529
+ * Model representing a plastic card.
530
+ */
531
+ plasticCard?: LetterCreateWithPdf.PlasticCard;
532
+ /**
533
+ * The return envelope (ID) sent out with the letter, if any.
534
+ */
535
+ returnEnvelope?: string;
536
+ /**
537
+ * This order will transition from `ready` to `printing` on the day after this
538
+ * date. You can use this parameter to schedule orders for a future date.
539
+ */
540
+ sendDate?: string;
541
+ /**
542
+ * Enum representing the supported letter sizes.
543
+ */
544
+ size?: 'us_letter' | 'a4';
545
+ }
546
+ namespace LetterCreateWithPdf {
547
+ /**
548
+ * Model representing an attached PDF.
549
+ */
550
+ interface AttachedPdf {
551
+ /**
552
+ * The file (multipart form upload) or URL pointing to a PDF for the attached PDF.
553
+ */
554
+ file: string;
555
+ /**
556
+ * Enum representing the placement of the attached PDF.
557
+ */
558
+ placement: 'before_template' | 'after_template';
559
+ }
560
+ /**
561
+ * Model representing a plastic card.
562
+ */
563
+ interface PlasticCard {
564
+ /**
565
+ * Enum representing the size of the plastic card.
566
+ */
567
+ size: 'standard';
568
+ /**
569
+ * Model representing a double-sided plastic card.
570
+ */
571
+ doubleSided?: PlasticCard.DoubleSided;
572
+ /**
573
+ * Model representing a single-sided plastic card.
574
+ */
575
+ singleSided?: PlasticCard.SingleSided;
576
+ }
577
+ namespace PlasticCard {
578
+ /**
579
+ * Model representing a double-sided plastic card.
580
+ */
581
+ interface DoubleSided {
582
+ /**
583
+ * The HTML content for the back side of the double-sided plastic card.
584
+ */
585
+ backHTML?: string;
586
+ /**
587
+ * The template ID for the back side of the double-sided plastic card.
588
+ */
589
+ backTemplate?: string;
590
+ /**
591
+ * The HTML content for the front side of the double-sided plastic card.
592
+ */
593
+ frontHTML?: string;
594
+ /**
595
+ * The template ID for the front side of the double-sided plastic card.
596
+ */
597
+ frontTemplate?: string;
598
+ /**
599
+ * A URL pointing to a PDF file for the double-sided plastic card or the file
600
+ * itself.
601
+ */
602
+ pdf?: string;
603
+ }
604
+ /**
605
+ * Model representing a single-sided plastic card.
606
+ */
607
+ interface SingleSided {
608
+ /**
609
+ * The HTML content for the single-sided plastic card. Can specify one of this,
610
+ * `template`, or `pdf`.
611
+ */
612
+ html?: string;
613
+ /**
614
+ * A URL pointing to a PDF file for the single-sided plastic card or the PDF file
615
+ * itself.
616
+ */
617
+ pdf?: string;
618
+ /**
619
+ * The template ID for the single-sided plastic card.
620
+ */
621
+ template?: string;
622
+ }
623
+ }
624
+ }
625
+ }
626
+ export interface LetterListParams extends ListParams {
627
+ /**
628
+ * You can supply any string to help narrow down the list of resources. For
629
+ * example, if you pass `"New York"` (quoted), it will return resources that have
630
+ * that string present somewhere in their response. Alternatively, you can supply a
631
+ * structured search query. See the documentation on `StructuredSearchQuery` for
632
+ * more details.
633
+ */
634
+ search?: string;
635
+ }
636
+ export declare namespace Letters {
637
+ export { type Letter as Letter, type LetterList as LetterList, type LetterURLResponse as LetterURLResponse, LettersList as LettersList, type LetterCreateParams as LetterCreateParams, type LetterListParams as LetterListParams, };
638
+ }
639
+ //# sourceMappingURL=letters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"letters.d.ts","sourceRoot":"","sources":["../src/resources/letters.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,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAIxF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;IAI5E;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAA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