@groton/canvas-api 0.3.1 → 0.3.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.3.2](https://github.com/groton-school/canvas-cli/compare/api/0.3.1...api/0.3.2) (2025-08-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * manually edited spec to make `*full_path` a path parameter ([8d21bde](https://github.com/groton-school/canvas-cli/commit/8d21bde17928492ee7c37cf222d1fc1ce5fe21f9))
11
+
5
12
  ## [0.3.1](https://github.com/groton-school/canvas-cli/compare/api/0.3.0...api/0.3.1) (2025-08-13)
6
13
 
7
14
 
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_courses.js';
2
+ export * from './resolve_path_courses_full_path.js';
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_courses.js';
2
+ export * from './resolve_path_courses_full_path.js';
@@ -0,0 +1,36 @@
1
+ import { Masquerade, Paginated } from '@groton/canvas-api.client.base';
2
+ import { Folder } from '../../../../../Resources/Files.js';
3
+ export type resolve_path_courses_full_pathPathParameters = {
4
+ /**
5
+ * ID
6
+ *
7
+ * Type: string
8
+ */
9
+ course_id: string | number;
10
+ /** Full path to folder */
11
+ full_path: string;
12
+ };
13
+ export type resolve_path_courses_full_pathSearchParameters = Masquerade & Paginated;
14
+ type Options = {
15
+ pathParams: resolve_path_courses_full_pathPathParameters;
16
+ } & ({
17
+ searchParams?: Partial<resolve_path_courses_full_pathSearchParameters>;
18
+ strict?: false;
19
+ } | {
20
+ searchParams: resolve_path_courses_full_pathSearchParameters;
21
+ strict: true;
22
+ });
23
+ /**
24
+ * Resolve path
25
+ *
26
+ * Given the full path to a folder, returns a list of all Folders in the path
27
+ * hierarchy, starting at the root folder, and ending at the requested folder.
28
+ * The given path is relative to the context's root folder and does not include
29
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
30
+ * context's root folder alone is returned. Otherwise, if no folder exists with
31
+ * the given full path, a Not Found error is returned.
32
+ *
33
+ * Nickname: resolve_path_courses_full_path
34
+ */
35
+ export declare function resolve_path_courses_full_path(options: Options): Promise<Folder[]>;
36
+ export {};
@@ -0,0 +1,20 @@
1
+ import { client } from '../../../../../Client.js';
2
+ /**
3
+ * Resolve path
4
+ *
5
+ * Given the full path to a folder, returns a list of all Folders in the path
6
+ * hierarchy, starting at the root folder, and ending at the requested folder.
7
+ * The given path is relative to the context's root folder and does not include
8
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
9
+ * context's root folder alone is returned. Otherwise, if no folder exists with
10
+ * the given full path, a Not Found error is returned.
11
+ *
12
+ * Nickname: resolve_path_courses_full_path
13
+ */
14
+ export async function resolve_path_courses_full_path(options) {
15
+ const response = await client().fetchAs(`/api/v1/courses/{course_id}/folders/by_path/{full_path}`, {
16
+ method: 'GET',
17
+ ...options
18
+ });
19
+ return response;
20
+ }
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_groups.js';
2
+ export * from './resolve_path_groups_full_path.js';
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_groups.js';
2
+ export * from './resolve_path_groups_full_path.js';
@@ -0,0 +1,36 @@
1
+ import { Masquerade, Paginated } from '@groton/canvas-api.client.base';
2
+ import { Folder } from '../../../../../Resources/Files.js';
3
+ export type resolve_path_groups_full_pathPathParameters = {
4
+ /**
5
+ * ID
6
+ *
7
+ * Type: string
8
+ */
9
+ group_id: string | number;
10
+ /** Full path to folder */
11
+ full_path: string;
12
+ };
13
+ export type resolve_path_groups_full_pathSearchParameters = Masquerade & Paginated;
14
+ type Options = {
15
+ pathParams: resolve_path_groups_full_pathPathParameters;
16
+ } & ({
17
+ searchParams?: Partial<resolve_path_groups_full_pathSearchParameters>;
18
+ strict?: false;
19
+ } | {
20
+ searchParams: resolve_path_groups_full_pathSearchParameters;
21
+ strict: true;
22
+ });
23
+ /**
24
+ * Resolve path
25
+ *
26
+ * Given the full path to a folder, returns a list of all Folders in the path
27
+ * hierarchy, starting at the root folder, and ending at the requested folder.
28
+ * The given path is relative to the context's root folder and does not include
29
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
30
+ * context's root folder alone is returned. Otherwise, if no folder exists with
31
+ * the given full path, a Not Found error is returned.
32
+ *
33
+ * Nickname: resolve_path_groups_full_path
34
+ */
35
+ export declare function resolve_path_groups_full_path(options: Options): Promise<Folder[]>;
36
+ export {};
@@ -0,0 +1,20 @@
1
+ import { client } from '../../../../../Client.js';
2
+ /**
3
+ * Resolve path
4
+ *
5
+ * Given the full path to a folder, returns a list of all Folders in the path
6
+ * hierarchy, starting at the root folder, and ending at the requested folder.
7
+ * The given path is relative to the context's root folder and does not include
8
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
9
+ * context's root folder alone is returned. Otherwise, if no folder exists with
10
+ * the given full path, a Not Found error is returned.
11
+ *
12
+ * Nickname: resolve_path_groups_full_path
13
+ */
14
+ export async function resolve_path_groups_full_path(options) {
15
+ const response = await client().fetchAs(`/api/v1/groups/{group_id}/folders/by_path/{full_path}`, {
16
+ method: 'GET',
17
+ ...options
18
+ });
19
+ return response;
20
+ }
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_users.js';
2
+ export * from './resolve_path_users_full_path.js';
@@ -1,2 +1,2 @@
1
- export * as FullPath from './*fullPath/index.js';
2
1
  export * from './resolve_path_users.js';
2
+ export * from './resolve_path_users_full_path.js';
@@ -0,0 +1,36 @@
1
+ import { Masquerade, Paginated } from '@groton/canvas-api.client.base';
2
+ import { Folder } from '../../../../../Resources/Files.js';
3
+ export type resolve_path_users_full_pathPathParameters = {
4
+ /**
5
+ * ID
6
+ *
7
+ * Type: string
8
+ */
9
+ user_id: string | number;
10
+ /** Full path to folder */
11
+ full_path: string;
12
+ };
13
+ export type resolve_path_users_full_pathSearchParameters = Masquerade & Paginated;
14
+ type Options = {
15
+ pathParams: resolve_path_users_full_pathPathParameters;
16
+ } & ({
17
+ searchParams?: Partial<resolve_path_users_full_pathSearchParameters>;
18
+ strict?: false;
19
+ } | {
20
+ searchParams: resolve_path_users_full_pathSearchParameters;
21
+ strict: true;
22
+ });
23
+ /**
24
+ * Resolve path
25
+ *
26
+ * Given the full path to a folder, returns a list of all Folders in the path
27
+ * hierarchy, starting at the root folder, and ending at the requested folder.
28
+ * The given path is relative to the context's root folder and does not include
29
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
30
+ * context's root folder alone is returned. Otherwise, if no folder exists with
31
+ * the given full path, a Not Found error is returned.
32
+ *
33
+ * Nickname: resolve_path_users_full_path
34
+ */
35
+ export declare function resolve_path_users_full_path(options: Options): Promise<Folder[]>;
36
+ export {};
@@ -0,0 +1,20 @@
1
+ import { client } from '../../../../../Client.js';
2
+ /**
3
+ * Resolve path
4
+ *
5
+ * Given the full path to a folder, returns a list of all Folders in the path
6
+ * hierarchy, starting at the root folder, and ending at the requested folder.
7
+ * The given path is relative to the context's root folder and does not include
8
+ * the root folder's name (e.g., "course files"). If an empty path is given, the
9
+ * context's root folder alone is returned. Otherwise, if no folder exists with
10
+ * the given full path, a Not Found error is returned.
11
+ *
12
+ * Nickname: resolve_path_users_full_path
13
+ */
14
+ export async function resolve_path_users_full_path(options) {
15
+ const response = await client().fetchAs(`/api/v1/users/{user_id}/folders/by_path/{full_path}`, {
16
+ method: 'GET',
17
+ ...options
18
+ });
19
+ return response;
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@groton/canvas-api",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Typed access to Canvas LMS API with embedded documentation",
5
5
  "homepage": "https://github.com/groton-school/canvas-cli/tree/main/packages/api/canvas-api#readme",
6
6
  "repository": {