From d2153e035fc1b4f282587acc126fb2f43b211d28 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Mon, 15 Jul 2024 17:05:08 -0400 Subject: [PATCH] Reorg examples extra. Fixes #476 --- .changeset/pre.json | 8 +- .changeset/weak-dragons-wonder.md | 2 + .lintstagedrc.mjs | 8 +- .monorepolint.config.mjs | 13 +- eslint.config.mjs | 2 + examples-extra/todoapp/src/main.tsx | 10 - .../example-next-static-export/package.json | 2 +- .../src/app/page.tsx | 2 +- .../src/lib/client.ts | 2 +- examples/example-react/package.json | 2 +- examples/example-react/src/Home.tsx | 2 +- examples/example-react/src/client.ts | 2 +- .../package.json | 2 +- .../src/client.ts | 2 +- .../example-tutorial-todo-app/package.json | 2 +- .../example-tutorial-todo-app/src/client.ts | 2 +- examples/example-vue/package.json | 2 +- examples/example-vue/src/Home.vue | 2 +- examples/example-vue/src/client.ts | 2 +- .../e2e.generated.1.1.x}/CHANGELOG.md | 2 +- .../e2e.generated.1.1.x}/README.md | 0 .../e2e.generated.1.1.x}/ontology.json | 0 .../e2e.generated.1.1.x}/package.json | 2 +- .../src/generatedNoCheck/FoundryClient.ts | 0 .../src/generatedNoCheck/Ontology.ts | 0 .../src/generatedNoCheck/index.ts | 0 .../@foundry/oauth-client/dist/Auth.ts | 0 .../ConfidentialClientAuth.ts | 0 .../dist/ConfidentialClient/index.ts | 0 .../@foundry/oauth-client/dist/OAuthClient.ts | 0 .../@foundry/oauth-client/dist/OAuthToken.ts | 0 .../dist/PublicClient/PublicClientAuth.ts | 0 .../oauth-client/dist/PublicClient/index.ts | 0 .../@foundry/oauth-client/dist/Token.ts | 0 .../dist/UserToken/UserTokenAuth.ts | 0 .../oauth-client/dist/UserToken/index.ts | 0 .../@foundry/oauth-client/dist/index.ts | 0 .../dist/aggregations/Aggregations.ts | 0 .../dist/aggregations/ComputeStep.ts | 0 .../dist/aggregations/CountOperation.ts | 0 .../aggregations/groupBy/BooleanGroupBy.ts | 0 .../dist/aggregations/groupBy/GroupKeyType.ts | 0 .../aggregations/groupBy/LocalDateGroupBy.ts | 0 .../aggregations/groupBy/NumericGroupBy.ts | 0 .../aggregations/groupBy/StringGroupBy.ts | 0 .../aggregations/groupBy/TimestampGroupBy.ts | 0 .../dist/aggregations/groupBy/index.ts | 0 .../dist/aggregations/index.ts | 0 .../internalAggregationRequest.ts | 0 ...ximateDistinctCountAggregatableProperty.ts | 0 .../metrics/DefaultAggregatableProperty.ts | 0 .../metrics/LocalDatePropertyMetric.ts | 0 .../metrics/MultipleAggregatableProperty.ts | 0 .../metrics/NumericPropertyMetric.ts | 0 .../metrics/TimestampPropertyMetric.ts | 0 .../dist/aggregations/metrics/index.ts | 0 .../dist/aggregations/metrics/metrics.ts | 0 .../dist/baseTypes/ActionType.ts | 0 .../dist/baseTypes/ObjectType.ts | 0 .../dist/baseTypes/OntologyObject.ts | 0 .../dist/baseTypes/Queries.ts | 0 .../dist/baseTypes/attachments/Attachment.ts | 0 .../dist/baseTypes/attachments/Attachments.ts | 0 .../dist/baseTypes/attachments/index.ts | 0 .../dist/baseTypes/geoshapes/Distance.ts | 0 .../dist/baseTypes/geoshapes/GeoJson.ts | 0 .../dist/baseTypes/geoshapes/GeoPoint.ts | 0 .../dist/baseTypes/geoshapes/GeoShape.ts | 0 .../baseTypes/geoshapes/GeometryCollection.ts | 0 .../dist/baseTypes/geoshapes/LineString.ts | 0 .../dist/baseTypes/geoshapes/MultiGeoPoint.ts | 0 .../baseTypes/geoshapes/MultiLineString.ts | 0 .../dist/baseTypes/geoshapes/MultiPolygon.ts | 0 .../dist/baseTypes/geoshapes/Polygon.ts | 0 .../dist/baseTypes/geoshapes/index.ts | 0 .../ontology-runtime/dist/baseTypes/index.ts | 0 .../ontology-runtime/dist/baseTypes/links.ts | 0 .../dist/baseTypes/localDate.ts | 0 .../objectset/ObjectSetDefinition.ts | 0 .../baseTypes/objectset/OntologyObjectSet.ts | 0 .../dist/baseTypes/objectset/index.ts | 0 .../FilteredPropertiesTerminalOperations.ts | 0 .../dist/baseTypes/sharedObjectCode/index.ts | 0 .../dist/baseTypes/timeseries/TimeSeries.ts | 0 .../timeseries/TimeSeriesDuration.ts | 0 .../baseTypes/timeseries/TimeSeriesPoint.ts | 0 .../baseTypes/timeseries/TimeSeriesQuery.ts | 0 .../TimeSeriesTerminalOperations.ts | 0 .../dist/baseTypes/timeseries/index.ts | 0 .../dist/baseTypes/timestamp.ts | 0 .../dist/client/clientOptions.ts | 0 .../ontology-runtime/dist/client/index.ts | 0 .../dist/filters/ArrayFilter.ts | 0 .../dist/filters/AttachmentFilter.ts | 0 .../dist/filters/BooleanFilter.ts | 0 .../dist/filters/DateTimeFilters.ts | 0 .../ontology-runtime/dist/filters/Filters.ts | 0 .../dist/filters/GeoPointFilter.ts | 0 .../dist/filters/GeoShapeFilter.ts | 0 .../dist/filters/NumericFilter.ts | 0 .../ontology-runtime/dist/filters/Op.ts | 0 .../dist/filters/OrderByOption.ts | 0 .../dist/filters/StringFilter.ts | 0 .../ontology-runtime/dist/filters/index.ts | 0 .../@foundry/ontology-runtime/dist/index.ts | 0 .../dist/ontologyProvider/Errors.ts | 0 .../dist/ontologyProvider/OntologyMetadata.ts | 0 .../dist/ontologyProvider/Result.ts | 0 .../dist/ontologyProvider/index.ts | 0 .../ontology-runtime/dist/paging/Page.ts | 0 .../ontology-runtime/dist/paging/index.ts | 0 .../ontology/actions/Actions.ts | 0 .../ontology/actions/BatchActions.ts | 0 .../ontology/actions/BulkActions.ts | 0 .../actions/actionTakesAllParameterTypes.ts | 0 .../ontology/actions/createTodo.ts | 0 .../ontology/actions/index.ts | 0 .../src/generatedNoCheck/ontology/index.ts | 0 .../objects/ObjectTypeWithAllPropertyTypes.ts | 0 .../ontology/objects/Objects.ts | 0 .../ontology/objects/Person.ts | 0 .../generatedNoCheck/ontology/objects/Todo.ts | 0 .../ontology/objects/index.ts | 0 .../ObjectTypeWithAllPropertyTypes.ts | 0 .../ontology/objects/objects-api/Person.ts | 0 .../ontology/objects/objects-api/Todo.ts | 0 .../ontology/queries/Queries.ts | 0 .../ontology/queries/getTodoCount.ts | 0 .../ontology/queries/index.ts | 0 .../queries/queryTakesAllParameterTypes.ts | 0 .../e2e.generated.1.1.x}/src/index.ts | 0 .../e2e.generated.1.1.x}/tsconfig.cjs.json | 0 .../e2e.generated.1.1.x}/tsconfig.json | 0 .../e2e.generated.1.1.x}/tsup.config.js | 0 .../e2e.generated.1.1.x}/turbo.json | 0 .../e2e.generated.catchall}/README.md | 0 .../e2e.generated.catchall}/ontology.json | 0 .../e2e.generated.catchall}/package.json | 6 +- .../src/generatedNoCheck/Ontology.ts | 0 .../src/generatedNoCheck/OntologyMetadata.ts | 0 .../src/generatedNoCheck/index.ts | 0 .../actions/actionTakesAllParameterTypes.ts | 0 .../ontology/actions/assignEmployee1.ts | 0 .../ontology/actions/createTodo.ts | 0 .../ontology/actions/index.ts | 0 .../generatedNoCheck/ontology/interfaces.ts | 0 .../ontology/interfaces/FooInterface.ts | 0 .../src/generatedNoCheck/ontology/objects.ts | 0 .../ontology/objects/BoundariesUsState.ts | 0 .../objects/BuilderDeploymentState.ts | 0 .../ontology/objects/Employee.ts | 0 .../objects/ObjectTypeWithAllPropertyTypes.ts | 0 .../ontology/objects/Person.ts | 0 .../generatedNoCheck/ontology/objects/Todo.ts | 0 .../ontology/objects/Venture.ts | 0 .../ontology/objects/WeatherStation.ts | 0 .../ontology/queries/getTodoCount.ts | 9 + .../ontology/queries/index.ts | 2 + .../queries/queryTakesAllParameterTypes.ts | 111 ++++ .../e2e.generated.catchall}/src/index.ts | 0 .../src/interfaces/Emailable.ts | 0 .../e2e.generated.catchall}/tsconfig.json | 0 .../e2e.generated.catchall}/tsup.config.js | 0 .../e2e.generated.catchall}/turbo.json | 0 .../e2e.sandbox.catchall}/package.json | 8 +- .../e2e.sandbox.catchall}/src/__global.d.ts | 0 .../e2e.sandbox.catchall}/src/client.ts | 0 .../src/demoStrictness.ts | 2 +- .../e2e.sandbox.catchall}/src/index.ts | 0 .../fetchAggregationForEmployees.ts | 2 +- .../fetchAggregationForEmployeesGrouped.ts | 2 +- .../src/legacy-examples/fetchEmployeeLead.ts | 2 +- .../src/legacy-examples/fetchEmployeePage.ts | 2 +- .../fetchEmployeePageByAdUsername.ts | 2 +- .../fetchEmployeePageByAdUsernameAndLimit.ts | 2 +- .../e2e.sandbox.catchall}/src/logger.ts | 0 .../e2e.sandbox.catchall}/src/loggingFetch.ts | 0 .../src/public/checkUnstableBulkLinks.ts | 2 +- .../src/runAggregationGroupByDatesTest.ts | 2 +- .../src/runAggregationsTest.ts | 2 +- .../src/runAssignEmployeeToVentureTest.ts | 6 +- .../src/runFoundryPlatformApiTest.ts | 0 .../runFoundrySdkClientVerificationTest.ts | 0 .../src/runGeoQueriesTest.ts | 5 +- .../src/runInterfacesTest.ts | 2 +- .../src/runLegacyExamples.ts | 0 .../src/runSubscriptionsTest.ts | 2 +- .../e2e.sandbox.catchall}/src/typeChecks.ts | 4 +- .../e2e.sandbox.catchall}/tsconfig.json | 0 .../e2e.sandbox.catchall}/tsup.config.js | 0 .../e2e.sandbox.todoapp}/.env.local.sample | 0 .../e2e.sandbox.todoapp}/.eslintrc.cjs | 4 +- .../e2e.sandbox.todoapp}/.gitignore | 0 .../e2e.sandbox.todoapp}/CHANGELOG.md | 2 +- .../e2e.sandbox.todoapp}/README.md | 0 .../e2e.sandbox.todoapp}/index.html | 0 .../e2e.sandbox.todoapp}/ontology.json | 0 .../e2e.sandbox.todoapp}/package.json | 2 +- .../e2e.sandbox.todoapp}/postcss.config.js | 2 +- .../e2e.sandbox.todoapp}/src/App.css | 0 .../e2e.sandbox.todoapp}/src/App.tsx | 19 +- .../src/CreateTodoForm.tsx | 17 +- .../e2e.sandbox.todoapp}/src/TodoView.tsx | 38 +- .../e2e.sandbox.todoapp}/src/foundryClient.ts | 0 .../src/generatedNoCheck2/Ontology.ts | 0 .../src/generatedNoCheck2/OntologyMetadata.ts | 0 .../src/generatedNoCheck2/index.ts | 0 .../ontology/actions/completeTodo.ts | 0 .../ontology/actions/createTodo.ts | 0 .../ontology/actions/index.ts | 0 .../generatedNoCheck2/ontology/interfaces.ts | 0 .../src/generatedNoCheck2/ontology/objects.ts | 0 .../ontology/objects/Todo.ts | 0 .../ontology/queries/index.ts | 1 + .../e2e.sandbox.todoapp}/src/index.css | 0 packages/e2e.sandbox.todoapp/src/main.tsx | 10 + .../e2e.sandbox.todoapp}/src/useTodos.tsx | 0 .../e2e.sandbox.todoapp}/src/vite-env.d.ts | 0 .../e2e.sandbox.todoapp}/tailwind.config.js | 0 .../e2e.sandbox.todoapp}/tsconfig.json | 0 .../e2e.sandbox.todoapp}/tsconfig.node.json | 0 .../e2e.sandbox.todoapp}/turbo.json | 0 .../e2e.sandbox.todoapp}/vite.config.mts | 0 packages/example-generator/src/run.ts | 6 +- pnpm-lock.yaml | 509 ++++++++++-------- scripts/e2e-generate-as-package.sh | 6 +- turbo.json | 2 +- 227 files changed, 547 insertions(+), 319 deletions(-) create mode 100644 .changeset/weak-dragons-wonder.md delete mode 100644 examples-extra/todoapp/src/main.tsx rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/CHANGELOG.md (99%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/README.md (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/ontology.json (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/package.json (98%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/FoundryClient.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/Ontology.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/Auth.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/ConfidentialClient/ConfidentialClientAuth.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/ConfidentialClient/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/OAuthClient.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/OAuthToken.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/PublicClient/PublicClientAuth.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/PublicClient/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/Token.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/UserToken/UserTokenAuth.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/UserToken/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/oauth-client/dist/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/Aggregations.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/ComputeStep.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/CountOperation.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/BooleanGroupBy.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/GroupKeyType.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/LocalDateGroupBy.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/NumericGroupBy.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/StringGroupBy.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/TimestampGroupBy.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/groupBy/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/internalAggregationRequest.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/ApproximateDistinctCountAggregatableProperty.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/DefaultAggregatableProperty.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/LocalDatePropertyMetric.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/MultipleAggregatableProperty.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/NumericPropertyMetric.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/TimestampPropertyMetric.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/aggregations/metrics/metrics.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/ActionType.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/ObjectType.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/OntologyObject.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/Queries.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/attachments/Attachment.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/attachments/Attachments.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/attachments/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/Distance.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/GeoJson.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/GeoPoint.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/GeoShape.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/GeometryCollection.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/LineString.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/MultiGeoPoint.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/MultiLineString.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/MultiPolygon.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/Polygon.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/geoshapes/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/links.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/localDate.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/objectset/ObjectSetDefinition.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/objectset/OntologyObjectSet.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/objectset/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/sharedObjectCode/FilteredPropertiesTerminalOperations.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/sharedObjectCode/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/TimeSeries.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/TimeSeriesDuration.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/TimeSeriesPoint.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/TimeSeriesQuery.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/TimeSeriesTerminalOperations.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timeseries/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/baseTypes/timestamp.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/client/clientOptions.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/client/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/ArrayFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/AttachmentFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/BooleanFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/DateTimeFilters.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/Filters.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/GeoPointFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/GeoShapeFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/NumericFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/Op.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/OrderByOption.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/StringFilter.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/filters/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/ontologyProvider/Errors.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/ontologyProvider/OntologyMetadata.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/ontologyProvider/Result.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/ontologyProvider/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/paging/Page.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/internal/@foundry/ontology-runtime/dist/paging/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/Actions.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/BatchActions.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/BulkActions.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/actionTakesAllParameterTypes.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/createTodo.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/actions/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/ObjectTypeWithAllPropertyTypes.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/Objects.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/Person.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/Todo.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/objects-api/ObjectTypeWithAllPropertyTypes.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/objects-api/Person.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/objects/objects-api/Todo.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/queries/Queries.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/queries/getTodoCount.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/queries/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/generatedNoCheck/ontology/queries/queryTakesAllParameterTypes.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/src/index.ts (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/tsconfig.cjs.json (100%) rename {examples-extra/basic/cli => packages/e2e.generated.1.1.x}/tsconfig.json (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.1.1.x}/tsup.config.js (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.1.1.x}/turbo.json (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/README.md (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/ontology.json (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/package.json (93%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/Ontology.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/OntologyMetadata.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/index.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/actions/actionTakesAllParameterTypes.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/actions/assignEmployee1.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/actions/createTodo.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/actions/index.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/interfaces.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/interfaces/FooInterface.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/BoundariesUsState.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/BuilderDeploymentState.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/Employee.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/ObjectTypeWithAllPropertyTypes.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/Person.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/Todo.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/Venture.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/generatedNoCheck/ontology/objects/WeatherStation.ts (100%) create mode 100644 packages/e2e.generated.catchall/src/generatedNoCheck/ontology/queries/getTodoCount.ts create mode 100644 packages/e2e.generated.catchall/src/generatedNoCheck/ontology/queries/index.ts create mode 100644 packages/e2e.generated.catchall/src/generatedNoCheck/ontology/queries/queryTakesAllParameterTypes.ts rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/index.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/src/interfaces/Emailable.ts (100%) rename {examples-extra/basic/sdk => packages/e2e.generated.catchall}/tsconfig.json (100%) rename {examples-extra/basic/cli => packages/e2e.generated.catchall}/tsup.config.js (100%) rename {examples-extra/one_dot_one => packages/e2e.generated.catchall}/turbo.json (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/package.json (90%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/__global.d.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/client.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/demoStrictness.ts (98%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/index.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchAggregationForEmployees.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchAggregationForEmployeesGrouped.ts (98%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchEmployeeLead.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchEmployeePage.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchEmployeePageByAdUsername.ts (95%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/legacy-examples/fetchEmployeePageByAdUsernameAndLimit.ts (98%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/logger.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/loggingFetch.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/public/checkUnstableBulkLinks.ts (96%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runAggregationGroupByDatesTest.ts (96%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runAggregationsTest.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runAssignEmployeeToVentureTest.ts (94%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runFoundryPlatformApiTest.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runFoundrySdkClientVerificationTest.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runGeoQueriesTest.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runInterfacesTest.ts (97%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runLegacyExamples.ts (100%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/runSubscriptionsTest.ts (96%) rename {examples-extra/basic/cli => packages/e2e.sandbox.catchall}/src/typeChecks.ts (96%) rename {examples-extra/one_dot_one => packages/e2e.sandbox.catchall}/tsconfig.json (100%) rename {examples-extra/basic/sdk => packages/e2e.sandbox.catchall}/tsup.config.js (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/.env.local.sample (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/.eslintrc.cjs (73%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/.gitignore (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/CHANGELOG.md (97%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/README.md (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/index.html (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/ontology.json (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/package.json (97%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/postcss.config.js (96%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/App.css (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/App.tsx (72%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/CreateTodoForm.tsx (85%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/TodoView.tsx (69%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/foundryClient.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/Ontology.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/OntologyMetadata.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/index.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/actions/completeTodo.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/actions/createTodo.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/actions/index.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/interfaces.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/objects.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/generatedNoCheck2/ontology/objects/Todo.ts (100%) create mode 100644 packages/e2e.sandbox.todoapp/src/generatedNoCheck2/ontology/queries/index.ts rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/index.css (100%) create mode 100644 packages/e2e.sandbox.todoapp/src/main.tsx rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/useTodos.tsx (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/src/vite-env.d.ts (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/tailwind.config.js (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/tsconfig.json (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/tsconfig.node.json (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/turbo.json (100%) rename {examples-extra/todoapp => packages/e2e.sandbox.todoapp}/vite.config.mts (100%) diff --git a/.changeset/pre.json b/.changeset/pre.json index 887ecc366..36cf49a27 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -2,11 +2,11 @@ "mode": "pre", "tag": "beta", "initialVersions": { - "@osdk/examples.basic.cli": "0.0.0", - "@osdk/examples.basic.sdk": "0.0.0", + "@osdk/e2e.sandbox.catchall": "0.0.0", + "@osdk/e2e.generated.catchall": "0.0.0", "@osdk/examples.docs.example": "0.0.1", - "@osdk/examples.one.dot.one": "0.0.17", - "@osdk/examples.todoapp": "0.0.10", + "@osdk/e2e.generated.1.1.x": "0.0.17", + "@osdk/e2e.sandbox.todoappapp": "0.0.10", "@osdk/examples.next-static-export": "0.0.0", "@osdk/examples.react": "0.0.0", "@osdk/examples.tutorial-todo-app": "0.0.0", diff --git a/.changeset/weak-dragons-wonder.md b/.changeset/weak-dragons-wonder.md new file mode 100644 index 000000000..a845151cc --- /dev/null +++ b/.changeset/weak-dragons-wonder.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.lintstagedrc.mjs b/.lintstagedrc.mjs index 0c7a259b5..bbfaf8424 100644 --- a/.lintstagedrc.mjs +++ b/.lintstagedrc.mjs @@ -15,12 +15,16 @@ export default { "packages/monorepo.*/**/*.{js,jsx,ts,tsx,mjs,cjs}": [ "dprint fmt", ], - "{packages,examples-extra/basic}/**/*.{js,jsx,ts,tsx,mjs,cjs}": ( + "packages/**/*.{js,jsx,ts,tsx,mjs,cjs}": ( files, ) => { const match = micromatch.not( files, - ["**/templates/**/*", "**/generatedNoCheck/**/*"], + [ + "**/templates/**/*", + "**/generatedNoCheck/**/*", + "**/generatedNoCheck2/**/*", + ], ); if (match.length === 0) return []; return [ diff --git a/.monorepolint.config.mjs b/.monorepolint.config.mjs index 9ecc0de13..18b2261ca 100644 --- a/.monorepolint.config.mjs +++ b/.monorepolint.config.mjs @@ -36,6 +36,8 @@ const nonStandardPackages = [ "@osdk/examples.*", "@osdk/foundry-sdk-generator", "@osdk/monorepo.*", + "@osdk/e2e.sandbox.*", // sandboxes for manual e2e testing + "@osdk/e2e.generated.*", // generated sdks for e2e testing "@osdk/shared.client", "@osdk/tests.*", ]; @@ -442,19 +444,22 @@ export default { ), ...standardPackageRules({ - includePackages: ["@osdk/examples.basic.**"], - excludePackages: ["@osdk/examples.one.dot.one"], + includePackages: [ + "@osdk/e2e.generated.catchall", + "@osdk/e2e.sandbox.catchall", + ], + excludePackages: ["@osdk/e2e.generated.1.1.x"], }, { esmOnly: true, legacy: false, - packageDepth: 3, + packageDepth: 2, type: "example", }), // most packages can use the newest typescript, but we enforce that @osdk/example.one.dot.one uses TS4.9 // so that we get build-time checking to make sure we don't regress v1.1 clients using an older Typescript. ...standardPackageRules({ - includePackages: ["@osdk/examples.one.dot.one"], + includePackages: ["@osdk/e2e.generated.1.1.x"], }, { legacy: false, packageDepth: 2, diff --git a/eslint.config.mjs b/eslint.config.mjs index db0fd41ce..69dc1cefb 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -106,6 +106,7 @@ export default tseslint.config( "**/bin/*.mjs", "**/bin/*.cjs", "examples-extra/**/*", + "packages/e2e.sandbox.*/**/*", ], rules: { "header/header": "off", @@ -120,6 +121,7 @@ export default tseslint.config( "**/*.test.ts", "**/test/*", "examples-extra/**/*", + "packages/e2e.sandbox.*/**/*", ], rules: { "no-console": "off", diff --git a/examples-extra/todoapp/src/main.tsx b/examples-extra/todoapp/src/main.tsx deleted file mode 100644 index 3d7150da8..000000000 --- a/examples-extra/todoapp/src/main.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' -import App from './App.tsx' -import './index.css' - -ReactDOM.createRoot(document.getElementById('root')!).render( - - - , -) diff --git a/examples/example-next-static-export/package.json b/examples/example-next-static-export/package.json index 8246bf121..c98721861 100644 --- a/examples/example-next-static-export/package.json +++ b/examples/example-next-static-export/package.json @@ -14,7 +14,7 @@ "start": "next start" }, "dependencies": { - "@osdk/examples.one.dot.one": "workspace:*", + "@osdk/e2e.generated.1.1.x": "workspace:*", "next": "14.2.3", "react": "^18", "react-dom": "^18" diff --git a/examples/example-next-static-export/src/app/page.tsx b/examples/example-next-static-export/src/app/page.tsx index 589cae4b0..100175c50 100644 --- a/examples/example-next-static-export/src/app/page.tsx +++ b/examples/example-next-static-export/src/app/page.tsx @@ -15,7 +15,7 @@ function Home() { return (
-

@osdk/examples.one.dot.one

+

@osdk/e2e.generated.1.1.x

Welcome to your Ontology SDK! Try using any of the following methods now. diff --git a/examples/example-next-static-export/src/lib/client.ts b/examples/example-next-static-export/src/lib/client.ts index cb69b4fee..24c84ab66 100644 --- a/examples/example-next-static-export/src/lib/client.ts +++ b/examples/example-next-static-export/src/lib/client.ts @@ -1,4 +1,4 @@ -import { FoundryClient, PublicClientAuth } from "@osdk/examples.one.dot.one"; +import { FoundryClient, PublicClientAuth } from "@osdk/e2e.generated.1.1.x"; const url = process.env.NEXT_PUBLIC_FOUNDRY_API_URL; const clientId = process.env.NEXT_PUBLIC_FOUNDRY_CLIENT_ID; diff --git a/examples/example-react/package.json b/examples/example-react/package.json index d22a43404..c4c92d5f0 100644 --- a/examples/example-react/package.json +++ b/examples/example-react/package.json @@ -14,7 +14,7 @@ "preview": "vite preview" }, "dependencies": { - "@osdk/examples.one.dot.one": "workspace:*", + "@osdk/e2e.generated.1.1.x": "workspace:*", "react": "^18", "react-dom": "^18", "react-router-dom": "^6.23.1" diff --git a/examples/example-react/src/Home.tsx b/examples/example-react/src/Home.tsx index 7fa2a8b85..5b4375dc8 100644 --- a/examples/example-react/src/Home.tsx +++ b/examples/example-react/src/Home.tsx @@ -9,7 +9,7 @@ function Home() { return ( -

@osdk/examples.one.dot.one

+

@osdk/e2e.generated.1.1.x

Welcome to your Ontology SDK! Try using any of the following methods now. diff --git a/examples/example-react/src/client.ts b/examples/example-react/src/client.ts index 6c54ec01d..83a1db626 100644 --- a/examples/example-react/src/client.ts +++ b/examples/example-react/src/client.ts @@ -1,4 +1,4 @@ -import { FoundryClient, PublicClientAuth } from "@osdk/examples.one.dot.one"; +import { FoundryClient, PublicClientAuth } from "@osdk/e2e.generated.1.1.x"; const url = import.meta.env.VITE_FOUNDRY_API_URL; const clientId = import.meta.env.VITE_FOUNDRY_CLIENT_ID; diff --git a/examples/example-tutorial-todo-aip-app/package.json b/examples/example-tutorial-todo-aip-app/package.json index 1f34c26fc..9d2e18782 100644 --- a/examples/example-tutorial-todo-aip-app/package.json +++ b/examples/example-tutorial-todo-aip-app/package.json @@ -14,7 +14,7 @@ "preview": "vite preview" }, "dependencies": { - "@osdk/examples.one.dot.one": "workspace:*", + "@osdk/e2e.generated.1.1.x": "workspace:*", "react": "^18", "react-dom": "^18", "react-router-dom": "^6.23.1", diff --git a/examples/example-tutorial-todo-aip-app/src/client.ts b/examples/example-tutorial-todo-aip-app/src/client.ts index 6c54ec01d..83a1db626 100644 --- a/examples/example-tutorial-todo-aip-app/src/client.ts +++ b/examples/example-tutorial-todo-aip-app/src/client.ts @@ -1,4 +1,4 @@ -import { FoundryClient, PublicClientAuth } from "@osdk/examples.one.dot.one"; +import { FoundryClient, PublicClientAuth } from "@osdk/e2e.generated.1.1.x"; const url = import.meta.env.VITE_FOUNDRY_API_URL; const clientId = import.meta.env.VITE_FOUNDRY_CLIENT_ID; diff --git a/examples/example-tutorial-todo-app/package.json b/examples/example-tutorial-todo-app/package.json index 3b1aebe5c..a723d4e69 100644 --- a/examples/example-tutorial-todo-app/package.json +++ b/examples/example-tutorial-todo-app/package.json @@ -14,7 +14,7 @@ "preview": "vite preview" }, "dependencies": { - "@osdk/examples.one.dot.one": "workspace:*", + "@osdk/e2e.generated.1.1.x": "workspace:*", "react": "^18", "react-dom": "^18", "react-router-dom": "^6.23.1", diff --git a/examples/example-tutorial-todo-app/src/client.ts b/examples/example-tutorial-todo-app/src/client.ts index 6c54ec01d..83a1db626 100644 --- a/examples/example-tutorial-todo-app/src/client.ts +++ b/examples/example-tutorial-todo-app/src/client.ts @@ -1,4 +1,4 @@ -import { FoundryClient, PublicClientAuth } from "@osdk/examples.one.dot.one"; +import { FoundryClient, PublicClientAuth } from "@osdk/e2e.generated.1.1.x"; const url = import.meta.env.VITE_FOUNDRY_API_URL; const clientId = import.meta.env.VITE_FOUNDRY_CLIENT_ID; diff --git a/examples/example-vue/package.json b/examples/example-vue/package.json index 81a9d3671..5d2593dd0 100644 --- a/examples/example-vue/package.json +++ b/examples/example-vue/package.json @@ -13,7 +13,7 @@ "preview": "vite preview" }, "dependencies": { - "@osdk/examples.one.dot.one": "workspace:*", + "@osdk/e2e.generated.1.1.x": "workspace:*", "vue": "^3.4.27", "vue-router": "^4.2.5" }, diff --git a/examples/example-vue/src/Home.vue b/examples/example-vue/src/Home.vue index 4b68a66f7..f9a368fed 100644 --- a/examples/example-vue/src/Home.vue +++ b/examples/example-vue/src/Home.vue @@ -7,7 +7,7 @@ const queryApiNames = Object.keys(client.ontology.queries);