@7365admin1/layer-common 3.2.8-staging.209 → 3.2.8-staging.210
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.
|
@@ -616,7 +616,7 @@ async function openPermissionDialog(category: THidPermissionCategory | "intercom
|
|
|
616
616
|
page: 1,
|
|
617
617
|
limit: 500,
|
|
618
618
|
});
|
|
619
|
-
permissionCandidates.value = response.items
|
|
619
|
+
permissionCandidates.value = response.items ?? response.data?.items ?? [];
|
|
620
620
|
selectedPermissionIds.value = new Set(
|
|
621
621
|
permissionCandidates.value
|
|
622
622
|
.filter((candidate) => category === "intercom" ? candidate.intercom : candidate.selected)
|
|
@@ -936,7 +936,7 @@ async function loadSubjectCandidates() {
|
|
|
936
936
|
page: 1,
|
|
937
937
|
limit: 500,
|
|
938
938
|
});
|
|
939
|
-
permissionCandidates.value = response.items
|
|
939
|
+
permissionCandidates.value = response.items ?? response.data?.items ?? [];
|
|
940
940
|
} finally {
|
|
941
941
|
loadingSubjects.value = false;
|
|
942
942
|
}
|
|
@@ -80,11 +80,18 @@ type HidVisitorQrData = {
|
|
|
80
80
|
type HidVisitorQrResponse = HidVisitorQrData | { data: HidVisitorQrData };
|
|
81
81
|
|
|
82
82
|
type HidPermissionListResponse = {
|
|
83
|
-
items
|
|
84
|
-
page
|
|
85
|
-
pages
|
|
86
|
-
pageRange
|
|
87
|
-
limit
|
|
83
|
+
items?: THidPermissionCandidate[];
|
|
84
|
+
page?: number;
|
|
85
|
+
pages?: number;
|
|
86
|
+
pageRange?: string;
|
|
87
|
+
limit?: number;
|
|
88
|
+
data?: {
|
|
89
|
+
items?: THidPermissionCandidate[];
|
|
90
|
+
page?: number;
|
|
91
|
+
pages?: number;
|
|
92
|
+
pageRange?: string;
|
|
93
|
+
limit?: number;
|
|
94
|
+
};
|
|
88
95
|
};
|
|
89
96
|
|
|
90
97
|
type HidFacialEnrollmentResult = {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.2.8-staging.
|
|
5
|
+
"version": "3.2.8-staging.210",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|