@connectedxm/admin 6.6.4 → 6.7.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.js CHANGED
@@ -241,6 +241,7 @@ var SupportTicketState = /* @__PURE__ */ ((SupportTicketState2) => {
241
241
  SupportTicketState2["inProgress"] = "inProgress";
242
242
  SupportTicketState2["resolved"] = "resolved";
243
243
  SupportTicketState2["spam"] = "spam";
244
+ SupportTicketState2["archived"] = "archived";
244
245
  return SupportTicketState2;
245
246
  })(SupportTicketState || {});
246
247
  var SupportTicketActivityType = /* @__PURE__ */ ((SupportTicketActivityType2) => {
@@ -16010,6 +16011,107 @@ var useGetCustomModule = (moduleId = "", options = {}) => {
16010
16011
  );
16011
16012
  };
16012
16013
 
16014
+ // src/queries/organization/modules/settings/useGetOrganizationModuleSettings.ts
16015
+ var ORGANIZATION_MODULE_SETTINGS_QUERY_KEY = () => [
16016
+ "ORGANIZATION",
16017
+ "MODULE_SETTINGS"
16018
+ ];
16019
+ var SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA = (client, keyParams, response) => {
16020
+ client.setQueryData(
16021
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(...keyParams),
16022
+ response
16023
+ );
16024
+ };
16025
+ var GetOrganizationModuleSettings = async ({
16026
+ adminApiParams
16027
+ }) => {
16028
+ const adminApi = await GetAdminAPI(adminApiParams);
16029
+ const { data } = await adminApi.get(`/organization/module-settings`);
16030
+ return data;
16031
+ };
16032
+ var useGetOrganizationModuleSettings = (options = {}) => {
16033
+ return useConnectedSingleQuery(
16034
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(),
16035
+ (params) => GetOrganizationModuleSettings(params),
16036
+ options
16037
+ );
16038
+ };
16039
+
16040
+ // src/queries/organization/modules/settings/translations/useGetOrganizationModuleSettingsTranslations.ts
16041
+ var ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY = () => [
16042
+ ...ORGANIZATION_MODULE_SETTINGS_QUERY_KEY(),
16043
+ "TRANSLATIONS"
16044
+ ];
16045
+ var SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_DATA = (client, keyParams, response) => {
16046
+ client.setQueryData(
16047
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(...keyParams),
16048
+ response
16049
+ );
16050
+ };
16051
+ var GetOrganizationModuleSettingsTranslations = async ({
16052
+ pageParam,
16053
+ pageSize,
16054
+ orderBy,
16055
+ search,
16056
+ adminApiParams
16057
+ }) => {
16058
+ const adminApi = await GetAdminAPI(adminApiParams);
16059
+ const { data } = await adminApi.get(
16060
+ `/organization/module-settings/translations`,
16061
+ {
16062
+ params: {
16063
+ page: pageParam || void 0,
16064
+ pageSize: pageSize || void 0,
16065
+ orderBy: orderBy || void 0,
16066
+ search: search || void 0
16067
+ }
16068
+ }
16069
+ );
16070
+ return data;
16071
+ };
16072
+ var useGetOrganizationModuleSettingsTranslations = (params = {}, options = {}) => {
16073
+ return useConnectedInfiniteQuery(
16074
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(),
16075
+ (params2) => GetOrganizationModuleSettingsTranslations({
16076
+ ...params2
16077
+ }),
16078
+ params,
16079
+ options
16080
+ );
16081
+ };
16082
+
16083
+ // src/queries/organization/modules/settings/translations/useGetOrganizationModuleSettingsTranslation.ts
16084
+ var ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY = (locale) => [...ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY(), locale];
16085
+ var SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA = (client, keyParams, response) => {
16086
+ client.setQueryData(
16087
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(...keyParams),
16088
+ response
16089
+ );
16090
+ };
16091
+ var GetOrganizationModuleSettingsTranslation = async ({
16092
+ locale,
16093
+ adminApiParams
16094
+ }) => {
16095
+ const adminApi = await GetAdminAPI(adminApiParams);
16096
+ const { data } = await adminApi.get(
16097
+ `/organization/module-settings/translations/${locale}`
16098
+ );
16099
+ return data;
16100
+ };
16101
+ var useGetOrganizationModuleSettingsTranslation = (locale = "", options = {}) => {
16102
+ return useConnectedSingleQuery(
16103
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(locale),
16104
+ (params) => GetOrganizationModuleSettingsTranslation({
16105
+ ...params,
16106
+ locale
16107
+ }),
16108
+ {
16109
+ ...options,
16110
+ enabled: !!locale && locale !== "en" && (options.enabled ?? true)
16111
+ }
16112
+ );
16113
+ };
16114
+
16013
16115
  // src/queries/organization/modules/useGetOrganizationModules.ts
16014
16116
  var ORGANIZATION_MODULES_QUERY_KEY = () => [
16015
16117
  ...ORGANIZATION_QUERY_KEY(),
@@ -32368,6 +32470,75 @@ var useUpdateCustomModule = (options = {}) => {
32368
32470
  return useConnectedMutation(UpdateCustomModule, options);
32369
32471
  };
32370
32472
 
32473
+ // src/mutations/organization/modules/settings/translations/useDeleteOrganizationModuleSettingsTranslation.ts
32474
+ var DeleteOrganizationModuleSettingsTranslation = async ({
32475
+ locale,
32476
+ adminApiParams,
32477
+ queryClient
32478
+ }) => {
32479
+ const connectedXM = await GetAdminAPI(adminApiParams);
32480
+ const { data } = await connectedXM.delete(
32481
+ `/organization/module-settings/translations/${locale}`
32482
+ );
32483
+ if (queryClient && data.status === "ok") {
32484
+ queryClient.invalidateQueries({
32485
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY()
32486
+ });
32487
+ queryClient.invalidateQueries({
32488
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY(locale)
32489
+ });
32490
+ }
32491
+ return data;
32492
+ };
32493
+ var useDeleteOrganizationModuleSettingsTranslation = (options = {}) => {
32494
+ return useConnectedMutation(DeleteOrganizationModuleSettingsTranslation, options);
32495
+ };
32496
+
32497
+ // src/mutations/organization/modules/settings/translations/useUpdateOrganizationModuleSettingsTranslation.ts
32498
+ var UpdateOrganizationModuleSettingsTranslation = async ({
32499
+ translation,
32500
+ adminApiParams,
32501
+ locale,
32502
+ queryClient
32503
+ }) => {
32504
+ const connectedXM = await GetAdminAPI(adminApiParams);
32505
+ const { data } = await connectedXM.put(
32506
+ `/organization/module-settings/translations/${locale}`,
32507
+ translation
32508
+ );
32509
+ if (queryClient && data.status === "ok") {
32510
+ queryClient.invalidateQueries({
32511
+ queryKey: ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY()
32512
+ });
32513
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA(
32514
+ queryClient,
32515
+ [locale],
32516
+ data
32517
+ );
32518
+ }
32519
+ return data;
32520
+ };
32521
+ var useUpdateOrganizationModuleSettingsTranslation = (options = {}) => {
32522
+ return useConnectedMutation(UpdateOrganizationModuleSettingsTranslation, options);
32523
+ };
32524
+
32525
+ // src/mutations/organization/modules/settings/useUpdateOrganizationModuleSettings.ts
32526
+ var UpdateOrganizationModuleSettings = async ({
32527
+ settings,
32528
+ adminApiParams,
32529
+ queryClient
32530
+ }) => {
32531
+ const connectedXM = await GetAdminAPI(adminApiParams);
32532
+ const { data } = await connectedXM.put(`/organization/module-settings`, settings);
32533
+ if (queryClient && data.status === "ok") {
32534
+ SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA(queryClient, [], data);
32535
+ }
32536
+ return data;
32537
+ };
32538
+ var useUpdateOrganizationModuleSettings = (options = {}) => {
32539
+ return useConnectedMutation(UpdateOrganizationModuleSettings, options);
32540
+ };
32541
+
32371
32542
  // src/mutations/organization/modules/tiers/useAddOrganizationModuleEditableTier.ts
32372
32543
  var AddOrganizationModuleEditableTier = async ({
32373
32544
  moduleType,
@@ -36229,6 +36400,7 @@ export {
36229
36400
  DeleteMeetingLink,
36230
36401
  DeleteMeetingParticipant,
36231
36402
  DeleteOrganizationDomain,
36403
+ DeleteOrganizationModuleSettingsTranslation,
36232
36404
  DeleteOrganizationPaymentIntegration,
36233
36405
  DeleteOrganizationSideEffect,
36234
36406
  DeleteOrganizationTeamMember,
@@ -36897,6 +37069,9 @@ export {
36897
37069
  GetOrganizationModule,
36898
37070
  GetOrganizationModuleEditableTiers,
36899
37071
  GetOrganizationModuleEnabledTiers,
37072
+ GetOrganizationModuleSettings,
37073
+ GetOrganizationModuleSettingsTranslation,
37074
+ GetOrganizationModuleSettingsTranslations,
36900
37075
  GetOrganizationModules,
36901
37076
  GetOrganizationPaymentIntegration,
36902
37077
  GetOrganizationPaymentIntegrations,
@@ -37089,6 +37264,9 @@ export {
37089
37264
  ORGANIZATION_MODULE_EDITABLE_TIERS_QUERY_KEY,
37090
37265
  ORGANIZATION_MODULE_ENABLED_TIERS_QUERY_KEY,
37091
37266
  ORGANIZATION_MODULE_QUERY_KEY,
37267
+ ORGANIZATION_MODULE_SETTINGS_QUERY_KEY,
37268
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_KEY,
37269
+ ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_KEY,
37092
37270
  ORGANIZATION_PAYMENT_INTEGRATIONS_QUERY_KEY,
37093
37271
  ORGANIZATION_PAYMENT_INTEGRATION_QUERY_KEY,
37094
37272
  ORGANIZATION_QUERY_KEY,
@@ -37590,6 +37768,9 @@ export {
37590
37768
  SET_ORGANIZATION_MODULE_EDITABLE_TIERS_QUERY_DATA,
37591
37769
  SET_ORGANIZATION_MODULE_ENABLED_TIERS_QUERY_DATA,
37592
37770
  SET_ORGANIZATION_MODULE_QUERY_DATA,
37771
+ SET_ORGANIZATION_MODULE_SETTINGS_QUERY_DATA,
37772
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATIONS_QUERY_DATA,
37773
+ SET_ORGANIZATION_MODULE_SETTINGS_TRANSLATION_QUERY_DATA,
37593
37774
  SET_ORGANIZATION_PAYMENT_INTEGRATIONS_QUERY_DATA,
37594
37775
  SET_ORGANIZATION_PAYMENT_INTEGRATION_QUERY_DATA,
37595
37776
  SET_ORGANIZATION_QUERY_DATA,
@@ -37917,6 +38098,8 @@ export {
37917
38098
  UpdateOrganizationIntegrations,
37918
38099
  UpdateOrganizationMembership,
37919
38100
  UpdateOrganizationModule,
38101
+ UpdateOrganizationModuleSettings,
38102
+ UpdateOrganizationModuleSettingsTranslation,
37920
38103
  UpdateOrganizationPaymentIntegration,
37921
38104
  UpdateOrganizationTeamMember,
37922
38105
  UpdateOrganizationWebhook,
@@ -38258,6 +38441,7 @@ export {
38258
38441
  useDeleteMeetingLink,
38259
38442
  useDeleteMeetingParticipant,
38260
38443
  useDeleteOrganizationDomain,
38444
+ useDeleteOrganizationModuleSettingsTranslation,
38261
38445
  useDeleteOrganizationPaymentIntegration,
38262
38446
  useDeleteOrganizationSideEffect,
38263
38447
  useDeleteOrganizationTeamMember,
@@ -38684,6 +38868,9 @@ export {
38684
38868
  useGetOrganizationModule,
38685
38869
  useGetOrganizationModuleEditableTiers,
38686
38870
  useGetOrganizationModuleEnabledTiers,
38871
+ useGetOrganizationModuleSettings,
38872
+ useGetOrganizationModuleSettingsTranslation,
38873
+ useGetOrganizationModuleSettingsTranslations,
38687
38874
  useGetOrganizationModules,
38688
38875
  useGetOrganizationPaymentIntegration,
38689
38876
  useGetOrganizationPaymentIntegrations,
@@ -39019,6 +39206,8 @@ export {
39019
39206
  useUpdateOrganizationIntegrations,
39020
39207
  useUpdateOrganizationMembership,
39021
39208
  useUpdateOrganizationModule,
39209
+ useUpdateOrganizationModuleSettings,
39210
+ useUpdateOrganizationModuleSettingsTranslation,
39022
39211
  useUpdateOrganizationPaymentIntegration,
39023
39212
  useUpdateOrganizationTeamMember,
39024
39213
  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",
@@ -70555,7 +70651,8 @@
70555
70651
  "new",
70556
70652
  "inProgress",
70557
70653
  "resolved",
70558
- "spam"
70654
+ "spam",
70655
+ "archived"
70559
70656
  ]
70560
70657
  },
70561
70658
  "SupportTicketActivityType": {
@@ -76758,34 +76855,9 @@
76758
76855
  "type": "string",
76759
76856
  "nullable": true
76760
76857
  },
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
76858
  "options": {
76780
76859
  "type": "object",
76781
76860
  "nullable": true
76782
- },
76783
- "autoResolveSupportTickets": {
76784
- "type": "boolean"
76785
- },
76786
- "autoResolveSupportTicketMessage": {
76787
- "type": "string",
76788
- "nullable": true
76789
76861
  }
76790
76862
  },
76791
76863
  "required": [
@@ -76849,15 +76921,7 @@
76849
76921
  "locales",
76850
76922
  "inviteOnly",
76851
76923
  "googleTagManagerId",
76852
- "meetingGroupCallAdminPreset",
76853
- "meetingGroupCallGuestPreset",
76854
- "meetingWebinarAdminPreset",
76855
- "meetingWebinarGuestPreset",
76856
- "meetingLivestreamAdminPreset",
76857
- "meetingLivestreamGuestPreset",
76858
- "options",
76859
- "autoResolveSupportTickets",
76860
- "autoResolveSupportTicketMessage"
76924
+ "options"
76861
76925
  ]
76862
76926
  }
76863
76927
  ]
@@ -76893,6 +76957,92 @@
76893
76957
  "updatedAt"
76894
76958
  ]
76895
76959
  },
76960
+ "BaseOrganizationModuleSettings": {
76961
+ "type": "object",
76962
+ "properties": {
76963
+ "organizationId": {
76964
+ "type": "string"
76965
+ }
76966
+ },
76967
+ "required": [
76968
+ "organizationId"
76969
+ ]
76970
+ },
76971
+ "OrganizationModuleSettings": {
76972
+ "allOf": [
76973
+ {
76974
+ "$ref": "#/components/schemas/BaseOrganizationModuleSettings"
76975
+ },
76976
+ {
76977
+ "type": "object",
76978
+ "properties": {
76979
+ "meetingGroupCallAdminPreset": {
76980
+ "type": "string"
76981
+ },
76982
+ "meetingGroupCallGuestPreset": {
76983
+ "type": "string"
76984
+ },
76985
+ "meetingWebinarAdminPreset": {
76986
+ "type": "string"
76987
+ },
76988
+ "meetingWebinarGuestPreset": {
76989
+ "type": "string"
76990
+ },
76991
+ "meetingLivestreamAdminPreset": {
76992
+ "type": "string"
76993
+ },
76994
+ "meetingLivestreamGuestPreset": {
76995
+ "type": "string"
76996
+ },
76997
+ "supportAutoResolve": {
76998
+ "type": "boolean"
76999
+ },
77000
+ "supportAutoResolveMessage": {
77001
+ "type": "string"
77002
+ }
77003
+ },
77004
+ "required": [
77005
+ "meetingGroupCallAdminPreset",
77006
+ "meetingGroupCallGuestPreset",
77007
+ "meetingWebinarAdminPreset",
77008
+ "meetingWebinarGuestPreset",
77009
+ "meetingLivestreamAdminPreset",
77010
+ "meetingLivestreamGuestPreset",
77011
+ "supportAutoResolve"
77012
+ ]
77013
+ }
77014
+ ]
77015
+ },
77016
+ "BaseOrganizationModuleSettingsTranslation": {
77017
+ "type": "object",
77018
+ "properties": {
77019
+ "organizationId": {
77020
+ "type": "string"
77021
+ },
77022
+ "locale": {
77023
+ "type": "string"
77024
+ }
77025
+ },
77026
+ "required": [
77027
+ "organizationId",
77028
+ "locale"
77029
+ ]
77030
+ },
77031
+ "OrganizationModuleSettingsTranslation": {
77032
+ "allOf": [
77033
+ {
77034
+ "$ref": "#/components/schemas/BaseOrganizationModuleSettingsTranslation"
77035
+ },
77036
+ {
77037
+ "type": "object",
77038
+ "properties": {
77039
+ "supportAutoResolveMessage": {
77040
+ "type": "string"
77041
+ }
77042
+ }
77043
+ }
77044
+ ]
77045
+ },
76896
77046
  "PurchaseStatus": {
76897
77047
  "type": "string",
76898
77048
  "enum": [
@@ -93083,6 +93233,15 @@
93083
93233
  "type": "string",
93084
93234
  "nullable": true
93085
93235
  },
93236
+ "options": {
93237
+ "type": "object",
93238
+ "nullable": true
93239
+ }
93240
+ }
93241
+ },
93242
+ "OrganizationModuleSettingsUpdateInputs": {
93243
+ "type": "object",
93244
+ "properties": {
93086
93245
  "meetingGroupCallAdminPreset": {
93087
93246
  "type": "string"
93088
93247
  },
@@ -93101,16 +93260,19 @@
93101
93260
  "meetingLivestreamGuestPreset": {
93102
93261
  "type": "string"
93103
93262
  },
93104
- "options": {
93105
- "type": "object",
93106
- "nullable": true
93107
- },
93108
- "autoResolveSupportTickets": {
93263
+ "supportAutoResolve": {
93109
93264
  "type": "boolean"
93110
93265
  },
93111
- "autoResolveSupportTicketMessage": {
93112
- "type": "string",
93113
- "nullable": true
93266
+ "supportAutoResolveMessage": {
93267
+ "type": "string"
93268
+ }
93269
+ }
93270
+ },
93271
+ "OrganizationModuleSettingsTranslationUpdateInputs": {
93272
+ "type": "object",
93273
+ "properties": {
93274
+ "supportAutoResolveMessage": {
93275
+ "type": "string"
93114
93276
  }
93115
93277
  }
93116
93278
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.6.4",
3
+ "version": "6.7.1",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",