@strapi/data-transfer 4.9.0-alpha.0 → 4.9.0-beta.2

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 (48) hide show
  1. package/lib/engine/index.d.ts +2 -1
  2. package/lib/engine/index.js +67 -7
  3. package/lib/errors/constants.d.ts +1 -1
  4. package/lib/file/providers/destination/index.js +7 -0
  5. package/lib/strapi/index.d.ts +0 -1
  6. package/lib/strapi/index.js +1 -6
  7. package/lib/strapi/providers/index.d.ts +1 -0
  8. package/lib/strapi/providers/index.js +1 -0
  9. package/lib/strapi/providers/local-destination/index.d.ts +1 -1
  10. package/lib/strapi/providers/local-destination/index.js +9 -4
  11. package/lib/strapi/providers/remote-destination/index.d.ts +5 -8
  12. package/lib/strapi/providers/remote-destination/index.js +157 -59
  13. package/lib/strapi/providers/remote-source/index.d.ts +36 -0
  14. package/lib/strapi/providers/remote-source/index.js +228 -0
  15. package/lib/strapi/providers/{remote-destination/utils.d.ts → utils.d.ts} +3 -3
  16. package/lib/strapi/providers/{remote-destination/utils.js → utils.js} +2 -2
  17. package/lib/strapi/remote/constants.d.ts +4 -2
  18. package/lib/strapi/remote/constants.js +1 -1
  19. package/lib/strapi/remote/flows/default.d.ts +3 -0
  20. package/lib/strapi/remote/flows/default.js +41 -0
  21. package/lib/strapi/remote/flows/index.d.ts +18 -0
  22. package/lib/strapi/remote/flows/index.js +59 -0
  23. package/lib/strapi/remote/handlers/abstract.d.ts +62 -0
  24. package/lib/strapi/remote/handlers/abstract.js +3 -0
  25. package/lib/strapi/remote/handlers/constants.d.ts +2 -0
  26. package/lib/strapi/remote/handlers/constants.js +5 -0
  27. package/lib/strapi/remote/handlers/index.d.ts +3 -0
  28. package/lib/strapi/remote/handlers/index.js +10 -0
  29. package/lib/strapi/remote/handlers/pull.d.ts +22 -0
  30. package/lib/strapi/remote/handlers/pull.js +186 -0
  31. package/lib/strapi/remote/handlers/push.d.ts +75 -0
  32. package/lib/strapi/remote/handlers/push.js +297 -0
  33. package/lib/strapi/remote/handlers/utils.d.ts +25 -0
  34. package/lib/strapi/remote/handlers/utils.js +181 -0
  35. package/lib/strapi/remote/index.d.ts +1 -2
  36. package/lib/strapi/remote/index.js +2 -3
  37. package/lib/utils/transaction.js +21 -3
  38. package/package.json +8 -7
  39. package/lib/strapi/register.d.ts +0 -7
  40. package/lib/strapi/register.js +0 -13
  41. package/lib/strapi/remote/controllers/index.d.ts +0 -1
  42. package/lib/strapi/remote/controllers/index.js +0 -18
  43. package/lib/strapi/remote/controllers/push.d.ts +0 -25
  44. package/lib/strapi/remote/controllers/push.js +0 -95
  45. package/lib/strapi/remote/handlers.d.ts +0 -3
  46. package/lib/strapi/remote/handlers.js +0 -193
  47. package/lib/strapi/remote/routes.d.ts +0 -21
  48. package/lib/strapi/remote/routes.js +0 -22
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerAdminTransferRoute = void 0;
4
- const constants_1 = require("./constants");
5
- const handlers_1 = require("./handlers");
6
- /**
7
- * Register a transfer route in the Strapi admin router.
8
- *
9
- * It exposes a WS server that can be used to run and manage transfer processes.
10
- *
11
- * @param strapi - A Strapi instance
12
- */
13
- const registerAdminTransferRoute = (strapi) => {
14
- strapi.admin.routes.push({
15
- method: 'GET',
16
- path: constants_1.TRANSFER_PATH,
17
- handler: (0, handlers_1.createTransferHandler)(),
18
- config: { auth: false },
19
- });
20
- };
21
- exports.registerAdminTransferRoute = registerAdminTransferRoute;
22
- //# sourceMappingURL=routes.js.map