@instructure/platform-mock-canvas-api 0.6.0 → 0.7.0
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 +33 -0
- package/dist/handlers/cohorts.d.ts +44 -0
- package/dist/handlers/cohorts.d.ts.map +1 -0
- package/dist/handlers/index.d.ts +2 -1
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +724 -110
- package/dist/types/cohorts.d.ts +1082 -0
- package/dist/types/cohorts.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,3 +82,36 @@ pnpm build
|
|
|
82
82
|
# Type check
|
|
83
83
|
pnpm type-check
|
|
84
84
|
```
|
|
85
|
+
|
|
86
|
+
### Cohorts
|
|
87
|
+
|
|
88
|
+
The 20 Canvas-served operations of `packages/cohorts/openapi.yaml` (the six
|
|
89
|
+
Journey / Canvas Career operations are not mocked). Generated once with orval
|
|
90
|
+
from the contract's own `examples`, then hand-maintained: edit
|
|
91
|
+
`src/handlers/cohorts.ts` and `src/types/cohorts.ts` directly, there is no
|
|
92
|
+
regeneration step. Every list handler pages its fixture with `page` /
|
|
93
|
+
`per_page` and returns a Canvas-style `Link` header.
|
|
94
|
+
|
|
95
|
+
- `GET|POST /api/v1/accounts/:accountId/cohorts`
|
|
96
|
+
- `GET|PUT|DELETE /api/v1/accounts/:accountId/cohorts/:cohortId`
|
|
97
|
+
- `GET /api/v1/accounts/:accountId/cohorts/:cohortId/tree`
|
|
98
|
+
- `GET|POST /api/v1/accounts/:accountId/cohorts/:cohortId/members`
|
|
99
|
+
- `DELETE /api/v1/accounts/:accountId/cohorts/:cohortId/members/:userId`
|
|
100
|
+
- `GET /api/v1/accounts/:accountId/cohorts/:cohortId/enrollments`
|
|
101
|
+
- `GET|POST /api/v1/accounts/:accountId/cohorts/:cohortId/leaders`
|
|
102
|
+
- `PUT|DELETE /api/v1/accounts/:accountId/cohorts/:cohortId/leaders/:cohortLeaderId`
|
|
103
|
+
- `GET|POST /api/v1/accounts/:accountId/cohorts/:cohortId/enrollment_scopes`
|
|
104
|
+
- `DELETE /api/v1/accounts/:accountId/cohorts/:cohortId/enrollment_scopes/:scopeId`
|
|
105
|
+
- `POST /api/v1/accounts/:accountId/bulk_enrollment`
|
|
106
|
+
- `POST /api/v1/accounts/:accountId/account_notifications`
|
|
107
|
+
- `PUT /api/v1/accounts/:accountId/account_notifications/:id`
|
|
108
|
+
|
|
109
|
+
Each handler is also exported as a factory that takes an override, for a story
|
|
110
|
+
or test that needs a different body:
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
import { cohortHandlers, getListCohortsMockHandler } from '@instructure/platform-mock-canvas-api'
|
|
114
|
+
|
|
115
|
+
server.use(getListCohortsMockHandler([])) // empty list
|
|
116
|
+
parameters: { msw: { handlers: cohortHandlers } } // Storybook, the whole API
|
|
117
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpHandler, RequestHandler, RequestHandlerOptions, http } from 'msw';
|
|
2
|
+
import { AccountNotification, AddMembersResult, Cohort, CohortEnrollmentScope, CohortLeader, CohortMembership, CohortTreeNode, Enrollment, GetCohort200, Progress } from '../types/cohorts';
|
|
3
|
+
export declare const getListCohortsResponseMock: () => Cohort[];
|
|
4
|
+
export declare const getCreateCohortResponseMock: () => Cohort;
|
|
5
|
+
export declare const getGetCohortResponseMock: () => GetCohort200;
|
|
6
|
+
export declare const getUpdateCohortResponseMock: () => Cohort;
|
|
7
|
+
export declare const getDeleteCohortResponseMock: () => Cohort;
|
|
8
|
+
export declare const getGetCohortTreeResponseMock: () => CohortTreeNode;
|
|
9
|
+
export declare const getListCohortMembersResponseMock: () => CohortMembership[];
|
|
10
|
+
export declare const getAddCohortMembersResponseMock: () => AddMembersResult;
|
|
11
|
+
export declare const getRemoveCohortMemberResponseMock: () => CohortMembership;
|
|
12
|
+
export declare const getListCohortEnrollmentsResponseMock: () => Enrollment[];
|
|
13
|
+
export declare const getListCohortLeadersResponseMock: () => CohortLeader[];
|
|
14
|
+
export declare const getAddCohortLeaderResponseMock: () => CohortLeader;
|
|
15
|
+
export declare const getUpdateCohortLeaderResponseMock: () => CohortLeader;
|
|
16
|
+
export declare const getRemoveCohortLeaderResponseMock: () => CohortLeader;
|
|
17
|
+
export declare const getListCohortEnrollmentScopesResponseMock: () => CohortEnrollmentScope[];
|
|
18
|
+
export declare const getAddCohortEnrollmentScopeResponseMock: () => CohortEnrollmentScope;
|
|
19
|
+
export declare const getRemoveCohortEnrollmentScopeResponseMock: () => CohortEnrollmentScope;
|
|
20
|
+
export declare const getBulkEnrollResponseMock: () => Progress;
|
|
21
|
+
export declare const getCreateAccountNotificationResponseMock: () => AccountNotification;
|
|
22
|
+
export declare const getUpdateAccountNotificationResponseMock: () => AccountNotification;
|
|
23
|
+
export declare const getListCohortsMockHandler: (overrideResponse?: Cohort[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Cohort[]> | Cohort[]), options?: RequestHandlerOptions) => HttpHandler;
|
|
24
|
+
export declare const getCreateCohortMockHandler: (overrideResponse?: Cohort | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<Cohort> | Cohort), options?: RequestHandlerOptions) => HttpHandler;
|
|
25
|
+
export declare const getGetCohortMockHandler: (overrideResponse?: GetCohort200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<GetCohort200> | GetCohort200), options?: RequestHandlerOptions) => HttpHandler;
|
|
26
|
+
export declare const getUpdateCohortMockHandler: (overrideResponse?: Cohort | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<Cohort> | Cohort), options?: RequestHandlerOptions) => HttpHandler;
|
|
27
|
+
export declare const getDeleteCohortMockHandler: (overrideResponse?: Cohort | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<Cohort> | Cohort), options?: RequestHandlerOptions) => HttpHandler;
|
|
28
|
+
export declare const getGetCohortTreeMockHandler: (overrideResponse?: CohortTreeNode | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CohortTreeNode> | CohortTreeNode), options?: RequestHandlerOptions) => HttpHandler;
|
|
29
|
+
export declare const getListCohortMembersMockHandler: (overrideResponse?: CohortMembership[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CohortMembership[]> | CohortMembership[]), options?: RequestHandlerOptions) => HttpHandler;
|
|
30
|
+
export declare const getAddCohortMembersMockHandler: (overrideResponse?: AddMembersResult | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AddMembersResult> | AddMembersResult), options?: RequestHandlerOptions) => HttpHandler;
|
|
31
|
+
export declare const getRemoveCohortMemberMockHandler: (overrideResponse?: CohortMembership | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CohortMembership> | CohortMembership), options?: RequestHandlerOptions) => HttpHandler;
|
|
32
|
+
export declare const getListCohortEnrollmentsMockHandler: (overrideResponse?: Enrollment[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Enrollment[]> | Enrollment[]), options?: RequestHandlerOptions) => HttpHandler;
|
|
33
|
+
export declare const getListCohortLeadersMockHandler: (overrideResponse?: CohortLeader[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CohortLeader[]> | CohortLeader[]), options?: RequestHandlerOptions) => HttpHandler;
|
|
34
|
+
export declare const getAddCohortLeaderMockHandler: (overrideResponse?: CohortLeader | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CohortLeader> | CohortLeader), options?: RequestHandlerOptions) => HttpHandler;
|
|
35
|
+
export declare const getUpdateCohortLeaderMockHandler: (overrideResponse?: CohortLeader | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<CohortLeader> | CohortLeader), options?: RequestHandlerOptions) => HttpHandler;
|
|
36
|
+
export declare const getRemoveCohortLeaderMockHandler: (overrideResponse?: CohortLeader | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CohortLeader> | CohortLeader), options?: RequestHandlerOptions) => HttpHandler;
|
|
37
|
+
export declare const getListCohortEnrollmentScopesMockHandler: (overrideResponse?: CohortEnrollmentScope[] | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<CohortEnrollmentScope[]> | CohortEnrollmentScope[]), options?: RequestHandlerOptions) => HttpHandler;
|
|
38
|
+
export declare const getAddCohortEnrollmentScopeMockHandler: (overrideResponse?: CohortEnrollmentScope | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<CohortEnrollmentScope> | CohortEnrollmentScope), options?: RequestHandlerOptions) => HttpHandler;
|
|
39
|
+
export declare const getRemoveCohortEnrollmentScopeMockHandler: (overrideResponse?: CohortEnrollmentScope | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<CohortEnrollmentScope> | CohortEnrollmentScope), options?: RequestHandlerOptions) => HttpHandler;
|
|
40
|
+
export declare const getBulkEnrollMockHandler: (overrideResponse?: Progress | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<Progress> | Progress), options?: RequestHandlerOptions) => HttpHandler;
|
|
41
|
+
export declare const getCreateAccountNotificationMockHandler: (overrideResponse?: AccountNotification | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<AccountNotification> | AccountNotification), options?: RequestHandlerOptions) => HttpHandler;
|
|
42
|
+
export declare const getUpdateAccountNotificationMockHandler: (overrideResponse?: AccountNotification | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<AccountNotification> | AccountNotification), options?: RequestHandlerOptions) => HttpHandler;
|
|
43
|
+
export declare const cohortHandlers: RequestHandler[];
|
|
44
|
+
//# sourceMappingURL=cohorts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohorts.d.ts","sourceRoot":"","sources":["../../src/handlers/cohorts.ts"],"names":[],"mappings":"AAAA;;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,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,EAC5D,UAAU,qBAAqB,KAC9B,WAeF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAClD,mBACI,mBAAmB,GACnB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,EAC5D,UAAU,qBAAqB,KAC9B,WAeF,CAAA;AACD,eAAO,MAAM,cAAc,EAAE,cAAc,EAqB1C,CAAA"}
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { RequestHandler } from 'msw';
|
|
2
|
+
import { cohortHandlers } from './cohorts';
|
|
2
3
|
import { courseHandlers } from './courses';
|
|
3
4
|
import { educatorAccessibilityHandlers } from './educatorAccessibility';
|
|
4
5
|
import { moduleHandlers } from './modules';
|
|
5
6
|
import { submissionHandlers } from './submissions';
|
|
6
7
|
import { userColorHandlers } from './userColors';
|
|
7
8
|
export declare const handlers: RequestHandler[];
|
|
8
|
-
export { courseHandlers, educatorAccessibilityHandlers, moduleHandlers, submissionHandlers, userColorHandlers, };
|
|
9
|
+
export { cohortHandlers, courseHandlers, educatorAccessibilityHandlers, moduleHandlers, submissionHandlers, userColorHandlers, };
|
|
9
10
|
export { buildLinkHeader, resetModuleScenarios } from './modules';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,cAAc,EAOpC,CAAA;AAED,OAAO,EACL,cAAc,EACd,cAAc,EACd,6BAA6B,EAC7B,cAAc,EACd,kBAAkB,EAClB,iBAAiB,GAClB,CAAA;AACD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './fixtures';
|
|
2
|
+
export * from './handlers/cohorts';
|
|
2
3
|
export { buildLinkHeader, courseHandlers, educatorAccessibilityHandlers, handlers, moduleHandlers, resetModuleScenarios, submissionHandlers, userColorHandlers, } from './handlers';
|
|
3
4
|
export type * from './types';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,eAAe,EACf,cAAc,EACd,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,mBAAmB,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,OAAO,EACL,eAAe,EACf,cAAc,EACd,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AACnB,mBAAmB,SAAS,CAAA"}
|