@connectedxm/admin 6.6.4 → 6.7.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.js CHANGED
@@ -16010,6 +16010,107 @@ var useGetCustomModule = (moduleId = "", options = {}) => {
16010
16010
  );
16011
16011
  };
16012
16012
 
16013
+ // src/queries/organization/modules/settings/useGetOrganizationModuleSettings.ts
16014
+ var ORGANIZATION_MODULE_SETTINGS_QUERY_KEY = () => [
16015
+ "ORGANIZATION",
16016
+ "MODULE_SETTINGS"
16017
+ ];
16018
+ var SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA = (client, keyParams, response) => {
16019
+ client.setQueryData(
16020
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(...keyParams),
16021
+ response
16022
+ );
16023
+ };
16024
+ var GetOrganizationModuleSettings = async ({
16025
+ adminApiParams
16026
+ }) => {
16027
+ const adminApi = await GetAdminAPI(adminApiParams);
16028
+ const { data } = await adminApi.get(`/organization/module-settings`);
16029
+ return data;
16030
+ };
16031
+ var useGetOrganizationModuleSettings = (options = {}) => {
16032
+ return useConnectedSingleQuery(
16033
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(),
16034
+ (params) => GetOrganizationModuleSettings(params),
16035
+ options
16036
+ );
16037
+ };
16038
+
16039
+ // src/queries/organization/modules/settings/translations/useGetOrganizationModuleSettingsTranslations.ts
16040
+ var ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY = () => [
16041
+ ...ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(),
16042
+ "TRANSLATIONS"
16043
+ ];
16044
+ var SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
16045
+ client.setQueryData(
16046
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(...keyParams),
16047
+ response
16048
+ );
16049
+ };
16050
+ var GetOrganizationModuleSettingsTranslations = async ({
16051
+ pageParam,
16052
+ pageSize,
16053
+ orderBy,
16054
+ search,
16055
+ adminApiParams
16056
+ }) => {
16057
+ const adminApi = await GetAdminAPI(adminApiParams);
16058
+ const { data } = await adminApi.get(
16059
+ `/organization/module-settings/translations`,
16060
+ {
16061
+ params: {
16062
+ page: pageParam || void 0,
16063
+ pageSize: pageSize || void 0,
16064
+ orderBy: orderBy || void 0,
16065
+ search: search || void 0
16066
+ }
16067
+ }
16068
+ );
16069
+ return data;
16070
+ };
16071
+ var useGetOrganizationModuleSettingsTranslations = (params = {}, options = {}) => {
16072
+ return useConnectedInfiniteQuery(
16073
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(),
16074
+ (params2) => GetOrganizationModuleSettingsTranslations({
16075
+ ...params2
16076
+ }),
16077
+ params,
16078
+ options
16079
+ );
16080
+ };
16081
+
16082
+ // src/queries/organization/modules/settings/translations/useGetOrganizationModuleSettingsTranslation.ts
16083
+ var ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY = (locale) => [...ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(), locale];
16084
+ var SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
16085
+ client.setQueryData(
16086
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(...keyParams),
16087
+ response
16088
+ );
16089
+ };
16090
+ var GetOrganizationModuleSettingsTranslation = async ({
16091
+ locale,
16092
+ adminApiParams
16093
+ }) => {
16094
+ const adminApi = await GetAdminAPI(adminApiParams);
16095
+ const { data } = await adminApi.get(
16096
+ `/organization/module-settings/translations/${locale}`
16097
+ );
16098
+ return data;
16099
+ };
16100
+ var useGetOrganizationModuleSettingsTranslation = (locale = "", options = {}) => {
16101
+ return useConnectedSingleQuery(
16102
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(locale),
16103
+ (params) => GetOrganizationModuleSettingsTranslation({
16104
+ ...params,
16105
+ locale
16106
+ }),
16107
+ {
16108
+ ...options,
16109
+ enabled: !!locale && locale !== "en" && (options.enabled ?? true)
16110
+ }
16111
+ );
16112
+ };
16113
+
16013
16114
  // src/queries/organization/modules/useGetOrganizationModules.ts
16014
16115
  var ORGANIZATION_MODULES_QUERY_KEY = () => [
16015
16116
  ...ORGANIZATION_QUERY_KEY(),
@@ -32368,6 +32469,75 @@ var useUpdateCustomModule = (options = {}) => {
32368
32469
  return useConnectedMutation(UpdateCustomModule, options);
32369
32470
  };
32370
32471
 
32472
+ // src/mutations/organization/modules/settings/translations/useDeleteOrganizationModuleSettingsTranslation.ts
32473
+ var DeleteOrganizationModuleSettingsTranslation = async ({
32474
+ locale,
32475
+ adminApiParams,
32476
+ queryClient
32477
+ }) => {
32478
+ const connectedXM = await GetAdminAPI(adminApiParams);
32479
+ const { data } = await connectedXM.delete(
32480
+ `/organization/module-settings/translations/${locale}`
32481
+ );
32482
+ if (queryClient && data.status === "ok") {
32483
+ queryClient.invalidateQueries({
32484
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY()
32485
+ });
32486
+ queryClient.invalidateQueries({
32487
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(locale)
32488
+ });
32489
+ }
32490
+ return data;
32491
+ };
32492
+ var useDeleteOrganizationModuleSettingsTranslation = (options = {}) => {
32493
+ return useConnectedMutation(DeleteOrganizationModuleSettingsTranslation, options);
32494
+ };
32495
+
32496
+ // src/mutations/organization/modules/settings/translations/useUpdateOrganizationModuleSettingsTranslation.ts
32497
+ var UpdateOrganizationModuleSettingsTranslation = async ({
32498
+ translation,
32499
+ adminApiParams,
32500
+ locale,
32501
+ queryClient
32502
+ }) => {
32503
+ const connectedXM = await GetAdminAPI(adminApiParams);
32504
+ const { data } = await connectedXM.put(
32505
+ `/organization/module-settings/translations/${locale}`,
32506
+ translation
32507
+ );
32508
+ if (queryClient && data.status === "ok") {
32509
+ queryClient.invalidateQueries({
32510
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY()
32511
+ });
32512
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA(
32513
+ queryClient,
32514
+ [locale],
32515
+ data
32516
+ );
32517
+ }
32518
+ return data;
32519
+ };
32520
+ var useUpdateOrganizationModuleSettingsTranslation = (options = {}) => {
32521
+ return useConnectedMutation(UpdateOrganizationModuleSettingsTranslation, options);
32522
+ };
32523
+
32524
+ // src/mutations/organization/modules/settings/useUpdateOrganizationModuleSettings.ts
32525
+ var UpdateOrganizationModuleSettings = async ({
32526
+ settings,
32527
+ adminApiParams,
32528
+ queryClient
32529
+ }) => {
32530
+ const connectedXM = await GetAdminAPI(adminApiParams);
32531
+ const { data } = await connectedXM.put(`/organization/module-settings`, settings);
32532
+ if (queryClient && data.status === "ok") {
32533
+ SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA(queryClient, [], data);
32534
+ }
32535
+ return data;
32536
+ };
32537
+ var useUpdateOrganizationModuleSettings = (options = {}) => {
32538
+ return useConnectedMutation(UpdateOrganizationModuleSettings, options);
32539
+ };
32540
+
32371
32541
  // src/mutations/organization/modules/tiers/useAddOrganizationModuleEditableTier.ts
32372
32542
  var AddOrganizationModuleEditableTier = async ({
32373
32543
  moduleType,
@@ -36229,6 +36399,7 @@ export {
36229
36399
  DeleteMeetingLink,
36230
36400
  DeleteMeetingParticipant,
36231
36401
  DeleteOrganizationDomain,
36402
+ DeleteOrganizationModuleSettingsTranslation,
36232
36403
  DeleteOrganizationPaymentIntegration,
36233
36404
  DeleteOrganizationSideEffect,
36234
36405
  DeleteOrganizationTeamMember,
@@ -36897,6 +37068,9 @@ export {
36897
37068
  GetOrganizationModule,
36898
37069
  GetOrganizationModuleEditableTiers,
36899
37070
  GetOrganizationModuleEnabledTiers,
37071
+ GetOrganizationModuleSettings,
37072
+ GetOrganizationModuleSettingsTranslation,
37073
+ GetOrganizationModuleSettingsTranslations,
36900
37074
  GetOrganizationModules,
36901
37075
  GetOrganizationPaymentIntegration,
36902
37076
  GetOrganizationPaymentIntegrations,
@@ -37089,6 +37263,9 @@ export {
37089
37263
  ORGANIZATION_MODULE_EDITABLE_TIERS_QUERY_KEY,
37090
37264
  ORGANIZATION_MODULE_ENABLED_TIERS_QUERY_KEY,
37091
37265
  ORGANIZATION_MODULE_QUERY_KEY,
37266
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY,
37267
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY,
37268
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY,
37092
37269
  ORGANIZATION_PAYMENT_INTEGRATIONS_QUERY_KEY,
37093
37270
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
37094
37271
  ORGANIZATION_QUERY_KEY,
@@ -37590,6 +37767,9 @@ export {
37590
37767
  SET_ORGANIZATION_MODULE_EDITABLE_TIERS_QUERY_DATA,
37591
37768
  SET_ORGANIZATION_MODULE_ENABLED_TIERS_QUERY_DATA,
37592
37769
  SET_ORGANIZATION_MODULE_QUERY_DATA,
37770
+ SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA,
37771
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_DATA,
37772
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA,
37593
37773
  SET_ORGANIZATION_PAYMENT_INTEGRATIONS_QUERY_DATA,
37594
37774
  SET_ORGANIZATION_PAYMENT_INTEGRATION_QUERY_DATA,
37595
37775
  SET_ORGANIZATION_QUERY_DATA,
@@ -37917,6 +38097,8 @@ export {
37917
38097
  UpdateOrganizationIntegrations,
37918
38098
  UpdateOrganizationMembership,
37919
38099
  UpdateOrganizationModule,
38100
+ UpdateOrganizationModuleSettings,
38101
+ UpdateOrganizationModuleSettingsTranslation,
37920
38102
  UpdateOrganizationPaymentIntegration,
37921
38103
  UpdateOrganizationTeamMember,
37922
38104
  UpdateOrganizationWebhook,
@@ -38258,6 +38440,7 @@ export {
38258
38440
  useDeleteMeetingLink,
38259
38441
  useDeleteMeetingParticipant,
38260
38442
  useDeleteOrganizationDomain,
38443
+ useDeleteOrganizationModuleSettingsTranslation,
38261
38444
  useDeleteOrganizationPaymentIntegration,
38262
38445
  useDeleteOrganizationSideEffect,
38263
38446
  useDeleteOrganizationTeamMember,
@@ -38684,6 +38867,9 @@ export {
38684
38867
  useGetOrganizationModule,
38685
38868
  useGetOrganizationModuleEditableTiers,
38686
38869
  useGetOrganizationModuleEnabledTiers,
38870
+ useGetOrganizationModuleSettings,
38871
+ useGetOrganizationModuleSettingsTranslation,
38872
+ useGetOrganizationModuleSettingsTranslations,
38687
38873
  useGetOrganizationModules,
38688
38874
  useGetOrganizationPaymentIntegration,
38689
38875
  useGetOrganizationPaymentIntegrations,
@@ -39019,6 +39205,8 @@ export {
39019
39205
  useUpdateOrganizationIntegrations,
39020
39206
  useUpdateOrganizationMembership,
39021
39207
  useUpdateOrganizationModule,
39208
+ useUpdateOrganizationModuleSettings,
39209
+ useUpdateOrganizationModuleSettingsTranslation,
39022
39210
  useUpdateOrganizationPaymentIntegration,
39023
39211
  useUpdateOrganizationTeamMember,
39024
39212
  useUpdateOrganizationWebhook,
package/openapi.json CHANGED
@@ -408,6 +408,10 @@
408
408
  "name": "Organization::Modules::Custom",
409
409
  "description": "Configure custom modules and features specific to your organization's needs and requirements"
410
410
  },
411
+ {
412
+ "name": "Organization::Modules::Settings",
413
+ "description": "Operations for organization::modules::settings"
414
+ },
411
415
  {
412
416
  "name": "Organization::Modules::Tiers",
413
417
  "description": "Set tier-based module access, determining which features are available to different membership levels"
@@ -54171,6 +54175,98 @@
54171
54175
  ]
54172
54176
  }
54173
54177
  },
54178
+ "/organization/module-settings": {
54179
+ "get": {
54180
+ "operationId": "GetOrganizationModuleSettings",
54181
+ "summary": "Get Organization Module Settings",
54182
+ "description": "Get Organization Module Settings endpoint",
54183
+ "responses": {
54184
+ "200": {
54185
+ "description": "Successful response",
54186
+ "content": {
54187
+ "application/json": {
54188
+ "schema": {
54189
+ "type": "object",
54190
+ "properties": {
54191
+ "status": {
54192
+ "type": "string",
54193
+ "enum": [
54194
+ "ok"
54195
+ ]
54196
+ },
54197
+ "message": {
54198
+ "type": "string",
54199
+ "example": "Success message."
54200
+ },
54201
+ "data": {
54202
+ "type": "object"
54203
+ }
54204
+ },
54205
+ "required": [
54206
+ "status",
54207
+ "message",
54208
+ "data"
54209
+ ]
54210
+ }
54211
+ }
54212
+ }
54213
+ }
54214
+ },
54215
+ "tags": [
54216
+ "Organization::Modules::Settings"
54217
+ ]
54218
+ },
54219
+ "put": {
54220
+ "operationId": "UpdateOrganizationModuleSettings",
54221
+ "summary": "Update Organization Module Settings",
54222
+ "description": "Update Organization Module Settings endpoint",
54223
+ "requestBody": {
54224
+ "required": true,
54225
+ "content": {
54226
+ "application/json": {
54227
+ "schema": {
54228
+ "$ref": "#/components/schemas/OrganizationModuleSettingsUpdateInputs"
54229
+ }
54230
+ }
54231
+ }
54232
+ },
54233
+ "responses": {
54234
+ "200": {
54235
+ "description": "Successful response",
54236
+ "content": {
54237
+ "application/json": {
54238
+ "schema": {
54239
+ "type": "object",
54240
+ "properties": {
54241
+ "status": {
54242
+ "type": "string",
54243
+ "enum": [
54244
+ "ok"
54245
+ ]
54246
+ },
54247
+ "message": {
54248
+ "type": "string",
54249
+ "example": "Success message."
54250
+ },
54251
+ "data": {
54252
+ "type": "object"
54253
+ }
54254
+ },
54255
+ "required": [
54256
+ "status",
54257
+ "message",
54258
+ "data"
54259
+ ]
54260
+ }
54261
+ }
54262
+ }
54263
+ }
54264
+ },
54265
+ "tags": [
54266
+ "Organization::Modules::Settings"
54267
+ ]
54268
+ }
54269
+ },
54174
54270
  "/organization/modules": {
54175
54271
  "get": {
54176
54272
  "operationId": "GetOrganizationModules",
@@ -76758,34 +76854,9 @@
76758
76854
  "type": "string",
76759
76855
  "nullable": true
76760
76856
  },
76761
- "meetingGroupCallAdminPreset": {
76762
- "type": "string"
76763
- },
76764
- "meetingGroupCallGuestPreset": {
76765
- "type": "string"
76766
- },
76767
- "meetingWebinarAdminPreset": {
76768
- "type": "string"
76769
- },
76770
- "meetingWebinarGuestPreset": {
76771
- "type": "string"
76772
- },
76773
- "meetingLivestreamAdminPreset": {
76774
- "type": "string"
76775
- },
76776
- "meetingLivestreamGuestPreset": {
76777
- "type": "string"
76778
- },
76779
76857
  "options": {
76780
76858
  "type": "object",
76781
76859
  "nullable": true
76782
- },
76783
- "autoResolveSupportTickets": {
76784
- "type": "boolean"
76785
- },
76786
- "autoResolveSupportTicketMessage": {
76787
- "type": "string",
76788
- "nullable": true
76789
76860
  }
76790
76861
  },
76791
76862
  "required": [
@@ -76849,15 +76920,7 @@
76849
76920
  "locales",
76850
76921
  "inviteOnly",
76851
76922
  "googleTagManagerId",
76852
- "meetingGroupCallAdminPreset",
76853
- "meetingGroupCallGuestPreset",
76854
- "meetingWebinarAdminPreset",
76855
- "meetingWebinarGuestPreset",
76856
- "meetingLivestreamAdminPreset",
76857
- "meetingLivestreamGuestPreset",
76858
- "options",
76859
- "autoResolveSupportTickets",
76860
- "autoResolveSupportTicketMessage"
76923
+ "options"
76861
76924
  ]
76862
76925
  }
76863
76926
  ]
@@ -76893,6 +76956,92 @@
76893
76956
  "updatedAt"
76894
76957
  ]
76895
76958
  },
76959
+ "BaseOrganizationModuleSettings": {
76960
+ "type": "object",
76961
+ "properties": {
76962
+ "organizationId": {
76963
+ "type": "string"
76964
+ }
76965
+ },
76966
+ "required": [
76967
+ "organizationId"
76968
+ ]
76969
+ },
76970
+ "OrganizationModuleSettings": {
76971
+ "allOf": [
76972
+ {
76973
+ "$ref": "#/components/schemas/BaseOrganizationModuleSettings"
76974
+ },
76975
+ {
76976
+ "type": "object",
76977
+ "properties": {
76978
+ "meetingGroupCallAdminPreset": {
76979
+ "type": "string"
76980
+ },
76981
+ "meetingGroupCallGuestPreset": {
76982
+ "type": "string"
76983
+ },
76984
+ "meetingWebinarAdminPreset": {
76985
+ "type": "string"
76986
+ },
76987
+ "meetingWebinarGuestPreset": {
76988
+ "type": "string"
76989
+ },
76990
+ "meetingLivestreamAdminPreset": {
76991
+ "type": "string"
76992
+ },
76993
+ "meetingLivestreamGuestPreset": {
76994
+ "type": "string"
76995
+ },
76996
+ "supportAutoResolve": {
76997
+ "type": "boolean"
76998
+ },
76999
+ "supportAutoResolveMessage": {
77000
+ "type": "string"
77001
+ }
77002
+ },
77003
+ "required": [
77004
+ "meetingGroupCallAdminPreset",
77005
+ "meetingGroupCallGuestPreset",
77006
+ "meetingWebinarAdminPreset",
77007
+ "meetingWebinarGuestPreset",
77008
+ "meetingLivestreamAdminPreset",
77009
+ "meetingLivestreamGuestPreset",
77010
+ "supportAutoResolve"
77011
+ ]
77012
+ }
77013
+ ]
77014
+ },
77015
+ "BaseOrganizationModuleSettingsTranslation": {
77016
+ "type": "object",
77017
+ "properties": {
77018
+ "organizationId": {
77019
+ "type": "string"
77020
+ },
77021
+ "locale": {
77022
+ "type": "string"
77023
+ }
77024
+ },
77025
+ "required": [
77026
+ "organizationId",
77027
+ "locale"
77028
+ ]
77029
+ },
77030
+ "OrganizationModuleSettingsTranslation": {
77031
+ "allOf": [
77032
+ {
77033
+ "$ref": "#/components/schemas/BaseOrganizationModuleSettingsTranslation"
77034
+ },
77035
+ {
77036
+ "type": "object",
77037
+ "properties": {
77038
+ "supportAutoResolveMessage": {
77039
+ "type": "string"
77040
+ }
77041
+ }
77042
+ }
77043
+ ]
77044
+ },
76896
77045
  "PurchaseStatus": {
76897
77046
  "type": "string",
76898
77047
  "enum": [
@@ -93083,6 +93232,15 @@
93083
93232
  "type": "string",
93084
93233
  "nullable": true
93085
93234
  },
93235
+ "options": {
93236
+ "type": "object",
93237
+ "nullable": true
93238
+ }
93239
+ }
93240
+ },
93241
+ "OrganizationModuleSettingsUpdateInputs": {
93242
+ "type": "object",
93243
+ "properties": {
93086
93244
  "meetingGroupCallAdminPreset": {
93087
93245
  "type": "string"
93088
93246
  },
@@ -93101,16 +93259,19 @@
93101
93259
  "meetingLivestreamGuestPreset": {
93102
93260
  "type": "string"
93103
93261
  },
93104
- "options": {
93105
- "type": "object",
93106
- "nullable": true
93107
- },
93108
- "autoResolveSupportTickets": {
93262
+ "supportAutoResolve": {
93109
93263
  "type": "boolean"
93110
93264
  },
93111
- "autoResolveSupportTicketMessage": {
93112
- "type": "string",
93113
- "nullable": true
93265
+ "supportAutoResolveMessage": {
93266
+ "type": "string"
93267
+ }
93268
+ }
93269
+ },
93270
+ "OrganizationModuleSettingsTranslationUpdateInputs": {
93271
+ "type": "object",
93272
+ "properties": {
93273
+ "supportAutoResolveMessage": {
93274
+ "type": "string"
93114
93275
  }
93115
93276
  }
93116
93277
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.6.4",
3
+ "version": "6.7.0",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",