@strapi/data-transfer 4.21.0 → 4.22.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/index.js +49 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -25
- package/dist/index.mjs.map +1 -1
- package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts +2 -2
- package/dist/strapi/providers/local-destination/strategies/restore/entities.d.ts.map +1 -1
- package/dist/strapi/providers/local-source/assets.d.ts.map +1 -1
- package/dist/utils/components.d.ts +12 -2
- package/dist/utils/components.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -7,6 +7,6 @@ interface IEntitiesRestoreStreamOptions {
|
|
|
7
7
|
updateMappingTable<TSchemaUID extends Common.UID.Schema>(type: TSchemaUID, oldID: number, newID: number): void;
|
|
8
8
|
transaction?: Transaction;
|
|
9
9
|
}
|
|
10
|
-
declare const createEntitiesWriteStream: (options: IEntitiesRestoreStreamOptions) => Writable;
|
|
11
|
-
export {
|
|
10
|
+
export declare const createEntitiesWriteStream: (options: IEntitiesRestoreStreamOptions) => Writable;
|
|
11
|
+
export {};
|
|
12
12
|
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../../../src/strapi/providers/local-destination/strategies/restore/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../../../src/strapi/providers/local-destination/strategies/restore/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAK1D,OAAO,KAAK,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAKpE,UAAU,6BAA6B;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,kBAAkB,CAAC,UAAU,SAAS,MAAM,CAAC,GAAG,CAAC,MAAM,EACrD,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,IAAI,CAAC;IACR,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,eAAO,MAAM,yBAAyB,YAAa,6BAA6B,aAqD/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/assets.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/assets.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAgFlD;;GAEG;AACH,eAAO,MAAM,kBAAkB,WAAY,YAAY,KAAG,MAiDzD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Attribute, Common, Schema, EntityService } from '@strapi/types';
|
|
1
|
+
import type { Attribute, Common, Schema, EntityService, LoadedStrapi } from '@strapi/types';
|
|
2
2
|
type LoadedComponents<TUID extends Common.UID.Schema> = Attribute.GetValues<TUID, Attribute.GetKeysByType<TUID, 'component' | 'dynamiczone'>>;
|
|
3
3
|
type ComponentBody = {
|
|
4
4
|
[key: string]: Attribute.GetValue<Attribute.Component<Common.UID.Component, false> | Attribute.Component<Common.UID.Component, true> | Attribute.DynamicZone>;
|
|
@@ -19,5 +19,15 @@ declare const cloneComponents: <TUID extends Common.UID.Schema>(uid: TUID, entit
|
|
|
19
19
|
id: EntityService.Params.Attribute.ID;
|
|
20
20
|
}, data: EntityService.Params.Data.Input<TUID>) => Promise<ComponentBody>;
|
|
21
21
|
declare const deleteComponent: <TUID extends `${string}.${string}`>(uid: TUID, componentToDelete: Attribute.GetValues<TUID, Attribute.GetKeys<TUID>>) => Promise<void>;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Resolve the component UID of an entity's attribute based
|
|
24
|
+
* on a given path (components & dynamic zones only)
|
|
25
|
+
*/
|
|
26
|
+
declare const resolveComponentUID: ({ paths, strapi, data, contentType, }: {
|
|
27
|
+
paths: string[];
|
|
28
|
+
strapi: LoadedStrapi;
|
|
29
|
+
data: any;
|
|
30
|
+
contentType: Schema.ContentType;
|
|
31
|
+
}) => Common.UID.Schema | undefined;
|
|
32
|
+
export { omitComponentData, getComponents, createComponents, updateComponents, deleteComponents, deleteComponent, cloneComponents, resolveComponentUID, };
|
|
23
33
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/utils/components.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAS,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/utils/components.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAS,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnG,KAAK,gBAAgB,CAAC,IAAI,SAAS,MAAM,CAAC,GAAG,CAAC,MAAM,IAAI,SAAS,CAAC,SAAS,CACzE,IAAI,EACJ,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,CAAC,CAC3D,CAAC;AAMF,KAAK,aAAa,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,SAA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e,yIAMpB,CAAC;AAyBF;;;GAGG;AACH,QAAA,MAAM,mBAAmB;WAMhB,MAAM,EAAE;YACP,YAAY;UACd,GAAG;iBACI,OAAO,WAAW;MAC7B,OAAO,GAAG,OAAO,GAAG,SAkCvB,CAAC;AAEF,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/data-transfer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.0",
|
|
4
4
|
"description": "Data transfer capabilities for Strapi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"watch": "pack-up watch"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@strapi/logger": "4.
|
|
44
|
-
"@strapi/strapi": "4.
|
|
45
|
-
"@strapi/types": "4.
|
|
46
|
-
"@strapi/utils": "4.
|
|
43
|
+
"@strapi/logger": "4.22.0",
|
|
44
|
+
"@strapi/strapi": "4.22.0",
|
|
45
|
+
"@strapi/types": "4.22.0",
|
|
46
|
+
"@strapi/utils": "4.22.0",
|
|
47
47
|
"chalk": "4.1.2",
|
|
48
48
|
"cli-table3": "0.6.2",
|
|
49
49
|
"commander": "8.3.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"ws": "8.13.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@strapi/pack-up": "4.
|
|
63
|
+
"@strapi/pack-up": "4.22.0",
|
|
64
64
|
"@types/fs-extra": "9.0.13",
|
|
65
65
|
"@types/jest": "29.5.2",
|
|
66
66
|
"@types/koa": "2.13.4",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"node": ">=18.0.0 <=20.x.x",
|
|
85
85
|
"npm": ">=6.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "45fb7bc16d2c743094211edf6e36f63781b6d5ef"
|
|
88
88
|
}
|