@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 +597 -0
- package/dist/axios.cjs.map +1 -0
- package/dist/axios.d.cts +229 -0
- package/dist/axios.d.ts +229 -0
- package/dist/axios.js +502 -0
- package/dist/axios.js.map +1 -0
- package/dist/chunk-7NM6YSHA.js +60 -0
- package/dist/chunk-7NM6YSHA.js.map +1 -0
- package/dist/index.cjs +87 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/instance-B82No27F.d.cts +11 -0
- package/dist/instance-B82No27F.d.ts +11 -0
- package/dist/react-query.cjs +1673 -0
- package/dist/react-query.cjs.map +1 -0
- package/dist/react-query.d.cts +1233 -0
- package/dist/react-query.d.ts +1233 -0
- package/dist/react-query.js +1446 -0
- package/dist/react-query.js.map +1 -0
- package/dist/uploadLeadMagnetFileBody.tanstack-ClBcqB6y.d.cts +861 -0
- package/dist/uploadLeadMagnetFileBody.tanstack-ClBcqB6y.d.ts +861 -0
- package/package.json +45 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1673 @@
|
|
|
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/react-query.ts
|
|
31
|
+
var react_query_exports = {};
|
|
32
|
+
__export(react_query_exports, {
|
|
33
|
+
ContactProvider: () => ContactProvider,
|
|
34
|
+
addAudienceContact: () => addAudienceContact,
|
|
35
|
+
assignLabel: () => assignLabel,
|
|
36
|
+
createApiKey: () => createApiKey,
|
|
37
|
+
createAudience: () => createAudience,
|
|
38
|
+
createContact: () => createContact,
|
|
39
|
+
createLabel: () => createLabel,
|
|
40
|
+
createLeadMagnet: () => createLeadMagnet,
|
|
41
|
+
createSuppression: () => createSuppression,
|
|
42
|
+
deleteAudience: () => deleteAudience,
|
|
43
|
+
deleteLabel: () => deleteLabel,
|
|
44
|
+
deleteLeadMagnet: () => deleteLeadMagnet,
|
|
45
|
+
deleteSuppression: () => deleteSuppression,
|
|
46
|
+
deletedContact: () => deletedContact,
|
|
47
|
+
exportToCsv: () => exportToCsv,
|
|
48
|
+
exportToVcard: () => exportToVcard,
|
|
49
|
+
getAccount: () => getAccount,
|
|
50
|
+
getAddAudienceContactMutationOptions: () => getAddAudienceContactMutationOptions,
|
|
51
|
+
getApiKeyUsage: () => getApiKeyUsage,
|
|
52
|
+
getAssignLabelMutationOptions: () => getAssignLabelMutationOptions,
|
|
53
|
+
getAudience: () => getAudience,
|
|
54
|
+
getAudienceRecipients: () => getAudienceRecipients,
|
|
55
|
+
getContact: () => getContact,
|
|
56
|
+
getCreateApiKeyMutationOptions: () => getCreateApiKeyMutationOptions,
|
|
57
|
+
getCreateAudienceMutationOptions: () => getCreateAudienceMutationOptions,
|
|
58
|
+
getCreateContactMutationOptions: () => getCreateContactMutationOptions,
|
|
59
|
+
getCreateLabelMutationOptions: () => getCreateLabelMutationOptions,
|
|
60
|
+
getCreateLeadMagnetMutationOptions: () => getCreateLeadMagnetMutationOptions,
|
|
61
|
+
getCreateSuppressionMutationOptions: () => getCreateSuppressionMutationOptions,
|
|
62
|
+
getDeleteAudienceMutationOptions: () => getDeleteAudienceMutationOptions,
|
|
63
|
+
getDeleteLabelMutationOptions: () => getDeleteLabelMutationOptions,
|
|
64
|
+
getDeleteLeadMagnetMutationOptions: () => getDeleteLeadMagnetMutationOptions,
|
|
65
|
+
getDeleteSuppressionMutationOptions: () => getDeleteSuppressionMutationOptions,
|
|
66
|
+
getDeletedContactMutationOptions: () => getDeletedContactMutationOptions,
|
|
67
|
+
getExportToCsvQueryKey: () => getExportToCsvQueryKey,
|
|
68
|
+
getExportToCsvQueryOptions: () => getExportToCsvQueryOptions,
|
|
69
|
+
getExportToVcardQueryKey: () => getExportToVcardQueryKey,
|
|
70
|
+
getExportToVcardQueryOptions: () => getExportToVcardQueryOptions,
|
|
71
|
+
getGetAccountQueryKey: () => getGetAccountQueryKey,
|
|
72
|
+
getGetAccountQueryOptions: () => getGetAccountQueryOptions,
|
|
73
|
+
getGetApiKeyUsageQueryKey: () => getGetApiKeyUsageQueryKey,
|
|
74
|
+
getGetApiKeyUsageQueryOptions: () => getGetApiKeyUsageQueryOptions,
|
|
75
|
+
getGetAudienceQueryKey: () => getGetAudienceQueryKey,
|
|
76
|
+
getGetAudienceQueryOptions: () => getGetAudienceQueryOptions,
|
|
77
|
+
getGetAudienceRecipientsQueryKey: () => getGetAudienceRecipientsQueryKey,
|
|
78
|
+
getGetAudienceRecipientsQueryOptions: () => getGetAudienceRecipientsQueryOptions,
|
|
79
|
+
getGetContactQueryKey: () => getGetContactQueryKey,
|
|
80
|
+
getGetContactQueryOptions: () => getGetContactQueryOptions,
|
|
81
|
+
getGetLeadMagnetQueryKey: () => getGetLeadMagnetQueryKey,
|
|
82
|
+
getGetLeadMagnetQueryOptions: () => getGetLeadMagnetQueryOptions,
|
|
83
|
+
getGetLeadQueryKey: () => getGetLeadQueryKey,
|
|
84
|
+
getGetLeadQueryOptions: () => getGetLeadQueryOptions,
|
|
85
|
+
getImportFromCsvMutationOptions: () => getImportFromCsvMutationOptions,
|
|
86
|
+
getImportFromVcardMutationOptions: () => getImportFromVcardMutationOptions,
|
|
87
|
+
getImportLeadsMutationOptions: () => getImportLeadsMutationOptions,
|
|
88
|
+
getLead: () => getLead,
|
|
89
|
+
getLeadMagnet: () => getLeadMagnet,
|
|
90
|
+
getListApiKeyScopesQueryKey: () => getListApiKeyScopesQueryKey,
|
|
91
|
+
getListApiKeyScopesQueryOptions: () => getListApiKeyScopesQueryOptions,
|
|
92
|
+
getListApiKeysQueryKey: () => getListApiKeysQueryKey,
|
|
93
|
+
getListApiKeysQueryOptions: () => getListApiKeysQueryOptions,
|
|
94
|
+
getListAudiencesQueryKey: () => getListAudiencesQueryKey,
|
|
95
|
+
getListAudiencesQueryOptions: () => getListAudiencesQueryOptions,
|
|
96
|
+
getListContactQueryKey: () => getListContactQueryKey,
|
|
97
|
+
getListContactQueryOptions: () => getListContactQueryOptions,
|
|
98
|
+
getListDuplicateQueryKey: () => getListDuplicateQueryKey,
|
|
99
|
+
getListDuplicateQueryOptions: () => getListDuplicateQueryOptions,
|
|
100
|
+
getListLabelQueryKey: () => getListLabelQueryKey,
|
|
101
|
+
getListLabelQueryOptions: () => getListLabelQueryOptions,
|
|
102
|
+
getListLeadEventsQueryKey: () => getListLeadEventsQueryKey,
|
|
103
|
+
getListLeadEventsQueryOptions: () => getListLeadEventsQueryOptions,
|
|
104
|
+
getListLeadMagnetsQueryKey: () => getListLeadMagnetsQueryKey,
|
|
105
|
+
getListLeadMagnetsQueryOptions: () => getListLeadMagnetsQueryOptions,
|
|
106
|
+
getListLeadsQueryKey: () => getListLeadsQueryKey,
|
|
107
|
+
getListLeadsQueryOptions: () => getListLeadsQueryOptions,
|
|
108
|
+
getListSuppressionsQueryKey: () => getListSuppressionsQueryKey,
|
|
109
|
+
getListSuppressionsQueryOptions: () => getListSuppressionsQueryOptions,
|
|
110
|
+
getMergeContactMutationOptions: () => getMergeContactMutationOptions,
|
|
111
|
+
getRemoveAudienceContactMutationOptions: () => getRemoveAudienceContactMutationOptions,
|
|
112
|
+
getRemoveLabelMutationOptions: () => getRemoveLabelMutationOptions,
|
|
113
|
+
getRevokeApiKeyMutationOptions: () => getRevokeApiKeyMutationOptions,
|
|
114
|
+
getRotateApiKeyMutationOptions: () => getRotateApiKeyMutationOptions,
|
|
115
|
+
getToggleFavoriteMutationOptions: () => getToggleFavoriteMutationOptions,
|
|
116
|
+
getUpdateAudienceMutationOptions: () => getUpdateAudienceMutationOptions,
|
|
117
|
+
getUpdateContactMutationOptions: () => getUpdateContactMutationOptions,
|
|
118
|
+
getUpdateLabelMutationOptions: () => getUpdateLabelMutationOptions,
|
|
119
|
+
getUpdateLeadMagnetMutationOptions: () => getUpdateLeadMagnetMutationOptions,
|
|
120
|
+
getUpdateLeadMutationOptions: () => getUpdateLeadMutationOptions,
|
|
121
|
+
getUploadLeadMagnetFileMutationOptions: () => getUploadLeadMagnetFileMutationOptions,
|
|
122
|
+
importFromCsv: () => importFromCsv,
|
|
123
|
+
importFromVcard: () => importFromVcard,
|
|
124
|
+
importLeads: () => importLeads,
|
|
125
|
+
listApiKeyScopes: () => listApiKeyScopes,
|
|
126
|
+
listApiKeys: () => listApiKeys,
|
|
127
|
+
listAudiences: () => listAudiences,
|
|
128
|
+
listContact: () => listContact,
|
|
129
|
+
listDuplicate: () => listDuplicate,
|
|
130
|
+
listLabel: () => listLabel,
|
|
131
|
+
listLeadEvents: () => listLeadEvents,
|
|
132
|
+
listLeadMagnets: () => listLeadMagnets,
|
|
133
|
+
listLeads: () => listLeads,
|
|
134
|
+
listSuppressions: () => listSuppressions,
|
|
135
|
+
mergeContact: () => mergeContact,
|
|
136
|
+
removeAudienceContact: () => removeAudienceContact,
|
|
137
|
+
removeLabel: () => removeLabel,
|
|
138
|
+
revokeApiKey: () => revokeApiKey,
|
|
139
|
+
rotateApiKey: () => rotateApiKey,
|
|
140
|
+
toggleFavorite: () => toggleFavorite,
|
|
141
|
+
updateAudience: () => updateAudience,
|
|
142
|
+
updateContact: () => updateContact,
|
|
143
|
+
updateLabel: () => updateLabel,
|
|
144
|
+
updateLead: () => updateLead,
|
|
145
|
+
updateLeadMagnet: () => updateLeadMagnet,
|
|
146
|
+
uploadLeadMagnetFile: () => uploadLeadMagnetFile,
|
|
147
|
+
useAddAudienceContact: () => useAddAudienceContact,
|
|
148
|
+
useAssignLabel: () => useAssignLabel,
|
|
149
|
+
useContactClient: () => useContactClient,
|
|
150
|
+
useCreateApiKey: () => useCreateApiKey,
|
|
151
|
+
useCreateAudience: () => useCreateAudience,
|
|
152
|
+
useCreateContact: () => useCreateContact,
|
|
153
|
+
useCreateLabel: () => useCreateLabel,
|
|
154
|
+
useCreateLeadMagnet: () => useCreateLeadMagnet,
|
|
155
|
+
useCreateSuppression: () => useCreateSuppression,
|
|
156
|
+
useDeleteAudience: () => useDeleteAudience,
|
|
157
|
+
useDeleteLabel: () => useDeleteLabel,
|
|
158
|
+
useDeleteLeadMagnet: () => useDeleteLeadMagnet,
|
|
159
|
+
useDeleteSuppression: () => useDeleteSuppression,
|
|
160
|
+
useDeletedContact: () => useDeletedContact,
|
|
161
|
+
useExportToCsv: () => useExportToCsv,
|
|
162
|
+
useExportToVcard: () => useExportToVcard,
|
|
163
|
+
useGetAccount: () => useGetAccount,
|
|
164
|
+
useGetApiKeyUsage: () => useGetApiKeyUsage,
|
|
165
|
+
useGetAudience: () => useGetAudience,
|
|
166
|
+
useGetAudienceRecipients: () => useGetAudienceRecipients,
|
|
167
|
+
useGetContact: () => useGetContact,
|
|
168
|
+
useGetLead: () => useGetLead,
|
|
169
|
+
useGetLeadMagnet: () => useGetLeadMagnet,
|
|
170
|
+
useImportFromCsv: () => useImportFromCsv,
|
|
171
|
+
useImportFromVcard: () => useImportFromVcard,
|
|
172
|
+
useImportLeads: () => useImportLeads,
|
|
173
|
+
useListApiKeyScopes: () => useListApiKeyScopes,
|
|
174
|
+
useListApiKeys: () => useListApiKeys,
|
|
175
|
+
useListAudiences: () => useListAudiences,
|
|
176
|
+
useListContact: () => useListContact,
|
|
177
|
+
useListDuplicate: () => useListDuplicate,
|
|
178
|
+
useListLabel: () => useListLabel,
|
|
179
|
+
useListLeadEvents: () => useListLeadEvents,
|
|
180
|
+
useListLeadMagnets: () => useListLeadMagnets,
|
|
181
|
+
useListLeads: () => useListLeads,
|
|
182
|
+
useListSuppressions: () => useListSuppressions,
|
|
183
|
+
useMergeContact: () => useMergeContact,
|
|
184
|
+
useRemoveAudienceContact: () => useRemoveAudienceContact,
|
|
185
|
+
useRemoveLabel: () => useRemoveLabel,
|
|
186
|
+
useRevokeApiKey: () => useRevokeApiKey,
|
|
187
|
+
useRotateApiKey: () => useRotateApiKey,
|
|
188
|
+
useToggleFavorite: () => useToggleFavorite,
|
|
189
|
+
useUpdateAudience: () => useUpdateAudience,
|
|
190
|
+
useUpdateContact: () => useUpdateContact,
|
|
191
|
+
useUpdateLabel: () => useUpdateLabel,
|
|
192
|
+
useUpdateLead: () => useUpdateLead,
|
|
193
|
+
useUpdateLeadMagnet: () => useUpdateLeadMagnet,
|
|
194
|
+
useUploadLeadMagnetFile: () => useUploadLeadMagnetFile
|
|
195
|
+
});
|
|
196
|
+
module.exports = __toCommonJS(react_query_exports);
|
|
197
|
+
|
|
198
|
+
// src/provider.tsx
|
|
199
|
+
var import_react = require("react");
|
|
200
|
+
|
|
201
|
+
// src/instance.ts
|
|
202
|
+
var import_axios = __toESM(require("axios"), 1);
|
|
203
|
+
|
|
204
|
+
// src/defaults.ts
|
|
205
|
+
var PROD_BASE_URL = "https://contacts.digitalformeservice.com/api/v1";
|
|
206
|
+
|
|
207
|
+
// src/instance.ts
|
|
208
|
+
var instance = import_axios.default.create({ baseURL: PROD_BASE_URL, timeout: 3e4 });
|
|
209
|
+
function authHeaders(options) {
|
|
210
|
+
const headers = {};
|
|
211
|
+
if (options.accessToken) {
|
|
212
|
+
headers["Authorization"] = `Bearer ${options.accessToken}`;
|
|
213
|
+
}
|
|
214
|
+
if (options.apiKey) {
|
|
215
|
+
if (options.apiKey.includes(":")) {
|
|
216
|
+
headers["Authorization"] = `ApiKey ${options.apiKey}`;
|
|
217
|
+
} else {
|
|
218
|
+
headers["X-Publishable-Key"] = options.apiKey;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return headers;
|
|
222
|
+
}
|
|
223
|
+
function configure(options = {}) {
|
|
224
|
+
instance = import_axios.default.create({
|
|
225
|
+
baseURL: options.baseURL || PROD_BASE_URL,
|
|
226
|
+
headers: authHeaders(options),
|
|
227
|
+
timeout: 3e4
|
|
228
|
+
});
|
|
229
|
+
if (options.getAccessToken) {
|
|
230
|
+
instance.interceptors.request.use((config) => {
|
|
231
|
+
const token = options.getAccessToken?.();
|
|
232
|
+
if (token) {
|
|
233
|
+
config.headers = config.headers || {};
|
|
234
|
+
config.headers["Authorization"] = `Bearer ${token}`;
|
|
235
|
+
}
|
|
236
|
+
return config;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function getInstance() {
|
|
241
|
+
return instance;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// src/provider.tsx
|
|
245
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
246
|
+
var ContactContext = (0, import_react.createContext)(null);
|
|
247
|
+
function ContactProvider({ apiKey, accessToken, baseURL, children }) {
|
|
248
|
+
configure({ apiKey, accessToken, baseURL });
|
|
249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContactContext.Provider, { value: getInstance(), children });
|
|
250
|
+
}
|
|
251
|
+
function useContactClient() {
|
|
252
|
+
const ctx = (0, import_react.useContext)(ContactContext);
|
|
253
|
+
if (!ctx) throw new Error("useContactClient doit \xEAtre utilis\xE9 dans un <ContactProvider>");
|
|
254
|
+
return ctx;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// src/generated/react-query/endpoints/account.tanstack.ts
|
|
258
|
+
var import_react_query = require("@tanstack/react-query");
|
|
259
|
+
|
|
260
|
+
// src/mutator.ts
|
|
261
|
+
var request = (config) => {
|
|
262
|
+
return getInstance()(config).then((res) => {
|
|
263
|
+
const body = res.data;
|
|
264
|
+
if (body && typeof body === "object" && "data" in body) {
|
|
265
|
+
return body.data;
|
|
266
|
+
}
|
|
267
|
+
return body;
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// src/generated/react-query/endpoints/account.tanstack.ts
|
|
272
|
+
var withQueryKey = (query, queryKey) => {
|
|
273
|
+
const result = { queryKey };
|
|
274
|
+
for (const key of Object.keys(query)) {
|
|
275
|
+
if (key === "queryKey") continue;
|
|
276
|
+
Object.defineProperty(result, key, {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
configurable: true,
|
|
279
|
+
get: () => query[key]
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
return result;
|
|
283
|
+
};
|
|
284
|
+
var getAccount = (signal) => {
|
|
285
|
+
return request(
|
|
286
|
+
{
|
|
287
|
+
url: `/account`,
|
|
288
|
+
method: "GET",
|
|
289
|
+
signal
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
};
|
|
293
|
+
var getGetAccountQueryKey = () => {
|
|
294
|
+
return [
|
|
295
|
+
`/account`
|
|
296
|
+
];
|
|
297
|
+
};
|
|
298
|
+
var getGetAccountQueryOptions = (options) => {
|
|
299
|
+
const { query: queryOptions } = options ?? {};
|
|
300
|
+
const queryKey = queryOptions?.queryKey ?? getGetAccountQueryKey();
|
|
301
|
+
const queryFn = ({ signal }) => getAccount(signal);
|
|
302
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
303
|
+
};
|
|
304
|
+
function useGetAccount(options, queryClient) {
|
|
305
|
+
const queryOptions = getGetAccountQueryOptions(options);
|
|
306
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
307
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// src/generated/react-query/endpoints/api-keys.tanstack.ts
|
|
311
|
+
var import_react_query2 = require("@tanstack/react-query");
|
|
312
|
+
var withQueryKey2 = (query, queryKey) => {
|
|
313
|
+
const result = { queryKey };
|
|
314
|
+
for (const key of Object.keys(query)) {
|
|
315
|
+
if (key === "queryKey") continue;
|
|
316
|
+
Object.defineProperty(result, key, {
|
|
317
|
+
enumerable: true,
|
|
318
|
+
configurable: true,
|
|
319
|
+
get: () => query[key]
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
return result;
|
|
323
|
+
};
|
|
324
|
+
var listApiKeyScopes = (signal) => {
|
|
325
|
+
return request(
|
|
326
|
+
{
|
|
327
|
+
url: `/my/api-keys/scopes`,
|
|
328
|
+
method: "GET",
|
|
329
|
+
signal
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
};
|
|
333
|
+
var getListApiKeyScopesQueryKey = () => {
|
|
334
|
+
return [
|
|
335
|
+
`/my/api-keys/scopes`
|
|
336
|
+
];
|
|
337
|
+
};
|
|
338
|
+
var getListApiKeyScopesQueryOptions = (options) => {
|
|
339
|
+
const { query: queryOptions } = options ?? {};
|
|
340
|
+
const queryKey = queryOptions?.queryKey ?? getListApiKeyScopesQueryKey();
|
|
341
|
+
const queryFn = ({ signal }) => listApiKeyScopes(signal);
|
|
342
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
343
|
+
};
|
|
344
|
+
function useListApiKeyScopes(options, queryClient) {
|
|
345
|
+
const queryOptions = getListApiKeyScopesQueryOptions(options);
|
|
346
|
+
const query = (0, import_react_query2.useQuery)(queryOptions, queryClient);
|
|
347
|
+
return withQueryKey2(query, queryOptions.queryKey);
|
|
348
|
+
}
|
|
349
|
+
var listApiKeys = (signal) => {
|
|
350
|
+
return request(
|
|
351
|
+
{
|
|
352
|
+
url: `/my/api-keys`,
|
|
353
|
+
method: "GET",
|
|
354
|
+
signal
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
};
|
|
358
|
+
var getListApiKeysQueryKey = () => {
|
|
359
|
+
return [
|
|
360
|
+
`/my/api-keys`
|
|
361
|
+
];
|
|
362
|
+
};
|
|
363
|
+
var getListApiKeysQueryOptions = (options) => {
|
|
364
|
+
const { query: queryOptions } = options ?? {};
|
|
365
|
+
const queryKey = queryOptions?.queryKey ?? getListApiKeysQueryKey();
|
|
366
|
+
const queryFn = ({ signal }) => listApiKeys(signal);
|
|
367
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
368
|
+
};
|
|
369
|
+
function useListApiKeys(options, queryClient) {
|
|
370
|
+
const queryOptions = getListApiKeysQueryOptions(options);
|
|
371
|
+
const query = (0, import_react_query2.useQuery)(queryOptions, queryClient);
|
|
372
|
+
return withQueryKey2(query, queryOptions.queryKey);
|
|
373
|
+
}
|
|
374
|
+
var createApiKey = (createApiKeyBody, signal) => {
|
|
375
|
+
return request(
|
|
376
|
+
{
|
|
377
|
+
url: `/my/api-keys`,
|
|
378
|
+
method: "POST",
|
|
379
|
+
headers: { "Content-Type": "application/json" },
|
|
380
|
+
data: createApiKeyBody,
|
|
381
|
+
signal
|
|
382
|
+
}
|
|
383
|
+
);
|
|
384
|
+
};
|
|
385
|
+
var getCreateApiKeyMutationOptions = (options) => {
|
|
386
|
+
const mutationKey = ["createApiKey"];
|
|
387
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
388
|
+
const mutationFn = (props) => {
|
|
389
|
+
const { data } = props ?? {};
|
|
390
|
+
return createApiKey(data);
|
|
391
|
+
};
|
|
392
|
+
return { mutationFn, ...mutationOptions };
|
|
393
|
+
};
|
|
394
|
+
var useCreateApiKey = (options, queryClient) => {
|
|
395
|
+
return (0, import_react_query2.useMutation)(getCreateApiKeyMutationOptions(options), queryClient);
|
|
396
|
+
};
|
|
397
|
+
var revokeApiKey = (id, signal) => {
|
|
398
|
+
return request(
|
|
399
|
+
{
|
|
400
|
+
url: `/my/api-keys/${id}`,
|
|
401
|
+
method: "DELETE",
|
|
402
|
+
signal
|
|
403
|
+
}
|
|
404
|
+
);
|
|
405
|
+
};
|
|
406
|
+
var getRevokeApiKeyMutationOptions = (options) => {
|
|
407
|
+
const mutationKey = ["revokeApiKey"];
|
|
408
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
409
|
+
const mutationFn = (props) => {
|
|
410
|
+
const { id } = props ?? {};
|
|
411
|
+
return revokeApiKey(id);
|
|
412
|
+
};
|
|
413
|
+
return { mutationFn, ...mutationOptions };
|
|
414
|
+
};
|
|
415
|
+
var useRevokeApiKey = (options, queryClient) => {
|
|
416
|
+
return (0, import_react_query2.useMutation)(getRevokeApiKeyMutationOptions(options), queryClient);
|
|
417
|
+
};
|
|
418
|
+
var rotateApiKey = (id, signal) => {
|
|
419
|
+
return request(
|
|
420
|
+
{
|
|
421
|
+
url: `/my/api-keys/${id}/rotate`,
|
|
422
|
+
method: "POST",
|
|
423
|
+
signal
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
};
|
|
427
|
+
var getRotateApiKeyMutationOptions = (options) => {
|
|
428
|
+
const mutationKey = ["rotateApiKey"];
|
|
429
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
430
|
+
const mutationFn = (props) => {
|
|
431
|
+
const { id } = props ?? {};
|
|
432
|
+
return rotateApiKey(id);
|
|
433
|
+
};
|
|
434
|
+
return { mutationFn, ...mutationOptions };
|
|
435
|
+
};
|
|
436
|
+
var useRotateApiKey = (options, queryClient) => {
|
|
437
|
+
return (0, import_react_query2.useMutation)(getRotateApiKeyMutationOptions(options), queryClient);
|
|
438
|
+
};
|
|
439
|
+
var getApiKeyUsage = (id, signal) => {
|
|
440
|
+
return request(
|
|
441
|
+
{
|
|
442
|
+
url: `/my/api-keys/${id}/usage`,
|
|
443
|
+
method: "GET",
|
|
444
|
+
signal
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
};
|
|
448
|
+
var getGetApiKeyUsageQueryKey = (id) => {
|
|
449
|
+
return [
|
|
450
|
+
`/my/api-keys/${id}/usage`
|
|
451
|
+
];
|
|
452
|
+
};
|
|
453
|
+
var getGetApiKeyUsageQueryOptions = (id, options) => {
|
|
454
|
+
const { query: queryOptions } = options ?? {};
|
|
455
|
+
const queryKey = queryOptions?.queryKey ?? getGetApiKeyUsageQueryKey(id);
|
|
456
|
+
const queryFn = ({ signal }) => getApiKeyUsage(id, signal);
|
|
457
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
458
|
+
};
|
|
459
|
+
function useGetApiKeyUsage(id, options, queryClient) {
|
|
460
|
+
const queryOptions = getGetApiKeyUsageQueryOptions(id, options);
|
|
461
|
+
const query = (0, import_react_query2.useQuery)(queryOptions, queryClient);
|
|
462
|
+
return withQueryKey2(query, queryOptions.queryKey);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// src/generated/react-query/endpoints/audiences.tanstack.ts
|
|
466
|
+
var import_react_query3 = require("@tanstack/react-query");
|
|
467
|
+
var withQueryKey3 = (query, queryKey) => {
|
|
468
|
+
const result = { queryKey };
|
|
469
|
+
for (const key of Object.keys(query)) {
|
|
470
|
+
if (key === "queryKey") continue;
|
|
471
|
+
Object.defineProperty(result, key, {
|
|
472
|
+
enumerable: true,
|
|
473
|
+
configurable: true,
|
|
474
|
+
get: () => query[key]
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
return result;
|
|
478
|
+
};
|
|
479
|
+
var listAudiences = (signal) => {
|
|
480
|
+
return request(
|
|
481
|
+
{
|
|
482
|
+
url: `/audiences`,
|
|
483
|
+
method: "GET",
|
|
484
|
+
signal
|
|
485
|
+
}
|
|
486
|
+
);
|
|
487
|
+
};
|
|
488
|
+
var getListAudiencesQueryKey = () => {
|
|
489
|
+
return [
|
|
490
|
+
`/audiences`
|
|
491
|
+
];
|
|
492
|
+
};
|
|
493
|
+
var getListAudiencesQueryOptions = (options) => {
|
|
494
|
+
const { query: queryOptions } = options ?? {};
|
|
495
|
+
const queryKey = queryOptions?.queryKey ?? getListAudiencesQueryKey();
|
|
496
|
+
const queryFn = ({ signal }) => listAudiences(signal);
|
|
497
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
498
|
+
};
|
|
499
|
+
function useListAudiences(options, queryClient) {
|
|
500
|
+
const queryOptions = getListAudiencesQueryOptions(options);
|
|
501
|
+
const query = (0, import_react_query3.useQuery)(queryOptions, queryClient);
|
|
502
|
+
return withQueryKey3(query, queryOptions.queryKey);
|
|
503
|
+
}
|
|
504
|
+
var createAudience = (createAudienceBody, signal) => {
|
|
505
|
+
return request(
|
|
506
|
+
{
|
|
507
|
+
url: `/audiences`,
|
|
508
|
+
method: "POST",
|
|
509
|
+
headers: { "Content-Type": "application/json" },
|
|
510
|
+
data: createAudienceBody,
|
|
511
|
+
signal
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
};
|
|
515
|
+
var getCreateAudienceMutationOptions = (options) => {
|
|
516
|
+
const mutationKey = ["createAudience"];
|
|
517
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
518
|
+
const mutationFn = (props) => {
|
|
519
|
+
const { data } = props ?? {};
|
|
520
|
+
return createAudience(data);
|
|
521
|
+
};
|
|
522
|
+
return { mutationFn, ...mutationOptions };
|
|
523
|
+
};
|
|
524
|
+
var useCreateAudience = (options, queryClient) => {
|
|
525
|
+
return (0, import_react_query3.useMutation)(getCreateAudienceMutationOptions(options), queryClient);
|
|
526
|
+
};
|
|
527
|
+
var getAudience = (id, signal) => {
|
|
528
|
+
return request(
|
|
529
|
+
{
|
|
530
|
+
url: `/audiences/${id}`,
|
|
531
|
+
method: "GET",
|
|
532
|
+
signal
|
|
533
|
+
}
|
|
534
|
+
);
|
|
535
|
+
};
|
|
536
|
+
var getGetAudienceQueryKey = (id) => {
|
|
537
|
+
return [
|
|
538
|
+
`/audiences/${id}`
|
|
539
|
+
];
|
|
540
|
+
};
|
|
541
|
+
var getGetAudienceQueryOptions = (id, options) => {
|
|
542
|
+
const { query: queryOptions } = options ?? {};
|
|
543
|
+
const queryKey = queryOptions?.queryKey ?? getGetAudienceQueryKey(id);
|
|
544
|
+
const queryFn = ({ signal }) => getAudience(id, signal);
|
|
545
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
546
|
+
};
|
|
547
|
+
function useGetAudience(id, options, queryClient) {
|
|
548
|
+
const queryOptions = getGetAudienceQueryOptions(id, options);
|
|
549
|
+
const query = (0, import_react_query3.useQuery)(queryOptions, queryClient);
|
|
550
|
+
return withQueryKey3(query, queryOptions.queryKey);
|
|
551
|
+
}
|
|
552
|
+
var updateAudience = (id, updateAudienceBody, signal) => {
|
|
553
|
+
return request(
|
|
554
|
+
{
|
|
555
|
+
url: `/audiences/${id}`,
|
|
556
|
+
method: "PATCH",
|
|
557
|
+
headers: { "Content-Type": "application/json" },
|
|
558
|
+
data: updateAudienceBody,
|
|
559
|
+
signal
|
|
560
|
+
}
|
|
561
|
+
);
|
|
562
|
+
};
|
|
563
|
+
var getUpdateAudienceMutationOptions = (options) => {
|
|
564
|
+
const mutationKey = ["updateAudience"];
|
|
565
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
566
|
+
const mutationFn = (props) => {
|
|
567
|
+
const { id, data } = props ?? {};
|
|
568
|
+
return updateAudience(id, data);
|
|
569
|
+
};
|
|
570
|
+
return { mutationFn, ...mutationOptions };
|
|
571
|
+
};
|
|
572
|
+
var useUpdateAudience = (options, queryClient) => {
|
|
573
|
+
return (0, import_react_query3.useMutation)(getUpdateAudienceMutationOptions(options), queryClient);
|
|
574
|
+
};
|
|
575
|
+
var deleteAudience = (id, signal) => {
|
|
576
|
+
return request(
|
|
577
|
+
{
|
|
578
|
+
url: `/audiences/${id}`,
|
|
579
|
+
method: "DELETE",
|
|
580
|
+
signal
|
|
581
|
+
}
|
|
582
|
+
);
|
|
583
|
+
};
|
|
584
|
+
var getDeleteAudienceMutationOptions = (options) => {
|
|
585
|
+
const mutationKey = ["deleteAudience"];
|
|
586
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
587
|
+
const mutationFn = (props) => {
|
|
588
|
+
const { id } = props ?? {};
|
|
589
|
+
return deleteAudience(id);
|
|
590
|
+
};
|
|
591
|
+
return { mutationFn, ...mutationOptions };
|
|
592
|
+
};
|
|
593
|
+
var useDeleteAudience = (options, queryClient) => {
|
|
594
|
+
return (0, import_react_query3.useMutation)(getDeleteAudienceMutationOptions(options), queryClient);
|
|
595
|
+
};
|
|
596
|
+
var getAudienceRecipients = (id, signal) => {
|
|
597
|
+
return request(
|
|
598
|
+
{
|
|
599
|
+
url: `/audiences/${id}/recipients`,
|
|
600
|
+
method: "GET",
|
|
601
|
+
signal
|
|
602
|
+
}
|
|
603
|
+
);
|
|
604
|
+
};
|
|
605
|
+
var getGetAudienceRecipientsQueryKey = (id) => {
|
|
606
|
+
return [
|
|
607
|
+
`/audiences/${id}/recipients`
|
|
608
|
+
];
|
|
609
|
+
};
|
|
610
|
+
var getGetAudienceRecipientsQueryOptions = (id, options) => {
|
|
611
|
+
const { query: queryOptions } = options ?? {};
|
|
612
|
+
const queryKey = queryOptions?.queryKey ?? getGetAudienceRecipientsQueryKey(id);
|
|
613
|
+
const queryFn = ({ signal }) => getAudienceRecipients(id, signal);
|
|
614
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
615
|
+
};
|
|
616
|
+
function useGetAudienceRecipients(id, options, queryClient) {
|
|
617
|
+
const queryOptions = getGetAudienceRecipientsQueryOptions(id, options);
|
|
618
|
+
const query = (0, import_react_query3.useQuery)(queryOptions, queryClient);
|
|
619
|
+
return withQueryKey3(query, queryOptions.queryKey);
|
|
620
|
+
}
|
|
621
|
+
var addAudienceContact = (id, addAudienceContactBody, signal) => {
|
|
622
|
+
return request(
|
|
623
|
+
{
|
|
624
|
+
url: `/audiences/${id}/leads`,
|
|
625
|
+
method: "POST",
|
|
626
|
+
headers: { "Content-Type": "application/json" },
|
|
627
|
+
data: addAudienceContactBody,
|
|
628
|
+
signal
|
|
629
|
+
}
|
|
630
|
+
);
|
|
631
|
+
};
|
|
632
|
+
var getAddAudienceContactMutationOptions = (options) => {
|
|
633
|
+
const mutationKey = ["addAudienceContact"];
|
|
634
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
635
|
+
const mutationFn = (props) => {
|
|
636
|
+
const { id, data } = props ?? {};
|
|
637
|
+
return addAudienceContact(id, data);
|
|
638
|
+
};
|
|
639
|
+
return { mutationFn, ...mutationOptions };
|
|
640
|
+
};
|
|
641
|
+
var useAddAudienceContact = (options, queryClient) => {
|
|
642
|
+
return (0, import_react_query3.useMutation)(getAddAudienceContactMutationOptions(options), queryClient);
|
|
643
|
+
};
|
|
644
|
+
var removeAudienceContact = (id, leadId, signal) => {
|
|
645
|
+
return request(
|
|
646
|
+
{
|
|
647
|
+
url: `/audiences/${id}/leads/${leadId}`,
|
|
648
|
+
method: "DELETE",
|
|
649
|
+
signal
|
|
650
|
+
}
|
|
651
|
+
);
|
|
652
|
+
};
|
|
653
|
+
var getRemoveAudienceContactMutationOptions = (options) => {
|
|
654
|
+
const mutationKey = ["removeAudienceContact"];
|
|
655
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
656
|
+
const mutationFn = (props) => {
|
|
657
|
+
const { id, leadId } = props ?? {};
|
|
658
|
+
return removeAudienceContact(id, leadId);
|
|
659
|
+
};
|
|
660
|
+
return { mutationFn, ...mutationOptions };
|
|
661
|
+
};
|
|
662
|
+
var useRemoveAudienceContact = (options, queryClient) => {
|
|
663
|
+
return (0, import_react_query3.useMutation)(getRemoveAudienceContactMutationOptions(options), queryClient);
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
// src/generated/react-query/endpoints/contacts.tanstack.ts
|
|
667
|
+
var import_react_query4 = require("@tanstack/react-query");
|
|
668
|
+
var withQueryKey4 = (query, queryKey) => {
|
|
669
|
+
const result = { queryKey };
|
|
670
|
+
for (const key of Object.keys(query)) {
|
|
671
|
+
if (key === "queryKey") continue;
|
|
672
|
+
Object.defineProperty(result, key, {
|
|
673
|
+
enumerable: true,
|
|
674
|
+
configurable: true,
|
|
675
|
+
get: () => query[key]
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
return result;
|
|
679
|
+
};
|
|
680
|
+
var createContact = (createContactBody, signal) => {
|
|
681
|
+
return request(
|
|
682
|
+
{
|
|
683
|
+
url: `/contacts`,
|
|
684
|
+
method: "POST",
|
|
685
|
+
headers: { "Content-Type": "application/json" },
|
|
686
|
+
data: createContactBody,
|
|
687
|
+
signal
|
|
688
|
+
}
|
|
689
|
+
);
|
|
690
|
+
};
|
|
691
|
+
var getCreateContactMutationOptions = (options) => {
|
|
692
|
+
const mutationKey = ["createContact"];
|
|
693
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
694
|
+
const mutationFn = (props) => {
|
|
695
|
+
const { data } = props ?? {};
|
|
696
|
+
return createContact(data);
|
|
697
|
+
};
|
|
698
|
+
return { mutationFn, ...mutationOptions };
|
|
699
|
+
};
|
|
700
|
+
var useCreateContact = (options, queryClient) => {
|
|
701
|
+
return (0, import_react_query4.useMutation)(getCreateContactMutationOptions(options), queryClient);
|
|
702
|
+
};
|
|
703
|
+
var listContact = (params, signal) => {
|
|
704
|
+
return request(
|
|
705
|
+
{
|
|
706
|
+
url: `/contacts`,
|
|
707
|
+
method: "GET",
|
|
708
|
+
params,
|
|
709
|
+
signal
|
|
710
|
+
}
|
|
711
|
+
);
|
|
712
|
+
};
|
|
713
|
+
var getListContactQueryKey = (params) => {
|
|
714
|
+
return [
|
|
715
|
+
`/contacts`,
|
|
716
|
+
...params ? [params] : []
|
|
717
|
+
];
|
|
718
|
+
};
|
|
719
|
+
var getListContactQueryOptions = (params, options) => {
|
|
720
|
+
const { query: queryOptions } = options ?? {};
|
|
721
|
+
const queryKey = queryOptions?.queryKey ?? getListContactQueryKey(params);
|
|
722
|
+
const queryFn = ({ signal }) => listContact(params, signal);
|
|
723
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
724
|
+
};
|
|
725
|
+
function useListContact(params, options, queryClient) {
|
|
726
|
+
const queryOptions = getListContactQueryOptions(params, options);
|
|
727
|
+
const query = (0, import_react_query4.useQuery)(queryOptions, queryClient);
|
|
728
|
+
return withQueryKey4(query, queryOptions.queryKey);
|
|
729
|
+
}
|
|
730
|
+
var getContact = (id, signal) => {
|
|
731
|
+
return request(
|
|
732
|
+
{
|
|
733
|
+
url: `/contacts/${id}`,
|
|
734
|
+
method: "GET",
|
|
735
|
+
signal
|
|
736
|
+
}
|
|
737
|
+
);
|
|
738
|
+
};
|
|
739
|
+
var getGetContactQueryKey = (id) => {
|
|
740
|
+
return [
|
|
741
|
+
`/contacts/${id}`
|
|
742
|
+
];
|
|
743
|
+
};
|
|
744
|
+
var getGetContactQueryOptions = (id, options) => {
|
|
745
|
+
const { query: queryOptions } = options ?? {};
|
|
746
|
+
const queryKey = queryOptions?.queryKey ?? getGetContactQueryKey(id);
|
|
747
|
+
const queryFn = ({ signal }) => getContact(id, signal);
|
|
748
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
749
|
+
};
|
|
750
|
+
function useGetContact(id, options, queryClient) {
|
|
751
|
+
const queryOptions = getGetContactQueryOptions(id, options);
|
|
752
|
+
const query = (0, import_react_query4.useQuery)(queryOptions, queryClient);
|
|
753
|
+
return withQueryKey4(query, queryOptions.queryKey);
|
|
754
|
+
}
|
|
755
|
+
var updateContact = (id, updateContactBody, signal) => {
|
|
756
|
+
return request(
|
|
757
|
+
{
|
|
758
|
+
url: `/contacts/${id}`,
|
|
759
|
+
method: "PUT",
|
|
760
|
+
headers: { "Content-Type": "application/json" },
|
|
761
|
+
data: updateContactBody,
|
|
762
|
+
signal
|
|
763
|
+
}
|
|
764
|
+
);
|
|
765
|
+
};
|
|
766
|
+
var getUpdateContactMutationOptions = (options) => {
|
|
767
|
+
const mutationKey = ["updateContact"];
|
|
768
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
769
|
+
const mutationFn = (props) => {
|
|
770
|
+
const { id, data } = props ?? {};
|
|
771
|
+
return updateContact(id, data);
|
|
772
|
+
};
|
|
773
|
+
return { mutationFn, ...mutationOptions };
|
|
774
|
+
};
|
|
775
|
+
var useUpdateContact = (options, queryClient) => {
|
|
776
|
+
return (0, import_react_query4.useMutation)(getUpdateContactMutationOptions(options), queryClient);
|
|
777
|
+
};
|
|
778
|
+
var deletedContact = (id, signal) => {
|
|
779
|
+
return request(
|
|
780
|
+
{
|
|
781
|
+
url: `/contacts/${id}`,
|
|
782
|
+
method: "DELETE",
|
|
783
|
+
signal
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
};
|
|
787
|
+
var getDeletedContactMutationOptions = (options) => {
|
|
788
|
+
const mutationKey = ["deletedContact"];
|
|
789
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
790
|
+
const mutationFn = (props) => {
|
|
791
|
+
const { id } = props ?? {};
|
|
792
|
+
return deletedContact(id);
|
|
793
|
+
};
|
|
794
|
+
return { mutationFn, ...mutationOptions };
|
|
795
|
+
};
|
|
796
|
+
var useDeletedContact = (options, queryClient) => {
|
|
797
|
+
return (0, import_react_query4.useMutation)(getDeletedContactMutationOptions(options), queryClient);
|
|
798
|
+
};
|
|
799
|
+
var assignLabel = (id, assignLabelBody, signal) => {
|
|
800
|
+
return request(
|
|
801
|
+
{
|
|
802
|
+
url: `/contacts/${id}/labels`,
|
|
803
|
+
method: "POST",
|
|
804
|
+
headers: { "Content-Type": "application/json" },
|
|
805
|
+
data: assignLabelBody,
|
|
806
|
+
signal
|
|
807
|
+
}
|
|
808
|
+
);
|
|
809
|
+
};
|
|
810
|
+
var getAssignLabelMutationOptions = (options) => {
|
|
811
|
+
const mutationKey = ["assignLabel"];
|
|
812
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
813
|
+
const mutationFn = (props) => {
|
|
814
|
+
const { id, data } = props ?? {};
|
|
815
|
+
return assignLabel(id, data);
|
|
816
|
+
};
|
|
817
|
+
return { mutationFn, ...mutationOptions };
|
|
818
|
+
};
|
|
819
|
+
var useAssignLabel = (options, queryClient) => {
|
|
820
|
+
return (0, import_react_query4.useMutation)(getAssignLabelMutationOptions(options), queryClient);
|
|
821
|
+
};
|
|
822
|
+
var removeLabel = (id, labelId, signal) => {
|
|
823
|
+
return request(
|
|
824
|
+
{
|
|
825
|
+
url: `/contacts/${id}/labels/${labelId}`,
|
|
826
|
+
method: "DELETE",
|
|
827
|
+
signal
|
|
828
|
+
}
|
|
829
|
+
);
|
|
830
|
+
};
|
|
831
|
+
var getRemoveLabelMutationOptions = (options) => {
|
|
832
|
+
const mutationKey = ["removeLabel"];
|
|
833
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
834
|
+
const mutationFn = (props) => {
|
|
835
|
+
const { id, labelId } = props ?? {};
|
|
836
|
+
return removeLabel(id, labelId);
|
|
837
|
+
};
|
|
838
|
+
return { mutationFn, ...mutationOptions };
|
|
839
|
+
};
|
|
840
|
+
var useRemoveLabel = (options, queryClient) => {
|
|
841
|
+
return (0, import_react_query4.useMutation)(getRemoveLabelMutationOptions(options), queryClient);
|
|
842
|
+
};
|
|
843
|
+
var listDuplicate = (signal) => {
|
|
844
|
+
return request(
|
|
845
|
+
{
|
|
846
|
+
url: `/contacts/duplicates`,
|
|
847
|
+
method: "GET",
|
|
848
|
+
signal
|
|
849
|
+
}
|
|
850
|
+
);
|
|
851
|
+
};
|
|
852
|
+
var getListDuplicateQueryKey = () => {
|
|
853
|
+
return [
|
|
854
|
+
`/contacts/duplicates`
|
|
855
|
+
];
|
|
856
|
+
};
|
|
857
|
+
var getListDuplicateQueryOptions = (options) => {
|
|
858
|
+
const { query: queryOptions } = options ?? {};
|
|
859
|
+
const queryKey = queryOptions?.queryKey ?? getListDuplicateQueryKey();
|
|
860
|
+
const queryFn = ({ signal }) => listDuplicate(signal);
|
|
861
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
862
|
+
};
|
|
863
|
+
function useListDuplicate(options, queryClient) {
|
|
864
|
+
const queryOptions = getListDuplicateQueryOptions(options);
|
|
865
|
+
const query = (0, import_react_query4.useQuery)(queryOptions, queryClient);
|
|
866
|
+
return withQueryKey4(query, queryOptions.queryKey);
|
|
867
|
+
}
|
|
868
|
+
var mergeContact = (mergeContactBody, signal) => {
|
|
869
|
+
return request(
|
|
870
|
+
{
|
|
871
|
+
url: `/contacts/merge`,
|
|
872
|
+
method: "POST",
|
|
873
|
+
headers: { "Content-Type": "application/json" },
|
|
874
|
+
data: mergeContactBody,
|
|
875
|
+
signal
|
|
876
|
+
}
|
|
877
|
+
);
|
|
878
|
+
};
|
|
879
|
+
var getMergeContactMutationOptions = (options) => {
|
|
880
|
+
const mutationKey = ["mergeContact"];
|
|
881
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
882
|
+
const mutationFn = (props) => {
|
|
883
|
+
const { data } = props ?? {};
|
|
884
|
+
return mergeContact(data);
|
|
885
|
+
};
|
|
886
|
+
return { mutationFn, ...mutationOptions };
|
|
887
|
+
};
|
|
888
|
+
var useMergeContact = (options, queryClient) => {
|
|
889
|
+
return (0, import_react_query4.useMutation)(getMergeContactMutationOptions(options), queryClient);
|
|
890
|
+
};
|
|
891
|
+
var importFromVcard = (importFromVcardBody, signal) => {
|
|
892
|
+
const formData = new FormData();
|
|
893
|
+
if (importFromVcardBody.file !== void 0) {
|
|
894
|
+
formData.append(`file`, importFromVcardBody.file);
|
|
895
|
+
}
|
|
896
|
+
return request(
|
|
897
|
+
{
|
|
898
|
+
url: `/contacts/import/vcard`,
|
|
899
|
+
method: "POST",
|
|
900
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
901
|
+
data: formData,
|
|
902
|
+
signal
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
};
|
|
906
|
+
var getImportFromVcardMutationOptions = (options) => {
|
|
907
|
+
const mutationKey = ["importFromVcard"];
|
|
908
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
909
|
+
const mutationFn = (props) => {
|
|
910
|
+
const { data } = props ?? {};
|
|
911
|
+
return importFromVcard(data);
|
|
912
|
+
};
|
|
913
|
+
return { mutationFn, ...mutationOptions };
|
|
914
|
+
};
|
|
915
|
+
var useImportFromVcard = (options, queryClient) => {
|
|
916
|
+
return (0, import_react_query4.useMutation)(getImportFromVcardMutationOptions(options), queryClient);
|
|
917
|
+
};
|
|
918
|
+
var importFromCsv = (importFromCsvBody, signal) => {
|
|
919
|
+
const formData = new FormData();
|
|
920
|
+
if (importFromCsvBody.file !== void 0) {
|
|
921
|
+
formData.append(`file`, importFromCsvBody.file);
|
|
922
|
+
}
|
|
923
|
+
return request(
|
|
924
|
+
{
|
|
925
|
+
url: `/contacts/import/csv`,
|
|
926
|
+
method: "POST",
|
|
927
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
928
|
+
data: formData,
|
|
929
|
+
signal
|
|
930
|
+
}
|
|
931
|
+
);
|
|
932
|
+
};
|
|
933
|
+
var getImportFromCsvMutationOptions = (options) => {
|
|
934
|
+
const mutationKey = ["importFromCsv"];
|
|
935
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
936
|
+
const mutationFn = (props) => {
|
|
937
|
+
const { data } = props ?? {};
|
|
938
|
+
return importFromCsv(data);
|
|
939
|
+
};
|
|
940
|
+
return { mutationFn, ...mutationOptions };
|
|
941
|
+
};
|
|
942
|
+
var useImportFromCsv = (options, queryClient) => {
|
|
943
|
+
return (0, import_react_query4.useMutation)(getImportFromCsvMutationOptions(options), queryClient);
|
|
944
|
+
};
|
|
945
|
+
var exportToVcard = (signal) => {
|
|
946
|
+
return request(
|
|
947
|
+
{
|
|
948
|
+
url: `/contacts/export/vcard`,
|
|
949
|
+
method: "GET",
|
|
950
|
+
signal
|
|
951
|
+
}
|
|
952
|
+
);
|
|
953
|
+
};
|
|
954
|
+
var getExportToVcardQueryKey = () => {
|
|
955
|
+
return [
|
|
956
|
+
`/contacts/export/vcard`
|
|
957
|
+
];
|
|
958
|
+
};
|
|
959
|
+
var getExportToVcardQueryOptions = (options) => {
|
|
960
|
+
const { query: queryOptions } = options ?? {};
|
|
961
|
+
const queryKey = queryOptions?.queryKey ?? getExportToVcardQueryKey();
|
|
962
|
+
const queryFn = ({ signal }) => exportToVcard(signal);
|
|
963
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
964
|
+
};
|
|
965
|
+
function useExportToVcard(options, queryClient) {
|
|
966
|
+
const queryOptions = getExportToVcardQueryOptions(options);
|
|
967
|
+
const query = (0, import_react_query4.useQuery)(queryOptions, queryClient);
|
|
968
|
+
return withQueryKey4(query, queryOptions.queryKey);
|
|
969
|
+
}
|
|
970
|
+
var exportToCsv = (signal) => {
|
|
971
|
+
return request(
|
|
972
|
+
{
|
|
973
|
+
url: `/contacts/export/csv`,
|
|
974
|
+
method: "GET",
|
|
975
|
+
signal
|
|
976
|
+
}
|
|
977
|
+
);
|
|
978
|
+
};
|
|
979
|
+
var getExportToCsvQueryKey = () => {
|
|
980
|
+
return [
|
|
981
|
+
`/contacts/export/csv`
|
|
982
|
+
];
|
|
983
|
+
};
|
|
984
|
+
var getExportToCsvQueryOptions = (options) => {
|
|
985
|
+
const { query: queryOptions } = options ?? {};
|
|
986
|
+
const queryKey = queryOptions?.queryKey ?? getExportToCsvQueryKey();
|
|
987
|
+
const queryFn = ({ signal }) => exportToCsv(signal);
|
|
988
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
989
|
+
};
|
|
990
|
+
function useExportToCsv(options, queryClient) {
|
|
991
|
+
const queryOptions = getExportToCsvQueryOptions(options);
|
|
992
|
+
const query = (0, import_react_query4.useQuery)(queryOptions, queryClient);
|
|
993
|
+
return withQueryKey4(query, queryOptions.queryKey);
|
|
994
|
+
}
|
|
995
|
+
var toggleFavorite = (id, signal) => {
|
|
996
|
+
return request(
|
|
997
|
+
{
|
|
998
|
+
url: `/contacts/${id}/favorite`,
|
|
999
|
+
method: "PATCH",
|
|
1000
|
+
signal
|
|
1001
|
+
}
|
|
1002
|
+
);
|
|
1003
|
+
};
|
|
1004
|
+
var getToggleFavoriteMutationOptions = (options) => {
|
|
1005
|
+
const mutationKey = ["toggleFavorite"];
|
|
1006
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1007
|
+
const mutationFn = (props) => {
|
|
1008
|
+
const { id } = props ?? {};
|
|
1009
|
+
return toggleFavorite(id);
|
|
1010
|
+
};
|
|
1011
|
+
return { mutationFn, ...mutationOptions };
|
|
1012
|
+
};
|
|
1013
|
+
var useToggleFavorite = (options, queryClient) => {
|
|
1014
|
+
return (0, import_react_query4.useMutation)(getToggleFavoriteMutationOptions(options), queryClient);
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
// src/generated/react-query/endpoints/labels.tanstack.ts
|
|
1018
|
+
var import_react_query5 = require("@tanstack/react-query");
|
|
1019
|
+
var withQueryKey5 = (query, queryKey) => {
|
|
1020
|
+
const result = { queryKey };
|
|
1021
|
+
for (const key of Object.keys(query)) {
|
|
1022
|
+
if (key === "queryKey") continue;
|
|
1023
|
+
Object.defineProperty(result, key, {
|
|
1024
|
+
enumerable: true,
|
|
1025
|
+
configurable: true,
|
|
1026
|
+
get: () => query[key]
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
return result;
|
|
1030
|
+
};
|
|
1031
|
+
var createLabel = (createLabelBody, signal) => {
|
|
1032
|
+
return request(
|
|
1033
|
+
{
|
|
1034
|
+
url: `/labels`,
|
|
1035
|
+
method: "POST",
|
|
1036
|
+
headers: { "Content-Type": "application/json" },
|
|
1037
|
+
data: createLabelBody,
|
|
1038
|
+
signal
|
|
1039
|
+
}
|
|
1040
|
+
);
|
|
1041
|
+
};
|
|
1042
|
+
var getCreateLabelMutationOptions = (options) => {
|
|
1043
|
+
const mutationKey = ["createLabel"];
|
|
1044
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1045
|
+
const mutationFn = (props) => {
|
|
1046
|
+
const { data } = props ?? {};
|
|
1047
|
+
return createLabel(data);
|
|
1048
|
+
};
|
|
1049
|
+
return { mutationFn, ...mutationOptions };
|
|
1050
|
+
};
|
|
1051
|
+
var useCreateLabel = (options, queryClient) => {
|
|
1052
|
+
return (0, import_react_query5.useMutation)(getCreateLabelMutationOptions(options), queryClient);
|
|
1053
|
+
};
|
|
1054
|
+
var listLabel = (signal) => {
|
|
1055
|
+
return request(
|
|
1056
|
+
{
|
|
1057
|
+
url: `/labels`,
|
|
1058
|
+
method: "GET",
|
|
1059
|
+
signal
|
|
1060
|
+
}
|
|
1061
|
+
);
|
|
1062
|
+
};
|
|
1063
|
+
var getListLabelQueryKey = () => {
|
|
1064
|
+
return [
|
|
1065
|
+
`/labels`
|
|
1066
|
+
];
|
|
1067
|
+
};
|
|
1068
|
+
var getListLabelQueryOptions = (options) => {
|
|
1069
|
+
const { query: queryOptions } = options ?? {};
|
|
1070
|
+
const queryKey = queryOptions?.queryKey ?? getListLabelQueryKey();
|
|
1071
|
+
const queryFn = ({ signal }) => listLabel(signal);
|
|
1072
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
1073
|
+
};
|
|
1074
|
+
function useListLabel(options, queryClient) {
|
|
1075
|
+
const queryOptions = getListLabelQueryOptions(options);
|
|
1076
|
+
const query = (0, import_react_query5.useQuery)(queryOptions, queryClient);
|
|
1077
|
+
return withQueryKey5(query, queryOptions.queryKey);
|
|
1078
|
+
}
|
|
1079
|
+
var updateLabel = (id, updateLabelBody, signal) => {
|
|
1080
|
+
return request(
|
|
1081
|
+
{
|
|
1082
|
+
url: `/labels/${id}`,
|
|
1083
|
+
method: "PUT",
|
|
1084
|
+
headers: { "Content-Type": "application/json" },
|
|
1085
|
+
data: updateLabelBody,
|
|
1086
|
+
signal
|
|
1087
|
+
}
|
|
1088
|
+
);
|
|
1089
|
+
};
|
|
1090
|
+
var getUpdateLabelMutationOptions = (options) => {
|
|
1091
|
+
const mutationKey = ["updateLabel"];
|
|
1092
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1093
|
+
const mutationFn = (props) => {
|
|
1094
|
+
const { id, data } = props ?? {};
|
|
1095
|
+
return updateLabel(id, data);
|
|
1096
|
+
};
|
|
1097
|
+
return { mutationFn, ...mutationOptions };
|
|
1098
|
+
};
|
|
1099
|
+
var useUpdateLabel = (options, queryClient) => {
|
|
1100
|
+
return (0, import_react_query5.useMutation)(getUpdateLabelMutationOptions(options), queryClient);
|
|
1101
|
+
};
|
|
1102
|
+
var deleteLabel = (id, signal) => {
|
|
1103
|
+
return request(
|
|
1104
|
+
{
|
|
1105
|
+
url: `/labels/${id}`,
|
|
1106
|
+
method: "DELETE",
|
|
1107
|
+
signal
|
|
1108
|
+
}
|
|
1109
|
+
);
|
|
1110
|
+
};
|
|
1111
|
+
var getDeleteLabelMutationOptions = (options) => {
|
|
1112
|
+
const mutationKey = ["deleteLabel"];
|
|
1113
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1114
|
+
const mutationFn = (props) => {
|
|
1115
|
+
const { id } = props ?? {};
|
|
1116
|
+
return deleteLabel(id);
|
|
1117
|
+
};
|
|
1118
|
+
return { mutationFn, ...mutationOptions };
|
|
1119
|
+
};
|
|
1120
|
+
var useDeleteLabel = (options, queryClient) => {
|
|
1121
|
+
return (0, import_react_query5.useMutation)(getDeleteLabelMutationOptions(options), queryClient);
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
// src/generated/react-query/endpoints/leads.tanstack.ts
|
|
1125
|
+
var import_react_query6 = require("@tanstack/react-query");
|
|
1126
|
+
var withQueryKey6 = (query, queryKey) => {
|
|
1127
|
+
const result = { queryKey };
|
|
1128
|
+
for (const key of Object.keys(query)) {
|
|
1129
|
+
if (key === "queryKey") continue;
|
|
1130
|
+
Object.defineProperty(result, key, {
|
|
1131
|
+
enumerable: true,
|
|
1132
|
+
configurable: true,
|
|
1133
|
+
get: () => query[key]
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
return result;
|
|
1137
|
+
};
|
|
1138
|
+
var listLeads = (params, signal) => {
|
|
1139
|
+
return request(
|
|
1140
|
+
{
|
|
1141
|
+
url: `/leads`,
|
|
1142
|
+
method: "GET",
|
|
1143
|
+
params,
|
|
1144
|
+
signal
|
|
1145
|
+
}
|
|
1146
|
+
);
|
|
1147
|
+
};
|
|
1148
|
+
var getListLeadsQueryKey = (params) => {
|
|
1149
|
+
return [
|
|
1150
|
+
`/leads`,
|
|
1151
|
+
...params ? [params] : []
|
|
1152
|
+
];
|
|
1153
|
+
};
|
|
1154
|
+
var getListLeadsQueryOptions = (params, options) => {
|
|
1155
|
+
const { query: queryOptions } = options ?? {};
|
|
1156
|
+
const queryKey = queryOptions?.queryKey ?? getListLeadsQueryKey(params);
|
|
1157
|
+
const queryFn = ({ signal }) => listLeads(params, signal);
|
|
1158
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
1159
|
+
};
|
|
1160
|
+
function useListLeads(params, options, queryClient) {
|
|
1161
|
+
const queryOptions = getListLeadsQueryOptions(params, options);
|
|
1162
|
+
const query = (0, import_react_query6.useQuery)(queryOptions, queryClient);
|
|
1163
|
+
return withQueryKey6(query, queryOptions.queryKey);
|
|
1164
|
+
}
|
|
1165
|
+
var importLeads = (importLeadsBody, signal) => {
|
|
1166
|
+
const formData = new FormData();
|
|
1167
|
+
if (importLeadsBody.file !== void 0) {
|
|
1168
|
+
formData.append(`file`, importLeadsBody.file);
|
|
1169
|
+
}
|
|
1170
|
+
return request(
|
|
1171
|
+
{
|
|
1172
|
+
url: `/leads/import`,
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
1175
|
+
data: formData,
|
|
1176
|
+
signal
|
|
1177
|
+
}
|
|
1178
|
+
);
|
|
1179
|
+
};
|
|
1180
|
+
var getImportLeadsMutationOptions = (options) => {
|
|
1181
|
+
const mutationKey = ["importLeads"];
|
|
1182
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1183
|
+
const mutationFn = (props) => {
|
|
1184
|
+
const { data } = props ?? {};
|
|
1185
|
+
return importLeads(data);
|
|
1186
|
+
};
|
|
1187
|
+
return { mutationFn, ...mutationOptions };
|
|
1188
|
+
};
|
|
1189
|
+
var useImportLeads = (options, queryClient) => {
|
|
1190
|
+
return (0, import_react_query6.useMutation)(getImportLeadsMutationOptions(options), queryClient);
|
|
1191
|
+
};
|
|
1192
|
+
var getLead = (id, signal) => {
|
|
1193
|
+
return request(
|
|
1194
|
+
{
|
|
1195
|
+
url: `/leads/${id}`,
|
|
1196
|
+
method: "GET",
|
|
1197
|
+
signal
|
|
1198
|
+
}
|
|
1199
|
+
);
|
|
1200
|
+
};
|
|
1201
|
+
var getGetLeadQueryKey = (id) => {
|
|
1202
|
+
return [
|
|
1203
|
+
`/leads/${id}`
|
|
1204
|
+
];
|
|
1205
|
+
};
|
|
1206
|
+
var getGetLeadQueryOptions = (id, options) => {
|
|
1207
|
+
const { query: queryOptions } = options ?? {};
|
|
1208
|
+
const queryKey = queryOptions?.queryKey ?? getGetLeadQueryKey(id);
|
|
1209
|
+
const queryFn = ({ signal }) => getLead(id, signal);
|
|
1210
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
1211
|
+
};
|
|
1212
|
+
function useGetLead(id, options, queryClient) {
|
|
1213
|
+
const queryOptions = getGetLeadQueryOptions(id, options);
|
|
1214
|
+
const query = (0, import_react_query6.useQuery)(queryOptions, queryClient);
|
|
1215
|
+
return withQueryKey6(query, queryOptions.queryKey);
|
|
1216
|
+
}
|
|
1217
|
+
var updateLead = (id, updateLeadBody, signal) => {
|
|
1218
|
+
return request(
|
|
1219
|
+
{
|
|
1220
|
+
url: `/leads/${id}`,
|
|
1221
|
+
method: "PATCH",
|
|
1222
|
+
headers: { "Content-Type": "application/json" },
|
|
1223
|
+
data: updateLeadBody,
|
|
1224
|
+
signal
|
|
1225
|
+
}
|
|
1226
|
+
);
|
|
1227
|
+
};
|
|
1228
|
+
var getUpdateLeadMutationOptions = (options) => {
|
|
1229
|
+
const mutationKey = ["updateLead"];
|
|
1230
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1231
|
+
const mutationFn = (props) => {
|
|
1232
|
+
const { id, data } = props ?? {};
|
|
1233
|
+
return updateLead(id, data);
|
|
1234
|
+
};
|
|
1235
|
+
return { mutationFn, ...mutationOptions };
|
|
1236
|
+
};
|
|
1237
|
+
var useUpdateLead = (options, queryClient) => {
|
|
1238
|
+
return (0, import_react_query6.useMutation)(getUpdateLeadMutationOptions(options), queryClient);
|
|
1239
|
+
};
|
|
1240
|
+
var listLeadEvents = (id, signal) => {
|
|
1241
|
+
return request(
|
|
1242
|
+
{
|
|
1243
|
+
url: `/leads/${id}/events`,
|
|
1244
|
+
method: "GET",
|
|
1245
|
+
signal
|
|
1246
|
+
}
|
|
1247
|
+
);
|
|
1248
|
+
};
|
|
1249
|
+
var getListLeadEventsQueryKey = (id) => {
|
|
1250
|
+
return [
|
|
1251
|
+
`/leads/${id}/events`
|
|
1252
|
+
];
|
|
1253
|
+
};
|
|
1254
|
+
var getListLeadEventsQueryOptions = (id, options) => {
|
|
1255
|
+
const { query: queryOptions } = options ?? {};
|
|
1256
|
+
const queryKey = queryOptions?.queryKey ?? getListLeadEventsQueryKey(id);
|
|
1257
|
+
const queryFn = ({ signal }) => listLeadEvents(id, signal);
|
|
1258
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
1259
|
+
};
|
|
1260
|
+
function useListLeadEvents(id, options, queryClient) {
|
|
1261
|
+
const queryOptions = getListLeadEventsQueryOptions(id, options);
|
|
1262
|
+
const query = (0, import_react_query6.useQuery)(queryOptions, queryClient);
|
|
1263
|
+
return withQueryKey6(query, queryOptions.queryKey);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
// src/generated/react-query/endpoints/magnets.tanstack.ts
|
|
1267
|
+
var import_react_query7 = require("@tanstack/react-query");
|
|
1268
|
+
var withQueryKey7 = (query, queryKey) => {
|
|
1269
|
+
const result = { queryKey };
|
|
1270
|
+
for (const key of Object.keys(query)) {
|
|
1271
|
+
if (key === "queryKey") continue;
|
|
1272
|
+
Object.defineProperty(result, key, {
|
|
1273
|
+
enumerable: true,
|
|
1274
|
+
configurable: true,
|
|
1275
|
+
get: () => query[key]
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
return result;
|
|
1279
|
+
};
|
|
1280
|
+
var listLeadMagnets = (signal) => {
|
|
1281
|
+
return request(
|
|
1282
|
+
{
|
|
1283
|
+
url: `/lead-magnets`,
|
|
1284
|
+
method: "GET",
|
|
1285
|
+
signal
|
|
1286
|
+
}
|
|
1287
|
+
);
|
|
1288
|
+
};
|
|
1289
|
+
var getListLeadMagnetsQueryKey = () => {
|
|
1290
|
+
return [
|
|
1291
|
+
`/lead-magnets`
|
|
1292
|
+
];
|
|
1293
|
+
};
|
|
1294
|
+
var getListLeadMagnetsQueryOptions = (options) => {
|
|
1295
|
+
const { query: queryOptions } = options ?? {};
|
|
1296
|
+
const queryKey = queryOptions?.queryKey ?? getListLeadMagnetsQueryKey();
|
|
1297
|
+
const queryFn = ({ signal }) => listLeadMagnets(signal);
|
|
1298
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
1299
|
+
};
|
|
1300
|
+
function useListLeadMagnets(options, queryClient) {
|
|
1301
|
+
const queryOptions = getListLeadMagnetsQueryOptions(options);
|
|
1302
|
+
const query = (0, import_react_query7.useQuery)(queryOptions, queryClient);
|
|
1303
|
+
return withQueryKey7(query, queryOptions.queryKey);
|
|
1304
|
+
}
|
|
1305
|
+
var createLeadMagnet = (createLeadMagnetBody, signal) => {
|
|
1306
|
+
return request(
|
|
1307
|
+
{
|
|
1308
|
+
url: `/lead-magnets`,
|
|
1309
|
+
method: "POST",
|
|
1310
|
+
headers: { "Content-Type": "application/json" },
|
|
1311
|
+
data: createLeadMagnetBody,
|
|
1312
|
+
signal
|
|
1313
|
+
}
|
|
1314
|
+
);
|
|
1315
|
+
};
|
|
1316
|
+
var getCreateLeadMagnetMutationOptions = (options) => {
|
|
1317
|
+
const mutationKey = ["createLeadMagnet"];
|
|
1318
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1319
|
+
const mutationFn = (props) => {
|
|
1320
|
+
const { data } = props ?? {};
|
|
1321
|
+
return createLeadMagnet(data);
|
|
1322
|
+
};
|
|
1323
|
+
return { mutationFn, ...mutationOptions };
|
|
1324
|
+
};
|
|
1325
|
+
var useCreateLeadMagnet = (options, queryClient) => {
|
|
1326
|
+
return (0, import_react_query7.useMutation)(getCreateLeadMagnetMutationOptions(options), queryClient);
|
|
1327
|
+
};
|
|
1328
|
+
var uploadLeadMagnetFile = (uploadLeadMagnetFileBody, signal) => {
|
|
1329
|
+
const formData = new FormData();
|
|
1330
|
+
if (uploadLeadMagnetFileBody.file !== void 0) {
|
|
1331
|
+
formData.append(`file`, uploadLeadMagnetFileBody.file);
|
|
1332
|
+
}
|
|
1333
|
+
return request(
|
|
1334
|
+
{
|
|
1335
|
+
url: `/lead-magnets/upload`,
|
|
1336
|
+
method: "POST",
|
|
1337
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
1338
|
+
data: formData,
|
|
1339
|
+
signal
|
|
1340
|
+
}
|
|
1341
|
+
);
|
|
1342
|
+
};
|
|
1343
|
+
var getUploadLeadMagnetFileMutationOptions = (options) => {
|
|
1344
|
+
const mutationKey = ["uploadLeadMagnetFile"];
|
|
1345
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1346
|
+
const mutationFn = (props) => {
|
|
1347
|
+
const { data } = props ?? {};
|
|
1348
|
+
return uploadLeadMagnetFile(data);
|
|
1349
|
+
};
|
|
1350
|
+
return { mutationFn, ...mutationOptions };
|
|
1351
|
+
};
|
|
1352
|
+
var useUploadLeadMagnetFile = (options, queryClient) => {
|
|
1353
|
+
return (0, import_react_query7.useMutation)(getUploadLeadMagnetFileMutationOptions(options), queryClient);
|
|
1354
|
+
};
|
|
1355
|
+
var getLeadMagnet = (id, signal) => {
|
|
1356
|
+
return request(
|
|
1357
|
+
{
|
|
1358
|
+
url: `/lead-magnets/${id}`,
|
|
1359
|
+
method: "GET",
|
|
1360
|
+
signal
|
|
1361
|
+
}
|
|
1362
|
+
);
|
|
1363
|
+
};
|
|
1364
|
+
var getGetLeadMagnetQueryKey = (id) => {
|
|
1365
|
+
return [
|
|
1366
|
+
`/lead-magnets/${id}`
|
|
1367
|
+
];
|
|
1368
|
+
};
|
|
1369
|
+
var getGetLeadMagnetQueryOptions = (id, options) => {
|
|
1370
|
+
const { query: queryOptions } = options ?? {};
|
|
1371
|
+
const queryKey = queryOptions?.queryKey ?? getGetLeadMagnetQueryKey(id);
|
|
1372
|
+
const queryFn = ({ signal }) => getLeadMagnet(id, signal);
|
|
1373
|
+
return { queryKey, queryFn, enabled: id !== null && id !== void 0, ...queryOptions };
|
|
1374
|
+
};
|
|
1375
|
+
function useGetLeadMagnet(id, options, queryClient) {
|
|
1376
|
+
const queryOptions = getGetLeadMagnetQueryOptions(id, options);
|
|
1377
|
+
const query = (0, import_react_query7.useQuery)(queryOptions, queryClient);
|
|
1378
|
+
return withQueryKey7(query, queryOptions.queryKey);
|
|
1379
|
+
}
|
|
1380
|
+
var updateLeadMagnet = (id, updateLeadMagnetBody, signal) => {
|
|
1381
|
+
return request(
|
|
1382
|
+
{
|
|
1383
|
+
url: `/lead-magnets/${id}`,
|
|
1384
|
+
method: "PATCH",
|
|
1385
|
+
headers: { "Content-Type": "application/json" },
|
|
1386
|
+
data: updateLeadMagnetBody,
|
|
1387
|
+
signal
|
|
1388
|
+
}
|
|
1389
|
+
);
|
|
1390
|
+
};
|
|
1391
|
+
var getUpdateLeadMagnetMutationOptions = (options) => {
|
|
1392
|
+
const mutationKey = ["updateLeadMagnet"];
|
|
1393
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1394
|
+
const mutationFn = (props) => {
|
|
1395
|
+
const { id, data } = props ?? {};
|
|
1396
|
+
return updateLeadMagnet(id, data);
|
|
1397
|
+
};
|
|
1398
|
+
return { mutationFn, ...mutationOptions };
|
|
1399
|
+
};
|
|
1400
|
+
var useUpdateLeadMagnet = (options, queryClient) => {
|
|
1401
|
+
return (0, import_react_query7.useMutation)(getUpdateLeadMagnetMutationOptions(options), queryClient);
|
|
1402
|
+
};
|
|
1403
|
+
var deleteLeadMagnet = (id, signal) => {
|
|
1404
|
+
return request(
|
|
1405
|
+
{
|
|
1406
|
+
url: `/lead-magnets/${id}`,
|
|
1407
|
+
method: "DELETE",
|
|
1408
|
+
signal
|
|
1409
|
+
}
|
|
1410
|
+
);
|
|
1411
|
+
};
|
|
1412
|
+
var getDeleteLeadMagnetMutationOptions = (options) => {
|
|
1413
|
+
const mutationKey = ["deleteLeadMagnet"];
|
|
1414
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1415
|
+
const mutationFn = (props) => {
|
|
1416
|
+
const { id } = props ?? {};
|
|
1417
|
+
return deleteLeadMagnet(id);
|
|
1418
|
+
};
|
|
1419
|
+
return { mutationFn, ...mutationOptions };
|
|
1420
|
+
};
|
|
1421
|
+
var useDeleteLeadMagnet = (options, queryClient) => {
|
|
1422
|
+
return (0, import_react_query7.useMutation)(getDeleteLeadMagnetMutationOptions(options), queryClient);
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
// src/generated/react-query/endpoints/suppressions.tanstack.ts
|
|
1426
|
+
var import_react_query8 = require("@tanstack/react-query");
|
|
1427
|
+
var withQueryKey8 = (query, queryKey) => {
|
|
1428
|
+
const result = { queryKey };
|
|
1429
|
+
for (const key of Object.keys(query)) {
|
|
1430
|
+
if (key === "queryKey") continue;
|
|
1431
|
+
Object.defineProperty(result, key, {
|
|
1432
|
+
enumerable: true,
|
|
1433
|
+
configurable: true,
|
|
1434
|
+
get: () => query[key]
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
return result;
|
|
1438
|
+
};
|
|
1439
|
+
var listSuppressions = (signal) => {
|
|
1440
|
+
return request(
|
|
1441
|
+
{
|
|
1442
|
+
url: `/suppressions`,
|
|
1443
|
+
method: "GET",
|
|
1444
|
+
signal
|
|
1445
|
+
}
|
|
1446
|
+
);
|
|
1447
|
+
};
|
|
1448
|
+
var getListSuppressionsQueryKey = () => {
|
|
1449
|
+
return [
|
|
1450
|
+
`/suppressions`
|
|
1451
|
+
];
|
|
1452
|
+
};
|
|
1453
|
+
var getListSuppressionsQueryOptions = (options) => {
|
|
1454
|
+
const { query: queryOptions } = options ?? {};
|
|
1455
|
+
const queryKey = queryOptions?.queryKey ?? getListSuppressionsQueryKey();
|
|
1456
|
+
const queryFn = ({ signal }) => listSuppressions(signal);
|
|
1457
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
1458
|
+
};
|
|
1459
|
+
function useListSuppressions(options, queryClient) {
|
|
1460
|
+
const queryOptions = getListSuppressionsQueryOptions(options);
|
|
1461
|
+
const query = (0, import_react_query8.useQuery)(queryOptions, queryClient);
|
|
1462
|
+
return withQueryKey8(query, queryOptions.queryKey);
|
|
1463
|
+
}
|
|
1464
|
+
var createSuppression = (createSuppressionBody, signal) => {
|
|
1465
|
+
return request(
|
|
1466
|
+
{
|
|
1467
|
+
url: `/suppressions`,
|
|
1468
|
+
method: "POST",
|
|
1469
|
+
headers: { "Content-Type": "application/json" },
|
|
1470
|
+
data: createSuppressionBody,
|
|
1471
|
+
signal
|
|
1472
|
+
}
|
|
1473
|
+
);
|
|
1474
|
+
};
|
|
1475
|
+
var getCreateSuppressionMutationOptions = (options) => {
|
|
1476
|
+
const mutationKey = ["createSuppression"];
|
|
1477
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1478
|
+
const mutationFn = (props) => {
|
|
1479
|
+
const { data } = props ?? {};
|
|
1480
|
+
return createSuppression(data);
|
|
1481
|
+
};
|
|
1482
|
+
return { mutationFn, ...mutationOptions };
|
|
1483
|
+
};
|
|
1484
|
+
var useCreateSuppression = (options, queryClient) => {
|
|
1485
|
+
return (0, import_react_query8.useMutation)(getCreateSuppressionMutationOptions(options), queryClient);
|
|
1486
|
+
};
|
|
1487
|
+
var deleteSuppression = (id, signal) => {
|
|
1488
|
+
return request(
|
|
1489
|
+
{
|
|
1490
|
+
url: `/suppressions/${id}`,
|
|
1491
|
+
method: "DELETE",
|
|
1492
|
+
signal
|
|
1493
|
+
}
|
|
1494
|
+
);
|
|
1495
|
+
};
|
|
1496
|
+
var getDeleteSuppressionMutationOptions = (options) => {
|
|
1497
|
+
const mutationKey = ["deleteSuppression"];
|
|
1498
|
+
const { mutation: mutationOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey } };
|
|
1499
|
+
const mutationFn = (props) => {
|
|
1500
|
+
const { id } = props ?? {};
|
|
1501
|
+
return deleteSuppression(id);
|
|
1502
|
+
};
|
|
1503
|
+
return { mutationFn, ...mutationOptions };
|
|
1504
|
+
};
|
|
1505
|
+
var useDeleteSuppression = (options, queryClient) => {
|
|
1506
|
+
return (0, import_react_query8.useMutation)(getDeleteSuppressionMutationOptions(options), queryClient);
|
|
1507
|
+
};
|
|
1508
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1509
|
+
0 && (module.exports = {
|
|
1510
|
+
ContactProvider,
|
|
1511
|
+
addAudienceContact,
|
|
1512
|
+
assignLabel,
|
|
1513
|
+
createApiKey,
|
|
1514
|
+
createAudience,
|
|
1515
|
+
createContact,
|
|
1516
|
+
createLabel,
|
|
1517
|
+
createLeadMagnet,
|
|
1518
|
+
createSuppression,
|
|
1519
|
+
deleteAudience,
|
|
1520
|
+
deleteLabel,
|
|
1521
|
+
deleteLeadMagnet,
|
|
1522
|
+
deleteSuppression,
|
|
1523
|
+
deletedContact,
|
|
1524
|
+
exportToCsv,
|
|
1525
|
+
exportToVcard,
|
|
1526
|
+
getAccount,
|
|
1527
|
+
getAddAudienceContactMutationOptions,
|
|
1528
|
+
getApiKeyUsage,
|
|
1529
|
+
getAssignLabelMutationOptions,
|
|
1530
|
+
getAudience,
|
|
1531
|
+
getAudienceRecipients,
|
|
1532
|
+
getContact,
|
|
1533
|
+
getCreateApiKeyMutationOptions,
|
|
1534
|
+
getCreateAudienceMutationOptions,
|
|
1535
|
+
getCreateContactMutationOptions,
|
|
1536
|
+
getCreateLabelMutationOptions,
|
|
1537
|
+
getCreateLeadMagnetMutationOptions,
|
|
1538
|
+
getCreateSuppressionMutationOptions,
|
|
1539
|
+
getDeleteAudienceMutationOptions,
|
|
1540
|
+
getDeleteLabelMutationOptions,
|
|
1541
|
+
getDeleteLeadMagnetMutationOptions,
|
|
1542
|
+
getDeleteSuppressionMutationOptions,
|
|
1543
|
+
getDeletedContactMutationOptions,
|
|
1544
|
+
getExportToCsvQueryKey,
|
|
1545
|
+
getExportToCsvQueryOptions,
|
|
1546
|
+
getExportToVcardQueryKey,
|
|
1547
|
+
getExportToVcardQueryOptions,
|
|
1548
|
+
getGetAccountQueryKey,
|
|
1549
|
+
getGetAccountQueryOptions,
|
|
1550
|
+
getGetApiKeyUsageQueryKey,
|
|
1551
|
+
getGetApiKeyUsageQueryOptions,
|
|
1552
|
+
getGetAudienceQueryKey,
|
|
1553
|
+
getGetAudienceQueryOptions,
|
|
1554
|
+
getGetAudienceRecipientsQueryKey,
|
|
1555
|
+
getGetAudienceRecipientsQueryOptions,
|
|
1556
|
+
getGetContactQueryKey,
|
|
1557
|
+
getGetContactQueryOptions,
|
|
1558
|
+
getGetLeadMagnetQueryKey,
|
|
1559
|
+
getGetLeadMagnetQueryOptions,
|
|
1560
|
+
getGetLeadQueryKey,
|
|
1561
|
+
getGetLeadQueryOptions,
|
|
1562
|
+
getImportFromCsvMutationOptions,
|
|
1563
|
+
getImportFromVcardMutationOptions,
|
|
1564
|
+
getImportLeadsMutationOptions,
|
|
1565
|
+
getLead,
|
|
1566
|
+
getLeadMagnet,
|
|
1567
|
+
getListApiKeyScopesQueryKey,
|
|
1568
|
+
getListApiKeyScopesQueryOptions,
|
|
1569
|
+
getListApiKeysQueryKey,
|
|
1570
|
+
getListApiKeysQueryOptions,
|
|
1571
|
+
getListAudiencesQueryKey,
|
|
1572
|
+
getListAudiencesQueryOptions,
|
|
1573
|
+
getListContactQueryKey,
|
|
1574
|
+
getListContactQueryOptions,
|
|
1575
|
+
getListDuplicateQueryKey,
|
|
1576
|
+
getListDuplicateQueryOptions,
|
|
1577
|
+
getListLabelQueryKey,
|
|
1578
|
+
getListLabelQueryOptions,
|
|
1579
|
+
getListLeadEventsQueryKey,
|
|
1580
|
+
getListLeadEventsQueryOptions,
|
|
1581
|
+
getListLeadMagnetsQueryKey,
|
|
1582
|
+
getListLeadMagnetsQueryOptions,
|
|
1583
|
+
getListLeadsQueryKey,
|
|
1584
|
+
getListLeadsQueryOptions,
|
|
1585
|
+
getListSuppressionsQueryKey,
|
|
1586
|
+
getListSuppressionsQueryOptions,
|
|
1587
|
+
getMergeContactMutationOptions,
|
|
1588
|
+
getRemoveAudienceContactMutationOptions,
|
|
1589
|
+
getRemoveLabelMutationOptions,
|
|
1590
|
+
getRevokeApiKeyMutationOptions,
|
|
1591
|
+
getRotateApiKeyMutationOptions,
|
|
1592
|
+
getToggleFavoriteMutationOptions,
|
|
1593
|
+
getUpdateAudienceMutationOptions,
|
|
1594
|
+
getUpdateContactMutationOptions,
|
|
1595
|
+
getUpdateLabelMutationOptions,
|
|
1596
|
+
getUpdateLeadMagnetMutationOptions,
|
|
1597
|
+
getUpdateLeadMutationOptions,
|
|
1598
|
+
getUploadLeadMagnetFileMutationOptions,
|
|
1599
|
+
importFromCsv,
|
|
1600
|
+
importFromVcard,
|
|
1601
|
+
importLeads,
|
|
1602
|
+
listApiKeyScopes,
|
|
1603
|
+
listApiKeys,
|
|
1604
|
+
listAudiences,
|
|
1605
|
+
listContact,
|
|
1606
|
+
listDuplicate,
|
|
1607
|
+
listLabel,
|
|
1608
|
+
listLeadEvents,
|
|
1609
|
+
listLeadMagnets,
|
|
1610
|
+
listLeads,
|
|
1611
|
+
listSuppressions,
|
|
1612
|
+
mergeContact,
|
|
1613
|
+
removeAudienceContact,
|
|
1614
|
+
removeLabel,
|
|
1615
|
+
revokeApiKey,
|
|
1616
|
+
rotateApiKey,
|
|
1617
|
+
toggleFavorite,
|
|
1618
|
+
updateAudience,
|
|
1619
|
+
updateContact,
|
|
1620
|
+
updateLabel,
|
|
1621
|
+
updateLead,
|
|
1622
|
+
updateLeadMagnet,
|
|
1623
|
+
uploadLeadMagnetFile,
|
|
1624
|
+
useAddAudienceContact,
|
|
1625
|
+
useAssignLabel,
|
|
1626
|
+
useContactClient,
|
|
1627
|
+
useCreateApiKey,
|
|
1628
|
+
useCreateAudience,
|
|
1629
|
+
useCreateContact,
|
|
1630
|
+
useCreateLabel,
|
|
1631
|
+
useCreateLeadMagnet,
|
|
1632
|
+
useCreateSuppression,
|
|
1633
|
+
useDeleteAudience,
|
|
1634
|
+
useDeleteLabel,
|
|
1635
|
+
useDeleteLeadMagnet,
|
|
1636
|
+
useDeleteSuppression,
|
|
1637
|
+
useDeletedContact,
|
|
1638
|
+
useExportToCsv,
|
|
1639
|
+
useExportToVcard,
|
|
1640
|
+
useGetAccount,
|
|
1641
|
+
useGetApiKeyUsage,
|
|
1642
|
+
useGetAudience,
|
|
1643
|
+
useGetAudienceRecipients,
|
|
1644
|
+
useGetContact,
|
|
1645
|
+
useGetLead,
|
|
1646
|
+
useGetLeadMagnet,
|
|
1647
|
+
useImportFromCsv,
|
|
1648
|
+
useImportFromVcard,
|
|
1649
|
+
useImportLeads,
|
|
1650
|
+
useListApiKeyScopes,
|
|
1651
|
+
useListApiKeys,
|
|
1652
|
+
useListAudiences,
|
|
1653
|
+
useListContact,
|
|
1654
|
+
useListDuplicate,
|
|
1655
|
+
useListLabel,
|
|
1656
|
+
useListLeadEvents,
|
|
1657
|
+
useListLeadMagnets,
|
|
1658
|
+
useListLeads,
|
|
1659
|
+
useListSuppressions,
|
|
1660
|
+
useMergeContact,
|
|
1661
|
+
useRemoveAudienceContact,
|
|
1662
|
+
useRemoveLabel,
|
|
1663
|
+
useRevokeApiKey,
|
|
1664
|
+
useRotateApiKey,
|
|
1665
|
+
useToggleFavorite,
|
|
1666
|
+
useUpdateAudience,
|
|
1667
|
+
useUpdateContact,
|
|
1668
|
+
useUpdateLabel,
|
|
1669
|
+
useUpdateLead,
|
|
1670
|
+
useUpdateLeadMagnet,
|
|
1671
|
+
useUploadLeadMagnetFile
|
|
1672
|
+
});
|
|
1673
|
+
//# sourceMappingURL=react-query.cjs.map
|