@nxtedition/types 23.0.53 → 23.0.54
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/dist/nxtpression.d.ts +1 -1
- package/dist/records/domains/user.d.ts +1 -1
- package/dist/records/validate/assert-guard.js +2 -2
- package/dist/records/validate/assert.js +2 -2
- package/dist/records/validate/is.js +1 -1
- package/dist/records/validate/schemas.js +8 -1
- package/dist/records/validate/stringify.js +1 -1
- package/dist/records/validate/validate-equals.js +3 -3
- package/dist/records/validate/validate.js +2 -2
- package/package.json +1 -1
package/dist/nxtpression.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface UserDomainRecords {
|
|
|
5
5
|
":user.unseenNotifications?": UserDomainUnseenNotificationsRecord;
|
|
6
6
|
}
|
|
7
7
|
export interface UserDomainRecord {
|
|
8
|
-
username?: string;
|
|
8
|
+
username?: string | null;
|
|
9
9
|
roles?: string[];
|
|
10
10
|
}
|
|
11
11
|
export interface UserDomainLatestSeenNotificationRecord {
|
|
@@ -15936,10 +15936,10 @@ function _assertGuardDomainRecord(domain, input) {
|
|
|
15936
15936
|
}; })()(input);
|
|
15937
15937
|
}
|
|
15938
15938
|
case ":user": {
|
|
15939
|
-
return (() => { const _io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
15939
|
+
return (() => { const _io0 = input => (null === input.username || undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => (null === input.username || undefined === input.username || "string" === typeof input.username || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
15940
15940
|
method: "typia.assertGuard",
|
|
15941
15941
|
path: _path + ".username",
|
|
15942
|
-
expected: "(string | undefined)",
|
|
15942
|
+
expected: "(null | string | undefined)",
|
|
15943
15943
|
value: input.username
|
|
15944
15944
|
}, _errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
15945
15945
|
method: "typia.assertGuard",
|
|
@@ -16067,10 +16067,10 @@ function _assertDomainRecord(domain, input) {
|
|
|
16067
16067
|
}; })()(input);
|
|
16068
16068
|
}
|
|
16069
16069
|
case ":user": {
|
|
16070
|
-
return (() => { const _io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16070
|
+
return (() => { const _io0 = input => (null === input.username || undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => (null === input.username || undefined === input.username || "string" === typeof input.username || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16071
16071
|
method: "typia.assert",
|
|
16072
16072
|
path: _path + ".username",
|
|
16073
|
-
expected: "(string | undefined)",
|
|
16073
|
+
expected: "(null | string | undefined)",
|
|
16074
16074
|
value: input.username
|
|
16075
16075
|
}, _errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
16076
16076
|
method: "typia.assert",
|
|
@@ -964,7 +964,7 @@ function _isDomainRecord(domain, input) {
|
|
|
964
964
|
return (() => { const _io0 = input => undefined === input.value || "string" === typeof input.value; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
965
965
|
}
|
|
966
966
|
case ":user": {
|
|
967
|
-
return (() => { const _io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
967
|
+
return (() => { const _io0 = input => (null === input.username || undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
968
968
|
}
|
|
969
969
|
case ":user.latestSeenNotification": {
|
|
970
970
|
return (() => { const _io0 = input => undefined === input.value || "string" === typeof input.value; return input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); })()(input);
|
|
@@ -12896,7 +12896,14 @@ function _schemasDomainRecord(domain) {
|
|
|
12896
12896
|
type: "object",
|
|
12897
12897
|
properties: {
|
|
12898
12898
|
username: {
|
|
12899
|
-
|
|
12899
|
+
oneOf: [
|
|
12900
|
+
{
|
|
12901
|
+
type: "null"
|
|
12902
|
+
},
|
|
12903
|
+
{
|
|
12904
|
+
type: "string"
|
|
12905
|
+
}
|
|
12906
|
+
]
|
|
12900
12907
|
},
|
|
12901
12908
|
roles: {
|
|
12902
12909
|
type: "array",
|
|
@@ -1829,7 +1829,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
1829
1829
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
1830
1830
|
}
|
|
1831
1831
|
case ":user": {
|
|
1832
|
-
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
1832
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? null !== input.username ? __typia_transform__jsonStringifyString._jsonStringifyString(input.username) : "null" : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
1833
1833
|
}
|
|
1834
1834
|
case ":user.latestSeenNotification": {
|
|
1835
1835
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? __typia_transform__jsonStringifyString._jsonStringifyString(input.value) : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
@@ -24457,16 +24457,16 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24457
24457
|
}; })()(input);
|
|
24458
24458
|
}
|
|
24459
24459
|
case ":user": {
|
|
24460
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every((elem, _index1) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
24460
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (null === input.username || undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every((elem, _index1) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
24461
24461
|
if (["username", "roles"].some(prop => key === prop))
|
|
24462
24462
|
return true;
|
|
24463
24463
|
const value = input[key];
|
|
24464
24464
|
if (undefined === value)
|
|
24465
24465
|
return true;
|
|
24466
24466
|
return false;
|
|
24467
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
24467
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [null === input.username || undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
24468
24468
|
path: _path + ".username",
|
|
24469
|
-
expected: "(string | undefined)",
|
|
24469
|
+
expected: "(null | string | undefined)",
|
|
24470
24470
|
value: input.username
|
|
24471
24471
|
}), undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
24472
24472
|
path: _path + ".roles",
|
|
@@ -15014,9 +15014,9 @@ function _validateDomainRecord(domain, input) {
|
|
|
15014
15014
|
}; })()(input);
|
|
15015
15015
|
}
|
|
15016
15016
|
case ":user": {
|
|
15017
|
-
return (() => { const _io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
15017
|
+
return (() => { const _io0 = input => (null === input.username || undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem)); const _vo0 = (input, _path, _exceptionable = true) => [null === input.username || undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
15018
15018
|
path: _path + ".username",
|
|
15019
|
-
expected: "(string | undefined)",
|
|
15019
|
+
expected: "(null | string | undefined)",
|
|
15020
15020
|
value: input.username
|
|
15021
15021
|
}), undefined === input.roles || (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
15022
15022
|
path: _path + ".roles",
|