@forge/cli-shared 0.0.0-experimental-e3032d7 → 0.0.0-experimental-9489df9

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,15 +1,118 @@
1
1
  # @forge/cli-shared
2
2
 
3
- ## 0.0.0-experimental-e3032d7
3
+ ## 0.0.0-experimental-9489df9
4
4
 
5
- ### Minor Changes
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [acf78b5]
8
+ - Updated dependencies [0da5775]
9
+ - Updated dependencies [6728c67]
10
+ - Updated dependencies [c1c93a4]
11
+ - Updated dependencies [b1684fd]
12
+ - @forge/manifest@0.0.0-experimental-9489df9
13
+
14
+ ## 2.6.2-next.4
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [b1684fd]
19
+ - @forge/manifest@4.0.0-next.4
20
+
21
+ ## 2.6.2-next.3
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [6728c67]
26
+ - @forge/manifest@4.0.0-next.3
27
+
28
+ ## 2.6.2-next.2
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [0da5775]
33
+ - @forge/manifest@3.11.0-next.2
34
+
35
+ ## 2.6.2-next.1
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [acf78b58]
40
+ - @forge/manifest@3.11.0-next.1
41
+
42
+ ## 2.6.2-next.0
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [c1c93a4]
47
+ - @forge/manifest@3.10.1-next.0
48
+
49
+ ## 2.6.1
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [02aefee]
54
+ - Updated dependencies [d486898]
55
+ - Updated dependencies [f890e0e]
56
+ - Updated dependencies [9298536]
57
+ - Updated dependencies [ee8d860]
58
+ - Updated dependencies [2ae0afe]
59
+ - Updated dependencies [91daffc]
60
+ - Updated dependencies [7558a5d]
61
+ - Updated dependencies [f543a47]
62
+ - Updated dependencies [8876b96]
63
+ - @forge/manifest@3.10.0
64
+
65
+ ## 2.6.1-next.6
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [ee8d860]
70
+ - @forge/manifest@3.10.0-next.6
71
+
72
+ ## 2.6.1-next.5
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [8876b96]
77
+ - @forge/manifest@3.10.0-next.5
78
+
79
+ ## 2.6.1-next.4
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [9298536]
84
+ - @forge/manifest@3.10.0-next.4
85
+
86
+ ## 2.6.1-next.3
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [d486898]
91
+ - Updated dependencies [f890e0e]
92
+ - Updated dependencies [91daffc]
93
+ - @forge/manifest@3.10.0-next.3
94
+
95
+ ## 2.6.1-next.2
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [7558a5d9]
100
+ - @forge/manifest@3.9.1-next.2
101
+
102
+ ## 2.6.1-next.1
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [02aefee]
107
+ - Updated dependencies [f543a47]
108
+ - @forge/manifest@3.9.1-next.1
6
109
 
7
- - ebb857c: Add keytar to shrinkwrap package list
110
+ ## 2.6.1-next.0
8
111
 
9
112
  ### Patch Changes
10
113
 
11
114
  - Updated dependencies [2ae0afe]
12
- - @forge/manifest@0.0.0-experimental-e3032d7
115
+ - @forge/manifest@3.9.1-next.0
13
116
 
14
117
  ## 2.6.0
15
118
 
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ import { Ari } from '@forge/util/packages/cs-ari';
2
3
  import { URL } from 'url';
3
4
  import { AppConfigProvider } from '../apps';
4
5
  import { AppEnvironmentClient } from '../graphql';
@@ -21,7 +22,7 @@ export interface AppLogsDetails {
21
22
  environmentId: string;
22
23
  limit: number;
23
24
  startTime?: string | null;
24
- contextAri?: [any];
25
+ contextAri?: [Ari];
25
26
  }
26
27
  export interface InvocationQueryDetails {
27
28
  environmentKey: string;
@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E;AAED,qBAAa,kBAAkB;IAK3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,YAAY,EAAE,iBAAiB,EAC/B,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,iBAAiB;IAGnC,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,SAAgB,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAsBjG,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;CAI1E"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ViewAppLogsCommand = void 0;
4
+ const cs_ari_1 = require("@forge/util/packages/cs-ari");
4
5
  const ari_1 = require("../ari");
5
6
  class ViewAppLogsCommand {
6
7
  constructor(getAppConfig, appEnvironmentClient, globalEdgeClient, logsClient) {
@@ -16,8 +17,10 @@ class ViewAppLogsCommand {
16
17
  context ? this.globalEdgeClient.getCloudId(context.site) : undefined
17
18
  ]);
18
19
  const contextAri = cloudId ? ari_1.buildContextAri(cloudId, context.product) : undefined;
20
+ const ari = cs_ari_1.parse(appId);
21
+ const appAri = cs_ari_1.parseAppAri(ari);
19
22
  return this.logsClient.viewAppLogs({
20
- appId: '',
23
+ appId: appAri.appId,
21
24
  environmentId,
22
25
  limit,
23
26
  startTime,
package/out/ari/ari.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { Ari } from '@forge/util/packages/cs-ari';
1
2
  export declare function appIdToAriString(appId: string): string;
2
- export declare function buildContextAri(cloudId: string, product: string): never;
3
- export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string): never;
4
- export declare function encodeContext(context: any, extension: any): string;
3
+ export declare function buildContextAri(cloudId: string, product: string): Ari;
4
+ export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string): Ari;
5
+ export declare function encodeContext(context: Ari, extension: Ari): string;
5
6
  //# sourceMappingURL=ari.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAEvE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,KAAK,CAElG;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,CASlE"}
1
+ {"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAsB,MAAM,6BAA6B,CAAC;AAEtE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,GAAG,CAMhG;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,CASlE"}
package/out/ari/ari.js CHANGED
@@ -1,16 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = void 0;
4
+ const cs_ari_1 = require("@forge/util/packages/cs-ari");
4
5
  function appIdToAriString(appId) {
5
6
  return `ari:cloud:ecosystem::app/${appId}`;
6
7
  }
7
8
  exports.appIdToAriString = appIdToAriString;
8
9
  function buildContextAri(cloudId, product) {
9
- throw new Error('on ho');
10
+ return new cs_ari_1.ResourceIdentifier({
11
+ resourceOwner: product.toLowerCase(),
12
+ resourceType: 'site',
13
+ resourceId: cloudId
14
+ });
10
15
  }
11
16
  exports.buildContextAri = buildContextAri;
12
17
  function buildExtensionAri(appId, environmentId, functionKey) {
13
- throw new Error('on ho');
18
+ return new cs_ari_1.ResourceIdentifier({
19
+ resourceOwner: 'ecosystem',
20
+ resourceType: 'extension',
21
+ resourceId: `${appId}/${environmentId}/static/${functionKey}`
22
+ });
14
23
  }
15
24
  exports.buildExtensionAri = buildExtensionAri;
16
25
  function encodeContext(context, extension) {