@connectedxm/admin 7.2.8 → 7.3.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/index.cjs +27 -11
- package/dist/index.d.cts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +23 -9
- package/openapi.json +114 -21
- 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": [
|
|
@@ -108504,6 +108574,10 @@
|
|
|
108504
108574
|
"supply": {
|
|
108505
108575
|
"type": "number"
|
|
108506
108576
|
},
|
|
108577
|
+
"bookingLimitPerAccount": {
|
|
108578
|
+
"type": "number",
|
|
108579
|
+
"nullable": true
|
|
108580
|
+
},
|
|
108507
108581
|
"slotDuration": {
|
|
108508
108582
|
"type": "number"
|
|
108509
108583
|
},
|
|
@@ -108552,6 +108626,7 @@
|
|
|
108552
108626
|
"name",
|
|
108553
108627
|
"slug",
|
|
108554
108628
|
"supply",
|
|
108629
|
+
"bookingLimitPerAccount",
|
|
108555
108630
|
"slotDuration",
|
|
108556
108631
|
"price",
|
|
108557
108632
|
"description",
|
|
@@ -117417,26 +117492,22 @@
|
|
|
117417
117492
|
}
|
|
117418
117493
|
}
|
|
117419
117494
|
},
|
|
117420
|
-
"
|
|
117495
|
+
"ImageDirectUploadInputs": {
|
|
117421
117496
|
"type": "object",
|
|
117422
117497
|
"properties": {
|
|
117423
|
-
"
|
|
117424
|
-
"
|
|
117498
|
+
"type": {
|
|
117499
|
+
"$ref": "#/components/schemas/ImageType"
|
|
117425
117500
|
},
|
|
117426
117501
|
"name": {
|
|
117427
|
-
"type": "string"
|
|
117502
|
+
"type": "string",
|
|
117503
|
+
"nullable": true
|
|
117428
117504
|
},
|
|
117429
117505
|
"description": {
|
|
117430
117506
|
"type": "string",
|
|
117431
117507
|
"nullable": true
|
|
117432
|
-
},
|
|
117433
|
-
"type": {
|
|
117434
|
-
"$ref": "#/components/schemas/ImageType"
|
|
117435
117508
|
}
|
|
117436
117509
|
},
|
|
117437
117510
|
"required": [
|
|
117438
|
-
"imageDataUri",
|
|
117439
|
-
"name",
|
|
117440
117511
|
"type"
|
|
117441
117512
|
]
|
|
117442
117513
|
},
|
|
@@ -120781,6 +120852,17 @@
|
|
|
120781
120852
|
}
|
|
120782
120853
|
]
|
|
120783
120854
|
},
|
|
120855
|
+
"bookingLimitPerAccount": {
|
|
120856
|
+
"oneOf": [
|
|
120857
|
+
{
|
|
120858
|
+
"type": "number"
|
|
120859
|
+
},
|
|
120860
|
+
{
|
|
120861
|
+
"type": "string"
|
|
120862
|
+
}
|
|
120863
|
+
],
|
|
120864
|
+
"nullable": true
|
|
120865
|
+
},
|
|
120784
120866
|
"slotDuration": {
|
|
120785
120867
|
"oneOf": [
|
|
120786
120868
|
{
|
|
@@ -120899,6 +120981,17 @@
|
|
|
120899
120981
|
}
|
|
120900
120982
|
]
|
|
120901
120983
|
},
|
|
120984
|
+
"bookingLimitPerAccount": {
|
|
120985
|
+
"oneOf": [
|
|
120986
|
+
{
|
|
120987
|
+
"type": "number"
|
|
120988
|
+
},
|
|
120989
|
+
{
|
|
120990
|
+
"type": "string"
|
|
120991
|
+
}
|
|
120992
|
+
],
|
|
120993
|
+
"nullable": true
|
|
120994
|
+
},
|
|
120902
120995
|
"price": {
|
|
120903
120996
|
"oneOf": [
|
|
120904
120997
|
{
|