@strapi/plugin-graphql 5.0.6 → 5.1.0
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 +3 -6
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +3 -6
- package/dist/admin/index.mjs.map +1 -1
- package/dist/server/src/index.d.ts +14 -1
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +14 -1
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/index.d.ts +14 -1
- package/dist/server/src/services/utils/index.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/admin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
const name$1 = "@strapi/plugin-graphql";
|
|
12
|
-
const version = "5.0.
|
|
12
|
+
const version = "5.0.6";
|
|
13
13
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -57,7 +57,7 @@ const scripts = {
|
|
|
57
57
|
watch: "strapi-plugin watch"
|
|
58
58
|
};
|
|
59
59
|
const dependencies = {
|
|
60
|
-
"@apollo/server": "4.
|
|
60
|
+
"@apollo/server": "4.11.0",
|
|
61
61
|
"@as-integrations/koa": "1.1.1",
|
|
62
62
|
"@graphql-tools/schema": "10.0.3",
|
|
63
63
|
"@graphql-tools/utils": "^10.1.3",
|
|
@@ -100,7 +100,7 @@ const peerDependencies = {
|
|
|
100
100
|
"styled-components": "^6.0.0"
|
|
101
101
|
};
|
|
102
102
|
const engines = {
|
|
103
|
-
node: ">=18.0.0 <=
|
|
103
|
+
node: ">=18.0.0 <=22.x.x",
|
|
104
104
|
npm: ">=6.0.0"
|
|
105
105
|
};
|
|
106
106
|
const strapi = {
|
|
@@ -128,9 +128,6 @@ const pluginPkg = {
|
|
|
128
128
|
};
|
|
129
129
|
const pluginId = "graphql";
|
|
130
130
|
const prefixPluginTranslations = (trad, pluginId2) => {
|
|
131
|
-
if (!pluginId2) {
|
|
132
|
-
throw new TypeError("pluginId can't be empty");
|
|
133
|
-
}
|
|
134
131
|
return Object.keys(trad).reduce((acc, current) => {
|
|
135
132
|
acc[`${pluginId2}.${current}`] = trad[current];
|
|
136
133
|
return acc;
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;AAIrF,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT,GAAG,CAAiB,CAAA;AACtB;ACLA,MAAM,OAAO,UAAU,OAAO;AAG9B,MAAe,QAAA;AAAA;AAAA,EAEb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,YAAY;AAAA,EAAC;AAAA,EACb,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,qCAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,qCAAA,2BAAA,CAAA,GAAA,+BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,gCAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,GAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,KAAA,MAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
const name$1 = "@strapi/plugin-graphql";
|
|
11
|
-
const version = "5.0.
|
|
11
|
+
const version = "5.0.6";
|
|
12
12
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -56,7 +56,7 @@ const scripts = {
|
|
|
56
56
|
watch: "strapi-plugin watch"
|
|
57
57
|
};
|
|
58
58
|
const dependencies = {
|
|
59
|
-
"@apollo/server": "4.
|
|
59
|
+
"@apollo/server": "4.11.0",
|
|
60
60
|
"@as-integrations/koa": "1.1.1",
|
|
61
61
|
"@graphql-tools/schema": "10.0.3",
|
|
62
62
|
"@graphql-tools/utils": "^10.1.3",
|
|
@@ -99,7 +99,7 @@ const peerDependencies = {
|
|
|
99
99
|
"styled-components": "^6.0.0"
|
|
100
100
|
};
|
|
101
101
|
const engines = {
|
|
102
|
-
node: ">=18.0.0 <=
|
|
102
|
+
node: ">=18.0.0 <=22.x.x",
|
|
103
103
|
npm: ">=6.0.0"
|
|
104
104
|
};
|
|
105
105
|
const strapi = {
|
|
@@ -127,9 +127,6 @@ const pluginPkg = {
|
|
|
127
127
|
};
|
|
128
128
|
const pluginId = "graphql";
|
|
129
129
|
const prefixPluginTranslations = (trad, pluginId2) => {
|
|
130
|
-
if (!pluginId2) {
|
|
131
|
-
throw new TypeError("pluginId can't be empty");
|
|
132
|
-
}
|
|
133
130
|
return Object.keys(trad).reduce((acc, current) => {
|
|
134
131
|
acc[`${pluginId2}.${current}`] = trad[current];
|
|
135
132
|
return acc;
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;AAIrF,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT,GAAG,CAAiB,CAAA;AACtB;ACLA,MAAM,OAAO,UAAU,OAAO;AAG9B,MAAe,QAAA;AAAA;AAAA,EAEb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,YAAY;AAAA,EAAC;AAAA,EACb,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,KAAA,MAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;"}
|
|
@@ -242,7 +242,20 @@ declare const _default: {
|
|
|
242
242
|
getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
243
243
|
getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
244
244
|
getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
245
|
-
getComponentNameFromAttribute: (attribute:
|
|
245
|
+
getComponentNameFromAttribute: (attribute: {
|
|
246
|
+
type: "component";
|
|
247
|
+
pluginOptions?: object | undefined;
|
|
248
|
+
searchable?: boolean | undefined;
|
|
249
|
+
component: `${string}.${string}`;
|
|
250
|
+
repeatable?: false | undefined;
|
|
251
|
+
configurable?: boolean | undefined;
|
|
252
|
+
min?: number | undefined;
|
|
253
|
+
max?: number | undefined;
|
|
254
|
+
private?: boolean | undefined;
|
|
255
|
+
required?: boolean | undefined;
|
|
256
|
+
writable?: boolean | undefined;
|
|
257
|
+
visible?: boolean | undefined;
|
|
258
|
+
}) => string;
|
|
246
259
|
getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
247
260
|
getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
248
261
|
getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGxC,wBAIE"}
|
|
@@ -229,7 +229,20 @@ export declare const services: {
|
|
|
229
229
|
getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
230
230
|
getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
231
231
|
getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
232
|
-
getComponentNameFromAttribute: (attribute:
|
|
232
|
+
getComponentNameFromAttribute: (attribute: {
|
|
233
|
+
type: "component";
|
|
234
|
+
pluginOptions?: object | undefined;
|
|
235
|
+
searchable?: boolean | undefined;
|
|
236
|
+
component: `${string}.${string}`;
|
|
237
|
+
repeatable?: false | undefined;
|
|
238
|
+
configurable?: boolean | undefined;
|
|
239
|
+
min?: number | undefined;
|
|
240
|
+
max?: number | undefined;
|
|
241
|
+
private?: boolean | undefined;
|
|
242
|
+
required?: boolean | undefined;
|
|
243
|
+
writable?: boolean | undefined;
|
|
244
|
+
visible?: boolean | undefined;
|
|
245
|
+
}) => string;
|
|
233
246
|
getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
234
247
|
getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
235
248
|
getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASpB,CAAC"}
|
|
@@ -14,7 +14,20 @@ declare const _default: (context: Context) => {
|
|
|
14
14
|
getEntityResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
15
15
|
getRelationResponseCollectionName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
16
16
|
getComponentName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
17
|
-
getComponentNameFromAttribute: (attribute:
|
|
17
|
+
getComponentNameFromAttribute: (attribute: {
|
|
18
|
+
type: "component";
|
|
19
|
+
pluginOptions?: object | undefined;
|
|
20
|
+
searchable?: boolean | undefined;
|
|
21
|
+
component: `${string}.${string}`;
|
|
22
|
+
repeatable?: false | undefined;
|
|
23
|
+
configurable?: boolean | undefined;
|
|
24
|
+
min?: number | undefined;
|
|
25
|
+
max?: number | undefined;
|
|
26
|
+
private?: boolean | undefined;
|
|
27
|
+
required?: boolean | undefined;
|
|
28
|
+
writable?: boolean | undefined;
|
|
29
|
+
visible?: boolean | undefined;
|
|
30
|
+
}) => string;
|
|
18
31
|
getDynamicZoneName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
19
32
|
getDynamicZoneInputName: (contentType: import("@strapi/types/dist/struct").Schema, attributeName: string) => string;
|
|
20
33
|
getComponentInputName: (contentType: import("@strapi/types/dist/struct").Schema) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;kCAEf,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;kCAEf,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAhC,wBAKG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-graphql",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@koa/cors": "5.0.0",
|
|
56
56
|
"@strapi/design-system": "2.0.0-rc.11",
|
|
57
57
|
"@strapi/icons": "2.0.0-rc.11",
|
|
58
|
-
"@strapi/utils": "5.0
|
|
58
|
+
"@strapi/utils": "5.1.0",
|
|
59
59
|
"graphql": "^16.8.1",
|
|
60
60
|
"graphql-depth-limit": "^1.1.0",
|
|
61
61
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
71
|
-
"@strapi/strapi": "5.0
|
|
72
|
-
"@strapi/types": "5.0
|
|
71
|
+
"@strapi/strapi": "5.1.0",
|
|
72
|
+
"@strapi/types": "5.1.0",
|
|
73
73
|
"@types/graphql-depth-limit": "1.1.5",
|
|
74
74
|
"@types/koa-bodyparser": "4.3.12",
|
|
75
75
|
"@types/koa__cors": "5.0.0",
|
|
76
76
|
"cross-env": "^7.0.3",
|
|
77
|
-
"eslint-config-custom": "5.0
|
|
77
|
+
"eslint-config-custom": "5.1.0",
|
|
78
78
|
"koa": "2.15.2",
|
|
79
79
|
"react": "18.3.1",
|
|
80
80
|
"react-dom": "18.3.1",
|
|
81
81
|
"react-router-dom": "6.22.3",
|
|
82
82
|
"styled-components": "6.1.8",
|
|
83
|
-
"tsconfig": "5.0
|
|
83
|
+
"tsconfig": "5.1.0",
|
|
84
84
|
"typescript": "5.3.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
101
101
|
"kind": "plugin"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "e490c81792c93aafbd16fd684394a6f223e5c528"
|
|
104
104
|
}
|