@bigbinary/neeto-filters-frontend 3.1.1 → 3.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-filters-frontend",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Manage filters across neeto products.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-filters-nano",
package/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ButtonProps, PaneProps } from "@bigbinary/neetoui";
3
- import { UseQueryResult, UseQueryOptions } from "react-query";
3
+ import { UseQueryResult, UseQueryOptions, UseMutationOptions, UseMutationResult, MutationOptions } from "react-query";
4
4
 
5
5
  interface labelAndValue {
6
6
  label: string | number;
@@ -80,7 +80,7 @@ type condition = {
80
80
  [otherProps: string]: any;
81
81
  };
82
82
 
83
- type filters = {
83
+ export type filters = {
84
84
  conditions: condition[];
85
85
  [otherProps: string]: any;
86
86
  };
@@ -157,3 +157,20 @@ export function useFetchSegments(args: {
157
157
  entity: string,
158
158
  searchTerm?: string,
159
159
  }, options?: UseQueryOptions): UseQueryResult<SegmentType[]>
160
+
161
+ export function buildUrlFromSegment(args: {
162
+ columns: ColumnType[],
163
+ filters: filters[],
164
+ id: string
165
+ }): string;
166
+
167
+ export function useDestroySegment(options?: UseMutationOptions): UseMutationResult<TData, TError, TVariables, TContext>;
168
+
169
+ export function useUpdateSegment(options?: UseMutationOptions): UseMutationResult<TData, TError, TVariables, TContext>;
170
+
171
+ export function buildUrlFromFilters(args: {
172
+ columns: ColumnType[],
173
+ filters: filters[],
174
+ isClearAll?: boolean,
175
+ childrenKeys?: string[]
176
+ }): string;