@missioncontrolio/client 0.0.7 → 0.0.9
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 +7 -7
- package/src/client/generated/client.ts +1 -1
- package/src/client/generated/kiota-lock.json +2 -2
- package/src/client/generated/models/index.ts +5 -5
- package/src/client/missionControlEnvironment.ts +2 -2
- package/tests/missionControlEnvironment.test.ts +2 -2
- package/tsconfig.json +1 -1
package/package.json
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"test:integration": "vitest run --config vitest.integration.config.ts"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/node": "^
|
|
18
|
-
"typescript": "^
|
|
19
|
-
"vitest": "^4.1.
|
|
17
|
+
"@types/node": "^26.0.1",
|
|
18
|
+
"typescript": "^6.0.3",
|
|
19
|
+
"vitest": "^4.1.9"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@azure/identity": "^4.13.
|
|
23
|
-
"@microsoft/kiota-authentication-azure": "^1.0.0-preview.
|
|
24
|
-
"@microsoft/kiota-bundle": "^1.0.0-preview.
|
|
22
|
+
"@azure/identity": "^4.13.1",
|
|
23
|
+
"@microsoft/kiota-authentication-azure": "^1.0.0-preview.103",
|
|
24
|
+
"@microsoft/kiota-bundle": "^1.0.0-preview.103"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.0.
|
|
26
|
+
"version": "0.0.9"
|
|
27
27
|
}
|
|
@@ -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 = "
|
|
89
|
+
requestAdapter.baseUrl = "https://api.missioncontrol.io/partnerApi/v2";
|
|
90
90
|
}
|
|
91
91
|
const pathParameters: Record<string, unknown> = {
|
|
92
92
|
"baseurl": requestAdapter.baseUrl,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "BAA14736D92DDDCC5514AEDDA4CBB363BD631F11F8F866137B467426B28CA83515C4F363D45106D48863C937E2D12297A0B4BB74245583675637DE9C235216EB",
|
|
3
3
|
"descriptionLocation": "../../../../swagger.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
|
-
"kiotaVersion": "1.
|
|
5
|
+
"kiotaVersion": "1.32.3",
|
|
6
6
|
"clientClassName": "client",
|
|
7
7
|
"typeAccessModifier": "Public",
|
|
8
8
|
"clientNamespaceName": "missioncontrol.client",
|
|
@@ -482,7 +482,7 @@ export function deserializeIntoClaimReservationRequest(claimReservationRequest:
|
|
|
482
482
|
"invoiceDate": n => { claimReservationRequest.invoiceDate = n.getDateValue(); },
|
|
483
483
|
"partnerReference": n => { claimReservationRequest.partnerReference = n.getStringValue(); },
|
|
484
484
|
"requestId": n => { claimReservationRequest.requestId = n.getGuidValue(); },
|
|
485
|
-
"salesChannel": n => { claimReservationRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>(); },
|
|
485
|
+
"salesChannel": n => { claimReservationRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>("string"); },
|
|
486
486
|
"salesPrice": n => { claimReservationRequest.salesPrice = n.getObjectValue<SalesPriceRequest>(createSalesPriceRequestFromDiscriminatorValue); },
|
|
487
487
|
}
|
|
488
488
|
}
|
|
@@ -514,7 +514,7 @@ export function deserializeIntoCreateOrderRequest(createOrderRequest: Partial<Cr
|
|
|
514
514
|
"productId": n => { createOrderRequest.productId = n.getGuidValue(); },
|
|
515
515
|
"regionId": n => { createOrderRequest.regionId = n.getGuidValue(); },
|
|
516
516
|
"requestId": n => { createOrderRequest.requestId = n.getGuidValue(); },
|
|
517
|
-
"salesChannel": n => { createOrderRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>(); },
|
|
517
|
+
"salesChannel": n => { createOrderRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>("string"); },
|
|
518
518
|
"salesPrice": n => { createOrderRequest.salesPrice = n.getObjectValue<SalesPriceRequest>(createSalesPriceRequestFromDiscriminatorValue); },
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -714,7 +714,7 @@ export function deserializeIntoProblemDetails(problemDetails: Partial<ProblemDet
|
|
|
714
714
|
// @ts-ignore
|
|
715
715
|
export function deserializeIntoProduct(product: Partial<Product> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
716
716
|
return {
|
|
717
|
-
"allowedRegions": n => { product.allowedRegions = n.getCollectionOfPrimitiveValues<Guid>(); },
|
|
717
|
+
"allowedRegions": n => { product.allowedRegions = n.getCollectionOfPrimitiveValues<Guid>("string"); },
|
|
718
718
|
"canBeReserved": n => { product.canBeReserved = n.getBooleanValue(); },
|
|
719
719
|
"id": n => { product.id = n.getGuidValue(); },
|
|
720
720
|
"msrp": n => { product.msrp = n.getObjectValue<Money>(createMoneyFromDiscriminatorValue); },
|
|
@@ -787,7 +787,7 @@ export function deserializeIntoRedemptionInstruction(redemptionInstruction: Part
|
|
|
787
787
|
export function deserializeIntoRegion(region: Partial<Region> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
788
788
|
return {
|
|
789
789
|
"archiveInfo": n => { region.archiveInfo = n.getObjectValue<ArchivingInfo>(createArchivingInfoFromDiscriminatorValue); },
|
|
790
|
-
"countries": n => { region.countries = n.getCollectionOfPrimitiveValues<string>(); },
|
|
790
|
+
"countries": n => { region.countries = n.getCollectionOfPrimitiveValues<string>("string"); },
|
|
791
791
|
"id": n => { region.id = n.getGuidValue(); },
|
|
792
792
|
"name": n => { region.name = n.getStringValue(); },
|
|
793
793
|
}
|
|
@@ -819,7 +819,7 @@ export function deserializeIntoReportOrderRequest(reportOrderRequest: Partial<Re
|
|
|
819
819
|
"productId": n => { reportOrderRequest.productId = n.getGuidValue(); },
|
|
820
820
|
"regionId": n => { reportOrderRequest.regionId = n.getGuidValue(); },
|
|
821
821
|
"requestId": n => { reportOrderRequest.requestId = n.getGuidValue(); },
|
|
822
|
-
"salesChannel": n => { reportOrderRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>(); },
|
|
822
|
+
"salesChannel": n => { reportOrderRequest.salesChannel = n.getCollectionOfPrimitiveValues<Guid>("string"); },
|
|
823
823
|
"salesPrice": n => { reportOrderRequest.salesPrice = n.getObjectValue<SalesPriceRequest>(createSalesPriceRequestFromDiscriminatorValue); },
|
|
824
824
|
}
|
|
825
825
|
}
|
|
@@ -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
|
|