@gorgo/medusa-integration 0.3.0-beta.3 → 0.3.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.
Files changed (28) hide show
  1. package/.medusa/server/src/admin/index.js +335 -109
  2. package/.medusa/server/src/admin/index.mjs +338 -112
  3. package/.medusa/server/src/api/admin/integrations/license-status/recheck/route.d.ts +8 -0
  4. package/.medusa/server/src/api/admin/integrations/license-status/recheck/route.js +14 -0
  5. package/.medusa/server/src/api/admin/integrations/license-status/route.d.ts +3 -3
  6. package/.medusa/server/src/api/admin/integrations/license-status/route.js +3 -3
  7. package/.medusa/server/src/lib/__tests__/catalog-fallback.unit.spec.js +32 -8
  8. package/.medusa/server/src/lib/catalog.generated.js +70 -14
  9. package/.medusa/server/src/modules/integration/loaders/__tests__/check-licenses.unit.spec.js +103 -110
  10. package/.medusa/server/src/modules/integration/loaders/__tests__/resolve-package-meta.unit.spec.d.ts +1 -0
  11. package/.medusa/server/src/modules/integration/loaders/__tests__/resolve-package-meta.unit.spec.js +34 -0
  12. package/.medusa/server/src/modules/integration/loaders/check-licenses.d.ts +5 -4
  13. package/.medusa/server/src/modules/integration/loaders/check-licenses.js +47 -68
  14. package/.medusa/server/src/modules/integration/loaders/resolve-package-meta.js +18 -3
  15. package/.medusa/server/src/modules/integration/services/__tests__/integration-module.unit.spec.js +49 -1
  16. package/.medusa/server/src/modules/integration/services/integration-module.d.ts +7 -1
  17. package/.medusa/server/src/modules/integration/services/integration-module.js +27 -6
  18. package/.medusa/server/src/modules/integration/types/index.d.ts +29 -9
  19. package/.medusa/server/src/modules/integration/types/index.js +2 -4
  20. package/.medusa/server/src/modules/integration/utils/__tests__/license-entry.unit.spec.d.ts +1 -0
  21. package/.medusa/server/src/modules/integration/utils/__tests__/license-entry.unit.spec.js +88 -0
  22. package/.medusa/server/src/modules/integration/utils/license-entry.d.ts +7 -0
  23. package/.medusa/server/src/modules/integration/utils/license-entry.js +29 -0
  24. package/.medusa/server/src/types/http/integration/admin/entities.d.ts +2 -1
  25. package/README.md +7 -3
  26. package/package.json +4 -3
  27. package/.medusa/server/src/modules/integration/loaders/license-state.d.ts +0 -9
  28. package/.medusa/server/src/modules/integration/loaders/license-state.js +0 -22
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.licenseStateStore = licenseStateStore;
4
- exports.licenseStates = licenseStates;
5
- exports.resetLicenseStateStoreForTests = resetLicenseStateStoreForTests;
6
- const store = {};
7
- /**
8
- * The verdicts the `checkLicenses` loader reached at boot. A single object shared by the loader,
9
- * the module service and the admin route: the loader fills it in place, so readers do not depend
10
- * on being constructed after it ran.
11
- */
12
- function licenseStateStore() {
13
- return store;
14
- }
15
- function licenseStates() {
16
- return Object.values(store);
17
- }
18
- function resetLicenseStateStoreForTests() {
19
- for (const key of Object.keys(store))
20
- delete store[key];
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGljZW5zZS1zdGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tb2R1bGVzL2ludGVncmF0aW9uL2xvYWRlcnMvbGljZW5zZS1zdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVNBLDhDQUVDO0FBRUQsc0NBRUM7QUFFRCx3RUFFQztBQWpCRCxNQUFNLEtBQUssR0FBb0IsRUFBRSxDQUFBO0FBRWpDOzs7O0dBSUc7QUFDSCxTQUFnQixpQkFBaUI7SUFDL0IsT0FBTyxLQUFLLENBQUE7QUFDZCxDQUFDO0FBRUQsU0FBZ0IsYUFBYTtJQUMzQixPQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUE7QUFDN0IsQ0FBQztBQUVELFNBQWdCLDhCQUE4QjtJQUM1QyxLQUFLLE1BQU0sR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQUUsT0FBTyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUE7QUFDekQsQ0FBQyJ9