Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "4de40e1", "specHash": "e0ffc4a", "version": "10.10.0" }
{ "engineHash": "5e9332b", "specHash": "d028758", "version": "10.10.0" }
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
cd test-browser
npm install
npx start-server-and-test build-run 3000 'cypress run --browser ${{ matrix.browser }}'
npx start-server-and-test 'npm run build-run' http://localhost:3000 'cypress run --browser ${{ matrix.browser }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
Expand All @@ -83,7 +83,7 @@ jobs:
run: |
cd test-browser
npm install
npx start-server-and-test build-run 3000 'cypress run --browser ${{ matrix.browser }}'
npx start-server-and-test 'npm run build-run' http://localhost:3000 'cypress run --browser ${{ matrix.browser }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_browser_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: |
cd test-browser
npm install
npx start-server-and-test build-run 3000 'cypress run --browser ${{ matrix.browser }}'
npx start-server-and-test 'npm run build-run' http://localhost:3000 'cypress run --browser ${{ matrix.browser }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ the SDK are available by topic:
- [Metadata cascade policies](metadataCascadePolicies.md)
- [Metadata taxonomies](metadataTaxonomies.md)
- [Metadata templates](metadataTemplates.md)
- [Notes](notes.md)
- [Recent items](recentItems.md)
- [Retention policies](retentionPolicies.md)
- [Retention policy assignments](retentionPolicyAssignments.md)
Expand Down
26 changes: 26 additions & 0 deletions docs/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# NotesManager

- [Convert content to Box Note](#convert-content-to-box-note)

## Convert content to Box Note

Creates a Box Note (`.boxnote` file) from supported source content. See the `content_format` field for supported formats.

This operation is performed by calling function `createNoteConvertV2026R0`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/v2026.0/post-notes-convert/).

_Currently we don't have an example for calling `createNoteConvertV2026R0` in integration tests_

### Arguments

- requestBodyInput `NotesConvertRequestBodyV2026R0Input`
- Request body of createNoteConvertV2026R0 method
- optionalsInput `CreateNoteConvertV2026R0OptionalsInput`

### Returns

This function returns a value of type `NotesConvertResponseV2026R0`.

The note was created successfully.
76 changes: 27 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import { ShieldListsManager } from './managers/shieldLists';
import { ArchivesManager } from './managers/archives';
import { ExternalUsersManager } from './managers/externalUsers';
import { AutomateWorkflowsManager } from './managers/automateWorkflows';
import { NotesManager } from './managers/notes';
import { Authentication } from './networking/auth';
import { NetworkSession } from './networking/network';
import { BoxSdkError } from './box/errors';
Expand Down Expand Up @@ -192,6 +193,7 @@ export class BoxClient {
readonly archives: ArchivesManager;
readonly externalUsers: ExternalUsersManager;
readonly automateWorkflows: AutomateWorkflowsManager;
readonly notes: NotesManager;
constructor(
fields: Omit<
BoxClient,
Expand Down Expand Up @@ -279,6 +281,7 @@ export class BoxClient {
| 'archives'
| 'externalUsers'
| 'automateWorkflows'
| 'notes'
| 'networkSession'
| 'makeRequest'
| 'withAsUserHeader'
Expand Down Expand Up @@ -640,6 +643,10 @@ export class BoxClient {
auth: this.auth,
networkSession: this.networkSession,
});
this.notes = new NotesManager({
auth: this.auth,
networkSession: this.networkSession,
});
}
/**
* Make a custom http request using the client authentication and network session.
Expand Down
1 change: 1 addition & 0 deletions src/managers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ export * from './shieldLists';
export * from './archives';
export * from './externalUsers';
export * from './automateWorkflows';
export * from './notes';
Loading
Loading