postgrid-node 0.1.0-alpha.3 → 0.1.0-alpha.5
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 +56 -0
- package/README.md +25 -39
- package/core.d.ts +7 -4
- package/core.d.ts.map +1 -1
- package/core.js +16 -9
- package/core.js.map +1 -1
- package/core.mjs +16 -9
- package/core.mjs.map +1 -1
- package/index.d.mts +21 -8
- package/index.d.ts +21 -8
- package/index.d.ts.map +1 -1
- package/index.js +28 -5
- package/index.js.map +1 -1
- package/index.mjs +28 -5
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +4 -5
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.js +2 -1
- package/pagination.js.map +1 -1
- package/pagination.mjs +2 -1
- package/pagination.mjs.map +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/bank-accounts.d.ts +61 -4
- package/resources/bank-accounts.d.ts.map +1 -1
- package/resources/bank-accounts.js +25 -0
- package/resources/bank-accounts.js.map +1 -1
- package/resources/bank-accounts.mjs +25 -0
- package/resources/bank-accounts.mjs.map +1 -1
- package/resources/boxes.d.ts +80 -15
- package/resources/boxes.d.ts.map +1 -1
- package/resources/boxes.js +27 -0
- package/resources/boxes.js.map +1 -1
- package/resources/boxes.mjs +27 -0
- package/resources/boxes.mjs.map +1 -1
- package/resources/campaigns.d.ts +21 -7
- package/resources/campaigns.d.ts.map +1 -1
- package/resources/cheques/cheques.d.ts +43 -4
- package/resources/cheques/cheques.d.ts.map +1 -1
- package/resources/cheques/cheques.js +23 -0
- package/resources/cheques/cheques.js.map +1 -1
- package/resources/cheques/cheques.mjs +23 -0
- package/resources/cheques/cheques.mjs.map +1 -1
- package/resources/cheques/url.d.ts +5 -0
- package/resources/cheques/url.d.ts.map +1 -1
- package/resources/cheques/url.js +5 -0
- package/resources/cheques/url.js.map +1 -1
- package/resources/cheques/url.mjs +5 -0
- package/resources/cheques/url.mjs.map +1 -1
- package/resources/cheques/with-deposit-ready-pdf.d.ts +6 -0
- package/resources/cheques/with-deposit-ready-pdf.d.ts.map +1 -1
- package/resources/cheques/with-deposit-ready-pdf.js +6 -0
- package/resources/cheques/with-deposit-ready-pdf.js.map +1 -1
- package/resources/cheques/with-deposit-ready-pdf.mjs +6 -0
- package/resources/cheques/with-deposit-ready-pdf.mjs.map +1 -1
- package/resources/contacts.d.ts +37 -3
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +20 -0
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +20 -0
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.ts +5 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +12 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/letters.d.ts +50 -6
- package/resources/letters.d.ts.map +1 -1
- package/resources/letters.js +24 -0
- package/resources/letters.js.map +1 -1
- package/resources/letters.mjs +24 -0
- package/resources/letters.mjs.map +1 -1
- package/resources/mailing-list-imports.d.ts +919 -0
- package/resources/mailing-list-imports.d.ts.map +1 -0
- package/resources/mailing-list-imports.js +95 -0
- package/resources/mailing-list-imports.js.map +1 -0
- package/resources/mailing-list-imports.mjs +90 -0
- package/resources/mailing-list-imports.mjs.map +1 -0
- package/resources/mailing-lists.d.ts +398 -0
- package/resources/mailing-lists.d.ts.map +1 -0
- package/resources/mailing-lists.js +101 -0
- package/resources/mailing-lists.js.map +1 -0
- package/resources/mailing-lists.mjs +96 -0
- package/resources/mailing-lists.mjs.map +1 -0
- package/resources/order-profiles/cheques.d.ts +588 -0
- package/resources/order-profiles/cheques.d.ts.map +1 -0
- package/resources/order-profiles/cheques.js +74 -0
- package/resources/order-profiles/cheques.js.map +1 -0
- package/resources/order-profiles/cheques.mjs +69 -0
- package/resources/order-profiles/cheques.mjs.map +1 -0
- package/resources/order-profiles/index.d.ts +6 -0
- package/resources/order-profiles/index.d.ts.map +1 -0
- package/resources/order-profiles/index.js +19 -0
- package/resources/order-profiles/index.js.map +1 -0
- package/resources/order-profiles/index.mjs +7 -0
- package/resources/order-profiles/index.mjs.map +1 -0
- package/resources/order-profiles/letters.d.ts +647 -0
- package/resources/order-profiles/letters.d.ts.map +1 -0
- package/resources/order-profiles/letters.js +80 -0
- package/resources/order-profiles/letters.js.map +1 -0
- package/resources/order-profiles/letters.mjs +75 -0
- package/resources/order-profiles/letters.mjs.map +1 -0
- package/resources/order-profiles/order-profiles.d.ts +22 -0
- package/resources/order-profiles/order-profiles.d.ts.map +1 -0
- package/resources/order-profiles/order-profiles.js +55 -0
- package/resources/order-profiles/order-profiles.js.map +1 -0
- package/resources/order-profiles/order-profiles.mjs +28 -0
- package/resources/order-profiles/order-profiles.mjs.map +1 -0
- package/resources/order-profiles/postcards.d.ts +423 -0
- package/resources/order-profiles/postcards.d.ts.map +1 -0
- package/resources/order-profiles/postcards.js +73 -0
- package/resources/order-profiles/postcards.js.map +1 -0
- package/resources/order-profiles/postcards.mjs +68 -0
- package/resources/order-profiles/postcards.mjs.map +1 -0
- package/resources/order-profiles/self-mailers.d.ts +435 -0
- package/resources/order-profiles/self-mailers.d.ts.map +1 -0
- package/resources/order-profiles/self-mailers.js +75 -0
- package/resources/order-profiles/self-mailers.js.map +1 -0
- package/resources/order-profiles/self-mailers.mjs +70 -0
- package/resources/order-profiles/self-mailers.mjs.map +1 -0
- package/resources/order-profiles.d.ts +2 -0
- package/resources/order-profiles.d.ts.map +1 -0
- package/resources/order-profiles.js +19 -0
- package/resources/order-profiles.js.map +1 -0
- package/resources/order-profiles.mjs +3 -0
- package/resources/order-profiles.mjs.map +1 -0
- package/resources/postcards.d.ts +58 -8
- package/resources/postcards.d.ts.map +1 -1
- package/resources/postcards.js +26 -0
- package/resources/postcards.js.map +1 -1
- package/resources/postcards.mjs +26 -0
- package/resources/postcards.mjs.map +1 -1
- package/resources/reports/exports.d.ts +36 -3
- package/resources/reports/exports.d.ts.map +1 -1
- package/resources/reports/exports.js +27 -0
- package/resources/reports/exports.js.map +1 -1
- package/resources/reports/exports.mjs +27 -0
- package/resources/reports/exports.mjs.map +1 -1
- package/resources/reports/reports.d.ts +76 -8
- package/resources/reports/reports.d.ts.map +1 -1
- package/resources/reports/reports.js +44 -0
- package/resources/reports/reports.js.map +1 -1
- package/resources/reports/reports.mjs +44 -0
- package/resources/reports/reports.mjs.map +1 -1
- package/resources/self-mailers.d.ts +99 -15
- package/resources/self-mailers.d.ts.map +1 -1
- package/resources/self-mailers.js +38 -0
- package/resources/self-mailers.js.map +1 -1
- package/resources/self-mailers.mjs +38 -0
- package/resources/self-mailers.mjs.map +1 -1
- package/resources/shared.d.ts +6 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/sub-organizations.d.ts +394 -0
- package/resources/sub-organizations.d.ts.map +1 -0
- package/resources/sub-organizations.js +63 -0
- package/resources/sub-organizations.js.map +1 -0
- package/resources/sub-organizations.mjs +58 -0
- package/resources/sub-organizations.mjs.map +1 -0
- package/resources/templates.d.ts +43 -3
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +26 -0
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +26 -0
- package/resources/templates.mjs.map +1 -1
- package/src/core.ts +17 -8
- package/src/index.ts +112 -11
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/pagination.ts +6 -1
- package/src/resource.ts +1 -1
- package/src/resources/bank-accounts.ts +57 -4
- package/src/resources/boxes.ts +50 -15
- package/src/resources/campaigns.ts +7 -7
- package/src/resources/cheques/cheques.ts +35 -4
- package/src/resources/cheques/url.ts +5 -0
- package/src/resources/cheques/with-deposit-ready-pdf.ts +6 -0
- package/src/resources/contacts.ts +31 -3
- package/src/resources/index.ts +39 -0
- package/src/resources/letters.ts +38 -6
- package/src/resources/mailing-list-imports.ts +1076 -0
- package/src/resources/mailing-lists.ts +511 -0
- package/src/resources/order-profiles/cheques.ts +888 -0
- package/src/resources/order-profiles/index.ts +55 -0
- package/src/resources/order-profiles/letters.ts +956 -0
- package/src/resources/order-profiles/order-profiles.ts +133 -0
- package/src/resources/order-profiles/postcards.ts +694 -0
- package/src/resources/order-profiles/self-mailers.ts +707 -0
- package/src/resources/order-profiles.ts +3 -0
- package/src/resources/postcards.ts +42 -8
- package/src/resources/reports/exports.ts +30 -3
- package/src/resources/reports/reports.ts +60 -8
- package/src/resources/self-mailers.ts +80 -14
- package/src/resources/shared.ts +2 -2
- package/src/resources/sub-organizations.ts +518 -0
- package/src/resources/templates.ts +37 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
import { List, type ListParams } from "../pagination.js";
|
|
4
|
+
export declare class MailingListImports extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new mailing list import.
|
|
7
|
+
*
|
|
8
|
+
* Initiates the import process for a contact list file. The import enters the
|
|
9
|
+
* `validating` status while contacts are processed and verified.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const mailingListImport =
|
|
14
|
+
* await client.mailingListImports.create({
|
|
15
|
+
* file: 'https://signed-upload-url.csv',
|
|
16
|
+
* fileType: 'csv',
|
|
17
|
+
* receiverAddressMapping: {
|
|
18
|
+
* description: 'Description',
|
|
19
|
+
* firstName: 'First Name',
|
|
20
|
+
* lastName: 'Last Name',
|
|
21
|
+
* email: 'Email',
|
|
22
|
+
* addressLine1: 'Address',
|
|
23
|
+
* city: 'City',
|
|
24
|
+
* postalOrZip: 'Postal Code',
|
|
25
|
+
* provinceOrState: 'State',
|
|
26
|
+
* countryCode: 'Country',
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body: MailingListImportCreateParams, options?: Core.RequestOptions): Core.APIPromise<MailingListImportCreateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a specific mailing list import by its ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const mailingListImport =
|
|
38
|
+
* await client.mailingListImports.retrieve('id');
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<MailingListImportRetrieveResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Update an existing mailing list import.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const mailingListImport =
|
|
48
|
+
* await client.mailingListImports.update('id', {
|
|
49
|
+
* description: 'Corrected description',
|
|
50
|
+
* metadata: { batch: 'spring_sale' },
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
update(id: string, body: MailingListImportUpdateParams, options?: Core.RequestOptions): Core.APIPromise<MailingListImportUpdateResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieve a list of mailing list imports.
|
|
57
|
+
*
|
|
58
|
+
* Returns a paginated list of imports associated with the authenticated
|
|
59
|
+
* organization, filterable by various parameters.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* // Automatically fetches more pages as needed.
|
|
64
|
+
* for await (const mailingListImportListResponse of client.mailingListImports.list()) {
|
|
65
|
+
* // ...
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
list(query?: MailingListImportListParams, options?: Core.RequestOptions): Core.PagePromise<MailingListImportListResponsesList, MailingListImportListResponse>;
|
|
70
|
+
list(options?: Core.RequestOptions): Core.PagePromise<MailingListImportListResponsesList, MailingListImportListResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Delete a mailing list import.
|
|
73
|
+
*
|
|
74
|
+
* This permanently deletes the import and its associated resources. This operation
|
|
75
|
+
* cannot be undone.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const mailingListImport =
|
|
80
|
+
* await client.mailingListImports.delete('id');
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
delete(id: string, options?: Core.RequestOptions): Core.APIPromise<MailingListImportDeleteResponse>;
|
|
84
|
+
}
|
|
85
|
+
export declare class MailingListImportListResponsesList extends List<MailingListImportListResponse> {
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Read-only view of a MailingListImport
|
|
89
|
+
*/
|
|
90
|
+
export interface MailingListImportCreateResponse {
|
|
91
|
+
/**
|
|
92
|
+
* A unique ID prefixed with mailing*list_import*
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* The UTC time at which this resource was created.
|
|
97
|
+
*/
|
|
98
|
+
createdAt: string;
|
|
99
|
+
/**
|
|
100
|
+
* A list of processing errors encountered, if any. Present when status is
|
|
101
|
+
* 'changes_required'.
|
|
102
|
+
*/
|
|
103
|
+
errors: Array<MailingListImportCreateResponse.Error>;
|
|
104
|
+
/**
|
|
105
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
106
|
+
*/
|
|
107
|
+
file: MailingListImportCreateResponse.File;
|
|
108
|
+
/**
|
|
109
|
+
* Number of invalid rows found in the file.
|
|
110
|
+
*/
|
|
111
|
+
invalidRowCount: number;
|
|
112
|
+
/**
|
|
113
|
+
* `true` if this is a live mode resource else `false`.
|
|
114
|
+
*/
|
|
115
|
+
live: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Additional notes about the import process.
|
|
118
|
+
*/
|
|
119
|
+
notes: Array<MailingListImportCreateResponse.Note>;
|
|
120
|
+
/**
|
|
121
|
+
* The organization that owns this import.
|
|
122
|
+
*/
|
|
123
|
+
organization: string;
|
|
124
|
+
/**
|
|
125
|
+
* Count of contact verification statuses.
|
|
126
|
+
*/
|
|
127
|
+
receiverStatusCount: MailingListImportCreateResponse.ReceiverStatusCount;
|
|
128
|
+
/**
|
|
129
|
+
* Status of the mailing list import process.
|
|
130
|
+
*/
|
|
131
|
+
status: 'validating' | 'completed' | 'changes_required';
|
|
132
|
+
/**
|
|
133
|
+
* The UTC time at which this resource was last updated.
|
|
134
|
+
*/
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
/**
|
|
137
|
+
* Number of valid rows processed from the file.
|
|
138
|
+
*/
|
|
139
|
+
validRowCount: number;
|
|
140
|
+
/**
|
|
141
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
142
|
+
* dashboard.
|
|
143
|
+
*/
|
|
144
|
+
description?: string;
|
|
145
|
+
/**
|
|
146
|
+
* See the section on Metadata.
|
|
147
|
+
*/
|
|
148
|
+
metadata?: {
|
|
149
|
+
[key: string]: unknown;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* A temporary URL to download the processing report, available once the import is
|
|
153
|
+
* completed.
|
|
154
|
+
*/
|
|
155
|
+
reportURL?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Count of contact verification statuses.
|
|
158
|
+
*/
|
|
159
|
+
senderStatusCount?: MailingListImportCreateResponse.SenderStatusCount;
|
|
160
|
+
}
|
|
161
|
+
export declare namespace MailingListImportCreateResponse {
|
|
162
|
+
/**
|
|
163
|
+
* Details of a specific error encountered during import processing.
|
|
164
|
+
*/
|
|
165
|
+
interface Error {
|
|
166
|
+
/**
|
|
167
|
+
* A human-readable message describing the error.
|
|
168
|
+
*/
|
|
169
|
+
message: string;
|
|
170
|
+
/**
|
|
171
|
+
* Type of error encountered during import processing.
|
|
172
|
+
*/
|
|
173
|
+
type: 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
177
|
+
*/
|
|
178
|
+
interface File {
|
|
179
|
+
/**
|
|
180
|
+
* Type of file supported for mailing list imports.
|
|
181
|
+
*/
|
|
182
|
+
fileType: 'csv';
|
|
183
|
+
/**
|
|
184
|
+
* Mapping of columns for receiver addresses. Contact fields to file columns.
|
|
185
|
+
* Possible Contact fields:
|
|
186
|
+
*
|
|
187
|
+
* - description
|
|
188
|
+
* - firstName
|
|
189
|
+
* - lastName
|
|
190
|
+
* - email
|
|
191
|
+
* - phoneNumber
|
|
192
|
+
* - companyName
|
|
193
|
+
* - addressLine1
|
|
194
|
+
* - addressLine2
|
|
195
|
+
* - jobTitle
|
|
196
|
+
* - city
|
|
197
|
+
* - postalOrZip
|
|
198
|
+
* - provinceOrState
|
|
199
|
+
* - countryCode
|
|
200
|
+
*/
|
|
201
|
+
receiverAddressMapping: {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* The signed URL your controller generates.
|
|
206
|
+
*/
|
|
207
|
+
url: string;
|
|
208
|
+
/**
|
|
209
|
+
* Optional mapping of columns for receiver merge variables.
|
|
210
|
+
*/
|
|
211
|
+
receiverMergeVariableMapping?: {
|
|
212
|
+
[key: string]: string;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Optional mapping of columns for sender addresses.
|
|
216
|
+
*/
|
|
217
|
+
senderAddressMapping?: {
|
|
218
|
+
[key: string]: string;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Optional mapping of columns for sender merge variables.
|
|
222
|
+
*/
|
|
223
|
+
senderMergeVariableMapping?: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Details about a note in the import process.
|
|
229
|
+
*/
|
|
230
|
+
interface Note {
|
|
231
|
+
/**
|
|
232
|
+
* A human-readable message describing the note.
|
|
233
|
+
*/
|
|
234
|
+
message: string;
|
|
235
|
+
/**
|
|
236
|
+
* Type of note attached to the import process.
|
|
237
|
+
*/
|
|
238
|
+
type: 'truncated_test_file' | 'skipped_invalid_contacts';
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Count of contact verification statuses.
|
|
242
|
+
*/
|
|
243
|
+
interface ReceiverStatusCount {
|
|
244
|
+
/**
|
|
245
|
+
* Number of contacts that were corrected during verification.
|
|
246
|
+
*/
|
|
247
|
+
correctedCount: number;
|
|
248
|
+
/**
|
|
249
|
+
* Number of contacts that failed verification.
|
|
250
|
+
*/
|
|
251
|
+
failedCount: number;
|
|
252
|
+
/**
|
|
253
|
+
* Number of contacts that were verified without changes.
|
|
254
|
+
*/
|
|
255
|
+
verifiedCount: number;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Count of contact verification statuses.
|
|
259
|
+
*/
|
|
260
|
+
interface SenderStatusCount {
|
|
261
|
+
/**
|
|
262
|
+
* Number of contacts that were corrected during verification.
|
|
263
|
+
*/
|
|
264
|
+
correctedCount: number;
|
|
265
|
+
/**
|
|
266
|
+
* Number of contacts that failed verification.
|
|
267
|
+
*/
|
|
268
|
+
failedCount: number;
|
|
269
|
+
/**
|
|
270
|
+
* Number of contacts that were verified without changes.
|
|
271
|
+
*/
|
|
272
|
+
verifiedCount: number;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Read-only view of a MailingListImport
|
|
277
|
+
*/
|
|
278
|
+
export interface MailingListImportRetrieveResponse {
|
|
279
|
+
/**
|
|
280
|
+
* A unique ID prefixed with mailing*list_import*
|
|
281
|
+
*/
|
|
282
|
+
id: string;
|
|
283
|
+
/**
|
|
284
|
+
* The UTC time at which this resource was created.
|
|
285
|
+
*/
|
|
286
|
+
createdAt: string;
|
|
287
|
+
/**
|
|
288
|
+
* A list of processing errors encountered, if any. Present when status is
|
|
289
|
+
* 'changes_required'.
|
|
290
|
+
*/
|
|
291
|
+
errors: Array<MailingListImportRetrieveResponse.Error>;
|
|
292
|
+
/**
|
|
293
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
294
|
+
*/
|
|
295
|
+
file: MailingListImportRetrieveResponse.File;
|
|
296
|
+
/**
|
|
297
|
+
* Number of invalid rows found in the file.
|
|
298
|
+
*/
|
|
299
|
+
invalidRowCount: number;
|
|
300
|
+
/**
|
|
301
|
+
* `true` if this is a live mode resource else `false`.
|
|
302
|
+
*/
|
|
303
|
+
live: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Additional notes about the import process.
|
|
306
|
+
*/
|
|
307
|
+
notes: Array<MailingListImportRetrieveResponse.Note>;
|
|
308
|
+
/**
|
|
309
|
+
* The organization that owns this import.
|
|
310
|
+
*/
|
|
311
|
+
organization: string;
|
|
312
|
+
/**
|
|
313
|
+
* Count of contact verification statuses.
|
|
314
|
+
*/
|
|
315
|
+
receiverStatusCount: MailingListImportRetrieveResponse.ReceiverStatusCount;
|
|
316
|
+
/**
|
|
317
|
+
* Status of the mailing list import process.
|
|
318
|
+
*/
|
|
319
|
+
status: 'validating' | 'completed' | 'changes_required';
|
|
320
|
+
/**
|
|
321
|
+
* The UTC time at which this resource was last updated.
|
|
322
|
+
*/
|
|
323
|
+
updatedAt: string;
|
|
324
|
+
/**
|
|
325
|
+
* Number of valid rows processed from the file.
|
|
326
|
+
*/
|
|
327
|
+
validRowCount: number;
|
|
328
|
+
/**
|
|
329
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
330
|
+
* dashboard.
|
|
331
|
+
*/
|
|
332
|
+
description?: string;
|
|
333
|
+
/**
|
|
334
|
+
* See the section on Metadata.
|
|
335
|
+
*/
|
|
336
|
+
metadata?: {
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* A temporary URL to download the processing report, available once the import is
|
|
341
|
+
* completed.
|
|
342
|
+
*/
|
|
343
|
+
reportURL?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Count of contact verification statuses.
|
|
346
|
+
*/
|
|
347
|
+
senderStatusCount?: MailingListImportRetrieveResponse.SenderStatusCount;
|
|
348
|
+
}
|
|
349
|
+
export declare namespace MailingListImportRetrieveResponse {
|
|
350
|
+
/**
|
|
351
|
+
* Details of a specific error encountered during import processing.
|
|
352
|
+
*/
|
|
353
|
+
interface Error {
|
|
354
|
+
/**
|
|
355
|
+
* A human-readable message describing the error.
|
|
356
|
+
*/
|
|
357
|
+
message: string;
|
|
358
|
+
/**
|
|
359
|
+
* Type of error encountered during import processing.
|
|
360
|
+
*/
|
|
361
|
+
type: 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error';
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
365
|
+
*/
|
|
366
|
+
interface File {
|
|
367
|
+
/**
|
|
368
|
+
* Type of file supported for mailing list imports.
|
|
369
|
+
*/
|
|
370
|
+
fileType: 'csv';
|
|
371
|
+
/**
|
|
372
|
+
* Mapping of columns for receiver addresses. Contact fields to file columns.
|
|
373
|
+
* Possible Contact fields:
|
|
374
|
+
*
|
|
375
|
+
* - description
|
|
376
|
+
* - firstName
|
|
377
|
+
* - lastName
|
|
378
|
+
* - email
|
|
379
|
+
* - phoneNumber
|
|
380
|
+
* - companyName
|
|
381
|
+
* - addressLine1
|
|
382
|
+
* - addressLine2
|
|
383
|
+
* - jobTitle
|
|
384
|
+
* - city
|
|
385
|
+
* - postalOrZip
|
|
386
|
+
* - provinceOrState
|
|
387
|
+
* - countryCode
|
|
388
|
+
*/
|
|
389
|
+
receiverAddressMapping: {
|
|
390
|
+
[key: string]: string;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* The signed URL your controller generates.
|
|
394
|
+
*/
|
|
395
|
+
url: string;
|
|
396
|
+
/**
|
|
397
|
+
* Optional mapping of columns for receiver merge variables.
|
|
398
|
+
*/
|
|
399
|
+
receiverMergeVariableMapping?: {
|
|
400
|
+
[key: string]: string;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Optional mapping of columns for sender addresses.
|
|
404
|
+
*/
|
|
405
|
+
senderAddressMapping?: {
|
|
406
|
+
[key: string]: string;
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* Optional mapping of columns for sender merge variables.
|
|
410
|
+
*/
|
|
411
|
+
senderMergeVariableMapping?: {
|
|
412
|
+
[key: string]: string;
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Details about a note in the import process.
|
|
417
|
+
*/
|
|
418
|
+
interface Note {
|
|
419
|
+
/**
|
|
420
|
+
* A human-readable message describing the note.
|
|
421
|
+
*/
|
|
422
|
+
message: string;
|
|
423
|
+
/**
|
|
424
|
+
* Type of note attached to the import process.
|
|
425
|
+
*/
|
|
426
|
+
type: 'truncated_test_file' | 'skipped_invalid_contacts';
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Count of contact verification statuses.
|
|
430
|
+
*/
|
|
431
|
+
interface ReceiverStatusCount {
|
|
432
|
+
/**
|
|
433
|
+
* Number of contacts that were corrected during verification.
|
|
434
|
+
*/
|
|
435
|
+
correctedCount: number;
|
|
436
|
+
/**
|
|
437
|
+
* Number of contacts that failed verification.
|
|
438
|
+
*/
|
|
439
|
+
failedCount: number;
|
|
440
|
+
/**
|
|
441
|
+
* Number of contacts that were verified without changes.
|
|
442
|
+
*/
|
|
443
|
+
verifiedCount: number;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Count of contact verification statuses.
|
|
447
|
+
*/
|
|
448
|
+
interface SenderStatusCount {
|
|
449
|
+
/**
|
|
450
|
+
* Number of contacts that were corrected during verification.
|
|
451
|
+
*/
|
|
452
|
+
correctedCount: number;
|
|
453
|
+
/**
|
|
454
|
+
* Number of contacts that failed verification.
|
|
455
|
+
*/
|
|
456
|
+
failedCount: number;
|
|
457
|
+
/**
|
|
458
|
+
* Number of contacts that were verified without changes.
|
|
459
|
+
*/
|
|
460
|
+
verifiedCount: number;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Read-only view of a MailingListImport
|
|
465
|
+
*/
|
|
466
|
+
export interface MailingListImportUpdateResponse {
|
|
467
|
+
/**
|
|
468
|
+
* A unique ID prefixed with mailing*list_import*
|
|
469
|
+
*/
|
|
470
|
+
id: string;
|
|
471
|
+
/**
|
|
472
|
+
* The UTC time at which this resource was created.
|
|
473
|
+
*/
|
|
474
|
+
createdAt: string;
|
|
475
|
+
/**
|
|
476
|
+
* A list of processing errors encountered, if any. Present when status is
|
|
477
|
+
* 'changes_required'.
|
|
478
|
+
*/
|
|
479
|
+
errors: Array<MailingListImportUpdateResponse.Error>;
|
|
480
|
+
/**
|
|
481
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
482
|
+
*/
|
|
483
|
+
file: MailingListImportUpdateResponse.File;
|
|
484
|
+
/**
|
|
485
|
+
* Number of invalid rows found in the file.
|
|
486
|
+
*/
|
|
487
|
+
invalidRowCount: number;
|
|
488
|
+
/**
|
|
489
|
+
* `true` if this is a live mode resource else `false`.
|
|
490
|
+
*/
|
|
491
|
+
live: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Additional notes about the import process.
|
|
494
|
+
*/
|
|
495
|
+
notes: Array<MailingListImportUpdateResponse.Note>;
|
|
496
|
+
/**
|
|
497
|
+
* The organization that owns this import.
|
|
498
|
+
*/
|
|
499
|
+
organization: string;
|
|
500
|
+
/**
|
|
501
|
+
* Count of contact verification statuses.
|
|
502
|
+
*/
|
|
503
|
+
receiverStatusCount: MailingListImportUpdateResponse.ReceiverStatusCount;
|
|
504
|
+
/**
|
|
505
|
+
* Status of the mailing list import process.
|
|
506
|
+
*/
|
|
507
|
+
status: 'validating' | 'completed' | 'changes_required';
|
|
508
|
+
/**
|
|
509
|
+
* The UTC time at which this resource was last updated.
|
|
510
|
+
*/
|
|
511
|
+
updatedAt: string;
|
|
512
|
+
/**
|
|
513
|
+
* Number of valid rows processed from the file.
|
|
514
|
+
*/
|
|
515
|
+
validRowCount: number;
|
|
516
|
+
/**
|
|
517
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
518
|
+
* dashboard.
|
|
519
|
+
*/
|
|
520
|
+
description?: string;
|
|
521
|
+
/**
|
|
522
|
+
* See the section on Metadata.
|
|
523
|
+
*/
|
|
524
|
+
metadata?: {
|
|
525
|
+
[key: string]: unknown;
|
|
526
|
+
};
|
|
527
|
+
/**
|
|
528
|
+
* A temporary URL to download the processing report, available once the import is
|
|
529
|
+
* completed.
|
|
530
|
+
*/
|
|
531
|
+
reportURL?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Count of contact verification statuses.
|
|
534
|
+
*/
|
|
535
|
+
senderStatusCount?: MailingListImportUpdateResponse.SenderStatusCount;
|
|
536
|
+
}
|
|
537
|
+
export declare namespace MailingListImportUpdateResponse {
|
|
538
|
+
/**
|
|
539
|
+
* Details of a specific error encountered during import processing.
|
|
540
|
+
*/
|
|
541
|
+
interface Error {
|
|
542
|
+
/**
|
|
543
|
+
* A human-readable message describing the error.
|
|
544
|
+
*/
|
|
545
|
+
message: string;
|
|
546
|
+
/**
|
|
547
|
+
* Type of error encountered during import processing.
|
|
548
|
+
*/
|
|
549
|
+
type: 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error';
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
553
|
+
*/
|
|
554
|
+
interface File {
|
|
555
|
+
/**
|
|
556
|
+
* Type of file supported for mailing list imports.
|
|
557
|
+
*/
|
|
558
|
+
fileType: 'csv';
|
|
559
|
+
/**
|
|
560
|
+
* Mapping of columns for receiver addresses. Contact fields to file columns.
|
|
561
|
+
* Possible Contact fields:
|
|
562
|
+
*
|
|
563
|
+
* - description
|
|
564
|
+
* - firstName
|
|
565
|
+
* - lastName
|
|
566
|
+
* - email
|
|
567
|
+
* - phoneNumber
|
|
568
|
+
* - companyName
|
|
569
|
+
* - addressLine1
|
|
570
|
+
* - addressLine2
|
|
571
|
+
* - jobTitle
|
|
572
|
+
* - city
|
|
573
|
+
* - postalOrZip
|
|
574
|
+
* - provinceOrState
|
|
575
|
+
* - countryCode
|
|
576
|
+
*/
|
|
577
|
+
receiverAddressMapping: {
|
|
578
|
+
[key: string]: string;
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* The signed URL your controller generates.
|
|
582
|
+
*/
|
|
583
|
+
url: string;
|
|
584
|
+
/**
|
|
585
|
+
* Optional mapping of columns for receiver merge variables.
|
|
586
|
+
*/
|
|
587
|
+
receiverMergeVariableMapping?: {
|
|
588
|
+
[key: string]: string;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Optional mapping of columns for sender addresses.
|
|
592
|
+
*/
|
|
593
|
+
senderAddressMapping?: {
|
|
594
|
+
[key: string]: string;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Optional mapping of columns for sender merge variables.
|
|
598
|
+
*/
|
|
599
|
+
senderMergeVariableMapping?: {
|
|
600
|
+
[key: string]: string;
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Details about a note in the import process.
|
|
605
|
+
*/
|
|
606
|
+
interface Note {
|
|
607
|
+
/**
|
|
608
|
+
* A human-readable message describing the note.
|
|
609
|
+
*/
|
|
610
|
+
message: string;
|
|
611
|
+
/**
|
|
612
|
+
* Type of note attached to the import process.
|
|
613
|
+
*/
|
|
614
|
+
type: 'truncated_test_file' | 'skipped_invalid_contacts';
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Count of contact verification statuses.
|
|
618
|
+
*/
|
|
619
|
+
interface ReceiverStatusCount {
|
|
620
|
+
/**
|
|
621
|
+
* Number of contacts that were corrected during verification.
|
|
622
|
+
*/
|
|
623
|
+
correctedCount: number;
|
|
624
|
+
/**
|
|
625
|
+
* Number of contacts that failed verification.
|
|
626
|
+
*/
|
|
627
|
+
failedCount: number;
|
|
628
|
+
/**
|
|
629
|
+
* Number of contacts that were verified without changes.
|
|
630
|
+
*/
|
|
631
|
+
verifiedCount: number;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Count of contact verification statuses.
|
|
635
|
+
*/
|
|
636
|
+
interface SenderStatusCount {
|
|
637
|
+
/**
|
|
638
|
+
* Number of contacts that were corrected during verification.
|
|
639
|
+
*/
|
|
640
|
+
correctedCount: number;
|
|
641
|
+
/**
|
|
642
|
+
* Number of contacts that failed verification.
|
|
643
|
+
*/
|
|
644
|
+
failedCount: number;
|
|
645
|
+
/**
|
|
646
|
+
* Number of contacts that were verified without changes.
|
|
647
|
+
*/
|
|
648
|
+
verifiedCount: number;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Read-only view of a MailingListImport
|
|
653
|
+
*/
|
|
654
|
+
export interface MailingListImportListResponse {
|
|
655
|
+
/**
|
|
656
|
+
* A unique ID prefixed with mailing*list_import*
|
|
657
|
+
*/
|
|
658
|
+
id: string;
|
|
659
|
+
/**
|
|
660
|
+
* The UTC time at which this resource was created.
|
|
661
|
+
*/
|
|
662
|
+
createdAt: string;
|
|
663
|
+
/**
|
|
664
|
+
* A list of processing errors encountered, if any. Present when status is
|
|
665
|
+
* 'changes_required'.
|
|
666
|
+
*/
|
|
667
|
+
errors: Array<MailingListImportListResponse.Error>;
|
|
668
|
+
/**
|
|
669
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
670
|
+
*/
|
|
671
|
+
file: MailingListImportListResponse.File;
|
|
672
|
+
/**
|
|
673
|
+
* Number of invalid rows found in the file.
|
|
674
|
+
*/
|
|
675
|
+
invalidRowCount: number;
|
|
676
|
+
/**
|
|
677
|
+
* `true` if this is a live mode resource else `false`.
|
|
678
|
+
*/
|
|
679
|
+
live: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* Additional notes about the import process.
|
|
682
|
+
*/
|
|
683
|
+
notes: Array<MailingListImportListResponse.Note>;
|
|
684
|
+
/**
|
|
685
|
+
* The organization that owns this import.
|
|
686
|
+
*/
|
|
687
|
+
organization: string;
|
|
688
|
+
/**
|
|
689
|
+
* Count of contact verification statuses.
|
|
690
|
+
*/
|
|
691
|
+
receiverStatusCount: MailingListImportListResponse.ReceiverStatusCount;
|
|
692
|
+
/**
|
|
693
|
+
* Status of the mailing list import process.
|
|
694
|
+
*/
|
|
695
|
+
status: 'validating' | 'completed' | 'changes_required';
|
|
696
|
+
/**
|
|
697
|
+
* The UTC time at which this resource was last updated.
|
|
698
|
+
*/
|
|
699
|
+
updatedAt: string;
|
|
700
|
+
/**
|
|
701
|
+
* Number of valid rows processed from the file.
|
|
702
|
+
*/
|
|
703
|
+
validRowCount: number;
|
|
704
|
+
/**
|
|
705
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
706
|
+
* dashboard.
|
|
707
|
+
*/
|
|
708
|
+
description?: string;
|
|
709
|
+
/**
|
|
710
|
+
* See the section on Metadata.
|
|
711
|
+
*/
|
|
712
|
+
metadata?: {
|
|
713
|
+
[key: string]: unknown;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* A temporary URL to download the processing report, available once the import is
|
|
717
|
+
* completed.
|
|
718
|
+
*/
|
|
719
|
+
reportURL?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Count of contact verification statuses.
|
|
722
|
+
*/
|
|
723
|
+
senderStatusCount?: MailingListImportListResponse.SenderStatusCount;
|
|
724
|
+
}
|
|
725
|
+
export declare namespace MailingListImportListResponse {
|
|
726
|
+
/**
|
|
727
|
+
* Details of a specific error encountered during import processing.
|
|
728
|
+
*/
|
|
729
|
+
interface Error {
|
|
730
|
+
/**
|
|
731
|
+
* A human-readable message describing the error.
|
|
732
|
+
*/
|
|
733
|
+
message: string;
|
|
734
|
+
/**
|
|
735
|
+
* Type of error encountered during import processing.
|
|
736
|
+
*/
|
|
737
|
+
type: 'no_valid_contacts_error' | 'multiple_countries_error' | 'invalid_contact_count_error' | 'internal_service_error';
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* The file object your controller returns: all the mappings plus a signed URL.
|
|
741
|
+
*/
|
|
742
|
+
interface File {
|
|
743
|
+
/**
|
|
744
|
+
* Type of file supported for mailing list imports.
|
|
745
|
+
*/
|
|
746
|
+
fileType: 'csv';
|
|
747
|
+
/**
|
|
748
|
+
* Mapping of columns for receiver addresses. Contact fields to file columns.
|
|
749
|
+
* Possible Contact fields:
|
|
750
|
+
*
|
|
751
|
+
* - description
|
|
752
|
+
* - firstName
|
|
753
|
+
* - lastName
|
|
754
|
+
* - email
|
|
755
|
+
* - phoneNumber
|
|
756
|
+
* - companyName
|
|
757
|
+
* - addressLine1
|
|
758
|
+
* - addressLine2
|
|
759
|
+
* - jobTitle
|
|
760
|
+
* - city
|
|
761
|
+
* - postalOrZip
|
|
762
|
+
* - provinceOrState
|
|
763
|
+
* - countryCode
|
|
764
|
+
*/
|
|
765
|
+
receiverAddressMapping: {
|
|
766
|
+
[key: string]: string;
|
|
767
|
+
};
|
|
768
|
+
/**
|
|
769
|
+
* The signed URL your controller generates.
|
|
770
|
+
*/
|
|
771
|
+
url: string;
|
|
772
|
+
/**
|
|
773
|
+
* Optional mapping of columns for receiver merge variables.
|
|
774
|
+
*/
|
|
775
|
+
receiverMergeVariableMapping?: {
|
|
776
|
+
[key: string]: string;
|
|
777
|
+
};
|
|
778
|
+
/**
|
|
779
|
+
* Optional mapping of columns for sender addresses.
|
|
780
|
+
*/
|
|
781
|
+
senderAddressMapping?: {
|
|
782
|
+
[key: string]: string;
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
* Optional mapping of columns for sender merge variables.
|
|
786
|
+
*/
|
|
787
|
+
senderMergeVariableMapping?: {
|
|
788
|
+
[key: string]: string;
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* Details about a note in the import process.
|
|
793
|
+
*/
|
|
794
|
+
interface Note {
|
|
795
|
+
/**
|
|
796
|
+
* A human-readable message describing the note.
|
|
797
|
+
*/
|
|
798
|
+
message: string;
|
|
799
|
+
/**
|
|
800
|
+
* Type of note attached to the import process.
|
|
801
|
+
*/
|
|
802
|
+
type: 'truncated_test_file' | 'skipped_invalid_contacts';
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Count of contact verification statuses.
|
|
806
|
+
*/
|
|
807
|
+
interface ReceiverStatusCount {
|
|
808
|
+
/**
|
|
809
|
+
* Number of contacts that were corrected during verification.
|
|
810
|
+
*/
|
|
811
|
+
correctedCount: number;
|
|
812
|
+
/**
|
|
813
|
+
* Number of contacts that failed verification.
|
|
814
|
+
*/
|
|
815
|
+
failedCount: number;
|
|
816
|
+
/**
|
|
817
|
+
* Number of contacts that were verified without changes.
|
|
818
|
+
*/
|
|
819
|
+
verifiedCount: number;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Count of contact verification statuses.
|
|
823
|
+
*/
|
|
824
|
+
interface SenderStatusCount {
|
|
825
|
+
/**
|
|
826
|
+
* Number of contacts that were corrected during verification.
|
|
827
|
+
*/
|
|
828
|
+
correctedCount: number;
|
|
829
|
+
/**
|
|
830
|
+
* Number of contacts that failed verification.
|
|
831
|
+
*/
|
|
832
|
+
failedCount: number;
|
|
833
|
+
/**
|
|
834
|
+
* Number of contacts that were verified without changes.
|
|
835
|
+
*/
|
|
836
|
+
verifiedCount: number;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
export interface MailingListImportDeleteResponse {
|
|
840
|
+
/**
|
|
841
|
+
* A unique ID prefixed with mailing*list_import*
|
|
842
|
+
*/
|
|
843
|
+
id: string;
|
|
844
|
+
deleted: true;
|
|
845
|
+
}
|
|
846
|
+
export interface MailingListImportCreateParams {
|
|
847
|
+
/**
|
|
848
|
+
* The CSV file for this import.
|
|
849
|
+
*/
|
|
850
|
+
file: string;
|
|
851
|
+
/**
|
|
852
|
+
* Type of file supported for mailing list imports.
|
|
853
|
+
*/
|
|
854
|
+
fileType: 'csv';
|
|
855
|
+
/**
|
|
856
|
+
* Mapping of columns for receiver addresses.
|
|
857
|
+
*/
|
|
858
|
+
receiverAddressMapping: {
|
|
859
|
+
[key: string]: string;
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
863
|
+
* dashboard.
|
|
864
|
+
*/
|
|
865
|
+
description?: string;
|
|
866
|
+
/**
|
|
867
|
+
* See the section on Metadata.
|
|
868
|
+
*/
|
|
869
|
+
metadata?: {
|
|
870
|
+
[key: string]: unknown;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* Optional mapping of columns for receiver merge variables.
|
|
874
|
+
*/
|
|
875
|
+
receiverMergeVariableMapping?: {
|
|
876
|
+
[key: string]: string;
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* Optional mapping of columns for sender addresses. If this is present, then all
|
|
880
|
+
* receivers should have a corresponding sender.
|
|
881
|
+
*/
|
|
882
|
+
senderAddressMapping?: {
|
|
883
|
+
[key: string]: string;
|
|
884
|
+
};
|
|
885
|
+
/**
|
|
886
|
+
* Optional mapping of columns for sender merge variables.
|
|
887
|
+
*/
|
|
888
|
+
senderMergeVariableMapping?: {
|
|
889
|
+
[key: string]: string;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
export interface MailingListImportUpdateParams {
|
|
893
|
+
/**
|
|
894
|
+
* An optional description for the import. Set to `null` to remove the existing
|
|
895
|
+
* description.
|
|
896
|
+
*/
|
|
897
|
+
description?: string | null;
|
|
898
|
+
/**
|
|
899
|
+
* Optional key-value data associated with the import. Set to `null` to remove
|
|
900
|
+
* existing metadata.
|
|
901
|
+
*/
|
|
902
|
+
metadata?: {
|
|
903
|
+
[key: string]: string;
|
|
904
|
+
} | null;
|
|
905
|
+
}
|
|
906
|
+
export interface MailingListImportListParams extends ListParams {
|
|
907
|
+
/**
|
|
908
|
+
* You can supply any string to help narrow down the list of resources. For
|
|
909
|
+
* example, if you pass `"New York"` (quoted), it will return resources that have
|
|
910
|
+
* that string present somewhere in their response. Alternatively, you can supply a
|
|
911
|
+
* structured search query. See the documentation on `StructuredSearchQuery` for
|
|
912
|
+
* more details.
|
|
913
|
+
*/
|
|
914
|
+
search?: string;
|
|
915
|
+
}
|
|
916
|
+
export declare namespace MailingListImports {
|
|
917
|
+
export { type MailingListImportCreateResponse as MailingListImportCreateResponse, type MailingListImportRetrieveResponse as MailingListImportRetrieveResponse, type MailingListImportUpdateResponse as MailingListImportUpdateResponse, type MailingListImportListResponse as MailingListImportListResponse, type MailingListImportDeleteResponse as MailingListImportDeleteResponse, MailingListImportListResponsesList as MailingListImportListResponsesList, type MailingListImportCreateParams as MailingListImportCreateParams, type MailingListImportUpdateParams as MailingListImportUpdateParams, type MailingListImportListParams as MailingListImportListParams, };
|
|
918
|
+
}
|
|
919
|
+
//# sourceMappingURL=mailing-list-imports.d.ts.map
|