postgrid-node 0.2.0 → 0.4.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.
- package/CHANGELOG.md +21 -0
- package/README.md +18 -26
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +8 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +107 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +101 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/print-mail/bank-accounts.d.mts +9 -14
- package/resources/print-mail/bank-accounts.d.mts.map +1 -1
- package/resources/print-mail/bank-accounts.d.ts +9 -14
- package/resources/print-mail/bank-accounts.d.ts.map +1 -1
- package/resources/print-mail/bank-accounts.js +9 -3
- package/resources/print-mail/bank-accounts.js.map +1 -1
- package/resources/print-mail/bank-accounts.mjs +9 -3
- package/resources/print-mail/bank-accounts.mjs.map +1 -1
- package/resources/print-mail/boxes.d.mts +14 -566
- package/resources/print-mail/boxes.d.mts.map +1 -1
- package/resources/print-mail/boxes.d.ts +14 -566
- package/resources/print-mail/boxes.d.ts.map +1 -1
- package/resources/print-mail/boxes.js +6 -2
- package/resources/print-mail/boxes.js.map +1 -1
- package/resources/print-mail/boxes.mjs +6 -2
- package/resources/print-mail/boxes.mjs.map +1 -1
- package/resources/print-mail/campaigns.d.mts +9 -16
- package/resources/print-mail/campaigns.d.mts.map +1 -1
- package/resources/print-mail/campaigns.d.ts +9 -16
- package/resources/print-mail/campaigns.d.ts.map +1 -1
- package/resources/print-mail/campaigns.js +6 -2
- package/resources/print-mail/campaigns.js.map +1 -1
- package/resources/print-mail/campaigns.mjs +6 -2
- package/resources/print-mail/campaigns.mjs.map +1 -1
- package/resources/print-mail/cheques.d.mts +13 -426
- package/resources/print-mail/cheques.d.mts.map +1 -1
- package/resources/print-mail/cheques.d.ts +13 -426
- package/resources/print-mail/cheques.d.ts.map +1 -1
- package/resources/print-mail/cheques.js +6 -2
- package/resources/print-mail/cheques.js.map +1 -1
- package/resources/print-mail/cheques.mjs +6 -2
- package/resources/print-mail/cheques.mjs.map +1 -1
- package/resources/print-mail/contacts.d.mts +11 -152
- package/resources/print-mail/contacts.d.mts.map +1 -1
- package/resources/print-mail/contacts.d.ts +11 -152
- package/resources/print-mail/contacts.d.ts.map +1 -1
- package/resources/print-mail/contacts.js +6 -2
- package/resources/print-mail/contacts.js.map +1 -1
- package/resources/print-mail/contacts.mjs +6 -2
- package/resources/print-mail/contacts.mjs.map +1 -1
- package/resources/print-mail/index.d.mts +14 -14
- package/resources/print-mail/index.d.mts.map +1 -1
- package/resources/print-mail/index.d.ts +14 -14
- package/resources/print-mail/index.d.ts.map +1 -1
- package/resources/print-mail/index.js.map +1 -1
- package/resources/print-mail/index.mjs.map +1 -1
- package/resources/print-mail/letters.d.mts +14 -565
- package/resources/print-mail/letters.d.mts.map +1 -1
- package/resources/print-mail/letters.d.ts +14 -565
- package/resources/print-mail/letters.d.ts.map +1 -1
- package/resources/print-mail/letters.js +6 -2
- package/resources/print-mail/letters.js.map +1 -1
- package/resources/print-mail/letters.mjs +6 -2
- package/resources/print-mail/letters.mjs.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.mts +9 -17
- package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.ts +9 -17
- package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
- package/resources/print-mail/mailing-list-imports.js +6 -3
- package/resources/print-mail/mailing-list-imports.js.map +1 -1
- package/resources/print-mail/mailing-list-imports.mjs +6 -3
- package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
- package/resources/print-mail/mailing-lists.d.mts +9 -17
- package/resources/print-mail/mailing-lists.d.mts.map +1 -1
- package/resources/print-mail/mailing-lists.d.ts +9 -17
- package/resources/print-mail/mailing-lists.d.ts.map +1 -1
- package/resources/print-mail/mailing-lists.js +9 -3
- package/resources/print-mail/mailing-lists.js.map +1 -1
- package/resources/print-mail/mailing-lists.mjs +9 -3
- package/resources/print-mail/mailing-lists.mjs.map +1 -1
- package/resources/print-mail/order-profiles/cheques.d.mts +80 -90
- package/resources/print-mail/order-profiles/cheques.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/cheques.d.ts +80 -90
- package/resources/print-mail/order-profiles/cheques.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/cheques.js +9 -3
- package/resources/print-mail/order-profiles/cheques.js.map +1 -1
- package/resources/print-mail/order-profiles/cheques.mjs +9 -3
- package/resources/print-mail/order-profiles/cheques.mjs.map +1 -1
- package/resources/print-mail/order-profiles/index.d.mts +4 -4
- package/resources/print-mail/order-profiles/index.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/index.d.ts +4 -4
- package/resources/print-mail/order-profiles/index.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/index.js.map +1 -1
- package/resources/print-mail/order-profiles/index.mjs.map +1 -1
- package/resources/print-mail/order-profiles/letters.d.mts +9 -17
- package/resources/print-mail/order-profiles/letters.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/letters.d.ts +9 -17
- package/resources/print-mail/order-profiles/letters.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/letters.js +9 -3
- package/resources/print-mail/order-profiles/letters.js.map +1 -1
- package/resources/print-mail/order-profiles/letters.mjs +9 -3
- package/resources/print-mail/order-profiles/letters.mjs.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.d.mts +8 -8
- package/resources/print-mail/order-profiles/order-profiles.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.d.ts +8 -8
- package/resources/print-mail/order-profiles/order-profiles.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.js.map +1 -1
- package/resources/print-mail/order-profiles/order-profiles.mjs.map +1 -1
- package/resources/print-mail/order-profiles/postcards.d.mts +9 -17
- package/resources/print-mail/order-profiles/postcards.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/postcards.d.ts +9 -17
- package/resources/print-mail/order-profiles/postcards.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/postcards.js +9 -3
- package/resources/print-mail/order-profiles/postcards.js.map +1 -1
- package/resources/print-mail/order-profiles/postcards.mjs +9 -3
- package/resources/print-mail/order-profiles/postcards.mjs.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.d.mts +9 -17
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.d.ts +9 -17
- package/resources/print-mail/order-profiles/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.js +6 -3
- package/resources/print-mail/order-profiles/self-mailers.js.map +1 -1
- package/resources/print-mail/order-profiles/self-mailers.mjs +6 -3
- package/resources/print-mail/order-profiles/self-mailers.mjs.map +1 -1
- package/resources/print-mail/postcards.d.mts +16 -841
- package/resources/print-mail/postcards.d.mts.map +1 -1
- package/resources/print-mail/postcards.d.ts +16 -841
- package/resources/print-mail/postcards.d.ts.map +1 -1
- package/resources/print-mail/postcards.js +6 -2
- package/resources/print-mail/postcards.js.map +1 -1
- package/resources/print-mail/postcards.mjs +6 -2
- package/resources/print-mail/postcards.mjs.map +1 -1
- package/resources/print-mail/print-mail.d.mts +163 -26
- package/resources/print-mail/print-mail.d.mts.map +1 -1
- package/resources/print-mail/print-mail.d.ts +163 -26
- package/resources/print-mail/print-mail.d.ts.map +1 -1
- package/resources/print-mail/print-mail.js.map +1 -1
- package/resources/print-mail/print-mail.mjs.map +1 -1
- package/resources/print-mail/reports/index.d.mts +1 -1
- package/resources/print-mail/reports/index.d.mts.map +1 -1
- package/resources/print-mail/reports/index.d.ts +1 -1
- package/resources/print-mail/reports/index.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.d.mts +9 -16
- package/resources/print-mail/reports/reports.d.mts.map +1 -1
- package/resources/print-mail/reports/reports.d.ts +9 -16
- package/resources/print-mail/reports/reports.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.js +6 -2
- package/resources/print-mail/reports/reports.js.map +1 -1
- package/resources/print-mail/reports/reports.mjs +6 -2
- package/resources/print-mail/reports/reports.mjs.map +1 -1
- package/resources/print-mail/self-mailers.d.mts +16 -842
- package/resources/print-mail/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/self-mailers.d.ts +16 -842
- package/resources/print-mail/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/self-mailers.js +9 -3
- package/resources/print-mail/self-mailers.js.map +1 -1
- package/resources/print-mail/self-mailers.mjs +9 -3
- package/resources/print-mail/self-mailers.mjs.map +1 -1
- package/resources/print-mail/sub-organizations.d.mts +9 -14
- package/resources/print-mail/sub-organizations.d.mts.map +1 -1
- package/resources/print-mail/sub-organizations.d.ts +9 -14
- package/resources/print-mail/sub-organizations.d.ts.map +1 -1
- package/resources/print-mail/sub-organizations.js +9 -3
- package/resources/print-mail/sub-organizations.js.map +1 -1
- package/resources/print-mail/sub-organizations.mjs +9 -3
- package/resources/print-mail/sub-organizations.mjs.map +1 -1
- package/resources/print-mail/templates.d.mts +9 -13
- package/resources/print-mail/templates.d.mts.map +1 -1
- package/resources/print-mail/templates.d.ts +9 -13
- package/resources/print-mail/templates.d.ts.map +1 -1
- package/resources/print-mail/templates.js +6 -2
- package/resources/print-mail/templates.js.map +1 -1
- package/resources/print-mail/templates.mjs +6 -2
- package/resources/print-mail/templates.mjs.map +1 -1
- package/src/client.ts +34 -2
- package/src/core/pagination.ts +171 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/index.ts +5 -1
- package/src/resources/print-mail/bank-accounts.ts +14 -22
- package/src/resources/print-mail/boxes.ts +19 -686
- package/src/resources/print-mail/campaigns.ts +11 -24
- package/src/resources/print-mail/cheques.ts +15 -527
- package/src/resources/print-mail/contacts.ts +14 -189
- package/src/resources/print-mail/index.ts +14 -14
- package/src/resources/print-mail/letters.ts +16 -697
- package/src/resources/print-mail/mailing-list-imports.ts +15 -25
- package/src/resources/print-mail/mailing-lists.ts +14 -25
- package/src/resources/print-mail/order-profiles/cheques.ts +91 -103
- package/src/resources/print-mail/order-profiles/index.ts +4 -3
- package/src/resources/print-mail/order-profiles/letters.ts +14 -25
- package/src/resources/print-mail/order-profiles/order-profiles.ts +8 -6
- package/src/resources/print-mail/order-profiles/postcards.ts +14 -25
- package/src/resources/print-mail/order-profiles/self-mailers.ts +15 -25
- package/src/resources/print-mail/postcards.ts +18 -1035
- package/src/resources/print-mail/print-mail.ts +195 -26
- package/src/resources/print-mail/reports/index.ts +1 -1
- package/src/resources/print-mail/reports/reports.ts +11 -24
- package/src/resources/print-mail/self-mailers.ts +21 -1036
- package/src/resources/print-mail/sub-organizations.ts +14 -22
- package/src/resources/print-mail/templates.ts +11 -21
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as BoxesAPI from './boxes';
|
|
5
5
|
import * as ContactsAPI from './contacts';
|
|
6
|
+
import * as PrintMailAPI from './print-mail';
|
|
6
7
|
import { APIPromise } from '../../core/api-promise';
|
|
8
|
+
import { PagePromise, SkipLimit, type SkipLimitParams } from '../../core/pagination';
|
|
7
9
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
10
|
import { path } from '../../internal/utils/path';
|
|
9
11
|
|
|
@@ -64,11 +66,17 @@ export class Boxes extends APIResource {
|
|
|
64
66
|
*
|
|
65
67
|
* @example
|
|
66
68
|
* ```ts
|
|
67
|
-
*
|
|
69
|
+
* // Automatically fetches more pages as needed.
|
|
70
|
+
* for await (const box of client.printMail.boxes.list()) {
|
|
71
|
+
* // ...
|
|
72
|
+
* }
|
|
68
73
|
* ```
|
|
69
74
|
*/
|
|
70
|
-
list(
|
|
71
|
-
|
|
75
|
+
list(
|
|
76
|
+
query: BoxListParams | null | undefined = {},
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): PagePromise<BoxesSkipLimit, Box> {
|
|
79
|
+
return this._client.getAPIList('/print-mail/v1/boxes', SkipLimit<Box>, { query, ...options });
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
/**
|
|
@@ -84,6 +92,8 @@ export class Boxes extends APIResource {
|
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
|
|
95
|
+
export type BoxesSkipLimit = SkipLimit<Box>;
|
|
96
|
+
|
|
87
97
|
export interface Box {
|
|
88
98
|
/**
|
|
89
99
|
* A unique ID prefixed with box\_
|
|
@@ -309,21 +319,6 @@ export type OrderMailingClass =
|
|
|
309
319
|
|
|
310
320
|
export type OrderStatus = 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
311
321
|
|
|
312
|
-
/**
|
|
313
|
-
* A list of Boxes.
|
|
314
|
-
*/
|
|
315
|
-
export interface BoxListResponse {
|
|
316
|
-
data: Array<Box>;
|
|
317
|
-
|
|
318
|
-
limit: number;
|
|
319
|
-
|
|
320
|
-
object: 'list';
|
|
321
|
-
|
|
322
|
-
skip: number;
|
|
323
|
-
|
|
324
|
-
totalCount: number;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
322
|
export interface BoxCreateParams {
|
|
328
323
|
/**
|
|
329
324
|
* The cheques to be mailed in the box. Only 100 cheques can be included in a box
|
|
@@ -335,7 +330,7 @@ export interface BoxCreateParams {
|
|
|
335
330
|
* The 'from' (sender) of the entire box. Accepts inline ContactCreate or a
|
|
336
331
|
* contactID.
|
|
337
332
|
*/
|
|
338
|
-
from:
|
|
333
|
+
from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
|
|
339
334
|
|
|
340
335
|
/**
|
|
341
336
|
* The recipient of this order. You can either supply the contact information
|
|
@@ -343,7 +338,7 @@ export interface BoxCreateParams {
|
|
|
343
338
|
* contacts regardless of whether you provide the information inline here or call
|
|
344
339
|
* the contact creation endpoint.
|
|
345
340
|
*/
|
|
346
|
-
to:
|
|
341
|
+
to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
|
|
347
342
|
|
|
348
343
|
/**
|
|
349
344
|
* An optional string describing this resource. Will be visible in the API and the
|
|
@@ -385,673 +380,13 @@ export namespace BoxCreateParams {
|
|
|
385
380
|
* contactIDs.
|
|
386
381
|
*/
|
|
387
382
|
export interface Cheque extends BoxesAPI.BoxChequeBase {
|
|
388
|
-
from:
|
|
389
|
-
|
|
390
|
-
to: Cheque.ContactCreateWithFirstName | Cheque.ContactCreateWithCompanyName | string;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export namespace Cheque {
|
|
394
|
-
export interface ContactCreateWithFirstName {
|
|
395
|
-
/**
|
|
396
|
-
* The first line of the contact's address.
|
|
397
|
-
*/
|
|
398
|
-
addressLine1: string;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
402
|
-
*/
|
|
403
|
-
countryCode: string;
|
|
404
|
-
|
|
405
|
-
firstName: string;
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Second line of the contact's address, if applicable.
|
|
409
|
-
*/
|
|
410
|
-
addressLine2?: string;
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* The city of the contact's address.
|
|
414
|
-
*/
|
|
415
|
-
city?: string;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Company name of the contact.
|
|
419
|
-
*/
|
|
420
|
-
companyName?: string;
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
424
|
-
* dashboard.
|
|
425
|
-
*/
|
|
426
|
-
description?: string;
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Email of the contact.
|
|
430
|
-
*/
|
|
431
|
-
email?: string;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
435
|
-
* `verified` even if our address verification system says otherwise.
|
|
436
|
-
*/
|
|
437
|
-
forceVerifiedStatus?: boolean;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Job title of the contact.
|
|
441
|
-
*/
|
|
442
|
-
jobTitle?: string;
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* Last name of the contact.
|
|
446
|
-
*/
|
|
447
|
-
lastName?: string;
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* See the section on Metadata.
|
|
451
|
-
*/
|
|
452
|
-
metadata?: { [key: string]: unknown };
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* Phone number of the contact.
|
|
456
|
-
*/
|
|
457
|
-
phoneNumber?: string;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* The postal or ZIP code of the contact's address.
|
|
461
|
-
*/
|
|
462
|
-
postalOrZip?: string;
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* Province or state of the contact's address.
|
|
466
|
-
*/
|
|
467
|
-
provinceOrState?: string;
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
471
|
-
* verification system.
|
|
472
|
-
*/
|
|
473
|
-
skipVerification?: boolean;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export interface ContactCreateWithCompanyName {
|
|
477
|
-
/**
|
|
478
|
-
* The first line of the contact's address.
|
|
479
|
-
*/
|
|
480
|
-
addressLine1: string;
|
|
481
|
-
|
|
482
|
-
companyName: string;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
486
|
-
*/
|
|
487
|
-
countryCode: string;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Second line of the contact's address, if applicable.
|
|
491
|
-
*/
|
|
492
|
-
addressLine2?: string;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* The city of the contact's address.
|
|
496
|
-
*/
|
|
497
|
-
city?: string;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
501
|
-
* dashboard.
|
|
502
|
-
*/
|
|
503
|
-
description?: string;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Email of the contact.
|
|
507
|
-
*/
|
|
508
|
-
email?: string;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* First name of the contact.
|
|
512
|
-
*/
|
|
513
|
-
firstName?: string;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
517
|
-
* `verified` even if our address verification system says otherwise.
|
|
518
|
-
*/
|
|
519
|
-
forceVerifiedStatus?: boolean;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Job title of the contact.
|
|
523
|
-
*/
|
|
524
|
-
jobTitle?: string;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Last name of the contact.
|
|
528
|
-
*/
|
|
529
|
-
lastName?: string;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* See the section on Metadata.
|
|
533
|
-
*/
|
|
534
|
-
metadata?: { [key: string]: unknown };
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Phone number of the contact.
|
|
538
|
-
*/
|
|
539
|
-
phoneNumber?: string;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* The postal or ZIP code of the contact's address.
|
|
543
|
-
*/
|
|
544
|
-
postalOrZip?: string;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Province or state of the contact's address.
|
|
548
|
-
*/
|
|
549
|
-
provinceOrState?: string;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
553
|
-
* verification system.
|
|
554
|
-
*/
|
|
555
|
-
skipVerification?: boolean;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
export interface ContactCreateWithFirstName {
|
|
559
|
-
/**
|
|
560
|
-
* The first line of the contact's address.
|
|
561
|
-
*/
|
|
562
|
-
addressLine1: string;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
566
|
-
*/
|
|
567
|
-
countryCode: string;
|
|
568
|
-
|
|
569
|
-
firstName: string;
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Second line of the contact's address, if applicable.
|
|
573
|
-
*/
|
|
574
|
-
addressLine2?: string;
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* The city of the contact's address.
|
|
578
|
-
*/
|
|
579
|
-
city?: string;
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Company name of the contact.
|
|
583
|
-
*/
|
|
584
|
-
companyName?: string;
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
588
|
-
* dashboard.
|
|
589
|
-
*/
|
|
590
|
-
description?: string;
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Email of the contact.
|
|
594
|
-
*/
|
|
595
|
-
email?: string;
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
599
|
-
* `verified` even if our address verification system says otherwise.
|
|
600
|
-
*/
|
|
601
|
-
forceVerifiedStatus?: boolean;
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Job title of the contact.
|
|
605
|
-
*/
|
|
606
|
-
jobTitle?: string;
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* Last name of the contact.
|
|
610
|
-
*/
|
|
611
|
-
lastName?: string;
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* See the section on Metadata.
|
|
615
|
-
*/
|
|
616
|
-
metadata?: { [key: string]: unknown };
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* Phone number of the contact.
|
|
620
|
-
*/
|
|
621
|
-
phoneNumber?: string;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* The postal or ZIP code of the contact's address.
|
|
625
|
-
*/
|
|
626
|
-
postalOrZip?: string;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Province or state of the contact's address.
|
|
630
|
-
*/
|
|
631
|
-
provinceOrState?: string;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
635
|
-
* verification system.
|
|
636
|
-
*/
|
|
637
|
-
skipVerification?: boolean;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
export interface ContactCreateWithCompanyName {
|
|
641
|
-
/**
|
|
642
|
-
* The first line of the contact's address.
|
|
643
|
-
*/
|
|
644
|
-
addressLine1: string;
|
|
645
|
-
|
|
646
|
-
companyName: string;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
650
|
-
*/
|
|
651
|
-
countryCode: string;
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Second line of the contact's address, if applicable.
|
|
655
|
-
*/
|
|
656
|
-
addressLine2?: string;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* The city of the contact's address.
|
|
660
|
-
*/
|
|
661
|
-
city?: string;
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
665
|
-
* dashboard.
|
|
666
|
-
*/
|
|
667
|
-
description?: string;
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Email of the contact.
|
|
671
|
-
*/
|
|
672
|
-
email?: string;
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* First name of the contact.
|
|
676
|
-
*/
|
|
677
|
-
firstName?: string;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
681
|
-
* `verified` even if our address verification system says otherwise.
|
|
682
|
-
*/
|
|
683
|
-
forceVerifiedStatus?: boolean;
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Job title of the contact.
|
|
687
|
-
*/
|
|
688
|
-
jobTitle?: string;
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* Last name of the contact.
|
|
692
|
-
*/
|
|
693
|
-
lastName?: string;
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* See the section on Metadata.
|
|
697
|
-
*/
|
|
698
|
-
metadata?: { [key: string]: unknown };
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Phone number of the contact.
|
|
702
|
-
*/
|
|
703
|
-
phoneNumber?: string;
|
|
383
|
+
from: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
|
|
704
384
|
|
|
705
|
-
|
|
706
|
-
* The postal or ZIP code of the contact's address.
|
|
707
|
-
*/
|
|
708
|
-
postalOrZip?: string;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Province or state of the contact's address.
|
|
712
|
-
*/
|
|
713
|
-
provinceOrState?: string;
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
717
|
-
* verification system.
|
|
718
|
-
*/
|
|
719
|
-
skipVerification?: boolean;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
export interface ContactCreateWithFirstName {
|
|
724
|
-
/**
|
|
725
|
-
* The first line of the contact's address.
|
|
726
|
-
*/
|
|
727
|
-
addressLine1: string;
|
|
728
|
-
|
|
729
|
-
/**
|
|
730
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
731
|
-
*/
|
|
732
|
-
countryCode: string;
|
|
733
|
-
|
|
734
|
-
firstName: string;
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* Second line of the contact's address, if applicable.
|
|
738
|
-
*/
|
|
739
|
-
addressLine2?: string;
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* The city of the contact's address.
|
|
743
|
-
*/
|
|
744
|
-
city?: string;
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* Company name of the contact.
|
|
748
|
-
*/
|
|
749
|
-
companyName?: string;
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
753
|
-
* dashboard.
|
|
754
|
-
*/
|
|
755
|
-
description?: string;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Email of the contact.
|
|
759
|
-
*/
|
|
760
|
-
email?: string;
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
764
|
-
* `verified` even if our address verification system says otherwise.
|
|
765
|
-
*/
|
|
766
|
-
forceVerifiedStatus?: boolean;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* Job title of the contact.
|
|
770
|
-
*/
|
|
771
|
-
jobTitle?: string;
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* Last name of the contact.
|
|
775
|
-
*/
|
|
776
|
-
lastName?: string;
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* See the section on Metadata.
|
|
780
|
-
*/
|
|
781
|
-
metadata?: { [key: string]: unknown };
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Phone number of the contact.
|
|
785
|
-
*/
|
|
786
|
-
phoneNumber?: string;
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* The postal or ZIP code of the contact's address.
|
|
790
|
-
*/
|
|
791
|
-
postalOrZip?: string;
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Province or state of the contact's address.
|
|
795
|
-
*/
|
|
796
|
-
provinceOrState?: string;
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
800
|
-
* verification system.
|
|
801
|
-
*/
|
|
802
|
-
skipVerification?: boolean;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
export interface ContactCreateWithCompanyName {
|
|
806
|
-
/**
|
|
807
|
-
* The first line of the contact's address.
|
|
808
|
-
*/
|
|
809
|
-
addressLine1: string;
|
|
810
|
-
|
|
811
|
-
companyName: string;
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
815
|
-
*/
|
|
816
|
-
countryCode: string;
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Second line of the contact's address, if applicable.
|
|
820
|
-
*/
|
|
821
|
-
addressLine2?: string;
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* The city of the contact's address.
|
|
825
|
-
*/
|
|
826
|
-
city?: string;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
830
|
-
* dashboard.
|
|
831
|
-
*/
|
|
832
|
-
description?: string;
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* Email of the contact.
|
|
836
|
-
*/
|
|
837
|
-
email?: string;
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* First name of the contact.
|
|
841
|
-
*/
|
|
842
|
-
firstName?: string;
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
846
|
-
* `verified` even if our address verification system says otherwise.
|
|
847
|
-
*/
|
|
848
|
-
forceVerifiedStatus?: boolean;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Job title of the contact.
|
|
852
|
-
*/
|
|
853
|
-
jobTitle?: string;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* Last name of the contact.
|
|
857
|
-
*/
|
|
858
|
-
lastName?: string;
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* See the section on Metadata.
|
|
862
|
-
*/
|
|
863
|
-
metadata?: { [key: string]: unknown };
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* Phone number of the contact.
|
|
867
|
-
*/
|
|
868
|
-
phoneNumber?: string;
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* The postal or ZIP code of the contact's address.
|
|
872
|
-
*/
|
|
873
|
-
postalOrZip?: string;
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* Province or state of the contact's address.
|
|
877
|
-
*/
|
|
878
|
-
provinceOrState?: string;
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
882
|
-
* verification system.
|
|
883
|
-
*/
|
|
884
|
-
skipVerification?: boolean;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
export interface ContactCreateWithFirstName {
|
|
888
|
-
/**
|
|
889
|
-
* The first line of the contact's address.
|
|
890
|
-
*/
|
|
891
|
-
addressLine1: string;
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
895
|
-
*/
|
|
896
|
-
countryCode: string;
|
|
897
|
-
|
|
898
|
-
firstName: string;
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Second line of the contact's address, if applicable.
|
|
902
|
-
*/
|
|
903
|
-
addressLine2?: string;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* The city of the contact's address.
|
|
907
|
-
*/
|
|
908
|
-
city?: string;
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Company name of the contact.
|
|
912
|
-
*/
|
|
913
|
-
companyName?: string;
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
917
|
-
* dashboard.
|
|
918
|
-
*/
|
|
919
|
-
description?: string;
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
* Email of the contact.
|
|
923
|
-
*/
|
|
924
|
-
email?: string;
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
928
|
-
* `verified` even if our address verification system says otherwise.
|
|
929
|
-
*/
|
|
930
|
-
forceVerifiedStatus?: boolean;
|
|
931
|
-
|
|
932
|
-
/**
|
|
933
|
-
* Job title of the contact.
|
|
934
|
-
*/
|
|
935
|
-
jobTitle?: string;
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* Last name of the contact.
|
|
939
|
-
*/
|
|
940
|
-
lastName?: string;
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* See the section on Metadata.
|
|
944
|
-
*/
|
|
945
|
-
metadata?: { [key: string]: unknown };
|
|
946
|
-
|
|
947
|
-
/**
|
|
948
|
-
* Phone number of the contact.
|
|
949
|
-
*/
|
|
950
|
-
phoneNumber?: string;
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* The postal or ZIP code of the contact's address.
|
|
954
|
-
*/
|
|
955
|
-
postalOrZip?: string;
|
|
956
|
-
|
|
957
|
-
/**
|
|
958
|
-
* Province or state of the contact's address.
|
|
959
|
-
*/
|
|
960
|
-
provinceOrState?: string;
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
964
|
-
* verification system.
|
|
965
|
-
*/
|
|
966
|
-
skipVerification?: boolean;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export interface ContactCreateWithCompanyName {
|
|
970
|
-
/**
|
|
971
|
-
* The first line of the contact's address.
|
|
972
|
-
*/
|
|
973
|
-
addressLine1: string;
|
|
974
|
-
|
|
975
|
-
companyName: string;
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* The ISO 3611-1 country code of the contact's address.
|
|
979
|
-
*/
|
|
980
|
-
countryCode: string;
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Second line of the contact's address, if applicable.
|
|
984
|
-
*/
|
|
985
|
-
addressLine2?: string;
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* The city of the contact's address.
|
|
989
|
-
*/
|
|
990
|
-
city?: string;
|
|
991
|
-
|
|
992
|
-
/**
|
|
993
|
-
* An optional string describing this resource. Will be visible in the API and the
|
|
994
|
-
* dashboard.
|
|
995
|
-
*/
|
|
996
|
-
description?: string;
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Email of the contact.
|
|
1000
|
-
*/
|
|
1001
|
-
email?: string;
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* First name of the contact.
|
|
1005
|
-
*/
|
|
1006
|
-
firstName?: string;
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* If `true`, PostGrid will force this contact to have an `addressStatus` of
|
|
1010
|
-
* `verified` even if our address verification system says otherwise.
|
|
1011
|
-
*/
|
|
1012
|
-
forceVerifiedStatus?: boolean;
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* Job title of the contact.
|
|
1016
|
-
*/
|
|
1017
|
-
jobTitle?: string;
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* Last name of the contact.
|
|
1021
|
-
*/
|
|
1022
|
-
lastName?: string;
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* See the section on Metadata.
|
|
1026
|
-
*/
|
|
1027
|
-
metadata?: { [key: string]: unknown };
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Phone number of the contact.
|
|
1031
|
-
*/
|
|
1032
|
-
phoneNumber?: string;
|
|
1033
|
-
|
|
1034
|
-
/**
|
|
1035
|
-
* The postal or ZIP code of the contact's address.
|
|
1036
|
-
*/
|
|
1037
|
-
postalOrZip?: string;
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Province or state of the contact's address.
|
|
1041
|
-
*/
|
|
1042
|
-
provinceOrState?: string;
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* If `true`, PostGrid will skip running this contact's address through our address
|
|
1046
|
-
* verification system.
|
|
1047
|
-
*/
|
|
1048
|
-
skipVerification?: boolean;
|
|
385
|
+
to: PrintMailAPI.ContactCreateWithFirstName | PrintMailAPI.ContactCreateWithCompanyName | string;
|
|
1049
386
|
}
|
|
1050
387
|
}
|
|
1051
388
|
|
|
1052
|
-
export interface BoxListParams {
|
|
1053
|
-
limit?: number;
|
|
1054
|
-
|
|
389
|
+
export interface BoxListParams extends SkipLimitParams {
|
|
1055
390
|
/**
|
|
1056
391
|
* You can supply any string to help narrow down the list of resources. For
|
|
1057
392
|
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
@@ -1060,8 +395,6 @@ export interface BoxListParams {
|
|
|
1060
395
|
* more details.
|
|
1061
396
|
*/
|
|
1062
397
|
search?: string;
|
|
1063
|
-
|
|
1064
|
-
skip?: number;
|
|
1065
398
|
}
|
|
1066
399
|
|
|
1067
400
|
export declare namespace Boxes {
|
|
@@ -1072,7 +405,7 @@ export declare namespace Boxes {
|
|
|
1072
405
|
type OrderImbStatus as OrderImbStatus,
|
|
1073
406
|
type OrderMailingClass as OrderMailingClass,
|
|
1074
407
|
type OrderStatus as OrderStatus,
|
|
1075
|
-
type
|
|
408
|
+
type BoxesSkipLimit as BoxesSkipLimit,
|
|
1076
409
|
type BoxCreateParams as BoxCreateParams,
|
|
1077
410
|
type BoxListParams as BoxListParams,
|
|
1078
411
|
};
|