@adobe/genstudio-extensibility-sdk
Version:
GenStudio Extensibility SDK
55 lines (47 loc) • 1.34 kB
Markdown
GenStudio Extensibility SDK
**This repo is still WIP. Please use caution and reach out to GS team before using**
Please refer to the [API Documentation](https://opensource.adobe.com/genstudio-extensibility-sdk/) for more information.
```
npm install @adobe/genstudio-extensibility-sdk
```
```ts
import { Experience, ExperienceField } from '@adobe/genstudio-extensibility-sdk'
const experienceFields = new Map<string, ExperienceField>([
[
"subject",
{
fieldRole: {
name: "subject",
},
fieldName: "subject",
fieldValue: "test field value",
readonly: false,
},
],
[
"section2_image",
{
fieldRole: {
name: "image",
},
fieldName: "section2_image",
fieldValue: {
test: "1",
},
readonly: true,
},
],
]);
const experience: Experience = {
id: "230853274642",
experienceFields: experienceFields,
};
```
Contributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.
This project is licensed under the Apache V2 License. See [LICENSE](./LICENSE) for more information.