@graphql-mesh/types 0.104.13 → 0.104.14

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.
@@ -2719,8 +2719,20 @@ exports.jsonSchema = {
2719
2719
  "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`"
2720
2720
  },
2721
2721
  "custom": {
2722
- "type": "string",
2723
- "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work"
2722
+ "anyOf": [
2723
+ {
2724
+ "type": "object",
2725
+ "additionalProperties": true
2726
+ },
2727
+ {
2728
+ "type": "string"
2729
+ },
2730
+ {
2731
+ "type": "array",
2732
+ "additionalItems": true
2733
+ }
2734
+ ],
2735
+ "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work\n\nYou can also provide a function directly"
2724
2736
  },
2725
2737
  "length": {
2726
2738
  "type": "integer",
@@ -2582,8 +2582,20 @@
2582
2582
  "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`"
2583
2583
  },
2584
2584
  "custom": {
2585
- "type": "string",
2586
- "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work"
2585
+ "anyOf": [
2586
+ {
2587
+ "type": "object",
2588
+ "additionalProperties": true
2589
+ },
2590
+ {
2591
+ "type": "string"
2592
+ },
2593
+ {
2594
+ "type": "array",
2595
+ "additionalItems": true
2596
+ }
2597
+ ],
2598
+ "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work\n\nYou can also provide a function directly"
2587
2599
  },
2588
2600
  "length": {
2589
2601
  "type": "integer",
@@ -2716,8 +2716,20 @@ export const jsonSchema = {
2716
2716
  "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`"
2717
2717
  },
2718
2718
  "custom": {
2719
- "type": "string",
2720
- "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work"
2719
+ "anyOf": [
2720
+ {
2721
+ "type": "object",
2722
+ "additionalProperties": true
2723
+ },
2724
+ {
2725
+ "type": "string"
2726
+ },
2727
+ {
2728
+ "type": "array",
2729
+ "additionalItems": true
2730
+ }
2731
+ ],
2732
+ "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work\n\nYou can also provide a function directly"
2721
2733
  },
2722
2734
  "length": {
2723
2735
  "type": "integer",
@@ -2582,8 +2582,20 @@
2582
2582
  "description": "Faker.js expression or function\nRead more (https://github.com/marak/Faker.js/#fakerfake)\nExample:\nfaker: `name.firstName`\nfaker: `{{ name.firstName }} {{ name.lastName }}`"
2583
2583
  },
2584
2584
  "custom": {
2585
- "type": "string",
2586
- "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work"
2585
+ "anyOf": [
2586
+ {
2587
+ "type": "object",
2588
+ "additionalProperties": true
2589
+ },
2590
+ {
2591
+ "type": "string"
2592
+ },
2593
+ {
2594
+ "type": "array",
2595
+ "additionalItems": true
2596
+ }
2597
+ ],
2598
+ "description": "Custom mocking\nIt can be a module or json file.\nBoth \"moduleName#exportName\" or only \"moduleName\" would work\n\nYou can also provide a function directly"
2587
2599
  },
2588
2600
  "length": {
2589
2601
  "type": "integer",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-mesh/types",
3
- "version": "0.104.13",
3
+ "version": "0.104.14",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
9
  "@graphql-hive/pubsub": "next",
10
- "@graphql-mesh/store": "^0.104.13",
10
+ "@graphql-mesh/store": "^0.104.14",
11
11
  "@graphql-tools/batch-delegate": "^10.0.0",
12
12
  "@graphql-tools/delegate": "^11.0.0",
13
13
  "@graphql-tools/utils": "^10.8.0",
@@ -2171,8 +2171,10 @@ export interface MockingFieldConfig {
2171
2171
  * Custom mocking
2172
2172
  * It can be a module or json file.
2173
2173
  * Both "moduleName#exportName" or only "moduleName" would work
2174
+ *
2175
+ * You can also provide a function directly
2174
2176
  */
2175
- custom?: string;
2177
+ custom?: any;
2176
2178
  /**
2177
2179
  * Length of the mock list
2178
2180
  * For the list types `[ObjectType]`, how many `ObjectType` you want to return?
@@ -2171,8 +2171,10 @@ export interface MockingFieldConfig {
2171
2171
  * Custom mocking
2172
2172
  * It can be a module or json file.
2173
2173
  * Both "moduleName#exportName" or only "moduleName" would work
2174
+ *
2175
+ * You can also provide a function directly
2174
2176
  */
2175
- custom?: string;
2177
+ custom?: any;
2176
2178
  /**
2177
2179
  * Length of the mock list
2178
2180
  * For the list types `[ObjectType]`, how many `ObjectType` you want to return?