@new-project-media/client-frontends-shared-types 3.41.0 → 3.42.0

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": "@new-project-media/client-frontends-shared-types",
3
- "version": "3.41.0",
3
+ "version": "3.42.0",
4
4
  "scripts": {
5
5
  "build": "tsc -p tsconfig.json",
6
6
  "postbuild": "mkdir -p ../../dist/packages/client-frontends-shared-types/ && cp package.json ../../dist/packages/client-frontends-shared-types/",
@@ -50,6 +50,18 @@ export type SearchRoleField = {
50
50
  export type FilterType = 'autocomplete' | 'lookup-autocomplete' | 'date-range' | 'date-range-slider' | 'date-range-group' | 'exists' | 'label' | 'range-slider' | 'application-events' | 'milestones';
51
51
  export type FilterDefinition = {
52
52
  id: string;
53
+ /**
54
+ * Field the filter writes to on the request. Defaults to `id`.
55
+ *
56
+ * Not a synonym for the `id` above it: `id` pairs the filter with its
57
+ * aggregation, this pairs it with the request. They diverge when one indexed
58
+ * field backs several filters — a nested array narrowed to a different role
59
+ * per filter, say — so counts stay keyed by the bare field while each filter
60
+ * targets a scoped form of it.
61
+ *
62
+ * Consumers must honour it on both read and write. Reading under one key and
63
+ * writing the other applies a filter the counts never described.
64
+ */
53
65
  filterId?: string;
54
66
  variant: FilterType;
55
67
  useSearch?: (searchTerm: string) => UseQueryResult<FilterSelectOption[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"dataGrid.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/dataGrid.ts"],"names":[],"mappings":";;;AA4EA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;IACf,wCAA0B,CAAA;IAC1B,yCAA2B,CAAA;IAC3B,+BAAiB,CAAA;AACnB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AAEY,QAAA,oBAAoB,GAAG;IAClC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS;IAC9B,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC5B,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,cAAc;IACvC,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,cAAc;IACxC,sEAAsE;IACtE,2DAA2D;IAC3D,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,cAAc;CAC3B,CAAA;AA2DV,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,2CAAa,CAAA;AACf,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,uBAAS,CAAA;IACT,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
1
+ {"version":3,"file":"dataGrid.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/dataGrid.ts"],"names":[],"mappings":";;;AA4EA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;IACf,wCAA0B,CAAA;IAC1B,yCAA2B,CAAA;IAC3B,+BAAiB,CAAA;AACnB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AAEY,QAAA,oBAAoB,GAAG;IAClC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS;IAC9B,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC5B,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,cAAc;IACvC,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,cAAc;IACxC,sEAAsE;IACtE,2DAA2D;IAC3D,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,cAAc;CAC3B,CAAA;AAuEV,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,2CAAa,CAAA;AACf,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,uBAAS,CAAA;IACT,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}