jmapcloud-ng-core-types 1.1.18 → 1.1.20

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/ambient.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /// <reference path="./public/global-aliases.d.ts" />
2
+ import * as core from "./public/core"
3
+
4
+ declare global {
5
+ const JMap: typeof core.JMap
6
+ }
7
+
8
+ export {}
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /// <reference path="./public/global-aliases.d.ts" />
2
+ export {}
package/index.ts CHANGED
@@ -889,6 +889,7 @@ export interface JTableService {
889
889
  updateRow(tableId: JId, rowId: number, row: { [key: string]: any }): Promise<void>
890
890
  deleteRow(tableId: JId, rowId: number): Promise<void>
891
891
  getDataSourceAttributes(tableId: JId): Promise<JDataSourceAttribute[]>
892
+ setDynamicFilterActive(tableId: JId, filterId: string, isActive: boolean): void
892
893
  }
893
894
 
894
895
  export interface JLayerSearchService {
@@ -988,40 +989,49 @@ export interface JServerService {
988
989
  getAllIdentityProvidersById(): JServerIdentityProviderById
989
990
  }
990
991
 
992
+ export interface JDynamicLayerFilterService {
993
+ // TODO JMAP8-3266 : create new service
994
+ }
995
+ export interface JDynamicTableFilterService {
996
+ // TODO JMAP8-3266 : create new service
997
+ }
998
+
999
+ // TODO JMAP8-3266 : refactor this
991
1000
  export interface JDynamicFilterService {
992
- isAvailable(layerId: JId): boolean
993
- isActive(layerId: JId): boolean
994
- setIsActive(layerId: JId, isActive: boolean): void
995
- getByLayerId(layerId: JId): JDynamicFilter
996
- getAllOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
997
- getAllMultipleValuesOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
998
- getAllTwoValuesOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
999
- getOperatorsForAttributeType(attributeType: JLAYER_ATTRIBUTE_TYPES): JLAYER_DYNAMIC_FILTER_OPERATORS[]
1000
- getConditionError(condition: JDynamicFilterCondition): string | undefined
1001
- isConditionValid(condition: JDynamicFilterCondition): boolean
1002
- existSimilarCondition(condition: JDynamicFilterCondition, isUpdate?: boolean): boolean
1003
- set(params: JDynamicFilterSetParams[]): void
1004
- createCondition(condition: JDynamicFilterCondition): number
1005
- updateCondition(condition: JDynamicFilterCondition): void
1006
- removeConditions(layerId: JId, conditionsIds: number[]): void
1007
- isNoValueOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1008
- isMultipleValuesOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1009
- isTwoValuesOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1010
- getConditionValueError(
1011
- operator: JLAYER_DYNAMIC_FILTER_OPERATORS,
1012
- attributeType: JLAYER_ATTRIBUTE_TYPES,
1013
- value?: any
1014
- ): string | undefined
1015
- isConditionValueValid(
1016
- operator: JLAYER_DYNAMIC_FILTER_OPERATORS,
1017
- attributeType: JLAYER_ATTRIBUTE_TYPES,
1018
- value?: any
1019
- ): boolean
1020
- canAttributeTypeAcceptMultipleValuesOperators(attributeType: JLAYER_ATTRIBUTE_TYPES): boolean
1021
- canAttributeTypeAcceptTwoValuesOperators(attributeType: JLAYER_ATTRIBUTE_TYPES): boolean
1022
- getIsBetweenValuesError(attributeType: JLAYER_ATTRIBUTE_TYPES, value1: any, value2: any): string | undefined
1023
- getNowValue(): string
1024
- getAllLastOperatorUnits(): string[]
1001
+ // isAvailable(layerId: JId): boolean
1002
+ // isActive(layerId: JId): boolean
1003
+ setIsActive(layerId: JId, filterId: string, isActive: boolean): void
1004
+ // setIsActive(layerId: JId, isActive: boolean): void
1005
+ // getByLayerId(layerId: JId): JDynamicFilter
1006
+ // getAllOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
1007
+ // getAllMultipleValuesOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
1008
+ // getAllTwoValuesOperators(): JLAYER_DYNAMIC_FILTER_OPERATORS[]
1009
+ // getOperatorsForAttributeType(attributeType: JLAYER_ATTRIBUTE_TYPES): JLAYER_DYNAMIC_FILTER_OPERATORS[]
1010
+ // getConditionError(condition: JDynamicFilterCondition): string | undefined
1011
+ // isConditionValid(condition: JDynamicFilterCondition): boolean
1012
+ // existSimilarCondition(condition: JDynamicFilterCondition, isUpdate?: boolean): boolean
1013
+ // set(params: JDynamicFilterSetParams[]): void
1014
+ // createCondition(condition: JDynamicFilterCondition): number
1015
+ // updateCondition(condition: JDynamicFilterCondition): void
1016
+ // removeConditions(layerId: JId, conditionsIds: number[]): void
1017
+ // isNoValueOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1018
+ // isMultipleValuesOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1019
+ // isTwoValuesOperator(operator: JLAYER_DYNAMIC_FILTER_OPERATORS): boolean
1020
+ // getConditionValueError(
1021
+ // operator: JLAYER_DYNAMIC_FILTER_OPERATORS,
1022
+ // attributeType: JLAYER_ATTRIBUTE_TYPES,
1023
+ // value?: any
1024
+ // ): string | undefined
1025
+ // isConditionValueValid(
1026
+ // operator: JLAYER_DYNAMIC_FILTER_OPERATORS,
1027
+ // attributeType: JLAYER_ATTRIBUTE_TYPES,
1028
+ // value?: any
1029
+ // ): boolean
1030
+ // canAttributeTypeAcceptMultipleValuesOperators(attributeType: JLAYER_ATTRIBUTE_TYPES): boolean
1031
+ // canAttributeTypeAcceptTwoValuesOperators(attributeType: JLAYER_ATTRIBUTE_TYPES): boolean
1032
+ // getIsBetweenValuesError(attributeType: JLAYER_ATTRIBUTE_TYPES, value1: any, value2: any): string | undefined
1033
+ // getNowValue(): string
1034
+ // getAllLastOperatorUnits(): string[]
1025
1035
  }
1026
1036
 
1027
1037
  // MISC
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "jmapcloud-ng-core-types",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "JMap Cloud specific version of JMap Cloud NG Core types and interfaces",
5
5
  "main": "index.js",
6
+ "types": "ambient.d.ts",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "pub-github": "node build/buildfile.js publish-github;",
9
- "doc-test": "node build/buildfile.js doc-test;"
9
+ "update-types-bridge": "node build/codemod-export-globals.js && node build/auto-add-imports.js",
10
+ "pub-github": "npm run update-types-bridge && node build/buildfile.js publish-github;",
11
+ "doc-test": "npm run update-types-bridge && node build/buildfile.js doc-test;"
10
12
  },
11
13
  "repository": {
12
14
  "type": "git",