Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
import type { AdminSalesDataManagementVM } from "@hivegrid/view-models";
|
||||
import { renderAdminSalesData } from "@hivegrid/ui-subframe";
|
||||
|
||||
import { defineAdapter } from "./defineAdapter.js";
|
||||
|
||||
export function toAdminSalesDataProps(
|
||||
vm: AdminSalesDataManagementVM
|
||||
): AdminSalesDataManagementVM {
|
||||
return {
|
||||
...vm,
|
||||
summary: { ...vm.summary },
|
||||
contacts: vm.contacts.map((contact) => ({
|
||||
...contact,
|
||||
tags: contact.tags.map((tag) => ({ ...tag })),
|
||||
customFields: contact.customFields.map((field) => ({ ...field })),
|
||||
})),
|
||||
tags: vm.tags.map((tag) => ({ ...tag })),
|
||||
customFields: vm.customFields.map((field) => ({
|
||||
...field,
|
||||
options: [...field.options],
|
||||
})),
|
||||
importJobs: vm.importJobs.map((job) => ({ ...job })),
|
||||
exportJobs: vm.exportJobs.map((job) => ({ ...job })),
|
||||
permissions: { ...vm.permissions },
|
||||
};
|
||||
}
|
||||
|
||||
export const adminSalesDataAdapter = defineAdapter({
|
||||
name: "adminSalesData",
|
||||
toProps: toAdminSalesDataProps,
|
||||
defaultRenderer: renderAdminSalesData,
|
||||
});
|
||||
Reference in new issue
Block a user