postgrid-node 0.3.0 → 0.4.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 (239) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +8 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +8 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +9 -1
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +60 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +60 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +107 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +101 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/internal/tslib.js +17 -17
  28. package/package.json +11 -1
  29. package/pagination.d.mts +2 -0
  30. package/pagination.d.mts.map +1 -0
  31. package/pagination.d.ts +2 -0
  32. package/pagination.d.ts.map +1 -0
  33. package/pagination.js +6 -0
  34. package/pagination.js.map +1 -0
  35. package/pagination.mjs +2 -0
  36. package/pagination.mjs.map +1 -0
  37. package/resources/index.d.mts +1 -1
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +1 -1
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs +1 -1
  43. package/resources/index.mjs.map +1 -1
  44. package/resources/print-mail/bank-accounts.d.mts +9 -14
  45. package/resources/print-mail/bank-accounts.d.mts.map +1 -1
  46. package/resources/print-mail/bank-accounts.d.ts +9 -14
  47. package/resources/print-mail/bank-accounts.d.ts.map +1 -1
  48. package/resources/print-mail/bank-accounts.js +9 -3
  49. package/resources/print-mail/bank-accounts.js.map +1 -1
  50. package/resources/print-mail/bank-accounts.mjs +9 -3
  51. package/resources/print-mail/bank-accounts.mjs.map +1 -1
  52. package/resources/print-mail/boxes.d.mts +14 -566
  53. package/resources/print-mail/boxes.d.mts.map +1 -1
  54. package/resources/print-mail/boxes.d.ts +14 -566
  55. package/resources/print-mail/boxes.d.ts.map +1 -1
  56. package/resources/print-mail/boxes.js +6 -2
  57. package/resources/print-mail/boxes.js.map +1 -1
  58. package/resources/print-mail/boxes.mjs +6 -2
  59. package/resources/print-mail/boxes.mjs.map +1 -1
  60. package/resources/print-mail/campaigns.d.mts +9 -16
  61. package/resources/print-mail/campaigns.d.mts.map +1 -1
  62. package/resources/print-mail/campaigns.d.ts +9 -16
  63. package/resources/print-mail/campaigns.d.ts.map +1 -1
  64. package/resources/print-mail/campaigns.js +6 -2
  65. package/resources/print-mail/campaigns.js.map +1 -1
  66. package/resources/print-mail/campaigns.mjs +6 -2
  67. package/resources/print-mail/campaigns.mjs.map +1 -1
  68. package/resources/print-mail/cheques.d.mts +13 -426
  69. package/resources/print-mail/cheques.d.mts.map +1 -1
  70. package/resources/print-mail/cheques.d.ts +13 -426
  71. package/resources/print-mail/cheques.d.ts.map +1 -1
  72. package/resources/print-mail/cheques.js +6 -2
  73. package/resources/print-mail/cheques.js.map +1 -1
  74. package/resources/print-mail/cheques.mjs +6 -2
  75. package/resources/print-mail/cheques.mjs.map +1 -1
  76. package/resources/print-mail/contacts.d.mts +11 -152
  77. package/resources/print-mail/contacts.d.mts.map +1 -1
  78. package/resources/print-mail/contacts.d.ts +11 -152
  79. package/resources/print-mail/contacts.d.ts.map +1 -1
  80. package/resources/print-mail/contacts.js +6 -2
  81. package/resources/print-mail/contacts.js.map +1 -1
  82. package/resources/print-mail/contacts.mjs +6 -2
  83. package/resources/print-mail/contacts.mjs.map +1 -1
  84. package/resources/print-mail/index.d.mts +14 -14
  85. package/resources/print-mail/index.d.mts.map +1 -1
  86. package/resources/print-mail/index.d.ts +14 -14
  87. package/resources/print-mail/index.d.ts.map +1 -1
  88. package/resources/print-mail/index.js.map +1 -1
  89. package/resources/print-mail/index.mjs.map +1 -1
  90. package/resources/print-mail/letters.d.mts +14 -565
  91. package/resources/print-mail/letters.d.mts.map +1 -1
  92. package/resources/print-mail/letters.d.ts +14 -565
  93. package/resources/print-mail/letters.d.ts.map +1 -1
  94. package/resources/print-mail/letters.js +6 -2
  95. package/resources/print-mail/letters.js.map +1 -1
  96. package/resources/print-mail/letters.mjs +6 -2
  97. package/resources/print-mail/letters.mjs.map +1 -1
  98. package/resources/print-mail/mailing-list-imports.d.mts +9 -17
  99. package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
  100. package/resources/print-mail/mailing-list-imports.d.ts +9 -17
  101. package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
  102. package/resources/print-mail/mailing-list-imports.js +6 -3
  103. package/resources/print-mail/mailing-list-imports.js.map +1 -1
  104. package/resources/print-mail/mailing-list-imports.mjs +6 -3
  105. package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
  106. package/resources/print-mail/mailing-lists.d.mts +9 -17
  107. package/resources/print-mail/mailing-lists.d.mts.map +1 -1
  108. package/resources/print-mail/mailing-lists.d.ts +9 -17
  109. package/resources/print-mail/mailing-lists.d.ts.map +1 -1
  110. package/resources/print-mail/mailing-lists.js +9 -3
  111. package/resources/print-mail/mailing-lists.js.map +1 -1
  112. package/resources/print-mail/mailing-lists.mjs +9 -3
  113. package/resources/print-mail/mailing-lists.mjs.map +1 -1
  114. package/resources/print-mail/order-profiles/cheques.d.mts +80 -90
  115. package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -1
  116. package/resources/print-mail/order-profiles/cheques.d.ts +80 -90
  117. package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -1
  118. package/resources/print-mail/order-profiles/cheques.js +9 -3
  119. package/resources/print-mail/order-profiles/cheques.js.map +1 -1
  120. package/resources/print-mail/order-profiles/cheques.mjs +9 -3
  121. package/resources/print-mail/order-profiles/cheques.mjs.map +1 -1
  122. package/resources/print-mail/order-profiles/index.d.mts +4 -4
  123. package/resources/print-mail/order-profiles/index.d.mts.map +1 -1
  124. package/resources/print-mail/order-profiles/index.d.ts +4 -4
  125. package/resources/print-mail/order-profiles/index.d.ts.map +1 -1
  126. package/resources/print-mail/order-profiles/index.js.map +1 -1
  127. package/resources/print-mail/order-profiles/index.mjs.map +1 -1
  128. package/resources/print-mail/order-profiles/letters.d.mts +9 -17
  129. package/resources/print-mail/order-profiles/letters.d.mts.map +1 -1
  130. package/resources/print-mail/order-profiles/letters.d.ts +9 -17
  131. package/resources/print-mail/order-profiles/letters.d.ts.map +1 -1
  132. package/resources/print-mail/order-profiles/letters.js +9 -3
  133. package/resources/print-mail/order-profiles/letters.js.map +1 -1
  134. package/resources/print-mail/order-profiles/letters.mjs +9 -3
  135. package/resources/print-mail/order-profiles/letters.mjs.map +1 -1
  136. package/resources/print-mail/order-profiles/order-profiles.d.mts +8 -8
  137. package/resources/print-mail/order-profiles/order-profiles.d.mts.map +1 -1
  138. package/resources/print-mail/order-profiles/order-profiles.d.ts +8 -8
  139. package/resources/print-mail/order-profiles/order-profiles.d.ts.map +1 -1
  140. package/resources/print-mail/order-profiles/order-profiles.js.map +1 -1
  141. package/resources/print-mail/order-profiles/order-profiles.mjs.map +1 -1
  142. package/resources/print-mail/order-profiles/postcards.d.mts +9 -17
  143. package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -1
  144. package/resources/print-mail/order-profiles/postcards.d.ts +9 -17
  145. package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -1
  146. package/resources/print-mail/order-profiles/postcards.js +9 -3
  147. package/resources/print-mail/order-profiles/postcards.js.map +1 -1
  148. package/resources/print-mail/order-profiles/postcards.mjs +9 -3
  149. package/resources/print-mail/order-profiles/postcards.mjs.map +1 -1
  150. package/resources/print-mail/order-profiles/self-mailers.d.mts +9 -17
  151. package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -1
  152. package/resources/print-mail/order-profiles/self-mailers.d.ts +9 -17
  153. package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -1
  154. package/resources/print-mail/order-profiles/self-mailers.js +6 -3
  155. package/resources/print-mail/order-profiles/self-mailers.js.map +1 -1
  156. package/resources/print-mail/order-profiles/self-mailers.mjs +6 -3
  157. package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -1
  158. package/resources/print-mail/postcards.d.mts +16 -841
  159. package/resources/print-mail/postcards.d.mts.map +1 -1
  160. package/resources/print-mail/postcards.d.ts +16 -841
  161. package/resources/print-mail/postcards.d.ts.map +1 -1
  162. package/resources/print-mail/postcards.js +6 -2
  163. package/resources/print-mail/postcards.js.map +1 -1
  164. package/resources/print-mail/postcards.mjs +6 -2
  165. package/resources/print-mail/postcards.mjs.map +1 -1
  166. package/resources/print-mail/print-mail.d.mts +163 -26
  167. package/resources/print-mail/print-mail.d.mts.map +1 -1
  168. package/resources/print-mail/print-mail.d.ts +163 -26
  169. package/resources/print-mail/print-mail.d.ts.map +1 -1
  170. package/resources/print-mail/print-mail.js.map +1 -1
  171. package/resources/print-mail/print-mail.mjs.map +1 -1
  172. package/resources/print-mail/reports/index.d.mts +1 -1
  173. package/resources/print-mail/reports/index.d.mts.map +1 -1
  174. package/resources/print-mail/reports/index.d.ts +1 -1
  175. package/resources/print-mail/reports/index.d.ts.map +1 -1
  176. package/resources/print-mail/reports/reports.d.mts +9 -16
  177. package/resources/print-mail/reports/reports.d.mts.map +1 -1
  178. package/resources/print-mail/reports/reports.d.ts +9 -16
  179. package/resources/print-mail/reports/reports.d.ts.map +1 -1
  180. package/resources/print-mail/reports/reports.js +6 -2
  181. package/resources/print-mail/reports/reports.js.map +1 -1
  182. package/resources/print-mail/reports/reports.mjs +6 -2
  183. package/resources/print-mail/reports/reports.mjs.map +1 -1
  184. package/resources/print-mail/self-mailers.d.mts +16 -842
  185. package/resources/print-mail/self-mailers.d.mts.map +1 -1
  186. package/resources/print-mail/self-mailers.d.ts +16 -842
  187. package/resources/print-mail/self-mailers.d.ts.map +1 -1
  188. package/resources/print-mail/self-mailers.js +9 -3
  189. package/resources/print-mail/self-mailers.js.map +1 -1
  190. package/resources/print-mail/self-mailers.mjs +9 -3
  191. package/resources/print-mail/self-mailers.mjs.map +1 -1
  192. package/resources/print-mail/sub-organizations.d.mts +9 -14
  193. package/resources/print-mail/sub-organizations.d.mts.map +1 -1
  194. package/resources/print-mail/sub-organizations.d.ts +9 -14
  195. package/resources/print-mail/sub-organizations.d.ts.map +1 -1
  196. package/resources/print-mail/sub-organizations.js +9 -3
  197. package/resources/print-mail/sub-organizations.js.map +1 -1
  198. package/resources/print-mail/sub-organizations.mjs +9 -3
  199. package/resources/print-mail/sub-organizations.mjs.map +1 -1
  200. package/resources/print-mail/templates.d.mts +9 -13
  201. package/resources/print-mail/templates.d.mts.map +1 -1
  202. package/resources/print-mail/templates.d.ts +9 -13
  203. package/resources/print-mail/templates.d.ts.map +1 -1
  204. package/resources/print-mail/templates.js +6 -2
  205. package/resources/print-mail/templates.js.map +1 -1
  206. package/resources/print-mail/templates.mjs +6 -2
  207. package/resources/print-mail/templates.mjs.map +1 -1
  208. package/src/client.ts +34 -2
  209. package/src/core/pagination.ts +171 -0
  210. package/src/index.ts +1 -0
  211. package/src/pagination.ts +2 -0
  212. package/src/resources/index.ts +5 -1
  213. package/src/resources/print-mail/bank-accounts.ts +14 -22
  214. package/src/resources/print-mail/boxes.ts +19 -686
  215. package/src/resources/print-mail/campaigns.ts +11 -24
  216. package/src/resources/print-mail/cheques.ts +15 -527
  217. package/src/resources/print-mail/contacts.ts +14 -189
  218. package/src/resources/print-mail/index.ts +14 -14
  219. package/src/resources/print-mail/letters.ts +16 -697
  220. package/src/resources/print-mail/mailing-list-imports.ts +15 -25
  221. package/src/resources/print-mail/mailing-lists.ts +14 -25
  222. package/src/resources/print-mail/order-profiles/cheques.ts +91 -103
  223. package/src/resources/print-mail/order-profiles/index.ts +4 -3
  224. package/src/resources/print-mail/order-profiles/letters.ts +14 -25
  225. package/src/resources/print-mail/order-profiles/order-profiles.ts +8 -6
  226. package/src/resources/print-mail/order-profiles/postcards.ts +14 -25
  227. package/src/resources/print-mail/order-profiles/self-mailers.ts +15 -25
  228. package/src/resources/print-mail/postcards.ts +18 -1035
  229. package/src/resources/print-mail/print-mail.ts +195 -26
  230. package/src/resources/print-mail/reports/index.ts +1 -1
  231. package/src/resources/print-mail/reports/reports.ts +11 -24
  232. package/src/resources/print-mail/self-mailers.ts +21 -1036
  233. package/src/resources/print-mail/sub-organizations.ts +14 -22
  234. package/src/resources/print-mail/templates.ts +11 -21
  235. package/src/version.ts +1 -1
  236. package/version.d.mts +1 -1
  237. package/version.d.ts +1 -1
  238. package/version.js +1 -1
  239. package/version.mjs +1 -1
@@ -1,5 +1,7 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
+ import * as PrintMailAPI from "./print-mail.mjs";
2
3
  import { APIPromise } from "../../core/api-promise.mjs";
4
+ import { PagePromise, SkipLimit, type SkipLimitParams } from "../../core/pagination.mjs";
3
5
  import { RequestOptions } from "../../internal/request-options.mjs";
4
6
  export declare class Contacts extends APIResource {
5
7
  /**
@@ -44,10 +46,13 @@ export declare class Contacts extends APIResource {
44
46
  *
45
47
  * @example
46
48
  * ```ts
47
- * const contacts = await client.printMail.contacts.list();
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const contact of client.printMail.contacts.list()) {
51
+ * // ...
52
+ * }
48
53
  * ```
49
54
  */
50
- list(query?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<ContactListResponse>;
55
+ list(query?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactsSkipLimit, Contact>;
51
56
  /**
52
57
  * Delete a contact. Note that this will not affect orders that were sent to this
53
58
  * contact.
@@ -61,6 +66,7 @@ export declare class Contacts extends APIResource {
61
66
  */
62
67
  delete(id: string, options?: RequestOptions): APIPromise<ContactDeleteResponse>;
63
68
  }
69
+ export type ContactsSkipLimit = SkipLimit<Contact>;
64
70
  export interface Contact {
65
71
  /**
66
72
  * A unique ID prefixed with contact\_
@@ -161,152 +167,7 @@ export interface Contact {
161
167
  */
162
168
  skipVerification?: boolean;
163
169
  }
164
- export type ContactCreate = ContactCreate.ContactCreateWithFirstName | ContactCreate.ContactCreateWithCompanyName;
165
- export declare namespace ContactCreate {
166
- interface ContactCreateWithFirstName {
167
- /**
168
- * The first line of the contact's address.
169
- */
170
- addressLine1: string;
171
- /**
172
- * The ISO 3611-1 country code of the contact's address.
173
- */
174
- countryCode: string;
175
- firstName: string;
176
- /**
177
- * Second line of the contact's address, if applicable.
178
- */
179
- addressLine2?: string;
180
- /**
181
- * The city of the contact's address.
182
- */
183
- city?: string;
184
- /**
185
- * Company name of the contact.
186
- */
187
- companyName?: string;
188
- /**
189
- * An optional string describing this resource. Will be visible in the API and the
190
- * dashboard.
191
- */
192
- description?: string;
193
- /**
194
- * Email of the contact.
195
- */
196
- email?: string;
197
- /**
198
- * If `true`, PostGrid will force this contact to have an `addressStatus` of
199
- * `verified` even if our address verification system says otherwise.
200
- */
201
- forceVerifiedStatus?: boolean;
202
- /**
203
- * Job title of the contact.
204
- */
205
- jobTitle?: string;
206
- /**
207
- * Last name of the contact.
208
- */
209
- lastName?: string;
210
- /**
211
- * See the section on Metadata.
212
- */
213
- metadata?: {
214
- [key: string]: unknown;
215
- };
216
- /**
217
- * Phone number of the contact.
218
- */
219
- phoneNumber?: string;
220
- /**
221
- * The postal or ZIP code of the contact's address.
222
- */
223
- postalOrZip?: string;
224
- /**
225
- * Province or state of the contact's address.
226
- */
227
- provinceOrState?: string;
228
- /**
229
- * If `true`, PostGrid will skip running this contact's address through our address
230
- * verification system.
231
- */
232
- skipVerification?: boolean;
233
- }
234
- interface ContactCreateWithCompanyName {
235
- /**
236
- * The first line of the contact's address.
237
- */
238
- addressLine1: string;
239
- companyName: string;
240
- /**
241
- * The ISO 3611-1 country code of the contact's address.
242
- */
243
- countryCode: string;
244
- /**
245
- * Second line of the contact's address, if applicable.
246
- */
247
- addressLine2?: string;
248
- /**
249
- * The city of the contact's address.
250
- */
251
- city?: string;
252
- /**
253
- * An optional string describing this resource. Will be visible in the API and the
254
- * dashboard.
255
- */
256
- description?: string;
257
- /**
258
- * Email of the contact.
259
- */
260
- email?: string;
261
- /**
262
- * First name of the contact.
263
- */
264
- firstName?: string;
265
- /**
266
- * If `true`, PostGrid will force this contact to have an `addressStatus` of
267
- * `verified` even if our address verification system says otherwise.
268
- */
269
- forceVerifiedStatus?: boolean;
270
- /**
271
- * Job title of the contact.
272
- */
273
- jobTitle?: string;
274
- /**
275
- * Last name of the contact.
276
- */
277
- lastName?: string;
278
- /**
279
- * See the section on Metadata.
280
- */
281
- metadata?: {
282
- [key: string]: unknown;
283
- };
284
- /**
285
- * Phone number of the contact.
286
- */
287
- phoneNumber?: string;
288
- /**
289
- * The postal or ZIP code of the contact's address.
290
- */
291
- postalOrZip?: string;
292
- /**
293
- * Province or state of the contact's address.
294
- */
295
- provinceOrState?: string;
296
- /**
297
- * If `true`, PostGrid will skip running this contact's address through our address
298
- * verification system.
299
- */
300
- skipVerification?: boolean;
301
- }
302
- }
303
- export interface ContactListResponse {
304
- data: Array<Contact>;
305
- limit: number;
306
- object: 'list';
307
- skip: number;
308
- totalCount: number;
309
- }
170
+ export type ContactCreate = PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName;
310
171
  export interface ContactDeleteResponse {
311
172
  /**
312
173
  * A unique ID prefixed with contact\_
@@ -457,8 +318,7 @@ export declare namespace ContactCreateParams {
457
318
  skipVerification?: boolean;
458
319
  }
459
320
  }
460
- export interface ContactListParams {
461
- limit?: number;
321
+ export interface ContactListParams extends SkipLimitParams {
462
322
  /**
463
323
  * You can supply any string to help narrow down the list of resources. For
464
324
  * example, if you pass `"New York"` (quoted), it will return resources that have
@@ -467,9 +327,8 @@ export interface ContactListParams {
467
327
  * more details.
468
328
  */
469
329
  search?: string;
470
- skip?: number;
471
330
  }
472
331
  export declare namespace Contacts {
473
- export { type Contact as Contact, type ContactCreate as ContactCreate, type ContactListResponse as ContactListResponse, type ContactDeleteResponse as ContactDeleteResponse, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
332
+ export { type Contact as Contact, type ContactCreate as ContactCreate, type ContactDeleteResponse as ContactDeleteResponse, type ContactsSkipLimit as ContactsSkipLimit, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
474
333
  }
475
334
  //# sourceMappingURL=contacts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGhF;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,UAAU,GAA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AAiB,GAC5C,CAAC;CACH"}
@@ -1,5 +1,7 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
+ import * as PrintMailAPI from "./print-mail.js";
2
3
  import { APIPromise } from "../../core/api-promise.js";
4
+ import { PagePromise, SkipLimit, type SkipLimitParams } from "../../core/pagination.js";
3
5
  import { RequestOptions } from "../../internal/request-options.js";
4
6
  export declare class Contacts extends APIResource {
5
7
  /**
@@ -44,10 +46,13 @@ export declare class Contacts extends APIResource {
44
46
  *
45
47
  * @example
46
48
  * ```ts
47
- * const contacts = await client.printMail.contacts.list();
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const contact of client.printMail.contacts.list()) {
51
+ * // ...
52
+ * }
48
53
  * ```
49
54
  */
50
- list(query?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<ContactListResponse>;
55
+ list(query?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactsSkipLimit, Contact>;
51
56
  /**
52
57
  * Delete a contact. Note that this will not affect orders that were sent to this
53
58
  * contact.
@@ -61,6 +66,7 @@ export declare class Contacts extends APIResource {
61
66
  */
62
67
  delete(id: string, options?: RequestOptions): APIPromise<ContactDeleteResponse>;
63
68
  }
69
+ export type ContactsSkipLimit = SkipLimit<Contact>;
64
70
  export interface Contact {
65
71
  /**
66
72
  * A unique ID prefixed with contact\_
@@ -161,152 +167,7 @@ export interface Contact {
161
167
  */
162
168
  skipVerification?: boolean;
163
169
  }
164
- export type ContactCreate = ContactCreate.ContactCreateWithFirstName | ContactCreate.ContactCreateWithCompanyName;
165
- export declare namespace ContactCreate {
166
- interface ContactCreateWithFirstName {
167
- /**
168
- * The first line of the contact's address.
169
- */
170
- addressLine1: string;
171
- /**
172
- * The ISO 3611-1 country code of the contact's address.
173
- */
174
- countryCode: string;
175
- firstName: string;
176
- /**
177
- * Second line of the contact's address, if applicable.
178
- */
179
- addressLine2?: string;
180
- /**
181
- * The city of the contact's address.
182
- */
183
- city?: string;
184
- /**
185
- * Company name of the contact.
186
- */
187
- companyName?: string;
188
- /**
189
- * An optional string describing this resource. Will be visible in the API and the
190
- * dashboard.
191
- */
192
- description?: string;
193
- /**
194
- * Email of the contact.
195
- */
196
- email?: string;
197
- /**
198
- * If `true`, PostGrid will force this contact to have an `addressStatus` of
199
- * `verified` even if our address verification system says otherwise.
200
- */
201
- forceVerifiedStatus?: boolean;
202
- /**
203
- * Job title of the contact.
204
- */
205
- jobTitle?: string;
206
- /**
207
- * Last name of the contact.
208
- */
209
- lastName?: string;
210
- /**
211
- * See the section on Metadata.
212
- */
213
- metadata?: {
214
- [key: string]: unknown;
215
- };
216
- /**
217
- * Phone number of the contact.
218
- */
219
- phoneNumber?: string;
220
- /**
221
- * The postal or ZIP code of the contact's address.
222
- */
223
- postalOrZip?: string;
224
- /**
225
- * Province or state of the contact's address.
226
- */
227
- provinceOrState?: string;
228
- /**
229
- * If `true`, PostGrid will skip running this contact's address through our address
230
- * verification system.
231
- */
232
- skipVerification?: boolean;
233
- }
234
- interface ContactCreateWithCompanyName {
235
- /**
236
- * The first line of the contact's address.
237
- */
238
- addressLine1: string;
239
- companyName: string;
240
- /**
241
- * The ISO 3611-1 country code of the contact's address.
242
- */
243
- countryCode: string;
244
- /**
245
- * Second line of the contact's address, if applicable.
246
- */
247
- addressLine2?: string;
248
- /**
249
- * The city of the contact's address.
250
- */
251
- city?: string;
252
- /**
253
- * An optional string describing this resource. Will be visible in the API and the
254
- * dashboard.
255
- */
256
- description?: string;
257
- /**
258
- * Email of the contact.
259
- */
260
- email?: string;
261
- /**
262
- * First name of the contact.
263
- */
264
- firstName?: string;
265
- /**
266
- * If `true`, PostGrid will force this contact to have an `addressStatus` of
267
- * `verified` even if our address verification system says otherwise.
268
- */
269
- forceVerifiedStatus?: boolean;
270
- /**
271
- * Job title of the contact.
272
- */
273
- jobTitle?: string;
274
- /**
275
- * Last name of the contact.
276
- */
277
- lastName?: string;
278
- /**
279
- * See the section on Metadata.
280
- */
281
- metadata?: {
282
- [key: string]: unknown;
283
- };
284
- /**
285
- * Phone number of the contact.
286
- */
287
- phoneNumber?: string;
288
- /**
289
- * The postal or ZIP code of the contact's address.
290
- */
291
- postalOrZip?: string;
292
- /**
293
- * Province or state of the contact's address.
294
- */
295
- provinceOrState?: string;
296
- /**
297
- * If `true`, PostGrid will skip running this contact's address through our address
298
- * verification system.
299
- */
300
- skipVerification?: boolean;
301
- }
302
- }
303
- export interface ContactListResponse {
304
- data: Array<Contact>;
305
- limit: number;
306
- object: 'list';
307
- skip: number;
308
- totalCount: number;
309
- }
170
+ export type ContactCreate = PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName;
310
171
  export interface ContactDeleteResponse {
311
172
  /**
312
173
  * A unique ID prefixed with contact\_
@@ -457,8 +318,7 @@ export declare namespace ContactCreateParams {
457
318
  skipVerification?: boolean;
458
319
  }
459
320
  }
460
- export interface ContactListParams {
461
- limit?: number;
321
+ export interface ContactListParams extends SkipLimitParams {
462
322
  /**
463
323
  * You can supply any string to help narrow down the list of resources. For
464
324
  * example, if you pass `"New York"` (quoted), it will return resources that have
@@ -467,9 +327,8 @@ export interface ContactListParams {
467
327
  * more details.
468
328
  */
469
329
  search?: string;
470
- skip?: number;
471
330
  }
472
331
  export declare namespace Contacts {
473
- export { type Contact as Contact, type ContactCreate as ContactCreate, type ContactListResponse as ContactListResponse, type ContactDeleteResponse as ContactDeleteResponse, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
332
+ export { type Contact as Contact, type ContactCreate as ContactCreate, type ContactDeleteResponse as ContactDeleteResponse, type ContactsSkipLimit as ContactsSkipLimit, type ContactCreateParams as ContactCreateParams, type ContactListParams as ContactListParams, };
474
333
  }
475
334
  //# sourceMappingURL=contacts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,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AE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAEtC;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;;WAGG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B;CACF;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Contacts = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
6
7
  const path_1 = require("../../internal/utils/path.js");
7
8
  class Contacts extends resource_1.APIResource {
8
9
  /**
@@ -51,11 +52,14 @@ class Contacts extends resource_1.APIResource {
51
52
  *
52
53
  * @example
53
54
  * ```ts
54
- * const contacts = await client.printMail.contacts.list();
55
+ * // Automatically fetches more pages as needed.
56
+ * for await (const contact of client.printMail.contacts.list()) {
57
+ * // ...
58
+ * }
55
59
  * ```
56
60
  */
57
61
  list(query = {}, options) {
58
- return this._client.get('/print-mail/v1/contacts', { query, ...options });
62
+ return this._client.getAPIList('/print-mail/v1/contacts', (pagination_1.SkipLimit), { query, ...options });
59
63
  }
60
64
  /**
61
65
  * Delete a contact. Note that this will not affect orders that were sent to this
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAzED,4BAyEC"}
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,sBAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AA5ED,4BA4EC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import { SkipLimit } from "../../core/pagination.mjs";
3
4
  import { path } from "../../internal/utils/path.mjs";
4
5
  export class Contacts extends APIResource {
5
6
  /**
@@ -48,11 +49,14 @@ export class Contacts extends APIResource {
48
49
  *
49
50
  * @example
50
51
  * ```ts
51
- * const contacts = await client.printMail.contacts.list();
52
+ * // Automatically fetches more pages as needed.
53
+ * for await (const contact of client.printMail.contacts.list()) {
54
+ * // ...
55
+ * }
52
56
  * ```
53
57
  */
54
58
  list(query = {}, options) {
55
- return this._client.get('/print-mail/v1/contacts', { query, ...options });
59
+ return this._client.getAPIList('/print-mail/v1/contacts', (SkipLimit), { query, ...options });
56
60
  }
57
61
  /**
58
62
  * Delete a contact. Note that this will not affect orders that were sent to this
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
1
+ {"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAe,SAAS,EAAwB;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,SAAkB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -1,16 +1,16 @@
1
- export { BankAccounts, type BankAccount, type BankAccountCountryCode, type BankAccountListResponse, type BankAccountDeleteResponse, type BankAccountCreateParams, type BankAccountListParams, } from "./bank-accounts.mjs";
2
- export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type BoxListResponse, type BoxCreateParams, type BoxListParams, } from "./boxes.mjs";
3
- export { Campaigns, type Campaign, type CampaignListResponse, type CampaignDeleteResponse, type CampaignCreateParams, type CampaignUpdateParams, type CampaignListParams, type CampaignSendParams, } from "./campaigns.mjs";
4
- export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type ChequeListResponse, type ChequeRetrieveURLResponse, type ChequeCreateParams, type ChequeListParams, } from "./cheques.mjs";
5
- export { Contacts, type Contact, type ContactCreate, type ContactListResponse, type ContactDeleteResponse, type ContactCreateParams, type ContactListParams, } from "./contacts.mjs";
6
- export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type LetterListResponse, type LetterRetrieveURLResponse, type LetterCreateParams, type LetterListParams, } from "./letters.mjs";
7
- export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type MailingListImportListResponse, type MailingListImportDeleteResponse, type MailingListImportCreateParams, type MailingListImportUpdateParams, type MailingListImportListParams, } from "./mailing-list-imports.mjs";
8
- export { MailingLists, type MailingList, type MailingListUpdate, type MailingListListResponse, type MailingListDeleteResponse, type MailingListCreateParams, type MailingListUpdateParams, type MailingListListParams, type MailingListJobsParams, } from "./mailing-lists.mjs";
1
+ export { BankAccounts, type BankAccount, type BankAccountCountryCode, type BankAccountDeleteResponse, type BankAccountCreateParams, type BankAccountListParams, type BankAccountsSkipLimit, } from "./bank-accounts.mjs";
2
+ export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type BoxCreateParams, type BoxListParams, type BoxesSkipLimit, } from "./boxes.mjs";
3
+ export { Campaigns, type Campaign, type CampaignDeleteResponse, type CampaignCreateParams, type CampaignUpdateParams, type CampaignListParams, type CampaignSendParams, type CampaignsSkipLimit, } from "./campaigns.mjs";
4
+ export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type ChequeRetrieveURLResponse, type ChequeCreateParams, type ChequeListParams, type ChequesSkipLimit, } from "./cheques.mjs";
5
+ export { Contacts, type Contact, type ContactCreate, type ContactDeleteResponse, type ContactCreateParams, type ContactListParams, type ContactsSkipLimit, } from "./contacts.mjs";
6
+ export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type LetterRetrieveURLResponse, type LetterCreateParams, type LetterListParams, type LettersSkipLimit, } from "./letters.mjs";
7
+ export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type MailingListImportDeleteResponse, type MailingListImportCreateParams, type MailingListImportUpdateParams, type MailingListImportListParams, type MailingListImportResponsesSkipLimit, } from "./mailing-list-imports.mjs";
8
+ export { MailingLists, type MailingList, type MailingListUpdate, type MailingListDeleteResponse, type MailingListCreateParams, type MailingListUpdateParams, type MailingListListParams, type MailingListJobsParams, type MailingListsSkipLimit, } from "./mailing-lists.mjs";
9
9
  export { OrderProfiles } from "./order-profiles/index.mjs";
10
- export { Postcards, type Postcard, type PostcardListResponse, type PostcardRetrieveURLResponse, type PostcardCreateParams, type PostcardListParams, } from "./postcards.mjs";
11
- export { PrintMail } from "./print-mail.mjs";
12
- export { Reports, type DeletedResponse, type Report, type ReportListResponse, type ReportCreateParams, type ReportUpdateParams, type ReportListParams, type ReportSampleParams, } from "./reports/index.mjs";
13
- export { SelfMailers, type SelfMailer, type SelfMailerListResponse, type SelfMailerRetrieveURLResponse, type SelfMailerCreateParams, type SelfMailerListParams, } from "./self-mailers.mjs";
14
- export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type SubOrganizationListResponse, type SubOrganizationRetrieveUsersResponse, type SubOrganizationUpdateParams, type SubOrganizationListParams, type SubOrganizationRetrieveUsersParams, } from "./sub-organizations.mjs";
15
- export { Templates, type Template, type TemplateListResponse, type TemplateDeleteResponse, type TemplateCreateParams, type TemplateUpdateParams, type TemplateListParams, } from "./templates.mjs";
10
+ export { Postcards, type Postcard, type PostcardRetrieveURLResponse, type PostcardCreateParams, type PostcardListParams, type PostcardsSkipLimit, } from "./postcards.mjs";
11
+ export { PrintMail, type ContactCreateWithCompanyName, type ContactCreateWithFirstName } from "./print-mail.mjs";
12
+ export { Reports, type DeletedResponse, type Report, type ReportCreateParams, type ReportUpdateParams, type ReportListParams, type ReportSampleParams, type ReportsSkipLimit, } from "./reports/index.mjs";
13
+ export { SelfMailers, type SelfMailer, type SelfMailerRetrieveURLResponse, type SelfMailerCreateParams, type SelfMailerListParams, type SelfMailersSkipLimit, } from "./self-mailers.mjs";
14
+ export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type SubOrganizationRetrieveUsersResponse, type SubOrganizationUpdateParams, type SubOrganizationListParams, type SubOrganizationRetrieveUsersParams, type SubOrganizationsSkipLimit, } from "./sub-organizations.mjs";
15
+ export { Templates, type Template, type TemplateDeleteResponse, type TemplateCreateParams, type TemplateUpdateParams, type TemplateListParams, type TemplatesSkipLimit, } from "./templates.mjs";
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB;OACM,E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,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,GACzC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EAAE,aAAa,EAAE;OACjB,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EAAE,SAAS,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE;OACjF,EACL,OAAO,EACP,KAAK,eAAe,EACpB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B;OACM,EACL,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,yBAAyB,GAC/B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
@@ -1,16 +1,16 @@
1
- export { BankAccounts, type BankAccount, type BankAccountCountryCode, type BankAccountListResponse, type BankAccountDeleteResponse, type BankAccountCreateParams, type BankAccountListParams, } from "./bank-accounts.js";
2
- export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type BoxListResponse, type BoxCreateParams, type BoxListParams, } from "./boxes.js";
3
- export { Campaigns, type Campaign, type CampaignListResponse, type CampaignDeleteResponse, type CampaignCreateParams, type CampaignUpdateParams, type CampaignListParams, type CampaignSendParams, } from "./campaigns.js";
4
- export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type ChequeListResponse, type ChequeRetrieveURLResponse, type ChequeCreateParams, type ChequeListParams, } from "./cheques.js";
5
- export { Contacts, type Contact, type ContactCreate, type ContactListResponse, type ContactDeleteResponse, type ContactCreateParams, type ContactListParams, } from "./contacts.js";
6
- export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type LetterListResponse, type LetterRetrieveURLResponse, type LetterCreateParams, type LetterListParams, } from "./letters.js";
7
- export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type MailingListImportListResponse, type MailingListImportDeleteResponse, type MailingListImportCreateParams, type MailingListImportUpdateParams, type MailingListImportListParams, } from "./mailing-list-imports.js";
8
- export { MailingLists, type MailingList, type MailingListUpdate, type MailingListListResponse, type MailingListDeleteResponse, type MailingListCreateParams, type MailingListUpdateParams, type MailingListListParams, type MailingListJobsParams, } from "./mailing-lists.js";
1
+ export { BankAccounts, type BankAccount, type BankAccountCountryCode, type BankAccountDeleteResponse, type BankAccountCreateParams, type BankAccountListParams, type BankAccountsSkipLimit, } from "./bank-accounts.js";
2
+ export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type BoxCreateParams, type BoxListParams, type BoxesSkipLimit, } from "./boxes.js";
3
+ export { Campaigns, type Campaign, type CampaignDeleteResponse, type CampaignCreateParams, type CampaignUpdateParams, type CampaignListParams, type CampaignSendParams, type CampaignsSkipLimit, } from "./campaigns.js";
4
+ export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type ChequeRetrieveURLResponse, type ChequeCreateParams, type ChequeListParams, type ChequesSkipLimit, } from "./cheques.js";
5
+ export { Contacts, type Contact, type ContactCreate, type ContactDeleteResponse, type ContactCreateParams, type ContactListParams, type ContactsSkipLimit, } from "./contacts.js";
6
+ export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type LetterRetrieveURLResponse, type LetterCreateParams, type LetterListParams, type LettersSkipLimit, } from "./letters.js";
7
+ export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type MailingListImportDeleteResponse, type MailingListImportCreateParams, type MailingListImportUpdateParams, type MailingListImportListParams, type MailingListImportResponsesSkipLimit, } from "./mailing-list-imports.js";
8
+ export { MailingLists, type MailingList, type MailingListUpdate, type MailingListDeleteResponse, type MailingListCreateParams, type MailingListUpdateParams, type MailingListListParams, type MailingListJobsParams, type MailingListsSkipLimit, } from "./mailing-lists.js";
9
9
  export { OrderProfiles } from "./order-profiles/index.js";
10
- export { Postcards, type Postcard, type PostcardListResponse, type PostcardRetrieveURLResponse, type PostcardCreateParams, type PostcardListParams, } from "./postcards.js";
11
- export { PrintMail } from "./print-mail.js";
12
- export { Reports, type DeletedResponse, type Report, type ReportListResponse, type ReportCreateParams, type ReportUpdateParams, type ReportListParams, type ReportSampleParams, } from "./reports/index.js";
13
- export { SelfMailers, type SelfMailer, type SelfMailerListResponse, type SelfMailerRetrieveURLResponse, type SelfMailerCreateParams, type SelfMailerListParams, } from "./self-mailers.js";
14
- export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type SubOrganizationListResponse, type SubOrganizationRetrieveUsersResponse, type SubOrganizationUpdateParams, type SubOrganizationListParams, type SubOrganizationRetrieveUsersParams, } from "./sub-organizations.js";
15
- export { Templates, type Template, type TemplateListResponse, type TemplateDeleteResponse, type TemplateCreateParams, type TemplateUpdateParams, type TemplateListParams, } from "./templates.js";
10
+ export { Postcards, type Postcard, type PostcardRetrieveURLResponse, type PostcardCreateParams, type PostcardListParams, type PostcardsSkipLimit, } from "./postcards.js";
11
+ export { PrintMail, type ContactCreateWithCompanyName, type ContactCreateWithFirstName } from "./print-mail.js";
12
+ export { Reports, type DeletedResponse, type Report, type ReportCreateParams, type ReportUpdateParams, type ReportListParams, type ReportSampleParams, type ReportsSkipLimit, } from "./reports/index.js";
13
+ export { SelfMailers, type SelfMailer, type SelfMailerRetrieveURLResponse, type SelfMailerCreateParams, type SelfMailerListParams, type SelfMailersSkipLimit, } from "./self-mailers.js";
14
+ export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type SubOrganizationRetrieveUsersResponse, type SubOrganizationUpdateParams, type SubOrganizationListParams, type SubOrganizationRetrieveUsersParams, type SubOrganizationsSkipLimit, } from "./sub-organizations.js";
15
+ export { Templates, type Template, type TemplateDeleteResponse, type TemplateCreateParams, type TemplateUpdateParams, type TemplateListParams, type TemplatesSkipLimit, } from "./templates.js";
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,E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AAsB,EAC3B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EACL,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,GACxC;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B;OACM,EACL,KAAK,EACL,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACx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,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,yBAAyB,GAC/B;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,kEAUgC;AAT9B,0HAAA,kBAAkB,OAAA;AAUpB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAAuD;AAA9C,sGAAA,aAAa,OAAA;AACtB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,8CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,4CASyB;AARvB,gGAAA,OAAO,OAAA;AAST,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,4DAU6B;AAT3B,qHAAA,gBAAgB,OAAA;AAUlB,4CAQqB;AAPnB,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,kEAUgC;AAT9B,0HAAA,kBAAkB,OAAA;AAUpB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAAuD;AAA9C,sGAAA,aAAa,OAAA;AACtB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,8CAA6G;AAApG,uGAAA,SAAS,OAAA;AAClB,4CASyB;AARvB,gGAAA,OAAO,OAAA;AAST,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,4DAU6B;AAT3B,qHAAA,gBAAgB,OAAA;AAUlB,4CAQqB;AAPnB,sGAAA,SAAS,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,KAAK,GAUN;OACM,EACL,SAAS,GAQV;OACM,EACL,OAAO,GAQR;OACM,EACL,QAAQ,GAOT;OACM,EACL,OAAO,GAUR;OACM,EACL,kBAAkB,GASnB;OACM,EACL,YAAY,GASb;OACM,EAAE,aAAa,EAAE;OACjB,EACL,SAAS,GAMV;OACM,EAAE,SAAS,EAAE;OACb,EACL,OAAO,GAQR;OACM,EACL,WAAW,GAMZ;OACM,EACL,gBAAgB,GASjB;OACM,EACL,SAAS,GAOV"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EACL,KAAK,GAUN;OACM,EACL,SAAS,GAQV;OACM,EACL,OAAO,GAQR;OACM,EACL,QAAQ,GAOT;OACM,EACL,OAAO,GAUR;OACM,EACL,kBAAkB,GASnB;OACM,EACL,YAAY,GASb;OACM,EAAE,aAAa,EAAE;OACjB,EACL,SAAS,GAMV;OACM,EAAE,SAAS,EAAsE;OACjF,EACL,OAAO,GAQR;OACM,EACL,WAAW,GAMZ;OACM,EACL,gBAAgB,GASjB;OACM,EACL,SAAS,GAOV"}