postgrid-node 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +201 -0
  3. package/README.md +346 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +144 -0
  87. package/index.d.ts +144 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +161 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +118 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +124 -0
  94. package/pagination.d.ts +24 -0
  95. package/pagination.d.ts.map +1 -0
  96. package/pagination.js +45 -0
  97. package/pagination.js.map +1 -0
  98. package/pagination.mjs +41 -0
  99. package/pagination.mjs.map +1 -0
  100. package/resource.d.ts +6 -0
  101. package/resource.d.ts.map +1 -0
  102. package/resource.js +11 -0
  103. package/resource.js.map +1 -0
  104. package/resource.mjs +7 -0
  105. package/resource.mjs.map +1 -0
  106. package/resources/bank-accounts.d.ts +285 -0
  107. package/resources/bank-accounts.d.ts.map +1 -0
  108. package/resources/bank-accounts.js +45 -0
  109. package/resources/bank-accounts.js.map +1 -0
  110. package/resources/bank-accounts.mjs +40 -0
  111. package/resources/bank-accounts.mjs.map +1 -0
  112. package/resources/boxes.d.ts +683 -0
  113. package/resources/boxes.d.ts.map +1 -0
  114. package/resources/boxes.js +54 -0
  115. package/resources/boxes.js.map +1 -0
  116. package/resources/boxes.mjs +49 -0
  117. package/resources/boxes.mjs.map +1 -0
  118. package/resources/campaigns.d.ts +644 -0
  119. package/resources/campaigns.d.ts.map +1 -0
  120. package/resources/campaigns.js +67 -0
  121. package/resources/campaigns.js.map +1 -0
  122. package/resources/campaigns.mjs +62 -0
  123. package/resources/campaigns.mjs.map +1 -0
  124. package/resources/cheques/cheques.d.ts +349 -0
  125. package/resources/cheques/cheques.d.ts.map +1 -0
  126. package/resources/cheques/cheques.js +95 -0
  127. package/resources/cheques/cheques.js.map +1 -0
  128. package/resources/cheques/cheques.mjs +67 -0
  129. package/resources/cheques/cheques.mjs.map +1 -0
  130. package/resources/cheques/index.d.ts +4 -0
  131. package/resources/cheques/index.d.ts.map +1 -0
  132. package/resources/cheques/index.js +12 -0
  133. package/resources/cheques/index.js.map +1 -0
  134. package/resources/cheques/index.mjs +5 -0
  135. package/resources/cheques/index.mjs.map +1 -0
  136. package/resources/cheques/url.d.ts +29 -0
  137. package/resources/cheques/url.d.ts.map +1 -0
  138. package/resources/cheques/url.js +20 -0
  139. package/resources/cheques/url.js.map +1 -0
  140. package/resources/cheques/url.mjs +16 -0
  141. package/resources/cheques/url.mjs.map +1 -0
  142. package/resources/cheques/with-deposit-ready-pdf.d.ts +13 -0
  143. package/resources/cheques/with-deposit-ready-pdf.d.ts.map +1 -0
  144. package/resources/cheques/with-deposit-ready-pdf.js +18 -0
  145. package/resources/cheques/with-deposit-ready-pdf.js.map +1 -0
  146. package/resources/cheques/with-deposit-ready-pdf.mjs +14 -0
  147. package/resources/cheques/with-deposit-ready-pdf.mjs.map +1 -0
  148. package/resources/contacts.d.ts +295 -0
  149. package/resources/contacts.d.ts.map +1 -0
  150. package/resources/contacts.js +52 -0
  151. package/resources/contacts.js.map +1 -0
  152. package/resources/contacts.mjs +47 -0
  153. package/resources/contacts.mjs.map +1 -0
  154. package/resources/index.d.ts +12 -0
  155. package/resources/index.d.ts.map +1 -0
  156. package/resources/index.js +50 -0
  157. package/resources/index.js.map +1 -0
  158. package/resources/index.mjs +13 -0
  159. package/resources/index.mjs.map +1 -0
  160. package/resources/letters.d.ts +639 -0
  161. package/resources/letters.d.ts.map +1 -0
  162. package/resources/letters.js +55 -0
  163. package/resources/letters.js.map +1 -0
  164. package/resources/letters.mjs +50 -0
  165. package/resources/letters.mjs.map +1 -0
  166. package/resources/postcards.d.ts +346 -0
  167. package/resources/postcards.d.ts.map +1 -0
  168. package/resources/postcards.js +56 -0
  169. package/resources/postcards.js.map +1 -0
  170. package/resources/postcards.mjs +51 -0
  171. package/resources/postcards.mjs.map +1 -0
  172. package/resources/reports/exports.d.ts +207 -0
  173. package/resources/reports/exports.d.ts.map +1 -0
  174. package/resources/reports/exports.js +33 -0
  175. package/resources/reports/exports.js.map +1 -0
  176. package/resources/reports/exports.mjs +29 -0
  177. package/resources/reports/exports.mjs.map +1 -0
  178. package/resources/reports/index.d.ts +4 -0
  179. package/resources/reports/index.d.ts.map +1 -0
  180. package/resources/reports/index.js +12 -0
  181. package/resources/reports/index.js.map +1 -0
  182. package/resources/reports/index.mjs +5 -0
  183. package/resources/reports/index.mjs.map +1 -0
  184. package/resources/reports/reports.d.ts +245 -0
  185. package/resources/reports/reports.d.ts.map +1 -0
  186. package/resources/reports/reports.js +85 -0
  187. package/resources/reports/reports.js.map +1 -0
  188. package/resources/reports/reports.mjs +57 -0
  189. package/resources/reports/reports.mjs.map +1 -0
  190. package/resources/reports/samples.d.ts +81 -0
  191. package/resources/reports/samples.d.ts.map +1 -0
  192. package/resources/reports/samples.js +26 -0
  193. package/resources/reports/samples.js.map +1 -0
  194. package/resources/reports/samples.mjs +22 -0
  195. package/resources/reports/samples.mjs.map +1 -0
  196. package/resources/self-mailers.d.ts +622 -0
  197. package/resources/self-mailers.d.ts.map +1 -0
  198. package/resources/self-mailers.js +45 -0
  199. package/resources/self-mailers.js.map +1 -0
  200. package/resources/self-mailers.mjs +40 -0
  201. package/resources/self-mailers.mjs.map +1 -0
  202. package/resources/shared.d.ts +147 -0
  203. package/resources/shared.d.ts.map +1 -0
  204. package/resources/shared.js +4 -0
  205. package/resources/shared.js.map +1 -0
  206. package/resources/shared.mjs +3 -0
  207. package/resources/shared.mjs.map +1 -0
  208. package/resources/templates.d.ts +126 -0
  209. package/resources/templates.d.ts.map +1 -0
  210. package/resources/templates.js +46 -0
  211. package/resources/templates.js.map +1 -0
  212. package/resources/templates.mjs +41 -0
  213. package/resources/templates.mjs.map +1 -0
  214. package/shims/node.d.ts +30 -0
  215. package/shims/node.d.ts.map +1 -0
  216. package/shims/node.js +31 -0
  217. package/shims/node.js.map +1 -0
  218. package/shims/node.mjs +5 -0
  219. package/shims/node.mjs.map +1 -0
  220. package/shims/web.d.ts +26 -0
  221. package/shims/web.d.ts.map +1 -0
  222. package/shims/web.js +31 -0
  223. package/shims/web.js.map +1 -0
  224. package/shims/web.mjs +5 -0
  225. package/shims/web.mjs.map +1 -0
  226. package/src/_shims/MultipartBody.ts +9 -0
  227. package/src/_shims/README.md +46 -0
  228. package/src/_shims/auto/runtime-bun.ts +4 -0
  229. package/src/_shims/auto/runtime-node.ts +4 -0
  230. package/src/_shims/auto/runtime.ts +4 -0
  231. package/src/_shims/auto/types-node.ts +4 -0
  232. package/src/_shims/auto/types.d.ts +101 -0
  233. package/src/_shims/auto/types.js +3 -0
  234. package/src/_shims/auto/types.mjs +3 -0
  235. package/src/_shims/bun-runtime.ts +14 -0
  236. package/src/_shims/index.d.ts +81 -0
  237. package/src/_shims/index.js +13 -0
  238. package/src/_shims/index.mjs +7 -0
  239. package/src/_shims/manual-types.d.ts +12 -0
  240. package/src/_shims/manual-types.js +3 -0
  241. package/src/_shims/manual-types.mjs +3 -0
  242. package/src/_shims/node-runtime.ts +81 -0
  243. package/src/_shims/node-types.d.ts +42 -0
  244. package/src/_shims/node-types.js +3 -0
  245. package/src/_shims/node-types.mjs +3 -0
  246. package/src/_shims/registry.ts +67 -0
  247. package/src/_shims/web-runtime.ts +103 -0
  248. package/src/_shims/web-types.d.ts +83 -0
  249. package/src/_shims/web-types.js +3 -0
  250. package/src/_shims/web-types.mjs +3 -0
  251. package/src/core.ts +1208 -0
  252. package/src/error.ts +130 -0
  253. package/src/index.ts +428 -0
  254. package/src/lib/.keep +4 -0
  255. package/src/pagination.ts +69 -0
  256. package/src/resource.ts +11 -0
  257. package/src/resources/bank-accounts.ts +382 -0
  258. package/src/resources/boxes.ts +982 -0
  259. package/src/resources/campaigns.ts +853 -0
  260. package/src/resources/cheques/cheques.ts +493 -0
  261. package/src/resources/cheques/index.ts +12 -0
  262. package/src/resources/cheques/url.ts +37 -0
  263. package/src/resources/cheques/with-deposit-ready-pdf.ts +17 -0
  264. package/src/resources/contacts.ts +387 -0
  265. package/src/resources/index.ts +102 -0
  266. package/src/resources/letters.ts +870 -0
  267. package/src/resources/postcards.ts +548 -0
  268. package/src/resources/reports/exports.ts +272 -0
  269. package/src/resources/reports/index.ts +28 -0
  270. package/src/resources/reports/reports.ts +359 -0
  271. package/src/resources/reports/samples.ts +109 -0
  272. package/src/resources/self-mailers.ts +958 -0
  273. package/src/resources/shared.ts +182 -0
  274. package/src/resources/templates.ts +184 -0
  275. package/src/shims/node.ts +50 -0
  276. package/src/shims/web.ts +50 -0
  277. package/src/tsconfig.json +11 -0
  278. package/src/uploads.ts +255 -0
  279. package/src/version.ts +1 -0
  280. package/uploads.d.ts +75 -0
  281. package/uploads.d.ts.map +1 -0
  282. package/uploads.js +171 -0
  283. package/uploads.js.map +1 -0
  284. package/uploads.mjs +158 -0
  285. package/uploads.mjs.map +1 -0
  286. package/version.d.ts +2 -0
  287. package/version.d.ts.map +1 -0
  288. package/version.js +5 -0
  289. package/version.js.map +1 -0
  290. package/version.mjs +2 -0
  291. package/version.mjs.map +1 -0
@@ -0,0 +1,644 @@
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 Campaigns extends APIResource {
5
+ /**
6
+ * Create a new campaign.
7
+ *
8
+ * A campaign links a mailing list with a specific mail piece profile (letter,
9
+ * postcard, cheque, or self-mailer) to send bulk mail. Upon creation, the campaign
10
+ * enters the `drafting` status while assets are validated.
11
+ */
12
+ create(body: CampaignCreateParams, options?: Core.RequestOptions): Core.APIPromise<CampaignCreateResponse>;
13
+ /**
14
+ * Retrieve a specific campaign by its ID.
15
+ */
16
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<CampaignRetrieveResponse>;
17
+ /**
18
+ * Update an existing campaign.
19
+ *
20
+ * Campaigns can only be updated if they are in the `draft` or `changes_required`
21
+ * status. Updating a campaign will trigger reprocessing and set its status back to
22
+ * `drafting`.
23
+ */
24
+ update(id: string, body: CampaignUpdateParams, options?: Core.RequestOptions): Core.APIPromise<CampaignUpdateResponse>;
25
+ /**
26
+ * Retrieve a list of campaigns.
27
+ *
28
+ * Returns a paginated list of campaigns associated with the authenticated
29
+ * organization, filterable by various parameters.
30
+ */
31
+ list(query?: CampaignListParams, options?: Core.RequestOptions): Core.PagePromise<CampaignListResponsesList, CampaignListResponse>;
32
+ list(options?: Core.RequestOptions): Core.PagePromise<CampaignListResponsesList, CampaignListResponse>;
33
+ /**
34
+ * Delete a campaign.
35
+ *
36
+ * Campaigns can only be deleted if they are in `draft`, `changes_required`, or
37
+ * `ready` status. This also permanently deletes associated resources. This
38
+ * operation cannot be undone.
39
+ */
40
+ delete(id: string, options?: Core.RequestOptions): Core.APIPromise<CampaignDeleteResponse>;
41
+ /**
42
+ * Send a campaign for processing.
43
+ *
44
+ * This action transitions a campaign from the `draft` status to `creating_orders`.
45
+ * You can optionally specify a future `sendDate`. Once sent, the campaign cannot
46
+ * be updated.
47
+ */
48
+ send(id: string, body: CampaignSendParams, options?: Core.RequestOptions): Core.APIPromise<CampaignSendResponse>;
49
+ }
50
+ export declare class CampaignListResponsesList extends List<CampaignListResponse> {
51
+ }
52
+ /**
53
+ * Represents a bulk mail campaign.
54
+ */
55
+ export interface CampaignCreateResponse {
56
+ /**
57
+ * A unique ID prefixed with campaign\_
58
+ */
59
+ id: string;
60
+ /**
61
+ * The UTC time at which this resource was created.
62
+ */
63
+ createdAt: string;
64
+ /**
65
+ * The number of orders successfully created for this campaign.
66
+ */
67
+ createdCount: number;
68
+ /**
69
+ * `true` if this is a live mode resource else `false`.
70
+ */
71
+ live: boolean;
72
+ /**
73
+ * The ID of the mailing list associated with this campaign.
74
+ */
75
+ mailingList: string;
76
+ /**
77
+ * Status of the campaign lifecycle.
78
+ */
79
+ status: 'drafting' | 'changes_required' | 'creating_orders' | 'draft' | 'ready' | 'printing' | 'processed_for_delivery';
80
+ /**
81
+ * The UTC time at which this resource was last updated.
82
+ */
83
+ updatedAt: string;
84
+ /**
85
+ * The ID of the cheque profile used for this campaign, if applicable.
86
+ */
87
+ chequeProfile?: string;
88
+ /**
89
+ * The ID of the default sender contact to use for orders if not specified per
90
+ * recipient.
91
+ */
92
+ defaultSenderContact?: string;
93
+ /**
94
+ * An optional string describing this resource. Will be visible in the API and the
95
+ * dashboard.
96
+ */
97
+ description?: string;
98
+ /**
99
+ * A list of processing errors encountered, if any. Present when status is
100
+ * 'changes_required'.
101
+ */
102
+ errors?: Array<CampaignCreateResponse.Error>;
103
+ /**
104
+ * The ID of the letter profile used for this campaign, if applicable.
105
+ */
106
+ letterProfile?: string;
107
+ /**
108
+ * See the section on Metadata.
109
+ */
110
+ metadata?: Record<string, unknown>;
111
+ /**
112
+ * A temporary URL to preview the first rendered order, available once the campaign
113
+ * status is 'draft' or later.
114
+ */
115
+ orderPreviewURL?: string;
116
+ /**
117
+ * The ID of the postcard profile used for this campaign, if applicable.
118
+ */
119
+ postcardProfile?: string;
120
+ /**
121
+ * A temporary URL to download the processing report, available once the campaign
122
+ * is in the `ready` status.
123
+ */
124
+ reportURL?: string;
125
+ /**
126
+ * The ID of the self-mailer profile used for this campaign, if applicable.
127
+ */
128
+ selfMailerProfile?: string;
129
+ /**
130
+ * The scheduled date and time for the campaign to be sent.
131
+ */
132
+ sendDate?: string;
133
+ }
134
+ export declare namespace CampaignCreateResponse {
135
+ /**
136
+ * Details of a specific error encountered during campaign processing.
137
+ */
138
+ interface Error {
139
+ /**
140
+ * A human-readable message describing the error.
141
+ */
142
+ message: string;
143
+ /**
144
+ * Type of error encountered during campaign processing.
145
+ */
146
+ type: 'processing_error' | 'internal_error';
147
+ }
148
+ }
149
+ /**
150
+ * Represents a bulk mail campaign.
151
+ */
152
+ export interface CampaignRetrieveResponse {
153
+ /**
154
+ * A unique ID prefixed with campaign\_
155
+ */
156
+ id: string;
157
+ /**
158
+ * The UTC time at which this resource was created.
159
+ */
160
+ createdAt: string;
161
+ /**
162
+ * The number of orders successfully created for this campaign.
163
+ */
164
+ createdCount: number;
165
+ /**
166
+ * `true` if this is a live mode resource else `false`.
167
+ */
168
+ live: boolean;
169
+ /**
170
+ * The ID of the mailing list associated with this campaign.
171
+ */
172
+ mailingList: string;
173
+ /**
174
+ * Status of the campaign lifecycle.
175
+ */
176
+ status: 'drafting' | 'changes_required' | 'creating_orders' | 'draft' | 'ready' | 'printing' | 'processed_for_delivery';
177
+ /**
178
+ * The UTC time at which this resource was last updated.
179
+ */
180
+ updatedAt: string;
181
+ /**
182
+ * The ID of the cheque profile used for this campaign, if applicable.
183
+ */
184
+ chequeProfile?: string;
185
+ /**
186
+ * The ID of the default sender contact to use for orders if not specified per
187
+ * recipient.
188
+ */
189
+ defaultSenderContact?: string;
190
+ /**
191
+ * An optional string describing this resource. Will be visible in the API and the
192
+ * dashboard.
193
+ */
194
+ description?: string;
195
+ /**
196
+ * A list of processing errors encountered, if any. Present when status is
197
+ * 'changes_required'.
198
+ */
199
+ errors?: Array<CampaignRetrieveResponse.Error>;
200
+ /**
201
+ * The ID of the letter profile used for this campaign, if applicable.
202
+ */
203
+ letterProfile?: string;
204
+ /**
205
+ * See the section on Metadata.
206
+ */
207
+ metadata?: Record<string, unknown>;
208
+ /**
209
+ * A temporary URL to preview the first rendered order, available once the campaign
210
+ * status is 'draft' or later.
211
+ */
212
+ orderPreviewURL?: string;
213
+ /**
214
+ * The ID of the postcard profile used for this campaign, if applicable.
215
+ */
216
+ postcardProfile?: string;
217
+ /**
218
+ * A temporary URL to download the processing report, available once the campaign
219
+ * is in the `ready` status.
220
+ */
221
+ reportURL?: string;
222
+ /**
223
+ * The ID of the self-mailer profile used for this campaign, if applicable.
224
+ */
225
+ selfMailerProfile?: string;
226
+ /**
227
+ * The scheduled date and time for the campaign to be sent.
228
+ */
229
+ sendDate?: string;
230
+ }
231
+ export declare namespace CampaignRetrieveResponse {
232
+ /**
233
+ * Details of a specific error encountered during campaign processing.
234
+ */
235
+ interface Error {
236
+ /**
237
+ * A human-readable message describing the error.
238
+ */
239
+ message: string;
240
+ /**
241
+ * Type of error encountered during campaign processing.
242
+ */
243
+ type: 'processing_error' | 'internal_error';
244
+ }
245
+ }
246
+ /**
247
+ * Represents a bulk mail campaign.
248
+ */
249
+ export interface CampaignUpdateResponse {
250
+ /**
251
+ * A unique ID prefixed with campaign\_
252
+ */
253
+ id: string;
254
+ /**
255
+ * The UTC time at which this resource was created.
256
+ */
257
+ createdAt: string;
258
+ /**
259
+ * The number of orders successfully created for this campaign.
260
+ */
261
+ createdCount: number;
262
+ /**
263
+ * `true` if this is a live mode resource else `false`.
264
+ */
265
+ live: boolean;
266
+ /**
267
+ * The ID of the mailing list associated with this campaign.
268
+ */
269
+ mailingList: string;
270
+ /**
271
+ * Status of the campaign lifecycle.
272
+ */
273
+ status: 'drafting' | 'changes_required' | 'creating_orders' | 'draft' | 'ready' | 'printing' | 'processed_for_delivery';
274
+ /**
275
+ * The UTC time at which this resource was last updated.
276
+ */
277
+ updatedAt: string;
278
+ /**
279
+ * The ID of the cheque profile used for this campaign, if applicable.
280
+ */
281
+ chequeProfile?: string;
282
+ /**
283
+ * The ID of the default sender contact to use for orders if not specified per
284
+ * recipient.
285
+ */
286
+ defaultSenderContact?: string;
287
+ /**
288
+ * An optional string describing this resource. Will be visible in the API and the
289
+ * dashboard.
290
+ */
291
+ description?: string;
292
+ /**
293
+ * A list of processing errors encountered, if any. Present when status is
294
+ * 'changes_required'.
295
+ */
296
+ errors?: Array<CampaignUpdateResponse.Error>;
297
+ /**
298
+ * The ID of the letter profile used for this campaign, if applicable.
299
+ */
300
+ letterProfile?: string;
301
+ /**
302
+ * See the section on Metadata.
303
+ */
304
+ metadata?: Record<string, unknown>;
305
+ /**
306
+ * A temporary URL to preview the first rendered order, available once the campaign
307
+ * status is 'draft' or later.
308
+ */
309
+ orderPreviewURL?: string;
310
+ /**
311
+ * The ID of the postcard profile used for this campaign, if applicable.
312
+ */
313
+ postcardProfile?: string;
314
+ /**
315
+ * A temporary URL to download the processing report, available once the campaign
316
+ * is in the `ready` status.
317
+ */
318
+ reportURL?: string;
319
+ /**
320
+ * The ID of the self-mailer profile used for this campaign, if applicable.
321
+ */
322
+ selfMailerProfile?: string;
323
+ /**
324
+ * The scheduled date and time for the campaign to be sent.
325
+ */
326
+ sendDate?: string;
327
+ }
328
+ export declare namespace CampaignUpdateResponse {
329
+ /**
330
+ * Details of a specific error encountered during campaign processing.
331
+ */
332
+ interface Error {
333
+ /**
334
+ * A human-readable message describing the error.
335
+ */
336
+ message: string;
337
+ /**
338
+ * Type of error encountered during campaign processing.
339
+ */
340
+ type: 'processing_error' | 'internal_error';
341
+ }
342
+ }
343
+ /**
344
+ * Represents a bulk mail campaign.
345
+ */
346
+ export interface CampaignListResponse {
347
+ /**
348
+ * A unique ID prefixed with campaign\_
349
+ */
350
+ id: string;
351
+ /**
352
+ * The UTC time at which this resource was created.
353
+ */
354
+ createdAt: string;
355
+ /**
356
+ * The number of orders successfully created for this campaign.
357
+ */
358
+ createdCount: number;
359
+ /**
360
+ * `true` if this is a live mode resource else `false`.
361
+ */
362
+ live: boolean;
363
+ /**
364
+ * The ID of the mailing list associated with this campaign.
365
+ */
366
+ mailingList: string;
367
+ /**
368
+ * Status of the campaign lifecycle.
369
+ */
370
+ status: 'drafting' | 'changes_required' | 'creating_orders' | 'draft' | 'ready' | 'printing' | 'processed_for_delivery';
371
+ /**
372
+ * The UTC time at which this resource was last updated.
373
+ */
374
+ updatedAt: string;
375
+ /**
376
+ * The ID of the cheque profile used for this campaign, if applicable.
377
+ */
378
+ chequeProfile?: string;
379
+ /**
380
+ * The ID of the default sender contact to use for orders if not specified per
381
+ * recipient.
382
+ */
383
+ defaultSenderContact?: string;
384
+ /**
385
+ * An optional string describing this resource. Will be visible in the API and the
386
+ * dashboard.
387
+ */
388
+ description?: string;
389
+ /**
390
+ * A list of processing errors encountered, if any. Present when status is
391
+ * 'changes_required'.
392
+ */
393
+ errors?: Array<CampaignListResponse.Error>;
394
+ /**
395
+ * The ID of the letter profile used for this campaign, if applicable.
396
+ */
397
+ letterProfile?: string;
398
+ /**
399
+ * See the section on Metadata.
400
+ */
401
+ metadata?: Record<string, unknown>;
402
+ /**
403
+ * A temporary URL to preview the first rendered order, available once the campaign
404
+ * status is 'draft' or later.
405
+ */
406
+ orderPreviewURL?: string;
407
+ /**
408
+ * The ID of the postcard profile used for this campaign, if applicable.
409
+ */
410
+ postcardProfile?: string;
411
+ /**
412
+ * A temporary URL to download the processing report, available once the campaign
413
+ * is in the `ready` status.
414
+ */
415
+ reportURL?: string;
416
+ /**
417
+ * The ID of the self-mailer profile used for this campaign, if applicable.
418
+ */
419
+ selfMailerProfile?: string;
420
+ /**
421
+ * The scheduled date and time for the campaign to be sent.
422
+ */
423
+ sendDate?: string;
424
+ }
425
+ export declare namespace CampaignListResponse {
426
+ /**
427
+ * Details of a specific error encountered during campaign processing.
428
+ */
429
+ interface Error {
430
+ /**
431
+ * A human-readable message describing the error.
432
+ */
433
+ message: string;
434
+ /**
435
+ * Type of error encountered during campaign processing.
436
+ */
437
+ type: 'processing_error' | 'internal_error';
438
+ }
439
+ }
440
+ export interface CampaignDeleteResponse {
441
+ /**
442
+ * A unique ID prefixed with campaign\_
443
+ */
444
+ id: string;
445
+ deleted: true;
446
+ }
447
+ /**
448
+ * Represents a bulk mail campaign.
449
+ */
450
+ export interface CampaignSendResponse {
451
+ /**
452
+ * A unique ID prefixed with campaign\_
453
+ */
454
+ id: string;
455
+ /**
456
+ * The UTC time at which this resource was created.
457
+ */
458
+ createdAt: string;
459
+ /**
460
+ * The number of orders successfully created for this campaign.
461
+ */
462
+ createdCount: number;
463
+ /**
464
+ * `true` if this is a live mode resource else `false`.
465
+ */
466
+ live: boolean;
467
+ /**
468
+ * The ID of the mailing list associated with this campaign.
469
+ */
470
+ mailingList: string;
471
+ /**
472
+ * Status of the campaign lifecycle.
473
+ */
474
+ status: 'drafting' | 'changes_required' | 'creating_orders' | 'draft' | 'ready' | 'printing' | 'processed_for_delivery';
475
+ /**
476
+ * The UTC time at which this resource was last updated.
477
+ */
478
+ updatedAt: string;
479
+ /**
480
+ * The ID of the cheque profile used for this campaign, if applicable.
481
+ */
482
+ chequeProfile?: string;
483
+ /**
484
+ * The ID of the default sender contact to use for orders if not specified per
485
+ * recipient.
486
+ */
487
+ defaultSenderContact?: string;
488
+ /**
489
+ * An optional string describing this resource. Will be visible in the API and the
490
+ * dashboard.
491
+ */
492
+ description?: string;
493
+ /**
494
+ * A list of processing errors encountered, if any. Present when status is
495
+ * 'changes_required'.
496
+ */
497
+ errors?: Array<CampaignSendResponse.Error>;
498
+ /**
499
+ * The ID of the letter profile used for this campaign, if applicable.
500
+ */
501
+ letterProfile?: string;
502
+ /**
503
+ * See the section on Metadata.
504
+ */
505
+ metadata?: Record<string, unknown>;
506
+ /**
507
+ * A temporary URL to preview the first rendered order, available once the campaign
508
+ * status is 'draft' or later.
509
+ */
510
+ orderPreviewURL?: string;
511
+ /**
512
+ * The ID of the postcard profile used for this campaign, if applicable.
513
+ */
514
+ postcardProfile?: string;
515
+ /**
516
+ * A temporary URL to download the processing report, available once the campaign
517
+ * is in the `ready` status.
518
+ */
519
+ reportURL?: string;
520
+ /**
521
+ * The ID of the self-mailer profile used for this campaign, if applicable.
522
+ */
523
+ selfMailerProfile?: string;
524
+ /**
525
+ * The scheduled date and time for the campaign to be sent.
526
+ */
527
+ sendDate?: string;
528
+ }
529
+ export declare namespace CampaignSendResponse {
530
+ /**
531
+ * Details of a specific error encountered during campaign processing.
532
+ */
533
+ interface Error {
534
+ /**
535
+ * A human-readable message describing the error.
536
+ */
537
+ message: string;
538
+ /**
539
+ * Type of error encountered during campaign processing.
540
+ */
541
+ type: 'processing_error' | 'internal_error';
542
+ }
543
+ }
544
+ export interface CampaignCreateParams {
545
+ /**
546
+ * The ID of the mailing list associated with this campaign.
547
+ */
548
+ mailingList: string;
549
+ /**
550
+ * The ID of the cheque profile used for this campaign, if applicable.
551
+ */
552
+ chequeProfile?: string;
553
+ /**
554
+ * The ID of the default sender contact to use for orders if not specified per
555
+ * recipient.
556
+ */
557
+ defaultSenderContact?: string;
558
+ /**
559
+ * An optional string describing this resource. Will be visible in the API and the
560
+ * dashboard.
561
+ */
562
+ description?: string;
563
+ /**
564
+ * The ID of the letter profile used for this campaign, if applicable.
565
+ */
566
+ letterProfile?: string;
567
+ /**
568
+ * See the section on Metadata.
569
+ */
570
+ metadata?: Record<string, unknown>;
571
+ /**
572
+ * The ID of the postcard profile used for this campaign, if applicable.
573
+ */
574
+ postcardProfile?: string;
575
+ /**
576
+ * The ID of the self-mailer profile used for this campaign, if applicable.
577
+ */
578
+ selfMailerProfile?: string;
579
+ /**
580
+ * The scheduled date and time for the campaign to be sent.
581
+ */
582
+ sendDate?: string;
583
+ }
584
+ export interface CampaignUpdateParams {
585
+ /**
586
+ * The ID of the cheque profile to use. Setting this will remove other profile
587
+ * types. Set to `null` to remove.
588
+ */
589
+ chequeProfile?: string | null;
590
+ /**
591
+ * The ID of the default sender contact. Set to `null` to remove.
592
+ */
593
+ defaultSenderContact?: string | null;
594
+ /**
595
+ * An optional description for the campaign. Set to `null` to remove the existing
596
+ * description.
597
+ */
598
+ description?: string | null;
599
+ /**
600
+ * The ID of the letter profile to use. Setting this will remove other profile
601
+ * types. Set to `null` to remove.
602
+ */
603
+ letterProfile?: string | null;
604
+ /**
605
+ * The ID of the mailing list to associate with this campaign.
606
+ */
607
+ mailingList?: string;
608
+ /**
609
+ * Optional key-value data associated with the campaign. Set to `null` to remove
610
+ * existing metadata.
611
+ */
612
+ metadata?: Record<string, string> | null;
613
+ /**
614
+ * The ID of the postcard profile to use. Setting this will remove other profile
615
+ * types. Set to `null` to remove.
616
+ */
617
+ postcardProfile?: string | null;
618
+ /**
619
+ * The ID of the self-mailer profile to use. Setting this will remove other profile
620
+ * types. Set to `null` to remove.
621
+ */
622
+ selfMailerProfile?: string | null;
623
+ }
624
+ export interface CampaignListParams extends ListParams {
625
+ /**
626
+ * You can supply any string to help narrow down the list of resources. For
627
+ * example, if you pass `"New York"` (quoted), it will return resources that have
628
+ * that string present somewhere in their response. Alternatively, you can supply a
629
+ * structured search query. See the documentation on `StructuredSearchQuery` for
630
+ * more details.
631
+ */
632
+ search?: string;
633
+ }
634
+ export interface CampaignSendParams {
635
+ /**
636
+ * The date and time the campaign should be sent. Must be in the future. If
637
+ * omitted, defaults to the earliest possible processing date.
638
+ */
639
+ sendDate?: string | string;
640
+ }
641
+ export declare namespace Campaigns {
642
+ export { type CampaignCreateResponse as CampaignCreateResponse, type CampaignRetrieveResponse as CampaignRetrieveResponse, type CampaignUpdateResponse as CampaignUpdateResponse, type CampaignListResponse as CampaignListResponse, type CampaignDeleteResponse as CampaignDeleteResponse, type CampaignSendResponse as CampaignSendResponse, CampaignListResponsesList as CampaignListResponsesList, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, type CampaignSendParams as CampaignSendParams, };
643
+ }
644
+ //# sourceMappingURL=campaigns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"campaigns.d.ts","sourceRoot":"","sources":["../src/resources/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAI1G;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI9F;;;;;;OAMG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,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