@microsoft/dev-tunnels-contracts 1.0.8 → 1.0.7303

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.
Files changed (62) hide show
  1. package/README.md +2 -2
  2. package/clusterDetails.d.ts +19 -19
  3. package/clusterDetails.js +6 -6
  4. package/index.d.ts +17 -17
  5. package/index.js +21 -21
  6. package/localNetworkTunnelEndpoint.d.ts +20 -20
  7. package/localNetworkTunnelEndpoint.js +6 -6
  8. package/package.json +1 -1
  9. package/problemDetails.d.ts +24 -24
  10. package/problemDetails.js +6 -6
  11. package/rateStatus.d.ts +19 -20
  12. package/rateStatus.d.ts.map +1 -1
  13. package/rateStatus.js +6 -6
  14. package/resourceStatus.d.ts +17 -17
  15. package/resourceStatus.js +6 -6
  16. package/serviceVersionDetails.d.ts +26 -26
  17. package/serviceVersionDetails.js +6 -6
  18. package/tsbuildinfo.json +1 -1
  19. package/tunnel.d.ts +78 -78
  20. package/tunnel.js +6 -6
  21. package/tunnelAccessControl.d.ts +27 -27
  22. package/tunnelAccessControl.js +13 -13
  23. package/tunnelAccessControlEntry.d.ts +79 -79
  24. package/tunnelAccessControlEntry.js +39 -39
  25. package/tunnelAccessControlEntryType.d.ts +45 -45
  26. package/tunnelAccessControlEntryType.js +53 -53
  27. package/tunnelAccessControlStatics.d.ts +10 -10
  28. package/tunnelAccessControlStatics.js +46 -46
  29. package/tunnelAccessScopes.d.ts +38 -38
  30. package/tunnelAccessScopes.js +46 -46
  31. package/tunnelAccessSubject.d.ts +39 -39
  32. package/tunnelAccessSubject.js +6 -6
  33. package/tunnelAuthenticationSchemes.d.ts +17 -17
  34. package/tunnelAuthenticationSchemes.js +25 -25
  35. package/tunnelConnectionMode.d.ts +19 -19
  36. package/tunnelConnectionMode.js +27 -27
  37. package/tunnelConstraints.d.ts +63 -53
  38. package/tunnelConstraints.d.ts.map +1 -1
  39. package/tunnelConstraints.js +71 -61
  40. package/tunnelConstraints.js.map +1 -1
  41. package/tunnelEndpoint.d.ts +72 -72
  42. package/tunnelEndpoint.js +20 -20
  43. package/tunnelEndpointStatics.d.ts +19 -19
  44. package/tunnelEndpointStatics.js +48 -48
  45. package/tunnelHeaderNames.d.ts +27 -27
  46. package/tunnelHeaderNames.js +35 -35
  47. package/tunnelOptions.d.ts +11 -11
  48. package/tunnelOptions.js +6 -6
  49. package/tunnelPort.d.ts +70 -70
  50. package/tunnelPort.js +6 -6
  51. package/tunnelPortStatus.d.ts +39 -39
  52. package/tunnelPortStatus.js +6 -6
  53. package/tunnelProtocol.d.ts +33 -33
  54. package/tunnelProtocol.js +41 -41
  55. package/tunnelRelayTunnelEndpoint.d.ts +14 -14
  56. package/tunnelRelayTunnelEndpoint.js +6 -6
  57. package/tunnelServiceProperties.d.ts +99 -99
  58. package/tunnelServiceProperties.js +77 -77
  59. package/tunnelServicePropertiesStatics.d.ts +17 -17
  60. package/tunnelServicePropertiesStatics.js +55 -55
  61. package/tunnelStatus.d.ts +66 -66
  62. package/tunnelStatus.js +6 -6
package/tunnelProtocol.js CHANGED
@@ -1,42 +1,42 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelProtocol.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelProtocol = void 0;
8
- /**
9
- * Defines possible values for the protocol of a {@link TunnelPort}.
10
- */
11
- var TunnelProtocol;
12
- (function (TunnelProtocol) {
13
- /**
14
- * The protocol is automatically detected. (TODO: Define detection semantics.)
15
- */
16
- TunnelProtocol["Auto"] = "auto";
17
- /**
18
- * Unknown TCP protocol.
19
- */
20
- TunnelProtocol["Tcp"] = "tcp";
21
- /**
22
- * Unknown UDP protocol.
23
- */
24
- TunnelProtocol["Udp"] = "udp";
25
- /**
26
- * SSH protocol.
27
- */
28
- TunnelProtocol["Ssh"] = "ssh";
29
- /**
30
- * Remote desktop protocol.
31
- */
32
- TunnelProtocol["Rdp"] = "rdp";
33
- /**
34
- * HTTP protocol.
35
- */
36
- TunnelProtocol["Http"] = "http";
37
- /**
38
- * HTTPS protocol.
39
- */
40
- TunnelProtocol["Https"] = "https";
41
- })(TunnelProtocol = exports.TunnelProtocol || (exports.TunnelProtocol = {}));
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelProtocol.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelProtocol = void 0;
8
+ /**
9
+ * Defines possible values for the protocol of a {@link TunnelPort}.
10
+ */
11
+ var TunnelProtocol;
12
+ (function (TunnelProtocol) {
13
+ /**
14
+ * The protocol is automatically detected. (TODO: Define detection semantics.)
15
+ */
16
+ TunnelProtocol["Auto"] = "auto";
17
+ /**
18
+ * Unknown TCP protocol.
19
+ */
20
+ TunnelProtocol["Tcp"] = "tcp";
21
+ /**
22
+ * Unknown UDP protocol.
23
+ */
24
+ TunnelProtocol["Udp"] = "udp";
25
+ /**
26
+ * SSH protocol.
27
+ */
28
+ TunnelProtocol["Ssh"] = "ssh";
29
+ /**
30
+ * Remote desktop protocol.
31
+ */
32
+ TunnelProtocol["Rdp"] = "rdp";
33
+ /**
34
+ * HTTP protocol.
35
+ */
36
+ TunnelProtocol["Http"] = "http";
37
+ /**
38
+ * HTTPS protocol.
39
+ */
40
+ TunnelProtocol["Https"] = "https";
41
+ })(TunnelProtocol = exports.TunnelProtocol || (exports.TunnelProtocol = {}));
42
42
  //# sourceMappingURL=tunnelProtocol.js.map
@@ -1,15 +1,15 @@
1
- import { TunnelEndpoint } from './tunnelEndpoint';
2
- /**
3
- * Parameters for connecting to a tunnel via the tunnel service's built-in relay function.
4
- */
5
- export interface TunnelRelayTunnelEndpoint extends TunnelEndpoint {
6
- /**
7
- * Gets or sets the host URI.
8
- */
9
- hostRelayUri?: string;
10
- /**
11
- * Gets or sets the client URI.
12
- */
13
- clientRelayUri?: string;
14
- }
1
+ import { TunnelEndpoint } from './tunnelEndpoint';
2
+ /**
3
+ * Parameters for connecting to a tunnel via the tunnel service's built-in relay function.
4
+ */
5
+ export interface TunnelRelayTunnelEndpoint extends TunnelEndpoint {
6
+ /**
7
+ * Gets or sets the host URI.
8
+ */
9
+ hostRelayUri?: string;
10
+ /**
11
+ * Gets or sets the client URI.
12
+ */
13
+ clientRelayUri?: string;
14
+ }
15
15
  //# sourceMappingURL=tunnelRelayTunnelEndpoint.d.ts.map
@@ -1,7 +1,7 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelRelayTunnelEndpoint.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelRelayTunnelEndpoint.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  //# sourceMappingURL=tunnelRelayTunnelEndpoint.js.map
@@ -1,100 +1,100 @@
1
- /**
2
- * Provides environment-dependent properties about the service.
3
- */
4
- export interface TunnelServiceProperties {
5
- /**
6
- * Gets the base URI of the service.
7
- */
8
- serviceUri: string;
9
- /**
10
- * Gets the public AAD AppId for the service.
11
- *
12
- * Clients specify this AppId as the audience property when authenticating to the
13
- * service.
14
- */
15
- serviceAppId: string;
16
- /**
17
- * Gets the internal AAD AppId for the service.
18
- *
19
- * Other internal services specify this AppId as the audience property when
20
- * authenticating to the tunnel service. Production services must be in the AME tenant
21
- * to use this appid.
22
- */
23
- serviceInternalAppId: string;
24
- /**
25
- * Gets the client ID for the service's GitHub app.
26
- *
27
- * Clients apps that authenticate tunnel users with GitHub specify this as the client
28
- * ID when requesting a user token.
29
- */
30
- gitHubAppClientId: string;
31
- }
32
- /**
33
- * Global DNS name of the production tunnel service.
34
- */
35
- export declare const prodDnsName = "global.rel.tunnels.api.visualstudio.com";
36
- /**
37
- * Global DNS name of the pre-production tunnel service.
38
- */
39
- export declare const ppeDnsName = "global.rel.tunnels.ppe.api.visualstudio.com";
40
- /**
41
- * Global DNS name of the development tunnel service.
42
- */
43
- export declare const devDnsName = "global.ci.tunnels.dev.api.visualstudio.com";
44
- /**
45
- * First-party app ID: `Visual Studio Tunnel Service`
46
- *
47
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
48
- * in the PROD service environment.
49
- */
50
- export declare const prodFirstPartyAppId = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2";
51
- /**
52
- * First-party app ID: `Visual Studio Tunnel Service - Test`
53
- *
54
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
55
- * in the PPE and DEV service environments.
56
- */
57
- export declare const nonProdFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18";
58
- /**
59
- * Third-party app ID: `tunnels-prod-app-sp`
60
- *
61
- * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
62
- * service environment.
63
- */
64
- export declare const prodThirdPartyAppId = "ce65d243-a913-4cae-a7dd-cb52e9f77647";
65
- /**
66
- * Third-party app ID: `tunnels-ppe-app-sp`
67
- *
68
- * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
69
- * service environment.
70
- */
71
- export declare const ppeThirdPartyAppId = "544167a6-f431-4518-aac6-2fd50071928e";
72
- /**
73
- * Third-party app ID: `tunnels-dev-app-sp`
74
- *
75
- * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
76
- * in the DEV service environment.
77
- */
78
- export declare const devThirdPartyAppId = "a118c979-0249-44bb-8f95-eb0457127aeb";
79
- /**
80
- * GitHub App Client ID for 'Visual Studio Tunnel Service'
81
- *
82
- * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
83
- * environment.
84
- */
85
- export declare const prodGitHubAppClientId = "Iv1.e7b89e013f801f03";
86
- /**
87
- * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
88
- *
89
- * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
90
- * service environments.
91
- */
92
- export declare const nonProdGitHubAppClientId = "Iv1.b231c327f1eaa229";
93
- import { environment } from './tunnelServicePropertiesStatics';
94
- export declare const TunnelServiceProperties: {
95
- production: TunnelServiceProperties;
96
- staging: TunnelServiceProperties;
97
- development: TunnelServiceProperties;
98
- environment: typeof environment;
99
- };
1
+ /**
2
+ * Provides environment-dependent properties about the service.
3
+ */
4
+ export interface TunnelServiceProperties {
5
+ /**
6
+ * Gets the base URI of the service.
7
+ */
8
+ serviceUri: string;
9
+ /**
10
+ * Gets the public AAD AppId for the service.
11
+ *
12
+ * Clients specify this AppId as the audience property when authenticating to the
13
+ * service.
14
+ */
15
+ serviceAppId: string;
16
+ /**
17
+ * Gets the internal AAD AppId for the service.
18
+ *
19
+ * Other internal services specify this AppId as the audience property when
20
+ * authenticating to the tunnel service. Production services must be in the AME tenant
21
+ * to use this appid.
22
+ */
23
+ serviceInternalAppId: string;
24
+ /**
25
+ * Gets the client ID for the service's GitHub app.
26
+ *
27
+ * Clients apps that authenticate tunnel users with GitHub specify this as the client
28
+ * ID when requesting a user token.
29
+ */
30
+ gitHubAppClientId: string;
31
+ }
32
+ /**
33
+ * Global DNS name of the production tunnel service.
34
+ */
35
+ export declare const prodDnsName = "global.rel.tunnels.api.visualstudio.com";
36
+ /**
37
+ * Global DNS name of the pre-production tunnel service.
38
+ */
39
+ export declare const ppeDnsName = "global.rel.tunnels.ppe.api.visualstudio.com";
40
+ /**
41
+ * Global DNS name of the development tunnel service.
42
+ */
43
+ export declare const devDnsName = "global.ci.tunnels.dev.api.visualstudio.com";
44
+ /**
45
+ * First-party app ID: `Visual Studio Tunnel Service`
46
+ *
47
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
48
+ * in the PROD service environment.
49
+ */
50
+ export declare const prodFirstPartyAppId = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2";
51
+ /**
52
+ * First-party app ID: `Visual Studio Tunnel Service - Test`
53
+ *
54
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
55
+ * in the PPE and DEV service environments.
56
+ */
57
+ export declare const nonProdFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18";
58
+ /**
59
+ * Third-party app ID: `tunnels-prod-app-sp`
60
+ *
61
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
62
+ * service environment.
63
+ */
64
+ export declare const prodThirdPartyAppId = "ce65d243-a913-4cae-a7dd-cb52e9f77647";
65
+ /**
66
+ * Third-party app ID: `tunnels-ppe-app-sp`
67
+ *
68
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
69
+ * service environment.
70
+ */
71
+ export declare const ppeThirdPartyAppId = "544167a6-f431-4518-aac6-2fd50071928e";
72
+ /**
73
+ * Third-party app ID: `tunnels-dev-app-sp`
74
+ *
75
+ * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
76
+ * in the DEV service environment.
77
+ */
78
+ export declare const devThirdPartyAppId = "a118c979-0249-44bb-8f95-eb0457127aeb";
79
+ /**
80
+ * GitHub App Client ID for 'Visual Studio Tunnel Service'
81
+ *
82
+ * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
83
+ * environment.
84
+ */
85
+ export declare const prodGitHubAppClientId = "Iv1.e7b89e013f801f03";
86
+ /**
87
+ * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
88
+ *
89
+ * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
90
+ * service environments.
91
+ */
92
+ export declare const nonProdGitHubAppClientId = "Iv1.b231c327f1eaa229";
93
+ import { environment } from './tunnelServicePropertiesStatics';
94
+ export declare const TunnelServiceProperties: {
95
+ production: TunnelServiceProperties;
96
+ staging: TunnelServiceProperties;
97
+ development: TunnelServiceProperties;
98
+ environment: typeof environment;
99
+ };
100
100
  //# sourceMappingURL=tunnelServiceProperties.d.ts.map
@@ -1,78 +1,78 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.nonProdFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
8
- /**
9
- * Global DNS name of the production tunnel service.
10
- */
11
- exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
12
- /**
13
- * Global DNS name of the pre-production tunnel service.
14
- */
15
- exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
16
- /**
17
- * Global DNS name of the development tunnel service.
18
- */
19
- exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
20
- /**
21
- * First-party app ID: `Visual Studio Tunnel Service`
22
- *
23
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
24
- * in the PROD service environment.
25
- */
26
- exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
27
- /**
28
- * First-party app ID: `Visual Studio Tunnel Service - Test`
29
- *
30
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
31
- * in the PPE and DEV service environments.
32
- */
33
- exports.nonProdFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
34
- /**
35
- * Third-party app ID: `tunnels-prod-app-sp`
36
- *
37
- * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
38
- * service environment.
39
- */
40
- exports.prodThirdPartyAppId = 'ce65d243-a913-4cae-a7dd-cb52e9f77647';
41
- /**
42
- * Third-party app ID: `tunnels-ppe-app-sp`
43
- *
44
- * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
45
- * service environment.
46
- */
47
- exports.ppeThirdPartyAppId = '544167a6-f431-4518-aac6-2fd50071928e';
48
- /**
49
- * Third-party app ID: `tunnels-dev-app-sp`
50
- *
51
- * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
52
- * in the DEV service environment.
53
- */
54
- exports.devThirdPartyAppId = 'a118c979-0249-44bb-8f95-eb0457127aeb';
55
- /**
56
- * GitHub App Client ID for 'Visual Studio Tunnel Service'
57
- *
58
- * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
59
- * environment.
60
- */
61
- exports.prodGitHubAppClientId = 'Iv1.e7b89e013f801f03';
62
- /**
63
- * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
64
- *
65
- * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
66
- * service environments.
67
- */
68
- exports.nonProdGitHubAppClientId = 'Iv1.b231c327f1eaa229';
69
- // Import static members from a non-generated file,
70
- // and re-export them as an object with the same name as the interface.
71
- const tunnelServicePropertiesStatics_1 = require("./tunnelServicePropertiesStatics");
72
- exports.TunnelServiceProperties = {
73
- production: tunnelServicePropertiesStatics_1.production,
74
- staging: tunnelServicePropertiesStatics_1.staging,
75
- development: tunnelServicePropertiesStatics_1.development,
76
- environment: tunnelServicePropertiesStatics_1.environment,
77
- };
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.nonProdFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
8
+ /**
9
+ * Global DNS name of the production tunnel service.
10
+ */
11
+ exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
12
+ /**
13
+ * Global DNS name of the pre-production tunnel service.
14
+ */
15
+ exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
16
+ /**
17
+ * Global DNS name of the development tunnel service.
18
+ */
19
+ exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
20
+ /**
21
+ * First-party app ID: `Visual Studio Tunnel Service`
22
+ *
23
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
24
+ * in the PROD service environment.
25
+ */
26
+ exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
27
+ /**
28
+ * First-party app ID: `Visual Studio Tunnel Service - Test`
29
+ *
30
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
31
+ * in the PPE and DEV service environments.
32
+ */
33
+ exports.nonProdFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
34
+ /**
35
+ * Third-party app ID: `tunnels-prod-app-sp`
36
+ *
37
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
38
+ * service environment.
39
+ */
40
+ exports.prodThirdPartyAppId = 'ce65d243-a913-4cae-a7dd-cb52e9f77647';
41
+ /**
42
+ * Third-party app ID: `tunnels-ppe-app-sp`
43
+ *
44
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
45
+ * service environment.
46
+ */
47
+ exports.ppeThirdPartyAppId = '544167a6-f431-4518-aac6-2fd50071928e';
48
+ /**
49
+ * Third-party app ID: `tunnels-dev-app-sp`
50
+ *
51
+ * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
52
+ * in the DEV service environment.
53
+ */
54
+ exports.devThirdPartyAppId = 'a118c979-0249-44bb-8f95-eb0457127aeb';
55
+ /**
56
+ * GitHub App Client ID for 'Visual Studio Tunnel Service'
57
+ *
58
+ * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
59
+ * environment.
60
+ */
61
+ exports.prodGitHubAppClientId = 'Iv1.e7b89e013f801f03';
62
+ /**
63
+ * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
64
+ *
65
+ * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
66
+ * service environments.
67
+ */
68
+ exports.nonProdGitHubAppClientId = 'Iv1.b231c327f1eaa229';
69
+ // Import static members from a non-generated file,
70
+ // and re-export them as an object with the same name as the interface.
71
+ const tunnelServicePropertiesStatics_1 = require("./tunnelServicePropertiesStatics");
72
+ exports.TunnelServiceProperties = {
73
+ production: tunnelServicePropertiesStatics_1.production,
74
+ staging: tunnelServicePropertiesStatics_1.staging,
75
+ development: tunnelServicePropertiesStatics_1.development,
76
+ environment: tunnelServicePropertiesStatics_1.environment,
77
+ };
78
78
  //# sourceMappingURL=tunnelServiceProperties.js.map
@@ -1,18 +1,18 @@
1
- import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
2
- /**
3
- * Gets production service properties.
4
- */
5
- export declare const production: ITunnelServiceProperties;
6
- /**
7
- * Gets properties for the service in the staging environment (PPE).
8
- */
9
- export declare const staging: ITunnelServiceProperties;
10
- /**
11
- * Gets properties for the service in the development environment.
12
- */
13
- export declare const development: ITunnelServiceProperties;
14
- /**
15
- * Gets properties for the service in the specified environment.
16
- */
17
- export declare function environment(environmentName: string): ITunnelServiceProperties;
1
+ import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
2
+ /**
3
+ * Gets production service properties.
4
+ */
5
+ export declare const production: ITunnelServiceProperties;
6
+ /**
7
+ * Gets properties for the service in the staging environment (PPE).
8
+ */
9
+ export declare const staging: ITunnelServiceProperties;
10
+ /**
11
+ * Gets properties for the service in the development environment.
12
+ */
13
+ export declare const development: ITunnelServiceProperties;
14
+ /**
15
+ * Gets properties for the service in the specified environment.
16
+ */
17
+ export declare function environment(environmentName: string): ITunnelServiceProperties;
18
18
  //# sourceMappingURL=tunnelServicePropertiesStatics.d.ts.map
@@ -1,56 +1,56 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.environment = exports.development = exports.staging = exports.production = void 0;
6
- const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
7
- /**
8
- * Gets production service properties.
9
- */
10
- exports.production = {
11
- serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
12
- serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
13
- serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
14
- gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
15
- };
16
- /**
17
- * Gets properties for the service in the staging environment (PPE).
18
- */
19
- exports.staging = {
20
- serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
21
- serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
22
- serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
23
- gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
24
- };
25
- /**
26
- * Gets properties for the service in the development environment.
27
- */
28
- exports.development = {
29
- serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
30
- serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
31
- serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
32
- gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
33
- };
34
- /**
35
- * Gets properties for the service in the specified environment.
36
- */
37
- function environment(environmentName) {
38
- if (!environmentName) {
39
- throw new Error(`Invalid argument: ${environmentName}`);
40
- }
41
- switch (environmentName.toLowerCase()) {
42
- case 'prod':
43
- case 'production':
44
- return exports.production;
45
- case 'ppe':
46
- case 'preprod':
47
- return exports.staging;
48
- case 'dev':
49
- case 'development':
50
- return exports.development;
51
- default:
52
- throw new Error(`Invalid service environment: ${environmentName}`);
53
- }
54
- }
55
- exports.environment = environment;
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.environment = exports.development = exports.staging = exports.production = void 0;
6
+ const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
7
+ /**
8
+ * Gets production service properties.
9
+ */
10
+ exports.production = {
11
+ serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
12
+ serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
13
+ serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
14
+ gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
15
+ };
16
+ /**
17
+ * Gets properties for the service in the staging environment (PPE).
18
+ */
19
+ exports.staging = {
20
+ serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
21
+ serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
22
+ serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
23
+ gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
24
+ };
25
+ /**
26
+ * Gets properties for the service in the development environment.
27
+ */
28
+ exports.development = {
29
+ serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
30
+ serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
31
+ serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
32
+ gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
33
+ };
34
+ /**
35
+ * Gets properties for the service in the specified environment.
36
+ */
37
+ function environment(environmentName) {
38
+ if (!environmentName) {
39
+ throw new Error(`Invalid argument: ${environmentName}`);
40
+ }
41
+ switch (environmentName.toLowerCase()) {
42
+ case 'prod':
43
+ case 'production':
44
+ return exports.production;
45
+ case 'ppe':
46
+ case 'preprod':
47
+ return exports.staging;
48
+ case 'dev':
49
+ case 'development':
50
+ return exports.development;
51
+ default:
52
+ throw new Error(`Invalid service environment: ${environmentName}`);
53
+ }
54
+ }
55
+ exports.environment = environment;
56
56
  //# sourceMappingURL=tunnelServicePropertiesStatics.js.map