@nxtedition/types 23.1.6 → 23.1.7
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/common/index.d.ts +2 -0
- package/dist/common/index.js +2 -0
- package/dist/common/panel-property.d.ts +35 -2
- package/dist/common/report.d.ts +85 -0
- package/dist/common/report.js +8 -0
- package/dist/common/rss.d.ts +70 -0
- package/dist/common/rss.js +11 -0
- package/dist/common/schema-property.d.ts +31 -27
- package/dist/nxtpression.d.ts +290 -41
- package/dist/records/domains/connection/index.d.ts +3 -1
- package/dist/records/domains/connection/index.js +1 -0
- package/dist/records/domains/connection/report.d.ts +7 -0
- package/dist/records/domains/connection/report.js +1 -0
- package/dist/records/domains/panel.d.ts +26 -3
- package/dist/records/domains/publish/index.d.ts +3 -1
- package/dist/records/domains/publish/index.js +1 -0
- package/dist/records/domains/publish/report.d.ts +70 -0
- package/dist/records/domains/publish/report.js +1294 -0
- package/dist/records/domains/schema.d.ts +2 -2
- package/dist/records/validate/assert-guard.js +3223 -1710
- package/dist/records/validate/assert.js +3223 -1710
- package/dist/records/validate/is.js +133 -31
- package/dist/records/validate/schemas.js +1805 -695
- package/dist/records/validate/stringify.js +549 -88
- package/dist/records/validate/validate-equals.js +2764 -887
- package/dist/records/validate/validate.js +2000 -750
- package/dist/rpc.d.ts +1 -1
- package/package.json +1 -1
|
@@ -104,89 +104,83 @@ function _stringifyExactRecord(name, input) {
|
|
|
104
104
|
})() : undefined}`}`)}}`; const _so1 = input => `{"__context":${_so2(input.__context)},"__returnValue":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.__returnValue))}}`; const _so2 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _io1 = input => "object" === typeof input.__context && null !== input.__context && _io2(input.__context) && "number" === typeof input.__returnValue; const _io2 = input => "string" === typeof input.id; return input => _so0(input); })()(input);
|
|
105
105
|
}
|
|
106
106
|
case "asset.dynamicProperties?": {
|
|
107
|
-
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => _su0(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so2(input.items) : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ?
|
|
107
|
+
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => _su0(elem)).join(",")}]` : undefined}`}`)}}`; const _so1 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so2(input.items) : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so3(input.properties) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so2(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so2(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
108
108
|
if ("string" === typeof input.widget)
|
|
109
109
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
110
110
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
111
|
-
return
|
|
111
|
+
return _so4(input.widget);
|
|
112
112
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
113
113
|
method: "typia.json.stringify",
|
|
114
114
|
expected: "(WidgetOptions | string | undefined)",
|
|
115
115
|
value: input.widget
|
|
116
116
|
});
|
|
117
|
-
})() : undefined},`}${undefined === input.
|
|
117
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined},`}"panel":${__typia_transform__jsonStringifyString._jsonStringifyString(input.panel)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"domain":${__typia_transform__jsonStringifyString._jsonStringifyString(input.domain)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so2(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so2(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so2(input.items) : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so3(input.properties) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
118
118
|
if ("string" === typeof input.widget)
|
|
119
119
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
120
120
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
121
|
-
return
|
|
121
|
+
return _so4(input.widget);
|
|
122
122
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
123
123
|
method: "typia.json.stringify",
|
|
124
124
|
expected: "(WidgetOptions | string | undefined)",
|
|
125
125
|
value: input.widget
|
|
126
126
|
});
|
|
127
|
-
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}
|
|
127
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
128
|
+
return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? String(input.readOnly) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
128
129
|
return ""; if (["type", "readOnly"].some(regular => regular === key))
|
|
129
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return _so7(input.recordName);
|
|
135
|
-
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
136
|
-
method: "typia.json.stringify",
|
|
137
|
-
expected: "(__type.o1 | string | undefined)",
|
|
138
|
-
value: input.recordName
|
|
139
|
-
});
|
|
140
|
-
})() : undefined},`}${undefined === input.setter || "function" === typeof input.setter ? "" : `"setter":${undefined !== input.setter ? (() => {
|
|
141
|
-
if ("function" === typeof input.setter)
|
|
142
|
-
return undefined;
|
|
143
|
-
if ("string" === typeof input.setter)
|
|
144
|
-
return __typia_transform__jsonStringifyString._jsonStringifyString(input.setter);
|
|
145
|
-
if ("object" === typeof input.setter && null !== input.setter)
|
|
146
|
-
return _so9(input.setter);
|
|
130
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input["default"] || "function" === typeof input["default"] ? "" : `"default":${undefined !== input["default"] ? JSON.stringify(input["default"]) : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so6(input.items) : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so7(input.properties) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so6(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so6(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
131
|
+
if ("string" === typeof input.widget)
|
|
132
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
133
|
+
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
134
|
+
return _so4(input.widget);
|
|
147
135
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
148
136
|
method: "typia.json.stringify",
|
|
149
|
-
expected: "(
|
|
150
|
-
value: input.
|
|
137
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
138
|
+
value: input.widget
|
|
151
139
|
});
|
|
152
|
-
})() : undefined},`}${undefined === input.
|
|
140
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined},`}"schema":${__typia_transform__jsonStringifyString._jsonStringifyString(input.schema)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"domain":${__typia_transform__jsonStringifyString._jsonStringifyString(input.domain)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so6(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so6(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so6(input.items) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so7(input.properties) : undefined},`}${undefined === input["default"] || "function" === typeof input["default"] ? "" : `"default":${undefined !== input["default"] ? JSON.stringify(input["default"]) : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
153
141
|
if ("string" === typeof input.widget)
|
|
154
142
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
155
143
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
156
|
-
return
|
|
144
|
+
return _so4(input.widget);
|
|
157
145
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
158
146
|
method: "typia.json.stringify",
|
|
159
147
|
expected: "(WidgetOptions | string | undefined)",
|
|
160
148
|
value: input.widget
|
|
161
149
|
});
|
|
162
|
-
})() : undefined},`}${undefined === input.
|
|
150
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so7 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
151
|
+
return ""; return `${JSON.stringify(key)}:${_so6(value)}`; }).filter(str => "" !== str).join(",")}}`; const _su0 = input => (() => {
|
|
163
152
|
if (undefined !== input.panel)
|
|
164
153
|
return _so1(input);
|
|
165
154
|
else if (undefined !== input.schema)
|
|
166
|
-
return
|
|
155
|
+
return _so5(input);
|
|
167
156
|
else
|
|
168
157
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
169
158
|
method: "typia.json.stringify",
|
|
170
159
|
expected: "(DynamicPanelProperty | DynamicSchemaProperty)",
|
|
171
160
|
value: input
|
|
172
161
|
});
|
|
173
|
-
})(); const _io1 = input => "string" === typeof input.panel && "string" === typeof input.path && "string" === typeof input.domain && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io2(input.items)) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) &&
|
|
162
|
+
})(); const _io1 = input => "string" === typeof input.panel && "string" === typeof input.path && "string" === typeof input.domain && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io2(input.items)) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io3(input.properties)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io4(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io2 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io2(input.items)) && true && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io3(input.properties)) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io4(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io3 = input => Object.keys(input).every(key => {
|
|
163
|
+
const value = input[key];
|
|
164
|
+
if (undefined === value)
|
|
165
|
+
return true;
|
|
166
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
167
|
+
}); const _io4 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
174
168
|
if (["type", "readOnly"].some(prop => key === prop))
|
|
175
169
|
return true;
|
|
176
170
|
const value = input[key];
|
|
177
171
|
if (undefined === value)
|
|
178
172
|
return true;
|
|
179
173
|
return true;
|
|
180
|
-
}); const _io4 = input => Object.keys(input).every(key => {
|
|
174
|
+
}); const _io5 = input => "string" === typeof input.schema && "string" === typeof input.path && "string" === typeof input.domain && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && true && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && true && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io4(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io6 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io4(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io7 = input => Object.keys(input).every(key => {
|
|
181
175
|
const value = input[key];
|
|
182
176
|
if (undefined === value)
|
|
183
177
|
return true;
|
|
184
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
185
|
-
}); const
|
|
178
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value);
|
|
179
|
+
}); const _iu0 = input => (() => {
|
|
186
180
|
if (undefined !== input.panel)
|
|
187
181
|
return _io1(input);
|
|
188
182
|
else if (undefined !== input.schema)
|
|
189
|
-
return
|
|
183
|
+
return _io5(input);
|
|
190
184
|
else
|
|
191
185
|
return false;
|
|
192
186
|
})(); return input => _so0(input); })()(input);
|
|
@@ -1451,7 +1445,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
1451
1445
|
expected: "(number | string | undefined)",
|
|
1452
1446
|
value: input.port
|
|
1453
1447
|
});
|
|
1454
|
-
})() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? String(input.ignoreMissing) : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.concurrency)) : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.stabilityThreshold)) : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.pollInterval)) : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.listConcurrency)) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so76 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so77 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? __typia_transform__jsonStringifyString._jsonStringifyString(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const
|
|
1448
|
+
})() : undefined},`}${undefined === input.ignoreMissing ? "" : `"ignoreMissing":${undefined !== input.ignoreMissing ? String(input.ignoreMissing) : undefined},`}${undefined === input.concurrency ? "" : `"concurrency":${undefined !== input.concurrency ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.concurrency)) : undefined},`}${undefined === input.stabilityThreshold ? "" : `"stabilityThreshold":${undefined !== input.stabilityThreshold ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.stabilityThreshold)) : undefined},`}${undefined === input.pollInterval ? "" : `"pollInterval":${undefined !== input.pollInterval ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.pollInterval)) : undefined},`}${undefined === input.listConcurrency ? "" : `"listConcurrency":${undefined !== input.listConcurrency ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.listConcurrency)) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so1(input.metafile) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so76 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.grantedScopes ? "" : `"grantedScopes":${undefined !== input.grantedScopes ? `[${input.grantedScopes.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so77 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so78 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.clientId ? "" : `"clientId":${undefined !== input.clientId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientId) : undefined},`}${undefined === input.clientSecret ? "" : `"clientSecret":${undefined !== input.clientSecret ? __typia_transform__jsonStringifyString._jsonStringifyString(input.clientSecret) : undefined},`}${undefined === input.audience ? "" : `"audience":${undefined !== input.audience ? __typia_transform__jsonStringifyString._jsonStringifyString(input.audience) : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _so79 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${null === input.type ? "null" : undefined},`}${undefined === input.userNotificationsEnabled ? "" : `"userNotificationsEnabled":${undefined !== input.userNotificationsEnabled ? String(input.userNotificationsEnabled) : undefined}`}`)}}`; const _su0 = input => (() => {
|
|
1455
1449
|
if (undefined !== input.__context)
|
|
1456
1450
|
return _so14(input);
|
|
1457
1451
|
else
|
|
@@ -1563,9 +1557,11 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
1563
1557
|
return _so77(input);
|
|
1564
1558
|
if (_io78(input))
|
|
1565
1559
|
return _so78(input);
|
|
1560
|
+
if (_io79(input))
|
|
1561
|
+
return _so79(input);
|
|
1566
1562
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
1567
1563
|
method: "typia.json.stringify",
|
|
1568
|
-
expected: "(FileConnectionFtpRecord | FileConnectionHttpRecord | FileConnectionS3Record | FileConnectionSmbRecord | FileConnectionSftpRecord | FacebookConnectionRecord | ReutersConnectionRecord | EmptyConnectionRecord)",
|
|
1564
|
+
expected: "(FileConnectionFtpRecord | FileConnectionHttpRecord | FileConnectionS3Record | FileConnectionSmbRecord | FileConnectionSftpRecord | FacebookConnectionRecord | ReportConnectionRecord | ReutersConnectionRecord | EmptyConnectionRecord)",
|
|
1569
1565
|
value: input
|
|
1570
1566
|
});
|
|
1571
1567
|
})(); const _io0 = input => (undefined === input.protocol || "ftp" === input.protocol) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.utf8 || "boolean" === typeof input.utf8) && (undefined === input.timezone || "string" === typeof input.timezone) && (undefined === input.type || "file" === input.type) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io1 = input => undefined === input.content || "string" === typeof input.content; const _io2 = input => (undefined === input.protocol || "http" === input.protocol) && (undefined === input.secure || "boolean" === typeof input.secure) && (undefined === input.authType || "none" === input.authType || "oauth2" === input.authType) && (undefined === input.oauth2 || "object" === typeof input.oauth2 && null !== input.oauth2 && false === Array.isArray(input.oauth2) && _io3(input.oauth2)) && (undefined === input.actions || "object" === typeof input.actions && null !== input.actions && false === Array.isArray(input.actions) && _io8(input.actions)) && (undefined === input.type || "file" === input.type) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io3 = input => (undefined === input.client || "object" === typeof input.client && null !== input.client && false === Array.isArray(input.client) && _io4(input.client)) && (undefined === input.auth || "object" === typeof input.auth && null !== input.auth && false === Array.isArray(input.auth) && _io5(input.auth)) && (undefined === input.tokenParams || "object" === typeof input.tokenParams && null !== input.tokenParams && false === Array.isArray(input.tokenParams) && _io6(input.tokenParams)) && (undefined === input.grantType || "password" === input.grantType) && (undefined === input.token || "object" === typeof input.token && null !== input.token && _io7(input.token)) && (undefined === input.error || "string" === typeof input.error); const _io4 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.secret || "string" === typeof input.secret) && (undefined === input.secretParamName || "string" === typeof input.secretParamName) && (undefined === input.idParamName || "string" === typeof input.idParamName); const _io5 = input => (undefined === input.tokenHost || "string" === typeof input.tokenHost) && (undefined === input.tokenPath || "string" === typeof input.tokenPath) && (undefined === input.refreshPath || "string" === typeof input.refreshPath) && (undefined === input.revokePath || "string" === typeof input.revokePath); const _io6 = input => Object.keys(input).every(key => {
|
|
@@ -1595,12 +1591,12 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
1595
1591
|
if (undefined === value)
|
|
1596
1592
|
return true;
|
|
1597
1593
|
return undefined === value || "string" === typeof value;
|
|
1598
|
-
}); const _io19 = input => "object" === typeof input.__context && null !== input.__context && _io12(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io20 = input => "object" === typeof input.__context && null !== input.__context && _io12(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io21 = input => (undefined === input.responseFormat || "
|
|
1594
|
+
}); const _io19 = input => "object" === typeof input.__context && null !== input.__context && _io12(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io20 = input => "object" === typeof input.__context && null !== input.__context && _io12(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io21 = input => (undefined === input.responseFormat || "json" === input.responseFormat || "text" === input.responseFormat || "stream" === input.responseFormat) && (null === input.error || undefined === input.error || "string" === typeof input.error || "object" === typeof input.error && null !== input.error && _io22(input.error)) && (null !== input.transform && (undefined === input.transform || "string" === typeof input.transform || "object" === typeof input.transform && null !== input.transform && _io25(input.transform))); const _io22 = input => "object" === typeof input.__context && null !== input.__context && _io23(input.__context) && (null === input.__returnValue || undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io23 = input => "object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io24(input.headers)) && "number" === typeof input.statusCode; const _io24 = input => Object.keys(input).every(key => {
|
|
1599
1595
|
const value = input[key];
|
|
1600
1596
|
if (undefined === value)
|
|
1601
1597
|
return true;
|
|
1602
1598
|
return null !== value && (undefined === value || "string" === typeof value || Array.isArray(value) && value.every(elem => "string" === typeof elem));
|
|
1603
|
-
}); const _io25 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (null !== input.__returnValue && undefined === input.__returnValue); const _io26 = input => "object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection) && true && (undefined === input.text || "string" === typeof input.text) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io24(input.headers)) && "number" === typeof input.statusCode; const _io27 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io28(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io35(input.response)); const _io28 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io29(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io29(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io29(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu3(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu4(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu5(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io34(input.throwOnError))); const _io29 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io30 = input => "string" === typeof input.filepath && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io31 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io32 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io33 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io34 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io35 = input => (undefined === input.responseFormat || "text" === input.responseFormat || "json" === input.responseFormat || "stream" === input.responseFormat) && (null === input.error || undefined === input.error || "string" === typeof input.error || "object" === typeof input.error && null !== input.error && _io22(input.error)) && (null !== input.transform && (undefined === input.transform || "string" === typeof input.transform || "object" === typeof input.transform && null !== input.transform && false === Array.isArray(input.transform) && _iu6(input.transform))); const _io36 = input => (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash); const _io37 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io36(input.__returnValue)); const _io38 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io39(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io46(input.response)); const _io39 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io40(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io40(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io40(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu7(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu8(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu9(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io45(input.throwOnError))); const _io40 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io41 = input => (undefined === input.dirpath || "string" === typeof input.dirpath) && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io42 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io43 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io44 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io45 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io46 = input => (undefined === input.responseFormat || "text" === input.responseFormat || "json" === input.responseFormat || "stream" === input.responseFormat) && (null === input.error || undefined === input.error || "string" === typeof input.error || "object" === typeof input.error && null !== input.error && _io22(input.error)) && (null !== input.transform && (undefined === input.transform || "string" === typeof input.transform || (Array.isArray(input.transform) && input.transform.every(elem => "object" === typeof elem && null !== elem && _io47(elem)) || "object" === typeof input.transform && null !== input.transform && _io48(input.transform)))); const _io47 = input => "string" === typeof input.name && "boolean" === typeof input.isDir && "number" === typeof input.size && (undefined === input.date || "string" === typeof input.date) && "string" === typeof input.path; const _io48 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "object" === typeof elem && null !== elem && _io47(elem))); const _io49 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io50(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io50 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io51(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io51(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io51(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu10(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu11(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu12(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io56(input.throwOnError))); const _io51 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io52 = input => "string" === typeof input.id && (undefined === input.offset || "number" === typeof input.offset) && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io53 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io54 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io55 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io56 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io57 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io58(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io58 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io59(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io59(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io59(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu13(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu14(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu15(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io64(input.throwOnError))); const _io59 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io60 = input => "string" === typeof input.filepath && true && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io61 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io62 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io63 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io64 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io65 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io66(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io66 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io67(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io67(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io67(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu16(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu17(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu18(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io72(input.throwOnError))); const _io67 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io68 = input => "string" === typeof input.id && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io69 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io70 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io71 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io72 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io73 = input => (undefined === input.protocol || "s3" === input.protocol) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.type || "file" === input.type) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io74 = input => (undefined === input.protocol || "smb" === input.protocol) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.share || "string" === typeof input.share) && (undefined === input.root || "string" === typeof input.root) && (undefined === input.workgroup || "string" === typeof input.workgroup) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.createFolders || "boolean" === typeof input.createFolders) && (undefined === input.type || "file" === input.type) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io75 = input => (undefined === input.protocol || "sftp" === input.protocol) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.privateKey || "string" === typeof input.privateKey) && (undefined === input.timezone || "string" === typeof input.timezone) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.root || "string" === typeof input.root) && (undefined === input.mode || "libcurl" === input.mode || "lftp" === input.mode || "openssh" === input.mode || "ssh2" === input.mode) && (undefined === input.type || "file" === input.type) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io76 = input => (undefined === input.type || "facebook" === input.type) && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io77 = input => (undefined === input.type || "reuters" === input.type) && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io78 = input => (null === input.type || undefined === input.type) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _iu0 = input => (() => {
|
|
1599
|
+
}); const _io25 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (null !== input.__returnValue && undefined === input.__returnValue); const _io26 = input => "object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection) && true && (undefined === input.text || "string" === typeof input.text) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io24(input.headers)) && "number" === typeof input.statusCode; const _io27 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io28(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io35(input.response)); const _io28 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io29(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io29(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io29(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu3(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu4(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu5(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io34(input.throwOnError))); const _io29 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io30 = input => "string" === typeof input.filepath && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io31 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io32 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io33 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io34 = input => "object" === typeof input.__context && null !== input.__context && _io30(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io35 = input => (undefined === input.responseFormat || "json" === input.responseFormat || "text" === input.responseFormat || "stream" === input.responseFormat) && (null === input.error || undefined === input.error || "string" === typeof input.error || "object" === typeof input.error && null !== input.error && _io22(input.error)) && (null !== input.transform && (undefined === input.transform || "string" === typeof input.transform || "object" === typeof input.transform && null !== input.transform && false === Array.isArray(input.transform) && _iu6(input.transform))); const _io36 = input => (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash); const _io37 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io36(input.__returnValue)); const _io38 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io39(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io46(input.response)); const _io39 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io40(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io40(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io40(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu7(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu8(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu9(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io45(input.throwOnError))); const _io40 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io41 = input => (undefined === input.dirpath || "string" === typeof input.dirpath) && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io42 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io43 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io44 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io45 = input => "object" === typeof input.__context && null !== input.__context && _io41(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io46 = input => (undefined === input.responseFormat || "json" === input.responseFormat || "text" === input.responseFormat || "stream" === input.responseFormat) && (null === input.error || undefined === input.error || "string" === typeof input.error || "object" === typeof input.error && null !== input.error && _io22(input.error)) && (null !== input.transform && (undefined === input.transform || "string" === typeof input.transform || (Array.isArray(input.transform) && input.transform.every(elem => "object" === typeof elem && null !== elem && _io47(elem)) || "object" === typeof input.transform && null !== input.transform && _io48(input.transform)))); const _io47 = input => "string" === typeof input.name && "boolean" === typeof input.isDir && "number" === typeof input.size && (undefined === input.date || "string" === typeof input.date) && "string" === typeof input.path; const _io48 = input => "object" === typeof input.__context && null !== input.__context && _io26(input.__context) && (Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "object" === typeof elem && null !== elem && _io47(elem))); const _io49 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io50(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io50 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io51(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io51(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io51(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu10(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu11(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu12(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io56(input.throwOnError))); const _io51 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io52 = input => "string" === typeof input.id && (undefined === input.offset || "number" === typeof input.offset) && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io53 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io54 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io55 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io56 = input => "object" === typeof input.__context && null !== input.__context && _io52(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io57 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io58(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io58 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io59(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io59(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io59(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu13(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu14(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu15(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io64(input.throwOnError))); const _io59 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io60 = input => "string" === typeof input.filepath && true && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io61 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io62 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io63 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io64 = input => "object" === typeof input.__context && null !== input.__context && _io60(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io65 = input => (undefined === input.request || "object" === typeof input.request && null !== input.request && false === Array.isArray(input.request) && _io66(input.request)) && (undefined === input.response || "object" === typeof input.response && null !== input.response && false === Array.isArray(input.response) && _io21(input.response)); const _io66 = input => null !== input.origin && (undefined === input.origin || "string" === typeof input.origin || "object" === typeof input.origin && null !== input.origin && _io67(input.origin)) && (null !== input.path && (undefined === input.path || "string" === typeof input.path || "object" === typeof input.path && null !== input.path && _io67(input.path))) && (null !== input.method && (undefined === input.method || "string" === typeof input.method || "object" === typeof input.method && null !== input.method && _io67(input.method))) && (null !== input.params && (undefined === input.params || "string" === typeof input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _iu16(input.params))) && (null !== input.form && (undefined === input.form || "string" === typeof input.form || "object" === typeof input.form && null !== input.form && false === Array.isArray(input.form) && _iu17(input.form))) && (null !== input.headers && (undefined === input.headers || "string" === typeof input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _iu18(input.headers))) && (null !== input.throwOnError && (undefined === input.throwOnError || "string" === typeof input.throwOnError || "boolean" === typeof input.throwOnError || "object" === typeof input.throwOnError && null !== input.throwOnError && _io72(input.throwOnError))); const _io67 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io68 = input => "string" === typeof input.id && ("object" === typeof input.connection && null !== input.connection && false === Array.isArray(input.connection) && _io2(input.connection)); const _io69 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io70 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io15(input.__returnValue)); const _io71 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io18(input.__returnValue)); const _io72 = input => "object" === typeof input.__context && null !== input.__context && _io68(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io73 = input => (undefined === input.protocol || "s3" === input.protocol) && true && (undefined === input.bucket || "string" === typeof input.bucket) && (undefined === input.type || "file" === input.type) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io74 = input => (undefined === input.protocol || "smb" === input.protocol) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.share || "string" === typeof input.share) && (undefined === input.root || "string" === typeof input.root) && (undefined === input.workgroup || "string" === typeof input.workgroup) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.createFolders || "boolean" === typeof input.createFolders) && (undefined === input.type || "file" === input.type) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io75 = input => (undefined === input.protocol || "sftp" === input.protocol) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.privateKey || "string" === typeof input.privateKey) && (undefined === input.timezone || "string" === typeof input.timezone) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.root || "string" === typeof input.root) && (undefined === input.mode || "libcurl" === input.mode || "lftp" === input.mode || "openssh" === input.mode || "ssh2" === input.mode) && (undefined === input.type || "file" === input.type) && (undefined === input.port || "string" === typeof input.port || "number" === typeof input.port) && (undefined === input.ignoreMissing || "boolean" === typeof input.ignoreMissing) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.stabilityThreshold || "number" === typeof input.stabilityThreshold) && (undefined === input.pollInterval || "number" === typeof input.pollInterval) && (undefined === input.listConcurrency || "number" === typeof input.listConcurrency) && (undefined === input.metafile || "object" === typeof input.metafile && null !== input.metafile && false === Array.isArray(input.metafile) && _io1(input.metafile)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io76 = input => (undefined === input.type || "facebook" === input.type) && (undefined === input.grantedScopes || Array.isArray(input.grantedScopes) && input.grantedScopes.every(elem => "string" === typeof elem)) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io77 = input => (undefined === input.type || "report" === input.type) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io78 = input => (undefined === input.type || "reuters" === input.type) && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.audience || "string" === typeof input.audience) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _io79 = input => (null === input.type || undefined === input.type) && (undefined === input.userNotificationsEnabled || "boolean" === typeof input.userNotificationsEnabled); const _iu0 = input => (() => {
|
|
1604
1600
|
if (undefined !== input.__context)
|
|
1605
1601
|
return _io14(input);
|
|
1606
1602
|
else
|
|
@@ -2349,31 +2345,31 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2349
2345
|
expected: "(Array<string> | string | undefined)",
|
|
2350
2346
|
value: input.supports
|
|
2351
2347
|
});
|
|
2352
|
-
})() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.editorPriority)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so7(input.layout) : undefined},`}${undefined === input.filter || "function" === typeof input.filter ? "" : `"filter":${undefined !== input.filter ? JSON.stringify(input.filter) : undefined},`}${undefined === input.expand || "function" === typeof input.expand ? "" : `"expand":${undefined !== input.expand ? JSON.stringify(input.expand) : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2353
|
-
return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.
|
|
2348
|
+
})() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.editorPriority)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so7(input.layout) : undefined},`}${undefined === input.filter || "function" === typeof input.filter ? "" : `"filter":${undefined !== input.filter ? JSON.stringify(input.filter) : undefined},`}${undefined === input.expand || "function" === typeof input.expand ? "" : `"expand":${undefined !== input.expand ? JSON.stringify(input.expand) : undefined},`}${undefined === input.expandSkipEmpty ? "" : `"expandSkipEmpty":${undefined !== input.expandSkipEmpty ? String(input.expandSkipEmpty) : undefined},`}${undefined === input.xml ? "" : `"xml":${undefined !== input.xml ? _so10(input.xml) : undefined},`}${undefined === input.rss ? "" : `"rss":${undefined !== input.rss ? _so21(input.rss) : undefined},`}${undefined === input.expandIngestclip ? "" : `"expandIngestclip":${undefined !== input.expandIngestclip ? String(input.expandIngestclip) : undefined},`}${undefined === input.publishedTypes ? "" : `"publishedTypes":${undefined !== input.publishedTypes ? null !== input.publishedTypes ? `[${input.publishedTypes.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : "null" : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2349
|
+
return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? _so3(input.index) : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so4(input.items) : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so5(input.properties) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so4(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so4(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
2354
2350
|
if ("string" === typeof input.widget)
|
|
2355
2351
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
2356
2352
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
2357
|
-
return
|
|
2353
|
+
return _so6(input.widget);
|
|
2358
2354
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2359
2355
|
method: "typia.json.stringify",
|
|
2360
2356
|
expected: "(WidgetOptions | string | undefined)",
|
|
2361
2357
|
value: input.widget
|
|
2362
2358
|
});
|
|
2363
|
-
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}
|
|
2359
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so3 = input => `{"label":${__typia_transform__jsonStringifyString._jsonStringifyString(input.label)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so4(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so4(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so4(input.items) : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so5(input.properties) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
2364
2360
|
if ("string" === typeof input.widget)
|
|
2365
2361
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
2366
2362
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
2367
|
-
return
|
|
2363
|
+
return _so6(input.widget);
|
|
2368
2364
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2369
2365
|
method: "typia.json.stringify",
|
|
2370
2366
|
expected: "(WidgetOptions | string | undefined)",
|
|
2371
2367
|
value: input.widget
|
|
2372
2368
|
});
|
|
2373
|
-
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}
|
|
2369
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so5 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2370
|
+
return ""; return `${JSON.stringify(key)}:${_so4(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? String(input.readOnly) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2374
2371
|
return ""; if (["type", "readOnly"].some(regular => regular === key))
|
|
2375
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const
|
|
2376
|
-
return ""; return `${JSON.stringify(key)}:${_so3(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so6 = input => `{"label":${__typia_transform__jsonStringifyString._jsonStringifyString(input.label)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
|
|
2372
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
|
|
2377
2373
|
if ("string" === typeof input.panel)
|
|
2378
2374
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.panel);
|
|
2379
2375
|
if (Array.isArray(input.panel))
|
|
@@ -2397,6 +2393,46 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2397
2393
|
expected: "(Array<WidgetLayout> | WidgetLayoutDivider | WidgetLayoutItem | string | undefined)",
|
|
2398
2394
|
value: input.editor
|
|
2399
2395
|
});
|
|
2396
|
+
})() : undefined},`}${undefined === input.csv ? "" : `"csv":${undefined !== input.csv ? (() => {
|
|
2397
|
+
if ("boolean" === typeof input.csv)
|
|
2398
|
+
return String(input.csv);
|
|
2399
|
+
if (Array.isArray(input.csv))
|
|
2400
|
+
return `[${input.csv.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
|
|
2401
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2402
|
+
method: "typia.json.stringify",
|
|
2403
|
+
expected: "(Array<string> | true | undefined)",
|
|
2404
|
+
value: input.csv
|
|
2405
|
+
});
|
|
2406
|
+
})() : undefined},`}${undefined === input.json ? "" : `"json":${undefined !== input.json ? (() => {
|
|
2407
|
+
if ("boolean" === typeof input.json)
|
|
2408
|
+
return String(input.json);
|
|
2409
|
+
if (Array.isArray(input.json))
|
|
2410
|
+
return `[${input.json.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
|
|
2411
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2412
|
+
method: "typia.json.stringify",
|
|
2413
|
+
expected: "(Array<string> | true | undefined)",
|
|
2414
|
+
value: input.json
|
|
2415
|
+
});
|
|
2416
|
+
})() : undefined},`}${undefined === input.xml ? "" : `"xml":${undefined !== input.xml ? (() => {
|
|
2417
|
+
if ("boolean" === typeof input.xml)
|
|
2418
|
+
return String(input.xml);
|
|
2419
|
+
if (Array.isArray(input.xml))
|
|
2420
|
+
return `[${input.xml.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
|
|
2421
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2422
|
+
method: "typia.json.stringify",
|
|
2423
|
+
expected: "(Array<string> | true | undefined)",
|
|
2424
|
+
value: input.xml
|
|
2425
|
+
});
|
|
2426
|
+
})() : undefined},`}${undefined === input.rss ? "" : `"rss":${undefined !== input.rss ? (() => {
|
|
2427
|
+
if ("boolean" === typeof input.rss)
|
|
2428
|
+
return String(input.rss);
|
|
2429
|
+
if (Array.isArray(input.rss))
|
|
2430
|
+
return `[${input.rss.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`;
|
|
2431
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2432
|
+
method: "typia.json.stringify",
|
|
2433
|
+
expected: "(Array<string> | true | undefined)",
|
|
2434
|
+
value: input.rss
|
|
2435
|
+
});
|
|
2400
2436
|
})() : undefined}`}`)}}`; const _so8 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so9 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
|
|
2401
2437
|
if ("string" === typeof input.width)
|
|
2402
2438
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.width);
|
|
@@ -2411,13 +2447,85 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2411
2447
|
if ("string" === typeof input.widget)
|
|
2412
2448
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
2413
2449
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
2414
|
-
return
|
|
2450
|
+
return _so6(input.widget);
|
|
2415
2451
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2416
2452
|
method: "typia.json.stringify",
|
|
2417
2453
|
expected: "(WidgetOptions | string | undefined)",
|
|
2418
2454
|
value: input.widget
|
|
2419
2455
|
});
|
|
2420
|
-
})() : undefined},`}"property":${__typia_transform__jsonStringifyString._jsonStringifyString(input.property)}}`; const
|
|
2456
|
+
})() : undefined},`}"property":${__typia_transform__jsonStringifyString._jsonStringifyString(input.property)}}`; const _so10 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.options ? "" : `"options":${undefined !== input.options ? _so11(input.options) : undefined},`}${undefined === input.formatterOptions ? "" : `"formatterOptions":${undefined !== input.formatterOptions ? _so15(input.formatterOptions) : undefined},`}${undefined === input.rootSchema ? "" : `"rootSchema":${undefined !== input.rootSchema ? (() => {
|
|
2457
|
+
if ("string" === typeof input.rootSchema)
|
|
2458
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.rootSchema);
|
|
2459
|
+
if (Array.isArray(input.rootSchema))
|
|
2460
|
+
return `[${input.rootSchema.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2461
|
+
if ("object" === typeof input.rootSchema && null !== input.rootSchema && false === Array.isArray(input.rootSchema))
|
|
2462
|
+
return _su1(input.rootSchema);
|
|
2463
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2464
|
+
method: "typia.json.stringify",
|
|
2465
|
+
expected: "(Array<any> | __type.o5 | __type.o6 | string | undefined)",
|
|
2466
|
+
value: input.rootSchema
|
|
2467
|
+
});
|
|
2468
|
+
})() : undefined},`}${undefined === input.itemSchema ? "" : `"itemSchema":${undefined !== input.itemSchema ? (() => {
|
|
2469
|
+
if ("string" === typeof input.itemSchema)
|
|
2470
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.itemSchema);
|
|
2471
|
+
if (Array.isArray(input.itemSchema))
|
|
2472
|
+
return `[${input.itemSchema.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2473
|
+
if ("object" === typeof input.itemSchema && null !== input.itemSchema && false === Array.isArray(input.itemSchema))
|
|
2474
|
+
return _su2(input.itemSchema);
|
|
2475
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2476
|
+
method: "typia.json.stringify",
|
|
2477
|
+
expected: "(Array<any> | __type.o5 | __type.o8 | string | undefined)",
|
|
2478
|
+
value: input.itemSchema
|
|
2479
|
+
});
|
|
2480
|
+
})() : undefined}`}`)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.version ? "" : `"version":${undefined !== input.version ? "\"" + input.version + "\"" : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined},`}${undefined === input.standalone ? "" : `"standalone":${undefined !== input.standalone ? String(input.standalone) : undefined},`}${undefined === input.keepNullNodes ? "" : `"keepNullNodes":${undefined !== input.keepNullNodes ? String(input.keepNullNodes) : undefined},`}${undefined === input.keepNullAttributes ? "" : `"keepNullAttributes":${undefined !== input.keepNullAttributes ? String(input.keepNullAttributes) : undefined},`}${undefined === input.ignoreConverters ? "" : `"ignoreConverters":${undefined !== input.ignoreConverters ? String(input.ignoreConverters) : undefined},`}${undefined === input.skipWhitespaceOnlyText ? "" : `"skipWhitespaceOnlyText":${undefined !== input.skipWhitespaceOnlyText ? String(input.skipWhitespaceOnlyText) : undefined},`}${undefined === input.convert ? "" : `"convert":${undefined !== input.convert ? _so12(input.convert) : undefined},`}${undefined === input.defaultNamespace ? "" : `"defaultNamespace":${undefined !== input.defaultNamespace ? _so13(input.defaultNamespace) : undefined},`}${undefined === input.namespaceAlias ? "" : `"namespaceAlias":${undefined !== input.namespaceAlias ? _so14(input.namespaceAlias) : undefined},`}${undefined === input.invalidCharReplacement || "function" === typeof input.invalidCharReplacement ? "" : `"invalidCharReplacement":${undefined !== input.invalidCharReplacement ? (() => {
|
|
2481
|
+
if ("function" === typeof input.invalidCharReplacement)
|
|
2482
|
+
return undefined;
|
|
2483
|
+
if ("string" === typeof input.invalidCharReplacement)
|
|
2484
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.invalidCharReplacement);
|
|
2485
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2486
|
+
method: "typia.json.stringify",
|
|
2487
|
+
expected: "(string | undefined)",
|
|
2488
|
+
value: input.invalidCharReplacement
|
|
2489
|
+
});
|
|
2490
|
+
})() : undefined},`}${undefined === input.parser || "function" === typeof input.parser ? "" : `"parser":${undefined !== input.parser ? JSON.stringify(input.parser) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2491
|
+
return ""; if (["version", "encoding", "standalone", "keepNullNodes", "keepNullAttributes", "ignoreConverters", "skipWhitespaceOnlyText", "convert", "defaultNamespace", "namespaceAlias", "invalidCharReplacement", "parser"].some(regular => regular === key))
|
|
2492
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so12 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.att ? "" : `"att":${undefined !== input.att ? __typia_transform__jsonStringifyString._jsonStringifyString(input.att) : undefined},`}${undefined === input.ins ? "" : `"ins":${undefined !== input.ins ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ins) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? __typia_transform__jsonStringifyString._jsonStringifyString(input.text) : undefined},`}${undefined === input.cdata ? "" : `"cdata":${undefined !== input.cdata ? __typia_transform__jsonStringifyString._jsonStringifyString(input.cdata) : undefined},`}${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.comment) : undefined}`}`)}}`; const _so13 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.ele ? "" : `"ele":${undefined !== input.ele ? null !== input.ele ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ele) : "null" : undefined},`}${undefined === input.att ? "" : `"att":${undefined !== input.att ? null !== input.att ? __typia_transform__jsonStringifyString._jsonStringifyString(input.att) : "null" : undefined}`}`)}}`; const _so14 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2493
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? null !== value ? __typia_transform__jsonStringifyString._jsonStringifyString(value) : "null" : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so15 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.wellFormed ? "" : `"wellFormed":${undefined !== input.wellFormed ? String(input.wellFormed) : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? "\"" + input.format + "\"" : undefined},`}${undefined === input.headless ? "" : `"headless":${undefined !== input.headless ? String(input.headless) : undefined},`}${undefined === input.prettyPrint ? "" : `"prettyPrint":${undefined !== input.prettyPrint ? String(input.prettyPrint) : undefined},`}${undefined === input.indent ? "" : `"indent":${undefined !== input.indent ? __typia_transform__jsonStringifyString._jsonStringifyString(input.indent) : undefined},`}${undefined === input.newline ? "" : `"newline":${undefined !== input.newline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.newline) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset)) : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.width)) : undefined},`}${undefined === input.allowEmptyTags ? "" : `"allowEmptyTags":${undefined !== input.allowEmptyTags ? String(input.allowEmptyTags) : undefined},`}${undefined === input.indentTextOnlyNodes ? "" : `"indentTextOnlyNodes":${undefined !== input.indentTextOnlyNodes ? String(input.indentTextOnlyNodes) : undefined},`}${undefined === input.spaceBeforeSlash ? "" : `"spaceBeforeSlash":${undefined !== input.spaceBeforeSlash ? String(input.spaceBeforeSlash) : undefined}`}`)}}`; const _so16 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2494
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so17 = input => `{"__context":${_so18(input.__context)},"__returnValue":${(() => {
|
|
2495
|
+
if (Array.isArray(input.__returnValue))
|
|
2496
|
+
return `[${input.__returnValue.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2497
|
+
if ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue))
|
|
2498
|
+
return _so16(input.__returnValue);
|
|
2499
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2500
|
+
method: "typia.json.stringify",
|
|
2501
|
+
expected: "(Array<any> | __type.o5)",
|
|
2502
|
+
value: input.__returnValue
|
|
2503
|
+
});
|
|
2504
|
+
})()}}`; const _so18 = input => `{"publishId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.publishId)},"items":${`[${input.items.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`}}`; const _so19 = input => `{"__context":${_so20(input.__context)},"__returnValue":${(() => {
|
|
2505
|
+
if (Array.isArray(input.__returnValue))
|
|
2506
|
+
return `[${input.__returnValue.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2507
|
+
if ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue))
|
|
2508
|
+
return _so16(input.__returnValue);
|
|
2509
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2510
|
+
method: "typia.json.stringify",
|
|
2511
|
+
expected: "(Array<any> | __type.o5)",
|
|
2512
|
+
value: input.__returnValue
|
|
2513
|
+
});
|
|
2514
|
+
})()}}`; const _so20 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2515
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so21 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.namespaces ? "" : `"namespaces":${undefined !== input.namespaces ? _so22(input.namespaces) : undefined},`}${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.updated ? "" : `"updated":${undefined !== input.updated ? (() => {
|
|
2516
|
+
if ("string" === typeof input.updated)
|
|
2517
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.updated);
|
|
2518
|
+
if ("number" === typeof input.updated)
|
|
2519
|
+
return String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.updated));
|
|
2520
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2521
|
+
method: "typia.json.stringify",
|
|
2522
|
+
expected: "(number | string | undefined)",
|
|
2523
|
+
value: input.updated
|
|
2524
|
+
});
|
|
2525
|
+
})() : undefined},`}${undefined === input.generator ? "" : `"generator":${undefined !== input.generator ? __typia_transform__jsonStringifyString._jsonStringifyString(input.generator) : undefined},`}${undefined === input.language ? "" : `"language":${undefined !== input.language ? __typia_transform__jsonStringifyString._jsonStringifyString(input.language) : undefined},`}${undefined === input.ttl ? "" : `"ttl":${undefined !== input.ttl ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.ttl)) : undefined},`}${undefined === input.stylesheet ? "" : `"stylesheet":${undefined !== input.stylesheet ? __typia_transform__jsonStringifyString._jsonStringifyString(input.stylesheet) : undefined},`}${undefined === input.feed ? "" : `"feed":${undefined !== input.feed ? __typia_transform__jsonStringifyString._jsonStringifyString(input.feed) : undefined},`}${undefined === input.feedLinks ? "" : `"feedLinks":${undefined !== input.feedLinks ? _so23(input.feedLinks) : undefined},`}${undefined === input.hub ? "" : `"hub":${undefined !== input.hub ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hub) : undefined},`}${undefined === input.docs ? "" : `"docs":${undefined !== input.docs ? __typia_transform__jsonStringifyString._jsonStringifyString(input.docs) : undefined},`}${undefined === input.podcast ? "" : `"podcast":${undefined !== input.podcast ? String(input.podcast) : undefined},`}${undefined === input.category ? "" : `"category":${undefined !== input.category ? __typia_transform__jsonStringifyString._jsonStringifyString(input.category) : undefined},`}${undefined === input.author ? "" : `"author":${undefined !== input.author ? _so24(input.author) : undefined},`}${undefined === input.link ? "" : `"link":${undefined !== input.link ? __typia_transform__jsonStringifyString._jsonStringifyString(input.link) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.image ? "" : `"image":${undefined !== input.image ? __typia_transform__jsonStringifyString._jsonStringifyString(input.image) : undefined},`}${undefined === input.favicon ? "" : `"favicon":${undefined !== input.favicon ? __typia_transform__jsonStringifyString._jsonStringifyString(input.favicon) : undefined},`}${undefined === input.copyright ? "" : `"copyright":${undefined !== input.copyright ? __typia_transform__jsonStringifyString._jsonStringifyString(input.copyright) : undefined}`}`)}}`; const _so22 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2526
|
+
return ""; return `${JSON.stringify(key)}:${__typia_transform__jsonStringifyString._jsonStringifyString(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so23 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.rss ? "" : `"rss":${undefined !== input.rss ? __typia_transform__jsonStringifyString._jsonStringifyString(input.rss) : undefined},`}${undefined === input.atom ? "" : `"atom":${undefined !== input.atom ? __typia_transform__jsonStringifyString._jsonStringifyString(input.atom) : undefined},`}${undefined === input.json ? "" : `"json":${undefined !== input.json ? __typia_transform__jsonStringifyString._jsonStringifyString(input.json) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2527
|
+
return ""; if (["rss", "atom", "json"].some(regular => regular === key))
|
|
2528
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? __typia_transform__jsonStringifyString._jsonStringifyString(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so24 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.email ? "" : `"email":${undefined !== input.email ? __typia_transform__jsonStringifyString._jsonStringifyString(input.email) : undefined},`}${undefined === input.link ? "" : `"link":${undefined !== input.link ? __typia_transform__jsonStringifyString._jsonStringifyString(input.link) : undefined},`}${undefined === input.avatar ? "" : `"avatar":${undefined !== input.avatar ? __typia_transform__jsonStringifyString._jsonStringifyString(input.avatar) : undefined}`}`)}}`; const _su0 = input => (() => {
|
|
2421
2529
|
if (undefined !== input.type)
|
|
2422
2530
|
return _so8(input);
|
|
2423
2531
|
else if (undefined !== input.property)
|
|
@@ -2428,6 +2536,16 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2428
2536
|
expected: "(WidgetLayoutDivider | WidgetLayoutItem)",
|
|
2429
2537
|
value: input
|
|
2430
2538
|
});
|
|
2539
|
+
})(); const _su1 = input => (() => {
|
|
2540
|
+
if (undefined !== input.__context)
|
|
2541
|
+
return _so17(input);
|
|
2542
|
+
else
|
|
2543
|
+
return _so16(input);
|
|
2544
|
+
})(); const _su2 = input => (() => {
|
|
2545
|
+
if (undefined !== input.__context)
|
|
2546
|
+
return _so19(input);
|
|
2547
|
+
else
|
|
2548
|
+
return _so16(input);
|
|
2431
2549
|
})(); const _sa0 = input => `[${input.map(elem => (() => {
|
|
2432
2550
|
if ("string" === typeof elem)
|
|
2433
2551
|
return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
|
|
@@ -2445,25 +2563,69 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2445
2563
|
if (undefined === value)
|
|
2446
2564
|
return true;
|
|
2447
2565
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
2448
|
-
}); const _io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.
|
|
2566
|
+
}); const _io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io4(input.items)) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io5(input.properties)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io6(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io3 = input => "string" === typeof input.label && "string" === typeof input.path; const _io4 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io4(input.items)) && true && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io5(input.properties)) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io6(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io5 = input => Object.keys(input).every(key => {
|
|
2567
|
+
const value = input[key];
|
|
2568
|
+
if (undefined === value)
|
|
2569
|
+
return true;
|
|
2570
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io4(value);
|
|
2571
|
+
}); const _io6 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
2449
2572
|
if (["type", "readOnly"].some(prop => key === prop))
|
|
2450
2573
|
return true;
|
|
2451
2574
|
const value = input[key];
|
|
2452
2575
|
if (undefined === value)
|
|
2453
2576
|
return true;
|
|
2454
2577
|
return true;
|
|
2455
|
-
}); const
|
|
2578
|
+
}); const _io7 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && (_ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && _iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && (_ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && _iu0(input.editor)))) && (null !== input.csv && (undefined === input.csv || true === input.csv || Array.isArray(input.csv) && input.csv.every(elem => "string" === typeof elem))) && (null !== input.json && (undefined === input.json || true === input.json || Array.isArray(input.json) && input.json.every(elem => "string" === typeof elem))) && (null !== input.xml && (undefined === input.xml || true === input.xml || Array.isArray(input.xml) && input.xml.every(elem => "string" === typeof elem))) && (null !== input.rss && (undefined === input.rss || true === input.rss || Array.isArray(input.rss) && input.rss.every(elem => "string" === typeof elem))); const _io8 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title); const _io9 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io6(input.widget))); const _io10 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io11(input.options)) && (undefined === input.formatterOptions || "object" === typeof input.formatterOptions && null !== input.formatterOptions && false === Array.isArray(input.formatterOptions) && _io15(input.formatterOptions)) && (null !== input.rootSchema && (undefined === input.rootSchema || "string" === typeof input.rootSchema || (Array.isArray(input.rootSchema) || "object" === typeof input.rootSchema && null !== input.rootSchema && false === Array.isArray(input.rootSchema) && _iu1(input.rootSchema)))) && (null !== input.itemSchema && (undefined === input.itemSchema || "string" === typeof input.itemSchema || (Array.isArray(input.itemSchema) || "object" === typeof input.itemSchema && null !== input.itemSchema && false === Array.isArray(input.itemSchema) && _iu2(input.itemSchema)))); const _io11 = input => (undefined === input.version || "1.0" === input.version) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.standalone || "boolean" === typeof input.standalone) && (undefined === input.keepNullNodes || "boolean" === typeof input.keepNullNodes) && (undefined === input.keepNullAttributes || "boolean" === typeof input.keepNullAttributes) && (undefined === input.ignoreConverters || "boolean" === typeof input.ignoreConverters) && (undefined === input.skipWhitespaceOnlyText || "boolean" === typeof input.skipWhitespaceOnlyText) && (undefined === input.convert || "object" === typeof input.convert && null !== input.convert && false === Array.isArray(input.convert) && _io12(input.convert)) && (undefined === input.defaultNamespace || "object" === typeof input.defaultNamespace && null !== input.defaultNamespace && false === Array.isArray(input.defaultNamespace) && _io13(input.defaultNamespace)) && (undefined === input.namespaceAlias || "object" === typeof input.namespaceAlias && null !== input.namespaceAlias && false === Array.isArray(input.namespaceAlias) && _io14(input.namespaceAlias)) && (null !== input.invalidCharReplacement && (undefined === input.invalidCharReplacement || "function" === typeof input.invalidCharReplacement || "string" === typeof input.invalidCharReplacement)) && true && Object.keys(input).every(key => {
|
|
2579
|
+
if (["version", "encoding", "standalone", "keepNullNodes", "keepNullAttributes", "ignoreConverters", "skipWhitespaceOnlyText", "convert", "defaultNamespace", "namespaceAlias", "invalidCharReplacement", "parser"].some(prop => key === prop))
|
|
2580
|
+
return true;
|
|
2581
|
+
const value = input[key];
|
|
2582
|
+
if (undefined === value)
|
|
2583
|
+
return true;
|
|
2584
|
+
return true;
|
|
2585
|
+
}); const _io12 = input => (undefined === input.att || "string" === typeof input.att) && (undefined === input.ins || "string" === typeof input.ins) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.cdata || "string" === typeof input.cdata) && (undefined === input.comment || "string" === typeof input.comment); const _io13 = input => (null === input.ele || undefined === input.ele || "string" === typeof input.ele) && (null === input.att || undefined === input.att || "string" === typeof input.att); const _io14 = input => Object.keys(input).every(key => {
|
|
2456
2586
|
const value = input[key];
|
|
2457
2587
|
if (undefined === value)
|
|
2458
2588
|
return true;
|
|
2459
|
-
return
|
|
2460
|
-
}); const
|
|
2589
|
+
return null === value || undefined === value || "string" === typeof value;
|
|
2590
|
+
}); const _io15 = input => (undefined === input.wellFormed || "boolean" === typeof input.wellFormed) && (undefined === input.format || "xml" === input.format) && (undefined === input.headless || "boolean" === typeof input.headless) && (undefined === input.prettyPrint || "boolean" === typeof input.prettyPrint) && (undefined === input.indent || "string" === typeof input.indent) && (undefined === input.newline || "string" === typeof input.newline) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.allowEmptyTags || "boolean" === typeof input.allowEmptyTags) && (undefined === input.indentTextOnlyNodes || "boolean" === typeof input.indentTextOnlyNodes) && (undefined === input.spaceBeforeSlash || "boolean" === typeof input.spaceBeforeSlash); const _io16 = input => Object.keys(input).every(key => {
|
|
2591
|
+
const value = input[key];
|
|
2592
|
+
if (undefined === value)
|
|
2593
|
+
return true;
|
|
2594
|
+
return true;
|
|
2595
|
+
}); const _io17 = input => "object" === typeof input.__context && null !== input.__context && _io18(input.__context) && (null !== input.__returnValue && undefined !== input.__returnValue && (Array.isArray(input.__returnValue) || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io16(input.__returnValue))); const _io18 = input => "string" === typeof input.publishId && Array.isArray(input.items); const _io19 = input => "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && _io20(input.__context) && (null !== input.__returnValue && undefined !== input.__returnValue && (Array.isArray(input.__returnValue) || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io16(input.__returnValue))); const _io20 = input => Object.keys(input).every(key => {
|
|
2596
|
+
const value = input[key];
|
|
2597
|
+
if (undefined === value)
|
|
2598
|
+
return true;
|
|
2599
|
+
return true;
|
|
2600
|
+
}); const _io21 = input => (undefined === input.namespaces || "object" === typeof input.namespaces && null !== input.namespaces && false === Array.isArray(input.namespaces) && _io22(input.namespaces)) && (undefined === input.id || "string" === typeof input.id) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.updated || "string" === typeof input.updated || "number" === typeof input.updated) && (undefined === input.generator || "string" === typeof input.generator) && (undefined === input.language || "string" === typeof input.language) && (undefined === input.ttl || "number" === typeof input.ttl) && (undefined === input.stylesheet || "string" === typeof input.stylesheet) && (undefined === input.feed || "string" === typeof input.feed) && (undefined === input.feedLinks || "object" === typeof input.feedLinks && null !== input.feedLinks && false === Array.isArray(input.feedLinks) && _io23(input.feedLinks)) && (undefined === input.hub || "string" === typeof input.hub) && (undefined === input.docs || "string" === typeof input.docs) && (undefined === input.podcast || "boolean" === typeof input.podcast) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.author || "object" === typeof input.author && null !== input.author && false === Array.isArray(input.author) && _io24(input.author)) && (undefined === input.link || "string" === typeof input.link) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.favicon || "string" === typeof input.favicon) && (undefined === input.copyright || "string" === typeof input.copyright); const _io22 = input => Object.keys(input).every(key => {
|
|
2601
|
+
const value = input[key];
|
|
2602
|
+
if (undefined === value)
|
|
2603
|
+
return true;
|
|
2604
|
+
return "string" === typeof value;
|
|
2605
|
+
}); const _io23 = input => (undefined === input.rss || "string" === typeof input.rss) && (undefined === input.atom || "string" === typeof input.atom) && (undefined === input.json || "string" === typeof input.json) && Object.keys(input).every(key => {
|
|
2606
|
+
if (["rss", "atom", "json"].some(prop => key === prop))
|
|
2607
|
+
return true;
|
|
2608
|
+
const value = input[key];
|
|
2609
|
+
if (undefined === value)
|
|
2610
|
+
return true;
|
|
2611
|
+
return undefined === value || "string" === typeof value;
|
|
2612
|
+
}); const _io24 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.email || "string" === typeof input.email) && (undefined === input.link || "string" === typeof input.link) && (undefined === input.avatar || "string" === typeof input.avatar); const _iu0 = input => (() => {
|
|
2461
2613
|
if (undefined !== input.type)
|
|
2462
2614
|
return _io8(input);
|
|
2463
2615
|
else if (undefined !== input.property)
|
|
2464
2616
|
return _io9(input);
|
|
2465
2617
|
else
|
|
2466
2618
|
return false;
|
|
2619
|
+
})(); const _iu1 = input => (() => {
|
|
2620
|
+
if (undefined !== input.__context)
|
|
2621
|
+
return _io17(input);
|
|
2622
|
+
else
|
|
2623
|
+
return _io16(input);
|
|
2624
|
+
})(); const _iu2 = input => (() => {
|
|
2625
|
+
if (undefined !== input.__context)
|
|
2626
|
+
return _io19(input);
|
|
2627
|
+
else
|
|
2628
|
+
return _io16(input);
|
|
2467
2629
|
})(); const _ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem)))); return input => _so0(input); })()(input);
|
|
2468
2630
|
}
|
|
2469
2631
|
case ":permission?": {
|
|
@@ -2620,7 +2782,66 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2620
2782
|
})()}`; }).filter(str => "" !== str).join(",")}}`; const _so29 = input => `{${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined},`}${undefined === input.collisionStrategy ? "" : `"collisionStrategy":${undefined !== input.collisionStrategy ? "\"" + input.collisionStrategy + "\"" : undefined},`}${undefined === input.ignoreEmptyScene ? "" : `"ignoreEmptyScene":${undefined !== input.ignoreEmptyScene ? String(input.ignoreEmptyScene) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so2(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so17(input.profile) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so30 = input => `{"__context":${_so31(input.__context)},"__returnValue":${_so29(input.__returnValue)}}`; const _so31 = input => `{"publish":${_so27(input.publish)},"directory":${__typia_transform__jsonStringifyString._jsonStringifyString(input.directory)},"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)}}`; const _so32 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined}`}`)}}`; const _so33 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so34(input.renders) : undefined}`}`)}}`; const _so34 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2621
2783
|
return ""; return `${JSON.stringify(key)}:${_so35(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so35 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so25(elem)).join(",")}]` : undefined},`}${undefined === input.query || "function" === typeof input.query ? "" : `"query":${undefined !== input.query ? JSON.stringify(input.query) : undefined},`}${undefined === input.size ? "" : `"size":${undefined !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined}`}`)}}`; const _so36 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)}}`; const _so37 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so32(input.draft) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so38(input.remote) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so36(input.published) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? null !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : "null" : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so1(input.render) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so24(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so25(elem)).join(",")}]` : undefined}`}`)}}`; const _so38 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? __typia_transform__jsonStringifyString._jsonStringifyString(input.id) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? _so39(input.subtitle) : undefined},`}${undefined === input.metafile ? "" : `"metafile":${undefined !== input.metafile ? _so40(input.metafile) : undefined},`}"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)},"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2622
2784
|
return ""; if (["id", "directory", "subtitle", "metafile", "path", "filename"].some(regular => regular === key))
|
|
2623
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so39 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so40 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so41 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.
|
|
2785
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so39 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so40 = input => `{"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so41 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.searchId ? "" : `"searchId":${undefined !== input.searchId ? __typia_transform__jsonStringifyString._jsonStringifyString(input.searchId) : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? _so42(input.expand) : undefined},`}${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? __typia_transform__jsonStringifyString._jsonStringifyString(input.panel) : undefined},`}${undefined === input.route ? "" : `"route":${undefined !== input.route ? __typia_transform__jsonStringifyString._jsonStringifyString(input.route) : undefined},`}${undefined === input.sort ? "" : `"sort":${undefined !== input.sort ? __typia_transform__jsonStringifyString._jsonStringifyString(input.sort) : undefined},`}${undefined === input.order ? "" : `"order":${undefined !== input.order ? "\"" + input.order + "\"" : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? "\"" + input.format + "\"" : undefined},`}${undefined === input.xml ? "" : `"xml":${undefined !== input.xml ? _so43(input.xml) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? null !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : "null" : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so1(input.render) : undefined},`}${undefined === input.draft || "function" === typeof input.draft ? "" : `"draft":${undefined !== input.draft ? JSON.stringify(input.draft) : undefined},`}${undefined === input.published || "function" === typeof input.published ? "" : `"published":${undefined !== input.published ? JSON.stringify(input.published) : undefined},`}${undefined === input.remote || "function" === typeof input.remote ? "" : `"remote":${undefined !== input.remote ? JSON.stringify(input.remote) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so24(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so25(elem)).join(",")}]` : undefined}`}`)}}`; const _so42 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? __typia_transform__jsonStringifyString._jsonStringifyString(input.start) : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? __typia_transform__jsonStringifyString._jsonStringifyString(input.end) : undefined}`}`)}}`; const _so43 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.options ? "" : `"options":${undefined !== input.options ? _so44(input.options) : undefined},`}${undefined === input.formatterOptions ? "" : `"formatterOptions":${undefined !== input.formatterOptions ? _so48(input.formatterOptions) : undefined},`}${undefined === input.rootSchema ? "" : `"rootSchema":${undefined !== input.rootSchema ? (() => {
|
|
2786
|
+
if ("string" === typeof input.rootSchema)
|
|
2787
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.rootSchema);
|
|
2788
|
+
if (Array.isArray(input.rootSchema))
|
|
2789
|
+
return `[${input.rootSchema.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2790
|
+
if ("object" === typeof input.rootSchema && null !== input.rootSchema && false === Array.isArray(input.rootSchema))
|
|
2791
|
+
return _su1(input.rootSchema);
|
|
2792
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2793
|
+
method: "typia.json.stringify",
|
|
2794
|
+
expected: "(Array<any> | __type.o21 | __type.o22 | string | undefined)",
|
|
2795
|
+
value: input.rootSchema
|
|
2796
|
+
});
|
|
2797
|
+
})() : undefined},`}${undefined === input.itemSchema ? "" : `"itemSchema":${undefined !== input.itemSchema ? (() => {
|
|
2798
|
+
if ("string" === typeof input.itemSchema)
|
|
2799
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.itemSchema);
|
|
2800
|
+
if (Array.isArray(input.itemSchema))
|
|
2801
|
+
return `[${input.itemSchema.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2802
|
+
if ("object" === typeof input.itemSchema && null !== input.itemSchema && false === Array.isArray(input.itemSchema))
|
|
2803
|
+
return _su2(input.itemSchema);
|
|
2804
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2805
|
+
method: "typia.json.stringify",
|
|
2806
|
+
expected: "(Array<any> | __type.o21 | __type.o24 | string | undefined)",
|
|
2807
|
+
value: input.itemSchema
|
|
2808
|
+
});
|
|
2809
|
+
})() : undefined}`}`)}}`; const _so44 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.version ? "" : `"version":${undefined !== input.version ? "\"" + input.version + "\"" : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? __typia_transform__jsonStringifyString._jsonStringifyString(input.encoding) : undefined},`}${undefined === input.standalone ? "" : `"standalone":${undefined !== input.standalone ? String(input.standalone) : undefined},`}${undefined === input.keepNullNodes ? "" : `"keepNullNodes":${undefined !== input.keepNullNodes ? String(input.keepNullNodes) : undefined},`}${undefined === input.keepNullAttributes ? "" : `"keepNullAttributes":${undefined !== input.keepNullAttributes ? String(input.keepNullAttributes) : undefined},`}${undefined === input.ignoreConverters ? "" : `"ignoreConverters":${undefined !== input.ignoreConverters ? String(input.ignoreConverters) : undefined},`}${undefined === input.skipWhitespaceOnlyText ? "" : `"skipWhitespaceOnlyText":${undefined !== input.skipWhitespaceOnlyText ? String(input.skipWhitespaceOnlyText) : undefined},`}${undefined === input.convert ? "" : `"convert":${undefined !== input.convert ? _so45(input.convert) : undefined},`}${undefined === input.defaultNamespace ? "" : `"defaultNamespace":${undefined !== input.defaultNamespace ? _so46(input.defaultNamespace) : undefined},`}${undefined === input.namespaceAlias ? "" : `"namespaceAlias":${undefined !== input.namespaceAlias ? _so47(input.namespaceAlias) : undefined},`}${undefined === input.invalidCharReplacement || "function" === typeof input.invalidCharReplacement ? "" : `"invalidCharReplacement":${undefined !== input.invalidCharReplacement ? (() => {
|
|
2810
|
+
if ("function" === typeof input.invalidCharReplacement)
|
|
2811
|
+
return undefined;
|
|
2812
|
+
if ("string" === typeof input.invalidCharReplacement)
|
|
2813
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.invalidCharReplacement);
|
|
2814
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2815
|
+
method: "typia.json.stringify",
|
|
2816
|
+
expected: "(string | undefined)",
|
|
2817
|
+
value: input.invalidCharReplacement
|
|
2818
|
+
});
|
|
2819
|
+
})() : undefined},`}${undefined === input.parser || "function" === typeof input.parser ? "" : `"parser":${undefined !== input.parser ? JSON.stringify(input.parser) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2820
|
+
return ""; if (["version", "encoding", "standalone", "keepNullNodes", "keepNullAttributes", "ignoreConverters", "skipWhitespaceOnlyText", "convert", "defaultNamespace", "namespaceAlias", "invalidCharReplacement", "parser"].some(regular => regular === key))
|
|
2821
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so45 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.att ? "" : `"att":${undefined !== input.att ? __typia_transform__jsonStringifyString._jsonStringifyString(input.att) : undefined},`}${undefined === input.ins ? "" : `"ins":${undefined !== input.ins ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ins) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? __typia_transform__jsonStringifyString._jsonStringifyString(input.text) : undefined},`}${undefined === input.cdata ? "" : `"cdata":${undefined !== input.cdata ? __typia_transform__jsonStringifyString._jsonStringifyString(input.cdata) : undefined},`}${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? __typia_transform__jsonStringifyString._jsonStringifyString(input.comment) : undefined}`}`)}}`; const _so46 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.ele ? "" : `"ele":${undefined !== input.ele ? null !== input.ele ? __typia_transform__jsonStringifyString._jsonStringifyString(input.ele) : "null" : undefined},`}${undefined === input.att ? "" : `"att":${undefined !== input.att ? null !== input.att ? __typia_transform__jsonStringifyString._jsonStringifyString(input.att) : "null" : undefined}`}`)}}`; const _so47 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2822
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? null !== value ? __typia_transform__jsonStringifyString._jsonStringifyString(value) : "null" : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so48 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.wellFormed ? "" : `"wellFormed":${undefined !== input.wellFormed ? String(input.wellFormed) : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? "\"" + input.format + "\"" : undefined},`}${undefined === input.headless ? "" : `"headless":${undefined !== input.headless ? String(input.headless) : undefined},`}${undefined === input.prettyPrint ? "" : `"prettyPrint":${undefined !== input.prettyPrint ? String(input.prettyPrint) : undefined},`}${undefined === input.indent ? "" : `"indent":${undefined !== input.indent ? __typia_transform__jsonStringifyString._jsonStringifyString(input.indent) : undefined},`}${undefined === input.newline ? "" : `"newline":${undefined !== input.newline ? __typia_transform__jsonStringifyString._jsonStringifyString(input.newline) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.offset)) : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.width)) : undefined},`}${undefined === input.allowEmptyTags ? "" : `"allowEmptyTags":${undefined !== input.allowEmptyTags ? String(input.allowEmptyTags) : undefined},`}${undefined === input.indentTextOnlyNodes ? "" : `"indentTextOnlyNodes":${undefined !== input.indentTextOnlyNodes ? String(input.indentTextOnlyNodes) : undefined},`}${undefined === input.spaceBeforeSlash ? "" : `"spaceBeforeSlash":${undefined !== input.spaceBeforeSlash ? String(input.spaceBeforeSlash) : undefined}`}`)}}`; const _so49 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2823
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so50 = input => `{"__context":${_so51(input.__context)},"__returnValue":${(() => {
|
|
2824
|
+
if (Array.isArray(input.__returnValue))
|
|
2825
|
+
return `[${input.__returnValue.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2826
|
+
if ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue))
|
|
2827
|
+
return _so49(input.__returnValue);
|
|
2828
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2829
|
+
method: "typia.json.stringify",
|
|
2830
|
+
expected: "(Array<any> | __type.o21)",
|
|
2831
|
+
value: input.__returnValue
|
|
2832
|
+
});
|
|
2833
|
+
})()}}`; const _so51 = input => `{"publishId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.publishId)},"items":${`[${input.items.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`}}`; const _so52 = input => `{"__context":${_so53(input.__context)},"__returnValue":${(() => {
|
|
2834
|
+
if (Array.isArray(input.__returnValue))
|
|
2835
|
+
return `[${input.__returnValue.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
2836
|
+
if ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue))
|
|
2837
|
+
return _so49(input.__returnValue);
|
|
2838
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2839
|
+
method: "typia.json.stringify",
|
|
2840
|
+
expected: "(Array<any> | __type.o21)",
|
|
2841
|
+
value: input.__returnValue
|
|
2842
|
+
});
|
|
2843
|
+
})()}}`; const _so53 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2844
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so54 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so55(input.draft) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? null !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : "null" : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so1(input.render) : undefined},`}${undefined === input.published || "function" === typeof input.published ? "" : `"published":${undefined !== input.published ? JSON.stringify(input.published) : undefined},`}${undefined === input.remote || "function" === typeof input.remote ? "" : `"remote":${undefined !== input.remote ? JSON.stringify(input.remote) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so24(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so25(elem)).join(",")}]` : undefined}`}`)}}`; const _so55 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.snippet ? "" : `"snippet":${undefined !== input.snippet ? _so56(input.snippet) : undefined}`}`)}}`; const _so56 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.tags ? "" : `"tags":${undefined !== input.tags ? `[${input.tags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined}`}`)}}`; const _su0 = input => (() => {
|
|
2624
2845
|
if (undefined !== input.path)
|
|
2625
2846
|
return _so29(input);
|
|
2626
2847
|
else if (undefined !== input.__context)
|
|
@@ -2632,6 +2853,16 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2632
2853
|
value: input
|
|
2633
2854
|
});
|
|
2634
2855
|
})(); const _su1 = input => (() => {
|
|
2856
|
+
if (undefined !== input.__context)
|
|
2857
|
+
return _so50(input);
|
|
2858
|
+
else
|
|
2859
|
+
return _so49(input);
|
|
2860
|
+
})(); const _su2 = input => (() => {
|
|
2861
|
+
if (undefined !== input.__context)
|
|
2862
|
+
return _so52(input);
|
|
2863
|
+
else
|
|
2864
|
+
return _so49(input);
|
|
2865
|
+
})(); const _su3 = input => (() => {
|
|
2635
2866
|
if (_io0(input))
|
|
2636
2867
|
return _so0(input);
|
|
2637
2868
|
if (_io26(input))
|
|
@@ -2642,9 +2873,11 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2642
2873
|
return _so27(input);
|
|
2643
2874
|
if (_io41(input))
|
|
2644
2875
|
return _so41(input);
|
|
2876
|
+
if (_io54(input))
|
|
2877
|
+
return _so54(input);
|
|
2645
2878
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2646
2879
|
method: "typia.json.stringify",
|
|
2647
|
-
expected: "(EmptyPublishRecord | FacebookPublishRecord | FilePublishRecordLegacy | FilePublishRecord | YoutubePublishRecord)",
|
|
2880
|
+
expected: "(EmptyPublishRecord | FacebookPublishRecord | FilePublishRecordLegacy | FilePublishRecord | ReportPublishRecord | YoutubePublishRecord)",
|
|
2648
2881
|
value: input
|
|
2649
2882
|
});
|
|
2650
2883
|
})(); const _io0 = input => (null === input.type || undefined === input.type) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io24(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io25(elem))); const _io1 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io2(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io17(input.profile)); const _io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io5(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io8(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io15(input.audio)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io16(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io13(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io9(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io4(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io4 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io5 = input => Object.keys(input).every(key => {
|
|
@@ -2669,14 +2902,46 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2669
2902
|
if (undefined === value)
|
|
2670
2903
|
return true;
|
|
2671
2904
|
return true;
|
|
2672
|
-
}); const _io39 = input => "string" === typeof input.path; const _io40 = input => "string" === typeof input.path; const _io41 = input => (undefined === input.type || "
|
|
2905
|
+
}); const _io39 = input => "string" === typeof input.path; const _io40 = input => "string" === typeof input.path; const _io41 = input => (undefined === input.type || "report" === input.type) && (undefined === input.searchId || "string" === typeof input.searchId) && (undefined === input.expand || "object" === typeof input.expand && null !== input.expand && false === Array.isArray(input.expand) && _io42(input.expand)) && (undefined === input.panel || "string" === typeof input.panel) && (undefined === input.route || "string" === typeof input.route) && (undefined === input.sort || "string" === typeof input.sort) && (undefined === input.order || "asc" === input.order || "desc" === input.order) && (undefined === input.format || "rss" === input.format || "json" === input.format || "xml" === input.format || "csv" === input.format) && (undefined === input.xml || "object" === typeof input.xml && null !== input.xml && false === Array.isArray(input.xml) && _io43(input.xml)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io24(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io25(elem))); const _io42 = input => (undefined === input.type || "" === input.type || "deadlines" === input.type || "published" === input.type || "recurrence_date_range" === input.type) && (undefined === input.start || "string" === typeof input.start) && (undefined === input.end || "string" === typeof input.end); const _io43 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io44(input.options)) && (undefined === input.formatterOptions || "object" === typeof input.formatterOptions && null !== input.formatterOptions && false === Array.isArray(input.formatterOptions) && _io48(input.formatterOptions)) && (null !== input.rootSchema && (undefined === input.rootSchema || "string" === typeof input.rootSchema || (Array.isArray(input.rootSchema) || "object" === typeof input.rootSchema && null !== input.rootSchema && false === Array.isArray(input.rootSchema) && _iu1(input.rootSchema)))) && (null !== input.itemSchema && (undefined === input.itemSchema || "string" === typeof input.itemSchema || (Array.isArray(input.itemSchema) || "object" === typeof input.itemSchema && null !== input.itemSchema && false === Array.isArray(input.itemSchema) && _iu2(input.itemSchema)))); const _io44 = input => (undefined === input.version || "1.0" === input.version) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.standalone || "boolean" === typeof input.standalone) && (undefined === input.keepNullNodes || "boolean" === typeof input.keepNullNodes) && (undefined === input.keepNullAttributes || "boolean" === typeof input.keepNullAttributes) && (undefined === input.ignoreConverters || "boolean" === typeof input.ignoreConverters) && (undefined === input.skipWhitespaceOnlyText || "boolean" === typeof input.skipWhitespaceOnlyText) && (undefined === input.convert || "object" === typeof input.convert && null !== input.convert && false === Array.isArray(input.convert) && _io45(input.convert)) && (undefined === input.defaultNamespace || "object" === typeof input.defaultNamespace && null !== input.defaultNamespace && false === Array.isArray(input.defaultNamespace) && _io46(input.defaultNamespace)) && (undefined === input.namespaceAlias || "object" === typeof input.namespaceAlias && null !== input.namespaceAlias && false === Array.isArray(input.namespaceAlias) && _io47(input.namespaceAlias)) && (null !== input.invalidCharReplacement && (undefined === input.invalidCharReplacement || "function" === typeof input.invalidCharReplacement || "string" === typeof input.invalidCharReplacement)) && true && Object.keys(input).every(key => {
|
|
2906
|
+
if (["version", "encoding", "standalone", "keepNullNodes", "keepNullAttributes", "ignoreConverters", "skipWhitespaceOnlyText", "convert", "defaultNamespace", "namespaceAlias", "invalidCharReplacement", "parser"].some(prop => key === prop))
|
|
2907
|
+
return true;
|
|
2908
|
+
const value = input[key];
|
|
2909
|
+
if (undefined === value)
|
|
2910
|
+
return true;
|
|
2911
|
+
return true;
|
|
2912
|
+
}); const _io45 = input => (undefined === input.att || "string" === typeof input.att) && (undefined === input.ins || "string" === typeof input.ins) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.cdata || "string" === typeof input.cdata) && (undefined === input.comment || "string" === typeof input.comment); const _io46 = input => (null === input.ele || undefined === input.ele || "string" === typeof input.ele) && (null === input.att || undefined === input.att || "string" === typeof input.att); const _io47 = input => Object.keys(input).every(key => {
|
|
2913
|
+
const value = input[key];
|
|
2914
|
+
if (undefined === value)
|
|
2915
|
+
return true;
|
|
2916
|
+
return null === value || undefined === value || "string" === typeof value;
|
|
2917
|
+
}); const _io48 = input => (undefined === input.wellFormed || "boolean" === typeof input.wellFormed) && (undefined === input.format || "xml" === input.format) && (undefined === input.headless || "boolean" === typeof input.headless) && (undefined === input.prettyPrint || "boolean" === typeof input.prettyPrint) && (undefined === input.indent || "string" === typeof input.indent) && (undefined === input.newline || "string" === typeof input.newline) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.allowEmptyTags || "boolean" === typeof input.allowEmptyTags) && (undefined === input.indentTextOnlyNodes || "boolean" === typeof input.indentTextOnlyNodes) && (undefined === input.spaceBeforeSlash || "boolean" === typeof input.spaceBeforeSlash); const _io49 = input => Object.keys(input).every(key => {
|
|
2918
|
+
const value = input[key];
|
|
2919
|
+
if (undefined === value)
|
|
2920
|
+
return true;
|
|
2921
|
+
return true;
|
|
2922
|
+
}); const _io50 = input => "object" === typeof input.__context && null !== input.__context && _io51(input.__context) && (null !== input.__returnValue && undefined !== input.__returnValue && (Array.isArray(input.__returnValue) || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io49(input.__returnValue))); const _io51 = input => "string" === typeof input.publishId && Array.isArray(input.items); const _io52 = input => "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && _io53(input.__context) && (null !== input.__returnValue && undefined !== input.__returnValue && (Array.isArray(input.__returnValue) || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io49(input.__returnValue))); const _io53 = input => Object.keys(input).every(key => {
|
|
2923
|
+
const value = input[key];
|
|
2924
|
+
if (undefined === value)
|
|
2925
|
+
return true;
|
|
2926
|
+
return true;
|
|
2927
|
+
}); const _io54 = input => (undefined === input.type || "youtube" === input.type) && (undefined === input.draft || "object" === typeof input.draft && null !== input.draft && false === Array.isArray(input.draft) && _io55(input.draft)) && (null === input.asset || undefined === input.asset || "string" === typeof input.asset) && (undefined === input.connection || "string" === typeof input.connection) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io1(input.render)) && true && true && (null === input.error || undefined === input.error || "object" === typeof input.error && null !== input.error && _io24(input.error)) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io25(elem))); const _io55 = input => undefined === input.snippet || "object" === typeof input.snippet && null !== input.snippet && false === Array.isArray(input.snippet) && _io56(input.snippet); const _io56 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description); const _iu0 = input => (() => {
|
|
2673
2928
|
if (undefined !== input.path)
|
|
2674
2929
|
return _io29(input);
|
|
2675
2930
|
else if (undefined !== input.__context)
|
|
2676
2931
|
return _io30(input);
|
|
2677
2932
|
else
|
|
2678
2933
|
return false;
|
|
2679
|
-
})();
|
|
2934
|
+
})(); const _iu1 = input => (() => {
|
|
2935
|
+
if (undefined !== input.__context)
|
|
2936
|
+
return _io50(input);
|
|
2937
|
+
else
|
|
2938
|
+
return _io49(input);
|
|
2939
|
+
})(); const _iu2 = input => (() => {
|
|
2940
|
+
if (undefined !== input.__context)
|
|
2941
|
+
return _io52(input);
|
|
2942
|
+
else
|
|
2943
|
+
return _io49(input);
|
|
2944
|
+
})(); return input => _su3(input); })()(input);
|
|
2680
2945
|
}
|
|
2681
2946
|
case ":publish.stats?": {
|
|
2682
2947
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.retrieved || "function" === typeof input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? JSON.stringify(input.retrieved) : undefined},`}${undefined === input.defaults || "function" === typeof input.defaults ? "" : `"defaults":${undefined !== input.defaults ? JSON.stringify(input.defaults) : undefined}`}`)}}`; const _so1 = input => `{"level":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.level))},"code":${__typia_transform__jsonStringifyString._jsonStringifyString(input.code)},"msg":${__typia_transform__jsonStringifyString._jsonStringifyString(input.msg)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? _so3(input.retrieved) : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so6(input.defaults) : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so4(input.renders) : undefined}`}`)}}`; const _so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
@@ -2763,7 +3028,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2763
3028
|
value: input.subtitle
|
|
2764
3029
|
});
|
|
2765
3030
|
})() : undefined},`}"format":${__typia_transform__jsonStringifyString._jsonStringifyString(input.format)}}`; const _so25 = input => `{"engine":${__typia_transform__jsonStringifyString._jsonStringifyString(input.engine)}}`; const _so26 = input => `{"language":${__typia_transform__jsonStringifyString._jsonStringifyString(input.language)}}`; const _so27 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.codec ? "" : `"codec":${undefined !== input.codec ? __typia_transform__jsonStringifyString._jsonStringifyString(input.codec) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? __typia_transform__jsonStringifyString._jsonStringifyString(input.pan) : undefined},`}${undefined === input.samplerate ? "" : `"samplerate":${undefined !== input.samplerate ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.samplerate)) : undefined},`}${undefined === input.split ? "" : `"split":${undefined !== input.split ? String(input.split) : undefined}`}`)}}`; const _so28 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? __typia_transform__jsonStringifyString._jsonStringifyString(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? __typia_transform__jsonStringifyString._jsonStringifyString(input.style) : undefined},`}${undefined === input.ccconverter ? "" : `"ccconverter":${undefined !== input.ccconverter ? _so29(input.ccconverter) : undefined},`}${undefined === input.ass ? "" : `"ass":${undefined !== input.ass ? _so30(input.ass) : undefined}`}`)}}`; const _so29 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined}`}`)}}`; const _so30 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? String(input.futureWordWrapping) : undefined},`}${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? String(input.scaledBorderAndShadow) : undefined},`}${undefined === input.enableUnsafeLineSpacingHack ? "" : `"enableUnsafeLineSpacingHack":${undefined !== input.enableUnsafeLineSpacingHack ? String(input.enableUnsafeLineSpacingHack) : undefined}`}`)}}`; const _so31 = input => `{"__context":${_so32(input.__context)},"__returnValue":${_so8(input.__returnValue)}}`; const _so32 = input => `{"publish":${_so33(input.publish)},"directory":${__typia_transform__jsonStringifyString._jsonStringifyString(input.directory)},"name":${__typia_transform__jsonStringifyString._jsonStringifyString(input.name)}}`; const _so33 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so7(input.renders) : undefined},`}${undefined === input.draft ? "" : `"draft":${undefined !== input.draft ? _so34(input.draft) : undefined},`}${undefined === input.remote ? "" : `"remote":${undefined !== input.remote ? _so35(input.remote) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? _so38(input.published) : undefined},`}${undefined === input.asset ? "" : `"asset":${undefined !== input.asset ? null !== input.asset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.asset) : "null" : undefined},`}${undefined === input.connection ? "" : `"connection":${undefined !== input.connection ? __typia_transform__jsonStringifyString._jsonStringifyString(input.connection) : undefined},`}${undefined === input.render ? "" : `"render":${undefined !== input.render ? _so39(input.render) : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? _so40(input.error) : "null" : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined}`}`)}}`; const _so34 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined}`}`)}}`; const _so35 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? __typia_transform__jsonStringifyString._jsonStringifyString(input.filename) : undefined},`}${undefined === input.renders ? "" : `"renders":${undefined !== input.renders ? _so36(input.renders) : undefined}`}`)}}`; const _so36 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
2766
|
-
return ""; return `${JSON.stringify(key)}:${_so37(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so37 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.query || "function" === typeof input.query ? "" : `"query":${undefined !== input.query ? JSON.stringify(input.query) : undefined},`}${undefined === input.size ? "" : `"size":${undefined !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined}`}`)}}`; const _so38 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)}}`; const _so39 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so9(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so24(input.profile) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so40 = input => `{"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _su0 = input => (() => {
|
|
3031
|
+
return ""; return `${JSON.stringify(key)}:${_so37(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so37 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.query || "function" === typeof input.query ? "" : `"query":${undefined !== input.query ? JSON.stringify(input.query) : undefined},`}${undefined === input.size ? "" : `"size":${undefined !== input.size ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.size)) : undefined},`}${undefined === input.hash ? "" : `"hash":${undefined !== input.hash ? __typia_transform__jsonStringifyString._jsonStringifyString(input.hash) : undefined},`}${undefined === input.source ? "" : `"source":${undefined !== input.source ? __typia_transform__jsonStringifyString._jsonStringifyString(input.source) : undefined}`}`)}}`; const _so38 = input => `{${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? __typia_transform__jsonStringifyString._jsonStringifyString(input.directory) : undefined},`}"filename":${__typia_transform__jsonStringifyString._jsonStringifyString(input.filename)}}`; const _so39 = input => `{${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? __typia_transform__jsonStringifyString._jsonStringifyString(input.preset) : undefined},`}${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? _so9(input.scene) : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? _so24(input.profile) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)}}`; const _so40 = input => `{"method":${__typia_transform__jsonStringifyString._jsonStringifyString(input.method)}}`; const _so41 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.retrieved ? "" : `"retrieved":${undefined !== input.retrieved ? _so42(input.retrieved) : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? __typia_transform__jsonStringifyString._jsonStringifyString(input.status) : undefined},`}${undefined === input.substatus ? "" : `"substatus":${undefined !== input.substatus ? __typia_transform__jsonStringifyString._jsonStringifyString(input.substatus) : undefined},`}${undefined === input.messages ? "" : `"messages":${undefined !== input.messages ? `[${input.messages.map(elem => _so1(elem)).join(",")}]` : undefined},`}${undefined === input.defaults || "function" === typeof input.defaults ? "" : `"defaults":${undefined !== input.defaults ? JSON.stringify(input.defaults) : undefined}`}`)}}`; const _so42 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.total ? "" : `"total":${undefined !== input.total ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.total)) : undefined},`}${undefined === input.count ? "" : `"count":${undefined !== input.count ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.count)) : undefined}`}`)}}`; const _su0 = input => (() => {
|
|
2767
3032
|
if (undefined !== input.path)
|
|
2768
3033
|
return _so8(input);
|
|
2769
3034
|
else if (undefined !== input.__context)
|
|
@@ -2775,13 +3040,15 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2775
3040
|
value: input
|
|
2776
3041
|
});
|
|
2777
3042
|
})(); const _su1 = input => (() => {
|
|
3043
|
+
if (_io41(input))
|
|
3044
|
+
return _so41(input);
|
|
2778
3045
|
if (_io2(input))
|
|
2779
3046
|
return _so2(input);
|
|
2780
3047
|
if (_io0(input))
|
|
2781
3048
|
return _so0(input);
|
|
2782
3049
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
2783
3050
|
method: "typia.json.stringify",
|
|
2784
|
-
expected: "(FilePublishStatsRecord | PublishStatsRecordBase)",
|
|
3051
|
+
expected: "(ReportPublishStatsRecord | FilePublishStatsRecord | PublishStatsRecordBase)",
|
|
2785
3052
|
value: input
|
|
2786
3053
|
});
|
|
2787
3054
|
})(); const _io0 = input => (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && true; const _io1 = input => "number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg; const _io2 = input => (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io3(input.retrieved)) && (undefined === input.defaults || "object" === typeof input.defaults && null !== input.defaults && _io6(input.defaults)) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))); const _io3 = input => (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.renders || "object" === typeof input.renders && null !== input.renders && false === Array.isArray(input.renders) && _io4(input.renders)); const _io4 = input => Object.keys(input).every(key => {
|
|
@@ -2804,7 +3071,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
2804
3071
|
if (undefined === value)
|
|
2805
3072
|
return true;
|
|
2806
3073
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io37(value);
|
|
2807
|
-
}); const _io37 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io38 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename; const _io39 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io9(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io24(input.profile)); const _io40 = input => "string" === typeof input.method; const _iu0 = input => (() => {
|
|
3074
|
+
}); const _io37 = input => (undefined === input.path || "string" === typeof input.path) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true && (undefined === input.size || "number" === typeof input.size) && (undefined === input.hash || "string" === typeof input.hash) && (undefined === input.source || "string" === typeof input.source); const _io38 = input => (undefined === input.directory || "string" === typeof input.directory) && "string" === typeof input.filename; const _io39 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io9(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io24(input.profile)); const _io40 = input => "string" === typeof input.method; const _io41 = input => (undefined === input.retrieved || "object" === typeof input.retrieved && null !== input.retrieved && false === Array.isArray(input.retrieved) && _io42(input.retrieved)) && (undefined === input.status || "string" === typeof input.status) && (undefined === input.substatus || "string" === typeof input.substatus) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && true; const _io42 = input => (undefined === input.total || "number" === typeof input.total) && (undefined === input.count || "number" === typeof input.count); const _iu0 = input => (() => {
|
|
2808
3075
|
if (undefined !== input.path)
|
|
2809
3076
|
return _io8(input);
|
|
2810
3077
|
else if (undefined !== input.__context)
|
|
@@ -3040,8 +3307,8 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3040
3307
|
expected: "(Array<string> | string | undefined)",
|
|
3041
3308
|
value: input.supports
|
|
3042
3309
|
});
|
|
3043
|
-
})() : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ?
|
|
3044
|
-
return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.recordName ? "" : `"recordName":${undefined !== input.recordName ? (() => {
|
|
3310
|
+
})() : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so21(input.layout) : undefined}`}`)}}`; const _so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3311
|
+
return ""; return `${JSON.stringify(key)}:${_so2(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? __typia_transform__jsonStringifyString._jsonStringifyString(input.path) : undefined},`}${undefined === input.recordName ? "" : `"recordName":${undefined !== input.recordName ? (() => {
|
|
3045
3312
|
if ("string" === typeof input.recordName)
|
|
3046
3313
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.recordName);
|
|
3047
3314
|
if ("object" === typeof input.recordName && null !== input.recordName)
|
|
@@ -3063,30 +3330,194 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3063
3330
|
expected: "(__type.o3 | string | undefined)",
|
|
3064
3331
|
value: input.setter
|
|
3065
3332
|
});
|
|
3066
|
-
})() : undefined},`}${undefined === input
|
|
3333
|
+
})() : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? _so7(input.index) : undefined},`}${undefined === input.type ? "" : `"type":${undefined !== input.type ? (() => {
|
|
3334
|
+
if ("string" === typeof input.type)
|
|
3335
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.type);
|
|
3336
|
+
if ("object" === typeof input.type && null !== input.type)
|
|
3337
|
+
return _so8(input.type);
|
|
3338
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3339
|
+
method: "typia.json.stringify",
|
|
3340
|
+
expected: "(__type.o6 | string | undefined)",
|
|
3341
|
+
value: input.type
|
|
3342
|
+
});
|
|
3343
|
+
})() : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? (() => {
|
|
3344
|
+
if ("string" === typeof input.title)
|
|
3345
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.title);
|
|
3346
|
+
if ("object" === typeof input.title && null !== input.title)
|
|
3347
|
+
return _so10(input.title);
|
|
3348
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3349
|
+
method: "typia.json.stringify",
|
|
3350
|
+
expected: "(__type.o8 | string | undefined)",
|
|
3351
|
+
value: input.title
|
|
3352
|
+
});
|
|
3353
|
+
})() : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? (() => {
|
|
3354
|
+
if ("string" === typeof input.description)
|
|
3355
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.description);
|
|
3356
|
+
if ("object" === typeof input.description && null !== input.description)
|
|
3357
|
+
return _so10(input.description);
|
|
3358
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3359
|
+
method: "typia.json.stringify",
|
|
3360
|
+
expected: "(__type.o8 | string | undefined)",
|
|
3361
|
+
value: input.description
|
|
3362
|
+
});
|
|
3363
|
+
})() : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? (() => {
|
|
3364
|
+
if ("string" === typeof input.required)
|
|
3365
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.required);
|
|
3366
|
+
if ("boolean" === typeof input.required)
|
|
3367
|
+
return String(input.required);
|
|
3368
|
+
if ("object" === typeof input.required && null !== input.required)
|
|
3369
|
+
return _so11(input.required);
|
|
3370
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3371
|
+
method: "typia.json.stringify",
|
|
3372
|
+
expected: "(__type.o9 | boolean | string | undefined)",
|
|
3373
|
+
value: input.required
|
|
3374
|
+
});
|
|
3375
|
+
})() : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? (() => {
|
|
3376
|
+
if ("string" === typeof input.oneOf)
|
|
3377
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.oneOf);
|
|
3378
|
+
if (Array.isArray(input.oneOf))
|
|
3379
|
+
return `[${input.oneOf.map(elem => _so12(elem)).join(",")}]`;
|
|
3380
|
+
if ("object" === typeof input.oneOf && null !== input.oneOf)
|
|
3381
|
+
return _so15(input.oneOf);
|
|
3382
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3383
|
+
method: "typia.json.stringify",
|
|
3384
|
+
expected: "(Array<SchemaProperty<unknown>> | __type.o10 | string | undefined)",
|
|
3385
|
+
value: input.oneOf
|
|
3386
|
+
});
|
|
3387
|
+
})() : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? (() => {
|
|
3388
|
+
if ("string" === typeof input.anyOf)
|
|
3389
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.anyOf);
|
|
3390
|
+
if (Array.isArray(input.anyOf))
|
|
3391
|
+
return `[${input.anyOf.map(elem => _so12(elem)).join(",")}]`;
|
|
3392
|
+
if ("object" === typeof input.anyOf && null !== input.anyOf)
|
|
3393
|
+
return _so15(input.anyOf);
|
|
3394
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3395
|
+
method: "typia.json.stringify",
|
|
3396
|
+
expected: "(Array<SchemaProperty<unknown>> | __type.o10 | string | undefined)",
|
|
3397
|
+
value: input.anyOf
|
|
3398
|
+
});
|
|
3399
|
+
})() : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? (() => {
|
|
3400
|
+
if ("string" === typeof input["enum"])
|
|
3401
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input["enum"]);
|
|
3402
|
+
if (Array.isArray(input["enum"]))
|
|
3403
|
+
return `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]`;
|
|
3404
|
+
if ("object" === typeof input["enum"] && null !== input["enum"])
|
|
3405
|
+
return _so16(input["enum"]);
|
|
3406
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3407
|
+
method: "typia.json.stringify",
|
|
3408
|
+
expected: "(ReadonlyArray<unknown> | __type.o11 | string | undefined)",
|
|
3409
|
+
value: input["enum"]
|
|
3410
|
+
});
|
|
3411
|
+
})() : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? (() => {
|
|
3412
|
+
if ("string" === typeof input.minItems)
|
|
3413
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.minItems);
|
|
3414
|
+
if ("number" === typeof input.minItems)
|
|
3415
|
+
return String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems));
|
|
3416
|
+
if ("object" === typeof input.minItems && null !== input.minItems)
|
|
3417
|
+
return _so17(input.minItems);
|
|
3418
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3419
|
+
method: "typia.json.stringify",
|
|
3420
|
+
expected: "(__type.o12 | number | string | undefined)",
|
|
3421
|
+
value: input.minItems
|
|
3422
|
+
});
|
|
3423
|
+
})() : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? (() => {
|
|
3424
|
+
if ("string" === typeof input.maxItems)
|
|
3425
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.maxItems);
|
|
3426
|
+
if ("number" === typeof input.maxItems)
|
|
3427
|
+
return String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems));
|
|
3428
|
+
if ("object" === typeof input.maxItems && null !== input.maxItems)
|
|
3429
|
+
return _so17(input.maxItems);
|
|
3430
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3431
|
+
method: "typia.json.stringify",
|
|
3432
|
+
expected: "(__type.o12 | number | string | undefined)",
|
|
3433
|
+
value: input.maxItems
|
|
3434
|
+
});
|
|
3435
|
+
})() : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? (() => {
|
|
3436
|
+
if ("string" === typeof input.items)
|
|
3437
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.items);
|
|
3438
|
+
if ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items))
|
|
3439
|
+
return _su1(input.items);
|
|
3440
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3441
|
+
method: "typia.json.stringify",
|
|
3442
|
+
expected: "(SchemaProperty<unknown> | __type.o13 | string | undefined)",
|
|
3443
|
+
value: input.items
|
|
3444
|
+
});
|
|
3445
|
+
})() : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? (() => {
|
|
3446
|
+
if ("string" === typeof input.properties)
|
|
3447
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.properties);
|
|
3448
|
+
if ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties))
|
|
3449
|
+
return _su2(input.properties);
|
|
3450
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3451
|
+
method: "typia.json.stringify",
|
|
3452
|
+
expected: "(Record<string, SchemaProperty<unknown>> | __type.o14 | string | undefined)",
|
|
3453
|
+
value: input.properties
|
|
3454
|
+
});
|
|
3455
|
+
})() : undefined},`}${undefined === input["default"] || "function" === typeof input["default"] ? "" : `"default":${undefined !== input["default"] ? JSON.stringify(input["default"]) : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
3067
3456
|
if ("string" === typeof input.widget)
|
|
3068
3457
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
3069
3458
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
3070
|
-
return
|
|
3459
|
+
return _su3(input.widget);
|
|
3071
3460
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3072
3461
|
method: "typia.json.stringify",
|
|
3073
|
-
expected: "(WidgetOptions | string | undefined)",
|
|
3462
|
+
expected: "(WidgetOptions | __type.o15 | string | undefined)",
|
|
3074
3463
|
value: input.widget
|
|
3075
3464
|
});
|
|
3076
|
-
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ?
|
|
3465
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? (() => {
|
|
3466
|
+
if ("string" === typeof input.placeholder)
|
|
3467
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder);
|
|
3468
|
+
if ("object" === typeof input.placeholder && null !== input.placeholder)
|
|
3469
|
+
return _so10(input.placeholder);
|
|
3470
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3471
|
+
method: "typia.json.stringify",
|
|
3472
|
+
expected: "(__type.o8 | string | undefined)",
|
|
3473
|
+
value: input.placeholder
|
|
3474
|
+
});
|
|
3475
|
+
})() : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? (() => {
|
|
3476
|
+
if ("string" === typeof input.helpText)
|
|
3477
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText);
|
|
3478
|
+
if ("object" === typeof input.helpText && null !== input.helpText)
|
|
3479
|
+
return _so10(input.helpText);
|
|
3480
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3481
|
+
method: "typia.json.stringify",
|
|
3482
|
+
expected: "(__type.o8 | string | undefined)",
|
|
3483
|
+
value: input.helpText
|
|
3484
|
+
});
|
|
3485
|
+
})() : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? (() => {
|
|
3486
|
+
if ("string" === typeof input.invalid)
|
|
3487
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.invalid);
|
|
3488
|
+
if ("boolean" === typeof input.invalid)
|
|
3489
|
+
return String(input.invalid);
|
|
3490
|
+
if ("object" === typeof input.invalid && null !== input.invalid)
|
|
3491
|
+
return _so11(input.invalid);
|
|
3492
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3493
|
+
method: "typia.json.stringify",
|
|
3494
|
+
expected: "(__type.o9 | boolean | string | undefined)",
|
|
3495
|
+
value: input.invalid
|
|
3496
|
+
});
|
|
3497
|
+
})() : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so3 = input => `{"__context":${_so4(input.__context)},"__returnValue":${__typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue)}}`; const _so4 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _so5 = input => `{"__context":${_so6(input.__context)}}`; const _so6 = input => `{${undefined === input.value || "function" === typeof input.value ? "" : `"value":${undefined !== input.value ? JSON.stringify(input.value) : undefined},`}"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _so7 = input => `{"label":${__typia_transform__jsonStringifyString._jsonStringifyString(input.label)},"path":${__typia_transform__jsonStringifyString._jsonStringifyString(input.path)}}`; const _so8 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? "\"" + input.__returnValue + "\"" : undefined},`}"__context":${_so9(input.__context)}}`; const _so9 = input => `{"id":${__typia_transform__jsonStringifyString._jsonStringifyString(input.id)}}`; const _so10 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? __typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue) : undefined},`}"__context":${_so9(input.__context)}}`; const _so11 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? String(input.__returnValue) : undefined},`}"__context":${_so9(input.__context)}}`; const _so12 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? "\"" + input.type + "\"" : undefined},`}${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? String(input.required) : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => _so12(elem)).join(",")}]` : undefined},`}${undefined === input.anyOf ? "" : `"anyOf":${undefined !== input.anyOf ? `[${input.anyOf.map(elem => _so12(elem)).join(",")}]` : undefined},`}${undefined === input["enum"] ? "" : `"enum":${undefined !== input["enum"] ? `[${input["enum"].map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}${undefined === input.minItems ? "" : `"minItems":${undefined !== input.minItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.minItems)) : undefined},`}${undefined === input.maxItems ? "" : `"maxItems":${undefined !== input.maxItems ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxItems)) : undefined},`}${undefined === input.items ? "" : `"items":${undefined !== input.items ? _so12(input.items) : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? _so13(input.properties) : undefined},`}${undefined === input["default"] || "function" === typeof input["default"] ? "" : `"default":${undefined !== input["default"] ? JSON.stringify(input["default"]) : undefined},`}${undefined === input["const"] || "function" === typeof input["const"] ? "" : `"const":${undefined !== input["const"] ? JSON.stringify(input["const"]) : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
|
|
3077
3498
|
if ("string" === typeof input.widget)
|
|
3078
3499
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
3079
3500
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
3080
|
-
return
|
|
3501
|
+
return _so14(input.widget);
|
|
3081
3502
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3082
3503
|
method: "typia.json.stringify",
|
|
3083
3504
|
expected: "(WidgetOptions | string | undefined)",
|
|
3084
3505
|
value: input.widget
|
|
3085
3506
|
});
|
|
3086
|
-
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}
|
|
3507
|
+
})() : undefined},`}${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? __typia_transform__jsonStringifyString._jsonStringifyString(input.placeholder) : undefined},`}${undefined === input.helpText ? "" : `"helpText":${undefined !== input.helpText ? __typia_transform__jsonStringifyString._jsonStringifyString(input.helpText) : undefined},`}${undefined === input.invalid ? "" : `"invalid":${undefined !== input.invalid ? String(input.invalid) : undefined},`}${undefined === input.emptyValue || "function" === typeof input.emptyValue ? "" : `"emptyValue":${undefined !== input.emptyValue ? JSON.stringify(input.emptyValue) : undefined}`}`)}}`; const _so13 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3508
|
+
return ""; return `${JSON.stringify(key)}:${_so12(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so14 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? __typia_transform__jsonStringifyString._jsonStringifyString(input.type) : undefined},`}${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? String(input.readOnly) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3087
3509
|
return ""; if (["type", "readOnly"].some(regular => regular === key))
|
|
3088
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const
|
|
3089
|
-
|
|
3510
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so15 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? `[${input.__returnValue.map(elem => _so12(elem)).join(",")}]` : undefined},`}"__context":${_so9(input.__context)}}`; const _so16 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? `[${input.__returnValue.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"__context":${_so9(input.__context)}}`; const _so17 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.__returnValue)) : undefined},`}"__context":${_so9(input.__context)}}`; const _so18 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? _so12(input.__returnValue) : undefined},`}"__context":${_so9(input.__context)}}`; const _so19 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? _so13(input.__returnValue) : undefined},`}"__context":${_so9(input.__context)}}`; const _so20 = input => `{${undefined === input.__returnValue ? "" : `"__returnValue":${undefined !== input.__returnValue ? (() => {
|
|
3511
|
+
if ("string" === typeof input.__returnValue)
|
|
3512
|
+
return __typia_transform__jsonStringifyString._jsonStringifyString(input.__returnValue);
|
|
3513
|
+
if ("object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue))
|
|
3514
|
+
return _so14(input.__returnValue);
|
|
3515
|
+
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3516
|
+
method: "typia.json.stringify",
|
|
3517
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
3518
|
+
value: input.__returnValue
|
|
3519
|
+
});
|
|
3520
|
+
})() : undefined},`}"__context":${_so9(input.__context)}}`; const _so21 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
|
|
3090
3521
|
if ("string" === typeof input.panel)
|
|
3091
3522
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.panel);
|
|
3092
3523
|
if (Array.isArray(input.panel))
|
|
@@ -3110,7 +3541,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3110
3541
|
expected: "(Array<WidgetLayout> | WidgetLayoutDivider | WidgetLayoutItem | string | undefined)",
|
|
3111
3542
|
value: input.editor
|
|
3112
3543
|
});
|
|
3113
|
-
})() : undefined}`}`)}}`; const
|
|
3544
|
+
})() : undefined}`}`)}}`; const _so22 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? __typia_transform__jsonStringifyString._jsonStringifyString(input.title) : undefined},`}"type":${"\"" + input.type + "\""}}`; const _so23 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
|
|
3114
3545
|
if ("string" === typeof input.width)
|
|
3115
3546
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.width);
|
|
3116
3547
|
if ("number" === typeof input.width)
|
|
@@ -3124,7 +3555,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3124
3555
|
if ("string" === typeof input.widget)
|
|
3125
3556
|
return __typia_transform__jsonStringifyString._jsonStringifyString(input.widget);
|
|
3126
3557
|
if ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget))
|
|
3127
|
-
return
|
|
3558
|
+
return _so14(input.widget);
|
|
3128
3559
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3129
3560
|
method: "typia.json.stringify",
|
|
3130
3561
|
expected: "(WidgetOptions | string | undefined)",
|
|
@@ -3132,15 +3563,30 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3132
3563
|
});
|
|
3133
3564
|
})() : undefined},`}"property":${__typia_transform__jsonStringifyString._jsonStringifyString(input.property)}}`; const _su0 = input => (() => {
|
|
3134
3565
|
if (undefined !== input.type)
|
|
3135
|
-
return
|
|
3566
|
+
return _so22(input);
|
|
3136
3567
|
else if (undefined !== input.property)
|
|
3137
|
-
return
|
|
3568
|
+
return _so23(input);
|
|
3138
3569
|
else
|
|
3139
3570
|
__typia_transform__throwTypeGuardError._throwTypeGuardError({
|
|
3140
3571
|
method: "typia.json.stringify",
|
|
3141
3572
|
expected: "(WidgetLayoutDivider | WidgetLayoutItem)",
|
|
3142
3573
|
value: input
|
|
3143
3574
|
});
|
|
3575
|
+
})(); const _su1 = input => (() => {
|
|
3576
|
+
if (undefined !== input.__context)
|
|
3577
|
+
return _so18(input);
|
|
3578
|
+
else
|
|
3579
|
+
return _so12(input);
|
|
3580
|
+
})(); const _su2 = input => (() => {
|
|
3581
|
+
if (undefined !== input.__context)
|
|
3582
|
+
return _so19(input);
|
|
3583
|
+
else
|
|
3584
|
+
return _so13(input);
|
|
3585
|
+
})(); const _su3 = input => (() => {
|
|
3586
|
+
if (undefined !== input.__context)
|
|
3587
|
+
return _so20(input);
|
|
3588
|
+
else
|
|
3589
|
+
return _so14(input);
|
|
3144
3590
|
})(); const _sa0 = input => `[${input.map(elem => (() => {
|
|
3145
3591
|
if ("string" === typeof elem)
|
|
3146
3592
|
return __typia_transform__jsonStringifyString._jsonStringifyString(elem);
|
|
@@ -3158,25 +3604,40 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3158
3604
|
if (undefined === value)
|
|
3159
3605
|
return true;
|
|
3160
3606
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
|
|
3161
|
-
}); const _io2 = input => null !== input.recordName && (undefined === input.recordName || "string" === typeof input.recordName || "object" === typeof input.recordName && null !== input.recordName && _io3(input.recordName)) && (null !== input.setter && (undefined === input.setter || "function" === typeof input.setter || "string" === typeof input.setter || "object" === typeof input.setter && null !== input.setter && _io5(input.setter))) &&
|
|
3162
|
-
if (["type", "readOnly"].some(prop => key === prop))
|
|
3163
|
-
return true;
|
|
3607
|
+
}); const _io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && (null !== input.recordName && (undefined === input.recordName || "string" === typeof input.recordName || "object" === typeof input.recordName && null !== input.recordName && _io3(input.recordName))) && (null !== input.setter && (undefined === input.setter || "function" === typeof input.setter || "string" === typeof input.setter || "object" === typeof input.setter && null !== input.setter && _io5(input.setter))) && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io7(input.index)) && (null !== input.type && (undefined === input.type || "string" === typeof input.type || "object" === typeof input.type && null !== input.type && _io8(input.type))) && (null !== input.title && (undefined === input.title || "string" === typeof input.title || "object" === typeof input.title && null !== input.title && _io10(input.title))) && (null !== input.description && (undefined === input.description || "string" === typeof input.description || "object" === typeof input.description && null !== input.description && _io10(input.description))) && (null !== input.required && (undefined === input.required || "string" === typeof input.required || "boolean" === typeof input.required || "object" === typeof input.required && null !== input.required && _io11(input.required))) && (null !== input.oneOf && (undefined === input.oneOf || "string" === typeof input.oneOf || (Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)) || "object" === typeof input.oneOf && null !== input.oneOf && _io15(input.oneOf)))) && (null !== input.anyOf && (undefined === input.anyOf || "string" === typeof input.anyOf || (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem)) || "object" === typeof input.anyOf && null !== input.anyOf && _io15(input.anyOf)))) && (null !== input["enum"] && (undefined === input["enum"] || "string" === typeof input["enum"] || (Array.isArray(input["enum"]) || "object" === typeof input["enum"] && null !== input["enum"] && _io16(input["enum"])))) && (null !== input.minItems && (undefined === input.minItems || "string" === typeof input.minItems || "number" === typeof input.minItems || "object" === typeof input.minItems && null !== input.minItems && _io17(input.minItems))) && (null !== input.maxItems && (undefined === input.maxItems || "string" === typeof input.maxItems || "number" === typeof input.maxItems || "object" === typeof input.maxItems && null !== input.maxItems && _io17(input.maxItems))) && (null !== input.items && (undefined === input.items || "string" === typeof input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu1(input.items))) && (null !== input.properties && (undefined === input.properties || "string" === typeof input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _iu2(input.properties))) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _iu3(input.widget))) && (null !== input.placeholder && (undefined === input.placeholder || "string" === typeof input.placeholder || "object" === typeof input.placeholder && null !== input.placeholder && _io10(input.placeholder))) && (null !== input.helpText && (undefined === input.helpText || "string" === typeof input.helpText || "object" === typeof input.helpText && null !== input.helpText && _io10(input.helpText))) && (null !== input.invalid && (undefined === input.invalid || "string" === typeof input.invalid || "boolean" === typeof input.invalid || "object" === typeof input.invalid && null !== input.invalid && _io11(input.invalid))) && true; const _io3 = input => "object" === typeof input.__context && null !== input.__context && _io4(input.__context) && "string" === typeof input.__returnValue; const _io4 = input => "string" === typeof input.id; const _io5 = input => "object" === typeof input.__context && null !== input.__context && _io6(input.__context) && true; const _io6 = input => "string" === typeof input.id && true; const _io7 = input => "string" === typeof input.label && "string" === typeof input.path; const _io8 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "string" === input.__returnValue || "number" === input.__returnValue || "boolean" === input.__returnValue || "object" === input.__returnValue || "array" === input.__returnValue || "asset" === input.__returnValue || "datetime" === input.__returnValue || "rpc" === input.__returnValue); const _io9 = input => "string" === typeof input.id; const _io10 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "string" === typeof input.__returnValue); const _io11 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "boolean" === typeof input.__returnValue); const _io12 = input => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io12(input.items)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io13(input.properties)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io14(input.widget))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true; const _io13 = input => Object.keys(input).every(key => {
|
|
3164
3608
|
const value = input[key];
|
|
3165
3609
|
if (undefined === value)
|
|
3166
3610
|
return true;
|
|
3167
|
-
return
|
|
3168
|
-
}); const
|
|
3611
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io12(value);
|
|
3612
|
+
}); const _io14 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
3613
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
3614
|
+
return true;
|
|
3169
3615
|
const value = input[key];
|
|
3170
3616
|
if (undefined === value)
|
|
3171
3617
|
return true;
|
|
3172
|
-
return
|
|
3173
|
-
}); const
|
|
3618
|
+
return true;
|
|
3619
|
+
}); const _io15 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || Array.isArray(input.__returnValue) && input.__returnValue.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io12(elem))); const _io16 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || Array.isArray(input.__returnValue)); const _io17 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "number" === typeof input.__returnValue); const _io18 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io12(input.__returnValue)); const _io19 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (undefined === input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io13(input.__returnValue)); const _io20 = input => "object" === typeof input.__context && null !== input.__context && _io9(input.__context) && (null !== input.__returnValue && (undefined === input.__returnValue || "string" === typeof input.__returnValue || "object" === typeof input.__returnValue && null !== input.__returnValue && false === Array.isArray(input.__returnValue) && _io14(input.__returnValue))); const _io21 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && (_ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && _iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && (_ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && _iu0(input.editor)))); const _io22 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title); const _io23 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io14(input.widget))); const _iu0 = input => (() => {
|
|
3174
3620
|
if (undefined !== input.type)
|
|
3175
|
-
return
|
|
3621
|
+
return _io22(input);
|
|
3176
3622
|
else if (undefined !== input.property)
|
|
3177
|
-
return
|
|
3623
|
+
return _io23(input);
|
|
3178
3624
|
else
|
|
3179
3625
|
return false;
|
|
3626
|
+
})(); const _iu1 = input => (() => {
|
|
3627
|
+
if (undefined !== input.__context)
|
|
3628
|
+
return _io18(input);
|
|
3629
|
+
else
|
|
3630
|
+
return _io12(input);
|
|
3631
|
+
})(); const _iu2 = input => (() => {
|
|
3632
|
+
if (undefined !== input.__context)
|
|
3633
|
+
return _io19(input);
|
|
3634
|
+
else
|
|
3635
|
+
return _io13(input);
|
|
3636
|
+
})(); const _iu3 = input => (() => {
|
|
3637
|
+
if (undefined !== input.__context)
|
|
3638
|
+
return _io20(input);
|
|
3639
|
+
else
|
|
3640
|
+
return _io14(input);
|
|
3180
3641
|
})(); const _ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && (_ia0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem)))); return input => _so0(input); })()(input);
|
|
3181
3642
|
}
|
|
3182
3643
|
case ":script": {
|
|
@@ -3184,7 +3645,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3184
3645
|
}
|
|
3185
3646
|
case ":script?": {
|
|
3186
3647
|
return (() => { const _so0 = input => `{"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.textFormat)) : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.indent))}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3187
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) &&
|
|
3648
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && "number" === typeof input.version && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "right" === input.format || "left" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
|
|
3188
3649
|
const value = input[key];
|
|
3189
3650
|
if (undefined === value)
|
|
3190
3651
|
return true;
|
|
@@ -3199,7 +3660,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3199
3660
|
}
|
|
3200
3661
|
case ":script.revision?": {
|
|
3201
3662
|
return (() => { const _so0 = input => `{"$parent":${__typia_transform__jsonStringifyString._jsonStringifyString(input.$parent)},"scriptId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.scriptId)},"userId":${__typia_transform__jsonStringifyString._jsonStringifyString(input.userId)},"value":${_so1(input.value)}}`; const _so1 = input => `{"root":${_so2(input.root)}}`; const _so2 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}${undefined === input.textFormat ? "" : `"textFormat":${undefined !== input.textFormat ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.textFormat)) : undefined},`}${undefined === input.textStyle ? "" : `"textStyle":${undefined !== input.textStyle ? __typia_transform__jsonStringifyString._jsonStringifyString(input.textStyle) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))},"children":${`[${input.children.map(elem => _so4(elem)).join(",")}]`},"direction":${null !== input.direction ? "\"" + input.direction + "\"" : "null"},"format":${"\"" + input.format + "\""},"indent":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.indent))}}`; const _so3 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3202
|
-
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) &&
|
|
3663
|
+
return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`; const _so4 = input => `{${undefined === input.$ ? "" : `"$":${undefined !== input.$ ? _so3(input.$) : undefined},`}"type":${__typia_transform__jsonStringifyString._jsonStringifyString(input.type)},"version":${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.version))}}`; const _io1 = input => "object" === typeof input.root && null !== input.root && _io2(input.root); const _io2 = input => "string" === typeof input.type && "number" === typeof input.version && (undefined === input.$ || "object" === typeof input.$ && null !== input.$ && false === Array.isArray(input.$) && _io3(input.$)) && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && ("" === input.format || "right" === input.format || "left" === input.format || "center" === input.format || "start" === input.format || "end" === input.format || "justify" === input.format) && "number" === typeof input.indent && (undefined === input.textFormat || "number" === typeof input.textFormat) && (undefined === input.textStyle || "string" === typeof input.textStyle); const _io3 = input => Object.keys(input).every(key => {
|
|
3203
3664
|
const value = input[key];
|
|
3204
3665
|
if (undefined === value)
|
|
3205
3666
|
return true;
|
|
@@ -3302,7 +3763,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3302
3763
|
return (() => { const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; return input => _so0(input); })()(input);
|
|
3303
3764
|
}
|
|
3304
3765
|
case ":settings": {
|
|
3305
|
-
return (() => { const _iv29 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "lineSpacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV"
|
|
3766
|
+
return (() => { const _iv29 = new Set(["encoding", "name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "lineSpacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV"]); const _iv38 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _so0 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.autoLogoutTime)) : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? _so1(input.permission) : undefined},`}${undefined === input.graphics ? "" : `"graphics":${undefined !== input.graphics ? _so2(input.graphics) : undefined},`}${undefined === input.googleWhitelist ? "" : `"googleWhitelist":${undefined !== input.googleWhitelist ? `[${input.googleWhitelist.map(elem => _so3(elem)).join(",")}]` : undefined},`}${undefined === input.googleUserRoles ? "" : `"googleUserRoles":${undefined !== input.googleUserRoles ? `[${input.googleUserRoles.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.azureWhitelist ? "" : `"azureWhitelist":${undefined !== input.azureWhitelist ? `[${input.azureWhitelist.map(elem => _so4(elem)).join(",")}]` : undefined},`}${undefined === input.azureUserRoles ? "" : `"azureUserRoles":${undefined !== input.azureUserRoles ? `[${input.azureUserRoles.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input["module"] ? "" : `"module":${undefined !== input["module"] ? _so5(input["module"]) : undefined},`}${undefined === input.upload ? "" : `"upload":${undefined !== input.upload ? _so9(input.upload) : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? _so10(input.download) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? _so11(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? _so14(input.toolbarTags) : undefined},`}${undefined === input.exclusiveTagGroups ? "" : `"exclusiveTagGroups":${undefined !== input.exclusiveTagGroups ? `[${input.exclusiveTagGroups.map(elem => `[${elem.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]`).join(",")}]` : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? _so15(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? _so16(input.assignees) : undefined},`}${undefined === input.comments ? "" : `"comments":${undefined !== input.comments ? _so17(input.comments) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? _so18(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? _so19(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? _so20(input.dashboard) : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? _so22(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? _so28(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? _so31(input.rundown) : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? _so32(input.gallery) : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? String(input.history) : undefined},`}${undefined === input.keymap ? "" : `"keymap":${undefined !== input.keymap ? _so33(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? _so37(input.media) : undefined},`}${undefined === input.edit ? "" : `"edit":${undefined !== input.edit ? _so54(input.edit) : undefined},`}${undefined === input.commands ? "" : `"commands":${undefined !== input.commands ? `[${input.commands.map(elem => _so60(elem)).join(",")}]` : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? _so61(input.storyboard) : undefined},`}${undefined === input.print ? "" : `"print":${undefined !== input.print ? _so70(input.print) : undefined},`}${undefined === input.hiddenPreviews ? "" : `"hiddenPreviews":${undefined !== input.hiddenPreviews ? `[${input.hiddenPreviews.map(elem => _so74(elem)).join(",")}]` : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? _so75(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? String(input.crashScreen) : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? String(input.debug) : undefined},`}${undefined === input.featurePreview ? "" : `"featurePreview":${undefined !== input.featurePreview ? _so80(input.featurePreview) : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? _so81(input.flags) : undefined},`}${undefined === input.notifications ? "" : `"notifications":${undefined !== input.notifications ? _so82(input.notifications) : undefined},`}${undefined === input.suppressDeleteAlert ? "" : `"suppressDeleteAlert":${undefined !== input.suppressDeleteAlert ? String(input.suppressDeleteAlert) : undefined},`}${undefined === input.clone ? "" : `"clone":${undefined !== input.clone ? _so85(input.clone) : undefined},`}${undefined === input.utilsAssetEditorPanel ? "" : `"utilsAssetEditorPanel":${undefined !== input.utilsAssetEditorPanel ? _so88(input.utilsAssetEditorPanel) : undefined},`}${undefined === input.display ? "" : `"display":${undefined !== input.display ? _so89(input.display) : undefined},`}${undefined === input.bookmarks ? "" : `"bookmarks":${undefined !== input.bookmarks ? _so90(input.bookmarks) : undefined},`}${undefined === input.shotbox ? "" : `"shotbox":${undefined !== input.shotbox ? _so91(input.shotbox) : undefined},`}${undefined === input.performance ? "" : `"performance":${undefined !== input.performance ? _so92(input.performance) : undefined},`}${undefined === input.app ? "" : `"app":${undefined !== input.app ? _so93(input.app) : undefined}`}`)}}`; const _so1 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.overrideUserContact ? "" : `"overrideUserContact":${undefined !== input.overrideUserContact ? String(input.overrideUserContact) : undefined},`}${undefined === input.overrideUserLogin ? "" : `"overrideUserLogin":${undefined !== input.overrideUserLogin ? String(input.overrideUserLogin) : undefined}`}`)}}`; const _so2 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.width ? "" : `"width":${undefined !== input.width ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.width)) : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.height)) : undefined}`}`)}}`; const _so3 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined}`}`)}}`; const _so4 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? __typia_transform__jsonStringifyString._jsonStringifyString(input.domain) : undefined}`}`)}}`; const _so5 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? __typia_transform__jsonStringifyString._jsonStringifyString(input.editor) : undefined},`}${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? _so6(input.tabs) : undefined}`}`)}}`; const _so6 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.settingsPanelStore ? "" : `"settingsPanelStore":${undefined !== input.settingsPanelStore ? _so7(input.settingsPanelStore) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3306
3767
|
return ""; if (["settingsPanelStore"].some(regular => regular === key))
|
|
3307
3768
|
return ""; return `${JSON.stringify(key)}:${undefined !== value ? _so8(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`; const _so7 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.activeSectionIndex ? "" : `"activeSectionIndex":${undefined !== input.activeSectionIndex ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.activeSectionIndex)) : undefined},`}${undefined === input.activeTab ? "" : `"activeTab":${undefined !== input.activeTab ? null !== input.activeTab ? __typia_transform__jsonStringifyString._jsonStringifyString(input.activeTab) : "null" : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? null !== input.height ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.height)) : "null" : undefined}`}`)}}`; const _so8 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.activeTab ? "" : `"activeTab":${undefined !== input.activeTab ? null !== input.activeTab ? __typia_transform__jsonStringifyString._jsonStringifyString(input.activeTab) : "null" : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.priority)) : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? null !== input.height ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.height)) : "null" : undefined}`}`)}}`; const _so9 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.defaultGrouping ? "" : `"defaultGrouping":${undefined !== input.defaultGrouping ? "\"" + input.defaultGrouping + "\"" : undefined},`}${undefined === input.hideStoryboardCollection ? "" : `"hideStoryboardCollection":${undefined !== input.hideStoryboardCollection ? String(input.hideStoryboardCollection) : undefined},`}${undefined === input.displayUploadFilesDialog ? "" : `"displayUploadFilesDialog":${undefined !== input.displayUploadFilesDialog ? "\"" + input.displayUploadFilesDialog + "\"" : undefined}`}`)}}`; const _so10 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.displaySaveDialog ? "" : `"displaySaveDialog":${undefined !== input.displaySaveDialog ? String(input.displaySaveDialog) : undefined},`}${undefined === input.batchDownloadDialogMode ? "" : `"batchDownloadDialogMode":${undefined !== input.batchDownloadDialogMode ? "\"" + input.batchDownloadDialogMode + "\"" : undefined}`}`)}}`; const _so11 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.map ? "" : `"map":${undefined !== input.map ? _so12(input.map) : undefined},`}${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? _so13(input.createMenu) : undefined}`}`)}}`; const _so12 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.clustering ? "" : `"clustering":${undefined !== input.clustering ? String(input.clustering) : undefined},`}${undefined === input.zoom ? "" : `"zoom":${undefined !== input.zoom ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.zoom)) : undefined},`}${undefined === input.center ? "" : `"center":${undefined !== input.center ? `[${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.center[0]))},${String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.center[1]))}]` : undefined}`}`)}}`; const _so13 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.sortOrder ? "" : `"sortOrder":${undefined !== input.sortOrder ? `[${input.sortOrder.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so14 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so15 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so16 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so17 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.include ? "" : `"include":${undefined !== input.include ? `[${input.include.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.exclude ? "" : `"exclude":${undefined !== input.exclude ? `[${input.exclude.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined}`}`)}}`; const _so18 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.enable ? "" : `"enable":${undefined !== input.enable ? String(input.enable) : undefined},`}${undefined === input.show24Hours ? "" : `"show24Hours":${undefined !== input.show24Hours ? String(input.show24Hours) : undefined},`}${undefined === input.showAmPm ? "" : `"showAmPm":${undefined !== input.showAmPm ? String(input.showAmPm) : undefined},`}${undefined === input.showSeconds ? "" : `"showSeconds":${undefined !== input.showSeconds ? String(input.showSeconds) : undefined},`}${undefined === input.showDayOfWeek ? "" : `"showDayOfWeek":${undefined !== input.showDayOfWeek ? String(input.showDayOfWeek) : undefined},`}${undefined === input.showDate ? "" : `"showDate":${undefined !== input.showDate ? String(input.showDate) : undefined},`}${undefined === input.format ? "" : `"format":${undefined !== input.format ? __typia_transform__jsonStringifyString._jsonStringifyString(input.format) : undefined}`}`)}}`; const _so19 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.color ? "" : `"color":${undefined !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : undefined},`}${undefined === input.name ? "" : `"name":${undefined !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : undefined}`}`)}}`; const _so20 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.maxMru ? "" : `"maxMru":${undefined !== input.maxMru ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxMru)) : undefined},`}${undefined === input.maxTabs ? "" : `"maxTabs":${undefined !== input.maxTabs ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.maxTabs)) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? _so21(input.layout) : undefined}`}`)}}`; const _so21 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.bookmarks ? "" : `"bookmarks":${undefined !== input.bookmarks ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.bookmarks)) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.browser)) : undefined}`}`)}}`; const _so22 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.createMenu ? "" : `"createMenu":${undefined !== input.createMenu ? _so23(input.createMenu) : undefined},`}${undefined === input.contentMaxWidth ? "" : `"contentMaxWidth":${undefined !== input.contentMaxWidth ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.contentMaxWidth)) : undefined},`}${undefined === input.colorTags ? "" : `"colorTags":${undefined !== input.colorTags ? `[${input.colorTags.map(elem => _so24(elem)).join(",")}]` : undefined},`}${undefined === input.readType ? "" : `"readType":${undefined !== input.readType ? "\"" + input.readType + "\"" : undefined},`}${undefined === input.readRate ? "" : `"readRate":${undefined !== input.readRate ? String(__typia_transform__jsonStringifyNumber._jsonStringifyNumber(input.readRate)) : undefined},`}${undefined === input.collapsedNodes ? "" : `"collapsedNodes":${undefined !== input.collapsedNodes ? _so25(input.collapsedNodes) : undefined},`}${undefined === input.colorHistory ? "" : `"colorHistory":${undefined !== input.colorHistory ? `[${input.colorHistory.map(elem => _so27(elem)).join(",")}]` : undefined}`}`)}}`; const _so23 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.sortBy ? "" : `"sortBy":${undefined !== input.sortBy ? "\"" + input.sortBy + "\"" : undefined},`}${undefined === input.showPreview ? "" : `"showPreview":${undefined !== input.showPreview ? String(input.showPreview) : undefined}`}`)}}`; const _so24 = input => `{"name":${null !== input.name ? __typia_transform__jsonStringifyString._jsonStringifyString(input.name) : "null"},"icon":${null !== input.icon ? __typia_transform__jsonStringifyString._jsonStringifyString(input.icon) : "null"},"color":${null !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : "null"},"description":${null !== input.description ? __typia_transform__jsonStringifyString._jsonStringifyString(input.description) : "null"}}`; const _so25 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
3308
3769
|
return ""; return `${JSON.stringify(key)}:${_so26(value)}`; }).filter(str => "" !== str).join(",")}}`; const _so26 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? String(input.preview) : undefined},`}${undefined === input.children ? "" : `"children":${undefined !== input.children ? String(input.children) : undefined}`}`)}}`; const _so27 = input => `{"color":${null !== input.color ? __typia_transform__jsonStringifyString._jsonStringifyString(input.color) : "null"},"backgroundColor":${null !== input.backgroundColor ? __typia_transform__jsonStringifyString._jsonStringifyString(input.backgroundColor) : "null"}}`; const _so28 = input => `{${__typia_transform__jsonStringifyTail._jsonStringifyTail(`${undefined === input.graphicBaseTemplate ? "" : `"graphicBaseTemplate":${undefined !== input.graphicBaseTemplate ? __typia_transform__jsonStringifyString._jsonStringifyString(input.graphicBaseTemplate) : undefined},`}${undefined === input.favorites ? "" : `"favorites":${undefined !== input.favorites ? `[${input.favorites.map(elem => __typia_transform__jsonStringifyString._jsonStringifyString(elem)).join(",")}]` : undefined},`}${undefined === input.defaults ? "" : `"defaults":${undefined !== input.defaults ? _so29(input.defaults) : undefined}`}`)}}`; const _so29 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
|
|
@@ -3393,11 +3854,11 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3393
3854
|
if (undefined === value)
|
|
3394
3855
|
return true;
|
|
3395
3856
|
return true;
|
|
3396
|
-
}); const _io37 = input => (undefined === input.volume || "number" === typeof input.volume) && (undefined === input.muted || "boolean" === typeof input.muted) && (undefined === input.graphics || "boolean" === typeof input.graphics) && (undefined === input.waveform || "boolean" === typeof input.waveform) && (undefined === input.defaultFrameRate || "number" === typeof input.defaultFrameRate) && (undefined === input.dropFrame || "boolean" === typeof input.dropFrame) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.warnSubclipDuration || "number" === typeof input.warnSubclipDuration) && (undefined === input.displayAspectRatioPresets || Array.isArray(input.displayAspectRatioPresets) && input.displayAspectRatioPresets.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io38(elem))) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && _io39(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && _io40(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && _io41(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io44(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.editMode || "object" === typeof input.editMode && null !== input.editMode && false === Array.isArray(input.editMode) && _io45(input.editMode)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io46(input.transcribe)) && (null !== input.openCommand && (undefined === input.openCommand || "string" === typeof input.openCommand || "object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand) && _io50(input.openCommand))) && (undefined === input.recorder || "object" === typeof input.recorder && null !== input.recorder && false === Array.isArray(input.recorder) && _io51(input.recorder)); const _io38 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.value || "string" === typeof input.value); const _io39 = input => (undefined === input.mask || "boolean" === typeof input.mask) && (undefined === input.actionSafe || "boolean" === typeof input.actionSafe) && (undefined === input.titleSafe || "boolean" === typeof input.titleSafe); const _io40 = input => (undefined === input.preview || "disabled" === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress); const _io41 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine) && (undefined === input.suggestions || Array.isArray(input.suggestions) && input.suggestions.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io42(elem))) && (undefined === input.colors || Array.isArray(input.colors) && input.colors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io43(elem))) && (undefined === input.overridableProperties || Array.isArray(input.overridableProperties) && input.overridableProperties.every(elem => null === elem || true === _iv29.has(elem))) && (undefined === input.previewResolutionScale || "number" === typeof input.previewResolutionScale); const _io42 = input => (null === input.ifAspectRatio || undefined === input.ifAspectRatio || "string" === typeof input.ifAspectRatio) && (null === input.ifLang || undefined === input.ifLang || "string" === typeof input.ifLang) && (null === input.thenStyle || undefined === input.thenStyle || "string" === typeof input.thenStyle) && (null === input.thenMaxCharactersPerLine || undefined === input.thenMaxCharactersPerLine || "number" === typeof input.thenMaxCharactersPerLine); const _io43 = input => (null === input.label || undefined === input.label || "string" === typeof input.label) && (null === input.color || undefined === input.color || "string" === typeof input.color); const _io44 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.aspectRatio || "string" === typeof input.aspectRatio); const _io45 = input => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.defaultEnterOption || "edit" === input.defaultEnterOption || "createNew" === input.defaultEnterOption || "none" === input.defaultEnterOption) && (undefined === input.defaultExitOption || "none" === input.defaultExitOption || "update" === input.defaultExitOption || "leave" === input.defaultExitOption); const _io46 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer); const _io47 = input => (undefined === input.isUserConfigurable || "boolean" === typeof input.isUserConfigurable) && (undefined === input.defaultValue || "object" === typeof input.defaultValue && null !== input.defaultValue && false === Array.isArray(input.defaultValue) && _io48(input.defaultValue)); const _io48 = input => (undefined === input.enabled || false === input.enabled) && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io49(elem))) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.duration || "number" === typeof input.duration); const _io49 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.value || "string" === typeof input.value); const _io50 = input => (undefined === input.url || "string" === typeof input.url) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.app || "string" === typeof input.app) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io51 = input => (undefined === input.microphone || "object" === typeof input.microphone && null !== input.microphone && false === Array.isArray(input.microphone) && _io52(input.microphone)) && (undefined === input.webcam || "object" === typeof input.webcam && null !== input.webcam && false === Array.isArray(input.webcam) && _io53(input.webcam)) && (undefined === input.countdown || "number" === typeof input.countdown); const _io52 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput); const _io53 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.frameRate || "number" === typeof input.frameRate) && (undefined === input.aspectRatio || "number" === typeof input.aspectRatio); const _io54 = input => (undefined === input.thumbnailView || "none" === input.thumbnailView || "filmStrip" === input.thumbnailView || "thumbnail" === input.thumbnailView) && (undefined === input.audioMapping || "object" === typeof input.audioMapping && null !== input.audioMapping && false === Array.isArray(input.audioMapping) && _io55(input.audioMapping)) && (undefined === input.normalize || "object" === typeof input.normalize && null !== input.normalize && false === Array.isArray(input.normalize) && _io57(input.normalize)) && (undefined === input.voiceOver || "object" === typeof input.voiceOver && null !== input.voiceOver && false === Array.isArray(input.voiceOver) && _io59(input.voiceOver)); const _io55 = input => undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io56(elem)); const _io56 = input => "string" === typeof input.id && "string" === typeof input.title && (undefined === input.mapping || Array.isArray(input.mapping) && input.mapping.every(elem => Array.isArray(elem) && elem.every(elem => "number" === typeof elem))) && (undefined === input.mute || Array.isArray(input.mute) && input.mute.every(elem => "boolean" === typeof elem)) && (undefined === input.minInChannels || "number" === typeof input.minInChannels) && (undefined === input.maxInChannels || "number" === typeof input.maxInChannels) && (undefined === input.minOutChannels || "number" === typeof input.minOutChannels) && (undefined === input.maxOutChannels || "number" === typeof input.maxOutChannels); const _io57 = input => (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io58(elem))) && (undefined === input.defaultPresetId || "string" === typeof input.defaultPresetId); const _io58 = input => "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.i && "number" === typeof input.tp; const _io59 = input => (undefined === input.inputDevice || "string" === typeof input.inputDevice) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput) && (undefined === input.backgroundReductionDb || "number" === typeof input.backgroundReductionDb) && (undefined === input.recordMode || "instant" === input.recordMode || "punchAndRoll" === input.recordMode) && (undefined === input.preRollDuration || "number" === typeof input.preRollDuration); const _io60 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io61 = input => (undefined === input.folded || "object" === typeof input.folded && null !== input.folded && false === Array.isArray(input.folded) && _io62(input.folded)) && (undefined === input.assets || "object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io63(input.assets)) && (undefined === input.pipeline || "object" === typeof input.pipeline && null !== input.pipeline && false === Array.isArray(input.pipeline) && _io67(input.pipeline)) && (undefined === input.item || "object" === typeof input.item && null !== input.item && false === Array.isArray(input.item) && _io69(input.item)); const _io62 = input => undefined === input.auto || "boolean" === typeof input.auto; const _io63 = input => (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io64(input.story)) && (undefined === input.note || "object" === typeof input.note && null !== input.note && false === Array.isArray(input.note) && _io66(input.note)); const _io64 = input => undefined === input.excerpt || "object" === typeof input.excerpt && null !== input.excerpt && false === Array.isArray(input.excerpt) && _io65(input.excerpt); const _io65 = input => (undefined === input.maxLines || "number" === typeof input.maxLines) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.comments || "boolean" === typeof input.comments); const _io66 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io67 = input => (undefined === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io68(input.search)) && (undefined === input.sortMode || true === _iv38.has(input.sortMode)); const _io68 = input => undefined === input.maxItemsDisplayed || "number" === typeof input.maxItemsDisplayed; const _io69 = input => (undefined === input.maxHeight || "number" === typeof input.maxHeight) && (undefined === input.titleLines || "number" === typeof input.titleLines); const _io70 = input => (undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem)) && (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io71 = input => "script" === input.type && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "event-data" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)); const _io72 = input => "rundown" === input.type && (Array.isArray(input.columns) && input.columns.every(elem => "object" === typeof elem && null !== elem && _io73(elem))) && (undefined === input.rangeStart || "number" === typeof input.rangeStart) && (undefined === input.rangeEnd || "number" === typeof input.rangeEnd) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)) && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily); const _io73 = input => ("type" === input.key || "id" === input.key || "title" === input.key || "time" === input.key || "duration" === input.key || "position" === input.key || "accDuration" === input.key) && "string" === typeof input.label && "string" === typeof input.width && ("right" === input.textAlign || "left" === input.textAlign || "center" === input.textAlign); const _io74 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.folded || "boolean" === typeof input.folded); const _io75 = input => (undefined === input.adobe || "object" === typeof input.adobe && null !== input.adobe && false === Array.isArray(input.adobe) && _io76(input.adobe)) && (undefined === input.ograf || "object" === typeof input.ograf && null !== input.ograf && false === Array.isArray(input.ograf) && _io78(input.ograf)) && (undefined === input.rive || "object" === typeof input.rive && null !== input.rive && false === Array.isArray(input.rive) && _io79(input.rive)); const _io76 = input => (undefined === input.videoBin || "string" === typeof input.videoBin) && (undefined === input.imageBin || "string" === typeof input.imageBin) && (undefined === input.audioBin || "string" === typeof input.audioBin) && (undefined === input.timelineBin || "string" === typeof input.timelineBin) && (undefined === input.clipBin || "string" === typeof input.clipBin) && (undefined === input.downloadPath || "string" === typeof input.downloadPath) && (undefined === input.renderPath || "string" === typeof input.renderPath) && (undefined === input.renderPresetPath || "string" === typeof input.renderPresetPath) && (undefined === input.renderPresets || Array.isArray(input.renderPresets) && input.renderPresets.every(elem => "string" === typeof elem)) && (undefined === input.videoRenderPreset || "string" === typeof input.videoRenderPreset) && (undefined === input.imageRenderPreset || "string" === typeof input.imageRenderPreset) && (undefined === input.audioRenderPreset || "string" === typeof input.audioRenderPreset) && (undefined === input.forceRender || "boolean" === typeof input.forceRender) && (undefined === input.useProxies || "boolean" === typeof input.useProxies) && (undefined === input.deleteIntermediateFiles || "boolean" === typeof input.deleteIntermediateFiles) && (undefined === input.bodymovin || "object" === typeof input.bodymovin && null !== input.bodymovin && false === Array.isArray(input.bodymovin) && _io77(input.bodymovin)); const _io77 = input => undefined === input.template || "string" === typeof input.template; const _io78 = input => undefined === input.template || "string" === typeof input.template; const _io79 = input => undefined === input.template || "string" === typeof input.template; const _io80 = input => (undefined === input.collections || "boolean" === typeof input.collections) && (undefined === input.aiMetadata || "boolean" === typeof input.aiMetadata) && (undefined === input.semanticSearch || "boolean" === typeof input.semanticSearch) && (undefined === input.ameRemoteRendering || "boolean" === typeof input.ameRemoteRendering); const _io81 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore); const _io82 = input => undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io83(input.events); const _io83 = input => (undefined === input.comment || Array.isArray(input.comment) && input.comment.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.assigned || Array.isArray(input.assigned) && input.assigned.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.unassigned || Array.isArray(input.unassigned) && input.unassigned.every(elem => "mentioned" === elem || "assigned" === elem || "author" === elem || "participated" === elem || "always" === elem)) && (undefined === input.publishSucceeded || "object" === typeof input.publishSucceeded && null !== input.publishSucceeded && false === Array.isArray(input.publishSucceeded) && _io84(input.publishSucceeded)); const _io84 = input => Object.keys(input).every(key => {
|
|
3857
|
+
}); const _io37 = input => (undefined === input.volume || "number" === typeof input.volume) && (undefined === input.muted || "boolean" === typeof input.muted) && (undefined === input.graphics || "boolean" === typeof input.graphics) && (undefined === input.waveform || "boolean" === typeof input.waveform) && (undefined === input.defaultFrameRate || "number" === typeof input.defaultFrameRate) && (undefined === input.dropFrame || "boolean" === typeof input.dropFrame) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.warnSubclipDuration || "number" === typeof input.warnSubclipDuration) && (undefined === input.displayAspectRatioPresets || Array.isArray(input.displayAspectRatioPresets) && input.displayAspectRatioPresets.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io38(elem))) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && _io39(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && _io40(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && _io41(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io44(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.editMode || "object" === typeof input.editMode && null !== input.editMode && false === Array.isArray(input.editMode) && _io45(input.editMode)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && _io46(input.transcribe)) && (null !== input.openCommand && (undefined === input.openCommand || "string" === typeof input.openCommand || "object" === typeof input.openCommand && null !== input.openCommand && false === Array.isArray(input.openCommand) && _io50(input.openCommand))) && (undefined === input.recorder || "object" === typeof input.recorder && null !== input.recorder && false === Array.isArray(input.recorder) && _io51(input.recorder)); const _io38 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.value || "string" === typeof input.value); const _io39 = input => (undefined === input.mask || "boolean" === typeof input.mask) && (undefined === input.actionSafe || "boolean" === typeof input.actionSafe) && (undefined === input.titleSafe || "boolean" === typeof input.titleSafe); const _io40 = input => (undefined === input.preview || "disabled" === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress); const _io41 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine) && (undefined === input.suggestions || Array.isArray(input.suggestions) && input.suggestions.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io42(elem))) && (undefined === input.colors || Array.isArray(input.colors) && input.colors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io43(elem))) && (undefined === input.overridableProperties || Array.isArray(input.overridableProperties) && input.overridableProperties.every(elem => null === elem || true === _iv29.has(elem))) && (undefined === input.previewResolutionScale || "number" === typeof input.previewResolutionScale); const _io42 = input => (null === input.ifAspectRatio || undefined === input.ifAspectRatio || "string" === typeof input.ifAspectRatio) && (null === input.ifLang || undefined === input.ifLang || "string" === typeof input.ifLang) && (null === input.thenStyle || undefined === input.thenStyle || "string" === typeof input.thenStyle) && (null === input.thenMaxCharactersPerLine || undefined === input.thenMaxCharactersPerLine || "number" === typeof input.thenMaxCharactersPerLine); const _io43 = input => (null === input.label || undefined === input.label || "string" === typeof input.label) && (null === input.color || undefined === input.color || "string" === typeof input.color); const _io44 = input => (undefined === input.label || "string" === typeof input.label) && (undefined === input.aspectRatio || "string" === typeof input.aspectRatio); const _io45 = input => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.defaultEnterOption || "edit" === input.defaultEnterOption || "createNew" === input.defaultEnterOption || "none" === input.defaultEnterOption) && (undefined === input.defaultExitOption || "none" === input.defaultExitOption || "update" === input.defaultExitOption || "leave" === input.defaultExitOption); const _io46 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer); const _io47 = input => (undefined === input.isUserConfigurable || "boolean" === typeof input.isUserConfigurable) && (undefined === input.defaultValue || "object" === typeof input.defaultValue && null !== input.defaultValue && false === Array.isArray(input.defaultValue) && _io48(input.defaultValue)); const _io48 = input => (undefined === input.enabled || false === input.enabled) && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io49(elem))) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.duration || "number" === typeof input.duration); const _io49 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.value || "string" === typeof input.value); const _io50 = input => (undefined === input.url || "string" === typeof input.url) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.app || "string" === typeof input.app) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io51 = input => (undefined === input.microphone || "object" === typeof input.microphone && null !== input.microphone && false === Array.isArray(input.microphone) && _io52(input.microphone)) && (undefined === input.webcam || "object" === typeof input.webcam && null !== input.webcam && false === Array.isArray(input.webcam) && _io53(input.webcam)) && (undefined === input.countdown || "number" === typeof input.countdown); const _io52 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput); const _io53 = input => (undefined === input.deviceId || "string" === typeof input.deviceId) && (undefined === input.frameRate || "number" === typeof input.frameRate) && (undefined === input.aspectRatio || "number" === typeof input.aspectRatio); const _io54 = input => (undefined === input.thumbnailView || "none" === input.thumbnailView || "filmStrip" === input.thumbnailView || "thumbnail" === input.thumbnailView) && (undefined === input.audioMapping || "object" === typeof input.audioMapping && null !== input.audioMapping && false === Array.isArray(input.audioMapping) && _io55(input.audioMapping)) && (undefined === input.normalize || "object" === typeof input.normalize && null !== input.normalize && false === Array.isArray(input.normalize) && _io57(input.normalize)) && (undefined === input.voiceOver || "object" === typeof input.voiceOver && null !== input.voiceOver && false === Array.isArray(input.voiceOver) && _io59(input.voiceOver)); const _io55 = input => undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io56(elem)); const _io56 = input => "string" === typeof input.id && "string" === typeof input.title && (undefined === input.mapping || Array.isArray(input.mapping) && input.mapping.every(elem => Array.isArray(elem) && elem.every(elem => "number" === typeof elem))) && (undefined === input.mute || Array.isArray(input.mute) && input.mute.every(elem => "boolean" === typeof elem)) && (undefined === input.minInChannels || "number" === typeof input.minInChannels) && (undefined === input.maxInChannels || "number" === typeof input.maxInChannels) && (undefined === input.minOutChannels || "number" === typeof input.minOutChannels) && (undefined === input.maxOutChannels || "number" === typeof input.maxOutChannels); const _io57 = input => (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _io58(elem))) && (undefined === input.defaultPresetId || "string" === typeof input.defaultPresetId); const _io58 = input => "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.i && "number" === typeof input.tp; const _io59 = input => (undefined === input.inputDevice || "string" === typeof input.inputDevice) && (undefined === input.inputGainDb || "number" === typeof input.inputGainDb) && (undefined === input.monitorInput || "boolean" === typeof input.monitorInput) && (undefined === input.backgroundReductionDb || "number" === typeof input.backgroundReductionDb) && (undefined === input.recordMode || "instant" === input.recordMode || "punchAndRoll" === input.recordMode) && (undefined === input.preRollDuration || "number" === typeof input.preRollDuration); const _io60 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.command || "string" === typeof input.command) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem)); const _io61 = input => (undefined === input.folded || "object" === typeof input.folded && null !== input.folded && false === Array.isArray(input.folded) && _io62(input.folded)) && (undefined === input.assets || "object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io63(input.assets)) && (undefined === input.pipeline || "object" === typeof input.pipeline && null !== input.pipeline && false === Array.isArray(input.pipeline) && _io67(input.pipeline)) && (undefined === input.item || "object" === typeof input.item && null !== input.item && false === Array.isArray(input.item) && _io69(input.item)); const _io62 = input => undefined === input.auto || "boolean" === typeof input.auto; const _io63 = input => (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io64(input.story)) && (undefined === input.note || "object" === typeof input.note && null !== input.note && false === Array.isArray(input.note) && _io66(input.note)); const _io64 = input => undefined === input.excerpt || "object" === typeof input.excerpt && null !== input.excerpt && false === Array.isArray(input.excerpt) && _io65(input.excerpt); const _io65 = input => (undefined === input.maxLines || "number" === typeof input.maxLines) && (undefined === input.mode || "string" === typeof input.mode) && (undefined === input.comments || "boolean" === typeof input.comments); const _io66 = input => undefined === input.maxHeight || "number" === typeof input.maxHeight; const _io67 = input => (undefined === input.search || "object" === typeof input.search && null !== input.search && false === Array.isArray(input.search) && _io68(input.search)) && (undefined === input.sortMode || true === _iv38.has(input.sortMode)); const _io68 = input => undefined === input.maxItemsDisplayed || "number" === typeof input.maxItemsDisplayed; const _io69 = input => (undefined === input.maxHeight || "number" === typeof input.maxHeight) && (undefined === input.titleLines || "number" === typeof input.titleLines); const _io70 = input => (undefined === input.fontFamilies || Array.isArray(input.fontFamilies) && input.fontFamilies.every(elem => "string" === typeof elem)) && (undefined === input.presets || Array.isArray(input.presets) && input.presets.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io71 = input => "script" === input.type && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "event-data" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)); const _io72 = input => "rundown" === input.type && (Array.isArray(input.columns) && input.columns.every(elem => "object" === typeof elem && null !== elem && _io73(elem))) && (undefined === input.rangeStart || "number" === typeof input.rangeStart) && (undefined === input.rangeEnd || "number" === typeof input.rangeEnd) && (Array.isArray(input.hide) && input.hide.every(elem => "event" === elem || "comment" === elem || "heading" === elem || "list" === elem || "quote" === elem || "paragraph" === elem || "horizontalrule" === elem)) && "string" === typeof input.title && "number" === typeof input.horizontalMargin && ("A5" === input.pageSize || "A4" === input.pageSize || "A3" === input.pageSize) && ("landscape" === input.orientation || "portrait" === input.orientation) && "number" === typeof input.fontSize && (undefined === input.fontFamily || "string" === typeof input.fontFamily); const _io73 = input => ("type" === input.key || "title" === input.key || "id" === input.key || "time" === input.key || "duration" === input.key || "position" === input.key || "accDuration" === input.key) && "string" === typeof input.label && "string" === typeof input.width && ("right" === input.textAlign || "left" === input.textAlign || "center" === input.textAlign); const _io74 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.folded || "boolean" === typeof input.folded); const _io75 = input => (undefined === input.adobe || "object" === typeof input.adobe && null !== input.adobe && false === Array.isArray(input.adobe) && _io76(input.adobe)) && (undefined === input.ograf || "object" === typeof input.ograf && null !== input.ograf && false === Array.isArray(input.ograf) && _io78(input.ograf)) && (undefined === input.rive || "object" === typeof input.rive && null !== input.rive && false === Array.isArray(input.rive) && _io79(input.rive)); const _io76 = input => (undefined === input.videoBin || "string" === typeof input.videoBin) && (undefined === input.imageBin || "string" === typeof input.imageBin) && (undefined === input.audioBin || "string" === typeof input.audioBin) && (undefined === input.timelineBin || "string" === typeof input.timelineBin) && (undefined === input.clipBin || "string" === typeof input.clipBin) && (undefined === input.downloadPath || "string" === typeof input.downloadPath) && (undefined === input.renderPath || "string" === typeof input.renderPath) && (undefined === input.renderPresetPath || "string" === typeof input.renderPresetPath) && (undefined === input.renderPresets || Array.isArray(input.renderPresets) && input.renderPresets.every(elem => "string" === typeof elem)) && (undefined === input.videoRenderPreset || "string" === typeof input.videoRenderPreset) && (undefined === input.imageRenderPreset || "string" === typeof input.imageRenderPreset) && (undefined === input.audioRenderPreset || "string" === typeof input.audioRenderPreset) && (undefined === input.forceRender || "boolean" === typeof input.forceRender) && (undefined === input.useProxies || "boolean" === typeof input.useProxies) && (undefined === input.deleteIntermediateFiles || "boolean" === typeof input.deleteIntermediateFiles) && (undefined === input.bodymovin || "object" === typeof input.bodymovin && null !== input.bodymovin && false === Array.isArray(input.bodymovin) && _io77(input.bodymovin)); const _io77 = input => undefined === input.template || "string" === typeof input.template; const _io78 = input => undefined === input.template || "string" === typeof input.template; const _io79 = input => undefined === input.template || "string" === typeof input.template; const _io80 = input => (undefined === input.collections || "boolean" === typeof input.collections) && (undefined === input.aiMetadata || "boolean" === typeof input.aiMetadata) && (undefined === input.semanticSearch || "boolean" === typeof input.semanticSearch) && (undefined === input.ameRemoteRendering || "boolean" === typeof input.ameRemoteRendering); const _io81 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore); const _io82 = input => undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io83(input.events); const _io83 = input => (undefined === input.comment || Array.isArray(input.comment) && input.comment.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.assigned || Array.isArray(input.assigned) && input.assigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.unassigned || Array.isArray(input.unassigned) && input.unassigned.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.publishSucceeded || "object" === typeof input.publishSucceeded && null !== input.publishSucceeded && false === Array.isArray(input.publishSucceeded) && _io84(input.publishSucceeded)); const _io84 = input => Object.keys(input).every(key => {
|
|
3397
3858
|
const value = input[key];
|
|
3398
3859
|
if (undefined === value)
|
|
3399
3860
|
return true;
|
|
3400
|
-
return Array.isArray(value) && value.every(elem => "
|
|
3861
|
+
return Array.isArray(value) && value.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem);
|
|
3401
3862
|
}); const _io85 = input => (undefined === input.create || "object" === typeof input.create && null !== input.create && false === Array.isArray(input.create) && _io86(input.create)) && (undefined === input.duplicate || "object" === typeof input.duplicate && null !== input.duplicate && false === Array.isArray(input.duplicate) && _io87(input.duplicate)); const _io86 = input => (undefined === input.titlePrefix || "string" === typeof input.titlePrefix) && (undefined === input.titleSuffix || "string" === typeof input.titleSuffix); const _io87 = input => (undefined === input.titlePrefix || "string" === typeof input.titlePrefix) && (undefined === input.titleSuffix || "string" === typeof input.titleSuffix); const _io88 = input => (undefined === input.stateFilter || Array.isArray(input.stateFilter) && input.stateFilter.every(elem => "number" === typeof elem)) && (undefined === input.textFilter || "string" === typeof input.textFilter) && (undefined === input.showEmpty || "boolean" === typeof input.showEmpty) && (undefined === input.selectedRecord || "string" === typeof input.selectedRecord) && (undefined === input.subscribeSearchHits || "boolean" === typeof input.subscribeSearchHits) && (undefined === input.parseRegex || "boolean" === typeof input.parseRegex); const _io89 = input => undefined === input.disableHotArea || "boolean" === typeof input.disableHotArea; const _io90 = input => undefined === input.refreshInterval || "number" === typeof input.refreshInterval; const _io91 = input => undefined === input.layout || "string" === typeof input.layout; const _io92 = input => (undefined === input.ignoredWarnings || Array.isArray(input.ignoredWarnings) && input.ignoredWarnings.every(elem => "string" === typeof elem)) && (undefined === input.ignoredErrors || Array.isArray(input.ignoredErrors) && input.ignoredErrors.every(elem => "string" === typeof elem)); const _io93 = input => (undefined === input.enableUpdate || "boolean" === typeof input.enableUpdate) && (undefined === input.autoUpdate || "boolean" === typeof input.autoUpdate); const _iu0 = input => (() => {
|
|
3402
3863
|
if ("script" === input.type)
|
|
3403
3864
|
return _io71(input);
|
|
@@ -3570,7 +4031,7 @@ function _stringifyDomainRecord(domain, input) {
|
|
|
3570
4031
|
expected: "(UserNotificationPublishSucceeded | UserNotificationAddedToSearch | UserNotificationComment | UserNotificationUnassigned | UserNotificationAssigned)",
|
|
3571
4032
|
value: input
|
|
3572
4033
|
});
|
|
3573
|
-
})(); const _io0 = input => "assigned" === input.type && ("object" === typeof input.payload && null !== input.payload && _io1(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "
|
|
4034
|
+
})(); const _io0 = input => "assigned" === input.type && ("object" === typeof input.payload && null !== input.payload && _io1(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io1 = input => "string" === typeof input.assetId && (undefined === input.actionBy || "string" === typeof input.actionBy); const _io2 = input => "unassigned" === input.type && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io3 = input => "string" === typeof input.assetId && (undefined === input.actionBy || "string" === typeof input.actionBy); const _io4 = input => "comment" === input.type && ("object" === typeof input.payload && null !== input.payload && _io5(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io5 = input => "string" === typeof input.commentId; const _io6 = input => "added-to-search" === input.type && ("object" === typeof input.payload && null !== input.payload && _io7(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io7 = input => "string" === typeof input.searchId && "string" === typeof input.assetId; const _io8 = input => "publishSucceeded" === input.type && ("object" === typeof input.payload && null !== input.payload && _io9(input.payload)) && "string" === typeof input.userId && "string" === typeof input.timestamp && (Array.isArray(input.reasons) && input.reasons.every(elem => "author" === elem || "mentioned" === elem || "assigned" === elem || "participated" === elem || "always" === elem)) && (undefined === input.triggerId || "string" === typeof input.triggerId); const _io9 = input => (undefined === input.userId || "string" === typeof input.userId) && "string" === typeof input.assetId && "string" === typeof input.publishId && "string" === typeof input.connectionId; return input => _su0(input); })()(input);
|
|
3574
4035
|
}
|
|
3575
4036
|
case ":user-notification.readAt": {
|
|
3576
4037
|
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);
|