@strapi/plugin-graphql 5.0.0-beta.0 → 5.0.0-beta.2
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/admin/index.js +7 -7
- package/dist/admin/index.mjs +7 -7
- package/dist/server/index.js +23 -26
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +24 -27
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts +2 -2
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +42 -42
- package/dist/server/src/services/builders/dynamic-zones.d.ts +2 -6
- package/dist/server/src/services/builders/dynamic-zones.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/content-type.d.ts +2 -2
- package/dist/server/src/services/builders/filters/content-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/index.d.ts +1 -1
- package/dist/server/src/services/builders/filters/operators/eq.d.ts +2 -2
- package/dist/server/src/services/builders/filters/operators/eq.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/operators/index.d.ts +2 -2
- package/dist/server/src/services/builders/filters/operators/index.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/operators/not.d.ts +2 -2
- package/dist/server/src/services/builders/filters/operators/not.d.ts.map +1 -1
- package/dist/server/src/services/builders/index.d.ts +7 -7
- package/dist/server/src/services/builders/index.d.ts.map +1 -1
- package/dist/server/src/services/builders/input.d.ts +2 -2
- package/dist/server/src/services/builders/input.d.ts.map +1 -1
- package/dist/server/src/services/builders/mutations/collection-type.d.ts +2 -2
- package/dist/server/src/services/builders/mutations/collection-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/mutations/index.d.ts +2 -2
- package/dist/server/src/services/builders/mutations/single-type.d.ts +2 -2
- package/dist/server/src/services/builders/mutations/single-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/queries/collection-type.d.ts +2 -2
- package/dist/server/src/services/builders/queries/collection-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/queries/index.d.ts +2 -2
- package/dist/server/src/services/builders/queries/single-type.d.ts +2 -2
- package/dist/server/src/services/builders/queries/single-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/association.d.ts +2 -2
- package/dist/server/src/services/builders/resolvers/association.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/component.d.ts +2 -2
- package/dist/server/src/services/builders/resolvers/component.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/dynamic-zone.d.ts +2 -2
- package/dist/server/src/services/builders/resolvers/dynamic-zone.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/index.d.ts +1 -1
- package/dist/server/src/services/builders/resolvers/pagination.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/query.d.ts.map +1 -1
- package/dist/server/src/services/builders/type.d.ts +2 -2
- package/dist/server/src/services/builders/type.d.ts.map +1 -1
- package/dist/server/src/services/builders/utils.d.ts +7 -7
- package/dist/server/src/services/builders/utils.d.ts.map +1 -1
- package/dist/server/src/services/content-api/index.d.ts +2 -2
- package/dist/server/src/services/content-api/index.d.ts.map +1 -1
- package/dist/server/src/services/content-api/policy.d.ts +2 -2
- package/dist/server/src/services/content-api/policy.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/collection-type.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/collection-type.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/component.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/component.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/dynamic-zones.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/dynamic-zones.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/enums.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/enums.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/filters.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/filters.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/inputs.d.ts +4 -4
- package/dist/server/src/services/content-api/register-functions/inputs.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/polymorphic.d.ts +2 -2
- package/dist/server/src/services/content-api/register-functions/polymorphic.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/single-type.d.ts +3 -3
- package/dist/server/src/services/content-api/register-functions/single-type.d.ts.map +1 -1
- package/dist/server/src/services/content-api/wrap-resolvers.d.ts +2 -2
- package/dist/server/src/services/content-api/wrap-resolvers.d.ts.map +1 -1
- package/dist/server/src/services/extension/extension.d.ts +3 -3
- package/dist/server/src/services/extension/extension.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +42 -42
- package/dist/server/src/services/types.d.ts +2 -2
- package/dist/server/src/services/types.d.ts.map +1 -1
- package/dist/server/src/services/utils/attributes.d.ts +4 -4
- package/dist/server/src/services/utils/attributes.d.ts.map +1 -1
- package/dist/server/src/services/utils/index.d.ts +34 -34
- package/dist/server/src/services/utils/mappers/entity-to-response-entity.d.ts +7 -7
- package/dist/server/src/services/utils/mappers/entity-to-response-entity.d.ts.map +1 -1
- package/dist/server/src/services/utils/mappers/graphql-filters-to-strapi-query.d.ts +2 -2
- package/dist/server/src/services/utils/mappers/graphql-filters-to-strapi-query.d.ts.map +1 -1
- package/dist/server/src/services/utils/mappers/index.d.ts +7 -7
- package/dist/server/src/services/utils/naming.d.ts +25 -25
- package/dist/server/src/services/utils/naming.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAW1C,wBAAsB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,iBAkIlE"}
|
|
@@ -14,7 +14,7 @@ declare const _default: {
|
|
|
14
14
|
bootstrap: typeof bootstrap;
|
|
15
15
|
services: {
|
|
16
16
|
builders: ({ strapi }: {
|
|
17
|
-
strapi: import("@strapi/types").Strapi;
|
|
17
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
18
18
|
}) => {
|
|
19
19
|
"new"(name: string, registry: import("./services/type-registry").TypeRegistry): unknown;
|
|
20
20
|
delete(name: string): void;
|
|
@@ -27,7 +27,7 @@ declare const _default: {
|
|
|
27
27
|
}>;
|
|
28
28
|
};
|
|
29
29
|
utils: {
|
|
30
|
-
getContentTypeArgs(contentType: import("@strapi/types/dist/
|
|
30
|
+
getContentTypeArgs(contentType: import("@strapi/types/dist/struct").Schema, { multiple, isNested }?: {
|
|
31
31
|
multiple?: boolean | undefined;
|
|
32
32
|
isNested?: boolean | undefined;
|
|
33
33
|
}): {
|
|
@@ -49,18 +49,18 @@ declare const _default: {
|
|
|
49
49
|
pagination?: undefined;
|
|
50
50
|
sort?: undefined;
|
|
51
51
|
} | undefined;
|
|
52
|
-
getUniqueScalarAttributes(attributes: import("@strapi/types/dist/
|
|
53
|
-
[k: string]: import("@strapi/types/dist/
|
|
52
|
+
getUniqueScalarAttributes(attributes: import("@strapi/types/dist/struct").SchemaAttributes): {
|
|
53
|
+
[k: string]: import("@strapi/types/dist/schema/attribute").AnyAttribute;
|
|
54
54
|
};
|
|
55
|
-
scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/
|
|
55
|
+
scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/struct").SchemaAttributes): import("lodash").Dictionary<any>;
|
|
56
56
|
transformArgs(args: any, { contentType, usePagination, }: {
|
|
57
|
-
contentType: import("@strapi/types/dist/
|
|
57
|
+
contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
58
58
|
usePagination?: boolean | undefined;
|
|
59
59
|
}): import("lodash").Omit<any, "filters" | "pagination">;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
'content-api': ({ strapi }: {
|
|
63
|
-
strapi: import("@strapi/types").Strapi;
|
|
63
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
64
64
|
}) => {
|
|
65
65
|
buildSchema: () => import("graphql").GraphQLSchema;
|
|
66
66
|
};
|
|
@@ -127,7 +127,7 @@ declare const _default: {
|
|
|
127
127
|
ERROR_TYPE_NAME: string;
|
|
128
128
|
};
|
|
129
129
|
extension: ({ strapi }: {
|
|
130
|
-
strapi: import("@strapi/types").Strapi;
|
|
130
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
131
131
|
}) => {
|
|
132
132
|
shadowCRUD: (uid: string) => {
|
|
133
133
|
isEnabled(): boolean;
|
|
@@ -232,43 +232,43 @@ declare const _default: {
|
|
|
232
232
|
isEnabled(): boolean;
|
|
233
233
|
};
|
|
234
234
|
naming: {
|
|
235
|
-
getEnumName: (contentType: import("@strapi/types/dist/
|
|
236
|
-
getTypeName: (contentType: import("@strapi/types/dist/
|
|
235
|
+
getEnumName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
236
|
+
getTypeName: (contentType: import("@strapi/types/dist/struct").Schema, { plurality, }?: {
|
|
237
237
|
plurality?: "singular" | "plural" | undefined;
|
|
238
238
|
}) => string;
|
|
239
|
-
getEntityName: (contentType: import("@strapi/types/dist/
|
|
240
|
-
getEntityMetaName: (contentType: import("@strapi/types/dist/
|
|
241
|
-
getEntityResponseName: (contentType: import("@strapi/types/dist/
|
|
242
|
-
getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/
|
|
243
|
-
getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/
|
|
244
|
-
getComponentName: (contentType: import("@strapi/types/dist/
|
|
245
|
-
getComponentNameFromAttribute: (attribute: import("@strapi/types/dist/types/
|
|
246
|
-
getDynamicZoneName: (contentType: import("@strapi/types/dist/
|
|
247
|
-
getDynamicZoneInputName: (contentType: import("@strapi/types/dist/
|
|
248
|
-
getComponentInputName: (contentType: import("@strapi/types/dist/
|
|
249
|
-
getContentTypeInputName: (contentType: import("@strapi/types/dist/
|
|
250
|
-
getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/
|
|
251
|
-
getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/
|
|
252
|
-
getFiltersInputTypeName: (contentType: import("@strapi/types/dist/
|
|
239
|
+
getEntityName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
240
|
+
getEntityMetaName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
241
|
+
getEntityResponseName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
242
|
+
getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
243
|
+
getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
244
|
+
getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
245
|
+
getComponentNameFromAttribute: (attribute: import("@strapi/types/dist/schema/attribute").OfType<"component"> & import("@strapi/types/dist/schema/attribute").ComponentProperties<`${string}.${string}`, false> & import("@strapi/types/dist/schema/attribute").ConfigurableOption & import("@strapi/types/dist/schema/attribute").MinMaxOption<number> & import("@strapi/types/dist/schema/attribute").PrivateOption & import("@strapi/types/dist/schema/attribute").RequiredOption & import("@strapi/types/dist/schema/attribute").WritableOption & import("@strapi/types/dist/schema/attribute").VisibleOption) => string;
|
|
246
|
+
getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
247
|
+
getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
248
|
+
getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
249
|
+
getContentTypeInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
250
|
+
getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
251
|
+
getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
252
|
+
getFiltersInputTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
253
253
|
getScalarFilterInputTypeName: (scalarType: string) => string;
|
|
254
|
-
getMorphRelationTypeName: (contentType: import("@strapi/types/dist/
|
|
254
|
+
getMorphRelationTypeName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
255
255
|
buildCustomTypeNameGenerator: (options: {
|
|
256
256
|
prefix?: string | undefined;
|
|
257
257
|
suffix?: string | undefined;
|
|
258
258
|
firstLetterCase?: "upper" | "lower" | undefined;
|
|
259
259
|
plurality?: "singular" | "plural" | undefined;
|
|
260
|
-
}) => (contentType: import("@strapi/types/dist/
|
|
261
|
-
getFindQueryName: (contentType: import("@strapi/types/dist/
|
|
262
|
-
getFindOneQueryName: (contentType: import("@strapi/types/dist/
|
|
263
|
-
getCreateMutationTypeName: (contentType: import("@strapi/types/dist/
|
|
264
|
-
getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/
|
|
265
|
-
getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/
|
|
266
|
-
getFindConnectionQueryName: (contentType: import("@strapi/types/dist/
|
|
260
|
+
}) => (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
261
|
+
getFindQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
262
|
+
getFindOneQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
263
|
+
getCreateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
264
|
+
getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
265
|
+
getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
266
|
+
getFindConnectionQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
267
267
|
};
|
|
268
268
|
attributes: {
|
|
269
|
-
isStrapiScalar: (attribute: import("@strapi/types/dist/
|
|
270
|
-
isGraphQLScalar: (attribute: import("@strapi/types/dist/
|
|
271
|
-
isMorphRelation: (attribute: import("@strapi/types/dist/
|
|
269
|
+
isStrapiScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
|
|
270
|
+
isGraphQLScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
|
|
271
|
+
isMorphRelation: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => boolean;
|
|
272
272
|
isMedia: (value: any) => boolean;
|
|
273
273
|
isRelation: (value: any) => boolean;
|
|
274
274
|
isEnumeration: (value: any) => boolean;
|
|
@@ -280,32 +280,32 @@ declare const _default: {
|
|
|
280
280
|
[key: string]: unknown;
|
|
281
281
|
[key: number]: unknown;
|
|
282
282
|
[key: symbol]: unknown;
|
|
283
|
-
id: import("@strapi/types/dist/
|
|
283
|
+
id: import("@strapi/types/dist/data").ID;
|
|
284
284
|
}) => {
|
|
285
|
-
id: import("@strapi/types/dist/
|
|
285
|
+
id: import("@strapi/types/dist/data").ID;
|
|
286
286
|
attributes: {
|
|
287
287
|
[key: string]: unknown;
|
|
288
288
|
[key: number]: unknown;
|
|
289
289
|
[key: symbol]: unknown;
|
|
290
|
-
id: import("@strapi/types/dist/
|
|
290
|
+
id: import("@strapi/types/dist/data").ID;
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
293
|
entitiesToResponseEntities: import("lodash/fp").LodashMap1x1<{
|
|
294
294
|
[key: string]: unknown;
|
|
295
295
|
[key: number]: unknown;
|
|
296
296
|
[key: symbol]: unknown;
|
|
297
|
-
id: import("@strapi/types/dist/
|
|
297
|
+
id: import("@strapi/types/dist/data").ID;
|
|
298
298
|
}, {
|
|
299
|
-
id: import("@strapi/types/dist/
|
|
299
|
+
id: import("@strapi/types/dist/data").ID;
|
|
300
300
|
attributes: {
|
|
301
301
|
[key: string]: unknown;
|
|
302
302
|
[key: number]: unknown;
|
|
303
303
|
[key: symbol]: unknown;
|
|
304
|
-
id: import("@strapi/types/dist/
|
|
304
|
+
id: import("@strapi/types/dist/data").ID;
|
|
305
305
|
};
|
|
306
306
|
}>;
|
|
307
307
|
graphqlScalarToOperators(graphqlScalar: string): boolean;
|
|
308
|
-
graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/
|
|
308
|
+
graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/struct").Schema): any;
|
|
309
309
|
strapiScalarToGraphQLScalar(strapiScalar: string): any;
|
|
310
310
|
};
|
|
311
311
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Schema } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../types';
|
|
3
3
|
declare const _default: ({ strapi }: Context) => {
|
|
4
4
|
/**
|
|
5
5
|
* Build a Nexus dynamic zone type from a Strapi dz attribute
|
|
6
|
-
* @param {object} definition - The definition of the dynamic zone
|
|
7
|
-
* @param {string} name - the name of the dynamic zone
|
|
8
|
-
* @param {string} inputName - the name of the dynamic zone's input
|
|
9
|
-
* @return {[NexusUnionTypeDef, NexusScalarTypeDef]}
|
|
10
6
|
*/
|
|
11
|
-
buildDynamicZoneDefinition(definition: Attribute.DynamicZone, name: string, inputName: string): (import("nexus/dist/core").NexusScalarTypeDef<string> | import("nexus/dist/core").NexusUnionTypeDef<string>)[];
|
|
7
|
+
buildDynamicZoneDefinition(definition: Schema.Attribute.DynamicZone, name: string, inputName: string): (import("nexus/dist/core").NexusScalarTypeDef<string> | import("nexus/dist/core").NexusUnionTypeDef<string>)[];
|
|
12
8
|
};
|
|
13
9
|
export default _default;
|
|
14
10
|
//# sourceMappingURL=dynamic-zones.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-zones.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/dynamic-zones.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dynamic-zones.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/dynamic-zones.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAIZ,OAAO;IAyE/B;;OAEG;2CAEW,OAAO,SAAS,CAAC,WAAW,QAClC,MAAM,aACD,MAAM;;AA/EvB,wBAyFE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Struct } from '@strapi/types';
|
|
3
3
|
import type { Context } from '../../types';
|
|
4
4
|
declare const _default: ({ strapi }: Context) => {
|
|
5
|
-
buildContentTypeFilters: (contentType:
|
|
5
|
+
buildContentTypeFilters: (contentType: Struct.ContentTypeSchema) => Nexus.core.NexusInputObjectTypeDef<any>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=content-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/filters/content-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"content-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/filters/content-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;2CA6Da,OAAO,iBAAiB;;AA7DxE,wBAsHE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Context } from '../../types';
|
|
2
2
|
declare const _default: (context: Context) => {
|
|
3
|
-
buildContentTypeFilters: (contentType: import("@strapi/types/dist/
|
|
3
|
+
buildContentTypeFilters: (contentType: import("@strapi/types/dist/struct").ContentTypeSchema) => import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Core } from '@strapi/types';
|
|
3
3
|
declare const _default: ({ strapi }: {
|
|
4
|
-
strapi: Strapi;
|
|
4
|
+
strapi: Core.Strapi;
|
|
5
5
|
}) => {
|
|
6
6
|
fieldName: string;
|
|
7
7
|
strapiOperator: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eq.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/eq.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"eq.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/eq.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;;YAMJ,KAAK,MAAM;;;;WAKxC,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,MAAM;;AALjE,wBAgBG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { Core } from '@strapi/types';
|
|
3
3
|
declare const _default: ({ strapi }: {
|
|
4
|
-
strapi: Strapi;
|
|
4
|
+
strapi: Core.Strapi;
|
|
5
5
|
}) => import("lodash").Dictionary<{
|
|
6
6
|
fieldName: string;
|
|
7
7
|
strapiOperator: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;;YAoDJ,KAAK,MAAM;;;;;;AAAjD,wBACuD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Core } from '@strapi/types';
|
|
3
3
|
declare const _default: ({ strapi }: {
|
|
4
|
-
strapi: Strapi;
|
|
4
|
+
strapi: Core.Strapi;
|
|
5
5
|
}) => {
|
|
6
6
|
fieldName: string;
|
|
7
7
|
strapiOperator: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/not.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"not.d.ts","sourceRoot":"","sources":["../../../../../../../server/src/services/builders/filters/operators/not.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;;YAIJ,KAAK,MAAM;;;;WAKxC,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,MAAM;;AALjE,wBAcG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { Core } from '@strapi/types';
|
|
3
3
|
import type { TypeRegistry } from '../type-registry';
|
|
4
4
|
declare const _default: ({ strapi }: {
|
|
5
|
-
strapi: Strapi;
|
|
5
|
+
strapi: Core.Strapi;
|
|
6
6
|
}) => {
|
|
7
7
|
/**
|
|
8
8
|
* Instantiate every builder with a strapi instance & a type registry
|
|
@@ -26,7 +26,7 @@ declare const _default: ({ strapi }: {
|
|
|
26
26
|
}>;
|
|
27
27
|
};
|
|
28
28
|
utils: {
|
|
29
|
-
getContentTypeArgs(contentType: import("@strapi/types/dist/
|
|
29
|
+
getContentTypeArgs(contentType: import("@strapi/types/dist/struct").Schema, { multiple, isNested }?: {
|
|
30
30
|
multiple?: boolean | undefined;
|
|
31
31
|
isNested?: boolean | undefined;
|
|
32
32
|
}): {
|
|
@@ -48,12 +48,12 @@ declare const _default: ({ strapi }: {
|
|
|
48
48
|
pagination?: undefined;
|
|
49
49
|
sort?: undefined;
|
|
50
50
|
} | undefined;
|
|
51
|
-
getUniqueScalarAttributes(attributes: import("@strapi/types/dist/
|
|
52
|
-
[k: string]: import("@strapi/types/dist/
|
|
51
|
+
getUniqueScalarAttributes(attributes: import("@strapi/types/dist/struct").SchemaAttributes): {
|
|
52
|
+
[k: string]: import("@strapi/types/dist/schema/attribute").AnyAttribute;
|
|
53
53
|
};
|
|
54
|
-
scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/
|
|
54
|
+
scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/struct").SchemaAttributes): import("lodash").Dictionary<any>;
|
|
55
55
|
transformArgs(args: any, { contentType, usePagination, }: {
|
|
56
|
-
contentType: import("@strapi/types/dist/
|
|
56
|
+
contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
57
57
|
usePagination?: boolean | undefined;
|
|
58
58
|
}): import("lodash").Omit<any, "filters" | "pagination">;
|
|
59
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/index.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAsB1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;YAkBf,KAAK,MAAM;;IAI7C;;OAEG;gBACO,MAAM,YAAY,YAAY;IAexC;;;OAGG;iBACU,MAAM;IAInB;;;OAGG;cACO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlCpB,wBA4CE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../types';
|
|
3
3
|
declare const _default: ({ strapi }: Context) => {
|
|
4
|
-
buildInputType(contentType: Schema
|
|
4
|
+
buildInputType(contentType: Struct.Schema): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAIZ,OAAO;gCAkBH,OAAO,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/input.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAIZ,OAAO;gCAkBH,OAAO,MAAM;;AAlB7C,wBA+GE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Struct } from '@strapi/types';
|
|
3
3
|
import type { Context } from '../../types';
|
|
4
4
|
declare const _default: ({ strapi }: Context) => {
|
|
5
|
-
buildCollectionTypeMutations(contentType:
|
|
5
|
+
buildCollectionTypeMutations(contentType: Struct.CollectionTypeSchema): Nexus.core.NexusExtendTypeDef<any>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=collection-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/mutations/collection-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/mutations/collection-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;8CAkIW,OAAO,oBAAoB;;AAlIzE,wBAoLE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Context } from '../../types';
|
|
2
2
|
declare const _default: (context: Context) => {
|
|
3
|
-
buildSingleTypeMutations(contentType: import("@strapi/types/dist/
|
|
4
|
-
buildCollectionTypeMutations(contentType: import("@strapi/types/dist/
|
|
3
|
+
buildSingleTypeMutations(contentType: import("@strapi/types/dist/struct").SingleTypeSchema): import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
4
|
+
buildCollectionTypeMutations(contentType: import("@strapi/types/dist/struct").CollectionTypeSchema): import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Struct } from '@strapi/types';
|
|
3
3
|
import type { Context } from '../../types';
|
|
4
4
|
declare const _default: ({ strapi }: Context) => {
|
|
5
|
-
buildSingleTypeMutations(contentType:
|
|
5
|
+
buildSingleTypeMutations(contentType: Struct.SingleTypeSchema): Nexus.core.NexusExtendTypeDef<any>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=single-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/mutations/single-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAIf,OAAO;0CAiGO,OAAO,
|
|
1
|
+
{"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/mutations/single-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAIf,OAAO;0CAiGO,OAAO,gBAAgB;;AAjGjE,wBAyIE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Struct } from '@strapi/types';
|
|
3
3
|
import type { Context } from '../../types';
|
|
4
4
|
declare const _default: ({ strapi }: Context) => {
|
|
5
|
-
buildCollectionTypeQueries: (contentType:
|
|
5
|
+
buildCollectionTypeQueries: (contentType: Struct.CollectionTypeSchema) => Nexus.core.NexusExtendTypeDef<any>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=collection-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/queries/collection-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;8CAegB,OAAO,
|
|
1
|
+
{"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/queries/collection-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;8CAegB,OAAO,oBAAoB;;AAf9E,wBAqKE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Context } from '../../types';
|
|
2
2
|
declare const _default: (context: Context) => {
|
|
3
|
-
buildSingleTypeQueries: (contentType: import("@strapi/types/dist/
|
|
4
|
-
buildCollectionTypeQueries: (contentType: import("@strapi/types/dist/
|
|
3
|
+
buildSingleTypeQueries: (contentType: import("@strapi/types/dist/struct").SingleTypeSchema) => import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
4
|
+
buildCollectionTypeQueries: (contentType: import("@strapi/types/dist/struct").CollectionTypeSchema) => import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Nexus from 'nexus';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Struct } from '@strapi/types';
|
|
3
3
|
import type { Context } from '../../types';
|
|
4
4
|
declare const _default: ({ strapi }: Context) => {
|
|
5
|
-
buildSingleTypeQueries: (contentType:
|
|
5
|
+
buildSingleTypeQueries: (contentType: Struct.SingleTypeSchema) => Nexus.core.NexusExtendTypeDef<any>;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
//# sourceMappingURL=single-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/queries/single-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;0CAQY,OAAO,
|
|
1
|
+
{"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/queries/single-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;0CAQY,OAAO,gBAAgB;;AARtE,wBAqEE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Internal } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../../types';
|
|
3
3
|
declare const _default: ({ strapi }: Context) => {
|
|
4
4
|
buildAssociationResolver({ contentTypeUID, attributeName, }: {
|
|
5
|
-
contentTypeUID: UID.ContentType;
|
|
5
|
+
contentTypeUID: Internal.UID.ContentType;
|
|
6
6
|
attributeName: string;
|
|
7
7
|
}): (parent: any, args?: any, context?: any) => Promise<any>;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/association.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/association.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAIf,OAAO;;wBAYb,SAAS,GAAG,CAAC,WAAW;uBACzB,MAAM;iBAmBC,GAAG,SAAQ,GAAG,YAAgB,GAAG;;AAhC7D,wBA0FE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Internal } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../../types';
|
|
3
3
|
declare const _default: ({ strapi }: Context) => {
|
|
4
4
|
buildComponentResolver({ contentTypeUID, attributeName, }: {
|
|
5
|
-
contentTypeUID: UID.ContentType;
|
|
5
|
+
contentTypeUID: Internal.UID.ContentType;
|
|
6
6
|
attributeName: string;
|
|
7
7
|
}): (parent: any, args: any, ctx: any) => Promise<any>;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAU,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;;wBAKf,SAAS,GAAG,CAAC,WAAW;uBACzB,MAAM;iBAIC,GAAG,QAAQ,GAAG,OAAO,GAAG;;AAVlD,wBA+BG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Internal } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../../types';
|
|
3
3
|
declare const _default: ({ strapi }: Context) => {
|
|
4
4
|
buildDynamicZoneResolver({ contentTypeUID, attributeName, }: {
|
|
5
|
-
contentTypeUID: UID.ContentType;
|
|
5
|
+
contentTypeUID: Internal.UID.ContentType;
|
|
6
6
|
attributeName: string;
|
|
7
7
|
}): (parent: any) => Promise<any>;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-zone.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/dynamic-zone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dynamic-zone.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/dynamic-zone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;;wBAKf,SAAS,GAAG,CAAC,WAAW;uBACzB,MAAM;iBAEC,GAAG;;AAR7B,wBAYG"}
|
|
@@ -15,7 +15,7 @@ declare const _default: (context: Context) => {
|
|
|
15
15
|
attributeName: string;
|
|
16
16
|
}): (parent: any, args: any, ctx: any) => Promise<any>;
|
|
17
17
|
buildQueriesResolvers({ contentType }: {
|
|
18
|
-
contentType: import("@strapi/types/dist/
|
|
18
|
+
contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
|
|
19
19
|
}): {
|
|
20
20
|
findMany(parent: any, args: any, ctx: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument[]>;
|
|
21
21
|
findFirst(parent: any, args: any, ctx: any): Promise<import("@strapi/types/dist/modules/documents").AnyDocument | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/pagination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;8BACD,GAAG,KAAK,GAAG,OAAO,GAAG;;;;;;;AADvD,wBAuBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;;qBACqB,OAAO,WAAW;;yBAI7C,GAAG,QAAQ,GAAG,OAAO,GAAG;0BAYvB,GAAG,QAAQ,GAAG,OAAO,GAAG;wBAY1B,GAAG,QAAQ,GAAG,OAAO,GAAG;;;AA7BpD,wBA4CG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@strapi/types';
|
|
2
2
|
import type { Context } from '../types';
|
|
3
3
|
export type TypeBuildersOptions = {
|
|
4
4
|
builder: any;
|
|
@@ -13,7 +13,7 @@ declare const _default: (context: Context) => {
|
|
|
13
13
|
* @param contentType - The content type used to created the definition
|
|
14
14
|
* @return {NexusObjectTypeDef}
|
|
15
15
|
*/
|
|
16
|
-
buildTypeDefinition(contentType: Schema
|
|
16
|
+
buildTypeDefinition(contentType: Struct.Schema): import("nexus/dist/core").NexusObjectTypeDef<any>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
19
19
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/type.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,GAAG,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;kCAEuB,OAAO;IA6R5B;;;;OAIG;qCAC8B,OAAO,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/type.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,GAAG,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,EAAE,GAAG,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;kCAEuB,OAAO;IA6R5B;;;;OAIG;qCAC8B,OAAO,MAAM;;AAlSlD,wBA2aE"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { Core, Struct } from '@strapi/types';
|
|
3
3
|
type ContentTypeArgsOptions = {
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
isNested?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: ({ strapi }: {
|
|
8
|
-
strapi: Strapi;
|
|
8
|
+
strapi: Core.Strapi;
|
|
9
9
|
}) => {
|
|
10
|
-
getContentTypeArgs(contentType: Schema
|
|
10
|
+
getContentTypeArgs(contentType: Struct.Schema, { multiple, isNested }?: ContentTypeArgsOptions): {
|
|
11
11
|
filters?: undefined;
|
|
12
12
|
pagination?: undefined;
|
|
13
13
|
sort?: undefined;
|
|
@@ -29,20 +29,20 @@ declare const _default: ({ strapi }: {
|
|
|
29
29
|
/**
|
|
30
30
|
* Filter an object entries and keep only those whose value is a unique scalar attribute
|
|
31
31
|
*/
|
|
32
|
-
getUniqueScalarAttributes(attributes:
|
|
33
|
-
[k: string]: import("@strapi/types/dist/
|
|
32
|
+
getUniqueScalarAttributes(attributes: Struct.SchemaAttributes): {
|
|
33
|
+
[k: string]: import("@strapi/types/dist/schema/attribute").AnyAttribute;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* Map each value from an attribute to a FiltersInput type name
|
|
37
37
|
* @param {object} attributes - The attributes object to transform
|
|
38
38
|
* @return {Object<string, string>}
|
|
39
39
|
*/
|
|
40
|
-
scalarAttributesToFiltersMap(attributes:
|
|
40
|
+
scalarAttributesToFiltersMap(attributes: Struct.SchemaAttributes): import("lodash").Dictionary<any>;
|
|
41
41
|
/**
|
|
42
42
|
* Apply basic transform to GQL args
|
|
43
43
|
*/
|
|
44
44
|
transformArgs(args: any, { contentType, usePagination, }: {
|
|
45
|
-
contentType:
|
|
45
|
+
contentType: Struct.ContentTypeSchema;
|
|
46
46
|
usePagination?: boolean | undefined;
|
|
47
47
|
}): import("lodash").Omit<any, "filters" | "pagination">;
|
|
48
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/utils.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/builders/utils.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;YAEoC,KAAK,MAAM;;oCAK9B,OAAO,MAAM,2BACa,sBAAsB;;;;;;;;;;;;;;;;;;;IAsD/D;;OAEG;0CACmC,OAAO,gBAAgB;;;IAU7D;;;;OAIG;6CACsC,OAAO,gBAAgB;IAUhE;;OAEG;wBAEK,GAAG;qBAIS,OAAO,iBAAiB;;;;AAhGhD,wBAoIE"}
|