@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.
@@ -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
  }
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.1.3",
5
+ "version": "3.1.4-staging.47",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {