@lessly/sdk-app 43.0.0 → 44.1.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-BE8VaNrU.d.cts → client.gen-DlCqQAIZ.d.cts} +1175 -1
- package/dist/{client.gen-BE8VaNrU.d.ts → client.gen-DlCqQAIZ.d.ts} +1175 -1
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/content/index.cjs +96 -0
- package/dist/content/index.cjs.map +1 -0
- package/dist/content/index.d.cts +76 -0
- package/dist/content/index.d.ts +76 -0
- package/dist/content/index.js +77 -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 +302 -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 +302 -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 +7 -2
- package/src/gen/bindings.gen.ts +302 -0
- package/src/gen/client.gen.ts +62 -0
- package/src/gen/content/index.ts +3 -0
- package/src/gen/content/queryOptions.gen.ts +119 -0
- package/src/gen/manifest.gen.ts +1 -1
- package/src/gen/types.gen.ts +1184 -0
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -950,6 +950,308 @@ export const bindings: BindingsMap = {
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
},
|
|
953
|
+
"content": {
|
|
954
|
+
"channels": {
|
|
955
|
+
"get": {
|
|
956
|
+
"method": "GET",
|
|
957
|
+
"params": [
|
|
958
|
+
{
|
|
959
|
+
"in": "path",
|
|
960
|
+
"name": "id"
|
|
961
|
+
}
|
|
962
|
+
],
|
|
963
|
+
"path": "/content/channels/:id",
|
|
964
|
+
"readOnly": true
|
|
965
|
+
},
|
|
966
|
+
"list": {
|
|
967
|
+
"method": "GET",
|
|
968
|
+
"params": [
|
|
969
|
+
{
|
|
970
|
+
"in": "query",
|
|
971
|
+
"name": "network"
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"in": "query",
|
|
975
|
+
"name": "limit"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"in": "query",
|
|
979
|
+
"name": "offset"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"path": "/content/channels",
|
|
983
|
+
"readOnly": true
|
|
984
|
+
},
|
|
985
|
+
"update": {
|
|
986
|
+
"method": "PATCH",
|
|
987
|
+
"params": [
|
|
988
|
+
{
|
|
989
|
+
"in": "path",
|
|
990
|
+
"name": "id"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"in": "body",
|
|
994
|
+
"name": "displayName"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"in": "body",
|
|
998
|
+
"name": "deliveryMode"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"in": "body",
|
|
1002
|
+
"name": "capabilities"
|
|
1003
|
+
}
|
|
1004
|
+
],
|
|
1005
|
+
"path": "/content/channels/:id",
|
|
1006
|
+
"readOnly": false
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"posts": {
|
|
1010
|
+
"approve": {
|
|
1011
|
+
"method": "POST",
|
|
1012
|
+
"params": [
|
|
1013
|
+
{
|
|
1014
|
+
"in": "path",
|
|
1015
|
+
"name": "id"
|
|
1016
|
+
}
|
|
1017
|
+
],
|
|
1018
|
+
"path": "/content/posts/:id/approve",
|
|
1019
|
+
"readOnly": false
|
|
1020
|
+
},
|
|
1021
|
+
"create": {
|
|
1022
|
+
"method": "POST",
|
|
1023
|
+
"params": [
|
|
1024
|
+
{
|
|
1025
|
+
"in": "body",
|
|
1026
|
+
"name": "text"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"in": "body",
|
|
1030
|
+
"name": "media"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"path": "/content/posts",
|
|
1034
|
+
"readOnly": false
|
|
1035
|
+
},
|
|
1036
|
+
"get": {
|
|
1037
|
+
"method": "GET",
|
|
1038
|
+
"params": [
|
|
1039
|
+
{
|
|
1040
|
+
"in": "path",
|
|
1041
|
+
"name": "id"
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"path": "/content/posts/:id",
|
|
1045
|
+
"readOnly": true
|
|
1046
|
+
},
|
|
1047
|
+
"list": {
|
|
1048
|
+
"method": "GET",
|
|
1049
|
+
"params": [
|
|
1050
|
+
{
|
|
1051
|
+
"in": "query",
|
|
1052
|
+
"name": "status"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"in": "query",
|
|
1056
|
+
"name": "limit"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"in": "query",
|
|
1060
|
+
"name": "offset"
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1063
|
+
"path": "/content/posts",
|
|
1064
|
+
"readOnly": true
|
|
1065
|
+
},
|
|
1066
|
+
"submit": {
|
|
1067
|
+
"method": "POST",
|
|
1068
|
+
"params": [
|
|
1069
|
+
{
|
|
1070
|
+
"in": "path",
|
|
1071
|
+
"name": "id"
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"path": "/content/posts/:id/submit",
|
|
1075
|
+
"readOnly": false
|
|
1076
|
+
},
|
|
1077
|
+
"update": {
|
|
1078
|
+
"method": "PATCH",
|
|
1079
|
+
"params": [
|
|
1080
|
+
{
|
|
1081
|
+
"in": "path",
|
|
1082
|
+
"name": "id"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"in": "body",
|
|
1086
|
+
"name": "text"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"in": "body",
|
|
1090
|
+
"name": "media"
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
"path": "/content/posts/:id",
|
|
1094
|
+
"readOnly": false
|
|
1095
|
+
},
|
|
1096
|
+
"versions": {
|
|
1097
|
+
"method": "GET",
|
|
1098
|
+
"params": [
|
|
1099
|
+
{
|
|
1100
|
+
"in": "path",
|
|
1101
|
+
"name": "id"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
1104
|
+
"path": "/content/posts/:id/versions",
|
|
1105
|
+
"readOnly": true
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"publications": {
|
|
1109
|
+
"cancel": {
|
|
1110
|
+
"method": "POST",
|
|
1111
|
+
"params": [
|
|
1112
|
+
{
|
|
1113
|
+
"in": "path",
|
|
1114
|
+
"name": "id"
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"path": "/content/publications/:id/cancel",
|
|
1118
|
+
"readOnly": false
|
|
1119
|
+
},
|
|
1120
|
+
"confirm": {
|
|
1121
|
+
"method": "POST",
|
|
1122
|
+
"params": [
|
|
1123
|
+
{
|
|
1124
|
+
"in": "path",
|
|
1125
|
+
"name": "id"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"in": "body",
|
|
1129
|
+
"name": "externalUrl"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"in": "body",
|
|
1133
|
+
"name": "externalId"
|
|
1134
|
+
}
|
|
1135
|
+
],
|
|
1136
|
+
"path": "/content/publications/:id/confirm",
|
|
1137
|
+
"readOnly": false
|
|
1138
|
+
},
|
|
1139
|
+
"get": {
|
|
1140
|
+
"method": "GET",
|
|
1141
|
+
"params": [
|
|
1142
|
+
{
|
|
1143
|
+
"in": "path",
|
|
1144
|
+
"name": "id"
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"path": "/content/publications/:id",
|
|
1148
|
+
"readOnly": true
|
|
1149
|
+
},
|
|
1150
|
+
"list": {
|
|
1151
|
+
"method": "GET",
|
|
1152
|
+
"params": [
|
|
1153
|
+
{
|
|
1154
|
+
"in": "query",
|
|
1155
|
+
"name": "state"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
"in": "query",
|
|
1159
|
+
"name": "postId"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"in": "query",
|
|
1163
|
+
"name": "channelId"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"in": "query",
|
|
1167
|
+
"name": "limit"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"in": "query",
|
|
1171
|
+
"name": "offset"
|
|
1172
|
+
}
|
|
1173
|
+
],
|
|
1174
|
+
"path": "/content/publications",
|
|
1175
|
+
"readOnly": true
|
|
1176
|
+
},
|
|
1177
|
+
"publish": {
|
|
1178
|
+
"method": "POST",
|
|
1179
|
+
"params": [
|
|
1180
|
+
{
|
|
1181
|
+
"in": "body",
|
|
1182
|
+
"name": "postId"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"in": "body",
|
|
1186
|
+
"name": "channelId"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"in": "body",
|
|
1190
|
+
"name": "text"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"in": "body",
|
|
1194
|
+
"name": "idempotencyKey"
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
"path": "/content/publications/publish",
|
|
1198
|
+
"readOnly": false
|
|
1199
|
+
},
|
|
1200
|
+
"remind": {
|
|
1201
|
+
"method": "POST",
|
|
1202
|
+
"params": [
|
|
1203
|
+
{
|
|
1204
|
+
"in": "path",
|
|
1205
|
+
"name": "id"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"path": "/content/publications/:id/remind",
|
|
1209
|
+
"readOnly": false
|
|
1210
|
+
},
|
|
1211
|
+
"reschedule": {
|
|
1212
|
+
"method": "POST",
|
|
1213
|
+
"params": [
|
|
1214
|
+
{
|
|
1215
|
+
"in": "path",
|
|
1216
|
+
"name": "id"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"in": "body",
|
|
1220
|
+
"name": "scheduledAt"
|
|
1221
|
+
}
|
|
1222
|
+
],
|
|
1223
|
+
"path": "/content/publications/:id/reschedule",
|
|
1224
|
+
"readOnly": false
|
|
1225
|
+
},
|
|
1226
|
+
"schedule": {
|
|
1227
|
+
"method": "POST",
|
|
1228
|
+
"params": [
|
|
1229
|
+
{
|
|
1230
|
+
"in": "body",
|
|
1231
|
+
"name": "postId"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"in": "body",
|
|
1235
|
+
"name": "channelId"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"in": "body",
|
|
1239
|
+
"name": "scheduledAt"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"in": "body",
|
|
1243
|
+
"name": "text"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"in": "body",
|
|
1247
|
+
"name": "idempotencyKey"
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
"path": "/content/publications",
|
|
1251
|
+
"readOnly": false
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
953
1255
|
"deployment": {
|
|
954
1256
|
"alert": {
|
|
955
1257
|
"create": {
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -112,6 +112,42 @@ import type {
|
|
|
112
112
|
ConsentRecordsExportOutput,
|
|
113
113
|
ConsentStatsGetInput,
|
|
114
114
|
ConsentStatsGetOutput,
|
|
115
|
+
ContentChannelsGetInput,
|
|
116
|
+
ContentChannelsGetOutput,
|
|
117
|
+
ContentChannelsListInput,
|
|
118
|
+
ContentChannelsListOutput,
|
|
119
|
+
ContentChannelsUpdateInput,
|
|
120
|
+
ContentChannelsUpdateOutput,
|
|
121
|
+
ContentPostsApproveInput,
|
|
122
|
+
ContentPostsApproveOutput,
|
|
123
|
+
ContentPostsCreateInput,
|
|
124
|
+
ContentPostsCreateOutput,
|
|
125
|
+
ContentPostsGetInput,
|
|
126
|
+
ContentPostsGetOutput,
|
|
127
|
+
ContentPostsListInput,
|
|
128
|
+
ContentPostsListOutput,
|
|
129
|
+
ContentPostsSubmitInput,
|
|
130
|
+
ContentPostsSubmitOutput,
|
|
131
|
+
ContentPostsUpdateInput,
|
|
132
|
+
ContentPostsUpdateOutput,
|
|
133
|
+
ContentPostsVersionsInput,
|
|
134
|
+
ContentPostsVersionsOutput,
|
|
135
|
+
ContentPublicationsCancelInput,
|
|
136
|
+
ContentPublicationsCancelOutput,
|
|
137
|
+
ContentPublicationsConfirmInput,
|
|
138
|
+
ContentPublicationsConfirmOutput,
|
|
139
|
+
ContentPublicationsGetInput,
|
|
140
|
+
ContentPublicationsGetOutput,
|
|
141
|
+
ContentPublicationsListInput,
|
|
142
|
+
ContentPublicationsListOutput,
|
|
143
|
+
ContentPublicationsPublishInput,
|
|
144
|
+
ContentPublicationsPublishOutput,
|
|
145
|
+
ContentPublicationsRemindInput,
|
|
146
|
+
ContentPublicationsRemindOutput,
|
|
147
|
+
ContentPublicationsRescheduleInput,
|
|
148
|
+
ContentPublicationsRescheduleOutput,
|
|
149
|
+
ContentPublicationsScheduleInput,
|
|
150
|
+
ContentPublicationsScheduleOutput,
|
|
115
151
|
DeploymentAlertCreateInput,
|
|
116
152
|
DeploymentAlertCreateOutput,
|
|
117
153
|
DeploymentAlertDeleteInput,
|
|
@@ -1113,6 +1149,32 @@ export interface GeneratedClient {
|
|
|
1113
1149
|
get(input: ConsentStatsGetInput): Promise<ConsentStatsGetOutput>;
|
|
1114
1150
|
};
|
|
1115
1151
|
};
|
|
1152
|
+
content: {
|
|
1153
|
+
channels: {
|
|
1154
|
+
get(input: ContentChannelsGetInput): Promise<ContentChannelsGetOutput>;
|
|
1155
|
+
list(input: ContentChannelsListInput): Promise<ContentChannelsListOutput>;
|
|
1156
|
+
update(input: ContentChannelsUpdateInput): Promise<ContentChannelsUpdateOutput>;
|
|
1157
|
+
};
|
|
1158
|
+
posts: {
|
|
1159
|
+
approve(input: ContentPostsApproveInput): Promise<ContentPostsApproveOutput>;
|
|
1160
|
+
create(input: ContentPostsCreateInput): Promise<ContentPostsCreateOutput>;
|
|
1161
|
+
get(input: ContentPostsGetInput): Promise<ContentPostsGetOutput>;
|
|
1162
|
+
list(input: ContentPostsListInput): Promise<ContentPostsListOutput>;
|
|
1163
|
+
submit(input: ContentPostsSubmitInput): Promise<ContentPostsSubmitOutput>;
|
|
1164
|
+
update(input: ContentPostsUpdateInput): Promise<ContentPostsUpdateOutput>;
|
|
1165
|
+
versions(input: ContentPostsVersionsInput): Promise<ContentPostsVersionsOutput>;
|
|
1166
|
+
};
|
|
1167
|
+
publications: {
|
|
1168
|
+
cancel(input: ContentPublicationsCancelInput): Promise<ContentPublicationsCancelOutput>;
|
|
1169
|
+
confirm(input: ContentPublicationsConfirmInput): Promise<ContentPublicationsConfirmOutput>;
|
|
1170
|
+
get(input: ContentPublicationsGetInput): Promise<ContentPublicationsGetOutput>;
|
|
1171
|
+
list(input: ContentPublicationsListInput): Promise<ContentPublicationsListOutput>;
|
|
1172
|
+
publish(input: ContentPublicationsPublishInput): Promise<ContentPublicationsPublishOutput>;
|
|
1173
|
+
remind(input: ContentPublicationsRemindInput): Promise<ContentPublicationsRemindOutput>;
|
|
1174
|
+
reschedule(input: ContentPublicationsRescheduleInput): Promise<ContentPublicationsRescheduleOutput>;
|
|
1175
|
+
schedule(input: ContentPublicationsScheduleInput): Promise<ContentPublicationsScheduleOutput>;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1116
1178
|
deployment: {
|
|
1117
1179
|
alert: {
|
|
1118
1180
|
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 { 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';
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
|
+
import type { GeneratedClient } from '../client.gen';
|
|
3
|
+
import type {
|
|
4
|
+
ContentChannelsGetInput,
|
|
5
|
+
ContentChannelsGetOutput,
|
|
6
|
+
ContentChannelsListInput,
|
|
7
|
+
ContentChannelsListOutput,
|
|
8
|
+
ContentChannelsUpdateInput,
|
|
9
|
+
ContentPostsApproveInput,
|
|
10
|
+
ContentPostsCreateInput,
|
|
11
|
+
ContentPostsGetInput,
|
|
12
|
+
ContentPostsGetOutput,
|
|
13
|
+
ContentPostsListInput,
|
|
14
|
+
ContentPostsListOutput,
|
|
15
|
+
ContentPostsSubmitInput,
|
|
16
|
+
ContentPostsUpdateInput,
|
|
17
|
+
ContentPostsVersionsInput,
|
|
18
|
+
ContentPostsVersionsOutput,
|
|
19
|
+
ContentPublicationsCancelInput,
|
|
20
|
+
ContentPublicationsConfirmInput,
|
|
21
|
+
ContentPublicationsGetInput,
|
|
22
|
+
ContentPublicationsGetOutput,
|
|
23
|
+
ContentPublicationsListInput,
|
|
24
|
+
ContentPublicationsListOutput,
|
|
25
|
+
ContentPublicationsPublishInput,
|
|
26
|
+
ContentPublicationsRemindInput,
|
|
27
|
+
ContentPublicationsRescheduleInput,
|
|
28
|
+
ContentPublicationsScheduleInput,
|
|
29
|
+
} from '../types.gen';
|
|
30
|
+
|
|
31
|
+
export const contentChannelsGetQueryOptions = (sdk: GeneratedClient, input: ContentChannelsGetInput) => ({
|
|
32
|
+
queryKey: ['content', 'channels', 'get', input] as const,
|
|
33
|
+
queryFn: () => sdk['content']['channels']['get'](input),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const contentChannelsListQueryOptions = (sdk: GeneratedClient, input: ContentChannelsListInput) => ({
|
|
37
|
+
queryKey: ['content', 'channels', 'list', input] as const,
|
|
38
|
+
queryFn: () => sdk['content']['channels']['list'](input),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const contentChannelsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
42
|
+
mutationKey: ['content', 'channels', 'update'],
|
|
43
|
+
mutationFn: (input: ContentChannelsUpdateInput) => sdk['content']['channels']['update'](input),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export const contentPostsApproveMutationOptions = (sdk: GeneratedClient) => ({
|
|
47
|
+
mutationKey: ['content', 'posts', 'approve'],
|
|
48
|
+
mutationFn: (input: ContentPostsApproveInput) => sdk['content']['posts']['approve'](input),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export const contentPostsCreateMutationOptions = (sdk: GeneratedClient) => ({
|
|
52
|
+
mutationKey: ['content', 'posts', 'create'],
|
|
53
|
+
mutationFn: (input: ContentPostsCreateInput) => sdk['content']['posts']['create'](input),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export const contentPostsGetQueryOptions = (sdk: GeneratedClient, input: ContentPostsGetInput) => ({
|
|
57
|
+
queryKey: ['content', 'posts', 'get', input] as const,
|
|
58
|
+
queryFn: () => sdk['content']['posts']['get'](input),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const contentPostsListQueryOptions = (sdk: GeneratedClient, input: ContentPostsListInput) => ({
|
|
62
|
+
queryKey: ['content', 'posts', 'list', input] as const,
|
|
63
|
+
queryFn: () => sdk['content']['posts']['list'](input),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export const contentPostsSubmitMutationOptions = (sdk: GeneratedClient) => ({
|
|
67
|
+
mutationKey: ['content', 'posts', 'submit'],
|
|
68
|
+
mutationFn: (input: ContentPostsSubmitInput) => sdk['content']['posts']['submit'](input),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const contentPostsUpdateMutationOptions = (sdk: GeneratedClient) => ({
|
|
72
|
+
mutationKey: ['content', 'posts', 'update'],
|
|
73
|
+
mutationFn: (input: ContentPostsUpdateInput) => sdk['content']['posts']['update'](input),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export const contentPostsVersionsQueryOptions = (sdk: GeneratedClient, input: ContentPostsVersionsInput) => ({
|
|
77
|
+
queryKey: ['content', 'posts', 'versions', input] as const,
|
|
78
|
+
queryFn: () => sdk['content']['posts']['versions'](input),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const contentPublicationsCancelMutationOptions = (sdk: GeneratedClient) => ({
|
|
82
|
+
mutationKey: ['content', 'publications', 'cancel'],
|
|
83
|
+
mutationFn: (input: ContentPublicationsCancelInput) => sdk['content']['publications']['cancel'](input),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export const contentPublicationsConfirmMutationOptions = (sdk: GeneratedClient) => ({
|
|
87
|
+
mutationKey: ['content', 'publications', 'confirm'],
|
|
88
|
+
mutationFn: (input: ContentPublicationsConfirmInput) => sdk['content']['publications']['confirm'](input),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export const contentPublicationsGetQueryOptions = (sdk: GeneratedClient, input: ContentPublicationsGetInput) => ({
|
|
92
|
+
queryKey: ['content', 'publications', 'get', input] as const,
|
|
93
|
+
queryFn: () => sdk['content']['publications']['get'](input),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const contentPublicationsListQueryOptions = (sdk: GeneratedClient, input: ContentPublicationsListInput) => ({
|
|
97
|
+
queryKey: ['content', 'publications', 'list', input] as const,
|
|
98
|
+
queryFn: () => sdk['content']['publications']['list'](input),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export const contentPublicationsPublishMutationOptions = (sdk: GeneratedClient) => ({
|
|
102
|
+
mutationKey: ['content', 'publications', 'publish'],
|
|
103
|
+
mutationFn: (input: ContentPublicationsPublishInput) => sdk['content']['publications']['publish'](input),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export const contentPublicationsRemindMutationOptions = (sdk: GeneratedClient) => ({
|
|
107
|
+
mutationKey: ['content', 'publications', 'remind'],
|
|
108
|
+
mutationFn: (input: ContentPublicationsRemindInput) => sdk['content']['publications']['remind'](input),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export const contentPublicationsRescheduleMutationOptions = (sdk: GeneratedClient) => ({
|
|
112
|
+
mutationKey: ['content', 'publications', 'reschedule'],
|
|
113
|
+
mutationFn: (input: ContentPublicationsRescheduleInput) => sdk['content']['publications']['reschedule'](input),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export const contentPublicationsScheduleMutationOptions = (sdk: GeneratedClient) => ({
|
|
117
|
+
mutationKey: ['content', 'publications', 'schedule'],
|
|
118
|
+
mutationFn: (input: ContentPublicationsScheduleInput) => sdk['content']['publications']['schedule'](input),
|
|
119
|
+
});
|
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', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|
|
2
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'playground', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|