@stevenkellner/team-conduct-api 2.0.19 → 2.0.20
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary, Flattable, ITypeBuilder, Tagged, UtcDate } from '@stevenkellner/typescript-common-functionality';
|
|
1
|
+
import { Dictionary, Flattable, Guid, ITypeBuilder, Tagged, UtcDate } from '@stevenkellner/typescript-common-functionality';
|
|
2
2
|
import { Team } from '../team/Team';
|
|
3
3
|
import { Person } from '../person/Person';
|
|
4
4
|
import { NotificationProperties } from './NotificationProperties';
|
|
@@ -35,7 +35,7 @@ export declare namespace User {
|
|
|
35
35
|
/**
|
|
36
36
|
* Tagged type for user identifiers to prevent mixing with other string IDs.
|
|
37
37
|
*/
|
|
38
|
-
type Id = Tagged<
|
|
38
|
+
type Id = Tagged<Guid, 'user'>;
|
|
39
39
|
namespace Id {
|
|
40
40
|
/**
|
|
41
41
|
* Flattened representation of a user ID (plain string).
|
|
@@ -44,7 +44,7 @@ export declare namespace User {
|
|
|
44
44
|
/**
|
|
45
45
|
* Builder for constructing User.Id instances from strings.
|
|
46
46
|
*/
|
|
47
|
-
const builder: Tagged.TypeBuilder<
|
|
47
|
+
const builder: Tagged.TypeBuilder<Guid, "user">;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Union type representing any sign-in method.
|
|
@@ -57,7 +57,7 @@ exports.User = User;
|
|
|
57
57
|
/**
|
|
58
58
|
* Builder for constructing User.Id instances from strings.
|
|
59
59
|
*/
|
|
60
|
-
Id.builder = typescript_common_functionality_1.Tagged.builder('user',
|
|
60
|
+
Id.builder = typescript_common_functionality_1.Tagged.builder('user', typescript_common_functionality_1.Guid.builder);
|
|
61
61
|
})(Id = User.Id || (User.Id = {}));
|
|
62
62
|
let SignInType;
|
|
63
63
|
(function (SignInType) {
|
package/package.json
CHANGED
package/src/types/user/User.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary, Flattable, ITypeBuilder, Tagged, UtcDate
|
|
1
|
+
import { Dictionary, Flattable, Guid, ITypeBuilder, Tagged, UtcDate } from '@stevenkellner/typescript-common-functionality';
|
|
2
2
|
import { Team } from '../team/Team';
|
|
3
3
|
import { Person } from '../person/Person';
|
|
4
4
|
import { NotificationProperties } from './NotificationProperties';
|
|
@@ -50,7 +50,7 @@ export namespace User {
|
|
|
50
50
|
/**
|
|
51
51
|
* Tagged type for user identifiers to prevent mixing with other string IDs.
|
|
52
52
|
*/
|
|
53
|
-
export type Id = Tagged<
|
|
53
|
+
export type Id = Tagged<Guid, 'user'>;
|
|
54
54
|
|
|
55
55
|
export namespace Id {
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@ export namespace User {
|
|
|
62
62
|
/**
|
|
63
63
|
* Builder for constructing User.Id instances from strings.
|
|
64
64
|
*/
|
|
65
|
-
export const builder = Tagged.builder('user' as const,
|
|
65
|
+
export const builder = Tagged.builder('user' as const, Guid.builder);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|