Kaynağa Gözat

Add feature to generate DataServiceClassesList.

FAMBL 2 yıl önce
ebeveyn
işleme
44158bd7d8

+ 172 - 0
DataServiceClassesList.json

@@ -0,0 +1,172 @@
+{
+    "AccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "APAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "ARAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "CMAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=CM"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "DocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "subsystemcode=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "ARInvoiceDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=IV,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "APInvoiceDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "ARReceiptDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "APReceiptDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "OrganisationProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Organisation Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "ProductProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Product Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "ServiceProgramProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Service Program Profile Data",
+            "parameter": ""
+        },
+        "dataName": "ServiceProgramProfileData",
+        "ucpId": "uhh8ig306"
+    },
+    "FisServiceProgramProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Fis Service Program Data",
+            "parameter": "serviceTypeCode=dataservice"
+        },
+        "dataName": "ServiceProgramProfileSecurityAccessRightData",
+        "ucpId": "uhh8ig306"
+    },
+    "RoleTypeProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Role Type Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "LeaveBalanceDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Balance Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "LeaveHistoryDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Application Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    },
+    "LeaveTypeProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Type Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig306"
+    }
+}

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 17520
package-lock.json


+ 4 - 0
package.json

@@ -30,9 +30,13 @@
     "@nestjs/graphql": "^8.0.2",
     "@nestjs/microservices": "^8.0.6",
     "@nestjs/platform-express": "^8.0.0",
+    "@types/graceful-fs": "^4.1.5",
     "apollo-server-express": "^2.25.3",
     "axios": "^0.21.1",
     "axios-observable": "^1.3.0",
+    "class-transformer": "^0.5.1",
+    "class-validator": "^0.13.2",
+    "graceful-fs": "^4.2.10",
     "graphql": "^15.8.0",
     "graphql-ws": "^5.5.5",
     "jsonschema": "^1.4.0",

+ 172 - 0
src/FisAppQueryModule/DataServiceClassesList.json

@@ -0,0 +1,172 @@
+{
+    "AccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "APAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "ARAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "CMAccountProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Account Profile Data",
+            "parameter": "accountType=CM"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "DocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "subsystemcode=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "ARInvoiceDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=IV,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "APInvoiceDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "ARReceiptDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AR"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "APReceiptDocumentDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Document Data",
+            "parameter": "doccategory=RC,subsystemcode=AP"
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "OrganisationProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Organisation Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "ProductProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Product Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "ServiceProgramProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Service Program Profile Data",
+            "parameter": ""
+        },
+        "dataName": "ServiceProgramProfileData",
+        "ucpId": "uhh8ig2621"
+    },
+    "FisServiceProgramProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Fis Service Program Data",
+            "parameter": "serviceTypeCode=dataservice"
+        },
+        "dataName": "ServiceProgramProfileSecurityAccessRightData",
+        "ucpId": "uhh8ig2621"
+    },
+    "RoleTypeProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Role Type Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "LeaveBalanceDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Balance Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "LeaveHistoryDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Application Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    },
+    "LeaveTypeProfileDataService": {
+        "http": {},
+        "CurrentState": "Ready",
+        "currentData": {
+            "serviceId": "Leave Type Profile Data",
+            "parameter": ""
+        },
+        "dataName": "DataService",
+        "ucpId": "uhh8ig2621"
+    }
+}

+ 6 - 2
src/FisAppQueryModule/Manager.dataservice.ts

@@ -23,8 +23,8 @@ import { OrganisationProfileDataService } from './DS/OrganisationProfile.dataser
 import { ProductProfileDataService } from './DS/ProductProfile.dataservice';
 import { RoleTypeProfileDataService } from './DS/RoleTypeProfileDataService';
 import { ServiceProgramProfileDataService } from './DS/ServiceProgramProfile.dataservice';
-import { FisCreateMessageUtility } from './message/fisappmessagejsutility/interface/export';
-
+import { FisCreateMessageUtility } from './message/fisappmessagejsutility/interface/export'; 
+import * as fs from 'graceful-fs';
 
 @Injectable()
 export class DataServiceManager {
@@ -71,6 +71,10 @@ export class DataServiceManager {
                     DataServiceManager.classes['LeaveHistoryDataService'] = new LeaveHistoryDataService(this.http, DataServiceManager.ucpId);
                     DataServiceManager.classes['LeaveTypeProfileDataService'] = new LeaveTypeProfileDataService(this.http, DataServiceManager.ucpId);
 
+                    // Keep a copy of the class list
+                    let dataServiceClassesList = JSON.stringify(DataServiceManager.classes,null,4);
+                    fs.writeFileSync('./src/FisAppQueryModule/DataServiceClassesList.json',dataServiceClassesList); // To avoid confusion in src and dist
+                    fs.writeFileSync('./dist/FisAppQueryModule/DataServiceClassesList.json',dataServiceClassesList); // To avoid confusion in src and dist
                 },
 
                 complete: () => {

+ 1 - 1
src/FisAppQueryModule/message/fisappmessagejsutility

@@ -1 +1 @@
-Subproject commit 2fd2fd27913104ed447674eea500a186fac5916f
+Subproject commit c766143b1f3efc9e4c85ba70b3ed9ef8115e49ba

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor