@7365admin1/layer-common 3.1.3 → 3.1.4-staging.47
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/.github/workflows/publish-staging.yml +11 -0
- package/components/AttachmentsViewer.vue +22 -4
- package/components/DashboardMain.vue +228 -87
- package/components/ImageCarousel.vue +23 -5
- package/components/ManageChecklistMain.vue +32 -25
- package/components/MemberMain.vue +17 -15
- package/components/Nfc/NFCPatrolRouteMain.vue +52 -7
- package/components/PhotoUpload.vue +19 -4
- package/components/RolePermissionFormPreviewUpdate.vue +1 -1
- package/components/ServiceProviderMain.vue +43 -26
- package/components/VisitorForm.vue +78 -18
- package/components/VisitorManagement.vue +39 -16
- package/composables/useCleaningSchedulePermission.ts +16 -51
- package/composables/useServiceProvider.ts +21 -0
- package/package.json +1 -1
|
@@ -236,6 +236,26 @@ export default function useServiceProvider() {
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
async function getByEmail({
|
|
240
|
+
email = "",
|
|
241
|
+
orgId = "",
|
|
242
|
+
siteId = "",
|
|
243
|
+
serviceProviderOrgId = "",
|
|
244
|
+
} = {}) {
|
|
245
|
+
return useNuxtApp().$api<Record<string, any>>(
|
|
246
|
+
"/api/service-providers/email",
|
|
247
|
+
{
|
|
248
|
+
method: "GET",
|
|
249
|
+
query: {
|
|
250
|
+
email,
|
|
251
|
+
...(orgId ? { orgId } : {}),
|
|
252
|
+
...(siteId ? { siteId } : {}),
|
|
253
|
+
...(serviceProviderOrgId ? { serviceProviderOrgId } : {}),
|
|
254
|
+
},
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
239
259
|
return {
|
|
240
260
|
serviceProviders,
|
|
241
261
|
serviceProvider,
|
|
@@ -254,5 +274,6 @@ export default function useServiceProvider() {
|
|
|
254
274
|
add,
|
|
255
275
|
addViaInvite,
|
|
256
276
|
updateStatus,
|
|
277
|
+
getByEmail,
|
|
257
278
|
};
|
|
258
279
|
}
|