2026-05-25 03:10:18 +00:00
|
|
|
import type * as servezoneInterfaces from '@serve.zone/interfaces';
|
2026-03-21 19:36:25 +00:00
|
|
|
import * as plugins from '../plugins.ts';
|
|
|
|
|
import * as data from '../data/index.ts';
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export type IAppStoreApp = servezoneInterfaces.appstore.IAppStoreApp;
|
|
|
|
|
export type IAppStoreVersionConfig = servezoneInterfaces.appstore.IAppStoreVersionConfig;
|
|
|
|
|
export type IAppStoreAppMeta = servezoneInterfaces.appstore.IAppStoreAppMeta;
|
|
|
|
|
export type IUpgradeableAppStoreService = servezoneInterfaces.appstore.IUpgradeableAppStoreService;
|
2026-03-21 19:36:25 +00:00
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IAppStoreInstallOptions extends servezoneInterfaces.appstore.IAppStoreInstallRequest {
|
2026-05-24 07:28:18 +00:00
|
|
|
autoDNS?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IReq_GetAppStoreTemplates extends plugins.typedrequestInterfaces.implementsTR<
|
2026-03-21 19:36:25 +00:00
|
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
2026-05-25 03:10:18 +00:00
|
|
|
IReq_GetAppStoreTemplates
|
2026-03-21 19:36:25 +00:00
|
|
|
> {
|
2026-05-25 03:10:18 +00:00
|
|
|
method: 'getAppStoreTemplates';
|
2026-03-21 19:36:25 +00:00
|
|
|
request: {
|
|
|
|
|
identity: data.IIdentity;
|
|
|
|
|
};
|
|
|
|
|
response: {
|
2026-05-25 03:10:18 +00:00
|
|
|
apps: IAppStoreApp[];
|
2026-03-21 19:36:25 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IReq_GetAppStoreConfig extends plugins.typedrequestInterfaces.implementsTR<
|
2026-03-21 19:36:25 +00:00
|
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
2026-05-25 03:10:18 +00:00
|
|
|
IReq_GetAppStoreConfig
|
2026-03-21 19:36:25 +00:00
|
|
|
> {
|
2026-05-25 03:10:18 +00:00
|
|
|
method: 'getAppStoreConfig';
|
2026-03-21 19:36:25 +00:00
|
|
|
request: {
|
|
|
|
|
identity: data.IIdentity;
|
|
|
|
|
appId: string;
|
|
|
|
|
version: string;
|
|
|
|
|
};
|
|
|
|
|
response: {
|
2026-05-25 03:10:18 +00:00
|
|
|
config: IAppStoreVersionConfig;
|
|
|
|
|
appMeta: IAppStoreAppMeta;
|
2026-03-21 19:36:25 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IReq_InstallAppStoreApp extends plugins.typedrequestInterfaces.implementsTR<
|
2026-05-24 07:28:18 +00:00
|
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
2026-05-25 03:10:18 +00:00
|
|
|
IReq_InstallAppStoreApp
|
2026-05-24 07:28:18 +00:00
|
|
|
> {
|
2026-05-25 03:10:18 +00:00
|
|
|
method: 'installAppStoreApp';
|
2026-05-24 07:28:18 +00:00
|
|
|
request: {
|
|
|
|
|
identity: data.IIdentity;
|
2026-05-25 03:10:18 +00:00
|
|
|
install: IAppStoreInstallOptions;
|
2026-05-24 07:28:18 +00:00
|
|
|
};
|
|
|
|
|
response: {
|
|
|
|
|
service: data.IService;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IReq_GetUpgradeableAppStoreServices extends plugins.typedrequestInterfaces.implementsTR<
|
2026-03-21 19:36:25 +00:00
|
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
2026-05-25 03:10:18 +00:00
|
|
|
IReq_GetUpgradeableAppStoreServices
|
2026-03-21 19:36:25 +00:00
|
|
|
> {
|
2026-05-25 03:10:18 +00:00
|
|
|
method: 'getUpgradeableAppStoreServices';
|
2026-03-21 19:36:25 +00:00
|
|
|
request: {
|
|
|
|
|
identity: data.IIdentity;
|
|
|
|
|
};
|
|
|
|
|
response: {
|
2026-05-25 03:10:18 +00:00
|
|
|
services: IUpgradeableAppStoreService[];
|
2026-03-21 19:36:25 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-25 03:10:18 +00:00
|
|
|
export interface IReq_UpgradeAppStoreService extends plugins.typedrequestInterfaces.implementsTR<
|
2026-03-21 19:36:25 +00:00
|
|
|
plugins.typedrequestInterfaces.ITypedRequest,
|
2026-05-25 03:10:18 +00:00
|
|
|
IReq_UpgradeAppStoreService
|
2026-03-21 19:36:25 +00:00
|
|
|
> {
|
2026-05-25 03:10:18 +00:00
|
|
|
method: 'upgradeAppStoreService';
|
2026-03-21 19:36:25 +00:00
|
|
|
request: {
|
|
|
|
|
identity: data.IIdentity;
|
|
|
|
|
serviceName: string;
|
|
|
|
|
targetVersion: string;
|
|
|
|
|
};
|
|
|
|
|
response: {
|
|
|
|
|
service: data.IService;
|
|
|
|
|
warnings: string[];
|
|
|
|
|
};
|
|
|
|
|
}
|