@missioncontrolio/client 0.0.7 → 0.0.8
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/package.json
CHANGED
|
@@ -86,7 +86,7 @@ export function createClient(requestAdapter: RequestAdapter) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") {
|
|
89
|
-
requestAdapter.baseUrl = "http://api.
|
|
89
|
+
requestAdapter.baseUrl = "http://api.missioncontrol.io/partnerApi/v2";
|
|
90
90
|
}
|
|
91
91
|
const pathParameters: Record<string, unknown> = {
|
|
92
92
|
"baseurl": requestAdapter.baseUrl,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "53F5655E53CAD62B89E7516699DCCE34E889B2C60BA1A43554EA7D9E090815CA0347C17931368F48B98FFC10B821B995F4220C1D8C8986AF4A0756CDDE151D4D",
|
|
3
3
|
"descriptionLocation": "../../../../swagger.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.30.0",
|
|
@@ -14,11 +14,11 @@ const settings: Record<
|
|
|
14
14
|
{ baseUrl: string; scope: string }
|
|
15
15
|
> = {
|
|
16
16
|
[MissionControlEnvironment.Sandbox]: {
|
|
17
|
-
baseUrl: "https://api.sandbox.missioncontrol.io",
|
|
17
|
+
baseUrl: "https://api.sandbox.missioncontrol.io/partnerApi/v2",
|
|
18
18
|
scope: "api://38fbfaea-5648-4b51-ac09-d5d90117beff/.default",
|
|
19
19
|
},
|
|
20
20
|
[MissionControlEnvironment.Production]: {
|
|
21
|
-
baseUrl: "https://api.missioncontrol.io",
|
|
21
|
+
baseUrl: "https://api.missioncontrol.io/partnerApi/v2",
|
|
22
22
|
scope: "api://1b6f40bc-e051-4b7e-987f-47a4a19fa5ef/.default",
|
|
23
23
|
},
|
|
24
24
|
};
|
|
@@ -19,13 +19,13 @@ describe("MissionControlEnvironment", () => {
|
|
|
19
19
|
describe("getBaseUrl", () => {
|
|
20
20
|
it("returns the sandbox base URL for the Sandbox environment", () => {
|
|
21
21
|
expect(getBaseUrl(MissionControlEnvironment.Sandbox)).toBe(
|
|
22
|
-
"https://api.sandbox.missioncontrol.io",
|
|
22
|
+
"https://api.sandbox.missioncontrol.io/partnerApi/v2",
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
it("returns the production base URL for the Production environment", () => {
|
|
27
27
|
expect(getBaseUrl(MissionControlEnvironment.Production)).toBe(
|
|
28
|
-
"https://api.missioncontrol.io",
|
|
28
|
+
"https://api.missioncontrol.io/partnerApi/v2",
|
|
29
29
|
);
|
|
30
30
|
});
|
|
31
31
|
|