@connectedxm/admin 1.1.0 → 1.1.2
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 +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.js +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1174,7 +1174,7 @@ interface Notification extends BaseNotification {
|
|
|
1174
1174
|
createdAt: string;
|
|
1175
1175
|
updatedAt: string;
|
|
1176
1176
|
}
|
|
1177
|
-
type PermissionDomain = keyof Omit<OrganizationMembership, "organizationId" | "userId" | "user"
|
|
1177
|
+
type PermissionDomain = keyof Omit<OrganizationMembership, "organizationId" | "userId" | "user">;
|
|
1178
1178
|
type PermissionType = "read" | "create" | "update" | "del";
|
|
1179
1179
|
interface ModulePermissions {
|
|
1180
1180
|
enabled: boolean;
|
|
@@ -1205,8 +1205,6 @@ interface OrganizationMembership {
|
|
|
1205
1205
|
subscriptions: ModulePermissions;
|
|
1206
1206
|
invoices: ModulePermissions;
|
|
1207
1207
|
announcements: ModulePermissions;
|
|
1208
|
-
createdAt: string;
|
|
1209
|
-
updatedAt: string;
|
|
1210
1208
|
}
|
|
1211
1209
|
interface BaseOrganization {
|
|
1212
1210
|
id: string;
|
|
@@ -1336,6 +1334,8 @@ interface EventPass extends BaseEventPass {
|
|
|
1336
1334
|
registration: BaseEventAttendee;
|
|
1337
1335
|
payerId?: string;
|
|
1338
1336
|
payer?: BaseAccount;
|
|
1337
|
+
amtPaid: number;
|
|
1338
|
+
amtRefunded: number;
|
|
1339
1339
|
}
|
|
1340
1340
|
interface PushDevice {
|
|
1341
1341
|
id: string;
|
|
@@ -2034,9 +2034,8 @@ interface EventPassTypePriceSchedule extends BaseEventPassTypePriceSchedule {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
interface BaseEventPassTypeRefundSchedule {
|
|
2036
2036
|
id: string;
|
|
2037
|
-
|
|
2037
|
+
passTypeId: string;
|
|
2038
2038
|
percentage: number;
|
|
2039
|
-
name: string | null;
|
|
2040
2039
|
startDate: string;
|
|
2041
2040
|
endDate: string;
|
|
2042
2041
|
createdAt: string;
|
|
@@ -3722,13 +3721,11 @@ interface PassTypePriceScheduleUpdateInputs {
|
|
|
3722
3721
|
}
|
|
3723
3722
|
interface PassTypeRefundScheduleCreateInputs {
|
|
3724
3723
|
percentage: number;
|
|
3725
|
-
name?: string | null;
|
|
3726
3724
|
startDate: string;
|
|
3727
3725
|
endDate: string;
|
|
3728
3726
|
}
|
|
3729
3727
|
interface PassTypeRefundScheduleUpdateInputs {
|
|
3730
3728
|
percentage?: number;
|
|
3731
|
-
name?: string | null;
|
|
3732
3729
|
startDate?: string;
|
|
3733
3730
|
endDate?: string;
|
|
3734
3731
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1174,7 +1174,7 @@ interface Notification extends BaseNotification {
|
|
|
1174
1174
|
createdAt: string;
|
|
1175
1175
|
updatedAt: string;
|
|
1176
1176
|
}
|
|
1177
|
-
type PermissionDomain = keyof Omit<OrganizationMembership, "organizationId" | "userId" | "user"
|
|
1177
|
+
type PermissionDomain = keyof Omit<OrganizationMembership, "organizationId" | "userId" | "user">;
|
|
1178
1178
|
type PermissionType = "read" | "create" | "update" | "del";
|
|
1179
1179
|
interface ModulePermissions {
|
|
1180
1180
|
enabled: boolean;
|
|
@@ -1205,8 +1205,6 @@ interface OrganizationMembership {
|
|
|
1205
1205
|
subscriptions: ModulePermissions;
|
|
1206
1206
|
invoices: ModulePermissions;
|
|
1207
1207
|
announcements: ModulePermissions;
|
|
1208
|
-
createdAt: string;
|
|
1209
|
-
updatedAt: string;
|
|
1210
1208
|
}
|
|
1211
1209
|
interface BaseOrganization {
|
|
1212
1210
|
id: string;
|
|
@@ -1336,6 +1334,8 @@ interface EventPass extends BaseEventPass {
|
|
|
1336
1334
|
registration: BaseEventAttendee;
|
|
1337
1335
|
payerId?: string;
|
|
1338
1336
|
payer?: BaseAccount;
|
|
1337
|
+
amtPaid: number;
|
|
1338
|
+
amtRefunded: number;
|
|
1339
1339
|
}
|
|
1340
1340
|
interface PushDevice {
|
|
1341
1341
|
id: string;
|
|
@@ -2034,9 +2034,8 @@ interface EventPassTypePriceSchedule extends BaseEventPassTypePriceSchedule {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
interface BaseEventPassTypeRefundSchedule {
|
|
2036
2036
|
id: string;
|
|
2037
|
-
|
|
2037
|
+
passTypeId: string;
|
|
2038
2038
|
percentage: number;
|
|
2039
|
-
name: string | null;
|
|
2040
2039
|
startDate: string;
|
|
2041
2040
|
endDate: string;
|
|
2042
2041
|
createdAt: string;
|
|
@@ -3722,13 +3721,11 @@ interface PassTypePriceScheduleUpdateInputs {
|
|
|
3722
3721
|
}
|
|
3723
3722
|
interface PassTypeRefundScheduleCreateInputs {
|
|
3724
3723
|
percentage: number;
|
|
3725
|
-
name?: string | null;
|
|
3726
3724
|
startDate: string;
|
|
3727
3725
|
endDate: string;
|
|
3728
3726
|
}
|
|
3729
3727
|
interface PassTypeRefundScheduleUpdateInputs {
|
|
3730
3728
|
percentage?: number;
|
|
3731
|
-
name?: string | null;
|
|
3732
3729
|
startDate?: string;
|
|
3733
3730
|
endDate?: string;
|
|
3734
3731
|
}
|
package/dist/index.js
CHANGED
|
@@ -23364,9 +23364,7 @@ var UpdateOrganizationModule = async ({
|
|
|
23364
23364
|
queryClient
|
|
23365
23365
|
}) => {
|
|
23366
23366
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23367
|
-
const { data } = await connectedXM.put(`/organization/modules/${moduleType}`,
|
|
23368
|
-
module: module2
|
|
23369
|
-
});
|
|
23367
|
+
const { data } = await connectedXM.put(`/organization/modules/${moduleType}`, module2);
|
|
23370
23368
|
if (queryClient && data.status === "ok") {
|
|
23371
23369
|
queryClient.invalidateQueries({
|
|
23372
23370
|
queryKey: ORGANIZATION_MODULES_QUERY_KEY()
|
package/dist/index.mjs
CHANGED
|
@@ -21341,9 +21341,7 @@ var UpdateOrganizationModule = async ({
|
|
|
21341
21341
|
queryClient
|
|
21342
21342
|
}) => {
|
|
21343
21343
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
21344
|
-
const { data } = await connectedXM.put(`/organization/modules/${moduleType}`,
|
|
21345
|
-
module
|
|
21346
|
-
});
|
|
21344
|
+
const { data } = await connectedXM.put(`/organization/modules/${moduleType}`, module);
|
|
21347
21345
|
if (queryClient && data.status === "ok") {
|
|
21348
21346
|
queryClient.invalidateQueries({
|
|
21349
21347
|
queryKey: ORGANIZATION_MODULES_QUERY_KEY()
|