@smartive/graphql-magic 17.2.1 → 17.3.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [17.2.1](https://github.com/smartive/graphql-magic/compare/v17.2.0...v17.2.1) (2025-04-09)
1
+ # [17.3.0](https://github.com/smartive/graphql-magic/compare/v17.2.2...v17.3.0) (2025-04-09)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * Static eval Object ([#263](https://github.com/smartive/graphql-magic/issues/263)) ([68038cb](https://github.com/smartive/graphql-magic/commit/68038cb662a158de64a6c9d11a61217bcf58cf67))
6
+ * add richText and multipleEmail as stringType ([#265](https://github.com/smartive/graphql-magic/issues/265)) ([db717c9](https://github.com/smartive/graphql-magic/commit/db717c96f02d0cb298c09d74de735b604fe07760))
@@ -15,7 +15,7 @@ type FieldDefinitionBase2 = ({
15
15
  type: 'Boolean';
16
16
  } | {
17
17
  type: 'String';
18
- stringType?: 'email' | 'url' | 'phone';
18
+ stringType?: 'email' | 'url' | 'phone' | 'multipleEmail' | 'richText';
19
19
  large?: true;
20
20
  maxLength?: number;
21
21
  } | {
@@ -7,4 +7,4 @@ export type MutationHook<DateType extends AnyDateType = AnyDateType> = (model: E
7
7
  input: Entity;
8
8
  normalizedInput: Entity;
9
9
  next: Entity;
10
- }, ctx: Context<DateType>) => Promise<void>;
10
+ }, ctx: Context<DateType>) => Promise<void> | void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartive/graphql-magic",
3
- "version": "17.2.1",
3
+ "version": "17.3.0",
4
4
  "description": "",
5
5
  "source": "src/index.ts",
6
6
  "type": "module",
@@ -16,7 +16,7 @@ type FieldDefinitionBase2 =
16
16
  | { type: 'Boolean' }
17
17
  | {
18
18
  type: 'String';
19
- stringType?: 'email' | 'url' | 'phone';
19
+ stringType?: 'email' | 'url' | 'phone' | 'multipleEmail' | 'richText';
20
20
  large?: true;
21
21
  maxLength?: number;
22
22
  }
@@ -11,4 +11,4 @@ export type MutationHook<DateType extends AnyDateType = AnyDateType> = (
11
11
  when: 'before' | 'after',
12
12
  data: { prev: Entity; input: Entity; normalizedInput: Entity; next: Entity },
13
13
  ctx: Context<DateType>,
14
- ) => Promise<void>;
14
+ ) => Promise<void> | void;