postgrid-node 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +1 -1
  3. package/README.md +3 -3
  4. package/client.d.mts +5 -5
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +5 -5
  7. package/client.d.ts.map +1 -1
  8. package/client.js +5 -5
  9. package/client.js.map +1 -1
  10. package/client.mjs +5 -5
  11. package/client.mjs.map +1 -1
  12. package/package.json +3 -3
  13. package/resources/print-mail/cheques.d.mts +25 -6
  14. package/resources/print-mail/cheques.d.mts.map +1 -1
  15. package/resources/print-mail/cheques.d.ts +25 -6
  16. package/resources/print-mail/cheques.d.ts.map +1 -1
  17. package/resources/print-mail/cheques.js.map +1 -1
  18. package/resources/print-mail/cheques.mjs.map +1 -1
  19. package/resources/print-mail/index.d.mts +0 -1
  20. package/resources/print-mail/index.d.mts.map +1 -1
  21. package/resources/print-mail/index.d.ts +0 -1
  22. package/resources/print-mail/index.d.ts.map +1 -1
  23. package/resources/print-mail/index.js +1 -3
  24. package/resources/print-mail/index.js.map +1 -1
  25. package/resources/print-mail/index.mjs +0 -1
  26. package/resources/print-mail/index.mjs.map +1 -1
  27. package/resources/print-mail/letters.d.mts +26 -7
  28. package/resources/print-mail/letters.d.mts.map +1 -1
  29. package/resources/print-mail/letters.d.ts +26 -7
  30. package/resources/print-mail/letters.d.ts.map +1 -1
  31. package/resources/print-mail/letters.js.map +1 -1
  32. package/resources/print-mail/letters.mjs.map +1 -1
  33. package/resources/print-mail/order-profiles/cheques.d.mts +4 -5
  34. package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -1
  35. package/resources/print-mail/order-profiles/cheques.d.ts +4 -5
  36. package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -1
  37. package/resources/print-mail/order-profiles/cheques.js.map +1 -1
  38. package/resources/print-mail/order-profiles/cheques.mjs.map +1 -1
  39. package/resources/print-mail/order-profiles/letters.d.mts +3 -4
  40. package/resources/print-mail/order-profiles/letters.d.mts.map +1 -1
  41. package/resources/print-mail/order-profiles/letters.d.ts +3 -4
  42. package/resources/print-mail/order-profiles/letters.d.ts.map +1 -1
  43. package/resources/print-mail/order-profiles/letters.js.map +1 -1
  44. package/resources/print-mail/order-profiles/letters.mjs.map +1 -1
  45. package/resources/print-mail/order-profiles/postcards.d.mts +3 -4
  46. package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -1
  47. package/resources/print-mail/order-profiles/postcards.d.ts +3 -4
  48. package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -1
  49. package/resources/print-mail/order-profiles/postcards.js.map +1 -1
  50. package/resources/print-mail/order-profiles/postcards.mjs.map +1 -1
  51. package/resources/print-mail/order-profiles/self-mailers.d.mts +3 -4
  52. package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -1
  53. package/resources/print-mail/order-profiles/self-mailers.d.ts +3 -4
  54. package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -1
  55. package/resources/print-mail/order-profiles/self-mailers.js.map +1 -1
  56. package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -1
  57. package/resources/print-mail/postcards.d.mts +27 -8
  58. package/resources/print-mail/postcards.d.mts.map +1 -1
  59. package/resources/print-mail/postcards.d.ts +27 -8
  60. package/resources/print-mail/postcards.d.ts.map +1 -1
  61. package/resources/print-mail/postcards.js.map +1 -1
  62. package/resources/print-mail/postcards.mjs.map +1 -1
  63. package/resources/print-mail/print-mail.d.mts +0 -4
  64. package/resources/print-mail/print-mail.d.mts.map +1 -1
  65. package/resources/print-mail/print-mail.d.ts +0 -4
  66. package/resources/print-mail/print-mail.d.ts.map +1 -1
  67. package/resources/print-mail/print-mail.js +0 -4
  68. package/resources/print-mail/print-mail.js.map +1 -1
  69. package/resources/print-mail/print-mail.mjs +0 -4
  70. package/resources/print-mail/print-mail.mjs.map +1 -1
  71. package/resources/print-mail/self-mailers.d.mts +27 -8
  72. package/resources/print-mail/self-mailers.d.mts.map +1 -1
  73. package/resources/print-mail/self-mailers.d.ts +27 -8
  74. package/resources/print-mail/self-mailers.d.ts.map +1 -1
  75. package/resources/print-mail/self-mailers.js.map +1 -1
  76. package/resources/print-mail/self-mailers.mjs.map +1 -1
  77. package/src/client.ts +7 -7
  78. package/src/resources/print-mail/cheques.ts +80 -6
  79. package/src/resources/print-mail/index.ts +0 -12
  80. package/src/resources/print-mail/letters.ts +107 -7
  81. package/src/resources/print-mail/order-profiles/cheques.ts +108 -5
  82. package/src/resources/print-mail/order-profiles/letters.ts +81 -4
  83. package/src/resources/print-mail/order-profiles/postcards.ts +81 -4
  84. package/src/resources/print-mail/order-profiles/self-mailers.ts +81 -4
  85. package/src/resources/print-mail/postcards.ts +134 -8
  86. package/src/resources/print-mail/print-mail.ts +0 -28
  87. package/src/resources/print-mail/self-mailers.ts +134 -8
  88. package/src/version.ts +1 -1
  89. package/version.d.mts +1 -1
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
  92. package/version.mjs +1 -1
  93. package/resources/print-mail/boxes.d.mts +0 -321
  94. package/resources/print-mail/boxes.d.mts.map +0 -1
  95. package/resources/print-mail/boxes.d.ts +0 -321
  96. package/resources/print-mail/boxes.d.ts.map +0 -1
  97. package/resources/print-mail/boxes.js +0 -85
  98. package/resources/print-mail/boxes.js.map +0 -1
  99. package/resources/print-mail/boxes.mjs +0 -81
  100. package/resources/print-mail/boxes.mjs.map +0 -1
  101. package/src/resources/print-mail/boxes.ts +0 -412
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.1";
1
+ export declare const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.4.1'; // x-release-please-version
4
+ exports.VERSION = '0.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.4.1'; // x-release-please-version
1
+ export const VERSION = '0.5.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,321 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as BoxesAPI from "./boxes.mjs";
3
- import * as ContactsAPI from "./contacts.mjs";
4
- import * as PrintMailAPI from "./print-mail.mjs";
5
- import { APIPromise } from "../../core/api-promise.mjs";
6
- import { PagePromise, SkipLimit, type SkipLimitParams } from "../../core/pagination.mjs";
7
- import { RequestOptions } from "../../internal/request-options.mjs";
8
- export declare class Boxes extends APIResource {
9
- /**
10
- * This endpoint allows you to create a box containing up to 100 cheques. A Box is
11
- * mailed to a single destination.
12
- *
13
- * To create a box. You must specify:
14
- *
15
- * - `to`: The recipient (contact or contact ID)
16
- * - `from`: The sender (contact or contact ID)
17
- * - `cheques`: An array of cheques to go in the box
18
- *
19
- * For each cheque You must specify:
20
- *
21
- * - `to`: The recipient (contact or contact ID)
22
- * - `from`: The sender (contact or contact ID)
23
- * - `bankAccount`: The bank account ID
24
- * - `amount`: The amount to be sent
25
- * - `number`: The cheque number
26
- *
27
- * @example
28
- * ```ts
29
- * const box = await client.printMail.boxes.create({
30
- * cheques: [
31
- * {
32
- * from: 'contact_456',
33
- * to: 'contact_123',
34
- * bankAccount: 'bank_abc',
35
- * amount: 5000,
36
- * number: 1042,
37
- * },
38
- * ],
39
- * from: 'contact_456',
40
- * to: 'contact_123',
41
- * });
42
- * ```
43
- */
44
- create(body: BoxCreateParams, options?: RequestOptions): APIPromise<Box>;
45
- /**
46
- * Retrieve a box by ID.
47
- *
48
- * @example
49
- * ```ts
50
- * const box = await client.printMail.boxes.retrieve('id');
51
- * ```
52
- */
53
- retrieve(id: string, options?: RequestOptions): APIPromise<Box>;
54
- /**
55
- * List all boxes.
56
- *
57
- * @example
58
- * ```ts
59
- * // Automatically fetches more pages as needed.
60
- * for await (const box of client.printMail.boxes.list()) {
61
- * // ...
62
- * }
63
- * ```
64
- */
65
- list(query?: BoxListParams | null | undefined, options?: RequestOptions): PagePromise<BoxesSkipLimit, Box>;
66
- /**
67
- * Cancel a box by ID (cannot be undone).
68
- *
69
- * @example
70
- * ```ts
71
- * const box = await client.printMail.boxes.delete('id');
72
- * ```
73
- */
74
- delete(id: string, options?: RequestOptions): APIPromise<Box>;
75
- }
76
- export type BoxesSkipLimit = SkipLimit<Box>;
77
- export interface Box {
78
- /**
79
- * A unique ID prefixed with box\_
80
- */
81
- id: string;
82
- /**
83
- * The cheques inside this box (in read mode).
84
- */
85
- cheques: Array<Box.Cheque>;
86
- /**
87
- * The UTC time at which this resource was created.
88
- */
89
- createdAt: string;
90
- /**
91
- * The contact of the 'from' field in read mode should be a fully expanded Contact.
92
- */
93
- from: ContactsAPI.Contact;
94
- /**
95
- * `true` if this is a live mode resource else `false`.
96
- */
97
- live: boolean;
98
- /**
99
- * The mailing class of this order. This determines the speed and cost of delivery.
100
- * See `OrderMailingClass` for more details.
101
- */
102
- mailingClass: OrderMailingClass;
103
- /**
104
- * Always "box".
105
- */
106
- object: 'box';
107
- /**
108
- * This order will transition from `ready` to `printing` on the day after this
109
- * date. For example, if this is a date on Tuesday, the order will transition to
110
- * `printing` on Wednesday at midnight eastern time.
111
- */
112
- sendDate: string;
113
- /**
114
- * See `OrderStatus` for more details on the status of this order.
115
- */
116
- status: OrderStatus;
117
- /**
118
- * The recipient of this order. This will be provided even if you delete the
119
- * underlying contact.
120
- */
121
- to: ContactsAPI.Contact;
122
- /**
123
- * The UTC time at which this resource was last updated.
124
- */
125
- updatedAt: string;
126
- /**
127
- * The cancellation details of this order. Populated if the order has been
128
- * cancelled.
129
- */
130
- cancellation?: Cancellation;
131
- /**
132
- * An optional string describing this resource. Will be visible in the API and the
133
- * dashboard.
134
- */
135
- description?: string;
136
- /**
137
- * The last date that the IMB status was updated. See `imbStatus` for more details.
138
- */
139
- imbDate?: string;
140
- /**
141
- * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
142
- * US-printed and US-destined orders. This is the most detailed way to track
143
- * non-express/certified orders.
144
- */
145
- imbStatus?: OrderImbStatus;
146
- /**
147
- * The most recent ZIP code of the USPS facility that the order has been processed
148
- * through. Only populated when an `imbStatus` is present.
149
- */
150
- imbZIPCode?: string;
151
- /**
152
- * These will be merged with the variables in the template or HTML you create this
153
- * order with. The keys in this object should match the variable names in the
154
- * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
155
- * PDFs uploaded with the order.
156
- */
157
- mergeVariables?: {
158
- [key: string]: unknown;
159
- };
160
- /**
161
- * See the section on Metadata.
162
- */
163
- metadata?: {
164
- [key: string]: unknown;
165
- };
166
- /**
167
- * The tracking number of this order. Populated after an express/certified order
168
- * has been processed for delivery.
169
- */
170
- trackingNumber?: string;
171
- /**
172
- * PostGrid renders a PDF preview for all orders. This should be inspected to
173
- * ensure that the order is correct before it is sent out because it shows what
174
- * will be printed and mailed to the recipient. Once the PDF preview is generated,
175
- * this field will be returned by all `GET` endpoints which produce this order.
176
- *
177
- * This URL is a signed link to the PDF preview. It will expire after a short
178
- * period of time. If you need to access this URL after it has expired, you can
179
- * regenerate it by calling the `GET` endpoint again.
180
- */
181
- url?: string;
182
- }
183
- export declare namespace Box {
184
- /**
185
- * Model representing a single cheque in "read" mode.
186
- *
187
- * - The "from" and "to" should be fully expanded Contact objects once created.
188
- */
189
- interface Cheque extends BoxesAPI.BoxChequeBase {
190
- from: ContactsAPI.Contact;
191
- to: ContactsAPI.Contact;
192
- }
193
- }
194
- /**
195
- * Base fields that both reading and creating a cheque might share.
196
- */
197
- export interface BoxChequeBase {
198
- /**
199
- * The amount on the cheque.
200
- */
201
- amount: number;
202
- /**
203
- * The bank account (ID or reference) from which the cheque amount is drawn.
204
- */
205
- bankAccount: string;
206
- /**
207
- * The cheque number.
208
- */
209
- number: number;
210
- /**
211
- * A URL to a logo for the cheque (optional).
212
- */
213
- logoURL?: string;
214
- /**
215
- * The memo text on the cheque (optional).
216
- */
217
- memo?: string;
218
- /**
219
- * A set of dynamic merge variables for customizing the cheque or accompanying
220
- * documents (optional).
221
- */
222
- mergeVariables?: {
223
- [key: string]: unknown;
224
- };
225
- /**
226
- * An optional message template to be printed on or with the cheque.
227
- */
228
- messageTemplate?: string;
229
- }
230
- export interface Cancellation {
231
- /**
232
- * The reason for the cancellation.
233
- */
234
- reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
235
- /**
236
- * The user ID who cancelled the order.
237
- */
238
- cancelledByUser?: string;
239
- /**
240
- * An optional note provided by the user who cancelled the order.
241
- */
242
- note?: string;
243
- }
244
- export type OrderImbStatus = 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
245
- export type OrderMailingClass = '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';
246
- export type OrderStatus = 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
247
- export interface BoxCreateParams {
248
- /**
249
- * The cheques to be mailed in the box. Only 100 cheques can be included in a box
250
- * at a time.
251
- */
252
- cheques: Array<BoxCreateParams.Cheque>;
253
- /**
254
- * The 'from' (sender) of the entire box. Accepts inline ContactCreate or a
255
- * contactID.
256
- */
257
- from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
258
- /**
259
- * The recipient of this order. You can either supply the contact information
260
- * inline here or provide a contact ID. PostGrid will automatically deduplicate
261
- * contacts regardless of whether you provide the information inline here or call
262
- * the contact creation endpoint.
263
- */
264
- to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
265
- /**
266
- * An optional string describing this resource. Will be visible in the API and the
267
- * dashboard.
268
- */
269
- description?: string;
270
- /**
271
- * The mailing class of this order. If not provided, automatically set to
272
- * `first_class`.
273
- */
274
- mailingClass?: OrderMailingClass;
275
- /**
276
- * These will be merged with the variables in the template or HTML you create this
277
- * order with. The keys in this object should match the variable names in the
278
- * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
279
- * PDFs uploaded with the order.
280
- */
281
- mergeVariables?: {
282
- [key: string]: unknown;
283
- };
284
- /**
285
- * See the section on Metadata.
286
- */
287
- metadata?: {
288
- [key: string]: unknown;
289
- };
290
- /**
291
- * This order will transition from `ready` to `printing` on the day after this
292
- * date. You can use this parameter to schedule orders for a future date.
293
- */
294
- sendDate?: string;
295
- }
296
- export declare namespace BoxCreateParams {
297
- /**
298
- * Model representing a single cheque in "create" mode.
299
- *
300
- * - The "from" and "to" can be ContactCreate objects (inline) or string
301
- * contactIDs.
302
- */
303
- interface Cheque extends BoxesAPI.BoxChequeBase {
304
- from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
305
- to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
306
- }
307
- }
308
- export interface BoxListParams extends SkipLimitParams {
309
- /**
310
- * You can supply any string to help narrow down the list of resources. For
311
- * example, if you pass `"New York"` (quoted), it will return resources that have
312
- * that string present somewhere in their response. Alternatively, you can supply a
313
- * structured search query. See the documentation on `StructuredSearchQuery` for
314
- * more details.
315
- */
316
- search?: string;
317
- }
318
- export declare namespace Boxes {
319
- export { type Box as Box, type BoxChequeBase as BoxChequeBase, type Cancellation as Cancellation, type OrderImbStatus as OrderImbStatus, type OrderMailingClass as OrderMailingClass, type OrderStatus as OrderStatus, type BoxesSkipLimit as BoxesSkipLimit, type BoxCreateParams as BoxCreateParams, type BoxListParams as BoxListParams, };
320
- }
321
- //# sourceMappingURL=boxes.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boxes.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/boxes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,WAAW;OAChB,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;IAIxE;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;IAI/D;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,cAAc,EAAE,GAAG,CAAC;IAInC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;CAG9D;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAE5C,MAAM,WAAW,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EA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xesAPI from "./boxes.js";
3
- import * as ContactsAPI from "./contacts.js";
4
- import * as PrintMailAPI from "./print-mail.js";
5
- import { APIPromise } from "../../core/api-promise.js";
6
- import { PagePromise, SkipLimit, type SkipLimitParams } from "../../core/pagination.js";
7
- import { RequestOptions } from "../../internal/request-options.js";
8
- export declare class Boxes extends APIResource {
9
- /**
10
- * This endpoint allows you to create a box containing up to 100 cheques. A Box is
11
- * mailed to a single destination.
12
- *
13
- * To create a box. You must specify:
14
- *
15
- * - `to`: The recipient (contact or contact ID)
16
- * - `from`: The sender (contact or contact ID)
17
- * - `cheques`: An array of cheques to go in the box
18
- *
19
- * For each cheque You must specify:
20
- *
21
- * - `to`: The recipient (contact or contact ID)
22
- * - `from`: The sender (contact or contact ID)
23
- * - `bankAccount`: The bank account ID
24
- * - `amount`: The amount to be sent
25
- * - `number`: The cheque number
26
- *
27
- * @example
28
- * ```ts
29
- * const box = await client.printMail.boxes.create({
30
- * cheques: [
31
- * {
32
- * from: 'contact_456',
33
- * to: 'contact_123',
34
- * bankAccount: 'bank_abc',
35
- * amount: 5000,
36
- * number: 1042,
37
- * },
38
- * ],
39
- * from: 'contact_456',
40
- * to: 'contact_123',
41
- * });
42
- * ```
43
- */
44
- create(body: BoxCreateParams, options?: RequestOptions): APIPromise<Box>;
45
- /**
46
- * Retrieve a box by ID.
47
- *
48
- * @example
49
- * ```ts
50
- * const box = await client.printMail.boxes.retrieve('id');
51
- * ```
52
- */
53
- retrieve(id: string, options?: RequestOptions): APIPromise<Box>;
54
- /**
55
- * List all boxes.
56
- *
57
- * @example
58
- * ```ts
59
- * // Automatically fetches more pages as needed.
60
- * for await (const box of client.printMail.boxes.list()) {
61
- * // ...
62
- * }
63
- * ```
64
- */
65
- list(query?: BoxListParams | null | undefined, options?: RequestOptions): PagePromise<BoxesSkipLimit, Box>;
66
- /**
67
- * Cancel a box by ID (cannot be undone).
68
- *
69
- * @example
70
- * ```ts
71
- * const box = await client.printMail.boxes.delete('id');
72
- * ```
73
- */
74
- delete(id: string, options?: RequestOptions): APIPromise<Box>;
75
- }
76
- export type BoxesSkipLimit = SkipLimit<Box>;
77
- export interface Box {
78
- /**
79
- * A unique ID prefixed with box\_
80
- */
81
- id: string;
82
- /**
83
- * The cheques inside this box (in read mode).
84
- */
85
- cheques: Array<Box.Cheque>;
86
- /**
87
- * The UTC time at which this resource was created.
88
- */
89
- createdAt: string;
90
- /**
91
- * The contact of the 'from' field in read mode should be a fully expanded Contact.
92
- */
93
- from: ContactsAPI.Contact;
94
- /**
95
- * `true` if this is a live mode resource else `false`.
96
- */
97
- live: boolean;
98
- /**
99
- * The mailing class of this order. This determines the speed and cost of delivery.
100
- * See `OrderMailingClass` for more details.
101
- */
102
- mailingClass: OrderMailingClass;
103
- /**
104
- * Always "box".
105
- */
106
- object: 'box';
107
- /**
108
- * This order will transition from `ready` to `printing` on the day after this
109
- * date. For example, if this is a date on Tuesday, the order will transition to
110
- * `printing` on Wednesday at midnight eastern time.
111
- */
112
- sendDate: string;
113
- /**
114
- * See `OrderStatus` for more details on the status of this order.
115
- */
116
- status: OrderStatus;
117
- /**
118
- * The recipient of this order. This will be provided even if you delete the
119
- * underlying contact.
120
- */
121
- to: ContactsAPI.Contact;
122
- /**
123
- * The UTC time at which this resource was last updated.
124
- */
125
- updatedAt: string;
126
- /**
127
- * The cancellation details of this order. Populated if the order has been
128
- * cancelled.
129
- */
130
- cancellation?: Cancellation;
131
- /**
132
- * An optional string describing this resource. Will be visible in the API and the
133
- * dashboard.
134
- */
135
- description?: string;
136
- /**
137
- * The last date that the IMB status was updated. See `imbStatus` for more details.
138
- */
139
- imbDate?: string;
140
- /**
141
- * The Intelligent Mail Barcode (IMB) status of this order. Only populated for
142
- * US-printed and US-destined orders. This is the most detailed way to track
143
- * non-express/certified orders.
144
- */
145
- imbStatus?: OrderImbStatus;
146
- /**
147
- * The most recent ZIP code of the USPS facility that the order has been processed
148
- * through. Only populated when an `imbStatus` is present.
149
- */
150
- imbZIPCode?: string;
151
- /**
152
- * These will be merged with the variables in the template or HTML you create this
153
- * order with. The keys in this object should match the variable names in the
154
- * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
155
- * PDFs uploaded with the order.
156
- */
157
- mergeVariables?: {
158
- [key: string]: unknown;
159
- };
160
- /**
161
- * See the section on Metadata.
162
- */
163
- metadata?: {
164
- [key: string]: unknown;
165
- };
166
- /**
167
- * The tracking number of this order. Populated after an express/certified order
168
- * has been processed for delivery.
169
- */
170
- trackingNumber?: string;
171
- /**
172
- * PostGrid renders a PDF preview for all orders. This should be inspected to
173
- * ensure that the order is correct before it is sent out because it shows what
174
- * will be printed and mailed to the recipient. Once the PDF preview is generated,
175
- * this field will be returned by all `GET` endpoints which produce this order.
176
- *
177
- * This URL is a signed link to the PDF preview. It will expire after a short
178
- * period of time. If you need to access this URL after it has expired, you can
179
- * regenerate it by calling the `GET` endpoint again.
180
- */
181
- url?: string;
182
- }
183
- export declare namespace Box {
184
- /**
185
- * Model representing a single cheque in "read" mode.
186
- *
187
- * - The "from" and "to" should be fully expanded Contact objects once created.
188
- */
189
- interface Cheque extends BoxesAPI.BoxChequeBase {
190
- from: ContactsAPI.Contact;
191
- to: ContactsAPI.Contact;
192
- }
193
- }
194
- /**
195
- * Base fields that both reading and creating a cheque might share.
196
- */
197
- export interface BoxChequeBase {
198
- /**
199
- * The amount on the cheque.
200
- */
201
- amount: number;
202
- /**
203
- * The bank account (ID or reference) from which the cheque amount is drawn.
204
- */
205
- bankAccount: string;
206
- /**
207
- * The cheque number.
208
- */
209
- number: number;
210
- /**
211
- * A URL to a logo for the cheque (optional).
212
- */
213
- logoURL?: string;
214
- /**
215
- * The memo text on the cheque (optional).
216
- */
217
- memo?: string;
218
- /**
219
- * A set of dynamic merge variables for customizing the cheque or accompanying
220
- * documents (optional).
221
- */
222
- mergeVariables?: {
223
- [key: string]: unknown;
224
- };
225
- /**
226
- * An optional message template to be printed on or with the cheque.
227
- */
228
- messageTemplate?: string;
229
- }
230
- export interface Cancellation {
231
- /**
232
- * The reason for the cancellation.
233
- */
234
- reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
235
- /**
236
- * The user ID who cancelled the order.
237
- */
238
- cancelledByUser?: string;
239
- /**
240
- * An optional note provided by the user who cancelled the order.
241
- */
242
- note?: string;
243
- }
244
- export type OrderImbStatus = 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
245
- export type OrderMailingClass = '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';
246
- export type OrderStatus = 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
247
- export interface BoxCreateParams {
248
- /**
249
- * The cheques to be mailed in the box. Only 100 cheques can be included in a box
250
- * at a time.
251
- */
252
- cheques: Array<BoxCreateParams.Cheque>;
253
- /**
254
- * The 'from' (sender) of the entire box. Accepts inline ContactCreate or a
255
- * contactID.
256
- */
257
- from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
258
- /**
259
- * The recipient of this order. You can either supply the contact information
260
- * inline here or provide a contact ID. PostGrid will automatically deduplicate
261
- * contacts regardless of whether you provide the information inline here or call
262
- * the contact creation endpoint.
263
- */
264
- to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
265
- /**
266
- * An optional string describing this resource. Will be visible in the API and the
267
- * dashboard.
268
- */
269
- description?: string;
270
- /**
271
- * The mailing class of this order. If not provided, automatically set to
272
- * `first_class`.
273
- */
274
- mailingClass?: OrderMailingClass;
275
- /**
276
- * These will be merged with the variables in the template or HTML you create this
277
- * order with. The keys in this object should match the variable names in the
278
- * template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
279
- * PDFs uploaded with the order.
280
- */
281
- mergeVariables?: {
282
- [key: string]: unknown;
283
- };
284
- /**
285
- * See the section on Metadata.
286
- */
287
- metadata?: {
288
- [key: string]: unknown;
289
- };
290
- /**
291
- * This order will transition from `ready` to `printing` on the day after this
292
- * date. You can use this parameter to schedule orders for a future date.
293
- */
294
- sendDate?: string;
295
- }
296
- export declare namespace BoxCreateParams {
297
- /**
298
- * Model representing a single cheque in "create" mode.
299
- *
300
- * - The "from" and "to" can be ContactCreate objects (inline) or string
301
- * contactIDs.
302
- */
303
- interface Cheque extends BoxesAPI.BoxChequeBase {
304
- from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
305
- to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
306
- }
307
- }
308
- export interface BoxListParams extends SkipLimitParams {
309
- /**
310
- * You can supply any string to help narrow down the list of resources. For
311
- * example, if you pass `"New York"` (quoted), it will return resources that have
312
- * that string present somewhere in their response. Alternatively, you can supply a
313
- * structured search query. See the documentation on `StructuredSearchQuery` for
314
- * more details.
315
- */
316
- search?: string;
317
- }
318
- export declare namespace Boxes {
319
- export { type Box as Box, type BoxChequeBase as BoxChequeBase, type Cancellation as Cancellation, type OrderImbStatus as OrderImbStatus, type OrderMailingClass as OrderMailingClass, type OrderStatus as OrderStatus, type BoxesSkipLimit as BoxesSkipLimit, type BoxCreateParams as BoxCreateParams, type BoxListParams as BoxListParams, };
320
- }
321
- //# sourceMappingURL=boxes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"boxes.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/boxes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KA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