@forge/tunnel 7.2.0-next.24 → 7.2.0-next.25
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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @forge/tunnel
|
|
2
2
|
|
|
3
|
+
## 7.2.0-next.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3e160b1: Generate GraphQL types from CLI `graphql()` documents with `@graphql-codegen/client-preset` and `onlyOperationTypes`. Stop star-exporting the 27MB gateway dump from `@forge/cli-shared`.
|
|
8
|
+
- Updated dependencies [3e160b1]
|
|
9
|
+
- @forge/cli-shared@9.7.0-next.23
|
|
10
|
+
- @forge/bundler@7.2.3-next.24
|
|
11
|
+
|
|
3
12
|
## 7.2.0-next.24
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/tunnel-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"tunnel-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/tunnel-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,OAAO,EAEL,aAAa,EACb,oBAAoB,EAGpB,kBAAkB,EAClB,cAAc,EAIf,MAAM,mBAAmB,CAAC;AAsB3B,qBAAa,sBAAuB,SAAQ,oBAAqB,YAAW,kBAAkB;IAC5F,OAAO,CAAC,MAAM,CAAC,cAAc,CAAiF;IAC9G,OAAO,CAAC,SAAS,CAAC,CAAS;gBAGzB,OAAO,EAAE,MAAM,EACf,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;QAAE,SAAS,EAAE,MAA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AAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAsC/B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAkC1E"}
|
|
@@ -45,7 +45,7 @@ class TunnelGraphqlClient {
|
|
|
45
45
|
this.graphqlClient = graphqlClient;
|
|
46
46
|
}
|
|
47
47
|
async setupTunnel(appId, environmentKey, hasContainerServices) {
|
|
48
|
-
const mutation = `
|
|
48
|
+
const mutation = (0, cli_shared_1.graphql)(`
|
|
49
49
|
mutation forge_cli_setupApplicationTunnel($input: RegisterTunnelInput!) {
|
|
50
50
|
registerTunnel(input: $input) {
|
|
51
51
|
success
|
|
@@ -62,14 +62,15 @@ class TunnelGraphqlClient {
|
|
|
62
62
|
tunnelK8AuthToken
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
const { response
|
|
65
|
+
`);
|
|
66
|
+
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
67
67
|
input: {
|
|
68
68
|
appId,
|
|
69
69
|
environmentKey,
|
|
70
70
|
hasContainerServices
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
+
const { success, errors, tunnelId, tunnelToken, tunnelUrl, tunnelK8AuthToken } = (0, cli_shared_1.requireMutationPayload)(response.registerTunnel, requestId);
|
|
73
74
|
const error = (0, cli_shared_1.getError)(errors);
|
|
74
75
|
if (!success) {
|
|
75
76
|
throw new RegisterAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
@@ -92,7 +93,7 @@ class TunnelGraphqlClient {
|
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
async createAppTunnels(appId, environmentKey, tunnelDefinitions) {
|
|
95
|
-
const mutation = `
|
|
96
|
+
const mutation = (0, cli_shared_1.graphql)(`
|
|
96
97
|
mutation forge_cli_createApplicationTunnels($input: CreateAppTunnelsInput!) {
|
|
97
98
|
createAppTunnels(input: $input) {
|
|
98
99
|
success
|
|
@@ -106,8 +107,8 @@ class TunnelGraphqlClient {
|
|
|
106
107
|
keepAlive
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
-
const { response
|
|
110
|
+
`);
|
|
111
|
+
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
111
112
|
input: {
|
|
112
113
|
appId,
|
|
113
114
|
environmentKey,
|
|
@@ -115,6 +116,7 @@ class TunnelGraphqlClient {
|
|
|
115
116
|
force: true
|
|
116
117
|
}
|
|
117
118
|
});
|
|
119
|
+
const { success, errors, keepAlive } = (0, cli_shared_1.requireMutationPayload)(response.createAppTunnels, requestId);
|
|
118
120
|
const error = (0, cli_shared_1.getError)(errors);
|
|
119
121
|
if (!success) {
|
|
120
122
|
throw new CreateAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
@@ -126,7 +128,7 @@ class TunnelGraphqlClient {
|
|
|
126
128
|
return keepAlive;
|
|
127
129
|
}
|
|
128
130
|
async deleteTunnels(appId, environmentKey) {
|
|
129
|
-
const mutation = `
|
|
131
|
+
const mutation = (0, cli_shared_1.graphql)(`
|
|
130
132
|
mutation forge_cli_deleteApplicationTunnels($input: DeleteAppTunnelInput!) {
|
|
131
133
|
deleteAppTunnels(input: $input) {
|
|
132
134
|
success
|
|
@@ -139,13 +141,14 @@ class TunnelGraphqlClient {
|
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
|
|
143
|
-
const { response
|
|
144
|
+
`);
|
|
145
|
+
const { response, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
144
146
|
input: {
|
|
145
147
|
appId,
|
|
146
148
|
environmentKey
|
|
147
149
|
}
|
|
148
150
|
});
|
|
151
|
+
const { success, errors } = (0, cli_shared_1.requireMutationPayload)(response.deleteAppTunnels, requestId);
|
|
149
152
|
const error = (0, cli_shared_1.getError)(errors);
|
|
150
153
|
if (!success) {
|
|
151
154
|
throw new DeleteAppTunnelError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/tunnel",
|
|
3
|
-
"version": "7.2.0-next.
|
|
3
|
+
"version": "7.2.0-next.25",
|
|
4
4
|
"description": "Tunnel functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"compile": "tsc -b -v"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@forge/bundler": "7.2.3-next.
|
|
15
|
-
"@forge/cli-shared": "9.7.0-next.
|
|
14
|
+
"@forge/bundler": "7.2.3-next.24",
|
|
15
|
+
"@forge/cli-shared": "9.7.0-next.23",
|
|
16
16
|
"@forge/csp": "6.3.1",
|
|
17
17
|
"@forge/runtime": "7.0.0",
|
|
18
18
|
"@forge/util": "^3.0.0",
|