@api-client/core 0.12.11 → 0.12.13
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/build/src/mocking/lib/User.d.ts +2 -0
- package/build/src/mocking/lib/User.d.ts.map +1 -1
- package/build/src/mocking/lib/User.js +6 -0
- package/build/src/mocking/lib/User.js.map +1 -1
- package/build/src/models/store/Backend.d.ts +15 -2
- package/build/src/models/store/Backend.d.ts.map +1 -1
- package/build/src/models/store/Backend.js.map +1 -1
- package/build/src/models/store/User.d.ts +23 -2
- package/build/src/models/store/User.d.ts.map +1 -1
- package/build/src/models/store/User.js.map +1 -1
- package/build/src/runtime/store/OrganizationsSdk.d.ts +101 -70
- package/build/src/runtime/store/OrganizationsSdk.d.ts.map +1 -1
- package/build/src/runtime/store/OrganizationsSdk.js +358 -275
- package/build/src/runtime/store/OrganizationsSdk.js.map +1 -1
- package/build/src/runtime/store/RouteBuilder.d.ts +3 -0
- package/build/src/runtime/store/RouteBuilder.d.ts.map +1 -1
- package/build/src/runtime/store/RouteBuilder.js +9 -0
- package/build/src/runtime/store/RouteBuilder.js.map +1 -1
- package/data/models/example-generator-api.json +8 -8
- package/package.json +1 -1
- package/src/mocking/lib/User.ts +6 -0
- package/src/models/store/Backend.ts +16 -2
- package/src/models/store/User.ts +23 -2
- package/src/runtime/store/OrganizationsSdk.ts +359 -275
- package/src/runtime/store/RouteBuilder.ts +12 -0
- package/tests/unit/mocking/current/User.spec.ts +1 -1
- package/tests/unit/models/File/setDeleted.spec.ts +6 -0
- package/tests/unit/models/File/setLastModified.spec.ts +6 -0
|
@@ -170,6 +170,14 @@ export class RouteBuilder {
|
|
|
170
170
|
return `${this.organization(oid)}/users/${key}`
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
static organizationUserDeactivate(oid: string, key: string): string {
|
|
174
|
+
return `${this.organization(oid)}/users/${key}/deactivate`
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
static organizationUserActivate(oid: string, key: string): string {
|
|
178
|
+
return `${this.organization(oid)}/users/${key}/activate`
|
|
179
|
+
}
|
|
180
|
+
|
|
173
181
|
/**
|
|
174
182
|
* @deprecated Use `organizationUsers` instead.
|
|
175
183
|
*/
|
|
@@ -200,6 +208,10 @@ export class RouteBuilder {
|
|
|
200
208
|
return `${this.invitation(oid, id)}/decline`
|
|
201
209
|
}
|
|
202
210
|
|
|
211
|
+
static resendInvitation(oid: string, id: string): string {
|
|
212
|
+
return `${this.invitation(oid, id)}/resend`
|
|
213
|
+
}
|
|
214
|
+
|
|
203
215
|
/**
|
|
204
216
|
* @deprecated Not used anymore
|
|
205
217
|
*/
|
|
@@ -42,7 +42,7 @@ test.group('user()', (group) => {
|
|
|
42
42
|
|
|
43
43
|
test('does not set email when configured', ({ assert }) => {
|
|
44
44
|
const result = user.user({ noEmail: true })
|
|
45
|
-
assert.
|
|
45
|
+
assert.isEmpty(result.email)
|
|
46
46
|
})
|
|
47
47
|
|
|
48
48
|
test('has the picture object', ({ assert }) => {
|
|
@@ -6,6 +6,9 @@ test.group('File.setDeleted()', () => {
|
|
|
6
6
|
key: '123',
|
|
7
7
|
kind: 'Core#User',
|
|
8
8
|
name: 'a1',
|
|
9
|
+
email: [],
|
|
10
|
+
created: 0,
|
|
11
|
+
updated: 0,
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
test('sets the time', ({ assert }) => {
|
|
@@ -60,6 +63,9 @@ test.group('File::setDeleted()', () => {
|
|
|
60
63
|
key: '123',
|
|
61
64
|
kind: 'Core#User',
|
|
62
65
|
name: 'a1',
|
|
66
|
+
email: [],
|
|
67
|
+
created: 0,
|
|
68
|
+
updated: 0,
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
test('sets the time', ({ assert }) => {
|
|
@@ -6,6 +6,9 @@ test.group('File.setLastModified()', () => {
|
|
|
6
6
|
key: '123',
|
|
7
7
|
kind: 'Core#User',
|
|
8
8
|
name: 'a1',
|
|
9
|
+
email: [],
|
|
10
|
+
created: 0,
|
|
11
|
+
updated: 0,
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
test('sets the time', ({ assert }) => {
|
|
@@ -54,6 +57,9 @@ test.group('File::setLastModified()', () => {
|
|
|
54
57
|
key: '123',
|
|
55
58
|
kind: 'Core#User',
|
|
56
59
|
name: 'a1',
|
|
60
|
+
email: [],
|
|
61
|
+
created: 0,
|
|
62
|
+
updated: 0,
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
test('sets the time', ({ assert }) => {
|