@grapadigital/shared-app-modules 0.0.197 → 0.0.198

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.
@@ -599,6 +599,10 @@ declare interface MentionTextProps {
599
599
  className?: string;
600
600
  }
601
601
 
602
+ declare type Module = "sales" | "invoices" | "payments" | "actions";
603
+
604
+ export declare function ModuleTags({ module, organizationId, currentTags, useUpdateModuleTags, }: TagsProps): JSX.Element;
605
+
602
606
  declare interface NegotiationInterface {
603
607
  calculatorType: CalculatorType;
604
608
  childPermit?: boolean;
@@ -981,6 +985,36 @@ declare interface TableSkeletonProps {
981
985
  actionsCount?: number;
982
986
  }
983
987
 
988
+ declare interface TagConfig {
989
+ module: Module;
990
+ organizationId: string;
991
+ currentTags?: string[];
992
+ useUpdateModuleTags: () => any;
993
+ }
994
+
995
+ declare interface TagsProps extends TagConfig {
996
+ /**
997
+ * Tags associadas ao módulo, definidas no card e retornadas pela API.
998
+ */
999
+ currentTags?: string[];
1000
+ /**
1001
+ * Hook responsável por atualizar as tags de um módulo.
1002
+ *
1003
+ * Espera um `useMutation` com um serviço que
1004
+ * receba os dados no seguinte formato:
1005
+ *
1006
+ * ```ts
1007
+ * interface Input {
1008
+ * id: string;
1009
+ * payload: {
1010
+ * tags: string[];
1011
+ * };
1012
+ * }
1013
+ * ```
1014
+ */
1015
+ useUpdateModuleTags: () => any;
1016
+ }
1017
+
984
1018
  export declare function TikTokIcon({ size, color, ...props }: LucideProps): JSX.Element;
985
1019
 
986
1020
  export declare function TwitterIcon({ size, color, ...props }: LucideProps): JSX.Element;