@pax2pay/client 0.3.102 → 0.3.103
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,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export type UserStatus = typeof
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type UserStatus = typeof UserStatus.types[number];
|
|
3
3
|
export declare namespace UserStatus {
|
|
4
|
-
|
|
4
|
+
const types: readonly ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"];
|
|
5
|
+
const type: isly.Type<"ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED">;
|
|
6
|
+
const is: isly.Type.IsFunction<"ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED">;
|
|
5
7
|
}
|
package/dist/model/UserStatus.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly";
|
|
2
2
|
export var UserStatus;
|
|
3
3
|
(function (UserStatus) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
UserStatus.is = is;
|
|
4
|
+
UserStatus.types = ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"];
|
|
5
|
+
UserStatus.type = isly.string(UserStatus.types);
|
|
6
|
+
UserStatus.is = UserStatus.type.is;
|
|
8
7
|
})(UserStatus || (UserStatus = {}));
|
|
9
8
|
//# sourceMappingURL=UserStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStatus.js","sourceRoot":"../","sources":["model/UserStatus.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"UserStatus.js","sourceRoot":"../","sources":["model/UserStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,UAAU,CAI1B;AAJD,WAAiB,UAAU;IACb,gBAAK,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,CAAU,CAAA;IACtE,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa,WAAA,KAAK,CAAC,CAAA;IACrC,aAAE,GAAG,WAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,UAAU,KAAV,UAAU,QAI1B"}
|
package/model/UserStatus.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly"
|
|
2
2
|
|
|
3
|
-
export type UserStatus = typeof
|
|
3
|
+
export type UserStatus = typeof UserStatus.types[number]
|
|
4
4
|
|
|
5
5
|
export namespace UserStatus {
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export const types = ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"] as const
|
|
7
|
+
export const type = isly.string<UserStatus>(types)
|
|
8
|
+
export const is = type.is
|
|
9
9
|
}
|