@eduware/oneroster 1.2.4 → 1.2.6
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/FUNCTIONS.md +232 -0
- package/README.md +493 -334
- package/bin/mcp-server.js +338 -1328
- package/bin/mcp-server.js.map +22 -21
- package/dist/commonjs/enums/index.d.ts +2 -0
- package/dist/commonjs/enums/index.d.ts.map +1 -0
- package/dist/commonjs/enums/index.js +18 -0
- package/dist/commonjs/enums/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +41 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +18 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/operations/createuser.d.ts +8 -270
- package/dist/commonjs/models/operations/createuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createuser.js +17 -178
- package/dist/commonjs/models/operations/createuser.js.map +1 -1
- package/dist/commonjs/models/operations/getallstudents.d.ts +6 -206
- package/dist/commonjs/models/operations/getallstudents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallstudents.js +12 -132
- package/dist/commonjs/models/operations/getallstudents.js.map +1 -1
- package/dist/commonjs/models/operations/getallteachers.d.ts +6 -206
- package/dist/commonjs/models/operations/getallteachers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallteachers.js +12 -132
- package/dist/commonjs/models/operations/getallteachers.js.map +1 -1
- package/dist/commonjs/models/operations/getallusers.d.ts +6 -206
- package/dist/commonjs/models/operations/getallusers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getallusers.js +12 -132
- package/dist/commonjs/models/operations/getallusers.js.map +1 -1
- package/dist/commonjs/models/operations/getclassesforuser.d.ts +4 -85
- package/dist/commonjs/models/operations/getclassesforuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getclassesforuser.js +8 -67
- package/dist/commonjs/models/operations/getclassesforuser.js.map +1 -1
- package/dist/commonjs/models/operations/getresourcesforuser.d.ts +5 -111
- package/dist/commonjs/models/operations/getresourcesforuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getresourcesforuser.js +10 -88
- package/dist/commonjs/models/operations/getresourcesforuser.js.map +1 -1
- package/dist/commonjs/models/operations/getstudent.d.ts +5 -174
- package/dist/commonjs/models/operations/getstudent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudent.js +10 -108
- package/dist/commonjs/models/operations/getstudent.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclass.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforclass.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclass.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforclass.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclassinschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforclassinschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforclassinschool.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforclassinschool.js.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getstudentsforschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstudentsforschool.js +12 -132
- package/dist/commonjs/models/operations/getstudentsforschool.js.map +1 -1
- package/dist/commonjs/models/operations/getteacher.d.ts +5 -174
- package/dist/commonjs/models/operations/getteacher.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteacher.js +10 -108
- package/dist/commonjs/models/operations/getteacher.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclass.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforclass.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclass.js +12 -132
- package/dist/commonjs/models/operations/getteachersforclass.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclassinschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforclassinschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforclassinschool.js +12 -132
- package/dist/commonjs/models/operations/getteachersforclassinschool.js.map +1 -1
- package/dist/commonjs/models/operations/getteachersforschool.d.ts +6 -206
- package/dist/commonjs/models/operations/getteachersforschool.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getteachersforschool.js +12 -132
- package/dist/commonjs/models/operations/getteachersforschool.js.map +1 -1
- package/dist/commonjs/models/operations/getuser.d.ts +5 -174
- package/dist/commonjs/models/operations/getuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getuser.js +10 -108
- package/dist/commonjs/models/operations/getuser.js.map +1 -1
- package/dist/commonjs/models/operations/getuserwithdemographics.d.ts +5 -174
- package/dist/commonjs/models/operations/getuserwithdemographics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getuserwithdemographics.js +10 -108
- package/dist/commonjs/models/operations/getuserwithdemographics.js.map +1 -1
- package/dist/commonjs/models/operations/updateuser.d.ts +8 -270
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuser.js +17 -178
- package/dist/commonjs/models/operations/updateuser.js.map +1 -1
- package/dist/commonjs/models/shared/enums.d.ts +440 -0
- package/dist/commonjs/models/shared/enums.d.ts.map +1 -0
- package/dist/commonjs/models/shared/enums.js +499 -0
- package/dist/commonjs/models/shared/enums.js.map +1 -0
- package/dist/commonjs/models/shared/index.d.ts +8 -0
- package/dist/commonjs/models/shared/index.d.ts.map +1 -0
- package/dist/commonjs/models/shared/index.js +24 -0
- package/dist/commonjs/models/shared/index.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +1 -0
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/esm/enums/index.d.ts +2 -0
- package/dist/esm/enums/index.d.ts.map +1 -0
- package/dist/esm/enums/index.js +2 -0
- package/dist/esm/enums/index.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/operations/createuser.d.ts +8 -270
- package/dist/esm/models/operations/createuser.d.ts.map +1 -1
- package/dist/esm/models/operations/createuser.js +15 -176
- package/dist/esm/models/operations/createuser.js.map +1 -1
- package/dist/esm/models/operations/getallstudents.d.ts +6 -206
- package/dist/esm/models/operations/getallstudents.d.ts.map +1 -1
- package/dist/esm/models/operations/getallstudents.js +11 -131
- package/dist/esm/models/operations/getallstudents.js.map +1 -1
- package/dist/esm/models/operations/getallteachers.d.ts +6 -206
- package/dist/esm/models/operations/getallteachers.d.ts.map +1 -1
- package/dist/esm/models/operations/getallteachers.js +11 -131
- package/dist/esm/models/operations/getallteachers.js.map +1 -1
- package/dist/esm/models/operations/getallusers.d.ts +6 -206
- package/dist/esm/models/operations/getallusers.d.ts.map +1 -1
- package/dist/esm/models/operations/getallusers.js +11 -131
- package/dist/esm/models/operations/getallusers.js.map +1 -1
- package/dist/esm/models/operations/getclassesforuser.d.ts +4 -85
- package/dist/esm/models/operations/getclassesforuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getclassesforuser.js +7 -66
- package/dist/esm/models/operations/getclassesforuser.js.map +1 -1
- package/dist/esm/models/operations/getresourcesforuser.d.ts +5 -111
- package/dist/esm/models/operations/getresourcesforuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getresourcesforuser.js +9 -87
- package/dist/esm/models/operations/getresourcesforuser.js.map +1 -1
- package/dist/esm/models/operations/getstudent.d.ts +5 -174
- package/dist/esm/models/operations/getstudent.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudent.js +9 -107
- package/dist/esm/models/operations/getstudent.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforclass.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforclass.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforclass.js +11 -131
- package/dist/esm/models/operations/getstudentsforclass.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforclassinschool.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforclassinschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforclassinschool.js +11 -131
- package/dist/esm/models/operations/getstudentsforclassinschool.js.map +1 -1
- package/dist/esm/models/operations/getstudentsforschool.d.ts +6 -206
- package/dist/esm/models/operations/getstudentsforschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getstudentsforschool.js +11 -131
- package/dist/esm/models/operations/getstudentsforschool.js.map +1 -1
- package/dist/esm/models/operations/getteacher.d.ts +5 -174
- package/dist/esm/models/operations/getteacher.d.ts.map +1 -1
- package/dist/esm/models/operations/getteacher.js +9 -107
- package/dist/esm/models/operations/getteacher.js.map +1 -1
- package/dist/esm/models/operations/getteachersforclass.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforclass.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforclass.js +11 -131
- package/dist/esm/models/operations/getteachersforclass.js.map +1 -1
- package/dist/esm/models/operations/getteachersforclassinschool.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforclassinschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforclassinschool.js +11 -131
- package/dist/esm/models/operations/getteachersforclassinschool.js.map +1 -1
- package/dist/esm/models/operations/getteachersforschool.d.ts +6 -206
- package/dist/esm/models/operations/getteachersforschool.d.ts.map +1 -1
- package/dist/esm/models/operations/getteachersforschool.js +11 -131
- package/dist/esm/models/operations/getteachersforschool.js.map +1 -1
- package/dist/esm/models/operations/getuser.d.ts +5 -174
- package/dist/esm/models/operations/getuser.d.ts.map +1 -1
- package/dist/esm/models/operations/getuser.js +9 -107
- package/dist/esm/models/operations/getuser.js.map +1 -1
- package/dist/esm/models/operations/getuserwithdemographics.d.ts +5 -174
- package/dist/esm/models/operations/getuserwithdemographics.d.ts.map +1 -1
- package/dist/esm/models/operations/getuserwithdemographics.js +9 -107
- package/dist/esm/models/operations/getuserwithdemographics.js.map +1 -1
- package/dist/esm/models/operations/updateuser.d.ts +8 -270
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuser.js +15 -176
- package/dist/esm/models/operations/updateuser.js.map +1 -1
- package/dist/esm/models/shared/enums.d.ts +440 -0
- package/dist/esm/models/shared/enums.d.ts.map +1 -0
- package/dist/esm/models/shared/enums.js +462 -0
- package/dist/esm/models/shared/enums.js.map +1 -0
- package/dist/esm/models/shared/index.d.ts +8 -0
- package/dist/esm/models/shared/index.d.ts.map +1 -0
- package/dist/esm/models/shared/index.js +8 -0
- package/dist/esm/models/shared/index.js.map +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/types/index.js.map +1 -1
- package/package.json +37 -64
- package/src/enums/index.ts +1 -0
- package/src/index.ts +44 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/index.ts +1 -0
- package/src/models/operations/createuser.ts +35 -238
- package/src/models/operations/getallstudents.ts +32 -170
- package/src/models/operations/getallteachers.ts +32 -170
- package/src/models/operations/getallusers.ts +32 -170
- package/src/models/operations/getclassesforuser.ts +20 -97
- package/src/models/operations/getresourcesforuser.ts +26 -127
- package/src/models/operations/getstudent.ts +26 -136
- package/src/models/operations/getstudentsforclass.ts +32 -180
- package/src/models/operations/getstudentsforclassinschool.ts +32 -188
- package/src/models/operations/getstudentsforschool.ts +32 -180
- package/src/models/operations/getteacher.ts +26 -136
- package/src/models/operations/getteachersforclass.ts +32 -180
- package/src/models/operations/getteachersforclassinschool.ts +32 -188
- package/src/models/operations/getteachersforschool.ts +32 -180
- package/src/models/operations/getuser.ts +26 -136
- package/src/models/operations/getuserwithdemographics.ts +26 -144
- package/src/models/operations/updateuser.ts +35 -238
- package/src/models/shared/enums.ts +567 -0
- package/src/models/shared/index.ts +8 -0
- package/src/types/index.ts +3 -0
- package/test/classlink.test.ts +26 -26
- package/vitest.config.ts +2 -2
- package/test/summary-reporter.ts +0 -114
|
@@ -2,22 +2,26 @@ import * as z from 'zod';
|
|
|
2
2
|
|
|
3
3
|
import { remap as remap$ } from '../../lib/primitives.js';
|
|
4
4
|
import { safeParse } from '../../lib/schemas.js';
|
|
5
|
-
import { ClosedEnum } from '../../types/enums.js';
|
|
6
5
|
import { Result as SafeParseResult } from '../../types/fp.js';
|
|
7
6
|
import * as components from '../components/index.js';
|
|
8
7
|
import { SDKValidationError } from '../errors/sdkvalidationerror.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
import {
|
|
9
|
+
EntityType,
|
|
10
|
+
EntityType$inboundSchema,
|
|
11
|
+
EntityType$outboundSchema,
|
|
12
|
+
OrderBy,
|
|
13
|
+
OrderBy$inboundSchema,
|
|
14
|
+
OrderBy$outboundSchema,
|
|
15
|
+
RoleType,
|
|
16
|
+
RoleType$inboundSchema,
|
|
17
|
+
RoleType$outboundSchema,
|
|
18
|
+
Status,
|
|
19
|
+
Status$inboundSchema,
|
|
20
|
+
Status$outboundSchema,
|
|
21
|
+
UserRole,
|
|
22
|
+
UserRole$inboundSchema,
|
|
23
|
+
UserRole$outboundSchema,
|
|
24
|
+
} from '../shared/enums.js';
|
|
21
25
|
|
|
22
26
|
export type GetTeachersForSchoolRequest = {
|
|
23
27
|
/**
|
|
@@ -43,7 +47,7 @@ export type GetTeachersForSchoolRequest = {
|
|
|
43
47
|
/**
|
|
44
48
|
* The order to sort the response by
|
|
45
49
|
*/
|
|
46
|
-
orderBy?:
|
|
50
|
+
orderBy?: OrderBy | undefined;
|
|
47
51
|
/**
|
|
48
52
|
* The filter to apply to the response
|
|
49
53
|
*/
|
|
@@ -54,35 +58,11 @@ export type GetTeachersForSchoolRequest = {
|
|
|
54
58
|
search?: string | undefined;
|
|
55
59
|
};
|
|
56
60
|
|
|
57
|
-
export const GetTeachersForSchoolStatus = {
|
|
58
|
-
Active: 'active',
|
|
59
|
-
Tobedeleted: 'tobedeleted',
|
|
60
|
-
} as const;
|
|
61
|
-
export type GetTeachersForSchoolStatus = ClosedEnum<typeof GetTeachersForSchoolStatus>;
|
|
62
|
-
|
|
63
61
|
export type GetTeachersForSchoolUserId = {
|
|
64
62
|
type: string;
|
|
65
63
|
identifier: string;
|
|
66
64
|
};
|
|
67
65
|
|
|
68
|
-
export const GetTeachersForSchoolRoleType = {
|
|
69
|
-
Primary: 'primary',
|
|
70
|
-
Secondary: 'secondary',
|
|
71
|
-
} as const;
|
|
72
|
-
export type GetTeachersForSchoolRoleType = ClosedEnum<typeof GetTeachersForSchoolRoleType>;
|
|
73
|
-
|
|
74
|
-
export const GetTeachersForSchoolRoleEnum = {
|
|
75
|
-
Administrator: 'administrator',
|
|
76
|
-
Aide: 'aide',
|
|
77
|
-
Guardian: 'guardian',
|
|
78
|
-
Parent: 'parent',
|
|
79
|
-
Proctor: 'proctor',
|
|
80
|
-
Relative: 'relative',
|
|
81
|
-
Student: 'student',
|
|
82
|
-
Teacher: 'teacher',
|
|
83
|
-
} as const;
|
|
84
|
-
export type GetTeachersForSchoolRoleEnum = ClosedEnum<typeof GetTeachersForSchoolRoleEnum>;
|
|
85
|
-
|
|
86
66
|
export type GetTeachersForSchoolOrg = {
|
|
87
67
|
href: string;
|
|
88
68
|
sourcedId: string;
|
|
@@ -90,41 +70,18 @@ export type GetTeachersForSchoolOrg = {
|
|
|
90
70
|
};
|
|
91
71
|
|
|
92
72
|
export type GetTeachersForSchoolRole = {
|
|
93
|
-
roleType:
|
|
94
|
-
role:
|
|
73
|
+
roleType: RoleType;
|
|
74
|
+
role: UserRole;
|
|
95
75
|
org: GetTeachersForSchoolOrg;
|
|
96
76
|
userProfile?: string | undefined;
|
|
97
77
|
beginDate: string | null;
|
|
98
78
|
endDate: string | null;
|
|
99
79
|
};
|
|
100
80
|
|
|
101
|
-
export const GetTeachersForSchoolType = {
|
|
102
|
-
AcademicSession: 'academicSession',
|
|
103
|
-
AssessmentLineItem: 'assessmentLineItem',
|
|
104
|
-
Category: 'category',
|
|
105
|
-
Class: 'class',
|
|
106
|
-
Course: 'course',
|
|
107
|
-
Demographics: 'demographics',
|
|
108
|
-
Enrollment: 'enrollment',
|
|
109
|
-
GradingPeriod: 'gradingPeriod',
|
|
110
|
-
LineItem: 'lineItem',
|
|
111
|
-
Org: 'org',
|
|
112
|
-
Resource: 'resource',
|
|
113
|
-
Result: 'result',
|
|
114
|
-
ScoreScale: 'scoreScale',
|
|
115
|
-
Student: 'student',
|
|
116
|
-
Teacher: 'teacher',
|
|
117
|
-
Term: 'term',
|
|
118
|
-
User: 'user',
|
|
119
|
-
ComponentResource: 'componentResource',
|
|
120
|
-
CourseComponent: 'courseComponent',
|
|
121
|
-
} as const;
|
|
122
|
-
export type GetTeachersForSchoolType = ClosedEnum<typeof GetTeachersForSchoolType>;
|
|
123
|
-
|
|
124
81
|
export type GetTeachersForSchoolAgent = {
|
|
125
82
|
href: string;
|
|
126
83
|
sourcedId: string;
|
|
127
|
-
type:
|
|
84
|
+
type: EntityType;
|
|
128
85
|
};
|
|
129
86
|
|
|
130
87
|
export type GetTeachersForSchoolPrimaryOrg = {
|
|
@@ -135,7 +92,7 @@ export type GetTeachersForSchoolPrimaryOrg = {
|
|
|
135
92
|
|
|
136
93
|
export type GetTeachersForSchoolUser = {
|
|
137
94
|
sourcedId: string;
|
|
138
|
-
status:
|
|
95
|
+
status: Status;
|
|
139
96
|
dateLastModified?: Date | undefined;
|
|
140
97
|
metadata?: { [k: string]: any } | null | undefined;
|
|
141
98
|
userMasterIdentifier?: string | null | undefined;
|
|
@@ -171,27 +128,6 @@ export type GetTeachersForSchoolResponse = {
|
|
|
171
128
|
result: GetTeachersForSchoolResponseBody;
|
|
172
129
|
};
|
|
173
130
|
|
|
174
|
-
/** @internal */
|
|
175
|
-
export const GetTeachersForSchoolOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
176
|
-
typeof GetTeachersForSchoolOrderBy
|
|
177
|
-
> = z.nativeEnum(GetTeachersForSchoolOrderBy);
|
|
178
|
-
|
|
179
|
-
/** @internal */
|
|
180
|
-
export const GetTeachersForSchoolOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
181
|
-
typeof GetTeachersForSchoolOrderBy
|
|
182
|
-
> = GetTeachersForSchoolOrderBy$inboundSchema;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @internal
|
|
186
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
187
|
-
*/
|
|
188
|
-
export namespace GetTeachersForSchoolOrderBy$ {
|
|
189
|
-
/** @deprecated use `GetTeachersForSchoolOrderBy$inboundSchema` instead. */
|
|
190
|
-
export const inboundSchema = GetTeachersForSchoolOrderBy$inboundSchema;
|
|
191
|
-
/** @deprecated use `GetTeachersForSchoolOrderBy$outboundSchema` instead. */
|
|
192
|
-
export const outboundSchema = GetTeachersForSchoolOrderBy$outboundSchema;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
131
|
/** @internal */
|
|
196
132
|
export const GetTeachersForSchoolRequest$inboundSchema: z.ZodType<
|
|
197
133
|
GetTeachersForSchoolRequest,
|
|
@@ -203,7 +139,7 @@ export const GetTeachersForSchoolRequest$inboundSchema: z.ZodType<
|
|
|
203
139
|
limit: z.number().int().default(100),
|
|
204
140
|
offset: z.number().int().default(0),
|
|
205
141
|
sort: z.string().optional(),
|
|
206
|
-
orderBy:
|
|
142
|
+
orderBy: OrderBy$inboundSchema.optional(),
|
|
207
143
|
filter: z.string().optional(),
|
|
208
144
|
search: z.string().optional(),
|
|
209
145
|
});
|
|
@@ -231,7 +167,7 @@ export const GetTeachersForSchoolRequest$outboundSchema: z.ZodType<
|
|
|
231
167
|
limit: z.number().int().default(100),
|
|
232
168
|
offset: z.number().int().default(0),
|
|
233
169
|
sort: z.string().optional(),
|
|
234
|
-
orderBy:
|
|
170
|
+
orderBy: OrderBy$outboundSchema.optional(),
|
|
235
171
|
filter: z.string().optional(),
|
|
236
172
|
search: z.string().optional(),
|
|
237
173
|
});
|
|
@@ -267,27 +203,6 @@ export function getTeachersForSchoolRequestFromJSON(
|
|
|
267
203
|
);
|
|
268
204
|
}
|
|
269
205
|
|
|
270
|
-
/** @internal */
|
|
271
|
-
export const GetTeachersForSchoolStatus$inboundSchema: z.ZodNativeEnum<
|
|
272
|
-
typeof GetTeachersForSchoolStatus
|
|
273
|
-
> = z.nativeEnum(GetTeachersForSchoolStatus);
|
|
274
|
-
|
|
275
|
-
/** @internal */
|
|
276
|
-
export const GetTeachersForSchoolStatus$outboundSchema: z.ZodNativeEnum<
|
|
277
|
-
typeof GetTeachersForSchoolStatus
|
|
278
|
-
> = GetTeachersForSchoolStatus$inboundSchema;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @internal
|
|
282
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
283
|
-
*/
|
|
284
|
-
export namespace GetTeachersForSchoolStatus$ {
|
|
285
|
-
/** @deprecated use `GetTeachersForSchoolStatus$inboundSchema` instead. */
|
|
286
|
-
export const inboundSchema = GetTeachersForSchoolStatus$inboundSchema;
|
|
287
|
-
/** @deprecated use `GetTeachersForSchoolStatus$outboundSchema` instead. */
|
|
288
|
-
export const outboundSchema = GetTeachersForSchoolStatus$outboundSchema;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
206
|
/** @internal */
|
|
292
207
|
export const GetTeachersForSchoolUserId$inboundSchema: z.ZodType<
|
|
293
208
|
GetTeachersForSchoolUserId,
|
|
@@ -345,48 +260,6 @@ export function getTeachersForSchoolUserIdFromJSON(
|
|
|
345
260
|
);
|
|
346
261
|
}
|
|
347
262
|
|
|
348
|
-
/** @internal */
|
|
349
|
-
export const GetTeachersForSchoolRoleType$inboundSchema: z.ZodNativeEnum<
|
|
350
|
-
typeof GetTeachersForSchoolRoleType
|
|
351
|
-
> = z.nativeEnum(GetTeachersForSchoolRoleType);
|
|
352
|
-
|
|
353
|
-
/** @internal */
|
|
354
|
-
export const GetTeachersForSchoolRoleType$outboundSchema: z.ZodNativeEnum<
|
|
355
|
-
typeof GetTeachersForSchoolRoleType
|
|
356
|
-
> = GetTeachersForSchoolRoleType$inboundSchema;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* @internal
|
|
360
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
361
|
-
*/
|
|
362
|
-
export namespace GetTeachersForSchoolRoleType$ {
|
|
363
|
-
/** @deprecated use `GetTeachersForSchoolRoleType$inboundSchema` instead. */
|
|
364
|
-
export const inboundSchema = GetTeachersForSchoolRoleType$inboundSchema;
|
|
365
|
-
/** @deprecated use `GetTeachersForSchoolRoleType$outboundSchema` instead. */
|
|
366
|
-
export const outboundSchema = GetTeachersForSchoolRoleType$outboundSchema;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/** @internal */
|
|
370
|
-
export const GetTeachersForSchoolRoleEnum$inboundSchema: z.ZodNativeEnum<
|
|
371
|
-
typeof GetTeachersForSchoolRoleEnum
|
|
372
|
-
> = z.nativeEnum(GetTeachersForSchoolRoleEnum);
|
|
373
|
-
|
|
374
|
-
/** @internal */
|
|
375
|
-
export const GetTeachersForSchoolRoleEnum$outboundSchema: z.ZodNativeEnum<
|
|
376
|
-
typeof GetTeachersForSchoolRoleEnum
|
|
377
|
-
> = GetTeachersForSchoolRoleEnum$inboundSchema;
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @internal
|
|
381
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
382
|
-
*/
|
|
383
|
-
export namespace GetTeachersForSchoolRoleEnum$ {
|
|
384
|
-
/** @deprecated use `GetTeachersForSchoolRoleEnum$inboundSchema` instead. */
|
|
385
|
-
export const inboundSchema = GetTeachersForSchoolRoleEnum$inboundSchema;
|
|
386
|
-
/** @deprecated use `GetTeachersForSchoolRoleEnum$outboundSchema` instead. */
|
|
387
|
-
export const outboundSchema = GetTeachersForSchoolRoleEnum$outboundSchema;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
263
|
/** @internal */
|
|
391
264
|
export const GetTeachersForSchoolOrg$inboundSchema: z.ZodType<
|
|
392
265
|
GetTeachersForSchoolOrg,
|
|
@@ -451,8 +324,8 @@ export const GetTeachersForSchoolRole$inboundSchema: z.ZodType<
|
|
|
451
324
|
z.ZodTypeDef,
|
|
452
325
|
unknown
|
|
453
326
|
> = z.object({
|
|
454
|
-
roleType:
|
|
455
|
-
role:
|
|
327
|
+
roleType: RoleType$inboundSchema,
|
|
328
|
+
role: UserRole$inboundSchema,
|
|
456
329
|
org: z.lazy(() => GetTeachersForSchoolOrg$inboundSchema),
|
|
457
330
|
userProfile: z.string().optional(),
|
|
458
331
|
beginDate: z.nullable(z.string()),
|
|
@@ -475,8 +348,8 @@ export const GetTeachersForSchoolRole$outboundSchema: z.ZodType<
|
|
|
475
348
|
z.ZodTypeDef,
|
|
476
349
|
GetTeachersForSchoolRole
|
|
477
350
|
> = z.object({
|
|
478
|
-
roleType:
|
|
479
|
-
role:
|
|
351
|
+
roleType: RoleType$outboundSchema,
|
|
352
|
+
role: UserRole$outboundSchema,
|
|
480
353
|
org: z.lazy(() => GetTeachersForSchoolOrg$outboundSchema),
|
|
481
354
|
userProfile: z.string().optional(),
|
|
482
355
|
beginDate: z.nullable(z.string()),
|
|
@@ -512,27 +385,6 @@ export function getTeachersForSchoolRoleFromJSON(
|
|
|
512
385
|
);
|
|
513
386
|
}
|
|
514
387
|
|
|
515
|
-
/** @internal */
|
|
516
|
-
export const GetTeachersForSchoolType$inboundSchema: z.ZodNativeEnum<
|
|
517
|
-
typeof GetTeachersForSchoolType
|
|
518
|
-
> = z.nativeEnum(GetTeachersForSchoolType);
|
|
519
|
-
|
|
520
|
-
/** @internal */
|
|
521
|
-
export const GetTeachersForSchoolType$outboundSchema: z.ZodNativeEnum<
|
|
522
|
-
typeof GetTeachersForSchoolType
|
|
523
|
-
> = GetTeachersForSchoolType$inboundSchema;
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* @internal
|
|
527
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
528
|
-
*/
|
|
529
|
-
export namespace GetTeachersForSchoolType$ {
|
|
530
|
-
/** @deprecated use `GetTeachersForSchoolType$inboundSchema` instead. */
|
|
531
|
-
export const inboundSchema = GetTeachersForSchoolType$inboundSchema;
|
|
532
|
-
/** @deprecated use `GetTeachersForSchoolType$outboundSchema` instead. */
|
|
533
|
-
export const outboundSchema = GetTeachersForSchoolType$outboundSchema;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
388
|
/** @internal */
|
|
537
389
|
export const GetTeachersForSchoolAgent$inboundSchema: z.ZodType<
|
|
538
390
|
GetTeachersForSchoolAgent,
|
|
@@ -541,7 +393,7 @@ export const GetTeachersForSchoolAgent$inboundSchema: z.ZodType<
|
|
|
541
393
|
> = z.object({
|
|
542
394
|
href: z.string(),
|
|
543
395
|
sourcedId: z.string(),
|
|
544
|
-
type:
|
|
396
|
+
type: EntityType$inboundSchema,
|
|
545
397
|
});
|
|
546
398
|
|
|
547
399
|
/** @internal */
|
|
@@ -559,7 +411,7 @@ export const GetTeachersForSchoolAgent$outboundSchema: z.ZodType<
|
|
|
559
411
|
> = z.object({
|
|
560
412
|
href: z.string(),
|
|
561
413
|
sourcedId: z.string(),
|
|
562
|
-
type:
|
|
414
|
+
type: EntityType$outboundSchema,
|
|
563
415
|
});
|
|
564
416
|
|
|
565
417
|
/**
|
|
@@ -660,7 +512,7 @@ export const GetTeachersForSchoolUser$inboundSchema: z.ZodType<
|
|
|
660
512
|
unknown
|
|
661
513
|
> = z.object({
|
|
662
514
|
sourcedId: z.string(),
|
|
663
|
-
|
|
515
|
+
status: Status$inboundSchema,
|
|
664
516
|
dateLastModified: z
|
|
665
517
|
.string()
|
|
666
518
|
.datetime({ offset: true })
|
|
@@ -724,7 +576,7 @@ export const GetTeachersForSchoolUser$outboundSchema: z.ZodType<
|
|
|
724
576
|
GetTeachersForSchoolUser
|
|
725
577
|
> = z.object({
|
|
726
578
|
sourcedId: z.string(),
|
|
727
|
-
status:
|
|
579
|
+
status: Status$outboundSchema,
|
|
728
580
|
dateLastModified: z
|
|
729
581
|
.date()
|
|
730
582
|
.transform((v) => v.toISOString())
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
|
|
3
3
|
import { safeParse } from '../../lib/schemas.js';
|
|
4
|
-
import { ClosedEnum } from '../../types/enums.js';
|
|
5
4
|
import { Result as SafeParseResult } from '../../types/fp.js';
|
|
6
5
|
import * as components from '../components/index.js';
|
|
7
6
|
import { SDKValidationError } from '../errors/sdkvalidationerror.js';
|
|
7
|
+
import {
|
|
8
|
+
EntityType,
|
|
9
|
+
EntityType$inboundSchema,
|
|
10
|
+
EntityType$outboundSchema,
|
|
11
|
+
RoleType,
|
|
12
|
+
RoleType$inboundSchema,
|
|
13
|
+
RoleType$outboundSchema,
|
|
14
|
+
Status,
|
|
15
|
+
Status$inboundSchema,
|
|
16
|
+
Status$outboundSchema,
|
|
17
|
+
UserRole,
|
|
18
|
+
UserRole$inboundSchema,
|
|
19
|
+
UserRole$outboundSchema,
|
|
20
|
+
} from '../shared/enums.js';
|
|
8
21
|
|
|
9
22
|
export type GetUserRequest = {
|
|
10
23
|
/**
|
|
@@ -13,35 +26,11 @@ export type GetUserRequest = {
|
|
|
13
26
|
sourcedId: string;
|
|
14
27
|
};
|
|
15
28
|
|
|
16
|
-
export const GetUserStatus = {
|
|
17
|
-
Active: 'active',
|
|
18
|
-
Tobedeleted: 'tobedeleted',
|
|
19
|
-
} as const;
|
|
20
|
-
export type GetUserStatus = ClosedEnum<typeof GetUserStatus>;
|
|
21
|
-
|
|
22
29
|
export type GetUserUserId = {
|
|
23
30
|
type: string;
|
|
24
31
|
identifier: string;
|
|
25
32
|
};
|
|
26
33
|
|
|
27
|
-
export const GetUserRoleType = {
|
|
28
|
-
Primary: 'primary',
|
|
29
|
-
Secondary: 'secondary',
|
|
30
|
-
} as const;
|
|
31
|
-
export type GetUserRoleType = ClosedEnum<typeof GetUserRoleType>;
|
|
32
|
-
|
|
33
|
-
export const GetUserRoleEnum = {
|
|
34
|
-
Administrator: 'administrator',
|
|
35
|
-
Aide: 'aide',
|
|
36
|
-
Guardian: 'guardian',
|
|
37
|
-
Parent: 'parent',
|
|
38
|
-
Proctor: 'proctor',
|
|
39
|
-
Relative: 'relative',
|
|
40
|
-
Student: 'student',
|
|
41
|
-
Teacher: 'teacher',
|
|
42
|
-
} as const;
|
|
43
|
-
export type GetUserRoleEnum = ClosedEnum<typeof GetUserRoleEnum>;
|
|
44
|
-
|
|
45
34
|
export type GetUserOrg = {
|
|
46
35
|
href: string;
|
|
47
36
|
sourcedId: string;
|
|
@@ -49,41 +38,18 @@ export type GetUserOrg = {
|
|
|
49
38
|
};
|
|
50
39
|
|
|
51
40
|
export type GetUserRole = {
|
|
52
|
-
roleType:
|
|
53
|
-
role:
|
|
41
|
+
roleType: RoleType;
|
|
42
|
+
role: UserRole;
|
|
54
43
|
org: GetUserOrg;
|
|
55
44
|
userProfile?: string | undefined;
|
|
56
45
|
beginDate: string | null;
|
|
57
46
|
endDate: string | null;
|
|
58
47
|
};
|
|
59
48
|
|
|
60
|
-
export const GetUserType = {
|
|
61
|
-
AcademicSession: 'academicSession',
|
|
62
|
-
AssessmentLineItem: 'assessmentLineItem',
|
|
63
|
-
Category: 'category',
|
|
64
|
-
Class: 'class',
|
|
65
|
-
Course: 'course',
|
|
66
|
-
Demographics: 'demographics',
|
|
67
|
-
Enrollment: 'enrollment',
|
|
68
|
-
GradingPeriod: 'gradingPeriod',
|
|
69
|
-
LineItem: 'lineItem',
|
|
70
|
-
Org: 'org',
|
|
71
|
-
Resource: 'resource',
|
|
72
|
-
Result: 'result',
|
|
73
|
-
ScoreScale: 'scoreScale',
|
|
74
|
-
Student: 'student',
|
|
75
|
-
Teacher: 'teacher',
|
|
76
|
-
Term: 'term',
|
|
77
|
-
User: 'user',
|
|
78
|
-
ComponentResource: 'componentResource',
|
|
79
|
-
CourseComponent: 'courseComponent',
|
|
80
|
-
} as const;
|
|
81
|
-
export type GetUserType = ClosedEnum<typeof GetUserType>;
|
|
82
|
-
|
|
83
49
|
export type GetUserAgent = {
|
|
84
50
|
href: string;
|
|
85
51
|
sourcedId: string;
|
|
86
|
-
type:
|
|
52
|
+
type: EntityType;
|
|
87
53
|
};
|
|
88
54
|
|
|
89
55
|
export type GetUserPrimaryOrg = {
|
|
@@ -94,7 +60,7 @@ export type GetUserPrimaryOrg = {
|
|
|
94
60
|
|
|
95
61
|
export type GetUserUser = {
|
|
96
62
|
sourcedId: string;
|
|
97
|
-
status:
|
|
63
|
+
status: Status;
|
|
98
64
|
dateLastModified?: Date | undefined;
|
|
99
65
|
metadata?: { [k: string]: any } | null | undefined;
|
|
100
66
|
userMasterIdentifier?: string | null | undefined;
|
|
@@ -173,25 +139,6 @@ export function getUserRequestFromJSON(
|
|
|
173
139
|
);
|
|
174
140
|
}
|
|
175
141
|
|
|
176
|
-
/** @internal */
|
|
177
|
-
export const GetUserStatus$inboundSchema: z.ZodNativeEnum<typeof GetUserStatus> =
|
|
178
|
-
z.nativeEnum(GetUserStatus);
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export const GetUserStatus$outboundSchema: z.ZodNativeEnum<typeof GetUserStatus> =
|
|
182
|
-
GetUserStatus$inboundSchema;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @internal
|
|
186
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
187
|
-
*/
|
|
188
|
-
export namespace GetUserStatus$ {
|
|
189
|
-
/** @deprecated use `GetUserStatus$inboundSchema` instead. */
|
|
190
|
-
export const inboundSchema = GetUserStatus$inboundSchema;
|
|
191
|
-
/** @deprecated use `GetUserStatus$outboundSchema` instead. */
|
|
192
|
-
export const outboundSchema = GetUserStatus$outboundSchema;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
142
|
/** @internal */
|
|
196
143
|
export const GetUserUserId$inboundSchema: z.ZodType<GetUserUserId, z.ZodTypeDef, unknown> =
|
|
197
144
|
z.object({
|
|
@@ -242,44 +189,6 @@ export function getUserUserIdFromJSON(
|
|
|
242
189
|
);
|
|
243
190
|
}
|
|
244
191
|
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const GetUserRoleType$inboundSchema: z.ZodNativeEnum<typeof GetUserRoleType> =
|
|
247
|
-
z.nativeEnum(GetUserRoleType);
|
|
248
|
-
|
|
249
|
-
/** @internal */
|
|
250
|
-
export const GetUserRoleType$outboundSchema: z.ZodNativeEnum<typeof GetUserRoleType> =
|
|
251
|
-
GetUserRoleType$inboundSchema;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
256
|
-
*/
|
|
257
|
-
export namespace GetUserRoleType$ {
|
|
258
|
-
/** @deprecated use `GetUserRoleType$inboundSchema` instead. */
|
|
259
|
-
export const inboundSchema = GetUserRoleType$inboundSchema;
|
|
260
|
-
/** @deprecated use `GetUserRoleType$outboundSchema` instead. */
|
|
261
|
-
export const outboundSchema = GetUserRoleType$outboundSchema;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/** @internal */
|
|
265
|
-
export const GetUserRoleEnum$inboundSchema: z.ZodNativeEnum<typeof GetUserRoleEnum> =
|
|
266
|
-
z.nativeEnum(GetUserRoleEnum);
|
|
267
|
-
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const GetUserRoleEnum$outboundSchema: z.ZodNativeEnum<typeof GetUserRoleEnum> =
|
|
270
|
-
GetUserRoleEnum$inboundSchema;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @internal
|
|
274
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
275
|
-
*/
|
|
276
|
-
export namespace GetUserRoleEnum$ {
|
|
277
|
-
/** @deprecated use `GetUserRoleEnum$inboundSchema` instead. */
|
|
278
|
-
export const inboundSchema = GetUserRoleEnum$inboundSchema;
|
|
279
|
-
/** @deprecated use `GetUserRoleEnum$outboundSchema` instead. */
|
|
280
|
-
export const outboundSchema = GetUserRoleEnum$outboundSchema;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
192
|
/** @internal */
|
|
284
193
|
export const GetUserOrg$inboundSchema: z.ZodType<GetUserOrg, z.ZodTypeDef, unknown> = z.object({
|
|
285
194
|
href: z.string(),
|
|
@@ -331,8 +240,8 @@ export function getUserOrgFromJSON(
|
|
|
331
240
|
|
|
332
241
|
/** @internal */
|
|
333
242
|
export const GetUserRole$inboundSchema: z.ZodType<GetUserRole, z.ZodTypeDef, unknown> = z.object({
|
|
334
|
-
roleType:
|
|
335
|
-
role:
|
|
243
|
+
roleType: RoleType$inboundSchema,
|
|
244
|
+
role: UserRole$inboundSchema,
|
|
336
245
|
org: z.lazy(() => GetUserOrg$inboundSchema),
|
|
337
246
|
userProfile: z.string().optional(),
|
|
338
247
|
beginDate: z.nullable(z.string()),
|
|
@@ -355,8 +264,8 @@ export const GetUserRole$outboundSchema: z.ZodType<
|
|
|
355
264
|
z.ZodTypeDef,
|
|
356
265
|
GetUserRole
|
|
357
266
|
> = z.object({
|
|
358
|
-
roleType:
|
|
359
|
-
role:
|
|
267
|
+
roleType: RoleType$outboundSchema,
|
|
268
|
+
role: UserRole$outboundSchema,
|
|
360
269
|
org: z.lazy(() => GetUserOrg$outboundSchema),
|
|
361
270
|
userProfile: z.string().optional(),
|
|
362
271
|
beginDate: z.nullable(z.string()),
|
|
@@ -390,30 +299,11 @@ export function getUserRoleFromJSON(
|
|
|
390
299
|
);
|
|
391
300
|
}
|
|
392
301
|
|
|
393
|
-
/** @internal */
|
|
394
|
-
export const GetUserType$inboundSchema: z.ZodNativeEnum<typeof GetUserType> =
|
|
395
|
-
z.nativeEnum(GetUserType);
|
|
396
|
-
|
|
397
|
-
/** @internal */
|
|
398
|
-
export const GetUserType$outboundSchema: z.ZodNativeEnum<typeof GetUserType> =
|
|
399
|
-
GetUserType$inboundSchema;
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* @internal
|
|
403
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
404
|
-
*/
|
|
405
|
-
export namespace GetUserType$ {
|
|
406
|
-
/** @deprecated use `GetUserType$inboundSchema` instead. */
|
|
407
|
-
export const inboundSchema = GetUserType$inboundSchema;
|
|
408
|
-
/** @deprecated use `GetUserType$outboundSchema` instead. */
|
|
409
|
-
export const outboundSchema = GetUserType$outboundSchema;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
302
|
/** @internal */
|
|
413
303
|
export const GetUserAgent$inboundSchema: z.ZodType<GetUserAgent, z.ZodTypeDef, unknown> = z.object({
|
|
414
304
|
href: z.string(),
|
|
415
305
|
sourcedId: z.string(),
|
|
416
|
-
type:
|
|
306
|
+
type: EntityType$inboundSchema,
|
|
417
307
|
});
|
|
418
308
|
|
|
419
309
|
/** @internal */
|
|
@@ -431,7 +321,7 @@ export const GetUserAgent$outboundSchema: z.ZodType<
|
|
|
431
321
|
> = z.object({
|
|
432
322
|
href: z.string(),
|
|
433
323
|
sourcedId: z.string(),
|
|
434
|
-
type:
|
|
324
|
+
type: EntityType$outboundSchema,
|
|
435
325
|
});
|
|
436
326
|
|
|
437
327
|
/**
|
|
@@ -517,7 +407,7 @@ export function getUserPrimaryOrgFromJSON(
|
|
|
517
407
|
/** @internal */
|
|
518
408
|
export const GetUserUser$inboundSchema: z.ZodType<GetUserUser, z.ZodTypeDef, unknown> = z.object({
|
|
519
409
|
sourcedId: z.string(),
|
|
520
|
-
status:
|
|
410
|
+
status: Status$inboundSchema,
|
|
521
411
|
dateLastModified: z
|
|
522
412
|
.string()
|
|
523
413
|
.datetime({ offset: true })
|
|
@@ -581,7 +471,7 @@ export const GetUserUser$outboundSchema: z.ZodType<
|
|
|
581
471
|
GetUserUser
|
|
582
472
|
> = z.object({
|
|
583
473
|
sourcedId: z.string(),
|
|
584
|
-
status:
|
|
474
|
+
status: Status$outboundSchema,
|
|
585
475
|
dateLastModified: z
|
|
586
476
|
.date()
|
|
587
477
|
.transform((v) => v.toISOString())
|