@transcend-io/cli 4.71.0 → 4.72.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/README.md CHANGED
@@ -171,7 +171,7 @@ tr-pull --auth=$TRANSCEND_API_KEY
171
171
 
172
172
  Note:
173
173
 
174
- _The cli-commands default to using the EU Transcend backend. To use these commands with the US backend, you will need to use the flag --transcendUrl=https://api.us.transcend.io._
174
+ _The cli-commands default to using the EU Transcend backend. To use these commands with the US backend, you will need to use the flag --transcendUrl=https://api.us.transcend.io. You can also set the environment variable `TRANSCEND_API_URL=https://api.us.transcend.io`_
175
175
 
176
176
  ## transcend.yml
177
177
 
@@ -1,4 +1,8 @@
1
1
  export declare const ADMIN_DASH = "https://app.transcend.io";
2
2
  export declare const ADMIN_DASH_INTEGRATIONS: string;
3
- export declare const DEFAULT_TRANSCEND_API = "https://api.transcend.io";
3
+ /**
4
+ * Override default transcend API url using
5
+ * TRANSCEND_API_URL=https://api.us.transcend.io tr-pull ...
6
+ */
7
+ export declare const DEFAULT_TRANSCEND_API: string;
4
8
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,eAAO,MAAM,uBAAuB,QAA8C,CAAC;AAEnF,eAAO,MAAM,qBAAqB,6BAA6B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,eAAO,MAAM,uBAAuB,QAA8C,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAC2B,CAAC"}
@@ -3,5 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_TRANSCEND_API = exports.ADMIN_DASH_INTEGRATIONS = exports.ADMIN_DASH = void 0;
4
4
  exports.ADMIN_DASH = 'https://app.transcend.io';
5
5
  exports.ADMIN_DASH_INTEGRATIONS = `${exports.ADMIN_DASH}/infrastructure/integrations`;
6
- exports.DEFAULT_TRANSCEND_API = 'https://api.transcend.io';
6
+ /**
7
+ * Override default transcend API url using
8
+ * TRANSCEND_API_URL=https://api.us.transcend.io tr-pull ...
9
+ */
10
+ exports.DEFAULT_TRANSCEND_API = process.env.TRANSCEND_API_URL || 'https://api.transcend.io';
7
11
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,0BAA0B,CAAC;AAExC,QAAA,uBAAuB,GAAG,GAAG,kBAAU,8BAA8B,CAAC;AAEtE,QAAA,qBAAqB,GAAG,0BAA0B,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,0BAA0B,CAAC;AAExC,QAAA,uBAAuB,GAAG,GAAG,kBAAU,8BAA8B,CAAC;AAEnF;;;GAGG;AACU,QAAA,qBAAqB,GAChC,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,0BAA0B,CAAC"}