@constructive-io/data 0.8.0 → 0.9.1

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/dist/index.cjs CHANGED
@@ -750,7 +750,7 @@ var require_inflection = __commonJS({
750
750
  }
751
751
  });
752
752
 
753
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/client/typed-document.js
753
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/client/typed-document.js
754
754
  var TypedDocumentString = class extends String {
755
755
  /** Same shape as the codegen implementation for structural typing */
756
756
  __apiType;
@@ -2357,7 +2357,7 @@ function getUpdateVariablesAst(attrs, patchers) {
2357
2357
  return [...patchVariables, ...patcherVariables];
2358
2358
  }
2359
2359
 
2360
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/meta-object/convert.js
2360
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/meta-object/convert.js
2361
2361
  function convertFromMetaSchema(metaSchema) {
2362
2362
  const { _meta: { tables } } = metaSchema;
2363
2363
  const result = {
@@ -2415,7 +2415,7 @@ function pickConstraintField(field2) {
2415
2415
  };
2416
2416
  }
2417
2417
 
2418
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/meta-object/format.json
2418
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/meta-object/format.json
2419
2419
  var format_default = {
2420
2420
  $id: "root",
2421
2421
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -2510,7 +2510,7 @@ var format_default = {
2510
2510
  additionalProperties: false
2511
2511
  };
2512
2512
 
2513
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/meta-object/validate.js
2513
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/meta-object/validate.js
2514
2514
  var cachedAjv = null;
2515
2515
  var cachedValidator = null;
2516
2516
  function getValidator() {
@@ -2534,7 +2534,7 @@ function validateMetaObject(obj) {
2534
2534
  };
2535
2535
  }
2536
2536
 
2537
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/query-builder.js
2537
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/query-builder.js
2538
2538
  var isObject = (val) => val !== null && typeof val === "object";
2539
2539
  var QueryBuilder = class {
2540
2540
  _introspection;
@@ -2854,7 +2854,7 @@ function modelNameToGetMany(model) {
2854
2854
  return toCamelCase2(pluralize4(toSnakeCase(model)));
2855
2855
  }
2856
2856
 
2857
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/generators/field-selector.js
2857
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/generators/field-selector.js
2858
2858
  var relationalFieldSetCache = /* @__PURE__ */ new WeakMap();
2859
2859
  function getRelationalFieldSet(table) {
2860
2860
  const cached = relationalFieldSetCache.get(table);
@@ -3155,7 +3155,7 @@ function validateFieldSelection(selection, table) {
3155
3155
  };
3156
3156
  }
3157
3157
 
3158
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/generators/naming-helpers.js
3158
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/generators/naming-helpers.js
3159
3159
  function normalizeInflectionValue(value) {
3160
3160
  if (typeof value !== "string")
3161
3161
  return null;
@@ -3237,7 +3237,7 @@ function toOrderByTypeName(tableName, table) {
3237
3237
  return `${plural.charAt(0).toUpperCase() + plural.slice(1)}OrderBy`;
3238
3238
  }
3239
3239
 
3240
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/generators/select.js
3240
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/generators/select.js
3241
3241
  function cleanTableToMetaObject(tables) {
3242
3242
  return {
3243
3243
  tables: tables.map((table) => ({
@@ -4491,7 +4491,7 @@ function preparePatchInput(input, dirtyFields, options) {
4491
4491
  return prepareMutationInput(input, { ...options, operation: "patch", dirtyFields });
4492
4492
  }
4493
4493
 
4494
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/types/core.js
4494
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/types/core.js
4495
4495
  function isGraphQLVariableValue(value) {
4496
4496
  return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
4497
4497
  }
@@ -4512,7 +4512,7 @@ function isGraphQLVariables(obj) {
4512
4512
  return true;
4513
4513
  }
4514
4514
 
4515
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/introspect/schema-query.js
4515
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/introspect/schema-query.js
4516
4516
  var SCHEMA_INTROSPECTION_QUERY = `
4517
4517
  query IntrospectSchema {
4518
4518
  __schema {
@@ -4618,7 +4618,7 @@ fragment TypeRef on __Type {
4618
4618
  }
4619
4619
  `;
4620
4620
 
4621
- // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._2128e8fad2d2acf1bbdb711a112b1517/node_modules/@constructive-io/graphql-query/esm/introspect/transform-schema.js
4621
+ // ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13._e185480b7a7ef4f489a13308370e3f05/node_modules/@constructive-io/graphql-query/esm/introspect/transform-schema.js
4622
4622
  function buildTypeRegistry(types) {
4623
4623
  const registry = /* @__PURE__ */ new Map();
4624
4624
  for (const type of types) {