@optimizely/ocp-local-env 1.0.0-beta.4 → 1.0.0-beta.6
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/README.md +22 -0
- package/dist/package.json +10 -3
- package/dist/public/bundle.932ab47a0dbf0319bc8b.js +3 -0
- package/dist/public/bundle.932ab47a0dbf0319bc8b.js.map +1 -0
- package/dist/public/index.html +1 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/executor/DestinationExecutor.d.ts +19 -0
- package/dist/src/executor/DestinationExecutor.js +67 -0
- package/dist/src/executor/DestinationExecutor.js.map +1 -0
- package/dist/src/executor/FunctionExecutor.d.ts +12 -1
- package/dist/src/executor/FunctionExecutor.js +14 -2
- package/dist/src/executor/FunctionExecutor.js.map +1 -1
- package/dist/src/executor/JobExecutor.d.ts +20 -1
- package/dist/src/executor/JobExecutor.js +17 -5
- package/dist/src/executor/JobExecutor.js.map +1 -1
- package/dist/src/executor/LifecycleExecutor.d.ts +20 -1
- package/dist/src/executor/LifecycleExecutor.js +15 -3
- package/dist/src/executor/LifecycleExecutor.js.map +1 -1
- package/dist/src/executor/watcher.d.ts +0 -1
- package/dist/src/executor/watcher.js.map +1 -1
- package/dist/src/local_engine/local-engine-child-base.d.ts +15 -0
- package/dist/src/local_engine/local-engine-child-base.js +116 -0
- package/dist/src/local_engine/local-engine-child-base.js.map +1 -1
- package/dist/src/local_engine/local-engine-client.d.ts +12 -0
- package/dist/src/local_engine/local-engine-client.js +36 -0
- package/dist/src/local_engine/local-engine-client.js.map +1 -1
- package/dist/src/local_engine/local-engine-types.d.ts +18 -2
- package/dist/src/local_engine/local-engine-unified.d.ts +13 -0
- package/dist/src/local_engine/local-engine-unified.js +94 -2
- package/dist/src/local_engine/local-engine-unified.js.map +1 -1
- package/dist/src/local_engine/local-engine-utils.d.ts +0 -2
- package/dist/src/local_engine/local-engine-utils.js +17 -17
- package/dist/src/local_engine/local-engine-utils.js.map +1 -1
- package/dist/src/local_engine/localSDKConfig.d.ts +10 -1
- package/dist/src/local_engine/localSDKConfig.js +19 -10
- package/dist/src/local_engine/localSDKConfig.js.map +1 -1
- package/dist/src/local_engine/storage/LocalConfigStore.js.map +1 -1
- package/dist/src/local_engine/storage/LocalJobStore.js +1 -1
- package/dist/src/local_engine/storage/LocalJobStore.js.map +1 -1
- package/dist/src/local_engine/storage/LocalKVStore.js.map +1 -1
- package/dist/src/local_engine/storage/LocalNotificationStore.js +17 -7
- package/dist/src/local_engine/storage/LocalNotificationStore.js.map +1 -1
- package/dist/src/local_engine/storage/LocalSecretsStore.js.map +1 -1
- package/dist/src/local_engine/storage/LocalSettingsStore.js +1 -1
- package/dist/src/local_engine/storage/LocalSettingsStore.js.map +1 -1
- package/dist/src/local_engine/storage/NumberSet.js.map +1 -1
- package/dist/src/local_engine/storage/StringSet.js.map +1 -1
- package/dist/src/local_engine/utils.js +6 -7
- package/dist/src/local_engine/utils.js.map +1 -1
- package/dist/src/logging/LogManager.js.map +1 -1
- package/dist/src/server/api/destinations.d.ts +7 -0
- package/dist/src/server/api/destinations.js +144 -0
- package/dist/src/server/api/destinations.js.map +1 -0
- package/dist/src/server/api/functions.js +1 -2
- package/dist/src/server/api/functions.js.map +1 -1
- package/dist/src/server/api/jobs.d.ts +3 -1
- package/dist/src/server/api/jobs.js +3 -4
- package/dist/src/server/api/jobs.js.map +1 -1
- package/dist/src/server/api/lifecycle.js +2 -3
- package/dist/src/server/api/lifecycle.js.map +1 -1
- package/dist/src/server/api/settings.js +1 -2
- package/dist/src/server/api/settings.js.map +1 -1
- package/dist/src/server/api/stores.js.map +1 -1
- package/dist/src/server/api/v1.js +10 -11
- package/dist/src/server/api/v1.js.map +1 -1
- package/dist/src/server/api.js +5 -3
- package/dist/src/server/api.js.map +1 -1
- package/dist/src/server/app-discovery.js +1 -2
- package/dist/src/server/app-discovery.js.map +1 -1
- package/dist/src/server/config.d.ts +5 -0
- package/dist/src/server/config.js +21 -9
- package/dist/src/server/config.js.map +1 -1
- package/dist/src/server/mockDataGenerator.d.ts +2 -0
- package/dist/src/server/mockDataGenerator.js +154 -0
- package/dist/src/server/mockDataGenerator.js.map +1 -0
- package/dist/src/server.js +3 -4
- package/dist/src/server.js.map +1 -1
- package/dist/src/types/app.js +2 -2
- package/dist/src/types/app.js.map +1 -1
- package/dist/src/ui/components/App.js +3 -2
- package/dist/src/ui/components/App.js.map +1 -1
- package/dist/src/ui/components/DestinationBatchEditor.d.ts +7 -0
- package/dist/src/ui/components/DestinationBatchEditor.js +154 -0
- package/dist/src/ui/components/DestinationBatchEditor.js.map +1 -0
- package/dist/src/ui/components/DestinationSchemaViewer.d.ts +7 -0
- package/dist/src/ui/components/DestinationSchemaViewer.js +61 -0
- package/dist/src/ui/components/DestinationSchemaViewer.js.map +1 -0
- package/dist/src/ui/components/DestinationsView.d.ts +6 -0
- package/dist/src/ui/components/DestinationsView.js +47 -0
- package/dist/src/ui/components/DestinationsView.js.map +1 -0
- package/dist/src/ui/components/FunctionsView.js +8 -2
- package/dist/src/ui/components/FunctionsView.js.map +1 -1
- package/dist/src/ui/components/JobsView.js.map +1 -1
- package/dist/src/ui/components/KVStoreViewer.js.map +1 -1
- package/dist/src/ui/components/MetadataModal.d.ts +14 -0
- package/dist/src/ui/components/MetadataModal.js +28 -0
- package/dist/src/ui/components/MetadataModal.js.map +1 -0
- package/dist/src/ui/components/MetadataModal.test.d.ts +1 -0
- package/dist/src/ui/components/MetadataModal.test.js +143 -0
- package/dist/src/ui/components/MetadataModal.test.js.map +1 -0
- package/dist/src/ui/components/NotificationViewer.js.map +1 -1
- package/dist/src/ui/components/SecretsStoreViewer.js.map +1 -1
- package/dist/src/ui/components/SettingsStoreViewer.js.map +1 -1
- package/dist/src/ui/components/StoreViewer.js.map +1 -1
- package/dist/src/ui/components/TabbedConsole.js.map +1 -1
- package/dist/src/ui/components/common/DataTree.js.map +1 -1
- package/dist/src/ui/index.js.map +1 -1
- package/package.json +10 -3
- package/dist/public/bundle.da978bb5437cd82e6d37.js +0 -3
- package/dist/public/bundle.da978bb5437cd82e6d37.js.map +0 -1
- /package/dist/public/{bundle.da978bb5437cd82e6d37.js.LICENSE.txt → bundle.932ab47a0dbf0319bc8b.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -85,6 +85,28 @@ You can also use the explicit `start` command:
|
|
|
85
85
|
ocp-local-env start [options]
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
### Configuration File
|
|
89
|
+
|
|
90
|
+
You can create a `.ocp-local/config.json` file in your app directory to configure advanced options:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"account": {
|
|
95
|
+
"organizationId": "my-org-123",
|
|
96
|
+
"instanceId": "my-instance-456",
|
|
97
|
+
"trackerId": "my-tracker-id"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Account Configuration Options:**
|
|
103
|
+
|
|
104
|
+
- `organizationId` (optional): Organization ID for the account context (default: `"local-test-org"`)
|
|
105
|
+
- `instanceId` (optional): Instance ID for the account context (default: `"local-test-instance"`)
|
|
106
|
+
- `trackerId` (optional): Tracker ID for the account context (default: `"local-testing-tracker"`)
|
|
107
|
+
|
|
108
|
+
These values are used to populate the `account` object in the AppContext that's available to your app code via the app SDK. This allows you to test your app with different account configurations.
|
|
109
|
+
|
|
88
110
|
### Examples
|
|
89
111
|
|
|
90
112
|
```bash
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optimizely/ocp-local-env",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
4
4
|
"description": "Local testing environment for Optimizely Connect Platform (OCP) applications",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://github.com/ZaiusInc/ocp-local-env#readme",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@
|
|
43
|
+
"@faker-js/faker": "^10.1.0",
|
|
44
|
+
"@zaiusinc/app-sdk": "^2.3.0",
|
|
44
45
|
"@zaiusinc/node-sdk": "^2.0.0",
|
|
45
46
|
"chalk": "^4.1.2",
|
|
46
47
|
"chokidar": "^3.5.3",
|
|
@@ -55,6 +56,10 @@
|
|
|
55
56
|
"uuid": "^9.0.0"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
59
|
+
"@testing-library/dom": "^10.4.1",
|
|
60
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
61
|
+
"@testing-library/react": "^16.3.0",
|
|
62
|
+
"@testing-library/user-event": "^14.6.1",
|
|
58
63
|
"@types/express": "^4.17.23",
|
|
59
64
|
"@types/jest": "^29.2.5",
|
|
60
65
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -71,7 +76,9 @@
|
|
|
71
76
|
"eslint-plugin-react": "^7.31.11",
|
|
72
77
|
"html-webpack-plugin": "^5.5.0",
|
|
73
78
|
"husky": "^8.0.3",
|
|
79
|
+
"identity-obj-proxy": "^3.0.0",
|
|
74
80
|
"jest": "^29.3.1",
|
|
81
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
75
82
|
"lint-staged": "^16.2.0",
|
|
76
83
|
"nodemon": "^3.1.10",
|
|
77
84
|
"parse-path": "^7.0.0",
|
|
@@ -80,7 +87,7 @@
|
|
|
80
87
|
"style-loader": "^3.3.1",
|
|
81
88
|
"ts-jest": "^29.0.3",
|
|
82
89
|
"ts-loader": "^9.4.2",
|
|
83
|
-
"typescript": "^
|
|
90
|
+
"typescript": "^5.7.3",
|
|
84
91
|
"webpack": "^5.75.0",
|
|
85
92
|
"webpack-cli": "^5.0.1"
|
|
86
93
|
},
|