@lessly/sdk-app 1.0.0 → 3.0.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/brain/index.cjs +196 -0
- package/dist/brain/index.cjs.map +1 -0
- package/dist/brain/index.d.cts +156 -0
- package/dist/brain/index.d.ts +156 -0
- package/dist/brain/index.js +157 -0
- package/dist/brain/index.js.map +1 -0
- package/dist/client.gen-C2BnhKLx.d.cts +14782 -0
- package/dist/client.gen-C2BnhKLx.d.ts +14782 -0
- package/dist/consent/index.cjs +81 -0
- package/dist/consent/index.cjs.map +1 -0
- package/dist/consent/index.d.cts +64 -0
- package/dist/consent/index.d.ts +64 -0
- package/dist/consent/index.js +65 -0
- package/dist/consent/index.js.map +1 -0
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +3692 -1174
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3692 -1174
- package/dist/index.js.map +1 -1
- package/dist/mail/index.cjs +261 -0
- package/dist/mail/index.cjs.map +1 -0
- package/dist/mail/index.d.cts +209 -0
- package/dist/mail/index.d.ts +209 -0
- package/dist/mail/index.js +209 -0
- package/dist/mail/index.js.map +1 -0
- package/dist/organization/index.cjs +20 -0
- package/dist/organization/index.cjs.map +1 -1
- package/dist/organization/index.d.cts +18 -2
- package/dist/organization/index.d.ts +18 -2
- package/dist/organization/index.js +17 -1
- package/dist/organization/index.js.map +1 -1
- package/dist/playground/index.d.cts +1 -1
- package/dist/playground/index.d.ts +1 -1
- package/dist/tracking/index.cjs +201 -0
- package/dist/tracking/index.cjs.map +1 -0
- package/dist/tracking/index.d.cts +160 -0
- package/dist/tracking/index.d.ts +160 -0
- package/dist/tracking/index.js +161 -0
- package/dist/tracking/index.js.map +1 -0
- package/dist/waitlist/index.cjs +41 -0
- package/dist/waitlist/index.cjs.map +1 -0
- package/dist/waitlist/index.d.cts +32 -0
- package/dist/waitlist/index.d.ts +32 -0
- package/dist/waitlist/index.js +33 -0
- package/dist/waitlist/index.js.map +1 -0
- package/docs/recipes/sdk-usage.md +7 -0
- package/package.json +27 -2
- package/src/gen/bindings.gen.ts +3831 -1335
- package/src/gen/brain/index.ts +3 -0
- package/src/gen/brain/queryOptions.gen.ts +257 -0
- package/src/gen/client.gen.ts +612 -0
- package/src/gen/consent/index.ts +3 -0
- package/src/gen/consent/queryOptions.gen.ts +102 -0
- package/src/gen/mail/index.ts +3 -0
- package/src/gen/mail/queryOptions.gen.ts +331 -0
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/organization/index.ts +1 -1
- package/src/gen/organization/queryOptions.gen.ts +26 -0
- package/src/gen/tracking/index.ts +3 -0
- package/src/gen/tracking/queryOptions.gen.ts +261 -0
- package/src/gen/types.gen.ts +13591 -2542
- package/src/gen/waitlist/index.ts +3 -0
- package/src/gen/waitlist/queryOptions.gen.ts +50 -0
- package/dist/client.gen-B9FjzHej.d.cts +0 -3314
- package/dist/client.gen-B9FjzHej.d.ts +0 -3314
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
TrackingApiKeysCreateInput,
|
|
5
|
+
TrackingApiKeysListInput,
|
|
6
|
+
TrackingApiKeysListOutput,
|
|
7
|
+
TrackingApiKeysRevokeInput,
|
|
8
|
+
TrackingApiKeysRotateInput,
|
|
9
|
+
TrackingDomainsCreateInput,
|
|
10
|
+
TrackingDomainsDeleteInput,
|
|
11
|
+
TrackingDomainsGetInput,
|
|
12
|
+
TrackingDomainsGetOutput,
|
|
13
|
+
TrackingDomainsListInput,
|
|
14
|
+
TrackingDomainsListOutput,
|
|
15
|
+
TrackingDomainsVerifyInput,
|
|
16
|
+
TrackingEventNamesArchiveInput,
|
|
17
|
+
TrackingEventNamesListInput,
|
|
18
|
+
TrackingEventNamesListOutput,
|
|
19
|
+
TrackingEventNamesUnarchiveInput,
|
|
20
|
+
TrackingGoogleadsConnectionStatusInput,
|
|
21
|
+
TrackingGoogleadsConnectionStatusOutput,
|
|
22
|
+
TrackingGoogleadsConversionActionsInput,
|
|
23
|
+
TrackingGoogleadsConversionActionsOutput,
|
|
24
|
+
TrackingGoogleadsFeedbackConfigGetInput,
|
|
25
|
+
TrackingGoogleadsFeedbackConfigGetOutput,
|
|
26
|
+
TrackingGoogleadsFeedbackConfigSetInput,
|
|
27
|
+
TrackingGoogleadsFeedbackRunInput,
|
|
28
|
+
TrackingGoogleadsFeedbackStatusInput,
|
|
29
|
+
TrackingGoogleadsFeedbackStatusOutput,
|
|
30
|
+
TrackingGoogleadsFeedbackUploadsInput,
|
|
31
|
+
TrackingGoogleadsFeedbackUploadsOutput,
|
|
32
|
+
TrackingGoogleadsRoasReportInput,
|
|
33
|
+
TrackingGoogleadsRoasReportOutput,
|
|
34
|
+
TrackingGoogleadsSyncNowInput,
|
|
35
|
+
TrackingGoogleadsTrackingHealthInput,
|
|
36
|
+
TrackingGoogleadsTrackingHealthOutput,
|
|
37
|
+
TrackingGoogleadsUsVsPlatformInput,
|
|
38
|
+
TrackingGoogleadsUsVsPlatformOutput,
|
|
39
|
+
TrackingIdentityHealthInput,
|
|
40
|
+
TrackingIdentityHealthOutput,
|
|
41
|
+
TrackingInstallDomainsCreateInput,
|
|
42
|
+
TrackingInstallDomainsDeleteInput,
|
|
43
|
+
TrackingInstallDomainsListInput,
|
|
44
|
+
TrackingInstallDomainsListOutput,
|
|
45
|
+
TrackingLinkDomainsCreateInput,
|
|
46
|
+
TrackingLinkDomainsDeleteInput,
|
|
47
|
+
TrackingLinkDomainsListInput,
|
|
48
|
+
TrackingLinkDomainsListOutput,
|
|
49
|
+
TrackingLiveEventsListInput,
|
|
50
|
+
TrackingLiveEventsListOutput,
|
|
51
|
+
TrackingProfilesDeleteInput,
|
|
52
|
+
TrackingProfilesExportInput,
|
|
53
|
+
TrackingProfilesExportOutput,
|
|
54
|
+
TrackingProfilesGetInput,
|
|
55
|
+
TrackingProfilesGetOutput,
|
|
56
|
+
TrackingProfilesListInput,
|
|
57
|
+
TrackingProfilesListOutput,
|
|
58
|
+
TrackingReportsAttributedJourneyInput,
|
|
59
|
+
TrackingReportsAttributedJourneyOutput,
|
|
60
|
+
TrackingReportsRevenueBySourceInput,
|
|
61
|
+
TrackingReportsRevenueBySourceOutput,
|
|
62
|
+
TrackingReportsSourcePeopleInput,
|
|
63
|
+
TrackingReportsSourcePeopleOutput,
|
|
64
|
+
TrackingSnippetsGetInput,
|
|
65
|
+
TrackingSnippetsGetOutput,
|
|
66
|
+
} from '../types.gen';
|
|
67
|
+
|
|
68
|
+
export const trackingApiKeysCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
69
|
+
mutationKey: ['tracking', 'api-keys', 'create'],
|
|
70
|
+
mutationFn: (input: TrackingApiKeysCreateInput) => sdk['tracking']['api-keys']['create'](input),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const trackingApiKeysListQueryOptions = (sdk: GeneratedClient, input: TrackingApiKeysListInput) => ({
|
|
74
|
+
queryKey: ['tracking', 'api-keys', 'list', input] as const,
|
|
75
|
+
queryFn: () => sdk['tracking']['api-keys']['list'](input),
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export const trackingApiKeysRevokeMutationOptions = (sdk: GeneratedClient) => ({
|
|
79
|
+
mutationKey: ['tracking', 'api-keys', 'revoke'],
|
|
80
|
+
mutationFn: (input: TrackingApiKeysRevokeInput) => sdk['tracking']['api-keys']['revoke'](input),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export const trackingApiKeysRotateMutationOptions = (sdk: GeneratedClient) => ({
|
|
84
|
+
mutationKey: ['tracking', 'api-keys', 'rotate'],
|
|
85
|
+
mutationFn: (input: TrackingApiKeysRotateInput) => sdk['tracking']['api-keys']['rotate'](input),
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export const trackingDomainsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
89
|
+
mutationKey: ['tracking', 'domains', 'create'],
|
|
90
|
+
mutationFn: (input: TrackingDomainsCreateInput) => sdk['tracking']['domains']['create'](input),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const trackingDomainsDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
94
|
+
mutationKey: ['tracking', 'domains', 'delete'],
|
|
95
|
+
mutationFn: (input: TrackingDomainsDeleteInput) => sdk['tracking']['domains']['delete'](input),
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const trackingDomainsGetQueryOptions = (sdk: GeneratedClient, input: TrackingDomainsGetInput) => ({
|
|
99
|
+
queryKey: ['tracking', 'domains', 'get', input] as const,
|
|
100
|
+
queryFn: () => sdk['tracking']['domains']['get'](input),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export const trackingDomainsListQueryOptions = (sdk: GeneratedClient, input: TrackingDomainsListInput) => ({
|
|
104
|
+
queryKey: ['tracking', 'domains', 'list', input] as const,
|
|
105
|
+
queryFn: () => sdk['tracking']['domains']['list'](input),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export const trackingDomainsVerifyMutationOptions = (sdk: GeneratedClient) => ({
|
|
109
|
+
mutationKey: ['tracking', 'domains', 'verify'],
|
|
110
|
+
mutationFn: (input: TrackingDomainsVerifyInput) => sdk['tracking']['domains']['verify'](input),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export const trackingEventNamesArchiveMutationOptions = (sdk: GeneratedClient) => ({
|
|
114
|
+
mutationKey: ['tracking', 'event-names', 'archive'],
|
|
115
|
+
mutationFn: (input: TrackingEventNamesArchiveInput) => sdk['tracking']['event-names']['archive'](input),
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export const trackingEventNamesListQueryOptions = (sdk: GeneratedClient, input: TrackingEventNamesListInput) => ({
|
|
119
|
+
queryKey: ['tracking', 'event-names', 'list', input] as const,
|
|
120
|
+
queryFn: () => sdk['tracking']['event-names']['list'](input),
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
export const trackingEventNamesUnarchiveMutationOptions = (sdk: GeneratedClient) => ({
|
|
124
|
+
mutationKey: ['tracking', 'event-names', 'unarchive'],
|
|
125
|
+
mutationFn: (input: TrackingEventNamesUnarchiveInput) => sdk['tracking']['event-names']['unarchive'](input),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export const trackingGoogleadsConnectionStatusQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsConnectionStatusInput) => ({
|
|
129
|
+
queryKey: ['tracking', 'googleads-connection', 'status', input] as const,
|
|
130
|
+
queryFn: () => sdk['tracking']['googleads-connection']['status'](input),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
export const trackingGoogleadsConversionActionsQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsConversionActionsInput) => ({
|
|
134
|
+
queryKey: ['tracking', 'googleads-conversion', 'actions', input] as const,
|
|
135
|
+
queryFn: () => sdk['tracking']['googleads-conversion']['actions'](input),
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
export const trackingGoogleadsFeedbackConfigGetQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsFeedbackConfigGetInput) => ({
|
|
139
|
+
queryKey: ['tracking', 'googleads-feedback-config', 'get', input] as const,
|
|
140
|
+
queryFn: () => sdk['tracking']['googleads-feedback-config']['get'](input),
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export const trackingGoogleadsFeedbackConfigSetMutationOptions = (sdk: GeneratedClient) => ({
|
|
144
|
+
mutationKey: ['tracking', 'googleads-feedback-config', 'set'],
|
|
145
|
+
mutationFn: (input: TrackingGoogleadsFeedbackConfigSetInput) => sdk['tracking']['googleads-feedback-config']['set'](input),
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
export const trackingGoogleadsFeedbackRunMutationOptions = (sdk: GeneratedClient) => ({
|
|
149
|
+
mutationKey: ['tracking', 'googleads-feedback', 'run'],
|
|
150
|
+
mutationFn: (input: TrackingGoogleadsFeedbackRunInput) => sdk['tracking']['googleads-feedback']['run'](input),
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export const trackingGoogleadsFeedbackStatusQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsFeedbackStatusInput) => ({
|
|
154
|
+
queryKey: ['tracking', 'googleads-feedback', 'status', input] as const,
|
|
155
|
+
queryFn: () => sdk['tracking']['googleads-feedback']['status'](input),
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
export const trackingGoogleadsFeedbackUploadsQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsFeedbackUploadsInput) => ({
|
|
159
|
+
queryKey: ['tracking', 'googleads-feedback', 'uploads', input] as const,
|
|
160
|
+
queryFn: () => sdk['tracking']['googleads-feedback']['uploads'](input),
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
export const trackingGoogleadsRoasReportQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsRoasReportInput) => ({
|
|
164
|
+
queryKey: ['tracking', 'googleads-roas', 'report', input] as const,
|
|
165
|
+
queryFn: () => sdk['tracking']['googleads-roas']['report'](input),
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
export const trackingGoogleadsSyncNowMutationOptions = (sdk: GeneratedClient) => ({
|
|
169
|
+
mutationKey: ['tracking', 'googleads-sync', 'now'],
|
|
170
|
+
mutationFn: (input: TrackingGoogleadsSyncNowInput) => sdk['tracking']['googleads-sync']['now'](input),
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
export const trackingGoogleadsTrackingHealthQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsTrackingHealthInput) => ({
|
|
174
|
+
queryKey: ['tracking', 'googleads-tracking', 'health', input] as const,
|
|
175
|
+
queryFn: () => sdk['tracking']['googleads-tracking']['health'](input),
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export const trackingGoogleadsUsVsPlatformQueryOptions = (sdk: GeneratedClient, input: TrackingGoogleadsUsVsPlatformInput) => ({
|
|
179
|
+
queryKey: ['tracking', 'googleads-us-vs', 'platform', input] as const,
|
|
180
|
+
queryFn: () => sdk['tracking']['googleads-us-vs']['platform'](input),
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export const trackingIdentityHealthQueryOptions = (sdk: GeneratedClient, input: TrackingIdentityHealthInput) => ({
|
|
184
|
+
queryKey: ['tracking', 'identity', 'health', input] as const,
|
|
185
|
+
queryFn: () => sdk['tracking']['identity']['health'](input),
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
export const trackingInstallDomainsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
189
|
+
mutationKey: ['tracking', 'install-domains', 'create'],
|
|
190
|
+
mutationFn: (input: TrackingInstallDomainsCreateInput) => sdk['tracking']['install-domains']['create'](input),
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export const trackingInstallDomainsDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
194
|
+
mutationKey: ['tracking', 'install-domains', 'delete'],
|
|
195
|
+
mutationFn: (input: TrackingInstallDomainsDeleteInput) => sdk['tracking']['install-domains']['delete'](input),
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
export const trackingInstallDomainsListQueryOptions = (sdk: GeneratedClient, input: TrackingInstallDomainsListInput) => ({
|
|
199
|
+
queryKey: ['tracking', 'install-domains', 'list', input] as const,
|
|
200
|
+
queryFn: () => sdk['tracking']['install-domains']['list'](input),
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
export const trackingLinkDomainsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
204
|
+
mutationKey: ['tracking', 'link-domains', 'create'],
|
|
205
|
+
mutationFn: (input: TrackingLinkDomainsCreateInput) => sdk['tracking']['link-domains']['create'](input),
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
export const trackingLinkDomainsDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
209
|
+
mutationKey: ['tracking', 'link-domains', 'delete'],
|
|
210
|
+
mutationFn: (input: TrackingLinkDomainsDeleteInput) => sdk['tracking']['link-domains']['delete'](input),
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
export const trackingLinkDomainsListQueryOptions = (sdk: GeneratedClient, input: TrackingLinkDomainsListInput) => ({
|
|
214
|
+
queryKey: ['tracking', 'link-domains', 'list', input] as const,
|
|
215
|
+
queryFn: () => sdk['tracking']['link-domains']['list'](input),
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
export const trackingLiveEventsListQueryOptions = (sdk: GeneratedClient, input: TrackingLiveEventsListInput) => ({
|
|
219
|
+
queryKey: ['tracking', 'live-events', 'list', input] as const,
|
|
220
|
+
queryFn: () => sdk['tracking']['live-events']['list'](input),
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
export const trackingProfilesDeleteMutationOptions = (sdk: GeneratedClient) => ({
|
|
224
|
+
mutationKey: ['tracking', 'profiles', 'delete'],
|
|
225
|
+
mutationFn: (input: TrackingProfilesDeleteInput) => sdk['tracking']['profiles']['delete'](input),
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
export const trackingProfilesExportQueryOptions = (sdk: GeneratedClient, input: TrackingProfilesExportInput) => ({
|
|
229
|
+
queryKey: ['tracking', 'profiles', 'export', input] as const,
|
|
230
|
+
queryFn: () => sdk['tracking']['profiles']['export'](input),
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
export const trackingProfilesGetQueryOptions = (sdk: GeneratedClient, input: TrackingProfilesGetInput) => ({
|
|
234
|
+
queryKey: ['tracking', 'profiles', 'get', input] as const,
|
|
235
|
+
queryFn: () => sdk['tracking']['profiles']['get'](input),
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
export const trackingProfilesListQueryOptions = (sdk: GeneratedClient, input: TrackingProfilesListInput) => ({
|
|
239
|
+
queryKey: ['tracking', 'profiles', 'list', input] as const,
|
|
240
|
+
queryFn: () => sdk['tracking']['profiles']['list'](input),
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
export const trackingReportsAttributedJourneyQueryOptions = (sdk: GeneratedClient, input: TrackingReportsAttributedJourneyInput) => ({
|
|
244
|
+
queryKey: ['tracking', 'reports-attributed', 'journey', input] as const,
|
|
245
|
+
queryFn: () => sdk['tracking']['reports-attributed']['journey'](input),
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
export const trackingReportsRevenueBySourceQueryOptions = (sdk: GeneratedClient, input: TrackingReportsRevenueBySourceInput) => ({
|
|
249
|
+
queryKey: ['tracking', 'reports-revenue-by', 'source', input] as const,
|
|
250
|
+
queryFn: () => sdk['tracking']['reports-revenue-by']['source'](input),
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
export const trackingReportsSourcePeopleQueryOptions = (sdk: GeneratedClient, input: TrackingReportsSourcePeopleInput) => ({
|
|
254
|
+
queryKey: ['tracking', 'reports-source', 'people', input] as const,
|
|
255
|
+
queryFn: () => sdk['tracking']['reports-source']['people'](input),
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
export const trackingSnippetsGetQueryOptions = (sdk: GeneratedClient, input: TrackingSnippetsGetInput) => ({
|
|
259
|
+
queryKey: ['tracking', 'snippets', 'get', input] as const,
|
|
260
|
+
queryFn: () => sdk['tracking']['snippets']['get'](input),
|
|
261
|
+
});
|