Skip to content

Commit

Permalink
#881 move types folder (#1288)
Browse files Browse the repository at this point in the history
* #881 move types folder

* #881 update types in package.json
  • Loading branch information
StephanStrehlerCGI authored Feb 9, 2024
1 parent 226d353 commit 74870b3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 31 deletions.
4 changes: 2 additions & 2 deletions digiwf-apps/packages/components/digiwf-dms-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"files": [
"dist/*",
"src/*",
"src/types/*"
"types/*"
],
"publishConfig": {
"access": "public"
},
"types": "src/types/index.ts",
"types": "types/index.d.ts",
"gitHead": "47fcec12b321f6890de7729c98cd5f0ed7b1189d"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Configuration, MetadataApiFactory, Metadata} from "@muenchen/digiwf-dms-api-internal";
import {Configuration, Metadata, MetadataApiFactory} from "@muenchen/digiwf-dms-api-internal";
import {Objectclass} from "@/middleware/dmsMiddleware";
import {AxiosResponse} from "axios";
import {Objectclass} from "@/types";

/**
* Calls readMetadata on dms api
Expand All @@ -11,6 +11,6 @@ import {Objectclass} from "@/types";
export const getMetadataFromDmsservice = (ojectclass: Objectclass, coo: string, cfg: Configuration): Promise<Metadata> => {
return MetadataApiFactory(cfg)
.readMetadata(ojectclass,coo)
.then((response: AxiosResponse<Metadata>) => Promise.resolve(response.data));
.then((response: AxiosResponse<Metadata, any>) => Promise.resolve<Metadata>(response.data));
}

Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
import {defineComponent, inject, onMounted, ref} from "vue";
import {getMetadata} from "@/middleware/dmsMiddleware";
import {Metadata, Objectclass} from "@/types";
import {getMetadata, Objectclass} from "@/middleware/dmsMiddleware";
import {Metadata} from "@muenchen/digiwf-dms-api-internal";
interface DmsObject {
readonly coo: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export default defineComponent({
props: ['coo','metadata','errormessage','readOnly'],
emits: ['remove-object'],
setup(props, {emit}) {
console.log(props);
const calculateIcon = (type: string) => {
if (type === "PDF-Dokument") {
return "mdi-file-pdf";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { Configuration, FetchUtils, Metadata } from "@muenchen/digiwf-dms-api-internal";
import {Objectclass} from "@/types";
import {
getMetadataFromDmsservice
} from "@/apiClient/dmsApiCalls";

export enum Objectclass {
Sachakte ="Sachakte",
Vorgang = "Vorgang",
Eingang = "Eingang",
Ausgang = "Ausgang",
Intern = "Intern",
Schriftstueck = "Schriftstueck",
}

export const getMetadata = async (ojectclass: Objectclass, coo: string, apiEndpoint: string): Promise<Metadata> => {
const dmsAxiosConfig = axiosConfig(apiEndpoint);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Vue from "vue";

export class DwfDmsInput extends Vue {
}

0 comments on commit 74870b3

Please sign in to comment.