@veloceapps/api 8.0.0-192 → 8.0.0-194

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.
@@ -1,13 +1,10 @@
1
- import { HttpClient } from '@angular/common/http';
2
1
  import { Observable } from 'rxjs';
3
- import { OrgInfo } from '../types/org-info.types';
2
+ import { AvailableVersionsInfo, OrgInfo } from '../types/org-info.types';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class OrgInfoApiService {
6
- private http;
7
- private readonly CANVAS_URL_FALLBACK;
8
- private readonly hostUrl;
9
- constructor(http: HttpClient);
10
- getOrgInfo$(organizationId: string): Observable<OrgInfo>;
5
+ getOrgInfo$(): Observable<OrgInfo | undefined>;
6
+ getAvailableVersionsInfo$(): Observable<AvailableVersionsInfo | undefined>;
7
+ upgradeVersion$(targetVersion: string): Observable<OrgInfo | undefined>;
11
8
  static ɵfac: i0.ɵɵFactoryDeclaration<OrgInfoApiService, never>;
12
9
  static ɵprov: i0.ɵɵInjectableDeclaration<OrgInfoApiService>;
13
10
  }
@@ -25,3 +25,21 @@ export interface OrgInfo {
25
25
  SelfRegisteredExpireAt: string;
26
26
  Scratch: boolean;
27
27
  }
28
+ export interface AvailableVersionsInfo {
29
+ orgId: string;
30
+ name: string;
31
+ envId: string;
32
+ client: string;
33
+ currentVersion: VersionInfo;
34
+ availableVersions: VersionInfo[];
35
+ }
36
+ export interface VersionInfo {
37
+ release: string;
38
+ integrationVersion?: string;
39
+ componentVersions: ComponentVersionInfo[];
40
+ }
41
+ export interface ComponentVersionInfo {
42
+ name: string;
43
+ displayName: string;
44
+ version: string;
45
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/api",
3
- "version": "8.0.0-192",
3
+ "version": "8.0.0-194",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "~15.2.0",