@connectedxm/admin 1.7.10 → 1.7.12
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.d.mts +30 -5
- package/dist/index.d.ts +30 -5
- package/dist/index.js +35 -20
- package/dist/index.mjs +33 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1584,6 +1584,7 @@ __export(src_exports, {
|
|
|
1584
1584
|
UpdateOrganizationPageTranslation: () => UpdateOrganizationPageTranslation,
|
|
1585
1585
|
UpdateOrganizationTeamMember: () => UpdateOrganizationTeamMember,
|
|
1586
1586
|
UpdateOrganizationTrigger: () => UpdateOrganizationTrigger,
|
|
1587
|
+
UpdatePayment: () => UpdatePayment,
|
|
1587
1588
|
UpdateReport: () => UpdateReport,
|
|
1588
1589
|
UpdateSelf: () => UpdateSelf,
|
|
1589
1590
|
UpdateSeries: () => UpdateSeries,
|
|
@@ -2409,6 +2410,7 @@ __export(src_exports, {
|
|
|
2409
2410
|
useUpdateOrganizationPageTranslation: () => useUpdateOrganizationPageTranslation,
|
|
2410
2411
|
useUpdateOrganizationTeamMember: () => useUpdateOrganizationTeamMember,
|
|
2411
2412
|
useUpdateOrganizationTrigger: () => useUpdateOrganizationTrigger,
|
|
2413
|
+
useUpdatePayment: () => useUpdatePayment,
|
|
2412
2414
|
useUpdateReport: () => useUpdateReport,
|
|
2413
2415
|
useUpdateSelf: () => useUpdateSelf,
|
|
2414
2416
|
useUpdateSeries: () => useUpdateSeries,
|
|
@@ -8493,34 +8495,19 @@ var SET_EVENT_GALLERY_IMAGES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
8493
8495
|
};
|
|
8494
8496
|
var GetEventGalleryImages = async ({
|
|
8495
8497
|
eventId,
|
|
8496
|
-
pageParam,
|
|
8497
|
-
pageSize,
|
|
8498
|
-
orderBy,
|
|
8499
|
-
search,
|
|
8500
8498
|
adminApiParams
|
|
8501
8499
|
}) => {
|
|
8502
8500
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
8503
|
-
const { data } = await adminApi.get(`/events/${eventId}/images
|
|
8504
|
-
params: {
|
|
8505
|
-
page: pageParam || void 0,
|
|
8506
|
-
pageSize: pageSize || void 0,
|
|
8507
|
-
orderBy: orderBy || void 0,
|
|
8508
|
-
search: search || void 0
|
|
8509
|
-
}
|
|
8510
|
-
});
|
|
8501
|
+
const { data } = await adminApi.get(`/events/${eventId}/images`);
|
|
8511
8502
|
return data;
|
|
8512
8503
|
};
|
|
8513
|
-
var useGetEventGalleryImages = (eventId = "",
|
|
8514
|
-
return
|
|
8504
|
+
var useGetEventGalleryImages = (eventId = "", options = {}) => {
|
|
8505
|
+
return useConnectedSingleQuery(
|
|
8515
8506
|
EVENT_GALLERY_IMAGES_QUERY_KEY(eventId),
|
|
8516
|
-
(
|
|
8517
|
-
...params2,
|
|
8518
|
-
eventId
|
|
8519
|
-
}),
|
|
8520
|
-
params,
|
|
8507
|
+
(params) => GetEventGalleryImages({ eventId, ...params }),
|
|
8521
8508
|
{
|
|
8522
8509
|
...options,
|
|
8523
|
-
enabled: !!eventId && (options
|
|
8510
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
8524
8511
|
},
|
|
8525
8512
|
"events"
|
|
8526
8513
|
);
|
|
@@ -13257,6 +13244,7 @@ var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
|
|
|
13257
13244
|
PaymentIntegrationType2["stripe"] = "stripe";
|
|
13258
13245
|
PaymentIntegrationType2["paypal"] = "paypal";
|
|
13259
13246
|
PaymentIntegrationType2["braintree"] = "braintree";
|
|
13247
|
+
PaymentIntegrationType2["manual"] = "manual";
|
|
13260
13248
|
return PaymentIntegrationType2;
|
|
13261
13249
|
})(PaymentIntegrationType || {});
|
|
13262
13250
|
var TaxIntegrationType = /* @__PURE__ */ ((TaxIntegrationType2) => {
|
|
@@ -30473,6 +30461,31 @@ var useUpdateVideo = (options = {}) => {
|
|
|
30473
30461
|
type: "update"
|
|
30474
30462
|
});
|
|
30475
30463
|
};
|
|
30464
|
+
|
|
30465
|
+
// src/mutations/payments/useUpdatePayment.ts
|
|
30466
|
+
var UpdatePayment = async ({
|
|
30467
|
+
paymentId,
|
|
30468
|
+
payment,
|
|
30469
|
+
adminApiParams,
|
|
30470
|
+
queryClient
|
|
30471
|
+
}) => {
|
|
30472
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
30473
|
+
const { data } = await connectedXM.put(
|
|
30474
|
+
`/payments/${paymentId}`,
|
|
30475
|
+
payment
|
|
30476
|
+
);
|
|
30477
|
+
if (queryClient && data.status === "ok") {
|
|
30478
|
+
queryClient.invalidateQueries({ queryKey: PAYMENT_QUERY_KEY(paymentId) });
|
|
30479
|
+
SET_PAYMENT_QUERY_DATA(queryClient, [paymentId], data);
|
|
30480
|
+
}
|
|
30481
|
+
return data;
|
|
30482
|
+
};
|
|
30483
|
+
var useUpdatePayment = (options = {}) => {
|
|
30484
|
+
return useConnectedMutation(UpdatePayment, options, {
|
|
30485
|
+
domain: "org",
|
|
30486
|
+
type: "update"
|
|
30487
|
+
});
|
|
30488
|
+
};
|
|
30476
30489
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30477
30490
|
0 && (module.exports = {
|
|
30478
30491
|
ACCOUNTS_QUERY_KEY,
|
|
@@ -32029,6 +32042,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
32029
32042
|
UpdateOrganizationPageTranslation,
|
|
32030
32043
|
UpdateOrganizationTeamMember,
|
|
32031
32044
|
UpdateOrganizationTrigger,
|
|
32045
|
+
UpdatePayment,
|
|
32032
32046
|
UpdateReport,
|
|
32033
32047
|
UpdateSelf,
|
|
32034
32048
|
UpdateSeries,
|
|
@@ -32854,6 +32868,7 @@ var useUpdateVideo = (options = {}) => {
|
|
|
32854
32868
|
useUpdateOrganizationPageTranslation,
|
|
32855
32869
|
useUpdateOrganizationTeamMember,
|
|
32856
32870
|
useUpdateOrganizationTrigger,
|
|
32871
|
+
useUpdatePayment,
|
|
32857
32872
|
useUpdateReport,
|
|
32858
32873
|
useUpdateSelf,
|
|
32859
32874
|
useUpdateSeries,
|
package/dist/index.mjs
CHANGED
|
@@ -6068,34 +6068,19 @@ var SET_EVENT_GALLERY_IMAGES_QUERY_DATA = (client, keyParams, response) => {
|
|
|
6068
6068
|
};
|
|
6069
6069
|
var GetEventGalleryImages = async ({
|
|
6070
6070
|
eventId,
|
|
6071
|
-
pageParam,
|
|
6072
|
-
pageSize,
|
|
6073
|
-
orderBy,
|
|
6074
|
-
search,
|
|
6075
6071
|
adminApiParams
|
|
6076
6072
|
}) => {
|
|
6077
6073
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
6078
|
-
const { data } = await adminApi.get(`/events/${eventId}/images
|
|
6079
|
-
params: {
|
|
6080
|
-
page: pageParam || void 0,
|
|
6081
|
-
pageSize: pageSize || void 0,
|
|
6082
|
-
orderBy: orderBy || void 0,
|
|
6083
|
-
search: search || void 0
|
|
6084
|
-
}
|
|
6085
|
-
});
|
|
6074
|
+
const { data } = await adminApi.get(`/events/${eventId}/images`);
|
|
6086
6075
|
return data;
|
|
6087
6076
|
};
|
|
6088
|
-
var useGetEventGalleryImages = (eventId = "",
|
|
6089
|
-
return
|
|
6077
|
+
var useGetEventGalleryImages = (eventId = "", options = {}) => {
|
|
6078
|
+
return useConnectedSingleQuery(
|
|
6090
6079
|
EVENT_GALLERY_IMAGES_QUERY_KEY(eventId),
|
|
6091
|
-
(
|
|
6092
|
-
...params2,
|
|
6093
|
-
eventId
|
|
6094
|
-
}),
|
|
6095
|
-
params,
|
|
6080
|
+
(params) => GetEventGalleryImages({ eventId, ...params }),
|
|
6096
6081
|
{
|
|
6097
6082
|
...options,
|
|
6098
|
-
enabled: !!eventId && (options
|
|
6083
|
+
enabled: !!eventId && (options?.enabled ?? true)
|
|
6099
6084
|
},
|
|
6100
6085
|
"events"
|
|
6101
6086
|
);
|
|
@@ -10832,6 +10817,7 @@ var PaymentIntegrationType = /* @__PURE__ */ ((PaymentIntegrationType2) => {
|
|
|
10832
10817
|
PaymentIntegrationType2["stripe"] = "stripe";
|
|
10833
10818
|
PaymentIntegrationType2["paypal"] = "paypal";
|
|
10834
10819
|
PaymentIntegrationType2["braintree"] = "braintree";
|
|
10820
|
+
PaymentIntegrationType2["manual"] = "manual";
|
|
10835
10821
|
return PaymentIntegrationType2;
|
|
10836
10822
|
})(PaymentIntegrationType || {});
|
|
10837
10823
|
var TaxIntegrationType = /* @__PURE__ */ ((TaxIntegrationType2) => {
|
|
@@ -28051,6 +28037,31 @@ var useUpdateVideo = (options = {}) => {
|
|
|
28051
28037
|
type: "update"
|
|
28052
28038
|
});
|
|
28053
28039
|
};
|
|
28040
|
+
|
|
28041
|
+
// src/mutations/payments/useUpdatePayment.ts
|
|
28042
|
+
var UpdatePayment = async ({
|
|
28043
|
+
paymentId,
|
|
28044
|
+
payment,
|
|
28045
|
+
adminApiParams,
|
|
28046
|
+
queryClient
|
|
28047
|
+
}) => {
|
|
28048
|
+
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
28049
|
+
const { data } = await connectedXM.put(
|
|
28050
|
+
`/payments/${paymentId}`,
|
|
28051
|
+
payment
|
|
28052
|
+
);
|
|
28053
|
+
if (queryClient && data.status === "ok") {
|
|
28054
|
+
queryClient.invalidateQueries({ queryKey: PAYMENT_QUERY_KEY(paymentId) });
|
|
28055
|
+
SET_PAYMENT_QUERY_DATA(queryClient, [paymentId], data);
|
|
28056
|
+
}
|
|
28057
|
+
return data;
|
|
28058
|
+
};
|
|
28059
|
+
var useUpdatePayment = (options = {}) => {
|
|
28060
|
+
return useConnectedMutation(UpdatePayment, options, {
|
|
28061
|
+
domain: "org",
|
|
28062
|
+
type: "update"
|
|
28063
|
+
});
|
|
28064
|
+
};
|
|
28054
28065
|
export {
|
|
28055
28066
|
ACCOUNTS_QUERY_KEY,
|
|
28056
28067
|
ACCOUNT_ACTIVITIES_QUERY_KEY,
|
|
@@ -29606,6 +29617,7 @@ export {
|
|
|
29606
29617
|
UpdateOrganizationPageTranslation,
|
|
29607
29618
|
UpdateOrganizationTeamMember,
|
|
29608
29619
|
UpdateOrganizationTrigger,
|
|
29620
|
+
UpdatePayment,
|
|
29609
29621
|
UpdateReport,
|
|
29610
29622
|
UpdateSelf,
|
|
29611
29623
|
UpdateSeries,
|
|
@@ -30431,6 +30443,7 @@ export {
|
|
|
30431
30443
|
useUpdateOrganizationPageTranslation,
|
|
30432
30444
|
useUpdateOrganizationTeamMember,
|
|
30433
30445
|
useUpdateOrganizationTrigger,
|
|
30446
|
+
useUpdatePayment,
|
|
30434
30447
|
useUpdateReport,
|
|
30435
30448
|
useUpdateSelf,
|
|
30436
30449
|
useUpdateSeries,
|