@flightloop/sdk-core 1.0.0-qa.0 → 1.0.0-qa.1
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ClientEnvironment } from '../enums/status.enums';
|
|
1
2
|
export interface TokenRequest {
|
|
2
3
|
/** Client ID from the Flyzone developer portal */
|
|
3
4
|
clientId: string;
|
|
@@ -13,6 +14,14 @@ export interface TokenRequest {
|
|
|
13
14
|
* Available scopes: operations:read, operations:create, operations:write, airspace:validate
|
|
14
15
|
*/
|
|
15
16
|
scope?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Target environment for this token.
|
|
19
|
+
* When set to 'mock', the token will have access to mock data for testing.
|
|
20
|
+
* When set to 'qa', the token will access the QA environment with dynamic data.
|
|
21
|
+
* Note: Except for /airspace/validate, all other endpoints return static data in mock mode.
|
|
22
|
+
* @default ClientEnvironment.QA
|
|
23
|
+
*/
|
|
24
|
+
environment?: ClientEnvironment;
|
|
16
25
|
}
|
|
17
26
|
export interface TokenResponse {
|
|
18
27
|
/** JWT access token */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../src/types/auth.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../../src/types/auth.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI1D,MAAM,WAAW,YAAY;IAC3B,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAID,MAAM,WAAW,aAAa;IAC5B,uBAAuB;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAC;CACf;AAID,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,gBAAgB,GAChB,eAAe,GACf,qBAAqB,GACrB,wBAAwB,CAAC;AAE7B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,cAAc,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
package/package.json
CHANGED