@lessly/sdk-app 44.1.0 → 46.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.d.cts +1 -1
- package/dist/brain/index.d.ts +1 -1
- package/dist/{client.gen-DlCqQAIZ.d.cts → client.gen-BFHxhTU7.d.cts} +3865 -860
- package/dist/{client.gen-DlCqQAIZ.d.ts → client.gen-BFHxhTU7.d.ts} +3865 -860
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/content/index.cjs +65 -0
- package/dist/content/index.cjs.map +1 -1
- package/dist/content/index.d.cts +54 -2
- package/dist/content/index.d.ts +54 -2
- package/dist/content/index.js +53 -1
- package/dist/content/index.js.map +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +223 -0
- 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 +223 -0
- 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/playground/index.d.cts +1 -1
- package/dist/playground/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/package.json +2 -2
- package/src/gen/bindings.gen.ts +223 -0
- package/src/gen/client.gen.ts +51 -0
- package/src/gen/content/index.ts +1 -1
- package/src/gen/content/queryOptions.gen.ts +83 -0
- package/src/gen/types.gen.ts +3290 -514
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -952,6 +952,25 @@ export const bindings: BindingsMap = {
|
|
|
952
952
|
},
|
|
953
953
|
"content": {
|
|
954
954
|
"channels": {
|
|
955
|
+
"bind": {
|
|
956
|
+
"method": "POST",
|
|
957
|
+
"params": [
|
|
958
|
+
{
|
|
959
|
+
"in": "path",
|
|
960
|
+
"name": "id"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"in": "body",
|
|
964
|
+
"name": "connectorId"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"in": "body",
|
|
968
|
+
"name": "deliveryMode"
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
"path": "/content/channels/:id/bind",
|
|
972
|
+
"readOnly": false
|
|
973
|
+
},
|
|
955
974
|
"get": {
|
|
956
975
|
"method": "GET",
|
|
957
976
|
"params": [
|
|
@@ -982,6 +1001,28 @@ export const bindings: BindingsMap = {
|
|
|
982
1001
|
"path": "/content/channels",
|
|
983
1002
|
"readOnly": true
|
|
984
1003
|
},
|
|
1004
|
+
"resume": {
|
|
1005
|
+
"method": "POST",
|
|
1006
|
+
"params": [
|
|
1007
|
+
{
|
|
1008
|
+
"in": "path",
|
|
1009
|
+
"name": "id"
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
"path": "/content/channels/:id/resume",
|
|
1013
|
+
"readOnly": false
|
|
1014
|
+
},
|
|
1015
|
+
"unbind": {
|
|
1016
|
+
"method": "POST",
|
|
1017
|
+
"params": [
|
|
1018
|
+
{
|
|
1019
|
+
"in": "path",
|
|
1020
|
+
"name": "id"
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"path": "/content/channels/:id/unbind",
|
|
1024
|
+
"readOnly": false
|
|
1025
|
+
},
|
|
985
1026
|
"update": {
|
|
986
1027
|
"method": "PATCH",
|
|
987
1028
|
"params": [
|
|
@@ -1006,6 +1047,131 @@ export const bindings: BindingsMap = {
|
|
|
1006
1047
|
"readOnly": false
|
|
1007
1048
|
}
|
|
1008
1049
|
},
|
|
1050
|
+
"media": {
|
|
1051
|
+
"finalize": {
|
|
1052
|
+
"method": "POST",
|
|
1053
|
+
"params": [
|
|
1054
|
+
{
|
|
1055
|
+
"in": "path",
|
|
1056
|
+
"name": "id"
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
"path": "/content/media/:id/finalize",
|
|
1060
|
+
"readOnly": false
|
|
1061
|
+
},
|
|
1062
|
+
"get": {
|
|
1063
|
+
"method": "GET",
|
|
1064
|
+
"params": [
|
|
1065
|
+
{
|
|
1066
|
+
"in": "path",
|
|
1067
|
+
"name": "id"
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"path": "/content/media/:id",
|
|
1071
|
+
"readOnly": true
|
|
1072
|
+
},
|
|
1073
|
+
"list": {
|
|
1074
|
+
"method": "GET",
|
|
1075
|
+
"params": [
|
|
1076
|
+
{
|
|
1077
|
+
"in": "query",
|
|
1078
|
+
"name": "status"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"in": "query",
|
|
1082
|
+
"name": "limit"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"in": "query",
|
|
1086
|
+
"name": "offset"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"path": "/content/media",
|
|
1090
|
+
"readOnly": true
|
|
1091
|
+
},
|
|
1092
|
+
"upload": {
|
|
1093
|
+
"method": "POST",
|
|
1094
|
+
"params": [
|
|
1095
|
+
{
|
|
1096
|
+
"in": "body",
|
|
1097
|
+
"name": "sourceUrl"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"in": "body",
|
|
1101
|
+
"name": "filename"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
"path": "/content/media",
|
|
1105
|
+
"readOnly": false
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"media-create-upload": {
|
|
1109
|
+
"url": {
|
|
1110
|
+
"method": "POST",
|
|
1111
|
+
"params": [
|
|
1112
|
+
{
|
|
1113
|
+
"in": "body",
|
|
1114
|
+
"name": "contentType"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"in": "body",
|
|
1118
|
+
"name": "filename"
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"path": "/content/media/upload-url",
|
|
1122
|
+
"readOnly": false
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
"metrics-channel": {
|
|
1126
|
+
"series": {
|
|
1127
|
+
"method": "GET",
|
|
1128
|
+
"params": [
|
|
1129
|
+
{
|
|
1130
|
+
"in": "path",
|
|
1131
|
+
"name": "id"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"in": "query",
|
|
1135
|
+
"name": "from"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"in": "query",
|
|
1139
|
+
"name": "to"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"in": "query",
|
|
1143
|
+
"name": "limit"
|
|
1144
|
+
}
|
|
1145
|
+
],
|
|
1146
|
+
"path": "/content/metrics/channels/:id",
|
|
1147
|
+
"readOnly": true
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
"metrics-post": {
|
|
1151
|
+
"series": {
|
|
1152
|
+
"method": "GET",
|
|
1153
|
+
"params": [
|
|
1154
|
+
{
|
|
1155
|
+
"in": "path",
|
|
1156
|
+
"name": "id"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"in": "query",
|
|
1160
|
+
"name": "from"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"in": "query",
|
|
1164
|
+
"name": "to"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"in": "query",
|
|
1168
|
+
"name": "limit"
|
|
1169
|
+
}
|
|
1170
|
+
],
|
|
1171
|
+
"path": "/content/metrics/posts/:id",
|
|
1172
|
+
"readOnly": true
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1009
1175
|
"posts": {
|
|
1010
1176
|
"approve": {
|
|
1011
1177
|
"method": "POST",
|
|
@@ -1105,6 +1271,40 @@ export const bindings: BindingsMap = {
|
|
|
1105
1271
|
"readOnly": true
|
|
1106
1272
|
}
|
|
1107
1273
|
},
|
|
1274
|
+
"posts-attach": {
|
|
1275
|
+
"media": {
|
|
1276
|
+
"method": "POST",
|
|
1277
|
+
"params": [
|
|
1278
|
+
{
|
|
1279
|
+
"in": "path",
|
|
1280
|
+
"name": "id"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"in": "body",
|
|
1284
|
+
"name": "mediaIds"
|
|
1285
|
+
}
|
|
1286
|
+
],
|
|
1287
|
+
"path": "/content/posts/:id/media/attach",
|
|
1288
|
+
"readOnly": false
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"posts-detach": {
|
|
1292
|
+
"media": {
|
|
1293
|
+
"method": "POST",
|
|
1294
|
+
"params": [
|
|
1295
|
+
{
|
|
1296
|
+
"in": "path",
|
|
1297
|
+
"name": "id"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"in": "body",
|
|
1301
|
+
"name": "mediaIds"
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"path": "/content/posts/:id/media/detach",
|
|
1305
|
+
"readOnly": false
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1108
1308
|
"publications": {
|
|
1109
1309
|
"cancel": {
|
|
1110
1310
|
"method": "POST",
|
|
@@ -1249,6 +1449,25 @@ export const bindings: BindingsMap = {
|
|
|
1249
1449
|
],
|
|
1250
1450
|
"path": "/content/publications",
|
|
1251
1451
|
"readOnly": false
|
|
1452
|
+
},
|
|
1453
|
+
"validate": {
|
|
1454
|
+
"method": "POST",
|
|
1455
|
+
"params": [
|
|
1456
|
+
{
|
|
1457
|
+
"in": "body",
|
|
1458
|
+
"name": "postId"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
"in": "body",
|
|
1462
|
+
"name": "channels"
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"in": "body",
|
|
1466
|
+
"name": "scheduledAt"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"path": "/content/publications/validate",
|
|
1470
|
+
"readOnly": true
|
|
1252
1471
|
}
|
|
1253
1472
|
}
|
|
1254
1473
|
},
|
|
@@ -2587,6 +2806,10 @@ export const bindings: BindingsMap = {
|
|
|
2587
2806
|
"in": "body",
|
|
2588
2807
|
"name": "tracing"
|
|
2589
2808
|
},
|
|
2809
|
+
{
|
|
2810
|
+
"in": "body",
|
|
2811
|
+
"name": "autoDeploy"
|
|
2812
|
+
},
|
|
2590
2813
|
{
|
|
2591
2814
|
"in": "path",
|
|
2592
2815
|
"name": "id"
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -112,16 +112,40 @@ import type {
|
|
|
112
112
|
ConsentRecordsExportOutput,
|
|
113
113
|
ConsentStatsGetInput,
|
|
114
114
|
ConsentStatsGetOutput,
|
|
115
|
+
ContentChannelsBindInput,
|
|
116
|
+
ContentChannelsBindOutput,
|
|
115
117
|
ContentChannelsGetInput,
|
|
116
118
|
ContentChannelsGetOutput,
|
|
117
119
|
ContentChannelsListInput,
|
|
118
120
|
ContentChannelsListOutput,
|
|
121
|
+
ContentChannelsResumeInput,
|
|
122
|
+
ContentChannelsResumeOutput,
|
|
123
|
+
ContentChannelsUnbindInput,
|
|
124
|
+
ContentChannelsUnbindOutput,
|
|
119
125
|
ContentChannelsUpdateInput,
|
|
120
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,
|
|
121
141
|
ContentPostsApproveInput,
|
|
122
142
|
ContentPostsApproveOutput,
|
|
143
|
+
ContentPostsAttachMediaInput,
|
|
144
|
+
ContentPostsAttachMediaOutput,
|
|
123
145
|
ContentPostsCreateInput,
|
|
124
146
|
ContentPostsCreateOutput,
|
|
147
|
+
ContentPostsDetachMediaInput,
|
|
148
|
+
ContentPostsDetachMediaOutput,
|
|
125
149
|
ContentPostsGetInput,
|
|
126
150
|
ContentPostsGetOutput,
|
|
127
151
|
ContentPostsListInput,
|
|
@@ -148,6 +172,8 @@ import type {
|
|
|
148
172
|
ContentPublicationsRescheduleOutput,
|
|
149
173
|
ContentPublicationsScheduleInput,
|
|
150
174
|
ContentPublicationsScheduleOutput,
|
|
175
|
+
ContentPublicationsValidateInput,
|
|
176
|
+
ContentPublicationsValidateOutput,
|
|
151
177
|
DeploymentAlertCreateInput,
|
|
152
178
|
DeploymentAlertCreateOutput,
|
|
153
179
|
DeploymentAlertDeleteInput,
|
|
@@ -1151,10 +1177,28 @@ export interface GeneratedClient {
|
|
|
1151
1177
|
};
|
|
1152
1178
|
content: {
|
|
1153
1179
|
channels: {
|
|
1180
|
+
bind(input: ContentChannelsBindInput): Promise<ContentChannelsBindOutput>;
|
|
1154
1181
|
get(input: ContentChannelsGetInput): Promise<ContentChannelsGetOutput>;
|
|
1155
1182
|
list(input: ContentChannelsListInput): Promise<ContentChannelsListOutput>;
|
|
1183
|
+
resume(input: ContentChannelsResumeInput): Promise<ContentChannelsResumeOutput>;
|
|
1184
|
+
unbind(input: ContentChannelsUnbindInput): Promise<ContentChannelsUnbindOutput>;
|
|
1156
1185
|
update(input: ContentChannelsUpdateInput): Promise<ContentChannelsUpdateOutput>;
|
|
1157
1186
|
};
|
|
1187
|
+
media: {
|
|
1188
|
+
finalize(input: ContentMediaFinalizeInput): Promise<ContentMediaFinalizeOutput>;
|
|
1189
|
+
get(input: ContentMediaGetInput): Promise<ContentMediaGetOutput>;
|
|
1190
|
+
list(input: ContentMediaListInput): Promise<ContentMediaListOutput>;
|
|
1191
|
+
upload(input: ContentMediaUploadInput): Promise<ContentMediaUploadOutput>;
|
|
1192
|
+
};
|
|
1193
|
+
'media-create-upload': {
|
|
1194
|
+
url(input: ContentMediaCreateUploadUrlInput): Promise<ContentMediaCreateUploadUrlOutput>;
|
|
1195
|
+
};
|
|
1196
|
+
'metrics-channel': {
|
|
1197
|
+
series(input: ContentMetricsChannelSeriesInput): Promise<ContentMetricsChannelSeriesOutput>;
|
|
1198
|
+
};
|
|
1199
|
+
'metrics-post': {
|
|
1200
|
+
series(input: ContentMetricsPostSeriesInput): Promise<ContentMetricsPostSeriesOutput>;
|
|
1201
|
+
};
|
|
1158
1202
|
posts: {
|
|
1159
1203
|
approve(input: ContentPostsApproveInput): Promise<ContentPostsApproveOutput>;
|
|
1160
1204
|
create(input: ContentPostsCreateInput): Promise<ContentPostsCreateOutput>;
|
|
@@ -1164,6 +1208,12 @@ export interface GeneratedClient {
|
|
|
1164
1208
|
update(input: ContentPostsUpdateInput): Promise<ContentPostsUpdateOutput>;
|
|
1165
1209
|
versions(input: ContentPostsVersionsInput): Promise<ContentPostsVersionsOutput>;
|
|
1166
1210
|
};
|
|
1211
|
+
'posts-attach': {
|
|
1212
|
+
media(input: ContentPostsAttachMediaInput): Promise<ContentPostsAttachMediaOutput>;
|
|
1213
|
+
};
|
|
1214
|
+
'posts-detach': {
|
|
1215
|
+
media(input: ContentPostsDetachMediaInput): Promise<ContentPostsDetachMediaOutput>;
|
|
1216
|
+
};
|
|
1167
1217
|
publications: {
|
|
1168
1218
|
cancel(input: ContentPublicationsCancelInput): Promise<ContentPublicationsCancelOutput>;
|
|
1169
1219
|
confirm(input: ContentPublicationsConfirmInput): Promise<ContentPublicationsConfirmOutput>;
|
|
@@ -1173,6 +1223,7 @@ export interface GeneratedClient {
|
|
|
1173
1223
|
remind(input: ContentPublicationsRemindInput): Promise<ContentPublicationsRemindOutput>;
|
|
1174
1224
|
reschedule(input: ContentPublicationsRescheduleInput): Promise<ContentPublicationsRescheduleOutput>;
|
|
1175
1225
|
schedule(input: ContentPublicationsScheduleInput): Promise<ContentPublicationsScheduleOutput>;
|
|
1226
|
+
validate(input: ContentPublicationsValidateInput): Promise<ContentPublicationsValidateOutput>;
|
|
1176
1227
|
};
|
|
1177
1228
|
};
|
|
1178
1229
|
deployment: {
|
package/src/gen/content/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { ContentChannelsGetInput, ContentChannelsGetOutput, ContentChannelsListInput, ContentChannelsListOutput, ContentChannelsUpdateInput, ContentChannelsUpdateOutput, ContentPostsApproveInput, ContentPostsApproveOutput, ContentPostsCreateInput, ContentPostsCreateOutput, 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 } from '../types.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';
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
import type { GeneratedClient } from '../client.gen';
|
|
3
3
|
import type {
|
|
4
|
+
ContentChannelsBindInput,
|
|
4
5
|
ContentChannelsGetInput,
|
|
5
6
|
ContentChannelsGetOutput,
|
|
6
7
|
ContentChannelsListInput,
|
|
7
8
|
ContentChannelsListOutput,
|
|
9
|
+
ContentChannelsResumeInput,
|
|
10
|
+
ContentChannelsUnbindInput,
|
|
8
11
|
ContentChannelsUpdateInput,
|
|
12
|
+
ContentMediaCreateUploadUrlInput,
|
|
13
|
+
ContentMediaFinalizeInput,
|
|
14
|
+
ContentMediaGetInput,
|
|
15
|
+
ContentMediaGetOutput,
|
|
16
|
+
ContentMediaListInput,
|
|
17
|
+
ContentMediaListOutput,
|
|
18
|
+
ContentMediaUploadInput,
|
|
19
|
+
ContentMetricsChannelSeriesInput,
|
|
20
|
+
ContentMetricsChannelSeriesOutput,
|
|
21
|
+
ContentMetricsPostSeriesInput,
|
|
22
|
+
ContentMetricsPostSeriesOutput,
|
|
9
23
|
ContentPostsApproveInput,
|
|
24
|
+
ContentPostsAttachMediaInput,
|
|
10
25
|
ContentPostsCreateInput,
|
|
26
|
+
ContentPostsDetachMediaInput,
|
|
11
27
|
ContentPostsGetInput,
|
|
12
28
|
ContentPostsGetOutput,
|
|
13
29
|
ContentPostsListInput,
|
|
@@ -26,8 +42,15 @@ import type {
|
|
|
26
42
|
ContentPublicationsRemindInput,
|
|
27
43
|
ContentPublicationsRescheduleInput,
|
|
28
44
|
ContentPublicationsScheduleInput,
|
|
45
|
+
ContentPublicationsValidateInput,
|
|
46
|
+
ContentPublicationsValidateOutput,
|
|
29
47
|
} from '../types.gen';
|
|
30
48
|
|
|
49
|
+
export const contentChannelsBindMutationOptions = (sdk: GeneratedClient) => ({
|
|
50
|
+
mutationKey: ['content', 'channels', 'bind'],
|
|
51
|
+
mutationFn: (input: ContentChannelsBindInput) => sdk['content']['channels']['bind'](input),
|
|
52
|
+
});
|
|
53
|
+
|
|
31
54
|
export const contentChannelsGetQueryOptions = (sdk: GeneratedClient, input: ContentChannelsGetInput) => ({
|
|
32
55
|
queryKey: ['content', 'channels', 'get', input] as const,
|
|
33
56
|
queryFn: () => sdk['content']['channels']['get'](input),
|
|
@@ -38,21 +61,76 @@ export const contentChannelsListQueryOptions = (sdk: GeneratedClient, input: Con
|
|
|
38
61
|
queryFn: () => sdk['content']['channels']['list'](input),
|
|
39
62
|
});
|
|
40
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
|
+
|
|
41
74
|
export const contentChannelsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
42
75
|
mutationKey: ['content', 'channels', 'update'],
|
|
43
76
|
mutationFn: (input: ContentChannelsUpdateInput) => sdk['content']['channels']['update'](input),
|
|
44
77
|
});
|
|
45
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
|
+
|
|
46
114
|
export const contentPostsApproveMutationOptions = (sdk: GeneratedClient) => ({
|
|
47
115
|
mutationKey: ['content', 'posts', 'approve'],
|
|
48
116
|
mutationFn: (input: ContentPostsApproveInput) => sdk['content']['posts']['approve'](input),
|
|
49
117
|
});
|
|
50
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
|
+
|
|
51
124
|
export const contentPostsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
52
125
|
mutationKey: ['content', 'posts', 'create'],
|
|
53
126
|
mutationFn: (input: ContentPostsCreateInput) => sdk['content']['posts']['create'](input),
|
|
54
127
|
});
|
|
55
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
|
+
|
|
56
134
|
export const contentPostsGetQueryOptions = (sdk: GeneratedClient, input: ContentPostsGetInput) => ({
|
|
57
135
|
queryKey: ['content', 'posts', 'get', input] as const,
|
|
58
136
|
queryFn: () => sdk['content']['posts']['get'](input),
|
|
@@ -117,3 +195,8 @@ export const contentPublicationsScheduleMutationOptions = (sdk: GeneratedClient)
|
|
|
117
195
|
mutationKey: ['content', 'publications', 'schedule'],
|
|
118
196
|
mutationFn: (input: ContentPublicationsScheduleInput) => sdk['content']['publications']['schedule'](input),
|
|
119
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
|
+
});
|