@grapadigital/shared-app-modules 0.0.216 → 0.0.218

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/action.d.ts CHANGED
@@ -104,6 +104,7 @@ declare interface ClientInterface extends UserInterface {
104
104
  hasAgencyCommission?: boolean;
105
105
  type?: "agency" | "brand";
106
106
  niches?: Niche[];
107
+ requiredTeams?: string[];
107
108
  }
108
109
 
109
110
  declare interface ClusterInterface {
@@ -1,4 +1,4 @@
1
- import { i as n } from "./youtube-icon.component.CU9RpVNh.js";
1
+ import { i as n } from "./youtube-icon.component.BSdD-jlw.js";
2
2
  function a(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -0,0 +1,14 @@
1
+ import { a as t } from "./use-debounce.hook.TyZMbuZv.js";
2
+ const n = async ({
3
+ organizationId: i,
4
+ search: r,
5
+ active: a
6
+ }) => (await t().get(`/organizations/${i}/users`, {
7
+ params: {
8
+ q: r,
9
+ active: a === void 0 ? void 0 : String(a)
10
+ }
11
+ })).data;
12
+ export {
13
+ n as l
14
+ };
@@ -0,0 +1,42 @@
1
+ import _ from "axios";
2
+ import { g as r } from "./index.GkteP4bn.js";
3
+ import { useState as c, useEffect as u } from "react";
4
+ const s = (e) => () => {
5
+ const t = _.create({
6
+ headers: { "Content-Type": "application/json" },
7
+ ...e()
8
+ });
9
+ return t.interceptors.request.use((n) => {
10
+ const o = localStorage.getItem("token");
11
+ return o && (n.headers.Authorization = `Bearer ${o}`), n;
12
+ }), t;
13
+ }, i = (e) => {
14
+ const n = r.environments ?? {}, o = r.axios?.timeout ?? 5e3;
15
+ return { baseURL: n[e], timeout: o };
16
+ }, E = s(
17
+ () => i("VITE_BACKEND_API_ORGANIZATION_URL")
18
+ ), p = s(
19
+ () => i("VITE_BACKEND_API_CAMPAIGNS_URL")
20
+ ), I = s(
21
+ () => i("VITE_BACKEND_API_SALES_URL")
22
+ ), C = s(
23
+ () => i("VITE_BACKEND_API_ENTITIES_URL")
24
+ );
25
+ function f(e, t = 500) {
26
+ const [n, o] = c(e);
27
+ return u(() => {
28
+ const a = setTimeout(() => {
29
+ o(e);
30
+ }, t);
31
+ return () => {
32
+ clearTimeout(a);
33
+ };
34
+ }, [e, t]), n;
35
+ }
36
+ export {
37
+ E as a,
38
+ p as c,
39
+ C as e,
40
+ I as s,
41
+ f as u
42
+ };