@strapi/data-transfer 4.20.5 → 5.0.0-alpha.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 (45) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +170 -1104
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +171 -1100
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/strapi/providers/local-destination/strategies/restore/index.d.ts.map +1 -1
  8. package/dist/strapi/providers/local-source/assets.d.ts +1 -0
  9. package/dist/strapi/providers/local-source/assets.d.ts.map +1 -1
  10. package/dist/strapi/providers/local-source/configuration.d.ts +1 -0
  11. package/dist/strapi/providers/local-source/configuration.d.ts.map +1 -1
  12. package/dist/strapi/providers/local-source/entities.d.ts +1 -0
  13. package/dist/strapi/providers/local-source/entities.d.ts.map +1 -1
  14. package/dist/strapi/providers/local-source/links.d.ts +1 -0
  15. package/dist/strapi/providers/local-source/links.d.ts.map +1 -1
  16. package/dist/strapi/providers/remote-source/index.d.ts.map +1 -1
  17. package/dist/strapi/remote/handlers/utils.d.ts +1 -1
  18. package/dist/strapi/remote/handlers/utils.d.ts.map +1 -1
  19. package/dist/utils/components.d.ts +1 -4
  20. package/dist/utils/components.d.ts.map +1 -1
  21. package/dist/utils/encryption/decrypt.d.ts +1 -0
  22. package/dist/utils/encryption/decrypt.d.ts.map +1 -1
  23. package/dist/utils/encryption/encrypt.d.ts +1 -0
  24. package/dist/utils/encryption/encrypt.d.ts.map +1 -1
  25. package/package.json +12 -15
  26. package/dist/commands/commander.d.ts +0 -36
  27. package/dist/commands/commander.d.ts.map +0 -1
  28. package/dist/commands/data-transfer.d.ts +0 -63
  29. package/dist/commands/data-transfer.d.ts.map +0 -1
  30. package/dist/commands/export/action.d.ts +0 -21
  31. package/dist/commands/export/action.d.ts.map +0 -1
  32. package/dist/commands/export/command.d.ts +0 -9
  33. package/dist/commands/export/command.d.ts.map +0 -1
  34. package/dist/commands/helpers.d.ts +0 -31
  35. package/dist/commands/helpers.d.ts.map +0 -1
  36. package/dist/commands/import/action.d.ts +0 -20
  37. package/dist/commands/import/action.d.ts.map +0 -1
  38. package/dist/commands/import/command.d.ts +0 -9
  39. package/dist/commands/import/command.d.ts.map +0 -1
  40. package/dist/commands/index.d.ts +0 -4
  41. package/dist/commands/index.d.ts.map +0 -1
  42. package/dist/commands/transfer/action.d.ts +0 -19
  43. package/dist/commands/transfer/action.d.ts.map +0 -1
  44. package/dist/commands/transfer/command.d.ts +0 -9
  45. package/dist/commands/transfer/command.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/strapi/providers/local-destination/strategies/restore/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI1D,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,KAAK,OAAO,CAAC,EAAE,CAAC;QAC3D,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;KACrC,CAAC;CACH;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACjD;AAED,eAAO,MAAM,aAAa,WAAkB,YAAY,WAAW,eAAe;;;;EASjF,CAAC;AAuGF,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/strapi/providers/local-destination/strategies/restore/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAKlE,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,KAAK,OAAO,CAAC,EAAE,CAAC;QAC3D,MAAM,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;KACrC,CAAC;CACH;AAED,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACjD;AAED,eAAO,MAAM,aAAa,WAAkB,YAAY,WAAW,eAAe;;;;EASjF,CAAC;AAsIF,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Duplex } from 'stream';
2
3
  import type { LoadedStrapi } from '@strapi/types';
3
4
  /**
@@ -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;AA0DlD;;GAEG;AACH,eAAO,MAAM,kBAAkB,WAAY,YAAY,KAAG,MA8CzD,CAAC"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/assets.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAyB,MAAM,QAAQ,CAAC;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoElD;;GAEG;AACH,eAAO,MAAM,kBAAkB,WAAY,YAAY,KAAG,MA8CzD,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Readable } from 'stream';
2
3
  import type { LoadedStrapi } from '@strapi/types';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD;;GAEG;AACH,eAAO,MAAM,yBAAyB,WAAY,YAAY,KAAG,QAyBhE,CAAC"}
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/configuration.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD;;GAEG;AACH,eAAO,MAAM,yBAAyB,WAAY,YAAY,KAAG,QAyBhE,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Readable, Transform } from 'stream';
2
3
  import type { LoadedStrapi } from '@strapi/types';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,eAAe,CAAC;AAK1D;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAY,YAAY,KAAG,QAuC3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,SAchD,CAAC"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,eAAe,CAAC;AAK1D;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAY,YAAY,KAAG,QAuC3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,QAAO,SAchD,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Readable } from 'stream';
2
3
  import type { LoadedStrapi } from '@strapi/types';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD;;GAEG;AACH,eAAO,MAAM,iBAAiB,WAAY,YAAY,KAAG,QAiBxD,CAAC"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../src/strapi/providers/local-source/links.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKl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IAE/B,IAAI,EAAE,YAAY,CAAY;IAE9B,OAAO,EAAE,kCAAkC,CAAC;IAE5C,EAAE,EAAE,SAAS,GAAG,IAAI,CAAC;IAErB,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;gBAE3C,OAAO,EAAE,kCAAkC;IAMvD,OAAO,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAqDrD,wBAAwB,IAAI,YAAY,CAAC,QAAQ,CAAC;IAIlD,qBAAqB,IAAI,YAAY,CAAC,QAAQ,CAAC;IAI/C,UAAU,cAAe,QAAQ,4BAU/B;IAEI,sBAAsB,IAAI,OAAO,CAAC,QAAQ,CAAC;IAyDjD,6BAA6B,IAAI,YAAY,CAAC,QAAQ,CAAC;IAIjD,WAAW,IAAI,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAM9C,mBAAmB,CAAC,GAAG,EAAE,GAAG;IActB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAc/B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAuC1B,KAAK;IAeL,UAAU;CAsDjB;AAED,eAAO,MAAM,gCAAgC,YAAa,kCAAkC,+BAE3F,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { IncomingMessage } from 'http';
2
+ import type { IncomingMessage } from 'node:http';
3
3
  import type { Context } from 'koa';
4
4
  import type { ServerOptions } from 'ws';
5
5
  import { WebSocket, WebSocketServer } from 'ws';
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/strapi/remote/handlers/utils.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,KAAK,EAAW,aAAa,EAAE,MAAM,IAAI,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM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cAAc,CAAC;AAE9C,KAAK,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB,+BAElC,CAAC;AAoCF;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAS,OAAO,SA4B7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAa,OAAO,uCAgBrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAS,eAAe,OAAO,OAAO,YAAY,UAAU,SAoBvF,CAAC;AAIF,eAAO,MAAM,wBAAwB,uDACkB,OAAO,qBAClD,cAAc,WAKH,OAAO,kBAgO3B,CAAC"}
@@ -15,9 +15,6 @@ declare const updateComponents: <TUID extends Common.UID.Schema, TData extends P
15
15
  declare const deleteComponents: <TUID extends Common.UID.Schema, TEntity extends Attribute.GetValues<TUID, Attribute.GetKeys<TUID>>>(uid: TUID, entityToDelete: TEntity, { loadComponents }?: {
16
16
  loadComponents?: boolean | undefined;
17
17
  }) => Promise<void>;
18
- declare const cloneComponents: <TUID extends Common.UID.Schema>(uid: TUID, entityToClone: {
19
- id: EntityService.Params.Attribute.ID;
20
- }, data: EntityService.Params.Data.Input<TUID>) => Promise<ComponentBody>;
21
18
  declare const deleteComponent: <TUID extends `${string}.${string}`>(uid: TUID, componentToDelete: Attribute.GetValues<TUID, Attribute.GetKeys<TUID>>) => Promise<void>;
22
- export { omitComponentData, getComponents, createComponents, updateComponents, deleteComponents, deleteComponent, cloneComponents, };
19
+ export { omitComponentData, getComponents, createComponents, updateComponents, deleteComponents, deleteComponent, };
23
20
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"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AE,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,GAC/D,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACvE,iBAAS,iBAAiB,CACxB,WAAW,EAAE,MAAM,CAAC,SAAS,EAC7B,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAC7D,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAcrE,QAAA,MAAM,gBAAgB,yIAqGrB,CAAC;AAEF,QAAA,MAAM,aAAa,sDAET;IAAE,EAAE,EAAE,cAAc,MAAM,UAAU,CAAC,EAAE,CAAA;CAAE,oCASlD,CAAC;AAMF,QAAA,MAAM,gBAAgB,4HAKJ;IAAE,EAAE,EAAE,cAAc,MAAM,UAAU,CAAC,EAAE,CAAA;CAAE,wCA2F1D,CAAC;AAkGF,QAAA,MAAM,gBAAgB;;mBAkDrB,CAAC;AA8DF,QAAA,MAAM,eAAe,yIAMpB,CAAC;AAEF,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Cipher } from 'crypto';
2
3
  import { Algorithm } from '../../../types';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"decrypt.d.ts","sourceRoot":"","sources":["../../../src/utils/encryption/decrypt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuD,MAAM,QAAQ,CAAC;AACrF,OAAO,EAAkC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkC3E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAC5B,MAAM,cACA,SAAS,KACnB,MAEF,CAAC"}
1
+ {"version":3,"file":"decrypt.d.ts","sourceRoot":"","sources":["../../../src/utils/encryption/decrypt.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAuD,MAAM,QAAQ,CAAC;AACrF,OAAO,EAAkC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkC3E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAC5B,MAAM,cACA,SAAS,KACnB,MAEF,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { Cipher } from 'crypto';
2
3
  import { Algorithm } from '../../../types';
3
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"encrypt.d.ts","sourceRoot":"","sources":["../../../src/utils/encryption/encrypt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,EAAqC,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAkC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkC3E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAC5B,MAAM,cACA,SAAS,KACnB,MAEF,CAAC"}
1
+ {"version":3,"file":"encrypt.d.ts","sourceRoot":"","sources":["../../../src/utils/encryption/encrypt.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,MAAM,EAAqC,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAkC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkC3E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,QAC5B,MAAM,cACA,SAAS,KACnB,MAEF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/data-transfer",
3
- "version": "4.20.5",
3
+ "version": "5.0.0-alpha.1",
4
4
  "description": "Data transfer capabilities for Strapi",
5
5
  "keywords": [
6
6
  "strapi",
@@ -29,7 +29,7 @@
29
29
  "source": "./src/index.ts",
30
30
  "types": "./dist/index.d.ts",
31
31
  "files": [
32
- "./dist"
32
+ "dist/"
33
33
  ],
34
34
  "scripts": {
35
35
  "build": "pack-up build",
@@ -40,14 +40,13 @@
40
40
  "watch": "pack-up watch"
41
41
  },
42
42
  "dependencies": {
43
- "@strapi/logger": "4.20.5",
44
- "@strapi/strapi": "4.20.5",
45
- "@strapi/types": "4.20.5",
46
- "@strapi/utils": "4.20.5",
43
+ "@strapi/logger": "5.0.0-alpha.1",
44
+ "@strapi/types": "5.0.0-alpha.1",
45
+ "@strapi/utils": "5.0.0-alpha.1",
47
46
  "chalk": "4.1.2",
48
47
  "cli-table3": "0.6.2",
49
48
  "commander": "8.3.0",
50
- "fs-extra": "10.0.0",
49
+ "fs-extra": "10.1.0",
51
50
  "inquirer": "8.2.5",
52
51
  "lodash": "4.17.21",
53
52
  "ora": "5.4.1",
@@ -60,29 +59,27 @@
60
59
  "ws": "8.13.0"
61
60
  },
62
61
  "devDependencies": {
63
- "@strapi/pack-up": "4.20.5",
62
+ "@strapi/database": "5.0.0-alpha.1",
63
+ "@strapi/pack-up": "5.0.0-alpha.1",
64
64
  "@types/fs-extra": "9.0.13",
65
65
  "@types/jest": "29.5.2",
66
66
  "@types/koa": "2.13.4",
67
67
  "@types/lodash": "^4.14.191",
68
- "@types/node": "18.18.4",
68
+ "@types/node": "18.19.24",
69
69
  "@types/semver": "7.5.0",
70
70
  "@types/stream-chain": "2.0.1",
71
71
  "@types/stream-json": "1.7.3",
72
72
  "@types/tar": "6.1.4",
73
73
  "@types/tar-stream": "2.2.2",
74
74
  "@types/ws": "^8.5.4",
75
- "knex": "2.5.0",
75
+ "knex": "3.0.1",
76
76
  "koa": "2.13.4",
77
77
  "rimraf": "3.0.2",
78
- "typescript": "5.2.2"
79
- },
80
- "peerDependencies": {
81
- "@strapi/strapi": "^4.14.4"
78
+ "typescript": "5.3.2"
82
79
  },
83
80
  "engines": {
84
81
  "node": ">=18.0.0 <=20.x.x",
85
82
  "npm": ">=6.0.0"
86
83
  },
87
- "gitHead": "7a2a86e65faa175172945f55afe1b0f299fe98cc"
84
+ "gitHead": "eb70e07ea981311a3ddfbb2fdda0417034b22881"
88
85
  }
@@ -1,36 +0,0 @@
1
- /**
2
- * This file includes hooks to use for commander.hook and argParsers for commander.argParser
3
- */
4
- import { Command, Option } from 'commander';
5
- /**
6
- * argParser: Parse a comma-delimited string as an array
7
- */
8
- declare const parseList: (value: string) => string[];
9
- /**
10
- * Returns an argParser that returns a list
11
- */
12
- declare const getParseListWithChoices: (choices: string[], errorMessage?: string) => (value: string) => string[];
13
- /**
14
- * argParser: Parse a string as an integer
15
- */
16
- declare const parseInteger: (value: string) => number;
17
- /**
18
- * argParser: Parse a string as a URL object
19
- */
20
- declare const parseURL: (value: string) => URL;
21
- /**
22
- * hook: if encrypt==true and key not provided, prompt for it
23
- */
24
- declare const promptEncryptionKey: (thisCommand: Command) => Promise<void>;
25
- /**
26
- * hook: require a confirmation message to be accepted unless forceOption (-f,--force) is used
27
- */
28
- declare const getCommanderConfirmMessage: (message: string, { failMessage }?: {
29
- failMessage?: string | undefined;
30
- }) => (command: Command) => Promise<void>;
31
- declare const confirmMessage: (message: string, { force }?: {
32
- force?: boolean | undefined;
33
- }) => Promise<any>;
34
- declare const forceOption: Option;
35
- export { getParseListWithChoices, parseList, parseURL, parseInteger, promptEncryptionKey, getCommanderConfirmMessage, confirmMessage, forceOption, };
36
- //# sourceMappingURL=commander.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commander.d.ts","sourceRoot":"","sources":["../../src/commands/commander.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,EAA8B,MAAM,EAAE,MAAM,WAAW,CAAC;AAKxE;;GAEG;AACH,QAAA,MAAM,SAAS,UAAW,MAAM,aAQ/B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,uBAAuB,YAAa,MAAM,EAAE,oCACjC,MAAM,aAYtB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,YAAY,UAAW,MAAM,WAOlC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,UAAW,MAAM,QAW9B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,gBAAuB,OAAO,kBA8BtD,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,0BAA0B,YACrB,MAAM;;gBAGQ,OAAO,kBAM/B,CAAC;AAEF,QAAA,MAAM,cAAc,YAAmB,MAAM;;kBAkB5C,CAAC;AAEF,QAAA,MAAM,WAAW,QAGhB,CAAC;AAEF,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,EACd,WAAW,GACZ,CAAC"}
@@ -1,63 +0,0 @@
1
- import Table from 'cli-table3';
2
- import { Command, Option } from 'commander';
3
- import ora from 'ora';
4
- import type { LoadedStrapi, Strapi } from '@strapi/types';
5
- import * as engineDatatransfer from '../engine';
6
- declare const exitMessageText: (process: string, error?: boolean) => string;
7
- declare const getDefaultExportName: () => string;
8
- type ResultData = engineDatatransfer.ITransferResults<engineDatatransfer.ISourceProvider, engineDatatransfer.IDestinationProvider>['engine'];
9
- declare const buildTransferTable: (resultData: ResultData) => Table.Table | undefined;
10
- declare const DEFAULT_IGNORED_CONTENT_TYPES: string[];
11
- declare const abortTransfer: ({ engine, strapi, }: {
12
- engine: engineDatatransfer.TransferEngine;
13
- strapi: LoadedStrapi;
14
- }) => Promise<boolean>;
15
- declare const setSignalHandler: (handler: (...args: unknown[]) => void, signals?: string[]) => Promise<void>;
16
- declare const createStrapiInstance: (opts?: {
17
- logLevel?: string;
18
- }) => Promise<Strapi & Required<Strapi>>;
19
- declare const throttleOption: Option;
20
- declare const excludeOption: Option;
21
- declare const onlyOption: Option;
22
- declare const validateExcludeOnly: (command: Command) => void;
23
- declare const formatDiagnostic: (operation: string) => Parameters<engineDatatransfer.TransferEngine['diagnostics']['onDiagnostic']>[0];
24
- type Loaders = {
25
- [key in engineDatatransfer.TransferStage]: ora.Ora;
26
- };
27
- type Data = {
28
- [key in engineDatatransfer.TransferStage]?: {
29
- startTime?: number;
30
- endTime?: number;
31
- bytes?: number;
32
- count?: number;
33
- };
34
- };
35
- declare const loadersFactory: (defaultLoaders?: Loaders) => {
36
- updateLoader: (stage: engineDatatransfer.TransferStage, data: Data) => ora.Ora;
37
- createLoader: (stage: engineDatatransfer.TransferStage) => ora.Ora;
38
- getLoader: (stage: engineDatatransfer.TransferStage) => ora.Ora;
39
- };
40
- /**
41
- * Get the telemetry data to be sent for a didDEITSProcess* event from an initialized transfer engine object
42
- */
43
- declare const getTransferTelemetryPayload: (engine: engineDatatransfer.TransferEngine) => {
44
- eventProperties: {
45
- source: string;
46
- destination: string;
47
- };
48
- };
49
- /**
50
- * Get a transfer engine schema diff handler that confirms with the user before bypassing a schema check
51
- */
52
- declare const getDiffHandler: (engine: engineDatatransfer.TransferEngine, { force, action, }: {
53
- force?: boolean | undefined;
54
- action: string;
55
- }) => (context: engineDatatransfer.SchemaDiffHandlerContext, next: (ctx: engineDatatransfer.SchemaDiffHandlerContext) => void) => Promise<void>;
56
- declare const getAssetsBackupHandler: (engine: engineDatatransfer.TransferEngine, { force, action, }: {
57
- force?: boolean | undefined;
58
- action: string;
59
- }) => (context: engineDatatransfer.ErrorHandlerContext, next: (ctx: engineDatatransfer.ErrorHandlerContext) => void) => Promise<void>;
60
- declare const shouldSkipStage: (opts: Partial<engineDatatransfer.ITransferEngineOptions>, dataKind: engineDatatransfer.TransferFilterPreset) => boolean;
61
- declare const parseRestoreFromOptions: (opts: Partial<engineDatatransfer.ITransferEngineOptions>) => import("../strapi/providers/local-destination/strategies/restore").IRestoreOptions;
62
- export { loadersFactory, buildTransferTable, getDefaultExportName, getTransferTelemetryPayload, DEFAULT_IGNORED_CONTENT_TYPES, createStrapiInstance, excludeOption, exitMessageText, onlyOption, throttleOption, validateExcludeOnly, formatDiagnostic, abortTransfer, setSignalHandler, getDiffHandler, getAssetsBackupHandler, shouldSkipStage, parseRestoreFromOptions, };
63
- //# sourceMappingURL=data-transfer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-transfer.d.ts","sourceRoot":"","sources":["../../src/commands/data-transfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAG5C,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI1D,OAAO,KAAK,kBAAkB,MAAM,WAAW,CAAC;AAOhD,QAAA,MAAM,eAAe,YAAa,MAAM,4BAUvC,CAAC;AAmBF,QAAA,MAAM,oBAAoB,cAEzB,CAAC;AAEF,KAAK,UAAU,GAAG,kBAAkB,CAAC,gBAAgB,CACnD,kBAAkB,CAAC,eAAe,EAClC,kBAAkB,CAAC,oBAAoB,CACxC,CAAC,QAAQ,CAAC,CAAC;AAEZ,QAAA,MAAM,kBAAkB,eAAgB,UAAU,4BAoDjD,CAAC;AAEF,QAAA,MAAM,6BAA6B,UAWlC,CAAC;AAEF,QAAA,MAAM,aAAa;YAIT,mBAAmB,cAAc;YACjC,YAAY;sBAUrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,sBACD,OAAO,EAAE,KAAK,IAAI,sCAStC,CAAC;AAEF,QAAA,MAAM,oBAAoB,UAClB;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KAC1B,QAAQ,MAAM,GAAG,SAAS,MAAM,CAAC,CAcnC,CAAC;AAIF,QAAA,MAAM,cAAc,QAKP,CAAC;AAEd,QAAA,MAAM,aAAa,QAGqE,CAAC;AAEzF,QAAA,MAAM,UAAU,QAGqE,CAAC;AAEtF,QAAA,MAAM,mBAAmB,YAAa,OAAO,SAiB5C,CAAC;AAQF,QAAA,MAAM,gBAAgB,c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EACf,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,uBAAuB,GACxB,CAAC"}
@@ -1,21 +0,0 @@
1
- import { TransferGroupFilter } from '../../engine';
2
- interface CmdOptions {
3
- file?: string;
4
- encrypt?: boolean;
5
- key?: string;
6
- compress?: boolean;
7
- only?: (keyof TransferGroupFilter)[];
8
- exclude?: (keyof TransferGroupFilter)[];
9
- throttle?: number;
10
- maxSizeJsonl?: number;
11
- }
12
- /**
13
- * Export command.
14
- *
15
- * It transfers data from a local Strapi instance to a file
16
- *
17
- * @param {ExportCommandOptions} opts
18
- */
19
- declare const _default: (opts: CmdOptions) => Promise<void>;
20
- export default _default;
21
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/export/action.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,mBAAmB,EAAkD,MAAM,cAAc,CAAC;AAanG,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;+BACyB,UAAU;AAAtC,wBA2FE"}
@@ -1,9 +0,0 @@
1
- import { Command } from 'commander';
2
- /**
3
- * `$ strapi export`
4
- */
5
- declare const command: ({ command }: {
6
- command: Command;
7
- }) => void;
8
- export default command;
9
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/export/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAK5C;;GAEG;AACH,QAAA,MAAM,OAAO;aAA4B,OAAO;UA4B/C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- import type { Command } from 'commander';
3
- /**
4
- * Convert bytes to a human readable formatted string, for example "1024" becomes "1KB"
5
- */
6
- declare const readableBytes: (bytes: number, decimals?: number, padStart?: number) => string;
7
- interface ExitWithOptions {
8
- logger?: Console;
9
- prc?: NodeJS.Process;
10
- }
11
- /**
12
- *
13
- * Display message(s) to console and then call process.exit with code.
14
- * If code is zero, console.log and green text is used for messages, otherwise console.error and red text.
15
- *
16
- */
17
- declare const exitWith: (code: number, message?: string | string[], options?: ExitWithOptions) => void;
18
- /**
19
- * assert that a URL object has a protocol value
20
- *
21
- */
22
- declare const assertUrlHasProtocol: (url: URL, protocol?: string | string[]) => void;
23
- type ConditionCallback = (opts: Record<string, any>) => Promise<boolean>;
24
- type IsMetCallback = (command: Command) => Promise<void>;
25
- type IsNotMetCallback = (command: Command) => Promise<void>;
26
- /**
27
- * Passes commander options to conditionCallback(). If it returns true, call isMetCallback otherwise call isNotMetCallback
28
- */
29
- declare const ifOptions: (conditionCallback: ConditionCallback, isMetCallback?: IsMetCallback, isNotMetCallback?: IsNotMetCallback) => (command: Command) => Promise<void>;
30
- export { exitWith, assertUrlHasProtocol, ifOptions, readableBytes };
31
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/commands/helpers.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC;;GAEG;AACH,QAAA,MAAM,aAAa,UAAW,MAAM,iDAUnC,CAAC;AAEF,UAAU,eAAe;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,SAAU,MAAM,YAAY,MAAM,GAAG,MAAM,EAAE,YAAW,eAAe,SAkBpF,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,oBAAoB,QAAS,GAAG,aAAa,MAAM,GAAG,MAAM,EAAE,SAwBnE,CAAC;AAEF,KAAK,iBAAiB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AACzE,KAAK,aAAa,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AACzD,KAAK,gBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5D;;GAEG;AACH,QAAA,MAAM,SAAS,sBACM,iBAAiB,kBACrB,aAAa,qBACV,gBAAgB,eAEX,OAAO,kBAQ/B,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
@@ -1,20 +0,0 @@
1
- import * as engine from '../../engine';
2
- interface CmdOptions {
3
- file?: string;
4
- decompress?: boolean;
5
- decrypt?: boolean;
6
- key?: string;
7
- conflictStrategy?: 'restore';
8
- force?: boolean;
9
- only?: (keyof engine.TransferGroupFilter)[];
10
- exclude?: (keyof engine.TransferGroupFilter)[];
11
- throttle?: number;
12
- }
13
- /**
14
- * Import command.
15
- *
16
- * It transfers data from a file to a local Strapi instance
17
- */
18
- declare const _default: (opts: CmdOptions) => Promise<void>;
19
- export default _default;
20
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/import/action.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAcvC,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID;;;;GAIG;+BACyB,UAAU;AAAtC,wBAkHE"}
@@ -1,9 +0,0 @@
1
- import { Command } from 'commander';
2
- /**
3
- * `$ strapi import`
4
- */
5
- declare const command: ({ command }: {
6
- command: Command;
7
- }) => void;
8
- export default command;
9
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/import/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAO5C;;GAEG;AACH,QAAA,MAAM,OAAO;aAA4B,OAAO;UA8E/C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,4 +0,0 @@
1
- export { default as export } from './export/command';
2
- export { default as import } from './import/command';
3
- export { default as transfer } from './transfer/command';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,19 +0,0 @@
1
- import * as engineDatatransfer from '../../engine';
2
- interface CmdOptions {
3
- from?: URL;
4
- fromToken: string;
5
- to: URL;
6
- toToken: string;
7
- only?: (keyof engineDatatransfer.TransferGroupFilter)[];
8
- exclude?: (keyof engineDatatransfer.TransferGroupFilter)[];
9
- throttle?: number;
10
- force?: boolean;
11
- }
12
- /**
13
- * Transfer command.
14
- *
15
- * Transfers data between local Strapi and remote Strapi instances
16
- */
17
- declare const _default: (opts: CmdOptions) => Promise<void>;
18
- export default _default;
19
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/transfer/action.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,kBAAkB,MAAM,cAAc,CAAC;AA6BnD,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,GAAG,CAAC;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,MAAM,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,MAAM,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AACD;;;;GAIG;+BACyB,UAAU;AAAtC,wBAqJE"}
@@ -1,9 +0,0 @@
1
- import { Command } from 'commander';
2
- /**
3
- * `$ strapi transfer`
4
- */
5
- declare const command: ({ command }: {
6
- command: Command;
7
- }) => void;
8
- export default command;
9
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/transfer/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAM5C;;GAEG;AACH,QAAA,MAAM,OAAO;aAA4B,OAAO;UA4F/C,CAAC;AAEF,eAAe,OAAO,CAAC"}