@movmo_app/types 1.29.0 → 1.30.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/dist/identity.d.ts +9 -2
- package/dist/identity.js +1 -7
- package/package.json +1 -1
package/dist/identity.d.ts
CHANGED
|
@@ -6,13 +6,19 @@
|
|
|
6
6
|
* check OAuth consent and mint recognition tokens; `airlineName`/
|
|
7
7
|
* `airlineDomain` are display-only copy substitutions on consent-disclosure
|
|
8
8
|
* surfaces (recognition banner, booking-confirmation activation card, the
|
|
9
|
-
* Connected apps "Airlines" row and grant-disclosure modal). `
|
|
10
|
-
*
|
|
9
|
+
* Connected apps "Airlines" row and grant-disclosure modal). `airlineRef`
|
|
10
|
+
* (MOVMO-934) is the airline's Movmo customer code (`customers.company_code`,
|
|
11
|
+
* the checkout `airlineRef`): it is the key that joins a booking to the
|
|
12
|
+
* airline's OAuth client. Absent when the client has no customer of its own.
|
|
13
|
+
* `providerId` names the airline's booking integration (PSS) and is not
|
|
14
|
+
* unique per airline (demo airlines share mock providers; Aero's PSS is
|
|
15
|
+
* Darwin), so never pick a partner by it.
|
|
11
16
|
*/
|
|
12
17
|
export interface IdentityPartner {
|
|
13
18
|
clientId: string;
|
|
14
19
|
airlineName: string;
|
|
15
20
|
airlineDomain: string;
|
|
21
|
+
airlineRef?: string;
|
|
16
22
|
providerId: string;
|
|
17
23
|
supportedScopes: string[];
|
|
18
24
|
}
|
|
@@ -24,6 +30,7 @@ export interface IdentityPartnerWire {
|
|
|
24
30
|
client_id: string;
|
|
25
31
|
airline_name: string;
|
|
26
32
|
airline_domain: string;
|
|
33
|
+
airline_ref?: string;
|
|
27
34
|
provider_id: string;
|
|
28
35
|
supported_scopes?: string[];
|
|
29
36
|
}
|
package/dist/identity.js
CHANGED
|
@@ -11,12 +11,6 @@ function mapIdentityPartners(response) {
|
|
|
11
11
|
var _a;
|
|
12
12
|
return ((_a = response === null || response === void 0 ? void 0 : response.partners) !== null && _a !== void 0 ? _a : []).map((partner) => {
|
|
13
13
|
var _a;
|
|
14
|
-
return ({
|
|
15
|
-
clientId: partner.client_id,
|
|
16
|
-
airlineName: partner.airline_name,
|
|
17
|
-
airlineDomain: partner.airline_domain,
|
|
18
|
-
providerId: partner.provider_id,
|
|
19
|
-
supportedScopes: (_a = partner.supported_scopes) !== null && _a !== void 0 ? _a : [],
|
|
20
|
-
});
|
|
14
|
+
return (Object.assign(Object.assign({ clientId: partner.client_id, airlineName: partner.airline_name, airlineDomain: partner.airline_domain }, (partner.airline_ref ? { airlineRef: partner.airline_ref } : {})), { providerId: partner.provider_id, supportedScopes: (_a = partner.supported_scopes) !== null && _a !== void 0 ? _a : [] }));
|
|
21
15
|
});
|
|
22
16
|
}
|