Feature/server packages v2 (#574)
* new api models * use new PackageResource * do not error out on missing default exports (esmodules auto-execute) * do not check for js extensions (they might have been registered on the client without a js file) * prepend the api baseurl to any relataive server JS dependencies * ignore tsbuildinfo * create base file for tsconfig * extend from base config and optimise include/exclude paths * install rollup plugin to handle json files * use plugin to bundle json files * call script for cms builds that builds libs * add rollup config to utils lib * add a context token to the extension registry instance itself and provide it through BackofficeElement * add rollup node resolve * add node resolve * only include element mixin in element library * add error description to module load error * add types to UmbExtensionRegistry token * set UmbNotificationService as string in its token to avoid minification * correct comment * reverse order of checks * add host to server extensions and support life-cycle check * add imports * use lit rather than lit-html * correct comment * add PackageManifestModel * add import * run libs build for cms * revert reorder * use string name for NotificationContext token * make alias public readonly of UmbContextToken * remove TODO * use UmbContextToken::toString() for all stores * use string alias for contexts * move default data so we avoid importing a big lit library just to get default data interface * add rollup to two extra libraries * make sure we build uui and lit into our libraries for the few cases we import something * add lockfile * add separate options for .js files * add function to install types of module * add types output * remove unused tsconfig-base file for now
This commit is contained in:
@@ -91,6 +91,7 @@ export type { OutOfDateStatusModel } from './models/OutOfDateStatusModel';
|
||||
export { OutOfDateTypeModel } from './models/OutOfDateTypeModel';
|
||||
export type { PackageCreateModel } from './models/PackageCreateModel';
|
||||
export type { PackageDefinitionModel } from './models/PackageDefinitionModel';
|
||||
export type { PackageManifestModel } from './models/PackageManifestModel';
|
||||
export type { PackageMigrationStatusModel } from './models/PackageMigrationStatusModel';
|
||||
export type { PackageModelBaseModel } from './models/PackageModelBaseModel';
|
||||
export type { PackageUpdateModel } from './models/PackageUpdateModel';
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type PackageManifestModel = {
|
||||
name?: string;
|
||||
version?: string | null;
|
||||
extensions?: Array<any>;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/* eslint-disable */
|
||||
import type { PackageCreateModel } from '../models/PackageCreateModel';
|
||||
import type { PackageDefinitionModel } from '../models/PackageDefinitionModel';
|
||||
import type { PackageManifestModel } from '../models/PackageManifestModel';
|
||||
import type { PackageUpdateModel } from '../models/PackageUpdateModel';
|
||||
import type { PagedPackageDefinitionModel } from '../models/PagedPackageDefinitionModel';
|
||||
import type { PagedPackageMigrationStatusModel } from '../models/PagedPackageMigrationStatusModel';
|
||||
@@ -166,6 +167,17 @@ export class PackageResource {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns any Success
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getPackageManifest(): CancelablePromise<Array<PackageManifestModel>> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/umbraco/management/api/v1/package/manifest',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns PagedPackageMigrationStatusModel Success
|
||||
* @throws ApiError
|
||||
|
||||
Reference in New Issue
Block a user