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
|
@@ -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
|
-
*
|
|
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):
|
|
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 =
|
|
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
|
|
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
|
|
1
|
+
{"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE;OAChD,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;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,OAAO,CAAC;IAI1C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,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C,KAAK,iBAAiB,IAAI,iBAAiB,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
|
-
*
|
|
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):
|
|
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 =
|
|
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
|
|
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,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
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE;OAChD,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;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,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AAK,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
|
-
*
|
|
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.
|
|
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
|
|
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
|
-
*
|
|
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.
|
|
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
|
|
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
|
|
2
|
-
export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type
|
|
3
|
-
export { Campaigns, type Campaign, type
|
|
4
|
-
export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type
|
|
5
|
-
export { Contacts, type Contact, type ContactCreate, type
|
|
6
|
-
export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type
|
|
7
|
-
export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type
|
|
8
|
-
export { MailingLists, type MailingList, type MailingListUpdate, type
|
|
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
|
|
11
|
-
export { PrintMail } from "./print-mail.mjs";
|
|
12
|
-
export { Reports, type DeletedResponse, type Report, type
|
|
13
|
-
export { SelfMailers, type SelfMailer, type
|
|
14
|
-
export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type
|
|
15
|
-
export { Templates, type Template, type
|
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"m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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
|
|
2
|
-
export { Boxes, type Box, type BoxChequeBase, type Cancellation, type OrderImbStatus, type OrderMailingClass, type OrderStatus, type
|
|
3
|
-
export { Campaigns, type Campaign, type
|
|
4
|
-
export { Cheques, type Cheque, type ChequeSize, type DigitalOnly, type
|
|
5
|
-
export { Contacts, type Contact, type ContactCreate, type
|
|
6
|
-
export { Letters, type AddressPlacement, type AttachedPdf, type Letter, type LetterSize, type PlasticCard, type
|
|
7
|
-
export { MailingListImports, type FileType, type MailingListImportResponse, type VerificationStatusCount, type
|
|
8
|
-
export { MailingLists, type MailingList, type MailingListUpdate, type
|
|
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
|
|
11
|
-
export { PrintMail } from "./print-mail.js";
|
|
12
|
-
export { Reports, type DeletedResponse, type Report, type
|
|
13
|
-
export { SelfMailers, type SelfMailer, type
|
|
14
|
-
export { SubOrganizations, type EmailPreferences, type SubOrganization, type SubOrganizationUpdateResponse, type
|
|
15
|
-
export { Templates, type Template, type
|
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/print-mail/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,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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 +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,
|
|
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,
|
|
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"}
|