mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-03-17 04:02:30 +00:00
feat: enable stricter typescript compiler options
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"exactOptionalPropertyTypes": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"explainFiles": true,
|
"explainFiles": true,
|
||||||
"inlineSourceMap": true,
|
"inlineSourceMap": true,
|
||||||
|
|||||||
@@ -48,16 +48,16 @@ const program = new Command()
|
|||||||
const options = program.opts();
|
const options = program.opts();
|
||||||
|
|
||||||
// create an instance of the PluginClient
|
// create an instance of the PluginClient
|
||||||
const pluginClient = new PluginClient(new HttpClient(), options.backendUrl);
|
const pluginClient = new PluginClient(new HttpClient(), options['backendUrl']);
|
||||||
|
|
||||||
// create an instance of your plugin
|
// create an instance of your plugin
|
||||||
const plugin = new MinimalPlugin(
|
const plugin = new MinimalPlugin(
|
||||||
// tslint:disable-next-line:no-magic-numbers
|
// tslint:disable-next-line:no-magic-numbers
|
||||||
Number.parseInt(options.port, 10),
|
Number.parseInt(options['port'], 10),
|
||||||
options.pluginName,
|
options['pluginName'],
|
||||||
options.url,
|
options['url'],
|
||||||
`/${options.routeName}`,
|
`/${options['routeName']}`,
|
||||||
options.backendUrl,
|
options['backendUrl'],
|
||||||
new Converter(path.resolve(__dirname, '..', 'src', 'plugin', 'protocol')), // an instance of the converter. Required
|
new Converter(path.resolve(__dirname, '..', 'src', 'plugin', 'protocol')), // an instance of the converter. Required
|
||||||
// because your requests and response schemas are defined in the plugin. The path should lead to your request and
|
// because your requests and response schemas are defined in the plugin. The path should lead to your request and
|
||||||
// response interfaces
|
// response interfaces
|
||||||
@@ -69,7 +69,7 @@ const plugin = new MinimalPlugin(
|
|||||||
pluginClient
|
pluginClient
|
||||||
.registerPlugin(plugin)
|
.registerPlugin(plugin)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
Logger.ok(`Successfully registered plugin '${options.pluginName}' on /${options.routeName} .`);
|
Logger.ok(`Successfully registered plugin '${options['pluginName']}' on /${options['routeName']} .`);
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line unicorn/prefer-top-level-await
|
// eslint-disable-next-line unicorn/prefer-top-level-await
|
||||||
.catch((error: Error) => {
|
.catch((error: Error) => {
|
||||||
@@ -81,7 +81,9 @@ for (const signal of [`exit`, `SIGINT`, `SIGUSR1`, `SIGUSR2`, `SIGTERM`]) {
|
|||||||
pluginClient
|
pluginClient
|
||||||
.unregisterPlugin(plugin)
|
.unregisterPlugin(plugin)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
Logger.ok(`Successfully unregistered plugin '${options.pluginName}' from /${options.routeName} .`);
|
Logger.ok(
|
||||||
|
`Successfully unregistered plugin '${options['pluginName']}' from /${options['routeName']} .`,
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.catch((error: Error) => {
|
.catch((error: Error) => {
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@@ -12,8 +12,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
/** @type {import('./scripts/icon-config').IconConfig} */
|
* @type {import('./scripts/icon-config').IconConfig}
|
||||||
|
*/
|
||||||
const config = {
|
const config = {
|
||||||
inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2',
|
inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2',
|
||||||
outputPath: 'src/assets/icons.min.woff2',
|
outputPath: 'src/assets/icons.min.woff2',
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
"outDir": "./dist/out-tsc",
|
"outDir": "./dist/out-tsc",
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"isolatedModules": false,
|
"isolatedModules": false,
|
||||||
"checkJs": false,
|
"allowSyntheticDefaultImports": true,
|
||||||
"allowJs": false,
|
|
||||||
"strictPropertyInitialization": false,
|
"strictPropertyInitialization": false,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
@@ -20,3 +19,6 @@
|
|||||||
},
|
},
|
||||||
"exclude": ["**/*.spec.ts"]
|
"exclude": ["**/*.spec.ts"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
10
packages/api-plugin/environment.d.ts
vendored
Normal file
10
packages/api-plugin/environment.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
declare global {
|
||||||
|
namespace NodeJS {
|
||||||
|
interface ProcessEnv {
|
||||||
|
NODE_ENV?: string;
|
||||||
|
PORT?: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
||||||
@@ -175,13 +175,11 @@ export abstract class Plugin {
|
|||||||
// tslint:disable-next-line:no-floating-promises
|
// tslint:disable-next-line:no-floating-promises
|
||||||
Logger.error(`${bind} requires elevated privileges`);
|
Logger.error(`${bind} requires elevated privileges`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
case 'EADDRINUSE': {
|
case 'EADDRINUSE': {
|
||||||
// tslint:disable-next-line:no-floating-promises
|
// tslint:disable-next-line:no-floating-promises
|
||||||
Logger.error(`${bind} is already in use`);
|
Logger.error(`${bind} is already in use`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ export class Client {
|
|||||||
size: 1,
|
size: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.data.length === 1 && response.data[0].uid === uid) {
|
if (response.data.length === 1 && response.data[0]!.uid === uid) {
|
||||||
return response.data[0];
|
return response.data[0]!;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new SCInternalServerErrorResponse(new SCNotFoundErrorResponse(true), true);
|
throw new SCInternalServerErrorResponse(new SCNotFoundErrorResponse(true), true);
|
||||||
@@ -220,11 +220,11 @@ export class Client {
|
|||||||
for (const key of Object.keys(multiSearchRequest)) {
|
for (const key of Object.keys(multiSearchRequest)) {
|
||||||
const searchRequest = multiSearchRequest[key];
|
const searchRequest = multiSearchRequest[key];
|
||||||
|
|
||||||
if (searchRequest.size === undefined) {
|
if (searchRequest?.size === undefined) {
|
||||||
preFlightRequest[key] = {
|
preFlightRequest[key] = {
|
||||||
...searchRequest,
|
...searchRequest,
|
||||||
};
|
};
|
||||||
preFlightRequest[key].size = 0;
|
preFlightRequest[key]!.size = 0;
|
||||||
preFlightNecessary = true;
|
preFlightNecessary = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -245,8 +245,8 @@ export class Client {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// set size for multi search requests that were in pre flight request
|
// set size for multi search requests that were in pre flight request
|
||||||
for (const key of Object.keys(preFlightRequest)) {
|
for (const key in preFlightRequest) {
|
||||||
returnMultiSearchRequest[key].size = preFlightResponse[key].pagination.total;
|
returnMultiSearchRequest[key]!.size = preFlightResponse[key]!.pagination.total;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ export class ConnectorClient extends Client {
|
|||||||
const thingSource = source === undefined ? 'stapps-api' : source;
|
const thingSource = source === undefined ? 'stapps-api' : source;
|
||||||
|
|
||||||
// request a new bulk
|
// request a new bulk
|
||||||
const bulk = await this.bulk(things[0].type, thingSource, timeout);
|
const bulk = await this.bulk(things[0]!.type, thingSource, timeout);
|
||||||
|
|
||||||
// add items to the bulk - 5 concurrently
|
// add items to the bulk - 5 concurrently
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export class ApiError extends Error {
|
|||||||
/**
|
/**
|
||||||
* Add additional data to the output of the error
|
* Add additional data to the output of the error
|
||||||
*/
|
*/
|
||||||
toString(): string {
|
override toString(): string {
|
||||||
let string_ = super.toString();
|
let string_ = super.toString();
|
||||||
|
|
||||||
// add additional data
|
// add additional data
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function groupBy<T>(collection: T[], group: (item: T) => string | undefin
|
|||||||
return collection.reduce((accumulator: Record<string, T[]>, item) => {
|
return collection.reduce((accumulator: Record<string, T[]>, item) => {
|
||||||
const key = group(item) ?? '';
|
const key = group(item) ?? '';
|
||||||
accumulator[key] = accumulator[key] ?? [];
|
accumulator[key] = accumulator[key] ?? [];
|
||||||
accumulator[key].push(item);
|
accumulator[key]!.push(item);
|
||||||
return accumulator;
|
return accumulator;
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export function shuffle<T>(array: T[]): T[] {
|
|||||||
const out = [];
|
const out = [];
|
||||||
|
|
||||||
while (copy.length > 0) {
|
while (copy.length > 0) {
|
||||||
out.push(copy.splice(Math.floor(Math.random() * copy.length), 1)[0]);
|
out.push(copy.splice(Math.floor(Math.random() * copy.length), 1)[0]!);
|
||||||
}
|
}
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
|
|||||||
@@ -17,5 +17,5 @@
|
|||||||
* Zip two arrays together.
|
* Zip two arrays together.
|
||||||
*/
|
*/
|
||||||
export function zip<T, U>(a: T[], b: U[]): [T, U][] {
|
export function zip<T, U>(a: T[], b: U[]): [T, U][] {
|
||||||
return a.map((_, i) => [a[i], b[i]]);
|
return a.map((_, i) => [a[i]!, b[i]!]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,11 +60,11 @@ commander
|
|||||||
|
|
||||||
// get information about routes
|
// get information about routes
|
||||||
const routes = await gatherRouteInformation(sourcePath);
|
const routes = await gatherRouteInformation(sourcePath);
|
||||||
routes.sort((a, b) => a.route.urlPath.localeCompare(b.route.urlPath));
|
routes.sort((a, b) => a.route['urlPath'].localeCompare(b.route['urlPath']));
|
||||||
|
|
||||||
// change url path parameters to openapi notation
|
// change url path parameters to openapi notation
|
||||||
for (const routeWithMetaInformation of routes) {
|
for (const routeWithMetaInformation of routes) {
|
||||||
routeWithMetaInformation.route.urlPath = routeWithMetaInformation.route.urlPath.replaceAll(
|
routeWithMetaInformation.route['urlPath'] = routeWithMetaInformation.route['urlPath'].replaceAll(
|
||||||
/:\w+/g,
|
/:\w+/g,
|
||||||
(match: string) => `{${match.replace(':', '')}}`,
|
(match: string) => `{${match.replace(':', '')}}`,
|
||||||
);
|
);
|
||||||
@@ -72,7 +72,7 @@ commander
|
|||||||
|
|
||||||
// keep openapi tags for routes that actually share url fragments
|
// keep openapi tags for routes that actually share url fragments
|
||||||
let tagsToKeep = routes.map(routeWithMetaInformation =>
|
let tagsToKeep = routes.map(routeWithMetaInformation =>
|
||||||
capitalize(routeWithMetaInformation.route.urlPath.split('/')[1]),
|
capitalize(routeWithMetaInformation.route['urlPath'].split('/')[1]),
|
||||||
);
|
);
|
||||||
tagsToKeep = tagsToKeep.filter(
|
tagsToKeep = tagsToKeep.filter(
|
||||||
(element, i, array) => array.indexOf(element) === i && array.lastIndexOf(element) !== i,
|
(element, i, array) => array.indexOf(element) === i && array.lastIndexOf(element) !== i,
|
||||||
@@ -83,9 +83,9 @@ commander
|
|||||||
|
|
||||||
// generate documentation for all routes
|
// generate documentation for all routes
|
||||||
for (const routeWithMetaInformation of routes) {
|
for (const routeWithMetaInformation of routes) {
|
||||||
routeWithMetaInformation.tags = [capitalize(routeWithMetaInformation.route.urlPath.split('/')[1])];
|
routeWithMetaInformation.tags = [capitalize(routeWithMetaInformation.route['urlPath'].split('/')[1])];
|
||||||
|
|
||||||
output.paths[routeWithMetaInformation.route.urlPath] = generateOpenAPIForRoute(
|
output.paths[routeWithMetaInformation.route['urlPath']] = generateOpenAPIForRoute(
|
||||||
routeWithMetaInformation,
|
routeWithMetaInformation,
|
||||||
path.relative(relativeOutDirectoryPath, outDirectorySchemasPath),
|
path.relative(relativeOutDirectoryPath, outDirectorySchemasPath),
|
||||||
tagsToKeep,
|
tagsToKeep,
|
||||||
@@ -165,7 +165,7 @@ commander
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
unexpected = unexpected || errorsPerFile[file].some(error => !error.expected);
|
unexpected = unexpected || errorsPerFile[file]?.some(error => !error.expected) || false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (relativeReportPath !== undefined) {
|
if (relativeReportPath !== undefined) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export async function gatherRouteInformation(path: string): Promise<RouteWithMet
|
|||||||
// instantiate all errors
|
// instantiate all errors
|
||||||
instantiatedRoute.errors = await Promise.all(
|
instantiatedRoute.errors = await Promise.all(
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
instantiatedRoute.errorNames.map(async (error: any) =>
|
instantiatedRoute['errorNames'].map(async (error: any) =>
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
Object.assign((await project.instantiateDefinitionByName(error.name)) as object, {
|
Object.assign((await project.instantiateDefinitionByName(error.name)) as object, {
|
||||||
name: error.name,
|
name: error.name,
|
||||||
@@ -57,10 +57,10 @@ export async function gatherRouteInformation(path: string): Promise<RouteWithMet
|
|||||||
);
|
);
|
||||||
instantiatedRoute.responseBodyDescription =
|
instantiatedRoute.responseBodyDescription =
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
||||||
project.definitions[instantiatedRoute.responseBodyName]?.comment?.shortSummary!;
|
project.definitions[instantiatedRoute['responseBodyName']]?.comment?.shortSummary!;
|
||||||
instantiatedRoute.requestBodyDescription =
|
instantiatedRoute.requestBodyDescription =
|
||||||
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
||||||
project.definitions[instantiatedRoute.requestBodyName]?.comment?.shortSummary!;
|
project.definitions[instantiatedRoute['requestBodyName']]?.comment?.shortSummary!;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description: {
|
description: {
|
||||||
@@ -89,7 +89,7 @@ export function generateOpenAPIForRoute(
|
|||||||
const route = routeWithInfo.route;
|
const route = routeWithInfo.route;
|
||||||
const openapiPath: OpenAPIV3.PathItemObject = {};
|
const openapiPath: OpenAPIV3.PathItemObject = {};
|
||||||
|
|
||||||
openapiPath[route.method.toLowerCase() as OpenAPIV3.HttpMethods] = {
|
openapiPath[route['method'].toLowerCase() as OpenAPIV3.HttpMethods] = {
|
||||||
summary: capitalize(routeWithInfo.description.shortText?.replace(/(Route to |Route for )/gim, '')),
|
summary: capitalize(routeWithInfo.description.shortText?.replace(/(Route to |Route for )/gim, '')),
|
||||||
description: routeWithInfo.description.text,
|
description: routeWithInfo.description.text,
|
||||||
requestBody: {
|
requestBody: {
|
||||||
@@ -97,7 +97,7 @@ export function generateOpenAPIForRoute(
|
|||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
schema: {
|
schema: {
|
||||||
$ref: path.join(outDirectorySchemasPath, `${route.requestBodyName}.json`),
|
$ref: path.join(outDirectorySchemasPath, `${route['requestBodyName']}.json`),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -117,19 +117,21 @@ export function generateOpenAPIForRoute(
|
|||||||
tags: routeWithInfo.tags?.filter(value => tagsToKeep.includes(value)),
|
tags: routeWithInfo.tags?.filter(value => tagsToKeep.includes(value)),
|
||||||
};
|
};
|
||||||
|
|
||||||
openapiPath[route.method.toLowerCase() as OpenAPIV3.HttpMethods]!.responses![route.statusCodeSuccess] = {
|
openapiPath[route['method'].toLowerCase() as OpenAPIV3.HttpMethods]!.responses![
|
||||||
|
route['statusCodeSuccess']
|
||||||
|
] = {
|
||||||
description: route.responseBodyDescription,
|
description: route.responseBodyDescription,
|
||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
schema: {
|
schema: {
|
||||||
$ref: path.join(outDirectorySchemasPath, `${route.responseBodyName}.json`),
|
$ref: path.join(outDirectorySchemasPath, `${route['responseBodyName']}.json`),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const error of route.errors) {
|
for (const error of route.errors) {
|
||||||
openapiPath[route.method.toLowerCase() as OpenAPIV3.HttpMethods]!.responses![error.statusCode] = {
|
openapiPath[route['method'].toLowerCase() as OpenAPIV3.HttpMethods]!.responses![error.statusCode] = {
|
||||||
description:
|
description:
|
||||||
error.message ?? capitalize(error.name.replaceAll(/([A-Z][a-z])/g, ' $1').replace('SC ', '')),
|
error.message ?? capitalize(error.name.replaceAll(/([A-Z][a-z])/g, ' $1').replace('SC ', '')),
|
||||||
content: {
|
content: {
|
||||||
@@ -142,8 +144,8 @@ export function generateOpenAPIForRoute(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof route.obligatoryParameters === 'object') {
|
if (typeof route['obligatoryParameters'] === 'object') {
|
||||||
for (const [parameter, schemaDefinition] of Object.entries(route.obligatoryParameters)) {
|
for (const [parameter, schemaDefinition] of Object.entries(route['obligatoryParameters'])) {
|
||||||
const openapiParameter: OpenAPIV3.ParameterObject = {
|
const openapiParameter: OpenAPIV3.ParameterObject = {
|
||||||
in: 'path',
|
in: 'path',
|
||||||
name: parameter,
|
name: parameter,
|
||||||
@@ -153,7 +155,7 @@ export function generateOpenAPIForRoute(
|
|||||||
$ref: `schema/SCSearchResponse.json#/definitions/${schemaDefinition}`,
|
$ref: `schema/SCSearchResponse.json#/definitions/${schemaDefinition}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
openapiPath[route.method.toLowerCase() as OpenAPIV3.HttpMethods]?.parameters?.push(openapiParameter);
|
openapiPath[route['method'].toLowerCase() as OpenAPIV3.HttpMethods]?.parameters?.push(openapiParameter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ function createPlantUMLCodeForClass(config: UMLConfig, readerClass: LightweightC
|
|||||||
if (config.showProperties && readerClass.properties) {
|
if (config.showProperties && readerClass.properties) {
|
||||||
for (const key in readerClass.properties) {
|
for (const key in readerClass.properties) {
|
||||||
const property = readerClass.properties[key];
|
const property = readerClass.properties[key];
|
||||||
if (property.optional && !config.showOptionalProperties) {
|
if (property?.optional && !config.showOptionalProperties) {
|
||||||
// don't show optional attributes
|
// don't show optional attributes
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -202,7 +202,7 @@ function createPlantUMLCodeForClass(config: UMLConfig, readerClass: LightweightC
|
|||||||
// don't show inherited properties
|
// don't show inherited properties
|
||||||
continue;
|
continue;
|
||||||
}*/
|
}*/
|
||||||
model += `\n\t${createPropertyLine(property)}`;
|
model += `\n\t${createPropertyLine(property!)}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,13 +213,13 @@ function createPlantUMLCodeForClass(config: UMLConfig, readerClass: LightweightC
|
|||||||
if (readerClass.properties) {
|
if (readerClass.properties) {
|
||||||
for (const key in readerClass.properties) {
|
for (const key in readerClass.properties) {
|
||||||
const property = readerClass.properties[key];
|
const property = readerClass.properties[key];
|
||||||
const types: string[] = getReferenceTypes(property.type);
|
const types: string[] = getReferenceTypes(property!.type);
|
||||||
for (const type of types) {
|
for (const type of types) {
|
||||||
if (config.showAssociations) {
|
if (config.showAssociations) {
|
||||||
/*if (property.inherited && !config.showInheritedProperties) {
|
/*if (property.inherited && !config.showInheritedProperties) {
|
||||||
continue;
|
continue;
|
||||||
}*/
|
}*/
|
||||||
model += `${readerClass.name} -up-> ${type} : ${property.name} >\n`;
|
model += `${readerClass.name} -up-> ${type} : ${property!.name} >\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ export class Validator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// schema will be cached
|
// schema will be cached
|
||||||
return this.ajvValidateWrapper(this.schemas[schema], instance);
|
return this.ajvValidateWrapper(this.schemas[schema]!, instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.ajvValidateWrapper(schema, instance);
|
return this.ajvValidateWrapper(schema, instance);
|
||||||
@@ -147,7 +147,7 @@ function fromAjvResult(
|
|||||||
const error: ValidationError = {
|
const error: ValidationError = {
|
||||||
dataPath: ajvError.instancePath,
|
dataPath: ajvError.instancePath,
|
||||||
instance: instance,
|
instance: instance,
|
||||||
message: betterErrorObject?.[index]?.error ?? ajvError.message,
|
message: betterErrorObject?.[index]?.error ?? ajvError.message!,
|
||||||
name: ajvError.keyword,
|
name: ajvError.keyword,
|
||||||
schemaPath: ajvError.schemaPath,
|
schemaPath: ajvError.schemaPath,
|
||||||
suggestion: betterErrorObject?.[index]?.suggestion,
|
suggestion: betterErrorObject?.[index]?.suggestion,
|
||||||
@@ -223,7 +223,7 @@ export async function validateFiles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add error to list of errors
|
// add error to list of errors
|
||||||
errors[testFileName].push({
|
errors[testFileName]?.push({
|
||||||
...error,
|
...error,
|
||||||
expected,
|
expected,
|
||||||
});
|
});
|
||||||
@@ -234,7 +234,7 @@ export async function validateFiles(
|
|||||||
for (const error of expectedErrors) {
|
for (const error of expectedErrors) {
|
||||||
await Logger.error(`Extraneous expected error '${error}' in ${testFile}.`);
|
await Logger.error(`Extraneous expected error '${error}' in ${testFile}.`);
|
||||||
|
|
||||||
errors[testFileName].push({
|
errors[testFileName]?.push({
|
||||||
dataPath: 'undefined',
|
dataPath: 'undefined',
|
||||||
expected: false,
|
expected: false,
|
||||||
instance: undefined,
|
instance: undefined,
|
||||||
@@ -279,7 +279,7 @@ export async function writeReport(reportPath: PathLike, errors: ExpectedValidati
|
|||||||
|
|
||||||
let fileOutput = '';
|
let fileOutput = '';
|
||||||
|
|
||||||
for (const [index, error] of errors[fileName].entries()) {
|
for (const [index, error] of errors[fileName]!.entries()) {
|
||||||
fileOutput += mustache.render(errorTemplate, {
|
fileOutput += mustache.render(errorTemplate, {
|
||||||
idx: index + 1,
|
idx: index + 1,
|
||||||
instance: JSON.stringify(error.instance, undefined, 2),
|
instance: JSON.stringify(error.instance, undefined, 2),
|
||||||
|
|||||||
@@ -102,14 +102,14 @@ export function isSearchResponse(something: unknown): something is SCSearchRespo
|
|||||||
const somethingObject = something as {[key: string]: {[key: string]: string}};
|
const somethingObject = something as {[key: string]: {[key: string]: string}};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
Array.isArray(somethingObject.data) &&
|
Array.isArray(somethingObject['data']) &&
|
||||||
Array.isArray(somethingObject.facets) &&
|
Array.isArray(somethingObject['facets']) &&
|
||||||
somethingObject.pagination !== undefined &&
|
somethingObject['pagination'] !== undefined &&
|
||||||
typeof somethingObject.pagination.count === 'number' &&
|
typeof somethingObject['pagination']['count'] === 'number' &&
|
||||||
typeof somethingObject.pagination.offset === 'number' &&
|
typeof somethingObject['pagination']['offset'] === 'number' &&
|
||||||
typeof somethingObject.pagination.total === 'number' &&
|
typeof somethingObject['pagination']['total'] === 'number' &&
|
||||||
somethingObject.stats !== undefined &&
|
somethingObject['stats'] !== undefined &&
|
||||||
typeof somethingObject.stats.time === 'number'
|
typeof somethingObject['stats']['time'] === 'number'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ export class SCAcademicDegreeMeta extends SCThingMeta implements SCMetaTranslati
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
academicDegree: 'Abschlussgrad',
|
academicDegree: 'Abschlussgrad',
|
||||||
@@ -73,7 +73,7 @@ export class SCAcademicDegreeMeta extends SCThingMeta implements SCMetaTranslati
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export class SCAcademicTermWithoutReferencesMeta extends SCThingMeta implements
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
acronym: 'Akronym',
|
acronym: 'Akronym',
|
||||||
@@ -89,7 +89,7 @@ export class SCAcademicTermWithoutReferencesMeta extends SCThingMeta implements
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export class SCCreativeWorkMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
name: 'Titel',
|
name: 'Titel',
|
||||||
@@ -162,7 +162,7 @@ export class SCCreativeWorkMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export class SCEventMeta extends SCThingMeta implements SCMetaTranslations<SCEve
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
academicTerms: 'Semester',
|
academicTerms: 'Semester',
|
||||||
@@ -105,7 +105,7 @@ export class SCEventMeta extends SCThingMeta implements SCMetaTranslations<SCEve
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export class SCPlaceWithoutReferencesMeta
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
address: 'Adresse',
|
address: 'Adresse',
|
||||||
@@ -152,7 +152,7 @@ export class SCPlaceWithoutReferencesMeta
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class SCThingInPlaceMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
inPlace: 'Ort',
|
inPlace: 'Ort',
|
||||||
@@ -44,7 +44,7 @@ export class SCThingInPlaceMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export class SCThingThatAcceptsPaymentsWithoutReferencesMeta
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
paymentsAccepted: 'Bezahlmethoden',
|
paymentsAccepted: 'Bezahlmethoden',
|
||||||
@@ -62,7 +62,7 @@ export class SCThingThatAcceptsPaymentsWithoutReferencesMeta
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
paymentsAccepted: {
|
paymentsAccepted: {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ export class SCAcademicEventMeta extends SCThingMeta implements SCMetaTranslatio
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldTranslations.de,
|
...new SCEventMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -143,7 +143,7 @@ export class SCAcademicEventMeta extends SCThingMeta implements SCMetaTranslatio
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldValueTranslations.de,
|
...new SCEventMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ export class SCArticleMeta extends SCThingMeta implements SCMetaTranslations<SCA
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldTranslations.de,
|
...new SCCreativeWorkMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -147,7 +147,7 @@ export class SCArticleMeta extends SCThingMeta implements SCMetaTranslations<SCA
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export class SCAssessmentMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCAssessmentCategories,
|
SCAssessmentCategories,
|
||||||
@@ -152,7 +152,7 @@ export class SCAssessmentMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCAssessmentCategories,
|
SCAssessmentCategories,
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export class SCBookMeta extends SCThingMeta implements SCMetaTranslations<SCBook
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldTranslations.de,
|
...new SCCreativeWorkMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -159,7 +159,7 @@ export class SCBookMeta extends SCThingMeta implements SCMetaTranslations<SCBook
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export class SCBuildingMeta extends SCThingMeta implements SCMetaTranslations<SC
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCBuildingCategories,
|
SCBuildingCategories,
|
||||||
@@ -117,7 +117,7 @@ export class SCBuildingMeta extends SCThingMeta implements SCMetaTranslations<SC
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCBuildingCategories,
|
SCBuildingCategories,
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export class SCCatalogMeta extends SCThingMeta implements SCMetaTranslations<SCC
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCCatalogCategories,
|
SCCatalogCategories,
|
||||||
@@ -111,7 +111,7 @@ export class SCCatalogMeta extends SCThingMeta implements SCMetaTranslations<SCC
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCCatalogCategories,
|
SCCatalogCategories,
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export type SCCertificationCategories =
|
|||||||
| 'rainforest protection';
|
| 'rainforest protection';
|
||||||
|
|
||||||
export class SCCertificationMeta extends SCThingMeta implements SCMetaTranslations<SCCertification> {
|
export class SCCertificationMeta extends SCThingMeta implements SCMetaTranslations<SCCertification> {
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -101,7 +101,7 @@ export class SCCertificationMeta extends SCThingMeta implements SCMetaTranslatio
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export class SCContactPointMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
areaServed: 'Arbeitsraum',
|
areaServed: 'Arbeitsraum',
|
||||||
@@ -107,7 +107,7 @@ export class SCContactPointMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
type: 'Kontaktinformation',
|
type: 'Kontaktinformation',
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export class SCCourseOfStudyMeta extends SCThingMeta implements SCMetaTranslatio
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCAcademicDegreeMeta().fieldTranslations.de,
|
...new SCAcademicDegreeMeta().fieldTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
||||||
@@ -138,7 +138,7 @@ export class SCCourseOfStudyMeta extends SCThingMeta implements SCMetaTranslatio
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCAcademicDegreeMeta().fieldValueTranslations.de,
|
...new SCAcademicDegreeMeta().fieldValueTranslations.de,
|
||||||
modes: {
|
modes: {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export class SCDateSeriesMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldTranslations.de,
|
...new SCThingInPlaceMeta().fieldTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCSportCoursePriceGroup>().fieldTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCSportCoursePriceGroup>().fieldTranslations.de,
|
||||||
@@ -138,7 +138,7 @@ export class SCDateSeriesMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCSportCoursePriceGroup>().fieldValueTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCSportCoursePriceGroup>().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class SCDiffMeta extends SCThingMeta implements SCMetaTranslations<SCDiff
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
action: 'Aktion',
|
action: 'Aktion',
|
||||||
@@ -86,7 +86,7 @@ export class SCDiffMeta extends SCThingMeta implements SCMetaTranslations<SCDiff
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
action: {
|
action: {
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ export class SCDishMeta extends SCThingMeta implements SCMetaTranslations<SCDish
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCDishCategories,
|
SCDishCategories,
|
||||||
@@ -237,7 +237,7 @@ export class SCDishMeta extends SCThingMeta implements SCMetaTranslations<SCDish
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCDishCategories,
|
SCDishCategories,
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export class SCFloorMeta extends SCThingMeta implements SCMetaTranslations<SCFlo
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldTranslations.de,
|
...new SCThingInPlaceMeta().fieldTranslations.de,
|
||||||
floorName: 'Etagenbezeichnung',
|
floorName: 'Etagenbezeichnung',
|
||||||
@@ -123,7 +123,7 @@ export class SCFloorMeta extends SCThingMeta implements SCMetaTranslations<SCFlo
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
||||||
type: 'Etage',
|
type: 'Etage',
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class SCIdCardMeta extends SCThingMeta implements SCMetaTranslations<SCId
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
validity: 'Gültigkeit',
|
validity: 'Gültigkeit',
|
||||||
@@ -80,7 +80,7 @@ export class SCIdCardMeta extends SCThingMeta implements SCMetaTranslations<SCId
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
type: 'Ausweis',
|
type: 'Ausweis',
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export interface SCJobPosting
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class SCJobPostingMeta extends SCThingMeta {
|
export class SCJobPostingMeta extends SCThingMeta {
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta().fieldTranslations.de,
|
...new SCThingWithCategoriesWithoutReferencesMeta().fieldTranslations.de,
|
||||||
@@ -67,7 +67,7 @@ export class SCJobPostingMeta extends SCThingMeta {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta().fieldValueTranslations.de,
|
...new SCThingWithCategoriesWithoutReferencesMeta().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export class SCMessageMeta extends SCThingMeta implements SCMetaTranslations<SCM
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldTranslations.de,
|
...new SCCreativeWorkMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -152,7 +152,7 @@ export class SCMessageMeta extends SCThingMeta implements SCMetaTranslations<SCM
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export class SCOrganizationMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldTranslations.de,
|
...new SCThingInPlaceMeta().fieldTranslations.de,
|
||||||
contactPoints: 'Kontaktinformationen',
|
contactPoints: 'Kontaktinformationen',
|
||||||
@@ -65,7 +65,7 @@ export class SCOrganizationMeta extends SCThingMeta implements SCMetaTranslation
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
||||||
type: 'Einrichtung',
|
type: 'Einrichtung',
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export class SCPeriodicalMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldTranslations.de,
|
...new SCCreativeWorkMeta().fieldTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
@@ -129,7 +129,7 @@ export class SCPeriodicalMeta extends SCThingMeta implements SCMetaTranslations<
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export class SCPersonMeta extends SCThingMeta implements SCMetaTranslations<SCPe
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
additionalName: 'Zusatzname',
|
additionalName: 'Zusatzname',
|
||||||
@@ -197,7 +197,7 @@ export class SCPersonMeta extends SCThingMeta implements SCMetaTranslations<SCPe
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
gender: {
|
gender: {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export class SCPointOfInterestMeta extends SCThingMeta implements SCMetaTranslat
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCPointOfInterestCategories,
|
SCPointOfInterestCategories,
|
||||||
@@ -104,7 +104,7 @@ export class SCPointOfInterestMeta extends SCThingMeta implements SCMetaTranslat
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCPointOfInterestCategories,
|
SCPointOfInterestCategories,
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export class SCPublicationEventMeta extends SCThingMeta implements SCMetaTransla
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldTranslations.de,
|
...new SCEventMeta().fieldTranslations.de,
|
||||||
locations: 'Erscheinungsorte',
|
locations: 'Erscheinungsorte',
|
||||||
@@ -86,7 +86,7 @@ export class SCPublicationEventMeta extends SCThingMeta implements SCMetaTransla
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldValueTranslations.de,
|
...new SCEventMeta().fieldValueTranslations.de,
|
||||||
type: 'Veröffentlichung',
|
type: 'Veröffentlichung',
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export class SCRoomMeta extends SCThingMeta implements SCMetaTranslations<SCRoom
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCPlaceWithoutReferencesMeta().fieldTranslations.de,
|
...new SCPlaceWithoutReferencesMeta().fieldTranslations.de,
|
||||||
...new SCThingThatAcceptsPaymentsWithoutReferencesMeta().fieldTranslations.de,
|
...new SCThingThatAcceptsPaymentsWithoutReferencesMeta().fieldTranslations.de,
|
||||||
@@ -156,7 +156,7 @@ export class SCRoomMeta extends SCThingMeta implements SCMetaTranslations<SCRoom
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCPlaceWithoutReferencesMeta().fieldValueTranslations.de,
|
...new SCPlaceWithoutReferencesMeta().fieldValueTranslations.de,
|
||||||
...new SCThingThatAcceptsPaymentsWithoutReferencesMeta().fieldValueTranslations.de,
|
...new SCThingThatAcceptsPaymentsWithoutReferencesMeta().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export class SCSemesterMeta extends SCThingMeta implements SCMetaTranslations<SC
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCAcademicTermWithoutReferencesMeta().fieldTranslations.de,
|
...new SCAcademicTermWithoutReferencesMeta().fieldTranslations.de,
|
||||||
acronym: 'Abkürzung',
|
acronym: 'Abkürzung',
|
||||||
@@ -79,7 +79,7 @@ export class SCSemesterMeta extends SCThingMeta implements SCMetaTranslations<SC
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCAcademicTermWithoutReferencesMeta().fieldValueTranslations.de,
|
...new SCAcademicTermWithoutReferencesMeta().fieldValueTranslations.de,
|
||||||
type: 'Semester',
|
type: 'Semester',
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export class SCSettingMeta extends SCThingMeta implements SCMetaTranslations<SCS
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCSettingCategories,
|
SCSettingCategories,
|
||||||
@@ -149,7 +149,7 @@ export class SCSettingMeta extends SCThingMeta implements SCMetaTranslations<SCS
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<
|
...new SCThingWithCategoriesWithoutReferencesMeta<
|
||||||
SCSettingCategories,
|
SCSettingCategories,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class SCSportCourseMeta extends SCThingMeta implements SCMetaTranslations
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldTranslations.de,
|
...new SCEventMeta().fieldTranslations.de,
|
||||||
},
|
},
|
||||||
@@ -57,7 +57,7 @@ export class SCSportCourseMeta extends SCThingMeta implements SCMetaTranslations
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCEventMeta().fieldValueTranslations.de,
|
...new SCEventMeta().fieldValueTranslations.de,
|
||||||
type: 'Sportkurs',
|
type: 'Sportkurs',
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export class SCStudyModuleMeta extends SCThingMeta implements SCMetaTranslations
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
||||||
@@ -172,7 +172,7 @@ export class SCStudyModuleMeta extends SCThingMeta implements SCMetaTranslations
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export class SCTicketMeta extends SCThingMeta implements SCMetaTranslations<SCTi
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldTranslations.de,
|
...new SCThingInPlaceMeta().fieldTranslations.de,
|
||||||
approxWaitingTime: 'ungefähre Wartezeit',
|
approxWaitingTime: 'ungefähre Wartezeit',
|
||||||
@@ -80,7 +80,7 @@ export class SCTicketMeta extends SCThingMeta implements SCMetaTranslations<SCTi
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
...new SCThingInPlaceMeta().fieldValueTranslations.de,
|
||||||
type: 'Ticket',
|
type: 'Ticket',
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export class SCToDoMeta extends SCThingMeta implements SCMetaTranslations<SCToDo
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<string, SCThingWithCategoriesSpecificValues>()
|
...new SCThingWithCategoriesWithoutReferencesMeta<string, SCThingWithCategoriesSpecificValues>()
|
||||||
.fieldTranslations.de,
|
.fieldTranslations.de,
|
||||||
@@ -106,7 +106,7 @@ export class SCToDoMeta extends SCThingMeta implements SCMetaTranslations<SCToDo
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingWithCategoriesWithoutReferencesMeta<string, SCThingWithCategoriesSpecificValues>()
|
...new SCThingWithCategoriesWithoutReferencesMeta<string, SCThingWithCategoriesSpecificValues>()
|
||||||
.fieldValueTranslations.de,
|
.fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export class SCTourMeta extends SCThingMeta implements SCMetaTranslations<SCTour
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldTranslations.de,
|
...new SCThingMeta().fieldTranslations.de,
|
||||||
init: 'Initiales Skript',
|
init: 'Initiales Skript',
|
||||||
@@ -72,7 +72,7 @@ export class SCTourMeta extends SCThingMeta implements SCMetaTranslations<SCTour
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCThingMeta().fieldValueTranslations.de,
|
...new SCThingMeta().fieldValueTranslations.de,
|
||||||
type: 'Tour',
|
type: 'Tour',
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export class SCVideoMeta extends SCThingMeta implements SCMetaTranslations<SCVid
|
|||||||
/**
|
/**
|
||||||
* Translations of fields
|
* Translations of fields
|
||||||
*/
|
*/
|
||||||
fieldTranslations = {
|
override fieldTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldTranslations.de,
|
...new SCCreativeWorkMeta().fieldTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldTranslations.de,
|
||||||
@@ -190,7 +190,7 @@ export class SCVideoMeta extends SCThingMeta implements SCMetaTranslations<SCVid
|
|||||||
/**
|
/**
|
||||||
* Translations of values of fields
|
* Translations of values of fields
|
||||||
*/
|
*/
|
||||||
fieldValueTranslations = {
|
override fieldValueTranslations = {
|
||||||
de: {
|
de: {
|
||||||
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
...new SCCreativeWorkMeta().fieldValueTranslations.de,
|
||||||
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
...new SCThingThatCanBeOfferedMeta<SCAcademicPriceGroup>().fieldValueTranslations.de,
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export class SCThingTranslator {
|
|||||||
this.metaClasses = SCClasses;
|
this.metaClasses = SCClasses;
|
||||||
|
|
||||||
// Initalize all meta classes once
|
// Initalize all meta classes once
|
||||||
if (typeof (this.metaClasses as any)[Object.keys(this.metaClasses)[0]] === 'function') {
|
if (typeof (this.metaClasses as any)[Object.keys(this.metaClasses)[0]!] === 'function') {
|
||||||
for (const metaClass of Object.keys(this.metaClasses)) {
|
for (const metaClass of Object.keys(this.metaClasses)) {
|
||||||
(this.metaClasses as any)[metaClass] = new (SCClasses as any)[metaClass]();
|
(this.metaClasses as any)[metaClass] = new (SCClasses as any)[metaClass]();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ class LightweightDefinitionBuilder {
|
|||||||
indexSignature.type,
|
indexSignature.type,
|
||||||
),
|
),
|
||||||
indexSignatureType: this.lightweightTypeFromType(
|
indexSignatureType: this.lightweightTypeFromType(
|
||||||
this.typeChecker.getTypeFromTypeNode(indexSignature.parameters[0].type!),
|
this.typeChecker.getTypeFromTypeNode(indexSignature.parameters[0]?.type!),
|
||||||
indexSignature.parameters[0].type!,
|
indexSignature.parameters[0]?.type!,
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -253,6 +253,6 @@ class LightweightDefinitionBuilder {
|
|||||||
* Same as conversion, but generates a simple list of all definitions.
|
* Same as conversion, but generates a simple list of all definitions.
|
||||||
*/
|
*/
|
||||||
convertToList(): LightweightDefinition[] {
|
convertToList(): LightweightDefinition[] {
|
||||||
return Object.values(this.convert()).flatMap(it => it.values);
|
return Object.values(this.convert()).flatMap(it => it['values']!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
packages/gitlab-api/environment.d.ts
vendored
Normal file
9
packages/gitlab-api/environment.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
declare global {
|
||||||
|
namespace NodeJS {
|
||||||
|
interface ProcessEnv {
|
||||||
|
GITLAB_PRIVATE_TOKEN?: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
||||||
24
packages/logger/environment.d.ts
vendored
Normal file
24
packages/logger/environment.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
declare global {
|
||||||
|
namespace NodeJS {
|
||||||
|
interface ProcessEnv {
|
||||||
|
/**
|
||||||
|
* If set to true, invalid smtp configs will not throw an error
|
||||||
|
*/
|
||||||
|
ALLOW_NO_TRANSPORT?: 'true' | string;
|
||||||
|
SMTP_AUTH_USER?: string;
|
||||||
|
SMTP_AUTH_PASSWORD?: string;
|
||||||
|
SMTP_SENDER_MAIL?: string;
|
||||||
|
SMTP_SENDER_NAME?: string;
|
||||||
|
SMTP_HOST?: string;
|
||||||
|
SMTP_PORT?: string;
|
||||||
|
SMTP_CC?: string;
|
||||||
|
SMTP_RECIPIENTS?: string;
|
||||||
|
SMTP_SECURE?: 'true' | string;
|
||||||
|
STAPPS_LOG_LEVEL?: string;
|
||||||
|
STAPPS_EXIT_LEVEL?: string;
|
||||||
|
NODE_ENV?: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export {};
|
||||||
Reference in New Issue
Block a user