@lessly/sdk-app 48.0.4 → 49.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/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.cjs +0 -5
- package/dist/brain/index.cjs.map +1 -1
- package/dist/brain/index.d.cts +2 -6
- package/dist/brain/index.d.ts +2 -6
- package/dist/brain/index.js +1 -5
- package/dist/brain/index.js.map +1 -1
- package/dist/{client.gen-BsjxuDLy.d.cts → client.gen-CLRsCNvG.d.cts} +4630 -531
- package/dist/{client.gen-BsjxuDLy.d.ts → client.gen-CLRsCNvG.d.ts} +4630 -531
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/content/index.cjs +161 -0
- package/dist/content/index.cjs.map +1 -0
- package/dist/content/index.d.cts +128 -0
- package/dist/content/index.d.ts +128 -0
- package/dist/content/index.js +129 -0
- package/dist/content/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 +600 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -3
- package/dist/index.d.ts +72 -3
- package/dist/index.js +600 -14
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/observe/index.d.cts +1 -1
- package/dist/observe/index.d.ts +1 -1
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/realtime/index.d.cts +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/support/index.d.cts +1 -1
- package/dist/support/index.d.ts +1 -1
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/users/index.d.cts +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/docs/recipes/sdk-usage.md +50 -0
- package/docs/rules.md +13 -0
- package/package.json +7 -2
- package/src/gen/bindings.gen.ts +536 -14
- package/src/gen/brain/index.ts +1 -1
- package/src/gen/brain/queryOptions.gen.ts +0 -7
- package/src/gen/client.gen.ts +113 -5
- package/src/gen/content/index.ts +3 -0
- package/src/gen/content/queryOptions.gen.ts +202 -0
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/types.gen.ts +4155 -274
package/src/gen/client.gen.ts
CHANGED
|
@@ -82,8 +82,6 @@ import type {
|
|
|
82
82
|
BrainProductSharedMemoryResetOutput,
|
|
83
83
|
BrainRestoreStatusInput,
|
|
84
84
|
BrainRestoreStatusOutput,
|
|
85
|
-
BrainUsageReportInput,
|
|
86
|
-
BrainUsageReportOutput,
|
|
87
85
|
ConsentConfigCookieDomainUpsertInput,
|
|
88
86
|
ConsentConfigCookieDomainUpsertOutput,
|
|
89
87
|
ConsentConfigCustomizationUpsertInput,
|
|
@@ -114,6 +112,68 @@ import type {
|
|
|
114
112
|
ConsentRecordsExportOutput,
|
|
115
113
|
ConsentStatsGetInput,
|
|
116
114
|
ConsentStatsGetOutput,
|
|
115
|
+
ContentChannelsBindInput,
|
|
116
|
+
ContentChannelsBindOutput,
|
|
117
|
+
ContentChannelsGetInput,
|
|
118
|
+
ContentChannelsGetOutput,
|
|
119
|
+
ContentChannelsListInput,
|
|
120
|
+
ContentChannelsListOutput,
|
|
121
|
+
ContentChannelsResumeInput,
|
|
122
|
+
ContentChannelsResumeOutput,
|
|
123
|
+
ContentChannelsUnbindInput,
|
|
124
|
+
ContentChannelsUnbindOutput,
|
|
125
|
+
ContentChannelsUpdateInput,
|
|
126
|
+
ContentChannelsUpdateOutput,
|
|
127
|
+
ContentMediaCreateUploadUrlInput,
|
|
128
|
+
ContentMediaCreateUploadUrlOutput,
|
|
129
|
+
ContentMediaFinalizeInput,
|
|
130
|
+
ContentMediaFinalizeOutput,
|
|
131
|
+
ContentMediaGetInput,
|
|
132
|
+
ContentMediaGetOutput,
|
|
133
|
+
ContentMediaListInput,
|
|
134
|
+
ContentMediaListOutput,
|
|
135
|
+
ContentMediaUploadInput,
|
|
136
|
+
ContentMediaUploadOutput,
|
|
137
|
+
ContentMetricsChannelSeriesInput,
|
|
138
|
+
ContentMetricsChannelSeriesOutput,
|
|
139
|
+
ContentMetricsPostSeriesInput,
|
|
140
|
+
ContentMetricsPostSeriesOutput,
|
|
141
|
+
ContentPostsApproveInput,
|
|
142
|
+
ContentPostsApproveOutput,
|
|
143
|
+
ContentPostsAttachMediaInput,
|
|
144
|
+
ContentPostsAttachMediaOutput,
|
|
145
|
+
ContentPostsCreateInput,
|
|
146
|
+
ContentPostsCreateOutput,
|
|
147
|
+
ContentPostsDetachMediaInput,
|
|
148
|
+
ContentPostsDetachMediaOutput,
|
|
149
|
+
ContentPostsGetInput,
|
|
150
|
+
ContentPostsGetOutput,
|
|
151
|
+
ContentPostsListInput,
|
|
152
|
+
ContentPostsListOutput,
|
|
153
|
+
ContentPostsSubmitInput,
|
|
154
|
+
ContentPostsSubmitOutput,
|
|
155
|
+
ContentPostsUpdateInput,
|
|
156
|
+
ContentPostsUpdateOutput,
|
|
157
|
+
ContentPostsVersionsInput,
|
|
158
|
+
ContentPostsVersionsOutput,
|
|
159
|
+
ContentPublicationsCancelInput,
|
|
160
|
+
ContentPublicationsCancelOutput,
|
|
161
|
+
ContentPublicationsConfirmInput,
|
|
162
|
+
ContentPublicationsConfirmOutput,
|
|
163
|
+
ContentPublicationsGetInput,
|
|
164
|
+
ContentPublicationsGetOutput,
|
|
165
|
+
ContentPublicationsListInput,
|
|
166
|
+
ContentPublicationsListOutput,
|
|
167
|
+
ContentPublicationsPublishInput,
|
|
168
|
+
ContentPublicationsPublishOutput,
|
|
169
|
+
ContentPublicationsRemindInput,
|
|
170
|
+
ContentPublicationsRemindOutput,
|
|
171
|
+
ContentPublicationsRescheduleInput,
|
|
172
|
+
ContentPublicationsRescheduleOutput,
|
|
173
|
+
ContentPublicationsScheduleInput,
|
|
174
|
+
ContentPublicationsScheduleOutput,
|
|
175
|
+
ContentPublicationsValidateInput,
|
|
176
|
+
ContentPublicationsValidateOutput,
|
|
117
177
|
DeploymentAlertCreateInput,
|
|
118
178
|
DeploymentAlertCreateOutput,
|
|
119
179
|
DeploymentAlertDeleteInput,
|
|
@@ -1049,9 +1109,6 @@ export interface GeneratedClient {
|
|
|
1049
1109
|
restore: {
|
|
1050
1110
|
status(input: BrainRestoreStatusInput): Promise<BrainRestoreStatusOutput>;
|
|
1051
1111
|
};
|
|
1052
|
-
usage: {
|
|
1053
|
-
report(input: BrainUsageReportInput): Promise<BrainUsageReportOutput>;
|
|
1054
|
-
};
|
|
1055
1112
|
};
|
|
1056
1113
|
consent: {
|
|
1057
1114
|
'config-cookie-domain': {
|
|
@@ -1094,6 +1151,57 @@ export interface GeneratedClient {
|
|
|
1094
1151
|
get(input: ConsentStatsGetInput): Promise<ConsentStatsGetOutput>;
|
|
1095
1152
|
};
|
|
1096
1153
|
};
|
|
1154
|
+
content: {
|
|
1155
|
+
channels: {
|
|
1156
|
+
bind(input: ContentChannelsBindInput): Promise<ContentChannelsBindOutput>;
|
|
1157
|
+
get(input: ContentChannelsGetInput): Promise<ContentChannelsGetOutput>;
|
|
1158
|
+
list(input: ContentChannelsListInput): Promise<ContentChannelsListOutput>;
|
|
1159
|
+
resume(input: ContentChannelsResumeInput): Promise<ContentChannelsResumeOutput>;
|
|
1160
|
+
unbind(input: ContentChannelsUnbindInput): Promise<ContentChannelsUnbindOutput>;
|
|
1161
|
+
update(input: ContentChannelsUpdateInput): Promise<ContentChannelsUpdateOutput>;
|
|
1162
|
+
};
|
|
1163
|
+
media: {
|
|
1164
|
+
finalize(input: ContentMediaFinalizeInput): Promise<ContentMediaFinalizeOutput>;
|
|
1165
|
+
get(input: ContentMediaGetInput): Promise<ContentMediaGetOutput>;
|
|
1166
|
+
list(input: ContentMediaListInput): Promise<ContentMediaListOutput>;
|
|
1167
|
+
upload(input: ContentMediaUploadInput): Promise<ContentMediaUploadOutput>;
|
|
1168
|
+
};
|
|
1169
|
+
'media-create-upload': {
|
|
1170
|
+
url(input: ContentMediaCreateUploadUrlInput): Promise<ContentMediaCreateUploadUrlOutput>;
|
|
1171
|
+
};
|
|
1172
|
+
'metrics-channel': {
|
|
1173
|
+
series(input: ContentMetricsChannelSeriesInput): Promise<ContentMetricsChannelSeriesOutput>;
|
|
1174
|
+
};
|
|
1175
|
+
'metrics-post': {
|
|
1176
|
+
series(input: ContentMetricsPostSeriesInput): Promise<ContentMetricsPostSeriesOutput>;
|
|
1177
|
+
};
|
|
1178
|
+
posts: {
|
|
1179
|
+
approve(input: ContentPostsApproveInput): Promise<ContentPostsApproveOutput>;
|
|
1180
|
+
create(input: ContentPostsCreateInput): Promise<ContentPostsCreateOutput>;
|
|
1181
|
+
get(input: ContentPostsGetInput): Promise<ContentPostsGetOutput>;
|
|
1182
|
+
list(input: ContentPostsListInput): Promise<ContentPostsListOutput>;
|
|
1183
|
+
submit(input: ContentPostsSubmitInput): Promise<ContentPostsSubmitOutput>;
|
|
1184
|
+
update(input: ContentPostsUpdateInput): Promise<ContentPostsUpdateOutput>;
|
|
1185
|
+
versions(input: ContentPostsVersionsInput): Promise<ContentPostsVersionsOutput>;
|
|
1186
|
+
};
|
|
1187
|
+
'posts-attach': {
|
|
1188
|
+
media(input: ContentPostsAttachMediaInput): Promise<ContentPostsAttachMediaOutput>;
|
|
1189
|
+
};
|
|
1190
|
+
'posts-detach': {
|
|
1191
|
+
media(input: ContentPostsDetachMediaInput): Promise<ContentPostsDetachMediaOutput>;
|
|
1192
|
+
};
|
|
1193
|
+
publications: {
|
|
1194
|
+
cancel(input: ContentPublicationsCancelInput): Promise<ContentPublicationsCancelOutput>;
|
|
1195
|
+
confirm(input: ContentPublicationsConfirmInput): Promise<ContentPublicationsConfirmOutput>;
|
|
1196
|
+
get(input: ContentPublicationsGetInput): Promise<ContentPublicationsGetOutput>;
|
|
1197
|
+
list(input: ContentPublicationsListInput): Promise<ContentPublicationsListOutput>;
|
|
1198
|
+
publish(input: ContentPublicationsPublishInput): Promise<ContentPublicationsPublishOutput>;
|
|
1199
|
+
remind(input: ContentPublicationsRemindInput): Promise<ContentPublicationsRemindOutput>;
|
|
1200
|
+
reschedule(input: ContentPublicationsRescheduleInput): Promise<ContentPublicationsRescheduleOutput>;
|
|
1201
|
+
schedule(input: ContentPublicationsScheduleInput): Promise<ContentPublicationsScheduleOutput>;
|
|
1202
|
+
validate(input: ContentPublicationsValidateInput): Promise<ContentPublicationsValidateOutput>;
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1097
1205
|
deployment: {
|
|
1098
1206
|
alert: {
|
|
1099
1207
|
create(input: DeploymentAlertCreateInput): Promise<DeploymentAlertCreateOutput>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
export * from './queryOptions.gen';
|
|
3
|
+
export type { ContentChannelsBindInput, ContentChannelsBindOutput, ContentChannelsGetInput, ContentChannelsGetOutput, ContentChannelsListInput, ContentChannelsListOutput, ContentChannelsResumeInput, ContentChannelsResumeOutput, ContentChannelsUnbindInput, ContentChannelsUnbindOutput, ContentChannelsUpdateInput, ContentChannelsUpdateOutput, ContentMediaCreateUploadUrlInput, ContentMediaCreateUploadUrlOutput, ContentMediaFinalizeInput, ContentMediaFinalizeOutput, ContentMediaGetInput, ContentMediaGetOutput, ContentMediaListInput, ContentMediaListOutput, ContentMediaUploadInput, ContentMediaUploadOutput, ContentMetricsChannelSeriesInput, ContentMetricsChannelSeriesOutput, ContentMetricsPostSeriesInput, ContentMetricsPostSeriesOutput, ContentPostsApproveInput, ContentPostsApproveOutput, ContentPostsAttachMediaInput, ContentPostsAttachMediaOutput, ContentPostsCreateInput, ContentPostsCreateOutput, ContentPostsDetachMediaInput, ContentPostsDetachMediaOutput, ContentPostsGetInput, ContentPostsGetOutput, ContentPostsListInput, ContentPostsListOutput, ContentPostsSubmitInput, ContentPostsSubmitOutput, ContentPostsUpdateInput, ContentPostsUpdateOutput, ContentPostsVersionsInput, ContentPostsVersionsOutput, ContentPublicationsCancelInput, ContentPublicationsCancelOutput, ContentPublicationsConfirmInput, ContentPublicationsConfirmOutput, ContentPublicationsGetInput, ContentPublicationsGetOutput, ContentPublicationsListInput, ContentPublicationsListOutput, ContentPublicationsPublishInput, ContentPublicationsPublishOutput, ContentPublicationsRemindInput, ContentPublicationsRemindOutput, ContentPublicationsRescheduleInput, ContentPublicationsRescheduleOutput, ContentPublicationsScheduleInput, ContentPublicationsScheduleOutput, ContentPublicationsValidateInput, ContentPublicationsValidateOutput } from '../types.gen';
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
ContentChannelsBindInput,
|
|
5
|
+
ContentChannelsGetInput,
|
|
6
|
+
ContentChannelsGetOutput,
|
|
7
|
+
ContentChannelsListInput,
|
|
8
|
+
ContentChannelsListOutput,
|
|
9
|
+
ContentChannelsResumeInput,
|
|
10
|
+
ContentChannelsUnbindInput,
|
|
11
|
+
ContentChannelsUpdateInput,
|
|
12
|
+
ContentMediaCreateUploadUrlInput,
|
|
13
|
+
ContentMediaFinalizeInput,
|
|
14
|
+
ContentMediaGetInput,
|
|
15
|
+
ContentMediaGetOutput,
|
|
16
|
+
ContentMediaListInput,
|
|
17
|
+
ContentMediaListOutput,
|
|
18
|
+
ContentMediaUploadInput,
|
|
19
|
+
ContentMetricsChannelSeriesInput,
|
|
20
|
+
ContentMetricsChannelSeriesOutput,
|
|
21
|
+
ContentMetricsPostSeriesInput,
|
|
22
|
+
ContentMetricsPostSeriesOutput,
|
|
23
|
+
ContentPostsApproveInput,
|
|
24
|
+
ContentPostsAttachMediaInput,
|
|
25
|
+
ContentPostsCreateInput,
|
|
26
|
+
ContentPostsDetachMediaInput,
|
|
27
|
+
ContentPostsGetInput,
|
|
28
|
+
ContentPostsGetOutput,
|
|
29
|
+
ContentPostsListInput,
|
|
30
|
+
ContentPostsListOutput,
|
|
31
|
+
ContentPostsSubmitInput,
|
|
32
|
+
ContentPostsUpdateInput,
|
|
33
|
+
ContentPostsVersionsInput,
|
|
34
|
+
ContentPostsVersionsOutput,
|
|
35
|
+
ContentPublicationsCancelInput,
|
|
36
|
+
ContentPublicationsConfirmInput,
|
|
37
|
+
ContentPublicationsGetInput,
|
|
38
|
+
ContentPublicationsGetOutput,
|
|
39
|
+
ContentPublicationsListInput,
|
|
40
|
+
ContentPublicationsListOutput,
|
|
41
|
+
ContentPublicationsPublishInput,
|
|
42
|
+
ContentPublicationsRemindInput,
|
|
43
|
+
ContentPublicationsRescheduleInput,
|
|
44
|
+
ContentPublicationsScheduleInput,
|
|
45
|
+
ContentPublicationsValidateInput,
|
|
46
|
+
ContentPublicationsValidateOutput,
|
|
47
|
+
} from '../types.gen';
|
|
48
|
+
|
|
49
|
+
export const contentChannelsBindMutationOptions = (sdk: GeneratedClient) => ({
|
|
50
|
+
mutationKey: ['content', 'channels', 'bind'],
|
|
51
|
+
mutationFn: (input: ContentChannelsBindInput) => sdk['content']['channels']['bind'](input),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const contentChannelsGetQueryOptions = (sdk: GeneratedClient, input: ContentChannelsGetInput) => ({
|
|
55
|
+
queryKey: ['content', 'channels', 'get', input] as const,
|
|
56
|
+
queryFn: () => sdk['content']['channels']['get'](input),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const contentChannelsListQueryOptions = (sdk: GeneratedClient, input: ContentChannelsListInput) => ({
|
|
60
|
+
queryKey: ['content', 'channels', 'list', input] as const,
|
|
61
|
+
queryFn: () => sdk['content']['channels']['list'](input),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export const contentChannelsResumeMutationOptions = (sdk: GeneratedClient) => ({
|
|
65
|
+
mutationKey: ['content', 'channels', 'resume'],
|
|
66
|
+
mutationFn: (input: ContentChannelsResumeInput) => sdk['content']['channels']['resume'](input),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export const contentChannelsUnbindMutationOptions = (sdk: GeneratedClient) => ({
|
|
70
|
+
mutationKey: ['content', 'channels', 'unbind'],
|
|
71
|
+
mutationFn: (input: ContentChannelsUnbindInput) => sdk['content']['channels']['unbind'](input),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export const contentChannelsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
75
|
+
mutationKey: ['content', 'channels', 'update'],
|
|
76
|
+
mutationFn: (input: ContentChannelsUpdateInput) => sdk['content']['channels']['update'](input),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export const contentMediaCreateUploadUrlMutationOptions = (sdk: GeneratedClient) => ({
|
|
80
|
+
mutationKey: ['content', 'media-create-upload', 'url'],
|
|
81
|
+
mutationFn: (input: ContentMediaCreateUploadUrlInput) => sdk['content']['media-create-upload']['url'](input),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export const contentMediaFinalizeMutationOptions = (sdk: GeneratedClient) => ({
|
|
85
|
+
mutationKey: ['content', 'media', 'finalize'],
|
|
86
|
+
mutationFn: (input: ContentMediaFinalizeInput) => sdk['content']['media']['finalize'](input),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export const contentMediaGetQueryOptions = (sdk: GeneratedClient, input: ContentMediaGetInput) => ({
|
|
90
|
+
queryKey: ['content', 'media', 'get', input] as const,
|
|
91
|
+
queryFn: () => sdk['content']['media']['get'](input),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export const contentMediaListQueryOptions = (sdk: GeneratedClient, input: ContentMediaListInput) => ({
|
|
95
|
+
queryKey: ['content', 'media', 'list', input] as const,
|
|
96
|
+
queryFn: () => sdk['content']['media']['list'](input),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export const contentMediaUploadMutationOptions = (sdk: GeneratedClient) => ({
|
|
100
|
+
mutationKey: ['content', 'media', 'upload'],
|
|
101
|
+
mutationFn: (input: ContentMediaUploadInput) => sdk['content']['media']['upload'](input),
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export const contentMetricsChannelSeriesQueryOptions = (sdk: GeneratedClient, input: ContentMetricsChannelSeriesInput) => ({
|
|
105
|
+
queryKey: ['content', 'metrics-channel', 'series', input] as const,
|
|
106
|
+
queryFn: () => sdk['content']['metrics-channel']['series'](input),
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export const contentMetricsPostSeriesQueryOptions = (sdk: GeneratedClient, input: ContentMetricsPostSeriesInput) => ({
|
|
110
|
+
queryKey: ['content', 'metrics-post', 'series', input] as const,
|
|
111
|
+
queryFn: () => sdk['content']['metrics-post']['series'](input),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export const contentPostsApproveMutationOptions = (sdk: GeneratedClient) => ({
|
|
115
|
+
mutationKey: ['content', 'posts', 'approve'],
|
|
116
|
+
mutationFn: (input: ContentPostsApproveInput) => sdk['content']['posts']['approve'](input),
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export const contentPostsAttachMediaMutationOptions = (sdk: GeneratedClient) => ({
|
|
120
|
+
mutationKey: ['content', 'posts-attach', 'media'],
|
|
121
|
+
mutationFn: (input: ContentPostsAttachMediaInput) => sdk['content']['posts-attach']['media'](input),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export const contentPostsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
125
|
+
mutationKey: ['content', 'posts', 'create'],
|
|
126
|
+
mutationFn: (input: ContentPostsCreateInput) => sdk['content']['posts']['create'](input),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export const contentPostsDetachMediaMutationOptions = (sdk: GeneratedClient) => ({
|
|
130
|
+
mutationKey: ['content', 'posts-detach', 'media'],
|
|
131
|
+
mutationFn: (input: ContentPostsDetachMediaInput) => sdk['content']['posts-detach']['media'](input),
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export const contentPostsGetQueryOptions = (sdk: GeneratedClient, input: ContentPostsGetInput) => ({
|
|
135
|
+
queryKey: ['content', 'posts', 'get', input] as const,
|
|
136
|
+
queryFn: () => sdk['content']['posts']['get'](input),
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export const contentPostsListQueryOptions = (sdk: GeneratedClient, input: ContentPostsListInput) => ({
|
|
140
|
+
queryKey: ['content', 'posts', 'list', input] as const,
|
|
141
|
+
queryFn: () => sdk['content']['posts']['list'](input),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export const contentPostsSubmitMutationOptions = (sdk: GeneratedClient) => ({
|
|
145
|
+
mutationKey: ['content', 'posts', 'submit'],
|
|
146
|
+
mutationFn: (input: ContentPostsSubmitInput) => sdk['content']['posts']['submit'](input),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export const contentPostsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
150
|
+
mutationKey: ['content', 'posts', 'update'],
|
|
151
|
+
mutationFn: (input: ContentPostsUpdateInput) => sdk['content']['posts']['update'](input),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export const contentPostsVersionsQueryOptions = (sdk: GeneratedClient, input: ContentPostsVersionsInput) => ({
|
|
155
|
+
queryKey: ['content', 'posts', 'versions', input] as const,
|
|
156
|
+
queryFn: () => sdk['content']['posts']['versions'](input),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export const contentPublicationsCancelMutationOptions = (sdk: GeneratedClient) => ({
|
|
160
|
+
mutationKey: ['content', 'publications', 'cancel'],
|
|
161
|
+
mutationFn: (input: ContentPublicationsCancelInput) => sdk['content']['publications']['cancel'](input),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export const contentPublicationsConfirmMutationOptions = (sdk: GeneratedClient) => ({
|
|
165
|
+
mutationKey: ['content', 'publications', 'confirm'],
|
|
166
|
+
mutationFn: (input: ContentPublicationsConfirmInput) => sdk['content']['publications']['confirm'](input),
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export const contentPublicationsGetQueryOptions = (sdk: GeneratedClient, input: ContentPublicationsGetInput) => ({
|
|
170
|
+
queryKey: ['content', 'publications', 'get', input] as const,
|
|
171
|
+
queryFn: () => sdk['content']['publications']['get'](input),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export const contentPublicationsListQueryOptions = (sdk: GeneratedClient, input: ContentPublicationsListInput) => ({
|
|
175
|
+
queryKey: ['content', 'publications', 'list', input] as const,
|
|
176
|
+
queryFn: () => sdk['content']['publications']['list'](input),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
export const contentPublicationsPublishMutationOptions = (sdk: GeneratedClient) => ({
|
|
180
|
+
mutationKey: ['content', 'publications', 'publish'],
|
|
181
|
+
mutationFn: (input: ContentPublicationsPublishInput) => sdk['content']['publications']['publish'](input),
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export const contentPublicationsRemindMutationOptions = (sdk: GeneratedClient) => ({
|
|
185
|
+
mutationKey: ['content', 'publications', 'remind'],
|
|
186
|
+
mutationFn: (input: ContentPublicationsRemindInput) => sdk['content']['publications']['remind'](input),
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
export const contentPublicationsRescheduleMutationOptions = (sdk: GeneratedClient) => ({
|
|
190
|
+
mutationKey: ['content', 'publications', 'reschedule'],
|
|
191
|
+
mutationFn: (input: ContentPublicationsRescheduleInput) => sdk['content']['publications']['reschedule'](input),
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
export const contentPublicationsScheduleMutationOptions = (sdk: GeneratedClient) => ({
|
|
195
|
+
mutationKey: ['content', 'publications', 'schedule'],
|
|
196
|
+
mutationFn: (input: ContentPublicationsScheduleInput) => sdk['content']['publications']['schedule'](input),
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
export const contentPublicationsValidateQueryOptions = (sdk: GeneratedClient, input: ContentPublicationsValidateInput) => ({
|
|
200
|
+
queryKey: ['content', 'publications', 'validate', input] as const,
|
|
201
|
+
queryFn: () => sdk['content']['publications']['validate'](input),
|
|
202
|
+
});
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|
|
2
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|