@zeniai/client-epic-state 5.1.2-betaJK1 → 5.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.
@@ -66,11 +66,7 @@ const toFilterByPayload = (filters) => {
66
66
  }
67
67
  return filters.categories.map((category) => ({
68
68
  field: category.field ?? '',
69
- operator: category.field === 'due_date' && category.matchingOperator === 'equal'
70
- ? 'between'
71
- : category.matchingOperator === 'equal'
72
- ? 'is'
73
- : 'is_not',
69
+ operator: category.matchingOperator === 'equal' ? 'is' : 'is_not',
74
70
  values: category.values.map((v) => String(v)),
75
71
  join: category.valuesCombinationOperator === 'ALL' ? 'and' : 'or',
76
72
  }));
@@ -70,11 +70,7 @@ const toFilterByPayload = (filters) => {
70
70
  }
71
71
  return filters.categories.map((category) => ({
72
72
  field: category.field ?? '',
73
- operator: category.field === 'due_date' && category.matchingOperator === 'equal'
74
- ? 'between'
75
- : category.matchingOperator === 'equal'
76
- ? 'is'
77
- : 'is_not',
73
+ operator: category.matchingOperator === 'equal' ? 'is' : 'is_not',
78
74
  values: category.values.map((v) => String(v)),
79
75
  join: category.valuesCombinationOperator === 'ALL' ? 'and' : 'or',
80
76
  }));
@@ -18,7 +18,7 @@ export type ManagementViewFilterCategoryField = 'controllerUserIds' | 'customerS
18
18
  export type SubscriptionViewFilterCategoryField = 'controllerUserIds' | 'statusCode' | 'recommendedActionCode' | 'subscriptionPlans' | 'subscriptionAddOns' | 'avg2MonthExpenses' | 'slabLowerLimit' | 'slabUpperLimit' | 'monthlyRecurringRevenue';
19
19
  export type PortfolioViewFilterCategoryField = 'netBurnOrIncome' | 'cashPosition' | 'income' | 'expenses' | 'runway';
20
20
  export type HealthMonitorViewFilterCategoryField = 'verticalProductServices' | 'runway' | 'netPromoterScore' | 'customerSatisfactionScore' | 'churnProbabilityPercentage' | 'controller' | 'customerSuccessManager' | 'lastReportSent' | 'subscriptionStartDate' | 'subscriptionRenewalDate' | 'externalProductServiceExposure' | 'companyEngagementMetricsUpdatedAt' | 'companyGroupId' | 'monthlyRecurringRevenue';
21
- export type TaskManagerViewFilterCategoryField = 'assignees' | 'due_date' | 'priority' | 'status' | 'company_id' | 'tags';
21
+ export type TaskManagerViewFilterCategoryField = 'assignees' | 'creationDate' | 'dueDate' | 'priority' | 'status' | 'company_id' | 'tag';
22
22
  export interface CockpitFilterCategory {
23
23
  matchingOperator: 'equal' | 'not_equal';
24
24
  values: FilterCategoryValueType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.2-betaJK1",
3
+ "version": "5.1.2",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",