@@ -8,9 +8,9 @@ import * as qs from 'qs';
88import * as API from './resources/index' ;
99
1010const environments = {
11- production : 'https://api.intercom.io' ,
12- environment_1 : 'https://api.eu.intercom.io' ,
13- environment_2 : 'https://api.au.intercom.io' ,
11+ us : 'https://api.intercom.io' ,
12+ eu : 'https://api.eu.intercom.io' ,
13+ au : 'https://api.au.intercom.io' ,
1414} ;
1515type Environment = keyof typeof environments ;
1616
@@ -24,9 +24,9 @@ export interface ClientOptions {
2424 * Specifies the environment to use for the API.
2525 *
2626 * Each environment maps to a different base URL:
27- * - `production ` corresponds to `https://api.intercom.io`
28- * - `environment_1 ` corresponds to `https://api.eu.intercom.io`
29- * - `environment_2 ` corresponds to `https://api.au.intercom.io`
27+ * - `us ` corresponds to `https://api.intercom.io`
28+ * - `eu ` corresponds to `https://api.eu.intercom.io`
29+ * - `au ` corresponds to `https://api.au.intercom.io`
3030 */
3131 environment ?: Environment ;
3232
@@ -97,7 +97,7 @@ export class Intercom extends Core.APIClient {
9797 * API Client for interfacing with the Intercom API.
9898 *
9999 * @param {string | undefined } [opts.accessToken=process.env['INTERCOM_ACCESS_TOKEN'] ?? undefined]
100- * @param {Environment } [opts.environment=production ] - Specifies the environment URL to use for the API.
100+ * @param {Environment } [opts.environment=us ] - Specifies the environment URL to use for the API.
101101 * @param {string } [opts.baseURL=process.env['INTERCOM_BASE_URL'] ?? https://api.intercom.io] - Override the default base URL for the API.
102102 * @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
103103 * @param {number } [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
@@ -121,7 +121,7 @@ export class Intercom extends Core.APIClient {
121121 accessToken,
122122 ...opts ,
123123 baseURL,
124- environment : opts . environment ?? 'production ' ,
124+ environment : opts . environment ?? 'us ' ,
125125 } ;
126126
127127 if ( baseURL && opts . environment ) {
@@ -131,7 +131,7 @@ export class Intercom extends Core.APIClient {
131131 }
132132
133133 super ( {
134- baseURL : options . baseURL || environments [ options . environment || 'production ' ] ,
134+ baseURL : options . baseURL || environments [ options . environment || 'us ' ] ,
135135 timeout : options . timeout ?? 60000 /* 1 minute */ ,
136136 httpAgent : options . httpAgent ,
137137 maxRetries : options . maxRetries ,
0 commit comments