@ziwako/contact 0.0.0-stage → 0.2.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/dist/axios.cjs ADDED
@@ -0,0 +1,597 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/axios.ts
31
+ var axios_exports = {};
32
+ __export(axios_exports, {
33
+ configure: () => configure,
34
+ createClient: () => createClient,
35
+ getAccount: () => getAccount,
36
+ getApiKeys: () => getApiKeys,
37
+ getAudiences: () => getAudiences,
38
+ getContacts: () => getContacts,
39
+ getLabels: () => getLabels,
40
+ getLeads: () => getLeads,
41
+ getMagnets: () => getMagnets,
42
+ getSuppressions: () => getSuppressions
43
+ });
44
+ module.exports = __toCommonJS(axios_exports);
45
+
46
+ // src/instance.ts
47
+ var import_axios = __toESM(require("axios"), 1);
48
+
49
+ // src/defaults.ts
50
+ var PROD_BASE_URL = "https://contacts.digitalformeservice.com/api/v1";
51
+
52
+ // src/instance.ts
53
+ var instance = import_axios.default.create({ baseURL: PROD_BASE_URL, timeout: 3e4 });
54
+ function authHeaders(options) {
55
+ const headers = {};
56
+ if (options.accessToken) {
57
+ headers["Authorization"] = `Bearer ${options.accessToken}`;
58
+ }
59
+ if (options.apiKey) {
60
+ if (options.apiKey.includes(":")) {
61
+ headers["Authorization"] = `ApiKey ${options.apiKey}`;
62
+ } else {
63
+ headers["X-Publishable-Key"] = options.apiKey;
64
+ }
65
+ }
66
+ return headers;
67
+ }
68
+ function configure(options = {}) {
69
+ instance = import_axios.default.create({
70
+ baseURL: options.baseURL || PROD_BASE_URL,
71
+ headers: authHeaders(options),
72
+ timeout: 3e4
73
+ });
74
+ if (options.getAccessToken) {
75
+ instance.interceptors.request.use((config) => {
76
+ const token = options.getAccessToken?.();
77
+ if (token) {
78
+ config.headers = config.headers || {};
79
+ config.headers["Authorization"] = `Bearer ${token}`;
80
+ }
81
+ return config;
82
+ });
83
+ }
84
+ }
85
+ function getInstance() {
86
+ return instance;
87
+ }
88
+
89
+ // src/mutator.ts
90
+ var request = (config) => {
91
+ return getInstance()(config).then((res) => {
92
+ const body = res.data;
93
+ if (body && typeof body === "object" && "data" in body) {
94
+ return body.data;
95
+ }
96
+ return body;
97
+ });
98
+ };
99
+
100
+ // src/generated/axios/endpoints/account.ts
101
+ var getAccount = () => {
102
+ const getAccount2 = () => {
103
+ return request(
104
+ {
105
+ url: `/account`,
106
+ method: "GET"
107
+ }
108
+ );
109
+ };
110
+ return { getAccount: getAccount2 };
111
+ };
112
+
113
+ // src/generated/axios/endpoints/api-keys.ts
114
+ var getApiKeys = () => {
115
+ const listApiKeyScopes = () => {
116
+ return request(
117
+ {
118
+ url: `/my/api-keys/scopes`,
119
+ method: "GET"
120
+ }
121
+ );
122
+ };
123
+ const listApiKeys = () => {
124
+ return request(
125
+ {
126
+ url: `/my/api-keys`,
127
+ method: "GET"
128
+ }
129
+ );
130
+ };
131
+ const createApiKey = (createApiKeyBody) => {
132
+ return request(
133
+ {
134
+ url: `/my/api-keys`,
135
+ method: "POST",
136
+ headers: { "Content-Type": "application/json" },
137
+ data: createApiKeyBody
138
+ }
139
+ );
140
+ };
141
+ const revokeApiKey = (id) => {
142
+ return request(
143
+ {
144
+ url: `/my/api-keys/${id}`,
145
+ method: "DELETE"
146
+ }
147
+ );
148
+ };
149
+ const rotateApiKey = (id) => {
150
+ return request(
151
+ {
152
+ url: `/my/api-keys/${id}/rotate`,
153
+ method: "POST"
154
+ }
155
+ );
156
+ };
157
+ const getApiKeyUsage = (id) => {
158
+ return request(
159
+ {
160
+ url: `/my/api-keys/${id}/usage`,
161
+ method: "GET"
162
+ }
163
+ );
164
+ };
165
+ return { listApiKeyScopes, listApiKeys, createApiKey, revokeApiKey, rotateApiKey, getApiKeyUsage };
166
+ };
167
+
168
+ // src/generated/axios/endpoints/audiences.ts
169
+ var getAudiences = () => {
170
+ const listAudiences = () => {
171
+ return request(
172
+ {
173
+ url: `/audiences`,
174
+ method: "GET"
175
+ }
176
+ );
177
+ };
178
+ const createAudience = (createAudienceBody) => {
179
+ return request(
180
+ {
181
+ url: `/audiences`,
182
+ method: "POST",
183
+ headers: { "Content-Type": "application/json" },
184
+ data: createAudienceBody
185
+ }
186
+ );
187
+ };
188
+ const getAudience = (id) => {
189
+ return request(
190
+ {
191
+ url: `/audiences/${id}`,
192
+ method: "GET"
193
+ }
194
+ );
195
+ };
196
+ const updateAudience = (id, updateAudienceBody) => {
197
+ return request(
198
+ {
199
+ url: `/audiences/${id}`,
200
+ method: "PATCH",
201
+ headers: { "Content-Type": "application/json" },
202
+ data: updateAudienceBody
203
+ }
204
+ );
205
+ };
206
+ const deleteAudience = (id) => {
207
+ return request(
208
+ {
209
+ url: `/audiences/${id}`,
210
+ method: "DELETE"
211
+ }
212
+ );
213
+ };
214
+ const getAudienceRecipients = (id) => {
215
+ return request(
216
+ {
217
+ url: `/audiences/${id}/recipients`,
218
+ method: "GET"
219
+ }
220
+ );
221
+ };
222
+ const addAudienceContact = (id, addAudienceContactBody) => {
223
+ return request(
224
+ {
225
+ url: `/audiences/${id}/leads`,
226
+ method: "POST",
227
+ headers: { "Content-Type": "application/json" },
228
+ data: addAudienceContactBody
229
+ }
230
+ );
231
+ };
232
+ const removeAudienceContact = (id, leadId) => {
233
+ return request(
234
+ {
235
+ url: `/audiences/${id}/leads/${leadId}`,
236
+ method: "DELETE"
237
+ }
238
+ );
239
+ };
240
+ return { listAudiences, createAudience, getAudience, updateAudience, deleteAudience, getAudienceRecipients, addAudienceContact, removeAudienceContact };
241
+ };
242
+
243
+ // src/generated/axios/endpoints/contacts.ts
244
+ var getContacts = () => {
245
+ const createContact = (createContactBody) => {
246
+ return request(
247
+ {
248
+ url: `/contacts`,
249
+ method: "POST",
250
+ headers: { "Content-Type": "application/json" },
251
+ data: createContactBody
252
+ }
253
+ );
254
+ };
255
+ const listContact = (params) => {
256
+ return request(
257
+ {
258
+ url: `/contacts`,
259
+ method: "GET",
260
+ params
261
+ }
262
+ );
263
+ };
264
+ const getContact = (id) => {
265
+ return request(
266
+ {
267
+ url: `/contacts/${id}`,
268
+ method: "GET"
269
+ }
270
+ );
271
+ };
272
+ const updateContact = (id, updateContactBody) => {
273
+ return request(
274
+ {
275
+ url: `/contacts/${id}`,
276
+ method: "PUT",
277
+ headers: { "Content-Type": "application/json" },
278
+ data: updateContactBody
279
+ }
280
+ );
281
+ };
282
+ const deletedContact = (id) => {
283
+ return request(
284
+ {
285
+ url: `/contacts/${id}`,
286
+ method: "DELETE"
287
+ }
288
+ );
289
+ };
290
+ const assignLabel = (id, assignLabelBody) => {
291
+ return request(
292
+ {
293
+ url: `/contacts/${id}/labels`,
294
+ method: "POST",
295
+ headers: { "Content-Type": "application/json" },
296
+ data: assignLabelBody
297
+ }
298
+ );
299
+ };
300
+ const removeLabel = (id, labelId) => {
301
+ return request(
302
+ {
303
+ url: `/contacts/${id}/labels/${labelId}`,
304
+ method: "DELETE"
305
+ }
306
+ );
307
+ };
308
+ const listDuplicate = () => {
309
+ return request(
310
+ {
311
+ url: `/contacts/duplicates`,
312
+ method: "GET"
313
+ }
314
+ );
315
+ };
316
+ const mergeContact = (mergeContactBody) => {
317
+ return request(
318
+ {
319
+ url: `/contacts/merge`,
320
+ method: "POST",
321
+ headers: { "Content-Type": "application/json" },
322
+ data: mergeContactBody
323
+ }
324
+ );
325
+ };
326
+ const importFromVcard = (importFromVcardBody) => {
327
+ const formData = new FormData();
328
+ if (importFromVcardBody.file !== void 0) {
329
+ formData.append(`file`, importFromVcardBody.file);
330
+ }
331
+ return request(
332
+ {
333
+ url: `/contacts/import/vcard`,
334
+ method: "POST",
335
+ headers: { "Content-Type": "multipart/form-data" },
336
+ data: formData
337
+ }
338
+ );
339
+ };
340
+ const importFromCsv = (importFromCsvBody) => {
341
+ const formData = new FormData();
342
+ if (importFromCsvBody.file !== void 0) {
343
+ formData.append(`file`, importFromCsvBody.file);
344
+ }
345
+ return request(
346
+ {
347
+ url: `/contacts/import/csv`,
348
+ method: "POST",
349
+ headers: { "Content-Type": "multipart/form-data" },
350
+ data: formData
351
+ }
352
+ );
353
+ };
354
+ const exportToVcard = () => {
355
+ return request(
356
+ {
357
+ url: `/contacts/export/vcard`,
358
+ method: "GET"
359
+ }
360
+ );
361
+ };
362
+ const exportToCsv = () => {
363
+ return request(
364
+ {
365
+ url: `/contacts/export/csv`,
366
+ method: "GET"
367
+ }
368
+ );
369
+ };
370
+ const toggleFavorite = (id) => {
371
+ return request(
372
+ {
373
+ url: `/contacts/${id}/favorite`,
374
+ method: "PATCH"
375
+ }
376
+ );
377
+ };
378
+ return { createContact, listContact, getContact, updateContact, deletedContact, assignLabel, removeLabel, listDuplicate, mergeContact, importFromVcard, importFromCsv, exportToVcard, exportToCsv, toggleFavorite };
379
+ };
380
+
381
+ // src/generated/axios/endpoints/labels.ts
382
+ var getLabels = () => {
383
+ const createLabel = (createLabelBody) => {
384
+ return request(
385
+ {
386
+ url: `/labels`,
387
+ method: "POST",
388
+ headers: { "Content-Type": "application/json" },
389
+ data: createLabelBody
390
+ }
391
+ );
392
+ };
393
+ const listLabel = () => {
394
+ return request(
395
+ {
396
+ url: `/labels`,
397
+ method: "GET"
398
+ }
399
+ );
400
+ };
401
+ const updateLabel = (id, updateLabelBody) => {
402
+ return request(
403
+ {
404
+ url: `/labels/${id}`,
405
+ method: "PUT",
406
+ headers: { "Content-Type": "application/json" },
407
+ data: updateLabelBody
408
+ }
409
+ );
410
+ };
411
+ const deleteLabel = (id) => {
412
+ return request(
413
+ {
414
+ url: `/labels/${id}`,
415
+ method: "DELETE"
416
+ }
417
+ );
418
+ };
419
+ return { createLabel, listLabel, updateLabel, deleteLabel };
420
+ };
421
+
422
+ // src/generated/axios/endpoints/leads.ts
423
+ var getLeads = () => {
424
+ const listLeads = (params) => {
425
+ return request(
426
+ {
427
+ url: `/leads`,
428
+ method: "GET",
429
+ params
430
+ }
431
+ );
432
+ };
433
+ const importLeads = (importLeadsBody) => {
434
+ const formData = new FormData();
435
+ if (importLeadsBody.file !== void 0) {
436
+ formData.append(`file`, importLeadsBody.file);
437
+ }
438
+ return request(
439
+ {
440
+ url: `/leads/import`,
441
+ method: "POST",
442
+ headers: { "Content-Type": "multipart/form-data" },
443
+ data: formData
444
+ }
445
+ );
446
+ };
447
+ const getLead = (id) => {
448
+ return request(
449
+ {
450
+ url: `/leads/${id}`,
451
+ method: "GET"
452
+ }
453
+ );
454
+ };
455
+ const updateLead = (id, updateLeadBody) => {
456
+ return request(
457
+ {
458
+ url: `/leads/${id}`,
459
+ method: "PATCH",
460
+ headers: { "Content-Type": "application/json" },
461
+ data: updateLeadBody
462
+ }
463
+ );
464
+ };
465
+ const listLeadEvents = (id) => {
466
+ return request(
467
+ {
468
+ url: `/leads/${id}/events`,
469
+ method: "GET"
470
+ }
471
+ );
472
+ };
473
+ return { listLeads, importLeads, getLead, updateLead, listLeadEvents };
474
+ };
475
+
476
+ // src/generated/axios/endpoints/magnets.ts
477
+ var getMagnets = () => {
478
+ const listLeadMagnets = () => {
479
+ return request(
480
+ {
481
+ url: `/lead-magnets`,
482
+ method: "GET"
483
+ }
484
+ );
485
+ };
486
+ const createLeadMagnet = (createLeadMagnetBody) => {
487
+ return request(
488
+ {
489
+ url: `/lead-magnets`,
490
+ method: "POST",
491
+ headers: { "Content-Type": "application/json" },
492
+ data: createLeadMagnetBody
493
+ }
494
+ );
495
+ };
496
+ const uploadLeadMagnetFile = (uploadLeadMagnetFileBody) => {
497
+ const formData = new FormData();
498
+ if (uploadLeadMagnetFileBody.file !== void 0) {
499
+ formData.append(`file`, uploadLeadMagnetFileBody.file);
500
+ }
501
+ return request(
502
+ {
503
+ url: `/lead-magnets/upload`,
504
+ method: "POST",
505
+ headers: { "Content-Type": "multipart/form-data" },
506
+ data: formData
507
+ }
508
+ );
509
+ };
510
+ const getLeadMagnet = (id) => {
511
+ return request(
512
+ {
513
+ url: `/lead-magnets/${id}`,
514
+ method: "GET"
515
+ }
516
+ );
517
+ };
518
+ const updateLeadMagnet = (id, updateLeadMagnetBody) => {
519
+ return request(
520
+ {
521
+ url: `/lead-magnets/${id}`,
522
+ method: "PATCH",
523
+ headers: { "Content-Type": "application/json" },
524
+ data: updateLeadMagnetBody
525
+ }
526
+ );
527
+ };
528
+ const deleteLeadMagnet = (id) => {
529
+ return request(
530
+ {
531
+ url: `/lead-magnets/${id}`,
532
+ method: "DELETE"
533
+ }
534
+ );
535
+ };
536
+ return { listLeadMagnets, createLeadMagnet, uploadLeadMagnetFile, getLeadMagnet, updateLeadMagnet, deleteLeadMagnet };
537
+ };
538
+
539
+ // src/generated/axios/endpoints/suppressions.ts
540
+ var getSuppressions = () => {
541
+ const listSuppressions = () => {
542
+ return request(
543
+ {
544
+ url: `/suppressions`,
545
+ method: "GET"
546
+ }
547
+ );
548
+ };
549
+ const createSuppression = (createSuppressionBody) => {
550
+ return request(
551
+ {
552
+ url: `/suppressions`,
553
+ method: "POST",
554
+ headers: { "Content-Type": "application/json" },
555
+ data: createSuppressionBody
556
+ }
557
+ );
558
+ };
559
+ const deleteSuppression = (id) => {
560
+ return request(
561
+ {
562
+ url: `/suppressions/${id}`,
563
+ method: "DELETE"
564
+ }
565
+ );
566
+ };
567
+ return { listSuppressions, createSuppression, deleteSuppression };
568
+ };
569
+
570
+ // src/generated/axios/endpoints/client.ts
571
+ function createClient(options) {
572
+ configure(options);
573
+ return {
574
+ ...getAccount(),
575
+ ...getApiKeys(),
576
+ ...getAudiences(),
577
+ ...getContacts(),
578
+ ...getLabels(),
579
+ ...getLeads(),
580
+ ...getMagnets(),
581
+ ...getSuppressions()
582
+ };
583
+ }
584
+ // Annotate the CommonJS export names for ESM import in node:
585
+ 0 && (module.exports = {
586
+ configure,
587
+ createClient,
588
+ getAccount,
589
+ getApiKeys,
590
+ getAudiences,
591
+ getContacts,
592
+ getLabels,
593
+ getLeads,
594
+ getMagnets,
595
+ getSuppressions
596
+ });
597
+ //# sourceMappingURL=axios.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/axios.ts","../src/instance.ts","../src/defaults.ts","../src/mutator.ts","../src/generated/axios/endpoints/account.ts","../src/generated/axios/endpoints/api-keys.ts","../src/generated/axios/endpoints/audiences.ts","../src/generated/axios/endpoints/contacts.ts","../src/generated/axios/endpoints/labels.ts","../src/generated/axios/endpoints/leads.ts","../src/generated/axios/endpoints/magnets.ts","../src/generated/axios/endpoints/suppressions.ts","../src/generated/axios/endpoints/client.ts"],"sourcesContent":["export { configure } from './instance'\nexport type { ContactConfig } from './instance'\nexport { createClient } from './generated/axios/endpoints/client'\nexport * from './generated/axios/endpoints/index'\n","import axios, { type AxiosInstance } from 'axios'\nimport { PROD_BASE_URL } from './defaults'\n\nlet instance: AxiosInstance = axios.create({ baseURL: PROD_BASE_URL, timeout: 30000 })\n\nexport interface ContactConfig {\n /** Clé secrète (`sk_...:secret`) ou publishable (`pk_...`). */\n apiKey?: string\n accessToken?: string\n /** Résout dynamiquement le token de session à chaque requête. */\n getAccessToken?: () => string | null | undefined\n baseURL?: string\n}\n\nfunction authHeaders(options: ContactConfig): Record<string, string> {\n const headers: Record<string, string> = {}\n if (options.accessToken) {\n headers['Authorization'] = `Bearer ${options.accessToken}`\n }\n if (options.apiKey) {\n if (options.apiKey.includes(':')) {\n headers['Authorization'] = `ApiKey ${options.apiKey}`\n } else {\n headers['X-Publishable-Key'] = options.apiKey\n }\n }\n return headers\n}\n\nexport function configure(options: ContactConfig = {}) {\n instance = axios.create({\n baseURL: options.baseURL || PROD_BASE_URL,\n headers: authHeaders(options),\n timeout: 30000,\n })\n\n if (options.getAccessToken) {\n instance.interceptors.request.use((config) => {\n const token = options.getAccessToken?.()\n if (token) {\n config.headers = config.headers || {}\n ;(config.headers as Record<string, string>)['Authorization'] = `Bearer ${token}`\n }\n return config\n })\n }\n}\n\nexport function getInstance(): AxiosInstance {\n return instance\n}\n","export const PROD_BASE_URL = 'https://contacts.digitalformeservice.com/api/v1'\n","import type { AxiosRequestConfig } from 'axios'\nimport { getInstance } from './instance'\n\n/**\n * Les réponses dfs_contact sont enveloppées dans `{ type, code, status, message, data }`.\n * On déballe `data` pour exposer directement la ressource.\n */\nexport const request = <T>(config: AxiosRequestConfig): Promise<T> => {\n return getInstance()(config).then((res) => {\n const body = res.data\n if (body && typeof body === 'object' && 'data' in body) {\n return body.data as T\n }\n return body as T\n })\n}\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getAccount = () => {\n/**\n * @summary Get account\n */\nconst getAccount = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/account`, method: 'GET'\n },\n );\n }\n return {getAccount}};\nexport type GetAccountResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAccount>['getAccount']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse,\n CreateApiKeyBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getApiKeys = () => {\n/**\n * @summary List scopes\n */\nconst listApiKeyScopes = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys/scopes`, method: 'GET'\n },\n );\n }\n /**\n * @summary List API keys\n */\nconst listApiKeys = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys`, method: 'GET'\n },\n );\n }\n /**\n * @summary Create API key\n */\nconst createApiKey = (\n createApiKeyBody: CreateApiKeyBody,\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createApiKeyBody\n },\n );\n }\n /**\n * @summary Revoke API key\n */\nconst revokeApiKey = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys/${id}`, method: 'DELETE'\n },\n );\n }\n /**\n * @summary Rotate API key\n */\nconst rotateApiKey = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys/${id}/rotate`, method: 'POST'\n },\n );\n }\n /**\n * @summary API key usage\n */\nconst getApiKeyUsage = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/my/api-keys/${id}/usage`, method: 'GET'\n },\n );\n }\n return {listApiKeyScopes,listApiKeys,createApiKey,revokeApiKey,rotateApiKey,getApiKeyUsage}};\nexport type ListApiKeyScopesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeyScopes']>>>\nexport type ListApiKeysResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeys']>>>\nexport type CreateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['createApiKey']>>>\nexport type RevokeApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['revokeApiKey']>>>\nexport type RotateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['rotateApiKey']>>>\nexport type GetApiKeyUsageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['getApiKeyUsage']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n AddAudienceContactBody,\n ApiResponse,\n CreateAudienceBody,\n UpdateAudienceBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getAudiences = () => {\n/**\n * @summary List audiences\n */\nconst listAudiences = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/audiences`, method: 'GET'\n },\n );\n }\n /**\n * @summary Create audience\n */\nconst createAudience = (\n createAudienceBody: CreateAudienceBody,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createAudienceBody\n },\n );\n }\n /**\n * @summary Get audience\n */\nconst getAudience = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}`, method: 'GET'\n },\n );\n }\n /**\n * @summary Update audience\n */\nconst updateAudience = (\n id: string,\n updateAudienceBody: UpdateAudienceBody,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}`, method: 'PATCH',\n headers: {'Content-Type': 'application/json', },\n data: updateAudienceBody\n },\n );\n }\n /**\n * @summary Delete audience\n */\nconst deleteAudience = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}`, method: 'DELETE'\n },\n );\n }\n /**\n * @summary Audience recipients\n */\nconst getAudienceRecipients = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}/recipients`, method: 'GET'\n },\n );\n }\n /**\n * @summary Add contact\n */\nconst addAudienceContact = (\n id: string,\n addAudienceContactBody: AddAudienceContactBody,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}/leads`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: addAudienceContactBody\n },\n );\n }\n /**\n * @summary Remove contact\n */\nconst removeAudienceContact = (\n id: string,\n leadId: string,\n ) => {\n return request<ApiResponse>(\n {url: `/audiences/${id}/leads/${leadId}`, method: 'DELETE'\n },\n );\n }\n return {listAudiences,createAudience,getAudience,updateAudience,deleteAudience,getAudienceRecipients,addAudienceContact,removeAudienceContact}};\nexport type ListAudiencesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['listAudiences']>>>\nexport type CreateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['createAudience']>>>\nexport type GetAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudience']>>>\nexport type UpdateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['updateAudience']>>>\nexport type DeleteAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['deleteAudience']>>>\nexport type GetAudienceRecipientsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudienceRecipients']>>>\nexport type AddAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['addAudienceContact']>>>\nexport type RemoveAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['removeAudienceContact']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse,\n AssignLabelBody,\n ContactListResponse,\n ContactResponse,\n CreateContactBody,\n DeletedContact200,\n ExportToCsv200,\n ExportToVcard200,\n ImportFromCsv200,\n ImportFromCsvBody,\n ImportFromVcard200,\n ImportFromVcardBody,\n ListContactParams,\n ListDuplicate200,\n MergeContactBody,\n UpdateContactBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getContacts = () => {\n/**\n * @summary Create contact\n */\nconst createContact = (\n createContactBody: CreateContactBody,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createContactBody\n },\n );\n }\n /**\n * @summary List contacts\n */\nconst listContact = (\n params?: ListContactParams,\n ) => {\n return request<ContactListResponse>(\n {url: `/contacts`, method: 'GET',\n params\n },\n );\n }\n /**\n * @summary Get contact\n */\nconst getContact = (\n id: string,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts/${id}`, method: 'GET'\n },\n );\n }\n /**\n * @summary Update contact\n */\nconst updateContact = (\n id: string,\n updateContactBody: UpdateContactBody,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts/${id}`, method: 'PUT',\n headers: {'Content-Type': 'application/json', },\n data: updateContactBody\n },\n );\n }\n /**\n * @summary Delete contact\n */\nconst deletedContact = (\n id: string,\n ) => {\n return request<DeletedContact200>(\n {url: `/contacts/${id}`, method: 'DELETE'\n },\n );\n }\n /**\n * @summary Assign Label\n */\nconst assignLabel = (\n id: string,\n assignLabelBody: AssignLabelBody,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts/${id}/labels`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: assignLabelBody\n },\n );\n }\n /**\n * @summary removeLabel\n */\nconst removeLabel = (\n id: string,\n labelId: string,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts/${id}/labels/${labelId}`, method: 'DELETE'\n },\n );\n }\n /**\n * @summary Liste duplicate\n */\nconst listDuplicate = (\n\n ) => {\n return request<ListDuplicate200>(\n {url: `/contacts/duplicates`, method: 'GET'\n },\n );\n }\n /**\n * @summary Merge Contacts\n */\nconst mergeContact = (\n mergeContactBody: MergeContactBody,\n ) => {\n return request<ContactResponse>(\n {url: `/contacts/merge`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: mergeContactBody\n },\n );\n }\n /**\n * @summary Import contact from vcard\n */\nconst importFromVcard = (\n importFromVcardBody: ImportFromVcardBody,\n ) => {const formData = new FormData();\nif(importFromVcardBody.file !== undefined) {\n formData.append(`file`, importFromVcardBody.file);\n }\n\n return request<ImportFromVcard200>(\n {url: `/contacts/import/vcard`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n );\n }\n /**\n * @summary Import contacts from csv\n */\nconst importFromCsv = (\n importFromCsvBody: ImportFromCsvBody,\n ) => {const formData = new FormData();\nif(importFromCsvBody.file !== undefined) {\n formData.append(`file`, importFromCsvBody.file);\n }\n\n return request<ImportFromCsv200>(\n {url: `/contacts/import/csv`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n );\n }\n /**\n * @summary Export to vcard\n */\nconst exportToVcard = (\n\n ) => {\n return request<ExportToVcard200>(\n {url: `/contacts/export/vcard`, method: 'GET'\n },\n );\n }\n /**\n * @summary Export to csv\n */\nconst exportToCsv = (\n\n ) => {\n return request<ExportToCsv200>(\n {url: `/contacts/export/csv`, method: 'GET'\n },\n );\n }\n /**\n * @summary Toggle favorite\n */\nconst toggleFavorite = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/contacts/${id}/favorite`, method: 'PATCH'\n },\n );\n }\n return {createContact,listContact,getContact,updateContact,deletedContact,assignLabel,removeLabel,listDuplicate,mergeContact,importFromVcard,importFromCsv,exportToVcard,exportToCsv,toggleFavorite}};\nexport type CreateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['createContact']>>>\nexport type ListContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listContact']>>>\nexport type GetContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['getContact']>>>\nexport type UpdateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['updateContact']>>>\nexport type DeletedContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['deletedContact']>>>\nexport type AssignLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['assignLabel']>>>\nexport type RemoveLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['removeLabel']>>>\nexport type ListDuplicateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listDuplicate']>>>\nexport type MergeContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['mergeContact']>>>\nexport type ImportFromVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromVcard']>>>\nexport type ImportFromCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromCsv']>>>\nexport type ExportToVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToVcard']>>>\nexport type ExportToCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToCsv']>>>\nexport type ToggleFavoriteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['toggleFavorite']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n CreateLabelBody,\n DeleteLabel200,\n LabelListResponse,\n LabelResponse,\n UpdateLabelBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getLabels = () => {\n/**\n * @summary Create label\n */\nconst createLabel = (\n createLabelBody: CreateLabelBody,\n ) => {\n return request<LabelResponse>(\n {url: `/labels`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createLabelBody\n },\n );\n }\n /**\n * @summary List Label\n */\nconst listLabel = (\n\n ) => {\n return request<LabelListResponse>(\n {url: `/labels`, method: 'GET'\n },\n );\n }\n /**\n * @summary Update Label\n */\nconst updateLabel = (\n id: string,\n updateLabelBody: UpdateLabelBody,\n ) => {\n return request<LabelResponse>(\n {url: `/labels/${id}`, method: 'PUT',\n headers: {'Content-Type': 'application/json', },\n data: updateLabelBody\n },\n );\n }\n /**\n * @summary Delete Label\n */\nconst deleteLabel = (\n id: string,\n ) => {\n return request<DeleteLabel200>(\n {url: `/labels/${id}`, method: 'DELETE'\n },\n );\n }\n return {createLabel,listLabel,updateLabel,deleteLabel}};\nexport type CreateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['createLabel']>>>\nexport type ListLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['listLabel']>>>\nexport type UpdateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['updateLabel']>>>\nexport type DeleteLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['deleteLabel']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse,\n ImportLeadsBody,\n ListLeadsParams,\n UpdateLeadBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getLeads = () => {\n/**\n * @summary List leads\n */\nconst listLeads = (\n params?: ListLeadsParams,\n ) => {\n return request<ApiResponse>(\n {url: `/leads`, method: 'GET',\n params\n },\n );\n }\n /**\n * @summary Import leads CSV\n */\nconst importLeads = (\n importLeadsBody: ImportLeadsBody,\n ) => {const formData = new FormData();\nif(importLeadsBody.file !== undefined) {\n formData.append(`file`, importLeadsBody.file);\n }\n\n return request<ApiResponse>(\n {url: `/leads/import`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n );\n }\n /**\n * @summary Get lead\n */\nconst getLead = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/leads/${id}`, method: 'GET'\n },\n );\n }\n /**\n * @summary Update lead\n */\nconst updateLead = (\n id: string,\n updateLeadBody: UpdateLeadBody,\n ) => {\n return request<ApiResponse>(\n {url: `/leads/${id}`, method: 'PATCH',\n headers: {'Content-Type': 'application/json', },\n data: updateLeadBody\n },\n );\n }\n /**\n * @summary Lead events\n */\nconst listLeadEvents = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/leads/${id}/events`, method: 'GET'\n },\n );\n }\n return {listLeads,importLeads,getLead,updateLead,listLeadEvents}};\nexport type ListLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeads']>>>\nexport type ImportLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['importLeads']>>>\nexport type GetLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['getLead']>>>\nexport type UpdateLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['updateLead']>>>\nexport type ListLeadEventsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeadEvents']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse,\n CreateLeadMagnetBody,\n UpdateLeadMagnetBody,\n UploadLeadMagnetFileBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getMagnets = () => {\n/**\n * @summary List magnets\n */\nconst listLeadMagnets = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/lead-magnets`, method: 'GET'\n },\n );\n }\n /**\n * @summary Create magnet\n */\nconst createLeadMagnet = (\n createLeadMagnetBody: CreateLeadMagnetBody,\n ) => {\n return request<ApiResponse>(\n {url: `/lead-magnets`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createLeadMagnetBody\n },\n );\n }\n /**\n * @summary Upload magnet file\n */\nconst uploadLeadMagnetFile = (\n uploadLeadMagnetFileBody: UploadLeadMagnetFileBody,\n ) => {const formData = new FormData();\nif(uploadLeadMagnetFileBody.file !== undefined) {\n formData.append(`file`, uploadLeadMagnetFileBody.file);\n }\n\n return request<ApiResponse>(\n {url: `/lead-magnets/upload`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n );\n }\n /**\n * @summary Get magnet\n */\nconst getLeadMagnet = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/lead-magnets/${id}`, method: 'GET'\n },\n );\n }\n /**\n * @summary Update magnet\n */\nconst updateLeadMagnet = (\n id: string,\n updateLeadMagnetBody: UpdateLeadMagnetBody,\n ) => {\n return request<ApiResponse>(\n {url: `/lead-magnets/${id}`, method: 'PATCH',\n headers: {'Content-Type': 'application/json', },\n data: updateLeadMagnetBody\n },\n );\n }\n /**\n * @summary Delete magnet\n */\nconst deleteLeadMagnet = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/lead-magnets/${id}`, method: 'DELETE'\n },\n );\n }\n return {listLeadMagnets,createLeadMagnet,uploadLeadMagnetFile,getLeadMagnet,updateLeadMagnet,deleteLeadMagnet}};\nexport type ListLeadMagnetsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['listLeadMagnets']>>>\nexport type CreateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['createLeadMagnet']>>>\nexport type UploadLeadMagnetFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['uploadLeadMagnetFile']>>>\nexport type GetLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['getLeadMagnet']>>>\nexport type UpdateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['updateLeadMagnet']>>>\nexport type DeleteLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['deleteLeadMagnet']>>>\n","/**\n * Generated by orval v8.19.0 🍺\n * Do not edit manually.\n * Default module\n * OpenAPI spec version: 1.0.0\n */\nimport type {\n ApiResponse,\n CreateSuppressionBody\n} from '../../models';\n\nimport { request } from '../../../mutator';\n\n\n\n\n export const getSuppressions = () => {\n/**\n * @summary List suppressions\n */\nconst listSuppressions = (\n\n ) => {\n return request<ApiResponse>(\n {url: `/suppressions`, method: 'GET'\n },\n );\n }\n /**\n * @summary Create suppression\n */\nconst createSuppression = (\n createSuppressionBody: CreateSuppressionBody,\n ) => {\n return request<ApiResponse>(\n {url: `/suppressions`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: createSuppressionBody\n },\n );\n }\n /**\n * @summary Delete suppression\n */\nconst deleteSuppression = (\n id: string,\n ) => {\n return request<ApiResponse>(\n {url: `/suppressions/${id}`, method: 'DELETE'\n },\n );\n }\n return {listSuppressions,createSuppression,deleteSuppression}};\nexport type ListSuppressionsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['listSuppressions']>>>\nexport type CreateSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['createSuppression']>>>\nexport type DeleteSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['deleteSuppression']>>>\n","import { configure as configInstance, type ContactConfig } from '../../../instance'\n\nimport { getAccount } from './account'\nimport { getApiKeys } from './api-keys'\nimport { getAudiences } from './audiences'\nimport { getContacts } from './contacts'\nimport { getLabels } from './labels'\nimport { getLeads } from './leads'\nimport { getMagnets } from './magnets'\nimport { getSuppressions } from './suppressions'\n\nexport function createClient(options: ContactConfig) {\n configInstance(options)\n return {\n ...getAccount(),\n ...getApiKeys(),\n ...getAudiences(),\n ...getContacts(),\n ...getLabels(),\n ...getLeads(),\n ...getMagnets(),\n ...getSuppressions()\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAA0C;;;ACAnC,IAAM,gBAAgB;;;ADG7B,IAAI,WAA0B,aAAAA,QAAM,OAAO,EAAE,SAAS,eAAe,SAAS,IAAM,CAAC;AAWrF,SAAS,YAAY,SAAgD;AACnE,QAAM,UAAkC,CAAC;AACzC,MAAI,QAAQ,aAAa;AACvB,YAAQ,eAAe,IAAI,UAAU,QAAQ,WAAW;AAAA,EAC1D;AACA,MAAI,QAAQ,QAAQ;AAClB,QAAI,QAAQ,OAAO,SAAS,GAAG,GAAG;AAChC,cAAQ,eAAe,IAAI,UAAU,QAAQ,MAAM;AAAA,IACrD,OAAO;AACL,cA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