@strapi/plugin-graphql 5.0.0-beta.0 → 5.0.0-beta.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.
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 -23
  4. package/dist/server/index.js.map +1 -1
  5. package/dist/server/index.mjs +24 -24
  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,6 +1,6 @@
1
- import type { Strapi } from '@strapi/types';
1
+ import type { Core } from '@strapi/types';
2
2
  declare const _default: ({ strapi }: {
3
- strapi: Strapi;
3
+ strapi: Core.Strapi;
4
4
  }) => {
5
5
  buildSchema: () => import("graphql").GraphQLSchema;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAU,MAAM,EAAE,MAAM,eAAe,CAAC;;YAiBd,MAAM;;;;AAA5C,wBA2KE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAU,MAAM,eAAe,CAAC;;YAiBZ,KAAK,MAAM;;;;AAAjD,wBA2KE"}
@@ -1,7 +1,7 @@
1
1
  import { GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql';
2
- import type { Strapi } from '@strapi/types';
2
+ import type { Core } from '@strapi/types';
3
3
  declare const createPoliciesMiddleware: (resolverConfig: any, { strapi }: {
4
- strapi: Strapi;
4
+ strapi: Core.Strapi;
5
5
  }) => (resolve: GraphQLFieldResolver<any, any>, parent: any, args: any, context: any, info: GraphQLResolveInfo) => Promise<unknown>;
6
6
  export { createPoliciesMiddleware };
7
7
  //# sourceMappingURL=policy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,QAAA,MAAM,wBAAwB,mBAAoB,GAAG;YAAwB,MAAM;gBAKtE,qBAAqB,GAAG,EAAE,GAAG,CAAC,UAC/B,GAAG,QACL,GAAG,WACA,GAAG,QACN,kBAAkB,qBAgB3B,CAAC;AAqCF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAM1C,QAAA,MAAM,wBAAwB,mBAAoB,GAAG;YAAwB,KAAK,MAAM;gBAK3E,qBAAqB,GAAG,EAAE,GAAG,CAAC,UAC/B,GAAG,QACL,GAAG,WACA,GAAG,QACN,kBAAkB,qBAgB3B,CAAC;AAqCF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerCollectionType: (contentType: Schema.CollectionType, { registry, strapi, builders, }: {
3
+ declare const registerCollectionType: (contentType: Struct.CollectionTypeSchema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerCollectionType };
@@ -1 +1 @@
1
- {"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/collection-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,sBAAsB,gBACb,OAAO,cAAc;cAMtB,YAAY;YACd,MAAM;cACJ,GAAG;UAqEhB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"collection-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/collection-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,sBAAsB,gBACb,OAAO,oBAAoB;cAM5B,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAqEhB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerComponent: (contentType: Schema.Component, { registry, strapi, builders, }: {
3
+ declare const registerComponent: (contentType: Struct.ComponentSchema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerComponent };
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,iBAAiB,gBACR,OAAO,SAAS;cAMjB,YAAY;YACd,MAAM;cACJ,GAAG;UAYhB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,iBAAiB,gBACR,OAAO,eAAe;cAMvB,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAYhB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerDynamicZonesDefinition: (contentType: Schema.Any, { registry, strapi, builders, }: {
3
+ declare const registerDynamicZonesDefinition: (contentType: Struct.Schema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerDynamicZonesDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-zones.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/dynamic-zones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,8BAA8B,gBACrB,OAAO,GAAG;cAMX,YAAY;YACd,MAAM;cACJ,GAAG;UAiChB,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"dynamic-zones.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/dynamic-zones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,8BAA8B,gBACrB,OAAO,MAAM;cAMd,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAiChB,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerEnumsDefinition: (contentType: Schema.Any, { registry, strapi, builders, }: {
3
+ declare const registerEnumsDefinition: (contentType: Struct.Schema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerEnumsDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,uBAAuB,gBACd,OAAO,GAAG;cAMX,YAAY;YACd,MAAM;cACJ,GAAG;UA8BhB,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,uBAAuB,gBACd,OAAO,MAAM;cAMd,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UA8BhB,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerFiltersDefinition: (contentType: Schema.Any, { registry, strapi, builders, }: {
3
+ declare const registerFiltersDefinition: (contentType: Struct.Schema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerFiltersDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,yBAAyB,gBAChB,OAAO,GAAG;cAMX,YAAY;YACd,MAAM;cACJ,GAAG;UAYhB,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,yBAAyB,gBAChB,OAAO,MAAM;cAMd,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAYhB,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
2
- import type { TypeRegistry } from '../../type-registry';
3
- declare const registerInputsDefinition: (contentType: Schema.Any, { registry, strapi, builders, }: {
1
+ import type { Core, Struct } from '@strapi/types';
2
+ import { type TypeRegistry } from '../../type-registry';
3
+ declare const registerInputsDefinition: (contentType: Struct.Schema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerInputsDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,wBAAwB,gBACf,OAAO,GAAG;cAMX,YAAY;YACd,MAAM;cACJ,GAAG;UAkBhB,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,wBAAwB,gBACf,OAAO,MAAM;cAMd,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAkBhB,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Schema } from '@strapi/types';
1
+ import type { Struct } from '@strapi/types';
2
2
  import type { Context } from '../../types';
3
- declare const registerPolymorphicContentType: (contentType: Schema.Any, { registry, strapi }: Context) => void;
3
+ declare const registerPolymorphicContentType: (contentType: Struct.Schema, { registry, strapi }: Context) => void;
4
4
  export { registerPolymorphicContentType };
5
5
  //# sourceMappingURL=polymorphic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/polymorphic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,QAAA,MAAM,8BAA8B,gBAAiB,OAAO,GAAG,wBAAwB,OAAO,SA8D7F,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/polymorphic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,QAAA,MAAM,8BAA8B,gBACrB,OAAO,MAAM,wBACJ,OAAO,SA+D9B,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { Strapi, Schema } from '@strapi/types';
1
+ import type { Core, Struct } from '@strapi/types';
2
2
  import type { TypeRegistry } from '../../type-registry';
3
- declare const registerSingleType: (contentType: Schema.SingleType, { registry, strapi, builders, }: {
3
+ declare const registerSingleType: (contentType: Struct.SingleTypeSchema, { registry, strapi, builders, }: {
4
4
  registry: TypeRegistry;
5
- strapi: Strapi;
5
+ strapi: Core.Strapi;
6
6
  builders: any;
7
7
  }) => void;
8
8
  export { registerSingleType };
@@ -1 +1 @@
1
- {"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/single-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,kBAAkB,gBACT,OAAO,UAAU;cAMlB,YAAY;YACd,MAAM;cACJ,GAAG;UAqEhB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"single-type.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/content-api/register-functions/single-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,QAAA,MAAM,kBAAkB,gBACT,OAAO,gBAAgB;cAMxB,YAAY;YACd,KAAK,MAAM;cACT,GAAG;UAqEhB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
- import type { Strapi } from '@strapi/types';
2
+ import type { Core } from '@strapi/types';
3
3
  /**
4
4
  * Wrap the schema's resolvers if they've been
5
5
  * customized using the GraphQL extension service
@@ -11,7 +11,7 @@ import type { Strapi } from '@strapi/types';
11
11
  */
12
12
  declare const wrapResolvers: ({ schema, strapi, extension, }: {
13
13
  schema: GraphQLSchema;
14
- strapi: Strapi;
14
+ strapi: Core.Strapi;
15
15
  extension: any;
16
16
  }) => GraphQLSchema;
17
17
  export { wrapResolvers };
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-resolvers.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/wrap-resolvers.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EAEd,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAwDpD;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa;YAKT,aAAa;YACb,MAAM;eACH,GAAG;mBAwFf,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"wrap-resolvers.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/content-api/wrap-resolvers.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EAEd,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAwD1C;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa;YAKT,aAAa;YACb,KAAK,MAAM;eACR,GAAG;mBAwFf,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as nexus from 'nexus';
2
- import type { Strapi } from '@strapi/types';
2
+ import type { Core } from '@strapi/types';
3
3
  import type * as Nexus from 'nexus';
4
4
  export type Configuration = {
5
5
  types?: NexusGen[];
@@ -9,7 +9,7 @@ export type Configuration = {
9
9
  plugins?: Nexus.PluginConfig[];
10
10
  };
11
11
  export type ConfigurationFactory = (options: {
12
- strapi: Strapi;
12
+ strapi: Core.Strapi;
13
13
  nexus: typeof nexus;
14
14
  typeRegistry: object;
15
15
  }) => Configuration;
@@ -21,7 +21,7 @@ export type Extension = {
21
21
  plugins: Nexus.PluginConfig[];
22
22
  };
23
23
  declare const createExtension: ({ strapi }: {
24
- strapi: Strapi;
24
+ strapi: Core.Strapi;
25
25
  }) => {
26
26
  shadowCRUD: (uid: string) => {
27
27
  isEnabled(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/extension/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,KAAK,aAAa,CAAC;AAEpB,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAC/B,CAAC;AAUF,QAAA,MAAM,eAAe;YAA0B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMjD;;OAEG;uBACgB,aAAa,GAAG,oBAAoB;IAMvD;;OAEG;;sBACwC,MAAM;;CAwCpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/extension/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE;IAC3C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,KAAK,aAAa,CAAC;AAEpB,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAC/B,CAAC;AAUF,QAAA,MAAM,eAAe;YAA0B,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMtD;;OAEG;uBACgB,aAAa,GAAG,oBAAoB;IAMvD;;OAEG;;sBACwC,MAAM;;CAwCpD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /// <reference types="lodash" />
2
2
  export declare const services: {
3
3
  builders: ({ strapi }: {
4
- strapi: import("@strapi/types").Strapi;
4
+ strapi: import("@strapi/types/dist/core").Strapi;
5
5
  }) => {
6
6
  "new"(name: string, registry: import("./type-registry").TypeRegistry): unknown;
7
7
  delete(name: string): void;
@@ -14,7 +14,7 @@ export declare const services: {
14
14
  }>;
15
15
  };
16
16
  utils: {
17
- getContentTypeArgs(contentType: import("@strapi/types/dist/types/core/schemas").Any, { multiple, isNested }?: {
17
+ getContentTypeArgs(contentType: import("@strapi/types/dist/struct").Schema, { multiple, isNested }?: {
18
18
  multiple?: boolean | undefined;
19
19
  isNested?: boolean | undefined;
20
20
  }): {
@@ -36,18 +36,18 @@ export declare const services: {
36
36
  pagination?: undefined;
37
37
  sort?: undefined;
38
38
  } | undefined;
39
- getUniqueScalarAttributes(attributes: import("@strapi/types/dist/types/core/schemas").Attributes): {
40
- [k: string]: import("@strapi/types/dist/types/core/attributes").Any;
39
+ getUniqueScalarAttributes(attributes: import("@strapi/types/dist/struct").SchemaAttributes): {
40
+ [k: string]: import("@strapi/types/dist/schema/attribute").AnyAttribute;
41
41
  };
42
- scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/types/core/schemas").Attributes): import("lodash").Dictionary<any>;
42
+ scalarAttributesToFiltersMap(attributes: import("@strapi/types/dist/struct").SchemaAttributes): import("lodash").Dictionary<any>;
43
43
  transformArgs(args: any, { contentType, usePagination, }: {
44
- contentType: import("@strapi/types/dist/types/core/schemas").ContentType;
44
+ contentType: import("@strapi/types/dist/struct").ContentTypeSchema;
45
45
  usePagination?: boolean | undefined;
46
46
  }): import("lodash").Omit<any, "filters" | "pagination">;
47
47
  };
48
48
  };
49
49
  'content-api': ({ strapi }: {
50
- strapi: import("@strapi/types").Strapi;
50
+ strapi: import("@strapi/types/dist/core").Strapi;
51
51
  }) => {
52
52
  buildSchema: () => import("graphql").GraphQLSchema;
53
53
  };
@@ -114,7 +114,7 @@ export declare const services: {
114
114
  ERROR_TYPE_NAME: string;
115
115
  };
116
116
  extension: ({ strapi }: {
117
- strapi: import("@strapi/types").Strapi;
117
+ strapi: import("@strapi/types/dist/core").Strapi;
118
118
  }) => {
119
119
  shadowCRUD: (uid: string) => {
120
120
  isEnabled(): boolean;
@@ -219,43 +219,43 @@ export declare const services: {
219
219
  isEnabled(): boolean;
220
220
  };
221
221
  naming: {
222
- getEnumName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
223
- getTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, { plurality, }?: {
222
+ getEnumName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
223
+ getTypeName: (contentType: import("@strapi/types/dist/struct").Schema, { plurality, }?: {
224
224
  plurality?: "singular" | "plural" | undefined;
225
225
  }) => string;
226
- getEntityName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
227
- getEntityMetaName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
228
- getEntityResponseName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
229
- getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
230
- getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
231
- getComponentName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
232
- getComponentNameFromAttribute: (attribute: import("@strapi/types/dist/types/core/attributes").Component<`${string}.${string}`, import("@strapi/types/dist/types/utils/expression").BooleanValue>) => string;
233
- getDynamicZoneName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
234
- getDynamicZoneInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
235
- getComponentInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
236
- getContentTypeInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
237
- getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
238
- getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
239
- getFiltersInputTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
226
+ getEntityName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
227
+ getEntityMetaName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
228
+ getEntityResponseName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
229
+ getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
230
+ getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
231
+ getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
232
+ 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;
233
+ getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
234
+ getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
235
+ getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
236
+ getContentTypeInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
237
+ getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
238
+ getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
239
+ getFiltersInputTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
240
240
  getScalarFilterInputTypeName: (scalarType: string) => string;
241
- getMorphRelationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
241
+ getMorphRelationTypeName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
242
242
  buildCustomTypeNameGenerator: (options: {
243
243
  prefix?: string | undefined;
244
244
  suffix?: string | undefined;
245
245
  firstLetterCase?: "upper" | "lower" | undefined;
246
246
  plurality?: "singular" | "plural" | undefined;
247
- }) => (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
248
- getFindQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
249
- getFindOneQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
250
- getCreateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
251
- getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
252
- getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
253
- getFindConnectionQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
247
+ }) => (contentType: import("@strapi/types/dist/struct").Schema) => string;
248
+ getFindQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
249
+ getFindOneQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
250
+ getCreateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
251
+ getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
252
+ getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
253
+ getFindConnectionQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
254
254
  };
255
255
  attributes: {
256
- isStrapiScalar: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => any;
257
- isGraphQLScalar: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => any;
258
- isMorphRelation: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => boolean;
256
+ isStrapiScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
257
+ isGraphQLScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
258
+ isMorphRelation: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => boolean;
259
259
  isMedia: (value: any) => boolean;
260
260
  isRelation: (value: any) => boolean;
261
261
  isEnumeration: (value: any) => boolean;
@@ -267,32 +267,32 @@ export declare const services: {
267
267
  [key: string]: unknown;
268
268
  [key: number]: unknown;
269
269
  [key: symbol]: unknown;
270
- id: import("@strapi/types/dist/types/core/entity").ID;
270
+ id: import("@strapi/types/dist/data").ID;
271
271
  }) => {
272
- id: import("@strapi/types/dist/types/core/entity").ID;
272
+ id: import("@strapi/types/dist/data").ID;
273
273
  attributes: {
274
274
  [key: string]: unknown;
275
275
  [key: number]: unknown;
276
276
  [key: symbol]: unknown;
277
- id: import("@strapi/types/dist/types/core/entity").ID;
277
+ id: import("@strapi/types/dist/data").ID;
278
278
  };
279
279
  };
280
280
  entitiesToResponseEntities: import("lodash/fp").LodashMap1x1<{
281
281
  [key: string]: unknown;
282
282
  [key: number]: unknown;
283
283
  [key: symbol]: unknown;
284
- id: import("@strapi/types/dist/types/core/entity").ID;
284
+ id: import("@strapi/types/dist/data").ID;
285
285
  }, {
286
- id: import("@strapi/types/dist/types/core/entity").ID;
286
+ id: import("@strapi/types/dist/data").ID;
287
287
  attributes: {
288
288
  [key: string]: unknown;
289
289
  [key: number]: unknown;
290
290
  [key: symbol]: unknown;
291
- id: import("@strapi/types/dist/types/core/entity").ID;
291
+ id: import("@strapi/types/dist/data").ID;
292
292
  };
293
293
  }>;
294
294
  graphqlScalarToOperators(graphqlScalar: string): boolean;
295
- graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/types/core/schemas").Any): any;
295
+ graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/struct").Schema): any;
296
296
  strapiScalarToGraphQLScalar(strapiScalar: string): any;
297
297
  };
298
298
  };
@@ -1,7 +1,7 @@
1
- import type { Strapi } from '@strapi/types';
1
+ import type { Core } from '@strapi/types';
2
2
  import type { TypeRegistry } from './type-registry';
3
3
  export type Context = {
4
- strapi: Strapi;
4
+ strapi: Core.Strapi;
5
5
  registry: TypeRegistry;
6
6
  };
7
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../server/src/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../server/src/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;IACpB,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC"}
@@ -1,9 +1,9 @@
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
- isStrapiScalar: (attribute: Attribute.Any) => any;
5
- isGraphQLScalar: (attribute: Attribute.Any) => any;
6
- isMorphRelation: (attribute: Attribute.Any) => boolean;
4
+ isStrapiScalar: (attribute: Schema.Attribute.AnyAttribute) => any;
5
+ isGraphQLScalar: (attribute: Schema.Attribute.AnyAttribute) => any;
6
+ isMorphRelation: (attribute: Schema.Attribute.AnyAttribute) => boolean;
7
7
  isMedia: (value: any) => boolean;
8
8
  isRelation: (value: any) => boolean;
9
9
  isEnumeration: (value: any) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAEZ,OAAO;gCAME,UAAU,GAAG;iCASZ,UAAU,GAAG;iCASb,UAAU,GAAG;;;;;;;AAxBnD,wBAyEE"}
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;qCAEZ,OAAO;gCAME,OAAO,SAAS,CAAC,YAAY;iCAS5B,OAAO,SAAS,CAAC,YAAY;iCAS7B,OAAO,SAAS,CAAC,YAAY;;;;;;;AAxBnE,wBAyEE"}
@@ -4,43 +4,43 @@ declare const _default: (context: Context) => {
4
4
  isEnabled(): boolean;
5
5
  };
6
6
  naming: {
7
- getEnumName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
8
- getTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, { plurality, }?: {
7
+ getEnumName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
8
+ getTypeName: (contentType: import("@strapi/types/dist/struct").Schema, { plurality, }?: {
9
9
  plurality?: "singular" | "plural" | undefined;
10
10
  }) => string;
11
- getEntityName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
12
- getEntityMetaName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
13
- getEntityResponseName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
14
- getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
15
- getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
16
- getComponentName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
17
- getComponentNameFromAttribute: (attribute: import("@strapi/types/dist/types/core/attributes").Component<`${string}.${string}`, import("@strapi/types/dist/types/utils/expression").BooleanValue>) => string;
18
- getDynamicZoneName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
19
- getDynamicZoneInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
20
- getComponentInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
21
- getContentTypeInputName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
22
- getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
23
- getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
24
- getFiltersInputTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
11
+ getEntityName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
12
+ getEntityMetaName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
13
+ getEntityResponseName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
14
+ getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
15
+ getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
16
+ getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
17
+ 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;
18
+ getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
19
+ getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
20
+ getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
21
+ getContentTypeInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
22
+ getEntityQueriesTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
23
+ getEntityMutationsTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
24
+ getFiltersInputTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
25
25
  getScalarFilterInputTypeName: (scalarType: string) => string;
26
- getMorphRelationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any, attributeName: string) => string;
26
+ getMorphRelationTypeName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
27
27
  buildCustomTypeNameGenerator: (options: {
28
28
  prefix?: string | undefined;
29
29
  suffix?: string | undefined;
30
30
  firstLetterCase?: "upper" | "lower" | undefined;
31
31
  plurality?: "singular" | "plural" | undefined;
32
- }) => (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
33
- getFindQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
34
- getFindOneQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
35
- getCreateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
36
- getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
37
- getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
38
- getFindConnectionQueryName: (contentType: import("@strapi/types/dist/types/core/schemas").Any) => string;
32
+ }) => (contentType: import("@strapi/types/dist/struct").Schema) => string;
33
+ getFindQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
34
+ getFindOneQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
35
+ getCreateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
36
+ getUpdateMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
37
+ getDeleteMutationTypeName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
38
+ getFindConnectionQueryName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
39
39
  };
40
40
  attributes: {
41
- isStrapiScalar: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => any;
42
- isGraphQLScalar: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => any;
43
- isMorphRelation: (attribute: import("@strapi/types/dist/types/core/attributes").Any) => boolean;
41
+ isStrapiScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
42
+ isGraphQLScalar: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => any;
43
+ isMorphRelation: (attribute: import("@strapi/types/dist/schema/attribute").AnyAttribute) => boolean;
44
44
  isMedia: (value: any) => boolean;
45
45
  isRelation: (value: any) => boolean;
46
46
  isEnumeration: (value: any) => boolean;
@@ -52,32 +52,32 @@ declare const _default: (context: Context) => {
52
52
  [key: string]: unknown;
53
53
  [key: number]: unknown;
54
54
  [key: symbol]: unknown;
55
- id: import("@strapi/types/dist/types/core/entity").ID;
55
+ id: import("@strapi/types/dist/data").ID;
56
56
  }) => {
57
- id: import("@strapi/types/dist/types/core/entity").ID;
57
+ id: import("@strapi/types/dist/data").ID;
58
58
  attributes: {
59
59
  [key: string]: unknown;
60
60
  [key: number]: unknown;
61
61
  [key: symbol]: unknown;
62
- id: import("@strapi/types/dist/types/core/entity").ID;
62
+ id: import("@strapi/types/dist/data").ID;
63
63
  };
64
64
  };
65
65
  entitiesToResponseEntities: import("lodash/fp").LodashMap1x1<{
66
66
  [key: string]: unknown;
67
67
  [key: number]: unknown;
68
68
  [key: symbol]: unknown;
69
- id: import("@strapi/types/dist/types/core/entity").ID;
69
+ id: import("@strapi/types/dist/data").ID;
70
70
  }, {
71
- id: import("@strapi/types/dist/types/core/entity").ID;
71
+ id: import("@strapi/types/dist/data").ID;
72
72
  attributes: {
73
73
  [key: string]: unknown;
74
74
  [key: number]: unknown;
75
75
  [key: symbol]: unknown;
76
- id: import("@strapi/types/dist/types/core/entity").ID;
76
+ id: import("@strapi/types/dist/data").ID;
77
77
  };
78
78
  }>;
79
79
  graphqlScalarToOperators(graphqlScalar: string): boolean;
80
- graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/types/core/schemas").Any): any;
80
+ graphQLFiltersToStrapiQuery(filters: any, contentType: import("@strapi/types/dist/struct").Schema): any;
81
81
  strapiScalarToGraphQLScalar(strapiScalar: string): any;
82
82
  };
83
83
  };