@constructive-io/data 0.9.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 +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -745,7 +745,7 @@ var require_inflection = __commonJS({
|
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
|
|
748
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
748
|
+
// ../../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
|
|
749
749
|
var TypedDocumentString = class extends String {
|
|
750
750
|
/** Same shape as the codegen implementation for structural typing */
|
|
751
751
|
__apiType;
|
|
@@ -2352,7 +2352,7 @@ function getUpdateVariablesAst(attrs, patchers) {
|
|
|
2352
2352
|
return [...patchVariables, ...patcherVariables];
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
2355
|
+
// ../../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
|
|
2356
2356
|
function convertFromMetaSchema(metaSchema) {
|
|
2357
2357
|
const { _meta: { tables } } = metaSchema;
|
|
2358
2358
|
const result = {
|
|
@@ -2410,7 +2410,7 @@ function pickConstraintField(field2) {
|
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
2412
2412
|
|
|
2413
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
2413
|
+
// ../../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
|
|
2414
2414
|
var format_default = {
|
|
2415
2415
|
$id: "root",
|
|
2416
2416
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -2505,7 +2505,7 @@ var format_default = {
|
|
|
2505
2505
|
additionalProperties: false
|
|
2506
2506
|
};
|
|
2507
2507
|
|
|
2508
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
2508
|
+
// ../../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
|
|
2509
2509
|
var cachedAjv = null;
|
|
2510
2510
|
var cachedValidator = null;
|
|
2511
2511
|
function getValidator() {
|
|
@@ -2529,7 +2529,7 @@ function validateMetaObject(obj) {
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
2532
|
+
// ../../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
|
|
2533
2533
|
var isObject = (val) => val !== null && typeof val === "object";
|
|
2534
2534
|
var QueryBuilder = class {
|
|
2535
2535
|
_introspection;
|
|
@@ -2849,7 +2849,7 @@ function modelNameToGetMany(model) {
|
|
|
2849
2849
|
return toCamelCase2(pluralize4(toSnakeCase(model)));
|
|
2850
2850
|
}
|
|
2851
2851
|
|
|
2852
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
2852
|
+
// ../../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
|
|
2853
2853
|
var relationalFieldSetCache = /* @__PURE__ */ new WeakMap();
|
|
2854
2854
|
function getRelationalFieldSet(table) {
|
|
2855
2855
|
const cached = relationalFieldSetCache.get(table);
|
|
@@ -3150,7 +3150,7 @@ function validateFieldSelection(selection, table) {
|
|
|
3150
3150
|
};
|
|
3151
3151
|
}
|
|
3152
3152
|
|
|
3153
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
3153
|
+
// ../../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
|
|
3154
3154
|
function normalizeInflectionValue(value) {
|
|
3155
3155
|
if (typeof value !== "string")
|
|
3156
3156
|
return null;
|
|
@@ -3232,7 +3232,7 @@ function toOrderByTypeName(tableName, table) {
|
|
|
3232
3232
|
return `${plural.charAt(0).toUpperCase() + plural.slice(1)}OrderBy`;
|
|
3233
3233
|
}
|
|
3234
3234
|
|
|
3235
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
3235
|
+
// ../../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
|
|
3236
3236
|
function cleanTableToMetaObject(tables) {
|
|
3237
3237
|
return {
|
|
3238
3238
|
tables: tables.map((table) => ({
|
|
@@ -4486,7 +4486,7 @@ function preparePatchInput(input, dirtyFields, options) {
|
|
|
4486
4486
|
return prepareMutationInput(input, { ...options, operation: "patch", dirtyFields });
|
|
4487
4487
|
}
|
|
4488
4488
|
|
|
4489
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
4489
|
+
// ../../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
|
|
4490
4490
|
function isGraphQLVariableValue(value) {
|
|
4491
4491
|
return value === null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
4492
4492
|
}
|
|
@@ -4507,7 +4507,7 @@ function isGraphQLVariables(obj) {
|
|
|
4507
4507
|
return true;
|
|
4508
4508
|
}
|
|
4509
4509
|
|
|
4510
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
4510
|
+
// ../../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
|
|
4511
4511
|
var SCHEMA_INTROSPECTION_QUERY = `
|
|
4512
4512
|
query IntrospectSchema {
|
|
4513
4513
|
__schema {
|
|
@@ -4613,7 +4613,7 @@ fragment TypeRef on __Type {
|
|
|
4613
4613
|
}
|
|
4614
4614
|
`;
|
|
4615
4615
|
|
|
4616
|
-
// ../../node_modules/.pnpm/@constructive-io+graphql-query@3.34.6_@dataplan+json@1.0.0_grafast@1.0.2_graphql@16.13.
|
|
4616
|
+
// ../../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
|
|
4617
4617
|
function buildTypeRegistry(types) {
|
|
4618
4618
|
const registry = /* @__PURE__ */ new Map();
|
|
4619
4619
|
for (const type of types) {
|