@grapadigital/shared-app-modules 0.0.111 → 0.0.113

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.
@@ -1,4 +1,4 @@
1
- import { b as n } from "./field-textarea.component.j5MsRUzc.js";
1
+ import { b as n } from "./field-textarea.component.CVt4caPC.js";
2
2
  function m(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -15,6 +15,7 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
15
15
  declare interface ActionInterface {
16
16
  tags?: string[];
17
17
  _id?: string;
18
+ primetagId?: string;
18
19
  title?: string;
19
20
  clientId?: string;
20
21
  cluster?: string;
@@ -48,12 +49,26 @@ declare interface ActionInterface {
48
49
  shopping?: string;
49
50
  project?: string;
50
51
  type?: "partner" | "exclusive";
51
- notes?: NoteInterface[];
52
+ notes?: {
53
+ text: string;
54
+ owner: string;
55
+ createdAt: string;
56
+ }[];
52
57
  hashtags?: string[];
53
58
  mentions?: string[];
54
59
  keywords?: string[];
55
60
  description?: string;
56
61
  objective?: string;
62
+ kpis?: {
63
+ budget: number;
64
+ revenue: number;
65
+ transferProvision: number;
66
+ costProvision: number;
67
+ transferActual: number;
68
+ costActual: number;
69
+ freeValueProvision: number;
70
+ freeValueActual: number;
71
+ };
57
72
  }
58
73
 
59
74
  declare interface AgencyCommission {
@@ -114,6 +129,7 @@ export declare const ClientSelectInput: default_2.ForwardRefExoticComponent<Omit
114
129
  declare interface ClientSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
115
130
  queryKey?: string[];
116
131
  onValueChange: (client: ClientInterface) => void;
132
+ clientType?: ClientInterface["type"];
117
133
  }
118
134
 
119
135
  declare interface ClusterInterface {
@@ -249,7 +265,7 @@ declare interface FieldCalendarProps extends ControllerFieldState {
249
265
 
250
266
  export declare const FieldClientSelectInput: ForwardRefExoticComponent<Omit<FieldClientSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
251
267
 
252
- declare type FieldClientSelectInputProps = React.ComponentProps<"input"> & ControllerFieldState & {
268
+ declare type FieldClientSelectInputProps = React.ComponentProps<typeof ClientSelectInput> & ControllerFieldState & {
253
269
  label?: string;
254
270
  description?: string;
255
271
  asterisk?: boolean;
@@ -494,12 +510,6 @@ declare interface Note_3 {
494
510
  createdAt: string;
495
511
  }
496
512
 
497
- declare interface NoteInterface {
498
- text: string;
499
- owner: string;
500
- createdAt: string;
501
- }
502
-
503
513
  export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
504
514
 
505
515
  declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
@@ -1,5 +1,5 @@
1
1
  import { a as b, c, B as F, as as k, at as v, au as C, O as T, P as H, V as y, U as _, Q as A, W as j } from "./chuncks/switch.CRijOkty.js";
2
- import { j as de, k as ge, o as xe, p as be, s as me, F as he, q as fe, t as pe, r as ue, u as ye, I as we, l as Ne, P as ke, e as ve, f as Ce, g as Ie, h as ze, m as Me, n as Se } from "./chuncks/field-textarea.component.j5MsRUzc.js";
2
+ import { j as de, k as ge, o as xe, p as be, s as me, F as he, q as fe, t as pe, r as ue, u as ye, I as we, l as Ne, P as ke, e as ve, f as Ce, g as Ie, h as ze, m as Me, n as Se } from "./chuncks/field-textarea.component.CVt4caPC.js";
3
3
  import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
4
4
  import "react";
5
5
  import { C as I, f as z, S as f } from "./chuncks/card.D5PkIOr_.js";
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.j5MsRUzc.js";
1
+ import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.CVt4caPC.js";
2
2
  import "./chuncks/switch.CRijOkty.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
package/dist/content.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare interface ActionInterface {
2
2
  tags?: string[];
3
3
  _id?: string;
4
+ primetagId?: string;
4
5
  title?: string;
5
6
  clientId?: string;
6
7
  cluster?: string;
@@ -34,12 +35,26 @@ declare interface ActionInterface {
34
35
  shopping?: string;
35
36
  project?: string;
36
37
  type?: "partner" | "exclusive";
37
- notes?: NoteInterface[];
38
+ notes?: {
39
+ text: string;
40
+ owner: string;
41
+ createdAt: string;
42
+ }[];
38
43
  hashtags?: string[];
39
44
  mentions?: string[];
40
45
  keywords?: string[];
41
46
  description?: string;
42
47
  objective?: string;
48
+ kpis?: {
49
+ budget: number;
50
+ revenue: number;
51
+ transferProvision: number;
52
+ costProvision: number;
53
+ transferActual: number;
54
+ costActual: number;
55
+ freeValueProvision: number;
56
+ freeValueActual: number;
57
+ };
43
58
  }
44
59
 
45
60
  declare interface AgencyCommission {
@@ -302,12 +317,6 @@ declare interface Note_3 {
302
317
  createdAt: string;
303
318
  }
304
319
 
305
- declare interface NoteInterface {
306
- text: string;
307
- owner: string;
308
- createdAt: string;
309
- }
310
-
311
320
  declare interface Paid {
312
321
  date: string;
313
322
  }
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as o } from "./chuncks/format.util.CxZ87QTi.js";
1
+ import { h as o } from "./chuncks/format.util.6YTmX_Zn.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
package/dist/hooks.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  declare interface Environments {
2
- readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
3
2
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
4
- readonly VITE_BACKEND_API_USERS_URL?: string;
5
- readonly VITE_BACKEND_API_MANAGEMENT_URL?: string;
3
+ readonly VITE_BACKEND_API_INFLUENCERS_URL?: string;
4
+ readonly VITE_BACKEND_API_PROFILES_URL?: string;
6
5
  readonly VITE_BACKEND_API_SALES_URL?: string;
6
+ readonly VITE_BACKEND_API_CLIENTS_URL?: string;
7
7
  }
8
8
 
9
9
  declare interface SharedAppModulesContextData {
package/dist/invoice.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare interface ActionInterface {
2
2
  tags?: string[];
3
3
  _id?: string;
4
+ primetagId?: string;
4
5
  title?: string;
5
6
  clientId?: string;
6
7
  cluster?: string;
@@ -34,12 +35,26 @@ declare interface ActionInterface {
34
35
  shopping?: string;
35
36
  project?: string;
36
37
  type?: "partner" | "exclusive";
37
- notes?: NoteInterface[];
38
+ notes?: {
39
+ text: string;
40
+ owner: string;
41
+ createdAt: string;
42
+ }[];
38
43
  hashtags?: string[];
39
44
  mentions?: string[];
40
45
  keywords?: string[];
41
46
  description?: string;
42
47
  objective?: string;
48
+ kpis?: {
49
+ budget: number;
50
+ revenue: number;
51
+ transferProvision: number;
52
+ costProvision: number;
53
+ transferActual: number;
54
+ costActual: number;
55
+ freeValueProvision: number;
56
+ freeValueActual: number;
57
+ };
43
58
  }
44
59
 
45
60
  declare interface AgencyCommission {
@@ -302,12 +317,6 @@ declare interface Note_3 {
302
317
  createdAt: string;
303
318
  }
304
319
 
305
- declare interface NoteInterface {
306
- text: string;
307
- owner: string;
308
- createdAt: string;
309
- }
310
-
311
320
  declare interface Paid {
312
321
  date: string;
313
322
  }
package/dist/payment.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare interface ActionInterface {
2
2
  tags?: string[];
3
3
  _id?: string;
4
+ primetagId?: string;
4
5
  title?: string;
5
6
  clientId?: string;
6
7
  cluster?: string;
@@ -34,12 +35,26 @@ declare interface ActionInterface {
34
35
  shopping?: string;
35
36
  project?: string;
36
37
  type?: "partner" | "exclusive";
37
- notes?: NoteInterface[];
38
+ notes?: {
39
+ text: string;
40
+ owner: string;
41
+ createdAt: string;
42
+ }[];
38
43
  hashtags?: string[];
39
44
  mentions?: string[];
40
45
  keywords?: string[];
41
46
  description?: string;
42
47
  objective?: string;
48
+ kpis?: {
49
+ budget: number;
50
+ revenue: number;
51
+ transferProvision: number;
52
+ costProvision: number;
53
+ transferActual: number;
54
+ costActual: number;
55
+ freeValueProvision: number;
56
+ freeValueActual: number;
57
+ };
43
58
  }
44
59
 
45
60
  declare interface AgencyCommission {
@@ -302,12 +317,6 @@ declare interface Note_3 {
302
317
  createdAt: string;
303
318
  }
304
319
 
305
- declare interface NoteInterface {
306
- text: string;
307
- owner: string;
308
- createdAt: string;
309
- }
310
-
311
320
  export declare interface Paid {
312
321
  date: string;
313
322
  }
@@ -1,11 +1,11 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
3
  declare interface Environments {
4
- readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
5
4
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
6
- readonly VITE_BACKEND_API_USERS_URL?: string;
7
- readonly VITE_BACKEND_API_MANAGEMENT_URL?: string;
5
+ readonly VITE_BACKEND_API_INFLUENCERS_URL?: string;
6
+ readonly VITE_BACKEND_API_PROFILES_URL?: string;
8
7
  readonly VITE_BACKEND_API_SALES_URL?: string;
8
+ readonly VITE_BACKEND_API_CLIENTS_URL?: string;
9
9
  }
10
10
 
11
11
  declare interface SharedAppModulesContextProps {
@@ -1,6 +1,7 @@
1
1
  declare interface ActionInterface {
2
2
  tags?: string[];
3
3
  _id?: string;
4
+ primetagId?: string;
4
5
  title?: string;
5
6
  clientId?: string;
6
7
  cluster?: string;
@@ -34,12 +35,26 @@ declare interface ActionInterface {
34
35
  shopping?: string;
35
36
  project?: string;
36
37
  type?: "partner" | "exclusive";
37
- notes?: NoteInterface[];
38
+ notes?: {
39
+ text: string;
40
+ owner: string;
41
+ createdAt: string;
42
+ }[];
38
43
  hashtags?: string[];
39
44
  mentions?: string[];
40
45
  keywords?: string[];
41
46
  description?: string;
42
47
  objective?: string;
48
+ kpis?: {
49
+ budget: number;
50
+ revenue: number;
51
+ transferProvision: number;
52
+ costProvision: number;
53
+ transferActual: number;
54
+ costActual: number;
55
+ freeValueProvision: number;
56
+ freeValueActual: number;
57
+ };
43
58
  }
44
59
 
45
60
  declare interface AgencyCommission {
@@ -302,12 +317,6 @@ declare interface Note_3 {
302
317
  createdAt: string;
303
318
  }
304
319
 
305
- declare interface NoteInterface {
306
- text: string;
307
- owner: string;
308
- createdAt: string;
309
- }
310
-
311
320
  declare interface Paid {
312
321
  date: string;
313
322
  }
package/dist/sale.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  declare interface ActionInterface {
2
2
  tags?: string[];
3
3
  _id?: string;
4
+ primetagId?: string;
4
5
  title?: string;
5
6
  clientId?: string;
6
7
  cluster?: string;
@@ -34,12 +35,26 @@ declare interface ActionInterface {
34
35
  shopping?: string;
35
36
  project?: string;
36
37
  type?: "partner" | "exclusive";
37
- notes?: NoteInterface[];
38
+ notes?: {
39
+ text: string;
40
+ owner: string;
41
+ createdAt: string;
42
+ }[];
38
43
  hashtags?: string[];
39
44
  mentions?: string[];
40
45
  keywords?: string[];
41
46
  description?: string;
42
47
  objective?: string;
48
+ kpis?: {
49
+ budget: number;
50
+ revenue: number;
51
+ transferProvision: number;
52
+ costProvision: number;
53
+ transferActual: number;
54
+ costActual: number;
55
+ freeValueProvision: number;
56
+ freeValueActual: number;
57
+ };
43
58
  }
44
59
 
45
60
  declare interface AgencyCommission {
@@ -302,12 +317,6 @@ declare interface Note_3 {
302
317
  createdAt: string;
303
318
  }
304
319
 
305
- declare interface NoteInterface {
306
- text: string;
307
- owner: string;
308
- createdAt: string;
309
- }
310
-
311
320
  declare interface Paid {
312
321
  date: string;
313
322
  }
package/dist/utils.js CHANGED
@@ -1,5 +1,5 @@
1
- import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.CxZ87QTi.js";
2
- import { i as k, a as P, b, c as N } from "./chuncks/field-textarea.component.j5MsRUzc.js";
1
+ import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.6YTmX_Zn.js";
2
+ import { i as k, a as P, b, c as N } from "./chuncks/field-textarea.component.CVt4caPC.js";
3
3
  export {
4
4
  e as formatCompactNumber,
5
5
  r as formatCompactPercent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.111",
4
+ "version": "0.0.113",
5
5
  "files": [
6
6
  "dist"
7
7
  ],