瀏覽代碼

更新rpc

jeremy 8 月之前
父節點
當前提交
abefa32490

+ 1 - 1
src/jsonrpc/services/authentication.m.js

@@ -8287,7 +8287,7 @@ var CustomerRpcCode;
     CustomerRpcCode[CustomerRpcCode["JingQiApiFailed"] = 8003] = "JingQiApiFailed";
     CustomerRpcCode[CustomerRpcCode["JingQiNonArea"] = 8004] = "JingQiNonArea";
     CustomerRpcCode[CustomerRpcCode["JingQiExamedInYear"] = 8005] = "JingQiExamedInYear";
-    CustomerRpcCode[CustomerRpcCode["placeHolder_8006"] = 8006] = "placeHolder_8006";
+    CustomerRpcCode[CustomerRpcCode["JingQiException"] = 8006] = "JingQiException";
     CustomerRpcCode[CustomerRpcCode["placeHolder_8007"] = 8007] = "placeHolder_8007";
     CustomerRpcCode[CustomerRpcCode["placeHolder_8008"] = 8008] = "placeHolder_8008";
     CustomerRpcCode[CustomerRpcCode["placeHolder_8009"] = 8009] = "placeHolder_8009";

+ 1 - 1
src/jsonrpc/services/authentication.m.ts

@@ -8382,7 +8382,7 @@ export enum CustomerRpcCode {
 	JingQiApiFailed,
 	JingQiNonArea,
 	JingQiExamedInYear,
-	placeHolder_8006,
+	JingQiException,
 	placeHolder_8007,
 	placeHolder_8008,
 	placeHolder_8009,

+ 26 - 0
src/jsonrpc/services/facturyPostHistory.js

@@ -128,6 +128,32 @@ var VitalFacturyPostHistoryService = /** @class */ (function (_super) {
             });
         });
     };
+    VitalFacturyPostHistoryService.prototype.createJingQiExamPostHistoryAsync = function (request) {
+        return __awaiter(this, void 0, void 0, function () {
+            var rpcRst;
+            return __generator(this, function (_a) {
+                switch (_a.label) {
+                    case 0: return [4 /*yield*/, this.call("CreateJingQiExamPostHistoryAsync", request)];
+                    case 1:
+                        rpcRst = _a.sent();
+                        return [2 /*return*/, rpcRst];
+                }
+            });
+        });
+    };
+    VitalFacturyPostHistoryService.prototype.createJingQiReportPostHistoryAsync = function (request) {
+        return __awaiter(this, void 0, void 0, function () {
+            var rpcRst;
+            return __generator(this, function (_a) {
+                switch (_a.label) {
+                    case 0: return [4 /*yield*/, this.call("CreateJingQiReportPostHistoryAsync", request)];
+                    case 1:
+                        rpcRst = _a.sent();
+                        return [2 /*return*/, rpcRst];
+                }
+            });
+        });
+    };
     return VitalFacturyPostHistoryService;
 }(client_base_1.default));
 exports.VitalFacturyPostHistoryService = VitalFacturyPostHistoryService;

+ 63 - 1
src/jsonrpc/services/facturyPostHistory.m.js

@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
     };
 })();
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.ResendFacturyPostHistoryRequest = exports.RemoveFacturyPostHistoryRequest = exports.GetFacturyPostHistoryByPageRequest = exports.GetFacturyPostHistoryRequest = exports.FacturyPostHistoryDTO = exports.CreateFacturyPostHistoryRequest = void 0;
+exports.CreateJingQiReportPostHistoryRequest = exports.CreateJingQiExamPostHistoryRequest = exports.ResendFacturyPostHistoryRequest = exports.RemoveFacturyPostHistoryRequest = exports.GetFacturyPostHistoryByPageRequest = exports.GetFacturyPostHistoryRequest = exports.FacturyPostHistoryDTO = exports.CreateFacturyPostHistoryRequest = void 0;
 var authentication_m_1 = require("./authentication.m");
 var healthExamBooking_m_1 = require("./healthExamBooking.m");
 var JsonRpcUtils_1 = require("../JsonRpcUtils");
@@ -266,3 +266,65 @@ var ResendFacturyPostHistoryRequest = /** @class */ (function (_super) {
     return ResendFacturyPostHistoryRequest;
 }(authentication_m_1.TokenRequest));
 exports.ResendFacturyPostHistoryRequest = ResendFacturyPostHistoryRequest;
+var CreateJingQiExamPostHistoryRequest = /** @class */ (function (_super) {
+    __extends(CreateJingQiExamPostHistoryRequest, _super);
+    function CreateJingQiExamPostHistoryRequest(_a) {
+        var physicalExamNumber = _a.physicalExamNumber, examKey = _a.examKey, examData = _a.examData, examTime = _a.examTime, token = _a.token;
+        var _this = _super.call(this, {
+            token: token,
+        }) || this;
+        _this.physicalExamNumber = physicalExamNumber;
+        _this.examKey = examKey;
+        _this.examData = examData;
+        _this.examTime = examTime;
+        _this.token = token;
+        return _this;
+    }
+    CreateJingQiExamPostHistoryRequest.fromJson = function (map) {
+        return new CreateJingQiExamPostHistoryRequest({ physicalExamNumber: map['PhysicalExamNumber'],
+            examKey: map['ExamKey'],
+            examData: map['ExamData'] ? Object.assign({}, map['ExamData']) : undefined,
+            examTime: map['ExamTime'] !== null ? new Date(map['ExamTime']) : null,
+            token: map['Token'],
+        });
+    };
+    CreateJingQiExamPostHistoryRequest.prototype.toJson = function () {
+        var map = _super.prototype.toJson.call(this);
+        if (this.physicalExamNumber != null)
+            map['PhysicalExamNumber'] = this.physicalExamNumber;
+        if (this.examKey != null)
+            map['ExamKey'] = this.examKey;
+        if (this.examData != null)
+            map['ExamData'] = this.examData;
+        if (this.examTime != null)
+            map['ExamTime'] = JsonRpcUtils_1.default.dateFormat(this.examTime);
+        return map;
+    };
+    return CreateJingQiExamPostHistoryRequest;
+}(authentication_m_1.TokenRequest));
+exports.CreateJingQiExamPostHistoryRequest = CreateJingQiExamPostHistoryRequest;
+var CreateJingQiReportPostHistoryRequest = /** @class */ (function (_super) {
+    __extends(CreateJingQiReportPostHistoryRequest, _super);
+    function CreateJingQiReportPostHistoryRequest(_a) {
+        var reportCode = _a.reportCode, token = _a.token;
+        var _this = _super.call(this, {
+            token: token,
+        }) || this;
+        _this.reportCode = reportCode;
+        _this.token = token;
+        return _this;
+    }
+    CreateJingQiReportPostHistoryRequest.fromJson = function (map) {
+        return new CreateJingQiReportPostHistoryRequest({ reportCode: map['ReportCode'],
+            token: map['Token'],
+        });
+    };
+    CreateJingQiReportPostHistoryRequest.prototype.toJson = function () {
+        var map = _super.prototype.toJson.call(this);
+        if (this.reportCode != null)
+            map['ReportCode'] = this.reportCode;
+        return map;
+    };
+    return CreateJingQiReportPostHistoryRequest;
+}(authentication_m_1.TokenRequest));
+exports.CreateJingQiReportPostHistoryRequest = CreateJingQiReportPostHistoryRequest;

+ 76 - 0
src/jsonrpc/services/facturyPostHistory.m.ts

@@ -323,4 +323,80 @@ export class ResendFacturyPostHistoryRequest extends TokenRequest {
 	}
 }
 
+export class CreateJingQiExamPostHistoryRequest extends TokenRequest {
+	physicalExamNumber: String;
+	examKey: String;
+	examData: Record<string,string>;
+	examTime: Date|null;
+
+	constructor({
+		physicalExamNumber,
+		examKey,
+		examData,
+		examTime,
+		token,
+	}) {
+		super({
+		token,
+		});
+		this.physicalExamNumber = physicalExamNumber;
+		this.examKey = examKey;
+		this.examData = examData;
+		this.examTime = examTime;
+		this.token = token;
+	}
+
+	static fromJson(map: { [key: string]: any }): CreateJingQiExamPostHistoryRequest {
+		return new CreateJingQiExamPostHistoryRequest( 
+{ 			physicalExamNumber: map['PhysicalExamNumber'],
+			examKey: map['ExamKey'],
+			examData: map['ExamData']? Object.assign({}, map['ExamData']) : undefined,
+			examTime: map['ExamTime'] !== null ? new Date(map['ExamTime']) : null,
+			token: map['Token'],
+}		);
+	}
+
+	toJson(): Record<string, unknown> {
+		const map: Record<string, unknown> = super.toJson();
+		if(this.physicalExamNumber != null)
+			map['PhysicalExamNumber'] = this.physicalExamNumber;
+		if(this.examKey != null)
+			map['ExamKey'] = this.examKey;
+		if(this.examData != null)
+			map['ExamData'] = this.examData;
+		if(this.examTime != null)
+			map['ExamTime'] = JsonRpcUtils.dateFormat(this.examTime!);
+		return map;
+	}
+}
+
+export class CreateJingQiReportPostHistoryRequest extends TokenRequest {
+	reportCode: String;
+
+	constructor({
+		reportCode,
+		token,
+	}) {
+		super({
+		token,
+		});
+		this.reportCode = reportCode;
+		this.token = token;
+	}
+
+	static fromJson(map: { [key: string]: any }): CreateJingQiReportPostHistoryRequest {
+		return new CreateJingQiReportPostHistoryRequest( 
+{ 			reportCode: map['ReportCode'],
+			token: map['Token'],
+}		);
+	}
+
+	toJson(): Record<string, unknown> {
+		const map: Record<string, unknown> = super.toJson();
+		if(this.reportCode != null)
+			map['ReportCode'] = this.reportCode;
+		return map;
+	}
+}
+
 

+ 11 - 1
src/jsonrpc/services/facturyPostHistory.ts

@@ -1,5 +1,5 @@
 import JsonRpcClientBase from '../client_base'
-import {CreateFacturyPostHistoryRequest,FacturyPostHistoryDTO,GetFacturyPostHistoryRequest,GetFacturyPostHistoryByPageRequest,RemoveFacturyPostHistoryRequest,ResendFacturyPostHistoryRequest,} from  './facturyPostHistory.m'
+import {CreateFacturyPostHistoryRequest,FacturyPostHistoryDTO,GetFacturyPostHistoryRequest,GetFacturyPostHistoryByPageRequest,RemoveFacturyPostHistoryRequest,ResendFacturyPostHistoryRequest,CreateJingQiExamPostHistoryRequest,CreateJingQiReportPostHistoryRequest,} from  './facturyPostHistory.m'
 import { GetUserInfoByVitalOpenIdRequest,PatientGenderEnum,PersonInfoBaseDTO,FaceScanErrorTypeEnum,PersonInfoByFaceImageDTO,GetPersonInfoByFaceImageRequest,RegisterConfirmRequest,PersonRegisterDTO,PersonInfoFullDTO,PageCollection,GetPersonPageRequest,GetPersonRequest,DeletePersonRequest,EnterPersonFaceQueryResult,EnterPersonFaceQueryRequest,EnterPersonFaceRequest, } from './register.m';
 
 
@@ -47,5 +47,15 @@ export class VitalFacturyPostHistoryService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	async createJingQiExamPostHistoryAsync(request: CreateJingQiExamPostHistoryRequest): Promise<boolean> {
+		var rpcRst = await this.call("CreateJingQiExamPostHistoryAsync", request);
+		return rpcRst;
+	}
+
+	async createJingQiReportPostHistoryAsync(request: CreateJingQiReportPostHistoryRequest): Promise<boolean> {
+		var rpcRst = await this.call("CreateJingQiReportPostHistoryAsync", request);
+		return rpcRst;
+	}
+
 }
 

+ 14 - 0
src/jsonrpc/services/facturyUser.js

@@ -143,6 +143,20 @@ var VitalFacturyUserService = /** @class */ (function (_super) {
             });
         });
     };
+    VitalFacturyUserService.prototype.getFacturyTreeAsync = function (request) {
+        return __awaiter(this, void 0, void 0, function () {
+            var rpcRst, result;
+            return __generator(this, function (_a) {
+                switch (_a.label) {
+                    case 0: return [4 /*yield*/, this.call("GetFacturyTreeAsync", request)];
+                    case 1:
+                        rpcRst = _a.sent();
+                        result = rpcRst.map(function (e) { return facturyUser_m_1.RegionDataItemDTO.fromJson(e); });
+                        return [2 /*return*/, result];
+                }
+            });
+        });
+    };
     VitalFacturyUserService.prototype.removeFacturyUserAsync = function (request) {
         return __awaiter(this, void 0, void 0, function () {
             var rpcRst;

+ 50 - 1
src/jsonrpc/services/facturyUser.m.js

@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
     };
 })();
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.FacturyExamDeleteRequest = exports.FacturyExamDeleteResult = exports.FacturyExamRegisterRequest = exports.FacturyExamRegisterResult = exports.RemoveFacturyUserRequest = exports.GetFacturyUserInfosRequest = exports.GetFacturyUserByPageRequest = exports.GetFacturyOrgByPageRequest = exports.GetFacturyUserRequest = exports.FacturyUserDTO = exports.UpdateFacturyUserRequest = exports.CreateFacturyUserRequest = void 0;
+exports.FacturyExamDeleteRequest = exports.FacturyExamDeleteResult = exports.FacturyExamRegisterRequest = exports.FacturyExamRegisterResult = exports.RemoveFacturyUserRequest = exports.GetFacturyTreeRequest = exports.RegionDataItemDTO = exports.GetFacturyUserInfosRequest = exports.GetFacturyUserByPageRequest = exports.GetFacturyOrgByPageRequest = exports.GetFacturyUserRequest = exports.FacturyUserDTO = exports.UpdateFacturyUserRequest = exports.CreateFacturyUserRequest = void 0;
 var authentication_m_1 = require("./authentication.m");
 var healthExamBooking_m_1 = require("./healthExamBooking.m");
 var JsonRpcUtils_1 = require("../JsonRpcUtils");
@@ -297,6 +297,55 @@ var GetFacturyUserInfosRequest = /** @class */ (function (_super) {
     return GetFacturyUserInfosRequest;
 }(authentication_m_1.TokenRequest));
 exports.GetFacturyUserInfosRequest = GetFacturyUserInfosRequest;
+var RegionDataItemDTO = /** @class */ (function (_super) {
+    __extends(RegionDataItemDTO, _super);
+    function RegionDataItemDTO(_a) {
+        var key = _a.key, value = _a.value, children = _a.children;
+        var _this = _super.call(this, {
+            key: key,
+            value: value,
+        }) || this;
+        _this.key = key;
+        _this.value = value;
+        _this.children = children;
+        return _this;
+    }
+    RegionDataItemDTO.fromJson = function (map) {
+        return new RegionDataItemDTO({ key: map['Key'],
+            value: map['Value'],
+            children: map['Children'] && map['Children'].length > 0 ? map['Children'].map(function (e) { return authentication_m_1.DataItemDTO.fromJson(e); }) : null,
+        });
+    };
+    RegionDataItemDTO.prototype.toJson = function () {
+        var map = _super.prototype.toJson.call(this);
+        if (this.children != null)
+            map['Children'] = this.children;
+        return map;
+    };
+    return RegionDataItemDTO;
+}(authentication_m_1.DataItemDTO));
+exports.RegionDataItemDTO = RegionDataItemDTO;
+var GetFacturyTreeRequest = /** @class */ (function (_super) {
+    __extends(GetFacturyTreeRequest, _super);
+    function GetFacturyTreeRequest(_a) {
+        var token = _a.token;
+        var _this = _super.call(this, {
+            token: token,
+        }) || this;
+        _this.token = token;
+        return _this;
+    }
+    GetFacturyTreeRequest.fromJson = function (map) {
+        return new GetFacturyTreeRequest({ token: map['Token'],
+        });
+    };
+    GetFacturyTreeRequest.prototype.toJson = function () {
+        var map = _super.prototype.toJson.call(this);
+        return map;
+    };
+    return GetFacturyTreeRequest;
+}(authentication_m_1.TokenRequest));
+exports.GetFacturyTreeRequest = GetFacturyTreeRequest;
 var RemoveFacturyUserRequest = /** @class */ (function (_super) {
     __extends(RemoveFacturyUserRequest, _super);
     function RemoveFacturyUserRequest(_a) {

+ 56 - 0
src/jsonrpc/services/facturyUser.m.ts

@@ -360,6 +360,62 @@ export class GetFacturyUserInfosRequest extends TokenRequest {
 	}
 }
 
+export class RegionDataItemDTO extends DataItemDTO {
+	children: DataItemDTO[];
+
+	constructor({
+		key,
+		value,
+		children,
+	}) {
+		super({
+		key,
+		value,
+		});
+		this.key = key;
+		this.value = value;
+		this.children = children;
+	}
+
+	static fromJson(map: { [key: string]: any }): RegionDataItemDTO {
+		return new RegionDataItemDTO( 
+{ 			key: map['Key'],
+			value: map['Value'],
+			children: map['Children']&& map['Children'].length>0 ? (map['Children'] as any[]).map((e)=>DataItemDTO.fromJson(e)) : null,
+}		);
+	}
+
+	toJson(): Record<string, unknown> {
+		const map: Record<string, unknown> = super.toJson();
+		if(this.children != null)
+			map['Children'] = this.children;
+		return map;
+	}
+}
+
+export class GetFacturyTreeRequest extends TokenRequest {
+
+	constructor({
+		token,
+	}) {
+		super({
+		token,
+		});
+		this.token = token;
+	}
+
+	static fromJson(map: { [key: string]: any }): GetFacturyTreeRequest {
+		return new GetFacturyTreeRequest( 
+{ 			token: map['Token'],
+}		);
+	}
+
+	toJson(): Record<string, unknown> {
+		const map: Record<string, unknown> = super.toJson();
+		return map;
+	}
+}
+
 export class RemoveFacturyUserRequest extends TokenRequest {
 	code: String;
 

+ 7 - 1
src/jsonrpc/services/facturyUser.ts

@@ -1,5 +1,5 @@
 import JsonRpcClientBase from '../client_base'
-import {CreateFacturyUserRequest,UpdateFacturyUserRequest,FacturyUserDTO,GetFacturyUserRequest,GetFacturyOrgByPageRequest,GetFacturyUserByPageRequest,GetFacturyUserInfosRequest,RemoveFacturyUserRequest,FacturyExamRegisterResult,FacturyExamRegisterRequest,FacturyExamDeleteResult,FacturyExamDeleteRequest,} from  './facturyUser.m'
+import {CreateFacturyUserRequest,UpdateFacturyUserRequest,FacturyUserDTO,GetFacturyUserRequest,GetFacturyOrgByPageRequest,GetFacturyUserByPageRequest,GetFacturyUserInfosRequest,RegionDataItemDTO,GetFacturyTreeRequest,RemoveFacturyUserRequest,FacturyExamRegisterResult,FacturyExamRegisterRequest,FacturyExamDeleteResult,FacturyExamDeleteRequest,} from  './facturyUser.m'
 import { GetUserInfoByVitalOpenIdRequest,PatientGenderEnum,PersonInfoBaseDTO,FaceScanErrorTypeEnum,PersonInfoByFaceImageDTO,GetPersonInfoByFaceImageRequest,RegisterConfirmRequest,PersonRegisterDTO,PersonInfoFullDTO,PageCollection,GetPersonPageRequest,GetPersonRequest,DeletePersonRequest,EnterPersonFaceQueryResult,EnterPersonFaceQueryRequest,EnterPersonFaceRequest, } from './register.m';
 
 
@@ -54,6 +54,12 @@ export class VitalFacturyUserService extends JsonRpcClientBase {
 		return result;
 	}
 
+	async getFacturyTreeAsync(request: GetFacturyTreeRequest): Promise<RegionDataItemDTO[]> {
+		var rpcRst = await this.call("GetFacturyTreeAsync", request);
+		var result = (rpcRst as Record<string, unknown>[]).map((e)=>RegionDataItemDTO.fromJson(e as Record<string, unknown>));
+		return result;
+	}
+
 	async removeFacturyUserAsync(request: RemoveFacturyUserRequest): Promise<boolean> {
 		var rpcRst = await this.call("RemoveFacturyUserAsync", request);
 		return rpcRst;