@connectedxm/admin 7.2.9 → 7.3.1
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/index.cjs +27 -11
- package/dist/index.d.cts +36 -15
- package/dist/index.d.ts +36 -15
- package/dist/index.js +23 -9
- package/openapi.json +90 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37731,16 +37731,15 @@ var useUploadFile = (options = {}) => {
|
|
|
37731
37731
|
return useConnectedMutation(UploadFile, options);
|
|
37732
37732
|
};
|
|
37733
37733
|
|
|
37734
|
-
// src/mutations/storage/images/
|
|
37735
|
-
var
|
|
37736
|
-
|
|
37734
|
+
// src/mutations/storage/images/useConfirmImageUpload.ts
|
|
37735
|
+
var ConfirmImageUpload = async ({
|
|
37736
|
+
imageId,
|
|
37737
37737
|
adminApiParams,
|
|
37738
37738
|
queryClient
|
|
37739
37739
|
}) => {
|
|
37740
37740
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37741
37741
|
const { data } = await connectedXM.post(
|
|
37742
|
-
`/images
|
|
37743
|
-
image
|
|
37742
|
+
`/images/${imageId}/confirm`
|
|
37744
37743
|
);
|
|
37745
37744
|
if (queryClient && data.status === "ok") {
|
|
37746
37745
|
queryClient.invalidateQueries({ queryKey: IMAGES_QUERY_KEY() });
|
|
@@ -37748,8 +37747,8 @@ var CreateImage = async ({
|
|
|
37748
37747
|
}
|
|
37749
37748
|
return data;
|
|
37750
37749
|
};
|
|
37751
|
-
var
|
|
37752
|
-
return useConnectedMutation(
|
|
37750
|
+
var useConfirmImageUpload = (options = {}) => {
|
|
37751
|
+
return useConnectedMutation(ConfirmImageUpload, options);
|
|
37753
37752
|
};
|
|
37754
37753
|
|
|
37755
37754
|
// src/mutations/storage/images/useDeleteImage.ts
|
|
@@ -37792,6 +37791,19 @@ var useDeleteManyImages = (options = {}) => {
|
|
|
37792
37791
|
return useConnectedMutation(DeleteManyImages, options);
|
|
37793
37792
|
};
|
|
37794
37793
|
|
|
37794
|
+
// src/mutations/storage/images/useRequestImageDirectUpload.ts
|
|
37795
|
+
var RequestImageDirectUpload = async ({
|
|
37796
|
+
image,
|
|
37797
|
+
adminApiParams
|
|
37798
|
+
}) => {
|
|
37799
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
37800
|
+
const { data } = await connectedXM.post(`/images/direct-upload`, image);
|
|
37801
|
+
return data;
|
|
37802
|
+
};
|
|
37803
|
+
var useRequestImageDirectUpload = (options = {}) => {
|
|
37804
|
+
return useConnectedMutation(RequestImageDirectUpload, options);
|
|
37805
|
+
};
|
|
37806
|
+
|
|
37795
37807
|
// src/mutations/storage/images/useSwitchImage.ts
|
|
37796
37808
|
var SwitchImage = async ({
|
|
37797
37809
|
image,
|
|
@@ -40177,6 +40189,7 @@ export {
|
|
|
40177
40189
|
CloneEvent,
|
|
40178
40190
|
CloneEventSession,
|
|
40179
40191
|
CloseStreamSession,
|
|
40192
|
+
ConfirmImageUpload,
|
|
40180
40193
|
ConfirmLogin,
|
|
40181
40194
|
ConnectedXMProvider,
|
|
40182
40195
|
ContentGuestType,
|
|
@@ -40248,7 +40261,6 @@ export {
|
|
|
40248
40261
|
CreateEventTrack,
|
|
40249
40262
|
CreateGroup,
|
|
40250
40263
|
CreateGroupInvitations,
|
|
40251
|
-
CreateImage,
|
|
40252
40264
|
CreateImport,
|
|
40253
40265
|
CreateIntegration,
|
|
40254
40266
|
CreateInterest,
|
|
@@ -41479,6 +41491,7 @@ export {
|
|
|
41479
41491
|
ReorderSurveyQuestionChoices,
|
|
41480
41492
|
ReorderSurveySectionQuestions,
|
|
41481
41493
|
ReportType,
|
|
41494
|
+
RequestImageDirectUpload,
|
|
41482
41495
|
ResendRegistrationConfirmationEmail,
|
|
41483
41496
|
ResetLivestreamStreamKey,
|
|
41484
41497
|
RevertChannelContentToDraft,
|
|
@@ -42408,6 +42421,7 @@ export {
|
|
|
42408
42421
|
useCloneEvent,
|
|
42409
42422
|
useCloneEventSession,
|
|
42410
42423
|
useCloseStreamSession,
|
|
42424
|
+
useConfirmImageUpload,
|
|
42411
42425
|
useConfirmLogin,
|
|
42412
42426
|
useConnectedCursorQuery,
|
|
42413
42427
|
useConnectedInfiniteQuery,
|
|
@@ -42481,7 +42495,6 @@ export {
|
|
|
42481
42495
|
useCreateEventTrack,
|
|
42482
42496
|
useCreateGroup,
|
|
42483
42497
|
useCreateGroupInvitations,
|
|
42484
|
-
useCreateImage,
|
|
42485
42498
|
useCreateImport,
|
|
42486
42499
|
useCreateIntegration,
|
|
42487
42500
|
useCreateInterest,
|
|
@@ -43326,6 +43339,7 @@ export {
|
|
|
43326
43339
|
useReorderSurveyQuestionChoiceSubQuestions,
|
|
43327
43340
|
useReorderSurveyQuestionChoices,
|
|
43328
43341
|
useReorderSurveySectionQuestions,
|
|
43342
|
+
useRequestImageDirectUpload,
|
|
43329
43343
|
useResendRegistrationConfirmationEmail,
|
|
43330
43344
|
useResetLivestreamStreamKey,
|
|
43331
43345
|
useRevertChannelContentToDraft,
|
package/openapi.json
CHANGED
|
@@ -64018,17 +64018,19 @@
|
|
|
64018
64018
|
"tags": [
|
|
64019
64019
|
"Storage::Images"
|
|
64020
64020
|
]
|
|
64021
|
-
}
|
|
64021
|
+
}
|
|
64022
|
+
},
|
|
64023
|
+
"/images/delete": {
|
|
64022
64024
|
"post": {
|
|
64023
|
-
"operationId": "
|
|
64024
|
-
"summary": "
|
|
64025
|
-
"description": "
|
|
64025
|
+
"operationId": "DeleteManyImages",
|
|
64026
|
+
"summary": "Delete Many Images",
|
|
64027
|
+
"description": "Delete Many Images endpoint",
|
|
64026
64028
|
"requestBody": {
|
|
64027
64029
|
"required": true,
|
|
64028
64030
|
"content": {
|
|
64029
64031
|
"application/json": {
|
|
64030
64032
|
"schema": {
|
|
64031
|
-
"$ref": "#/components/schemas/
|
|
64033
|
+
"$ref": "#/components/schemas/DeleteManyImagesInput"
|
|
64032
64034
|
}
|
|
64033
64035
|
}
|
|
64034
64036
|
}
|
|
@@ -64052,7 +64054,7 @@
|
|
|
64052
64054
|
"example": "Success message."
|
|
64053
64055
|
},
|
|
64054
64056
|
"data": {
|
|
64055
|
-
"
|
|
64057
|
+
"nullable": true
|
|
64056
64058
|
}
|
|
64057
64059
|
},
|
|
64058
64060
|
"required": [
|
|
@@ -64070,17 +64072,17 @@
|
|
|
64070
64072
|
]
|
|
64071
64073
|
}
|
|
64072
64074
|
},
|
|
64073
|
-
"/images/
|
|
64075
|
+
"/images/direct-upload": {
|
|
64074
64076
|
"post": {
|
|
64075
|
-
"operationId": "
|
|
64076
|
-
"summary": "
|
|
64077
|
-
"description": "
|
|
64077
|
+
"operationId": "RequestImageDirectUpload",
|
|
64078
|
+
"summary": "Request Image Direct Upload",
|
|
64079
|
+
"description": "Request Image Direct Upload endpoint",
|
|
64078
64080
|
"requestBody": {
|
|
64079
64081
|
"required": true,
|
|
64080
64082
|
"content": {
|
|
64081
64083
|
"application/json": {
|
|
64082
64084
|
"schema": {
|
|
64083
|
-
"$ref": "#/components/schemas/
|
|
64085
|
+
"$ref": "#/components/schemas/ImageDirectUploadInputs"
|
|
64084
64086
|
}
|
|
64085
64087
|
}
|
|
64086
64088
|
}
|
|
@@ -64104,7 +64106,7 @@
|
|
|
64104
64106
|
"example": "Success message."
|
|
64105
64107
|
},
|
|
64106
64108
|
"data": {
|
|
64107
|
-
"
|
|
64109
|
+
"$ref": "#/components/schemas/ImageDirectUpload"
|
|
64108
64110
|
}
|
|
64109
64111
|
},
|
|
64110
64112
|
"required": [
|
|
@@ -64287,6 +64289,59 @@
|
|
|
64287
64289
|
]
|
|
64288
64290
|
}
|
|
64289
64291
|
},
|
|
64292
|
+
"/images/{imageId}/confirm": {
|
|
64293
|
+
"post": {
|
|
64294
|
+
"operationId": "ConfirmImageUpload",
|
|
64295
|
+
"summary": "Confirm Image Upload",
|
|
64296
|
+
"description": "Confirm Image Upload endpoint",
|
|
64297
|
+
"parameters": [
|
|
64298
|
+
{
|
|
64299
|
+
"in": "path",
|
|
64300
|
+
"name": "imageId",
|
|
64301
|
+
"schema": {
|
|
64302
|
+
"type": "string"
|
|
64303
|
+
},
|
|
64304
|
+
"description": "The image identifier",
|
|
64305
|
+
"required": true
|
|
64306
|
+
}
|
|
64307
|
+
],
|
|
64308
|
+
"responses": {
|
|
64309
|
+
"200": {
|
|
64310
|
+
"description": "Successful response",
|
|
64311
|
+
"content": {
|
|
64312
|
+
"application/json": {
|
|
64313
|
+
"schema": {
|
|
64314
|
+
"type": "object",
|
|
64315
|
+
"properties": {
|
|
64316
|
+
"status": {
|
|
64317
|
+
"type": "string",
|
|
64318
|
+
"enum": [
|
|
64319
|
+
"ok"
|
|
64320
|
+
]
|
|
64321
|
+
},
|
|
64322
|
+
"message": {
|
|
64323
|
+
"type": "string",
|
|
64324
|
+
"example": "Success message."
|
|
64325
|
+
},
|
|
64326
|
+
"data": {
|
|
64327
|
+
"$ref": "#/components/schemas/Image"
|
|
64328
|
+
}
|
|
64329
|
+
},
|
|
64330
|
+
"required": [
|
|
64331
|
+
"status",
|
|
64332
|
+
"message",
|
|
64333
|
+
"data"
|
|
64334
|
+
]
|
|
64335
|
+
}
|
|
64336
|
+
}
|
|
64337
|
+
}
|
|
64338
|
+
}
|
|
64339
|
+
},
|
|
64340
|
+
"tags": [
|
|
64341
|
+
"Storage::Images"
|
|
64342
|
+
]
|
|
64343
|
+
}
|
|
64344
|
+
},
|
|
64290
64345
|
"/images/{imageId}/switch": {
|
|
64291
64346
|
"put": {
|
|
64292
64347
|
"operationId": "SwitchImage",
|
|
@@ -97963,6 +98018,21 @@
|
|
|
97963
98018
|
}
|
|
97964
98019
|
]
|
|
97965
98020
|
},
|
|
98021
|
+
"ImageDirectUpload": {
|
|
98022
|
+
"type": "object",
|
|
98023
|
+
"properties": {
|
|
98024
|
+
"id": {
|
|
98025
|
+
"type": "string"
|
|
98026
|
+
},
|
|
98027
|
+
"uploadURL": {
|
|
98028
|
+
"type": "string"
|
|
98029
|
+
}
|
|
98030
|
+
},
|
|
98031
|
+
"required": [
|
|
98032
|
+
"id",
|
|
98033
|
+
"uploadURL"
|
|
98034
|
+
]
|
|
98035
|
+
},
|
|
97966
98036
|
"ExportStatus": {
|
|
97967
98037
|
"type": "string",
|
|
97968
98038
|
"enum": [
|
|
@@ -105166,11 +105236,7 @@
|
|
|
105166
105236
|
"chat_download_url_expiry": {
|
|
105167
105237
|
"type": "string"
|
|
105168
105238
|
}
|
|
105169
|
-
}
|
|
105170
|
-
"required": [
|
|
105171
|
-
"chat_download_url",
|
|
105172
|
-
"chat_download_url_expiry"
|
|
105173
|
-
]
|
|
105239
|
+
}
|
|
105174
105240
|
},
|
|
105175
105241
|
"MeetingSessionTranscriptDownload": {
|
|
105176
105242
|
"type": "object",
|
|
@@ -105186,9 +105252,7 @@
|
|
|
105186
105252
|
}
|
|
105187
105253
|
},
|
|
105188
105254
|
"required": [
|
|
105189
|
-
"sessionId"
|
|
105190
|
-
"transcript_download_url",
|
|
105191
|
-
"transcript_download_url_expiry"
|
|
105255
|
+
"sessionId"
|
|
105192
105256
|
]
|
|
105193
105257
|
},
|
|
105194
105258
|
"MeetingSessionSummaryDownload": {
|
|
@@ -105205,9 +105269,7 @@
|
|
|
105205
105269
|
}
|
|
105206
105270
|
},
|
|
105207
105271
|
"required": [
|
|
105208
|
-
"sessionId"
|
|
105209
|
-
"summary_download_url",
|
|
105210
|
-
"summary_download_url_expiry"
|
|
105272
|
+
"sessionId"
|
|
105211
105273
|
]
|
|
105212
105274
|
},
|
|
105213
105275
|
"Livestream": {
|
|
@@ -117422,26 +117484,22 @@
|
|
|
117422
117484
|
}
|
|
117423
117485
|
}
|
|
117424
117486
|
},
|
|
117425
|
-
"
|
|
117487
|
+
"ImageDirectUploadInputs": {
|
|
117426
117488
|
"type": "object",
|
|
117427
117489
|
"properties": {
|
|
117428
|
-
"
|
|
117429
|
-
"
|
|
117490
|
+
"type": {
|
|
117491
|
+
"$ref": "#/components/schemas/ImageType"
|
|
117430
117492
|
},
|
|
117431
117493
|
"name": {
|
|
117432
|
-
"type": "string"
|
|
117494
|
+
"type": "string",
|
|
117495
|
+
"nullable": true
|
|
117433
117496
|
},
|
|
117434
117497
|
"description": {
|
|
117435
117498
|
"type": "string",
|
|
117436
117499
|
"nullable": true
|
|
117437
|
-
},
|
|
117438
|
-
"type": {
|
|
117439
|
-
"$ref": "#/components/schemas/ImageType"
|
|
117440
117500
|
}
|
|
117441
117501
|
},
|
|
117442
117502
|
"required": [
|
|
117443
|
-
"imageDataUri",
|
|
117444
|
-
"name",
|
|
117445
117503
|
"type"
|
|
117446
117504
|
]
|
|
117447
117505
|
},
|