@webiny/api-headless-cms-import-export 5.41.1-beta.2 → 5.41.1-beta.4
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/graphql/typeDefs.js +0 -4
- package/graphql/typeDefs.js.map +1 -1
- package/package.json +21 -21
package/graphql/typeDefs.js
CHANGED
|
@@ -141,10 +141,6 @@ const createTypeDefs = models => {
|
|
|
141
141
|
error: CmsError
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
enum ExportContentEntriesModelsListEnum {
|
|
145
|
-
${models.map(model => model.modelId).join("\n")}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
144
|
extend type Query {
|
|
149
145
|
getExportContentEntries(id: ID!): ExportContentEntriesResponse!
|
|
150
146
|
listExportContentEntries(after: String, limit: Int): ListExportContentEntriesResponse!
|
package/graphql/typeDefs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createExportContentEntriesByModel","models","map","model","pluralApiName","singularApiName","join","createTypeDefs","
|
|
1
|
+
{"version":3,"names":["createExportContentEntriesByModel","models","map","model","pluralApiName","singularApiName","join","createTypeDefs","exports"],"sources":["typeDefs.ts"],"sourcesContent":["import type { NonEmptyArray } from \"@webiny/api/types\";\nimport { CmsModel } from \"@webiny/api-headless-cms/types\";\n\nconst createExportContentEntriesByModel = (models: NonEmptyArray<CmsModel>): string => {\n return models\n .map(model => {\n return /* GraphQL */ `\n export${model.pluralApiName}ContentEntries(\n # limit on how much entries will be fetched in a single batch - mostly used for testing\n limit: Int\n # do we export assets as well? default is false\n exportAssets: Boolean\n # filter the entries by providing a where input\n where: ${model.singularApiName}ListWhereInput\n # if after is provided, export will start after the provided cursor\n after: String\n ): ExportContentEntriesResponse!\n \n `;\n })\n .join(\"\\n\");\n};\n\nexport const createTypeDefs = (models: NonEmptyArray<CmsModel>): string => {\n return /* GraphQL */ `\n enum ExportContentEntriesExportRecordStatusEnum {\n pending\n running\n failed\n success\n aborted\n }\n \n type ExportContentEntriesExportRecordFile {\n get: String!\n head: String!\n key: String!\n type: String!\n checksum: String!\n }\n \n type ExportContentEntriesExportRecord {\n id: ID!\n createdOn: DateTime!\n createdBy: CmsIdentity!\n finishedOn: DateTime\n modelId: String!\n files: [ExportContentEntriesExportRecordFile!]\n exportAssets: Boolean!\n status: ExportContentEntriesExportRecordStatusEnum!\n }\n \n type ExportContentEntriesResponse {\n data: ExportContentEntriesExportRecord\n error: CmsError\n }\n \n type ListExportContentEntriesExportRecord {\n id: ID!\n createdOn: DateTime!\n createdBy: CmsIdentity!\n finishedOn: DateTime\n modelId: String!\n exportAssets: Boolean!\n status: ExportContentEntriesExportRecordStatusEnum!\n }\n \n type ListExportContentEntriesResponse {\n data: [ListExportContentEntriesExportRecord!]\n meta: CmsListMeta\n error: CmsError\n }\n\n type AbortExportContentEntriesResponse {\n data: ExportContentEntriesExportRecord\n error: CmsError\n }\n \n type ValidateImportFromUrlResponseDataFileError {\n message: String!\n data: JSON\n }\n \n type ValidateImportFromUrlResponseDataFile {\n get: String\n head: String\n type: String\n checksum: String\n key: String\n size: Number\n checked: Boolean\n error: ValidateImportFromUrlResponseDataFileError\n }\n \n type ValidateImportFromUrlResponseData {\n id: ID!\n files: [ValidateImportFromUrlResponseDataFile!]\n status: String!\n error: CmsError\n }\n \n type GetValidateImportFromUrlResponseData {\n id: ID!\n files: [ValidateImportFromUrlResponseDataFile!]\n status: String!\n error: CmsError\n }\n \n type GetValidateImportFromUrlResponse {\n data: GetValidateImportFromUrlResponseData\n error: CmsError\n }\n \n type ValidateImportFromUrlResponse {\n data: ValidateImportFromUrlResponseData\n error: CmsError\n }\n \n type ImportFromUrlResponseDataFileError {\n message: String!\n data: JSON\n }\n \n type ImportFromUrlResponseDataFile {\n get: String!\n head: String!\n type: String!\n checksum: String!\n size: Number!\n error: ImportFromUrlResponseDataFileError\n }\n \n type ImportFromUrlResponseData {\n id: ID!\n files: [ImportFromUrlResponseDataFile!]\n status: String!\n }\n \n type ImportFromUrlResponse {\n data: ImportFromUrlResponseData\n error: CmsError\n }\n \n extend type Query {\n getExportContentEntries(id: ID!): ExportContentEntriesResponse!\n listExportContentEntries(after: String, limit: Int): ListExportContentEntriesResponse!\n getValidateImportFromUrl(id: ID!): GetValidateImportFromUrlResponse!\n getImportFromUrl(id: ID!): ImportFromUrlResponse!\n }\n\n extend type Mutation {\n ${createExportContentEntriesByModel(models)}\n \n abortExportContentEntries(id: ID!): AbortExportContentEntriesResponse!\n validateImportFromUrl(data: JSON!): ValidateImportFromUrlResponse!\n # the id is a task id returned from the validateImportFromUrl mutation\n # it will be used to get the file information and start a new task for the actual import\n importFromUrl(id: ID!): ImportFromUrlResponse!\n abortImportFromUrl(id: ID!): ImportFromUrlResponse!\n }\n `;\n};\n"],"mappings":";;;;;;AAGA,MAAMA,iCAAiC,GAAIC,MAA+B,IAAa;EACnF,OAAOA,MAAM,CACRC,GAAG,CAACC,KAAK,IAAI;IACV,OAAO,aAAe;AAClC,oBAAoBA,KAAK,CAACC,aAAc;AACxC;AACA;AACA;AACA;AACA;AACA,yBAAyBD,KAAK,CAACE,eAAgB;AAC/C;AACA;AACA;AACA;AACA,SAAS;EACD,CAAC,CAAC,CACDC,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC;AAEM,MAAMC,cAAc,GAAIN,MAA+B,IAAa;EACvE,OAAO,aAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAcD,iCAAiC,CAACC,MAAM,CAAE;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;AAACO,OAAA,CAAAD,cAAA,GAAAA,cAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-import-export",
|
|
3
|
-
"version": "5.41.1-beta.
|
|
3
|
+
"version": "5.41.1-beta.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"description": "Import / Export for Webiny Headless CMS",
|
|
6
6
|
"keywords": [
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@smithy/node-http-handler": "2.1.6",
|
|
17
|
-
"@webiny/api-file-manager": "5.41.1-beta.
|
|
18
|
-
"@webiny/api-headless-cms": "5.41.1-beta.
|
|
19
|
-
"@webiny/aws-sdk": "5.41.1-beta.
|
|
20
|
-
"@webiny/error": "5.41.1-beta.
|
|
21
|
-
"@webiny/handler-graphql": "5.41.1-beta.
|
|
22
|
-
"@webiny/plugins": "5.41.1-beta.
|
|
23
|
-
"@webiny/tasks": "5.41.1-beta.
|
|
24
|
-
"@webiny/utils": "5.41.1-beta.
|
|
17
|
+
"@webiny/api-file-manager": "5.41.1-beta.4",
|
|
18
|
+
"@webiny/api-headless-cms": "5.41.1-beta.4",
|
|
19
|
+
"@webiny/aws-sdk": "5.41.1-beta.4",
|
|
20
|
+
"@webiny/error": "5.41.1-beta.4",
|
|
21
|
+
"@webiny/handler-graphql": "5.41.1-beta.4",
|
|
22
|
+
"@webiny/plugins": "5.41.1-beta.4",
|
|
23
|
+
"@webiny/tasks": "5.41.1-beta.4",
|
|
24
|
+
"@webiny/utils": "5.41.1-beta.4",
|
|
25
25
|
"archiver": "7.0.1",
|
|
26
26
|
"bytes": "3.1.2",
|
|
27
27
|
"uniqid": "5.4.0",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"@babel/runtime": "7.24.1",
|
|
37
37
|
"@types/adm-zip": "0.5.5",
|
|
38
38
|
"@types/unzipper": "0.10.10",
|
|
39
|
-
"@webiny/api": "5.41.1-beta.
|
|
40
|
-
"@webiny/api-admin-users": "5.41.1-beta.
|
|
41
|
-
"@webiny/api-i18n": "5.41.1-beta.
|
|
42
|
-
"@webiny/api-security": "5.41.1-beta.
|
|
43
|
-
"@webiny/api-tenancy": "5.41.1-beta.
|
|
44
|
-
"@webiny/api-wcp": "5.41.1-beta.
|
|
45
|
-
"@webiny/cli": "5.41.1-beta.
|
|
46
|
-
"@webiny/handler": "5.41.1-beta.
|
|
47
|
-
"@webiny/handler-aws": "5.41.1-beta.
|
|
39
|
+
"@webiny/api": "5.41.1-beta.4",
|
|
40
|
+
"@webiny/api-admin-users": "5.41.1-beta.4",
|
|
41
|
+
"@webiny/api-i18n": "5.41.1-beta.4",
|
|
42
|
+
"@webiny/api-security": "5.41.1-beta.4",
|
|
43
|
+
"@webiny/api-tenancy": "5.41.1-beta.4",
|
|
44
|
+
"@webiny/api-wcp": "5.41.1-beta.4",
|
|
45
|
+
"@webiny/cli": "5.41.1-beta.4",
|
|
46
|
+
"@webiny/handler": "5.41.1-beta.4",
|
|
47
|
+
"@webiny/handler-aws": "5.41.1-beta.4",
|
|
48
48
|
"@webiny/plugins": "0.0.0",
|
|
49
|
-
"@webiny/project-utils": "5.41.1-beta.
|
|
50
|
-
"@webiny/wcp": "5.41.1-beta.
|
|
49
|
+
"@webiny/project-utils": "5.41.1-beta.4",
|
|
50
|
+
"@webiny/wcp": "5.41.1-beta.4",
|
|
51
51
|
"adm-zip": "0.5.16",
|
|
52
52
|
"aws-sdk-client-mock": "4.0.2",
|
|
53
53
|
"graphql": "15.8.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"access": "public",
|
|
63
63
|
"directory": "dist"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "4d34943dbfc5a776afc74fffd2cfd2dca60bffcd"
|
|
66
66
|
}
|