@appsemble/utils 0.33.3 → 0.33.5

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.33.3/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.33.5/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.33.3/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.33.3)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.33.5/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.33.5)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.33.3/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.33.5/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -15,6 +15,10 @@ Does nothing if the app member isn’t logged in.`,
15
15
  $ref: '#/components/schemas/RemapperDefinition',
16
16
  description: 'The roles of the app members that would be fetched.',
17
17
  },
18
+ query: {
19
+ $ref: '#/components/schemas/RemapperDefinition',
20
+ description: 'Additional filters to fetch members based on properties and other fields',
21
+ },
18
22
  },
19
23
  });
20
24
  //# sourceMappingURL=AppMemberQueryActionDefinition.js.map
@@ -3,6 +3,7 @@ export const pathItems = {
3
3
  { $ref: '#/components/parameters/appId' },
4
4
  { $ref: '#/components/parameters/roles' },
5
5
  { $ref: '#/components/parameters/selectedGroupId' },
6
+ { $ref: '#/components/parameters/$filter' },
6
7
  ],
7
8
  get: {
8
9
  tags: ['common', 'app', 'member'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.33.3",
3
+ "version": "0.33.5",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -39,7 +39,7 @@
39
39
  "test": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@appsemble/types": "0.33.3",
42
+ "@appsemble/types": "0.33.5",
43
43
  "@odata/parser": "^0.2.14",
44
44
  "axios": "^1.0.0",
45
45
  "cron-parser": "^4.0.0",
package/remap.js CHANGED
@@ -634,8 +634,8 @@ const mapperImplementations = {
634
634
  for (const [field, { comparator, type, value }] of Object.entries(values)) {
635
635
  const remapped = remap(value, input, context);
636
636
  const remappedDefined = remapped === undefined ? null : remapped;
637
- const literal = type === 'String' && value != null
638
- ? literalValues[type](remappedDefined.replaceAll("'", "''").replaceAll('\\', '\\\\'))
637
+ const literal = type === 'String' && remapped != null
638
+ ? literalValues[type](String(remappedDefined).replaceAll("'", "''").replaceAll('\\', '\\\\'))
639
639
  : literalValues[type === 'Number' ? 'Decimal' : type](remappedDefined);
640
640
  result = result.field(field)[comparator](literal);
641
641
  }