@zeniai/client-epic-state 5.0.66-betaAR1 → 5.0.66-betaAR3

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.
Files changed (28) hide show
  1. package/lib/entity/class/classSelector.d.ts +19 -0
  2. package/lib/entity/class/classSelector.js +11 -0
  3. package/lib/esm/entity/class/classSelector.js +10 -0
  4. package/lib/esm/index.js +1 -1
  5. package/lib/esm/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
  6. package/lib/esm/view/companyView/helpers/cockpitHelpers.js +1 -1
  7. package/lib/esm/view/companyView/selector/companyManagementViewSelector.js +1 -1
  8. package/lib/esm/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
  9. package/lib/esm/view/spendManagement/spendManagementFilterHelpers.js +3 -3
  10. package/lib/esm/view/subscriptionView/subscriptionViewSelector.js +1 -1
  11. package/lib/esm/view/taskManager/taskListView/taskListReducer.js +1 -1
  12. package/lib/index.d.ts +1 -1
  13. package/lib/index.js +32 -31
  14. package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
  15. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
  16. package/lib/view/companyView/helpers/cockpitHelpers.js +1 -1
  17. package/lib/view/companyView/selector/companyManagementViewSelector.js +1 -1
  18. package/lib/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
  19. package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
  20. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  21. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory.d.ts +1 -1
  22. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
  23. package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +1 -1
  24. package/lib/view/spendManagement/spendManagementFilterHelpers.js +3 -3
  25. package/lib/view/subscriptionView/subscriptionViewSelector.js +1 -1
  26. package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
  27. package/lib/view/taskManager/taskListView/taskListReducer.js +1 -1
  28. package/package.json +1 -1
@@ -299,7 +299,7 @@ const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredComp
299
299
  const key = currentFilter.field;
300
300
  const categoryValue = getCategoryValueForCompany(key, company);
301
301
  if (categoryValue == null) {
302
- if (currentFilter.matchingOperator === 'not-equal') {
302
+ if (currentFilter.matchingOperator === 'not_equal') {
303
303
  return true;
304
304
  }
305
305
  return false;
@@ -51,7 +51,7 @@ const filterCompanyOnCategoriesWithSingleValue = (categoryValue, currentFilter,
51
51
  return filterCompanyOnRangeCategoryType(categoryValue, currentFilter);
52
52
  }
53
53
  // if filter category is not annualRecurringRevenue OR monthlyRecurringRevenue
54
- if (currentFilter.matchingOperator === 'not-equal') {
54
+ if (currentFilter.matchingOperator === 'not_equal') {
55
55
  return currentFilter.values.indexOf(categoryValue) === -1;
56
56
  }
57
57
  return currentFilter.values.indexOf(categoryValue) > -1;
@@ -159,7 +159,7 @@ const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredComp
159
159
  const key = currentFilter.field;
160
160
  const categoryValue = getCategoryValueForCompany(key, company);
161
161
  if (categoryValue == null) {
162
- if (currentFilter.matchingOperator === 'not-equal') {
162
+ if (currentFilter.matchingOperator === 'not_equal') {
163
163
  return true;
164
164
  }
165
165
  return false;
@@ -122,7 +122,7 @@ const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredComp
122
122
  const key = currentFilter.field;
123
123
  const categoryValue = getCategoryValueForCompany(key, company);
124
124
  if (categoryValue == null) {
125
- if (currentFilter.matchingOperator === 'not-equal') {
125
+ if (currentFilter.matchingOperator === 'not_equal') {
126
126
  return true;
127
127
  }
128
128
  return false;
@@ -19,7 +19,7 @@ export type SubscriptionViewFilterCategoryField = 'controllerUserIds' | 'statusC
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
21
  export interface CockpitFilterCategory {
22
- matchingOperator: 'equal' | 'not-equal';
22
+ matchingOperator: 'equal' | 'not_equal';
23
23
  values: FilterCategoryValueType[];
24
24
  valuesCombinationOperator: 'ANY' | 'ALL';
25
25
  field?: AiAccountantFilterCategoryField | ManagementViewFilterCategoryField | SubscriptionViewFilterCategoryField | PortfolioViewFilterCategoryField | HealthMonitorViewFilterCategoryField;
@@ -45,7 +45,7 @@ export interface BillPayFilters {
45
45
  }
46
46
  export interface BillPayFilterCategory {
47
47
  field: BillListViewFilterCategoryField;
48
- matchingOperator: 'equal' | 'not-equal';
48
+ matchingOperator: 'equal' | 'not_equal';
49
49
  values: (string | ZeniDate)[];
50
50
  valuesCombinationOperator: 'ANY';
51
51
  }
@@ -36,7 +36,7 @@ export interface PaymentHistoryFilters {
36
36
  }
37
37
  export interface PaymentHistoryFilterCategory {
38
38
  field: PaymentHistoryFilterCategoryField;
39
- matchingOperator: 'equal' | 'not-equal';
39
+ matchingOperator: 'equal' | 'not_equal';
40
40
  values: (string | ZeniDate)[];
41
41
  valuesCombinationOperator: 'ANY';
42
42
  }
@@ -46,7 +46,7 @@ export interface ReimbursementFilters {
46
46
  }
47
47
  export interface ReimbursementFilterCategory {
48
48
  field: RemiListViewFilterCategoryField;
49
- matchingOperator: 'equal' | 'not-equal';
49
+ matchingOperator: 'equal' | 'not_equal';
50
50
  values: (string | ZeniDate)[];
51
51
  valuesCombinationOperator: 'ANY';
52
52
  }
@@ -15,7 +15,7 @@ export type SpendManagementFilterEntityType = 'bill_pay' | 'reimbursement' | 'ta
15
15
  export type FilterCategoryType = 'searchAutocomplete' | 'user' | 'dateRange' | 'numberRange' | 'dropdown';
16
16
  export interface MatchingOperatorDropdownOption {
17
17
  label: 'is' | 'is not';
18
- value: 'equal' | 'not-equal';
18
+ value: 'equal' | 'not_equal';
19
19
  }
20
20
  export type CategoryCombinationOperator = 'AND' | 'OR';
21
21
  export interface BillPayFilterCategoryDropdownOption {
@@ -14,7 +14,7 @@ const helpers_1 = require("./helpers");
14
14
  const remiListSelector_1 = require("./reimbursement/remiListView/remiListSelector");
15
15
  const remiListState_1 = require("./reimbursement/remiListView/remiListState");
16
16
  //filters items against filter values representing a range. ex: date (from-to), amount(1k<-->5k)
17
- // Spend Management uses only equal/not-equal — TC amount operators
17
+ // Spend Management uses only equal/not_equal — TC amount operators
18
18
  // (inBetween, lessThan, greaterThan) live in the TC filter pipeline.
19
19
  const filterItemOnRangeCategoryType = (valueForItem, currentFilter) => {
20
20
  let doesItemFallInValueRange = false;
@@ -49,7 +49,7 @@ const filterItemOnCategoriesWithSingleValue = (categoryValue, currentFilter, ran
49
49
  return filterItemOnRangeCategoryType(categoryValue, currentFilter);
50
50
  }
51
51
  // if filter category is not rangeType
52
- if (currentFilter.matchingOperator === 'not-equal') {
52
+ if (currentFilter.matchingOperator === 'not_equal') {
53
53
  return currentFilter.values.indexOf(categoryValue.toString()) === -1;
54
54
  }
55
55
  return currentFilter.values.indexOf(categoryValue.toString()) > -1;
@@ -123,7 +123,7 @@ const applyAdvancedFiltersOnList = (entity, allItems, filters, filteredItems = [
123
123
  ? getCategoryValueForTaskList(key, item)
124
124
  : getCategoryValueForPaymentHistory(key, item);
125
125
  if (categoryValue == null) {
126
- if (currentFilter.matchingOperator === 'not-equal') {
126
+ if (currentFilter.matchingOperator === 'not_equal') {
127
127
  return true;
128
128
  }
129
129
  return false;
@@ -217,7 +217,7 @@ const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredComp
217
217
  const key = currentFilter.field;
218
218
  const categoryValue = getCategoryValueForCompany(key, company);
219
219
  if (categoryValue == null) {
220
- if (currentFilter.matchingOperator === 'not-equal') {
220
+ if (currentFilter.matchingOperator === 'not_equal') {
221
221
  return true;
222
222
  }
223
223
  return false;
@@ -44,7 +44,7 @@ export interface TaskListFilters {
44
44
  }
45
45
  export interface TaskFilterCategory {
46
46
  field: TaskListFilterCategoryField;
47
- matchingOperator: 'equal' | 'not-equal';
47
+ matchingOperator: 'equal' | 'not_equal';
48
48
  values: (string | ZeniDate)[];
49
49
  valuesCombinationOperator: 'ANY';
50
50
  }
@@ -70,7 +70,7 @@ exports.initialState = {
70
70
  categories: [
71
71
  {
72
72
  field: 'status',
73
- matchingOperator: 'not-equal',
73
+ matchingOperator: 'not_equal',
74
74
  values: ['resolved'],
75
75
  valuesCombinationOperator: 'ANY',
76
76
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.66-betaAR1",
3
+ "version": "5.0.66-betaAR3",
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",