@forge/cli-shared 3.12.0-next.7 → 3.13.0-next.0
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/CHANGELOG.md +23 -0
- package/out/apps/get-app-owner.d.ts +13 -0
- package/out/apps/get-app-owner.d.ts.map +1 -0
- package/out/apps/get-app-owner.js +44 -0
- package/out/apps/index.d.ts +1 -0
- package/out/apps/index.d.ts.map +1 -1
- package/out/apps/index.js +1 -0
- package/out/graphql/graphql-types.d.ts +633 -39
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +74 -6
- package/out/ui/text.d.ts +10 -1
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +10 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 3.13.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e49e46d0: Use default environment from forge settings
|
|
8
|
+
|
|
9
|
+
## 3.12.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 0449769b: Add default-environment to forge settings
|
|
14
|
+
- d94f614e: Added UI Kit 2 option to create app CLI command behind feature flag
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 5eff9d5f: Adding additional error message (in the case of app installations failure) during forge deploy command
|
|
19
|
+
- Updated dependencies [7dd1550b]
|
|
20
|
+
- Updated dependencies [aa9b9754]
|
|
21
|
+
- Updated dependencies [83eb996c]
|
|
22
|
+
- Updated dependencies [08c6f1a8]
|
|
23
|
+
- Updated dependencies [05d6c05e]
|
|
24
|
+
- @forge/manifest@4.13.0
|
|
25
|
+
|
|
3
26
|
## 3.12.0-next.7
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GraphQLClient, User } from '../graphql';
|
|
2
|
+
import { AppConfigProvider } from './app-config';
|
|
3
|
+
export declare class MissingAppOwnerError extends Error {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
export declare class GetAppOwnerQuery {
|
|
7
|
+
private readonly graphqlClient;
|
|
8
|
+
private readonly getAppConfig;
|
|
9
|
+
constructor(graphqlClient: GraphQLClient, getAppConfig: AppConfigProvider);
|
|
10
|
+
execute(): Promise<User>;
|
|
11
|
+
private getAppOwner;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=get-app-owner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiC,IAAI,EAAE,MAAM,YAAY,CAAC;AAEhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAiB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAA3D,aAAa,EAAE,aAAa,EAAmB,YAAY,EAAE,iBAAiB;IAE9F,OAAO;YAMN,WAAW;CA0B1B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAppOwnerQuery = exports.MissingAppOwnerError = void 0;
|
|
4
|
+
const graphql_1 = require("../graphql");
|
|
5
|
+
const ui_1 = require("../ui");
|
|
6
|
+
class MissingAppOwnerError extends Error {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(ui_1.Text.env.error.appOwnerNotExist);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MissingAppOwnerError = MissingAppOwnerError;
|
|
12
|
+
class GetAppOwnerQuery {
|
|
13
|
+
constructor(graphqlClient, getAppConfig) {
|
|
14
|
+
this.graphqlClient = graphqlClient;
|
|
15
|
+
this.getAppConfig = getAppConfig;
|
|
16
|
+
}
|
|
17
|
+
async execute() {
|
|
18
|
+
const { id: appId } = await this.getAppConfig();
|
|
19
|
+
return this.getAppOwner(appId);
|
|
20
|
+
}
|
|
21
|
+
async getAppOwner(appId) {
|
|
22
|
+
const query = `
|
|
23
|
+
query forge_cli_getAppOwner($id: ID!) {
|
|
24
|
+
app(id: $id) {
|
|
25
|
+
createdBy {
|
|
26
|
+
name
|
|
27
|
+
accountId
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const { app } = await this.graphqlClient.query(query, {
|
|
33
|
+
id: appId
|
|
34
|
+
});
|
|
35
|
+
if (!app) {
|
|
36
|
+
throw new graphql_1.MissingAppError();
|
|
37
|
+
}
|
|
38
|
+
if (!app.createdBy) {
|
|
39
|
+
throw new MissingAppOwnerError();
|
|
40
|
+
}
|
|
41
|
+
return app.createdBy;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.GetAppOwnerQuery = GetAppOwnerQuery;
|
package/out/apps/index.d.ts
CHANGED
package/out/apps/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apps/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/apps/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
package/out/apps/index.js
CHANGED
|
@@ -8,3 +8,4 @@ tslib_1.__exportStar(require("./package-installer"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./register-app"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./sites"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./template"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./get-app-owner"), exports);
|