@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.
Files changed (85) hide show
  1. package/dist/admin/index.js +7 -7
  2. package/dist/admin/index.mjs +7 -7
  3. package/dist/server/index.js +23 -26
  4. package/dist/server/index.js.map +1 -1
  5. package/dist/server/index.mjs +24 -27
  6. package/dist/server/index.mjs.map +1 -1
  7. package/dist/server/src/bootstrap.d.ts +2 -2
  8. package/dist/server/src/bootstrap.d.ts.map +1 -1
  9. package/dist/server/src/index.d.ts +42 -42
  10. package/dist/server/src/services/builders/dynamic-zones.d.ts +2 -6
  11. package/dist/server/src/services/builders/dynamic-zones.d.ts.map +1 -1
  12. package/dist/server/src/services/builders/filters/content-type.d.ts +2 -2
  13. package/dist/server/src/services/builders/filters/content-type.d.ts.map +1 -1
  14. package/dist/server/src/services/builders/filters/index.d.ts +1 -1
  15. package/dist/server/src/services/builders/filters/operators/eq.d.ts +2 -2
  16. package/dist/server/src/services/builders/filters/operators/eq.d.ts.map +1 -1
  17. package/dist/server/src/services/builders/filters/operators/index.d.ts +2 -2
  18. package/dist/server/src/services/builders/filters/operators/index.d.ts.map +1 -1
  19. package/dist/server/src/services/builders/filters/operators/not.d.ts +2 -2
  20. package/dist/server/src/services/builders/filters/operators/not.d.ts.map +1 -1
  21. package/dist/server/src/services/builders/index.d.ts +7 -7
  22. package/dist/server/src/services/builders/index.d.ts.map +1 -1
  23. package/dist/server/src/services/builders/input.d.ts +2 -2
  24. package/dist/server/src/services/builders/input.d.ts.map +1 -1
  25. package/dist/server/src/services/builders/mutations/collection-type.d.ts +2 -2
  26. package/dist/server/src/services/builders/mutations/collection-type.d.ts.map +1 -1
  27. package/dist/server/src/services/builders/mutations/index.d.ts +2 -2
  28. package/dist/server/src/services/builders/mutations/single-type.d.ts +2 -2
  29. package/dist/server/src/services/builders/mutations/single-type.d.ts.map +1 -1
  30. package/dist/server/src/services/builders/queries/collection-type.d.ts +2 -2
  31. package/dist/server/src/services/builders/queries/collection-type.d.ts.map +1 -1
  32. package/dist/server/src/services/builders/queries/index.d.ts +2 -2
  33. package/dist/server/src/services/builders/queries/single-type.d.ts +2 -2
  34. package/dist/server/src/services/builders/queries/single-type.d.ts.map +1 -1
  35. package/dist/server/src/services/builders/resolvers/association.d.ts +2 -2
  36. package/dist/server/src/services/builders/resolvers/association.d.ts.map +1 -1
  37. package/dist/server/src/services/builders/resolvers/component.d.ts +2 -2
  38. package/dist/server/src/services/builders/resolvers/component.d.ts.map +1 -1
  39. package/dist/server/src/services/builders/resolvers/dynamic-zone.d.ts +2 -2
  40. package/dist/server/src/services/builders/resolvers/dynamic-zone.d.ts.map +1 -1
  41. package/dist/server/src/services/builders/resolvers/index.d.ts +1 -1
  42. package/dist/server/src/services/builders/resolvers/pagination.d.ts.map +1 -1
  43. package/dist/server/src/services/builders/resolvers/query.d.ts.map +1 -1
  44. package/dist/server/src/services/builders/type.d.ts +2 -2
  45. package/dist/server/src/services/builders/type.d.ts.map +1 -1
  46. package/dist/server/src/services/builders/utils.d.ts +7 -7
  47. package/dist/server/src/services/builders/utils.d.ts.map +1 -1
  48. package/dist/server/src/services/content-api/index.d.ts +2 -2
  49. package/dist/server/src/services/content-api/index.d.ts.map +1 -1
  50. package/dist/server/src/services/content-api/policy.d.ts +2 -2
  51. package/dist/server/src/services/content-api/policy.d.ts.map +1 -1
  52. package/dist/server/src/services/content-api/register-functions/collection-type.d.ts +3 -3
  53. package/dist/server/src/services/content-api/register-functions/collection-type.d.ts.map +1 -1
  54. package/dist/server/src/services/content-api/register-functions/component.d.ts +3 -3
  55. package/dist/server/src/services/content-api/register-functions/component.d.ts.map +1 -1
  56. package/dist/server/src/services/content-api/register-functions/dynamic-zones.d.ts +3 -3
  57. package/dist/server/src/services/content-api/register-functions/dynamic-zones.d.ts.map +1 -1
  58. package/dist/server/src/services/content-api/register-functions/enums.d.ts +3 -3
  59. package/dist/server/src/services/content-api/register-functions/enums.d.ts.map +1 -1
  60. package/dist/server/src/services/content-api/register-functions/filters.d.ts +3 -3
  61. package/dist/server/src/services/content-api/register-functions/filters.d.ts.map +1 -1
  62. package/dist/server/src/services/content-api/register-functions/inputs.d.ts +4 -4
  63. package/dist/server/src/services/content-api/register-functions/inputs.d.ts.map +1 -1
  64. package/dist/server/src/services/content-api/register-functions/polymorphic.d.ts +2 -2
  65. package/dist/server/src/services/content-api/register-functions/polymorphic.d.ts.map +1 -1
  66. package/dist/server/src/services/content-api/register-functions/single-type.d.ts +3 -3
  67. package/dist/server/src/services/content-api/register-functions/single-type.d.ts.map +1 -1
  68. package/dist/server/src/services/content-api/wrap-resolvers.d.ts +2 -2
  69. package/dist/server/src/services/content-api/wrap-resolvers.d.ts.map +1 -1
  70. package/dist/server/src/services/extension/extension.d.ts +3 -3
  71. package/dist/server/src/services/extension/extension.d.ts.map +1 -1
  72. package/dist/server/src/services/index.d.ts +42 -42
  73. package/dist/server/src/services/types.d.ts +2 -2
  74. package/dist/server/src/services/types.d.ts.map +1 -1
  75. package/dist/server/src/services/utils/attributes.d.ts +4 -4
  76. package/dist/server/src/services/utils/attributes.d.ts.map +1 -1
  77. package/dist/server/src/services/utils/index.d.ts +34 -34
  78. package/dist/server/src/services/utils/mappers/entity-to-response-entity.d.ts +7 -7
  79. package/dist/server/src/services/utils/mappers/entity-to-response-entity.d.ts.map +1 -1
  80. package/dist/server/src/services/utils/mappers/graphql-filters-to-strapi-query.d.ts +2 -2
  81. package/dist/server/src/services/utils/mappers/graphql-filters-to-strapi-query.d.ts.map +1 -1
  82. package/dist/server/src/services/utils/mappers/index.d.ts +7 -7
  83. package/dist/server/src/services/utils/naming.d.ts +25 -25
  84. package/dist/server/src/services/utils/naming.d.ts.map +1 -1
  85. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
- import type { Strapi } from '@strapi/types';
1
+ import type { Core } from '@strapi/types';
2
2
  export declare function bootstrap({ strapi }: {
3
- strapi: Strapi;
3
+ strapi: Core.Strapi;
4
4
  }): Promise<void>;
5
5
  //# sourceMappingURL=bootstrap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAWpD,wBAAsB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,iBAyI7D"}
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/types/core/schemas").Any, { multiple, isNested }?: {
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/types/core/schemas").Attributes): {
53
- [k: string]: import("@strapi/types/dist/types/core/attributes").Any;
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/types/core/schemas").Attributes): import("lodash").Dictionary<any>;
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/types/core/schemas").ContentType;
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/types/core/schemas").Any, attributeName: string) => string;
236
- getTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, { plurality, }?: {
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/types/core/schemas").Any) => string;
240
- getEntityMetaName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
241
- getEntityResponseName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
242
- getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
243
- getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
244
- getComponentName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
245
- getComponentNameFromAttribute: (attribute: import("@strapi/types/dist/types/core/attributes").Component<`${string}.${string}`, import("@strapi/types/dist/types/utils/expression").BooleanValue>) => string;
246
- getDynamicZoneName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
247
- getDynamicZoneInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
248
- getComponentInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
249
- getContentTypeInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
250
- getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
251
- getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
252
- getFiltersInputTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
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/types/core/schemas").Any, attributeName: string) => string;
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/types/core/schemas").Any) => string;
261
- getFindQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
262
- getFindOneQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
263
- getCreateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
264
- getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
265
- getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
266
- getFindConnectionQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
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/types/core/attributes").Any) => any;
270
- isGraphQLScalar: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => any;
271
- isMorphRelation: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => boolean;
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/types/core/entity").ID;
283
+ id: import("@strapi/types/dist/data").ID;
284
284
  }) => {
285
- id: import("@strapi/types/dist/types/core/entity").ID;
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/types/core/entity").ID;
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/types/core/entity").ID;
297
+ id: import("@strapi/types/dist/data").ID;
298
298
  }, {
299
- id: import("@strapi/types/dist/types/core/entity").ID;
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/types/core/entity").ID;
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/types/core/schemas").Any): any;
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 { Attribute } from '@strapi/types';
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,EAAO,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAIZ,OAAO;IAyE/B;;;;;;OAMG;2CACoC,UAAU,WAAW,QAAQ,MAAM,aAAa,MAAM;;AAhFjG,wBAyFE"}
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 { Schema } from '@strapi/types';
2
+ import type { Struct } from '@strapi/types';
3
3
  import type { Context } from '../../types';
4
4
  declare const _default: ({ strapi }: Context) => {
5
- buildContentTypeFilters: (contentType: Schema.ContentType) => Nexus.core.NexusInputObjectTypeDef<any>;
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,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;2CA6Da,OAAO,WAAW;;AA7DlE,wBAsHE"}
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/types/core/schemas").ContentType) => import("nexus/dist/core").NexusInputObjectTypeDef<any>;
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 { Strapi } from '@strapi/types';
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,MAAM,EAAE,MAAM,eAAe,CAAC;;YAMN,MAAM;;;;WAKnC,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,MAAM;;AALjE,wBAgBG"}
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 { Strapi } from '@strapi/types';
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,MAAM,EAAE,MAAM,eAAe,CAAC;;YAoDN,MAAM;;;;;;AAA5C,wBACuD"}
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 { Strapi } from '@strapi/types';
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,MAAM,EAAE,MAAM,eAAe,CAAC;;YAIN,MAAM;;;;WAKnC,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,MAAM;;AALjE,wBAcG"}
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 { Strapi } from '@strapi/types';
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/types/core/schemas").Any, { multiple, isNested }?: {
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/types/core/schemas").Attributes): {
52
- [k: string]: import("@strapi/types/dist/types/core/attributes").Any;
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/types/core/schemas").Attributes): import("lodash").Dictionary<any>;
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/types/core/schemas").ContentType;
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,MAAM,EAAE,MAAM,eAAe,CAAC;AAsB5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;YAkBf,MAAM;;IAIxC;;OAEG;gBACO,MAAM,YAAY,YAAY;IAexC;;;OAGG;iBACU,MAAM;IAInB;;;OAGG;cACO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlCpB,wBA4CE"}
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 { Schema } from '@strapi/types';
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.Any): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
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,GAAG;;AAlB1C,wBA+GE"}
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 { Schema } from '@strapi/types';
2
+ import type { Struct } from '@strapi/types';
3
3
  import type { Context } from '../../types';
4
4
  declare const _default: ({ strapi }: Context) => {
5
- buildCollectionTypeMutations(contentType: Schema.CollectionType): Nexus.core.NexusExtendTypeDef<any>;
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":"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;qCAEf,OAAO;8CAkIW,OAAO,cAAc;;AAlInE,wBAoLE"}
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/types/core/schemas").SingleType): import("nexus/dist/core").NexusExtendTypeDef<any>;
4
- buildCollectionTypeMutations(contentType: import("@strapi/types/dist/types/core/schemas").CollectionType): import("nexus/dist/core").NexusExtendTypeDef<any>;
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 { Schema } from '@strapi/types';
2
+ import type { Struct } from '@strapi/types';
3
3
  import type { Context } from '../../types';
4
4
  declare const _default: ({ strapi }: Context) => {
5
- buildSingleTypeMutations(contentType: Schema.SingleType): Nexus.core.NexusExtendTypeDef<any>;
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,UAAU;;AAjG3D,wBAyIE"}
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 { Schema } from '@strapi/types';
2
+ import type { Struct } from '@strapi/types';
3
3
  import type { Context } from '../../types';
4
4
  declare const _default: ({ strapi }: Context) => {
5
- buildCollectionTypeQueries: (contentType: Schema.CollectionType) => Nexus.core.NexusExtendTypeDef<any>;
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,cAAc;;AAfxE,wBAqKE"}
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/types/core/schemas").SingleType) => import("nexus/dist/core").NexusExtendTypeDef<any>;
4
- buildCollectionTypeQueries: (contentType: import("@strapi/types/dist/types/core/schemas").CollectionType) => import("nexus/dist/core").NexusExtendTypeDef<any>;
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 { Schema } from '@strapi/types';
2
+ import type { Struct } from '@strapi/types';
3
3
  import type { Context } from '../../types';
4
4
  declare const _default: ({ strapi }: Context) => {
5
- buildSingleTypeQueries: (contentType: Schema.SingleType) => Nexus.core.NexusExtendTypeDef<any>;
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,UAAU;;AARhE,wBAqEE"}
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 { UID } from '@strapi/types';
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,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAIf,OAAO;;wBAYb,IAAI,WAAW;uBAChB,MAAM;iBAmBC,GAAG,SAAQ,GAAG,YAAgB,GAAG;;AAhC7D,wBAsFE"}
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 { UID } from '@strapi/types';
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":"AACA,OAAO,KAAK,EAAa,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;;wBAKf,IAAI,WAAW;uBAChB,MAAM;iBAIC,GAAG,QAAQ,GAAG,OAAO,GAAG;;AAVlD,wBA+BG"}
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 { UID } from '@strapi/types';
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,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;;wBAKf,IAAI,WAAW;uBAChB,MAAM;iBAEC,GAAG;;AAR7B,wBAYG"}
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/types/core/schemas").ContentType;
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":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;8BACD,GAAG,KAAK,GAAG,OAAO,GAAG;;;;;;;AADvD,wBAuBG"}
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":"AAEA,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
+ {"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 { Schema } from '@strapi/types';
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.Any): import("nexus/dist/core").NexusObjectTypeDef<any>;
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,GAAG;;AAlS/C,wBA2aE"}
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 { Strapi, Schema } from '@strapi/types';
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.Any, { multiple, isNested }?: ContentTypeArgsOptions): {
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: Schema.Attributes): {
33
- [k: string]: import("@strapi/types/dist/types/core/attributes").Any;
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: Schema.Attributes): import("lodash").Dictionary<any>;
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: Schema.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,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAIpD,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;YAEoC,MAAM;;oCAKzB,OAAO,GAAG,2BACgB,sBAAsB;;;;;;;;;;;;;;;;;;;IAsD/D;;OAEG;0CACmC,OAAO,UAAU;;;IAUvD;;;;OAIG;6CACsC,OAAO,UAAU;IAU1D;;OAEG;wBAEK,GAAG;qBAIS,OAAO,WAAW;;;;AAhG1C,wBAoIE"}
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"}