@connectedxm/admin 4.2.5 → 4.2.7
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 +37 -0
- package/dist/index.d.cts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +33 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1114,6 +1114,7 @@ __export(index_exports, {
|
|
|
1114
1114
|
GetPushDevices: () => GetPushDevices,
|
|
1115
1115
|
GetReport: () => GetReport,
|
|
1116
1116
|
GetReports: () => GetReports,
|
|
1117
|
+
GetRequiredAttributes: () => GetRequiredAttributes,
|
|
1117
1118
|
GetSearchList: () => GetSearchList,
|
|
1118
1119
|
GetSearchListConnectedQuestions: () => GetSearchListConnectedQuestions,
|
|
1119
1120
|
GetSearchListValue: () => GetSearchListValue,
|
|
@@ -1289,6 +1290,7 @@ __export(index_exports, {
|
|
|
1289
1290
|
PushService: () => PushService,
|
|
1290
1291
|
REPORTS_QUERY_KEY: () => REPORTS_QUERY_KEY,
|
|
1291
1292
|
REPORT_QUERY_KEY: () => REPORT_QUERY_KEY,
|
|
1293
|
+
REQUIRED_ATTRIBUTES_QUERY_KEY: () => REQUIRED_ATTRIBUTES_QUERY_KEY,
|
|
1292
1294
|
RefundOrganizationPayment: () => RefundOrganizationPayment,
|
|
1293
1295
|
RegistrationQuestionType: () => RegistrationQuestionType,
|
|
1294
1296
|
ReinviteGroupInvitation: () => ReinviteGroupInvitation,
|
|
@@ -1751,6 +1753,7 @@ __export(index_exports, {
|
|
|
1751
1753
|
SET_PUSH_DEVICE_QUERY_DATA: () => SET_PUSH_DEVICE_QUERY_DATA,
|
|
1752
1754
|
SET_REPORTS_QUERY_DATA: () => SET_REPORTS_QUERY_DATA,
|
|
1753
1755
|
SET_REPORT_QUERY_DATA: () => SET_REPORT_QUERY_DATA,
|
|
1756
|
+
SET_REQUIRED_ATTRIBUTES_QUERY_DATA: () => SET_REQUIRED_ATTRIBUTES_QUERY_DATA,
|
|
1754
1757
|
SET_SEARCHLISTS_QUERY_DATA: () => SET_SEARCHLISTS_QUERY_DATA,
|
|
1755
1758
|
SET_SEARCHLIST_CONNECTED_QUESTIONS_QUERY_DATA: () => SET_SEARCHLIST_CONNECTED_QUESTIONS_QUERY_DATA,
|
|
1756
1759
|
SET_SEARCHLIST_QUERY_DATA: () => SET_SEARCHLIST_QUERY_DATA,
|
|
@@ -2831,6 +2834,7 @@ __export(index_exports, {
|
|
|
2831
2834
|
useGetPushDevices: () => useGetPushDevices,
|
|
2832
2835
|
useGetReport: () => useGetReport,
|
|
2833
2836
|
useGetReports: () => useGetReports,
|
|
2837
|
+
useGetRequiredAttributes: () => useGetRequiredAttributes,
|
|
2834
2838
|
useGetSearchList: () => useGetSearchList,
|
|
2835
2839
|
useGetSearchListConnectedQuestions: () => useGetSearchListConnectedQuestions,
|
|
2836
2840
|
useGetSearchListValue: () => useGetSearchListValue,
|
|
@@ -19270,6 +19274,35 @@ var useGetOrganizationWebhook = (webhookId = "", options = {}) => {
|
|
|
19270
19274
|
);
|
|
19271
19275
|
};
|
|
19272
19276
|
|
|
19277
|
+
// src/queries/organization/useGetRequiredAttributes.ts
|
|
19278
|
+
var REQUIRED_ATTRIBUTES_QUERY_KEY = (search) => [
|
|
19279
|
+
...ORGANIZATION_QUERY_KEY(),
|
|
19280
|
+
"REQUIRED_ATTRIBUTES",
|
|
19281
|
+
search || ""
|
|
19282
|
+
];
|
|
19283
|
+
var SET_REQUIRED_ATTRIBUTES_QUERY_DATA = (client, keyParams, response) => {
|
|
19284
|
+
client.setQueryData(REQUIRED_ATTRIBUTES_QUERY_KEY(...keyParams), response);
|
|
19285
|
+
};
|
|
19286
|
+
var GetRequiredAttributes = async ({
|
|
19287
|
+
search,
|
|
19288
|
+
adminApiParams
|
|
19289
|
+
}) => {
|
|
19290
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
19291
|
+
const { data } = await adminApi.get(`/organization/attributes/required`, {
|
|
19292
|
+
params: {
|
|
19293
|
+
search: search || void 0
|
|
19294
|
+
}
|
|
19295
|
+
});
|
|
19296
|
+
return data;
|
|
19297
|
+
};
|
|
19298
|
+
var useGetRequiredAttributes = (search, options = {}) => {
|
|
19299
|
+
return useConnectedSingleQuery(
|
|
19300
|
+
REQUIRED_ATTRIBUTES_QUERY_KEY(search),
|
|
19301
|
+
(params) => GetRequiredAttributes({ ...params, search }),
|
|
19302
|
+
options
|
|
19303
|
+
);
|
|
19304
|
+
};
|
|
19305
|
+
|
|
19273
19306
|
// src/queries/organization/useSearchOrganization.ts
|
|
19274
19307
|
var SEARCH_ORGANIZATION_QUERY_KEY = (search, filters) => [
|
|
19275
19308
|
"SEARCH_ORGANIZATION",
|
|
@@ -39606,6 +39639,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39606
39639
|
GetPushDevices,
|
|
39607
39640
|
GetReport,
|
|
39608
39641
|
GetReports,
|
|
39642
|
+
GetRequiredAttributes,
|
|
39609
39643
|
GetSearchList,
|
|
39610
39644
|
GetSearchListConnectedQuestions,
|
|
39611
39645
|
GetSearchListValue,
|
|
@@ -39781,6 +39815,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
39781
39815
|
PushService,
|
|
39782
39816
|
REPORTS_QUERY_KEY,
|
|
39783
39817
|
REPORT_QUERY_KEY,
|
|
39818
|
+
REQUIRED_ATTRIBUTES_QUERY_KEY,
|
|
39784
39819
|
RefundOrganizationPayment,
|
|
39785
39820
|
RegistrationQuestionType,
|
|
39786
39821
|
ReinviteGroupInvitation,
|
|
@@ -40243,6 +40278,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
40243
40278
|
SET_PUSH_DEVICE_QUERY_DATA,
|
|
40244
40279
|
SET_REPORTS_QUERY_DATA,
|
|
40245
40280
|
SET_REPORT_QUERY_DATA,
|
|
40281
|
+
SET_REQUIRED_ATTRIBUTES_QUERY_DATA,
|
|
40246
40282
|
SET_SEARCHLISTS_QUERY_DATA,
|
|
40247
40283
|
SET_SEARCHLIST_CONNECTED_QUESTIONS_QUERY_DATA,
|
|
40248
40284
|
SET_SEARCHLIST_QUERY_DATA,
|
|
@@ -41323,6 +41359,7 @@ var useUploadVideoCaptions = (options = {}) => {
|
|
|
41323
41359
|
useGetPushDevices,
|
|
41324
41360
|
useGetReport,
|
|
41325
41361
|
useGetReports,
|
|
41362
|
+
useGetRequiredAttributes,
|
|
41326
41363
|
useGetSearchList,
|
|
41327
41364
|
useGetSearchListConnectedQuestions,
|
|
41328
41365
|
useGetSearchListValue,
|