@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
package/dist/axios.d.cts
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { C as ContactConfig } from './instance-B82No27F.cjs';
|
|
2
|
+
export { c as configure } from './instance-B82No27F.cjs';
|
|
3
|
+
import { A as ApiResponse, C as CreateSuppressionBody, a as CreateLeadMagnetBody, U as UploadLeadMagnetFileBody, b as UpdateLeadMagnetBody, L as ListLeadsParams, I as ImportLeadsBody, c as UpdateLeadBody, d as CreateLabelBody, e as LabelResponse, f as LabelListResponse, g as UpdateLabelBody, D as DeleteLabel200, h as CreateContactBody, i as ContactResponse, j as ListContactParams, k as ContactListResponse, l as UpdateContactBody, m as DeletedContact200, n as AssignLabelBody, o as ListDuplicate200, M as MergeContactBody, p as ImportFromVcardBody, q as ImportFromVcard200, r as ImportFromCsvBody, s as ImportFromCsv200, E as ExportToVcard200, t as ExportToCsv200, u as CreateAudienceBody, v as UpdateAudienceBody, w as AddAudienceContactBody, x as CreateApiKeyBody } from './uploadLeadMagnetFileBody.tanstack-ClBcqB6y.cjs';
|
|
4
|
+
|
|
5
|
+
declare function createClient(options: ContactConfig): {
|
|
6
|
+
listSuppressions: () => Promise<ApiResponse>;
|
|
7
|
+
createSuppression: (createSuppressionBody: CreateSuppressionBody) => Promise<ApiResponse>;
|
|
8
|
+
deleteSuppression: (id: string) => Promise<ApiResponse>;
|
|
9
|
+
listLeadMagnets: () => Promise<ApiResponse>;
|
|
10
|
+
createLeadMagnet: (createLeadMagnetBody: CreateLeadMagnetBody) => Promise<ApiResponse>;
|
|
11
|
+
uploadLeadMagnetFile: (uploadLeadMagnetFileBody: UploadLeadMagnetFileBody) => Promise<ApiResponse>;
|
|
12
|
+
getLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
13
|
+
updateLeadMagnet: (id: string, updateLeadMagnetBody: UpdateLeadMagnetBody) => Promise<ApiResponse>;
|
|
14
|
+
deleteLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
15
|
+
listLeads: (params?: ListLeadsParams) => Promise<ApiResponse>;
|
|
16
|
+
importLeads: (importLeadsBody: ImportLeadsBody) => Promise<ApiResponse>;
|
|
17
|
+
getLead: (id: string) => Promise<ApiResponse>;
|
|
18
|
+
updateLead: (id: string, updateLeadBody: UpdateLeadBody) => Promise<ApiResponse>;
|
|
19
|
+
listLeadEvents: (id: string) => Promise<ApiResponse>;
|
|
20
|
+
createLabel: (createLabelBody: CreateLabelBody) => Promise<LabelResponse>;
|
|
21
|
+
listLabel: () => Promise<LabelListResponse>;
|
|
22
|
+
updateLabel: (id: string, updateLabelBody: UpdateLabelBody) => Promise<LabelResponse>;
|
|
23
|
+
deleteLabel: (id: string) => Promise<DeleteLabel200>;
|
|
24
|
+
createContact: (createContactBody: CreateContactBody) => Promise<ContactResponse>;
|
|
25
|
+
listContact: (params?: ListContactParams) => Promise<ContactListResponse>;
|
|
26
|
+
getContact: (id: string) => Promise<ContactResponse>;
|
|
27
|
+
updateContact: (id: string, updateContactBody: UpdateContactBody) => Promise<ContactResponse>;
|
|
28
|
+
deletedContact: (id: string) => Promise<DeletedContact200>;
|
|
29
|
+
assignLabel: (id: string, assignLabelBody: AssignLabelBody) => Promise<ContactResponse>;
|
|
30
|
+
removeLabel: (id: string, labelId: string) => Promise<ContactResponse>;
|
|
31
|
+
listDuplicate: () => Promise<ListDuplicate200>;
|
|
32
|
+
mergeContact: (mergeContactBody: MergeContactBody) => Promise<ContactResponse>;
|
|
33
|
+
importFromVcard: (importFromVcardBody: ImportFromVcardBody) => Promise<ImportFromVcard200>;
|
|
34
|
+
importFromCsv: (importFromCsvBody: ImportFromCsvBody) => Promise<ImportFromCsv200>;
|
|
35
|
+
exportToVcard: () => Promise<ExportToVcard200>;
|
|
36
|
+
exportToCsv: () => Promise<ExportToCsv200>;
|
|
37
|
+
toggleFavorite: (id: string) => Promise<ApiResponse>;
|
|
38
|
+
listAudiences: () => Promise<ApiResponse>;
|
|
39
|
+
createAudience: (createAudienceBody: CreateAudienceBody) => Promise<ApiResponse>;
|
|
40
|
+
getAudience: (id: string) => Promise<ApiResponse>;
|
|
41
|
+
updateAudience: (id: string, updateAudienceBody: UpdateAudienceBody) => Promise<ApiResponse>;
|
|
42
|
+
deleteAudience: (id: string) => Promise<ApiResponse>;
|
|
43
|
+
getAudienceRecipients: (id: string) => Promise<ApiResponse>;
|
|
44
|
+
addAudienceContact: (id: string, addAudienceContactBody: AddAudienceContactBody) => Promise<ApiResponse>;
|
|
45
|
+
removeAudienceContact: (id: string, leadId: string) => Promise<ApiResponse>;
|
|
46
|
+
listApiKeyScopes: () => Promise<ApiResponse>;
|
|
47
|
+
listApiKeys: () => Promise<ApiResponse>;
|
|
48
|
+
createApiKey: (createApiKeyBody: CreateApiKeyBody) => Promise<ApiResponse>;
|
|
49
|
+
revokeApiKey: (id: string) => Promise<ApiResponse>;
|
|
50
|
+
rotateApiKey: (id: string) => Promise<ApiResponse>;
|
|
51
|
+
getApiKeyUsage: (id: string) => Promise<ApiResponse>;
|
|
52
|
+
getAccount: () => Promise<ApiResponse>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Generated by orval v8.19.0 🍺
|
|
57
|
+
* Do not edit manually.
|
|
58
|
+
* Default module
|
|
59
|
+
* OpenAPI spec version: 1.0.0
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
declare const getAccount: () => {
|
|
63
|
+
getAccount: () => Promise<ApiResponse>;
|
|
64
|
+
};
|
|
65
|
+
type GetAccountResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAccount>['getAccount']>>>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Generated by orval v8.19.0 🍺
|
|
69
|
+
* Do not edit manually.
|
|
70
|
+
* Default module
|
|
71
|
+
* OpenAPI spec version: 1.0.0
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
declare const getApiKeys: () => {
|
|
75
|
+
listApiKeyScopes: () => Promise<ApiResponse>;
|
|
76
|
+
listApiKeys: () => Promise<ApiResponse>;
|
|
77
|
+
createApiKey: (createApiKeyBody: CreateApiKeyBody) => Promise<ApiResponse>;
|
|
78
|
+
revokeApiKey: (id: string) => Promise<ApiResponse>;
|
|
79
|
+
rotateApiKey: (id: string) => Promise<ApiResponse>;
|
|
80
|
+
getApiKeyUsage: (id: string) => Promise<ApiResponse>;
|
|
81
|
+
};
|
|
82
|
+
type ListApiKeyScopesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeyScopes']>>>;
|
|
83
|
+
type ListApiKeysResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeys']>>>;
|
|
84
|
+
type CreateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['createApiKey']>>>;
|
|
85
|
+
type RevokeApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['revokeApiKey']>>>;
|
|
86
|
+
type RotateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['rotateApiKey']>>>;
|
|
87
|
+
type GetApiKeyUsageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['getApiKeyUsage']>>>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Generated by orval v8.19.0 🍺
|
|
91
|
+
* Do not edit manually.
|
|
92
|
+
* Default module
|
|
93
|
+
* OpenAPI spec version: 1.0.0
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
declare const getAudiences: () => {
|
|
97
|
+
listAudiences: () => Promise<ApiResponse>;
|
|
98
|
+
createAudience: (createAudienceBody: CreateAudienceBody) => Promise<ApiResponse>;
|
|
99
|
+
getAudience: (id: string) => Promise<ApiResponse>;
|
|
100
|
+
updateAudience: (id: string, updateAudienceBody: UpdateAudienceBody) => Promise<ApiResponse>;
|
|
101
|
+
deleteAudience: (id: string) => Promise<ApiResponse>;
|
|
102
|
+
getAudienceRecipients: (id: string) => Promise<ApiResponse>;
|
|
103
|
+
addAudienceContact: (id: string, addAudienceContactBody: AddAudienceContactBody) => Promise<ApiResponse>;
|
|
104
|
+
removeAudienceContact: (id: string, leadId: string) => Promise<ApiResponse>;
|
|
105
|
+
};
|
|
106
|
+
type ListAudiencesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['listAudiences']>>>;
|
|
107
|
+
type CreateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['createAudience']>>>;
|
|
108
|
+
type GetAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudience']>>>;
|
|
109
|
+
type UpdateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['updateAudience']>>>;
|
|
110
|
+
type DeleteAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['deleteAudience']>>>;
|
|
111
|
+
type GetAudienceRecipientsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudienceRecipients']>>>;
|
|
112
|
+
type AddAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['addAudienceContact']>>>;
|
|
113
|
+
type RemoveAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['removeAudienceContact']>>>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Generated by orval v8.19.0 🍺
|
|
117
|
+
* Do not edit manually.
|
|
118
|
+
* Default module
|
|
119
|
+
* OpenAPI spec version: 1.0.0
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
declare const getContacts: () => {
|
|
123
|
+
createContact: (createContactBody: CreateContactBody) => Promise<ContactResponse>;
|
|
124
|
+
listContact: (params?: ListContactParams) => Promise<ContactListResponse>;
|
|
125
|
+
getContact: (id: string) => Promise<ContactResponse>;
|
|
126
|
+
updateContact: (id: string, updateContactBody: UpdateContactBody) => Promise<ContactResponse>;
|
|
127
|
+
deletedContact: (id: string) => Promise<DeletedContact200>;
|
|
128
|
+
assignLabel: (id: string, assignLabelBody: AssignLabelBody) => Promise<ContactResponse>;
|
|
129
|
+
removeLabel: (id: string, labelId: string) => Promise<ContactResponse>;
|
|
130
|
+
listDuplicate: () => Promise<ListDuplicate200>;
|
|
131
|
+
mergeContact: (mergeContactBody: MergeContactBody) => Promise<ContactResponse>;
|
|
132
|
+
importFromVcard: (importFromVcardBody: ImportFromVcardBody) => Promise<ImportFromVcard200>;
|
|
133
|
+
importFromCsv: (importFromCsvBody: ImportFromCsvBody) => Promise<ImportFromCsv200>;
|
|
134
|
+
exportToVcard: () => Promise<ExportToVcard200>;
|
|
135
|
+
exportToCsv: () => Promise<ExportToCsv200>;
|
|
136
|
+
toggleFavorite: (id: string) => Promise<ApiResponse>;
|
|
137
|
+
};
|
|
138
|
+
type CreateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['createContact']>>>;
|
|
139
|
+
type ListContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listContact']>>>;
|
|
140
|
+
type GetContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['getContact']>>>;
|
|
141
|
+
type UpdateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['updateContact']>>>;
|
|
142
|
+
type DeletedContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['deletedContact']>>>;
|
|
143
|
+
type AssignLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['assignLabel']>>>;
|
|
144
|
+
type RemoveLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['removeLabel']>>>;
|
|
145
|
+
type ListDuplicateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listDuplicate']>>>;
|
|
146
|
+
type MergeContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['mergeContact']>>>;
|
|
147
|
+
type ImportFromVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromVcard']>>>;
|
|
148
|
+
type ImportFromCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromCsv']>>>;
|
|
149
|
+
type ExportToVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToVcard']>>>;
|
|
150
|
+
type ExportToCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToCsv']>>>;
|
|
151
|
+
type ToggleFavoriteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['toggleFavorite']>>>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated by orval v8.19.0 🍺
|
|
155
|
+
* Do not edit manually.
|
|
156
|
+
* Default module
|
|
157
|
+
* OpenAPI spec version: 1.0.0
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
declare const getLabels: () => {
|
|
161
|
+
createLabel: (createLabelBody: CreateLabelBody) => Promise<LabelResponse>;
|
|
162
|
+
listLabel: () => Promise<LabelListResponse>;
|
|
163
|
+
updateLabel: (id: string, updateLabelBody: UpdateLabelBody) => Promise<LabelResponse>;
|
|
164
|
+
deleteLabel: (id: string) => Promise<DeleteLabel200>;
|
|
165
|
+
};
|
|
166
|
+
type CreateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['createLabel']>>>;
|
|
167
|
+
type ListLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['listLabel']>>>;
|
|
168
|
+
type UpdateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['updateLabel']>>>;
|
|
169
|
+
type DeleteLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['deleteLabel']>>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Generated by orval v8.19.0 🍺
|
|
173
|
+
* Do not edit manually.
|
|
174
|
+
* Default module
|
|
175
|
+
* OpenAPI spec version: 1.0.0
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
declare const getLeads: () => {
|
|
179
|
+
listLeads: (params?: ListLeadsParams) => Promise<ApiResponse>;
|
|
180
|
+
importLeads: (importLeadsBody: ImportLeadsBody) => Promise<ApiResponse>;
|
|
181
|
+
getLead: (id: string) => Promise<ApiResponse>;
|
|
182
|
+
updateLead: (id: string, updateLeadBody: UpdateLeadBody) => Promise<ApiResponse>;
|
|
183
|
+
listLeadEvents: (id: string) => Promise<ApiResponse>;
|
|
184
|
+
};
|
|
185
|
+
type ListLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeads']>>>;
|
|
186
|
+
type ImportLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['importLeads']>>>;
|
|
187
|
+
type GetLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['getLead']>>>;
|
|
188
|
+
type UpdateLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['updateLead']>>>;
|
|
189
|
+
type ListLeadEventsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeadEvents']>>>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Generated by orval v8.19.0 🍺
|
|
193
|
+
* Do not edit manually.
|
|
194
|
+
* Default module
|
|
195
|
+
* OpenAPI spec version: 1.0.0
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
declare const getMagnets: () => {
|
|
199
|
+
listLeadMagnets: () => Promise<ApiResponse>;
|
|
200
|
+
createLeadMagnet: (createLeadMagnetBody: CreateLeadMagnetBody) => Promise<ApiResponse>;
|
|
201
|
+
uploadLeadMagnetFile: (uploadLeadMagnetFileBody: UploadLeadMagnetFileBody) => Promise<ApiResponse>;
|
|
202
|
+
getLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
203
|
+
updateLeadMagnet: (id: string, updateLeadMagnetBody: UpdateLeadMagnetBody) => Promise<ApiResponse>;
|
|
204
|
+
deleteLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
205
|
+
};
|
|
206
|
+
type ListLeadMagnetsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['listLeadMagnets']>>>;
|
|
207
|
+
type CreateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['createLeadMagnet']>>>;
|
|
208
|
+
type UploadLeadMagnetFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['uploadLeadMagnetFile']>>>;
|
|
209
|
+
type GetLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['getLeadMagnet']>>>;
|
|
210
|
+
type UpdateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['updateLeadMagnet']>>>;
|
|
211
|
+
type DeleteLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['deleteLeadMagnet']>>>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Generated by orval v8.19.0 🍺
|
|
215
|
+
* Do not edit manually.
|
|
216
|
+
* Default module
|
|
217
|
+
* OpenAPI spec version: 1.0.0
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
declare const getSuppressions: () => {
|
|
221
|
+
listSuppressions: () => Promise<ApiResponse>;
|
|
222
|
+
createSuppression: (createSuppressionBody: CreateSuppressionBody) => Promise<ApiResponse>;
|
|
223
|
+
deleteSuppression: (id: string) => Promise<ApiResponse>;
|
|
224
|
+
};
|
|
225
|
+
type ListSuppressionsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['listSuppressions']>>>;
|
|
226
|
+
type CreateSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['createSuppression']>>>;
|
|
227
|
+
type DeleteSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['deleteSuppression']>>>;
|
|
228
|
+
|
|
229
|
+
export { type AddAudienceContactResult, type AssignLabelResult, ContactConfig, type CreateApiKeyResult, type CreateAudienceResult, type CreateContactResult, type CreateLabelResult, type CreateLeadMagnetResult, type CreateSuppressionResult, type DeleteAudienceResult, type DeleteLabelResult, type DeleteLeadMagnetResult, type DeleteSuppressionResult, type DeletedContactResult, type ExportToCsvResult, type ExportToVcardResult, type GetAccountResult, type GetApiKeyUsageResult, type GetAudienceRecipientsResult, type GetAudienceResult, type GetContactResult, type GetLeadMagnetResult, type GetLeadResult, type ImportFromCsvResult, type ImportFromVcardResult, type ImportLeadsResult, type ListApiKeyScopesResult, type ListApiKeysResult, type ListAudiencesResult, type ListContactResult, type ListDuplicateResult, type ListLabelResult, type ListLeadEventsResult, type ListLeadMagnetsResult, type ListLeadsResult, type ListSuppressionsResult, type MergeContactResult, type RemoveAudienceContactResult, type RemoveLabelResult, type RevokeApiKeyResult, type RotateApiKeyResult, type ToggleFavoriteResult, type UpdateAudienceResult, type UpdateContactResult, type UpdateLabelResult, type UpdateLeadMagnetResult, type UpdateLeadResult, type UploadLeadMagnetFileResult, createClient, getAccount, getApiKeys, getAudiences, getContacts, getLabels, getLeads, getMagnets, getSuppressions };
|
package/dist/axios.d.ts
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { C as ContactConfig } from './instance-B82No27F.js';
|
|
2
|
+
export { c as configure } from './instance-B82No27F.js';
|
|
3
|
+
import { A as ApiResponse, C as CreateSuppressionBody, a as CreateLeadMagnetBody, U as UploadLeadMagnetFileBody, b as UpdateLeadMagnetBody, L as ListLeadsParams, I as ImportLeadsBody, c as UpdateLeadBody, d as CreateLabelBody, e as LabelResponse, f as LabelListResponse, g as UpdateLabelBody, D as DeleteLabel200, h as CreateContactBody, i as ContactResponse, j as ListContactParams, k as ContactListResponse, l as UpdateContactBody, m as DeletedContact200, n as AssignLabelBody, o as ListDuplicate200, M as MergeContactBody, p as ImportFromVcardBody, q as ImportFromVcard200, r as ImportFromCsvBody, s as ImportFromCsv200, E as ExportToVcard200, t as ExportToCsv200, u as CreateAudienceBody, v as UpdateAudienceBody, w as AddAudienceContactBody, x as CreateApiKeyBody } from './uploadLeadMagnetFileBody.tanstack-ClBcqB6y.js';
|
|
4
|
+
|
|
5
|
+
declare function createClient(options: ContactConfig): {
|
|
6
|
+
listSuppressions: () => Promise<ApiResponse>;
|
|
7
|
+
createSuppression: (createSuppressionBody: CreateSuppressionBody) => Promise<ApiResponse>;
|
|
8
|
+
deleteSuppression: (id: string) => Promise<ApiResponse>;
|
|
9
|
+
listLeadMagnets: () => Promise<ApiResponse>;
|
|
10
|
+
createLeadMagnet: (createLeadMagnetBody: CreateLeadMagnetBody) => Promise<ApiResponse>;
|
|
11
|
+
uploadLeadMagnetFile: (uploadLeadMagnetFileBody: UploadLeadMagnetFileBody) => Promise<ApiResponse>;
|
|
12
|
+
getLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
13
|
+
updateLeadMagnet: (id: string, updateLeadMagnetBody: UpdateLeadMagnetBody) => Promise<ApiResponse>;
|
|
14
|
+
deleteLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
15
|
+
listLeads: (params?: ListLeadsParams) => Promise<ApiResponse>;
|
|
16
|
+
importLeads: (importLeadsBody: ImportLeadsBody) => Promise<ApiResponse>;
|
|
17
|
+
getLead: (id: string) => Promise<ApiResponse>;
|
|
18
|
+
updateLead: (id: string, updateLeadBody: UpdateLeadBody) => Promise<ApiResponse>;
|
|
19
|
+
listLeadEvents: (id: string) => Promise<ApiResponse>;
|
|
20
|
+
createLabel: (createLabelBody: CreateLabelBody) => Promise<LabelResponse>;
|
|
21
|
+
listLabel: () => Promise<LabelListResponse>;
|
|
22
|
+
updateLabel: (id: string, updateLabelBody: UpdateLabelBody) => Promise<LabelResponse>;
|
|
23
|
+
deleteLabel: (id: string) => Promise<DeleteLabel200>;
|
|
24
|
+
createContact: (createContactBody: CreateContactBody) => Promise<ContactResponse>;
|
|
25
|
+
listContact: (params?: ListContactParams) => Promise<ContactListResponse>;
|
|
26
|
+
getContact: (id: string) => Promise<ContactResponse>;
|
|
27
|
+
updateContact: (id: string, updateContactBody: UpdateContactBody) => Promise<ContactResponse>;
|
|
28
|
+
deletedContact: (id: string) => Promise<DeletedContact200>;
|
|
29
|
+
assignLabel: (id: string, assignLabelBody: AssignLabelBody) => Promise<ContactResponse>;
|
|
30
|
+
removeLabel: (id: string, labelId: string) => Promise<ContactResponse>;
|
|
31
|
+
listDuplicate: () => Promise<ListDuplicate200>;
|
|
32
|
+
mergeContact: (mergeContactBody: MergeContactBody) => Promise<ContactResponse>;
|
|
33
|
+
importFromVcard: (importFromVcardBody: ImportFromVcardBody) => Promise<ImportFromVcard200>;
|
|
34
|
+
importFromCsv: (importFromCsvBody: ImportFromCsvBody) => Promise<ImportFromCsv200>;
|
|
35
|
+
exportToVcard: () => Promise<ExportToVcard200>;
|
|
36
|
+
exportToCsv: () => Promise<ExportToCsv200>;
|
|
37
|
+
toggleFavorite: (id: string) => Promise<ApiResponse>;
|
|
38
|
+
listAudiences: () => Promise<ApiResponse>;
|
|
39
|
+
createAudience: (createAudienceBody: CreateAudienceBody) => Promise<ApiResponse>;
|
|
40
|
+
getAudience: (id: string) => Promise<ApiResponse>;
|
|
41
|
+
updateAudience: (id: string, updateAudienceBody: UpdateAudienceBody) => Promise<ApiResponse>;
|
|
42
|
+
deleteAudience: (id: string) => Promise<ApiResponse>;
|
|
43
|
+
getAudienceRecipients: (id: string) => Promise<ApiResponse>;
|
|
44
|
+
addAudienceContact: (id: string, addAudienceContactBody: AddAudienceContactBody) => Promise<ApiResponse>;
|
|
45
|
+
removeAudienceContact: (id: string, leadId: string) => Promise<ApiResponse>;
|
|
46
|
+
listApiKeyScopes: () => Promise<ApiResponse>;
|
|
47
|
+
listApiKeys: () => Promise<ApiResponse>;
|
|
48
|
+
createApiKey: (createApiKeyBody: CreateApiKeyBody) => Promise<ApiResponse>;
|
|
49
|
+
revokeApiKey: (id: string) => Promise<ApiResponse>;
|
|
50
|
+
rotateApiKey: (id: string) => Promise<ApiResponse>;
|
|
51
|
+
getApiKeyUsage: (id: string) => Promise<ApiResponse>;
|
|
52
|
+
getAccount: () => Promise<ApiResponse>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Generated by orval v8.19.0 🍺
|
|
57
|
+
* Do not edit manually.
|
|
58
|
+
* Default module
|
|
59
|
+
* OpenAPI spec version: 1.0.0
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
declare const getAccount: () => {
|
|
63
|
+
getAccount: () => Promise<ApiResponse>;
|
|
64
|
+
};
|
|
65
|
+
type GetAccountResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAccount>['getAccount']>>>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Generated by orval v8.19.0 🍺
|
|
69
|
+
* Do not edit manually.
|
|
70
|
+
* Default module
|
|
71
|
+
* OpenAPI spec version: 1.0.0
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
declare const getApiKeys: () => {
|
|
75
|
+
listApiKeyScopes: () => Promise<ApiResponse>;
|
|
76
|
+
listApiKeys: () => Promise<ApiResponse>;
|
|
77
|
+
createApiKey: (createApiKeyBody: CreateApiKeyBody) => Promise<ApiResponse>;
|
|
78
|
+
revokeApiKey: (id: string) => Promise<ApiResponse>;
|
|
79
|
+
rotateApiKey: (id: string) => Promise<ApiResponse>;
|
|
80
|
+
getApiKeyUsage: (id: string) => Promise<ApiResponse>;
|
|
81
|
+
};
|
|
82
|
+
type ListApiKeyScopesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeyScopes']>>>;
|
|
83
|
+
type ListApiKeysResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['listApiKeys']>>>;
|
|
84
|
+
type CreateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['createApiKey']>>>;
|
|
85
|
+
type RevokeApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['revokeApiKey']>>>;
|
|
86
|
+
type RotateApiKeyResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['rotateApiKey']>>>;
|
|
87
|
+
type GetApiKeyUsageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getApiKeys>['getApiKeyUsage']>>>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Generated by orval v8.19.0 🍺
|
|
91
|
+
* Do not edit manually.
|
|
92
|
+
* Default module
|
|
93
|
+
* OpenAPI spec version: 1.0.0
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
declare const getAudiences: () => {
|
|
97
|
+
listAudiences: () => Promise<ApiResponse>;
|
|
98
|
+
createAudience: (createAudienceBody: CreateAudienceBody) => Promise<ApiResponse>;
|
|
99
|
+
getAudience: (id: string) => Promise<ApiResponse>;
|
|
100
|
+
updateAudience: (id: string, updateAudienceBody: UpdateAudienceBody) => Promise<ApiResponse>;
|
|
101
|
+
deleteAudience: (id: string) => Promise<ApiResponse>;
|
|
102
|
+
getAudienceRecipients: (id: string) => Promise<ApiResponse>;
|
|
103
|
+
addAudienceContact: (id: string, addAudienceContactBody: AddAudienceContactBody) => Promise<ApiResponse>;
|
|
104
|
+
removeAudienceContact: (id: string, leadId: string) => Promise<ApiResponse>;
|
|
105
|
+
};
|
|
106
|
+
type ListAudiencesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['listAudiences']>>>;
|
|
107
|
+
type CreateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['createAudience']>>>;
|
|
108
|
+
type GetAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudience']>>>;
|
|
109
|
+
type UpdateAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['updateAudience']>>>;
|
|
110
|
+
type DeleteAudienceResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['deleteAudience']>>>;
|
|
111
|
+
type GetAudienceRecipientsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['getAudienceRecipients']>>>;
|
|
112
|
+
type AddAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['addAudienceContact']>>>;
|
|
113
|
+
type RemoveAudienceContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getAudiences>['removeAudienceContact']>>>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Generated by orval v8.19.0 🍺
|
|
117
|
+
* Do not edit manually.
|
|
118
|
+
* Default module
|
|
119
|
+
* OpenAPI spec version: 1.0.0
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
declare const getContacts: () => {
|
|
123
|
+
createContact: (createContactBody: CreateContactBody) => Promise<ContactResponse>;
|
|
124
|
+
listContact: (params?: ListContactParams) => Promise<ContactListResponse>;
|
|
125
|
+
getContact: (id: string) => Promise<ContactResponse>;
|
|
126
|
+
updateContact: (id: string, updateContactBody: UpdateContactBody) => Promise<ContactResponse>;
|
|
127
|
+
deletedContact: (id: string) => Promise<DeletedContact200>;
|
|
128
|
+
assignLabel: (id: string, assignLabelBody: AssignLabelBody) => Promise<ContactResponse>;
|
|
129
|
+
removeLabel: (id: string, labelId: string) => Promise<ContactResponse>;
|
|
130
|
+
listDuplicate: () => Promise<ListDuplicate200>;
|
|
131
|
+
mergeContact: (mergeContactBody: MergeContactBody) => Promise<ContactResponse>;
|
|
132
|
+
importFromVcard: (importFromVcardBody: ImportFromVcardBody) => Promise<ImportFromVcard200>;
|
|
133
|
+
importFromCsv: (importFromCsvBody: ImportFromCsvBody) => Promise<ImportFromCsv200>;
|
|
134
|
+
exportToVcard: () => Promise<ExportToVcard200>;
|
|
135
|
+
exportToCsv: () => Promise<ExportToCsv200>;
|
|
136
|
+
toggleFavorite: (id: string) => Promise<ApiResponse>;
|
|
137
|
+
};
|
|
138
|
+
type CreateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['createContact']>>>;
|
|
139
|
+
type ListContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listContact']>>>;
|
|
140
|
+
type GetContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['getContact']>>>;
|
|
141
|
+
type UpdateContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['updateContact']>>>;
|
|
142
|
+
type DeletedContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['deletedContact']>>>;
|
|
143
|
+
type AssignLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['assignLabel']>>>;
|
|
144
|
+
type RemoveLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['removeLabel']>>>;
|
|
145
|
+
type ListDuplicateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['listDuplicate']>>>;
|
|
146
|
+
type MergeContactResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['mergeContact']>>>;
|
|
147
|
+
type ImportFromVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromVcard']>>>;
|
|
148
|
+
type ImportFromCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['importFromCsv']>>>;
|
|
149
|
+
type ExportToVcardResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToVcard']>>>;
|
|
150
|
+
type ExportToCsvResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['exportToCsv']>>>;
|
|
151
|
+
type ToggleFavoriteResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getContacts>['toggleFavorite']>>>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated by orval v8.19.0 🍺
|
|
155
|
+
* Do not edit manually.
|
|
156
|
+
* Default module
|
|
157
|
+
* OpenAPI spec version: 1.0.0
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
declare const getLabels: () => {
|
|
161
|
+
createLabel: (createLabelBody: CreateLabelBody) => Promise<LabelResponse>;
|
|
162
|
+
listLabel: () => Promise<LabelListResponse>;
|
|
163
|
+
updateLabel: (id: string, updateLabelBody: UpdateLabelBody) => Promise<LabelResponse>;
|
|
164
|
+
deleteLabel: (id: string) => Promise<DeleteLabel200>;
|
|
165
|
+
};
|
|
166
|
+
type CreateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['createLabel']>>>;
|
|
167
|
+
type ListLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['listLabel']>>>;
|
|
168
|
+
type UpdateLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['updateLabel']>>>;
|
|
169
|
+
type DeleteLabelResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLabels>['deleteLabel']>>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Generated by orval v8.19.0 🍺
|
|
173
|
+
* Do not edit manually.
|
|
174
|
+
* Default module
|
|
175
|
+
* OpenAPI spec version: 1.0.0
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
declare const getLeads: () => {
|
|
179
|
+
listLeads: (params?: ListLeadsParams) => Promise<ApiResponse>;
|
|
180
|
+
importLeads: (importLeadsBody: ImportLeadsBody) => Promise<ApiResponse>;
|
|
181
|
+
getLead: (id: string) => Promise<ApiResponse>;
|
|
182
|
+
updateLead: (id: string, updateLeadBody: UpdateLeadBody) => Promise<ApiResponse>;
|
|
183
|
+
listLeadEvents: (id: string) => Promise<ApiResponse>;
|
|
184
|
+
};
|
|
185
|
+
type ListLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeads']>>>;
|
|
186
|
+
type ImportLeadsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['importLeads']>>>;
|
|
187
|
+
type GetLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['getLead']>>>;
|
|
188
|
+
type UpdateLeadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['updateLead']>>>;
|
|
189
|
+
type ListLeadEventsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getLeads>['listLeadEvents']>>>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Generated by orval v8.19.0 🍺
|
|
193
|
+
* Do not edit manually.
|
|
194
|
+
* Default module
|
|
195
|
+
* OpenAPI spec version: 1.0.0
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
declare const getMagnets: () => {
|
|
199
|
+
listLeadMagnets: () => Promise<ApiResponse>;
|
|
200
|
+
createLeadMagnet: (createLeadMagnetBody: CreateLeadMagnetBody) => Promise<ApiResponse>;
|
|
201
|
+
uploadLeadMagnetFile: (uploadLeadMagnetFileBody: UploadLeadMagnetFileBody) => Promise<ApiResponse>;
|
|
202
|
+
getLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
203
|
+
updateLeadMagnet: (id: string, updateLeadMagnetBody: UpdateLeadMagnetBody) => Promise<ApiResponse>;
|
|
204
|
+
deleteLeadMagnet: (id: string) => Promise<ApiResponse>;
|
|
205
|
+
};
|
|
206
|
+
type ListLeadMagnetsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['listLeadMagnets']>>>;
|
|
207
|
+
type CreateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['createLeadMagnet']>>>;
|
|
208
|
+
type UploadLeadMagnetFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['uploadLeadMagnetFile']>>>;
|
|
209
|
+
type GetLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['getLeadMagnet']>>>;
|
|
210
|
+
type UpdateLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['updateLeadMagnet']>>>;
|
|
211
|
+
type DeleteLeadMagnetResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getMagnets>['deleteLeadMagnet']>>>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Generated by orval v8.19.0 🍺
|
|
215
|
+
* Do not edit manually.
|
|
216
|
+
* Default module
|
|
217
|
+
* OpenAPI spec version: 1.0.0
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
declare const getSuppressions: () => {
|
|
221
|
+
listSuppressions: () => Promise<ApiResponse>;
|
|
222
|
+
createSuppression: (createSuppressionBody: CreateSuppressionBody) => Promise<ApiResponse>;
|
|
223
|
+
deleteSuppression: (id: string) => Promise<ApiResponse>;
|
|
224
|
+
};
|
|
225
|
+
type ListSuppressionsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['listSuppressions']>>>;
|
|
226
|
+
type CreateSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['createSuppression']>>>;
|
|
227
|
+
type DeleteSuppressionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getSuppressions>['deleteSuppression']>>>;
|
|
228
|
+
|
|
229
|
+
export { type AddAudienceContactResult, type AssignLabelResult, ContactConfig, type CreateApiKeyResult, type CreateAudienceResult, type CreateContactResult, type CreateLabelResult, type CreateLeadMagnetResult, type CreateSuppressionResult, type DeleteAudienceResult, type DeleteLabelResult, type DeleteLeadMagnetResult, type DeleteSuppressionResult, type DeletedContactResult, type ExportToCsvResult, type ExportToVcardResult, type GetAccountResult, type GetApiKeyUsageResult, type GetAudienceRecipientsResult, type GetAudienceResult, type GetContactResult, type GetLeadMagnetResult, type GetLeadResult, type ImportFromCsvResult, type ImportFromVcardResult, type ImportLeadsResult, type ListApiKeyScopesResult, type ListApiKeysResult, type ListAudiencesResult, type ListContactResult, type ListDuplicateResult, type ListLabelResult, type ListLeadEventsResult, type ListLeadMagnetsResult, type ListLeadsResult, type ListSuppressionsResult, type MergeContactResult, type RemoveAudienceContactResult, type RemoveLabelResult, type RevokeApiKeyResult, type RotateApiKeyResult, type ToggleFavoriteResult, type UpdateAudienceResult, type UpdateContactResult, type UpdateLabelResult, type UpdateLeadMagnetResult, type UpdateLeadResult, type UploadLeadMagnetFileResult, createClient, getAccount, getApiKeys, getAudiences, getContacts, getLabels, getLeads, getMagnets, getSuppressions };
|