@optimizely/ocp-local-env 1.0.0-beta.6 → 1.0.0-beta.8

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 (142) hide show
  1. package/dist/package.json +2 -1
  2. package/dist/public/bundle.0a495807b6ef336cb500.js +3 -0
  3. package/dist/public/{bundle.932ab47a0dbf0319bc8b.js.LICENSE.txt → bundle.0a495807b6ef336cb500.js.LICENSE.txt} +33 -0
  4. package/dist/public/bundle.0a495807b6ef336cb500.js.map +1 -0
  5. package/dist/public/index.html +1 -1
  6. package/dist/src/cli.js +46 -19
  7. package/dist/src/cli.js.map +1 -1
  8. package/dist/src/executor/DestinationExecutor.js +13 -8
  9. package/dist/src/executor/DestinationExecutor.js.map +1 -1
  10. package/dist/src/executor/FunctionExecutor.js +4 -2
  11. package/dist/src/executor/FunctionExecutor.js.map +1 -1
  12. package/dist/src/executor/JobExecutor.js +1 -1
  13. package/dist/src/executor/JobExecutor.js.map +1 -1
  14. package/dist/src/executor/LifecycleExecutor.js +4 -2
  15. package/dist/src/executor/LifecycleExecutor.js.map +1 -1
  16. package/dist/src/executor/SourceExecutor.d.ts +32 -0
  17. package/dist/src/executor/SourceExecutor.js +163 -0
  18. package/dist/src/executor/SourceExecutor.js.map +1 -0
  19. package/dist/src/local_engine/LocalFunctionApi.d.ts +17 -0
  20. package/dist/src/local_engine/LocalFunctionApi.js +54 -0
  21. package/dist/src/local_engine/LocalFunctionApi.js.map +1 -0
  22. package/dist/src/local_engine/LocalJobApi.d.ts +38 -0
  23. package/dist/src/local_engine/LocalJobApi.js +180 -0
  24. package/dist/src/local_engine/LocalJobApi.js.map +1 -0
  25. package/dist/src/local_engine/local-engine-child-base.d.ts +16 -0
  26. package/dist/src/local_engine/local-engine-child-base.js +201 -14
  27. package/dist/src/local_engine/local-engine-child-base.js.map +1 -1
  28. package/dist/src/local_engine/local-engine-client.d.ts +70 -1
  29. package/dist/src/local_engine/local-engine-client.js +545 -26
  30. package/dist/src/local_engine/local-engine-client.js.map +1 -1
  31. package/dist/src/local_engine/local-engine-types.d.ts +99 -2
  32. package/dist/src/local_engine/local-engine-unified.d.ts +18 -0
  33. package/dist/src/local_engine/local-engine-unified.js +228 -2
  34. package/dist/src/local_engine/local-engine-unified.js.map +1 -1
  35. package/dist/src/local_engine/local-engine-utils.js +34 -7
  36. package/dist/src/local_engine/local-engine-utils.js.map +1 -1
  37. package/dist/src/local_engine/localSDKConfig.d.ts +2 -1
  38. package/dist/src/local_engine/localSDKConfig.js +95 -249
  39. package/dist/src/local_engine/localSDKConfig.js.map +1 -1
  40. package/dist/src/local_engine/storage/BaseKVStoreWrapper.d.ts +38 -0
  41. package/dist/src/local_engine/storage/BaseKVStoreWrapper.js +110 -0
  42. package/dist/src/local_engine/storage/BaseKVStoreWrapper.js.map +1 -0
  43. package/dist/src/local_engine/storage/LocalConfigStore.d.ts +18 -0
  44. package/dist/src/local_engine/storage/LocalConfigStore.js +52 -3
  45. package/dist/src/local_engine/storage/LocalConfigStore.js.map +1 -1
  46. package/dist/src/local_engine/storage/LocalJobStore.d.ts +1 -0
  47. package/dist/src/local_engine/storage/LocalJobStore.js +12 -2
  48. package/dist/src/local_engine/storage/LocalJobStore.js.map +1 -1
  49. package/dist/src/local_engine/storage/LocalKVStore.d.ts +1 -0
  50. package/dist/src/local_engine/storage/LocalKVStore.js +134 -75
  51. package/dist/src/local_engine/storage/LocalKVStore.js.map +1 -1
  52. package/dist/src/local_engine/storage/LocalNotificationStore.d.ts +1 -0
  53. package/dist/src/local_engine/storage/LocalNotificationStore.js +17 -3
  54. package/dist/src/local_engine/storage/LocalNotificationStore.js.map +1 -1
  55. package/dist/src/local_engine/storage/LocalSecretsStore.d.ts +1 -0
  56. package/dist/src/local_engine/storage/LocalSecretsStore.js +37 -6
  57. package/dist/src/local_engine/storage/LocalSecretsStore.js.map +1 -1
  58. package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.d.ts +19 -0
  59. package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.js +52 -0
  60. package/dist/src/local_engine/storage/LocalSecretsStoreWrapper.js.map +1 -0
  61. package/dist/src/local_engine/storage/LocalSettingsStore.d.ts +1 -0
  62. package/dist/src/local_engine/storage/LocalSettingsStore.js +61 -11
  63. package/dist/src/local_engine/storage/LocalSettingsStore.js.map +1 -1
  64. package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.d.ts +15 -0
  65. package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.js +28 -0
  66. package/dist/src/local_engine/storage/LocalSettingsStoreWrapper.js.map +1 -0
  67. package/dist/src/local_engine/storage/SourceDataStore.d.ts +23 -0
  68. package/dist/src/local_engine/storage/SourceDataStore.js +83 -0
  69. package/dist/src/local_engine/storage/SourceDataStore.js.map +1 -0
  70. package/dist/src/local_engine/storage/SourceJobExecutionStore.d.ts +25 -0
  71. package/dist/src/local_engine/storage/SourceJobExecutionStore.js +61 -0
  72. package/dist/src/local_engine/storage/SourceJobExecutionStore.js.map +1 -0
  73. package/dist/src/local_engine/types.d.ts +1 -0
  74. package/dist/src/local_engine/utils.js +20 -4
  75. package/dist/src/local_engine/utils.js.map +1 -1
  76. package/dist/src/logging/LogManager.d.ts +191 -34
  77. package/dist/src/logging/LogManager.js +209 -103
  78. package/dist/src/logging/LogManager.js.map +1 -1
  79. package/dist/src/server/api/destinations.js +33 -7
  80. package/dist/src/server/api/destinations.js.map +1 -1
  81. package/dist/src/server/api/functions.js +2 -1
  82. package/dist/src/server/api/functions.js.map +1 -1
  83. package/dist/src/server/api/jobs.js +3 -0
  84. package/dist/src/server/api/jobs.js.map +1 -1
  85. package/dist/src/server/api/sources.d.ts +7 -0
  86. package/dist/src/server/api/sources.js +382 -0
  87. package/dist/src/server/api/sources.js.map +1 -0
  88. package/dist/src/server/api/v1.js +54 -3
  89. package/dist/src/server/api/v1.js.map +1 -1
  90. package/dist/src/server/api.js +64 -3
  91. package/dist/src/server/api.js.map +1 -1
  92. package/dist/src/server.js +213 -23
  93. package/dist/src/server.js.map +1 -1
  94. package/dist/src/ui/components/App.js +195 -24
  95. package/dist/src/ui/components/App.js.map +1 -1
  96. package/dist/src/ui/components/DestinationsView.d.ts +8 -0
  97. package/dist/src/ui/components/DestinationsView.js +30 -9
  98. package/dist/src/ui/components/DestinationsView.js.map +1 -1
  99. package/dist/src/ui/components/FunctionsView.d.ts +7 -0
  100. package/dist/src/ui/components/FunctionsView.js +69 -9
  101. package/dist/src/ui/components/FunctionsView.js.map +1 -1
  102. package/dist/src/ui/components/JobsView.d.ts +7 -0
  103. package/dist/src/ui/components/JobsView.js +55 -15
  104. package/dist/src/ui/components/JobsView.js.map +1 -1
  105. package/dist/src/ui/components/SourceDataViewer.d.ts +8 -0
  106. package/dist/src/ui/components/SourceDataViewer.js +84 -0
  107. package/dist/src/ui/components/SourceDataViewer.js.map +1 -0
  108. package/dist/src/ui/components/SourceJobsSection.d.ts +8 -0
  109. package/dist/src/ui/components/SourceJobsSection.js +99 -0
  110. package/dist/src/ui/components/SourceJobsSection.js.map +1 -0
  111. package/dist/src/ui/components/SourceLifecycleSection.d.ts +7 -0
  112. package/dist/src/ui/components/SourceLifecycleSection.js +58 -0
  113. package/dist/src/ui/components/SourceLifecycleSection.js.map +1 -0
  114. package/dist/src/ui/components/SourceSchemaViewer.d.ts +7 -0
  115. package/dist/src/ui/components/SourceSchemaViewer.js +65 -0
  116. package/dist/src/ui/components/SourceSchemaViewer.js.map +1 -0
  117. package/dist/src/ui/components/SourceWebhookEditor.d.ts +8 -0
  118. package/dist/src/ui/components/SourceWebhookEditor.js +168 -0
  119. package/dist/src/ui/components/SourceWebhookEditor.js.map +1 -0
  120. package/dist/src/ui/components/SourcesView.d.ts +14 -0
  121. package/dist/src/ui/components/SourcesView.js +74 -0
  122. package/dist/src/ui/components/SourcesView.js.map +1 -0
  123. package/dist/src/ui/components/TabbedConsole.d.ts +3 -1
  124. package/dist/src/ui/components/TabbedConsole.js +81 -11
  125. package/dist/src/ui/components/TabbedConsole.js.map +1 -1
  126. package/dist/src/ui/hooks/useEntityNavigation.d.ts +72 -0
  127. package/dist/src/ui/hooks/useEntityNavigation.js +150 -0
  128. package/dist/src/ui/hooks/useEntityNavigation.js.map +1 -0
  129. package/dist/src/ui/hooks/useQueryParams.d.ts +6 -0
  130. package/dist/src/ui/hooks/useQueryParams.js +39 -0
  131. package/dist/src/ui/hooks/useQueryParams.js.map +1 -0
  132. package/dist/src/ui/index.js +3 -2
  133. package/dist/src/ui/index.js.map +1 -1
  134. package/dist/src/utils/functionEndpoints.d.ts +24 -0
  135. package/dist/src/utils/functionEndpoints.js +45 -0
  136. package/dist/src/utils/functionEndpoints.js.map +1 -0
  137. package/package.json +2 -1
  138. package/dist/public/bundle.932ab47a0dbf0319bc8b.js +0 -3
  139. package/dist/public/bundle.932ab47a0dbf0319bc8b.js.map +0 -1
  140. package/dist/src/server/api/lifecycle.d.ts +0 -6
  141. package/dist/src/server/api/lifecycle.js +0 -72
  142. package/dist/src/server/api/lifecycle.js.map +0 -1
@@ -1,6 +0,0 @@
1
- import express from 'express';
2
- import { App } from '../../types/app';
3
- /**
4
- * Create API routes for lifecycle hooks
5
- */
6
- export declare function createLifecycleRoutes(app: App): express.Router;
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createLifecycleRoutes = createLifecycleRoutes;
7
- const express_1 = __importDefault(require("express"));
8
- const app_1 = require("../../types/app");
9
- /**
10
- * Create API routes for lifecycle hooks
11
- */
12
- function createLifecycleRoutes(app) {
13
- const router = express_1.default.Router();
14
- // Get lifecycle status
15
- router.get('/status', (req, res) => {
16
- res.json({
17
- hasLifecycleClass: true, // This would be determined by checking for the Lifecycle class
18
- hooks: [
19
- { type: app_1.LifecycleHookType.INSTALL, available: true },
20
- { type: app_1.LifecycleHookType.UNINSTALL, available: true },
21
- { type: app_1.LifecycleHookType.UPGRADE, available: true }
22
- ]
23
- });
24
- });
25
- // Execute install hook
26
- router.post('/install', async (req, res) => {
27
- const settings = req.body.settings || {};
28
- // For now, just return a placeholder response
29
- // This will be replaced with actual code execution later
30
- res.json({
31
- success: true,
32
- settings,
33
- logs: [
34
- 'Install lifecycle hook started',
35
- 'Install lifecycle hook completed'
36
- ],
37
- executionTime: 0
38
- });
39
- });
40
- // Execute uninstall hook
41
- router.post('/uninstall', async (req, res) => {
42
- // For now, just return a placeholder response
43
- // This will be replaced with actual code execution later
44
- res.json({
45
- success: true,
46
- logs: [
47
- 'Uninstall lifecycle hook started',
48
- 'Uninstall lifecycle hook completed'
49
- ],
50
- executionTime: 0
51
- });
52
- });
53
- // Execute upgrade hook
54
- router.post('/upgrade', async (req, res) => {
55
- const previousVersion = req.body.previousVersion || '0.0.0';
56
- const settings = req.body.settings || {};
57
- // For now, just return a placeholder response
58
- // This will be replaced with actual code execution later
59
- res.json({
60
- success: true,
61
- previousVersion,
62
- settings,
63
- logs: [
64
- 'Upgrade lifecycle hook started',
65
- 'Upgrade lifecycle hook completed'
66
- ],
67
- executionTime: 0
68
- });
69
- });
70
- return router;
71
- }
72
- //# sourceMappingURL=lifecycle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../../src/server/api/lifecycle.ts"],"names":[],"mappings":";;;;;AAMA,sDAkEC;AAxED,sDAA8B;AAC9B,yCAAyD;AAEzD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,GAAQ;IAC5C,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,uBAAuB;IACvB,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACjC,GAAG,CAAC,IAAI,CAAC;YACP,iBAAiB,EAAE,IAAI,EAAE,+DAA+D;YACxF,KAAK,EAAE;gBACL,EAAE,IAAI,EAAE,uBAAiB,C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