Skip to content

Commit 3160093

Browse files
authored
Upgraded to kiota 18 in the typescript sdk (#5150)
1 parent baf26e6 commit 3160093

File tree

18 files changed

+95
-95
lines changed

18 files changed

+95
-95
lines changed

typescript-sdk/package-lock.json

+24-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript-sdk/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010
],
1111
"scripts": {
1212
"clean": "rimraf dist lib/generated-client .kiota",
13-
"kiota-info": "cross-env KIOTA_VERSION=v1.17.0 kiota info -l typescript",
14-
"generate-registry-sdk": "cross-env KIOTA_VERSION=v1.17.0 kiota generate --serializer none --deserializer none -l typescript -d ../common/src/main/resources/META-INF/openapi.json -c ApicurioRegistryClient -o ./lib/generated-client",
13+
"kiota-info": "cross-env KIOTA_VERSION=v1.18.0 kiota info -l typescript",
14+
"generate-registry-sdk": "cross-env KIOTA_VERSION=v1.18.0 kiota generate --serializer none --deserializer none -l typescript -d ../common/src/main/resources/META-INF/openapi.json -c ApicurioRegistryClient -o ./lib/generated-client",
1515
"dev": "vite",
1616
"build": "tsc --p ./tsconfig-build.json && vite build",
1717
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
1818
},
1919
"peerDependencies": {
20-
"@microsoft/kiota-abstractions": "1.0.0-preview.59",
21-
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.58",
22-
"@microsoft/kiota-serialization-form": "1.0.0-preview.48",
23-
"@microsoft/kiota-serialization-json": "1.0.0-preview.59",
24-
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.37",
25-
"@microsoft/kiota-serialization-text": "1.0.0-preview.56"
20+
"@microsoft/kiota-abstractions": "1.0.0-preview.63",
21+
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.62",
22+
"@microsoft/kiota-serialization-form": "1.0.0-preview.51",
23+
"@microsoft/kiota-serialization-json": "1.0.0-preview.63",
24+
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.41",
25+
"@microsoft/kiota-serialization-text": "1.0.0-preview.60"
2626
},
2727
"devDependencies": {
2828
"@apicurio/eslint-config": "0.2.0",

ui/package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/ui-app/package-lock.json

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/ui-app/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
"vite-tsconfig-paths": "5.0.1"
3232
},
3333
"dependencies": {
34-
"@apicurio/common-ui-components": "2.0.2",
34+
"@apicurio/common-ui-components": "2.0.3",
3535
"@apicurio/apicurio-registry-sdk": "file:../../typescript-sdk",
3636
"@apicurio/data-models": "1.1.27",
37-
"@microsoft/kiota-abstractions": "1.0.0-preview.59",
38-
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.58",
39-
"@microsoft/kiota-serialization-form": "1.0.0-preview.48",
40-
"@microsoft/kiota-serialization-json": "1.0.0-preview.59",
41-
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.37",
42-
"@microsoft/kiota-serialization-text": "1.0.0-preview.56",
37+
"@microsoft/kiota-abstractions": "1.0.0-preview.63",
38+
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.62",
39+
"@microsoft/kiota-serialization-form": "1.0.0-preview.51",
40+
"@microsoft/kiota-serialization-json": "1.0.0-preview.63",
41+
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.41",
42+
"@microsoft/kiota-serialization-text": "1.0.0-preview.60",
4343
"@patternfly/patternfly": "5.4.0",
4444
"@patternfly/react-code-editor": "5.4.0",
4545
"@patternfly/react-core": "5.4.0",

ui/ui-app/src/app/components/auth/IfAuth.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type IfAuthProps = {
1212
isDeveloper?: boolean;
1313
isOwner?: boolean;
1414
isAdminOrOwner?: boolean;
15-
owner?: string;
15+
owner?: string | null;
1616
children?: React.ReactNode;
1717
};
1818

ui/ui-app/src/app/components/common/ArtifactDescription.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import "./ArtifactDescription.css";
66
* Properties
77
*/
88
export type ArtifactDescriptionProps = {
9-
description: string | undefined;
9+
description: string | undefined | null;
1010
truncate?: boolean;
1111
className?: string;
1212
style?: CSSProperties | undefined;

ui/ui-app/src/app/components/modals/CreateArtifactModal.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export type Validities = {
4242
versionDescription?: ValidType;
4343
};
4444

45-
const checkIdValid = (id: string | undefined): boolean => {
45+
const checkIdValid = (id: string | undefined | null): boolean => {
4646
if (!id) {
4747
//id is optional, server can generate it
4848
return true;
@@ -60,7 +60,7 @@ const checkIdValid = (id: string | undefined): boolean => {
6060
}
6161
};
6262

63-
const validateField = (value: string | undefined): ValidType => {
63+
const validateField = (value: string | undefined | null): ValidType => {
6464
const isValid: boolean = checkIdValid(value);
6565
if (!isValid) {
6666
return "error";

ui/ui-app/src/app/pages/artifact/components/tabs/BranchesTabToolbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const BranchesTabToolbar: FunctionComponent<BranchesToolbarProps> = (prop
5353
<Pagination
5454
variant="top"
5555
dropDirection="down"
56-
itemCount={ props.results.count }
56+
itemCount={ props.results.count as number }
5757
perPage={ props.paging.pageSize }
5858
page={ props.paging.page }
5959
onSetPage={ onSetPage }

ui/ui-app/src/app/pages/artifact/components/tabs/VersionsTabToolbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const VersionsTabToolbar: FunctionComponent<VersionsToolbarProps> = (prop
5353
<Pagination
5454
variant="top"
5555
dropDirection="down"
56-
itemCount={ props.results.count }
56+
itemCount={ props.results.count as number }
5757
perPage={ props.paging.pageSize }
5858
page={ props.paging.page }
5959
onSetPage={ onSetPage }

ui/ui-app/src/app/pages/branch/components/tabs/BranchVersionsTabToolbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const BranchVersionsTabToolbar: FunctionComponent<BranchVersionsToolbarPr
4343
<Pagination
4444
variant="top"
4545
dropDirection="down"
46-
itemCount={ props.results.count }
46+
itemCount={ props.results.count as number }
4747
perPage={ props.paging.pageSize }
4848
page={ props.paging.page }
4949
onSetPage={ onSetPage }

0 commit comments

Comments
 (0)