refactoring of protocol models

This commit is contained in:
병준 박 2019-10-07 10:08:14 +09:00
parent 018f8c773f
commit 3ab7ed7aad
102 changed files with 786 additions and 624 deletions

View File

@ -2,3 +2,16 @@
::ng-deep .mat-tab-label-active { ::ng-deep .mat-tab-label-active {
min-width: 0 !important; min-width: 0 !important;
} }
::ng-deep .mat-tab-body-wrapper,
::ng-deep .mat-tab-body {
height: 100%;
}
.container {
height: 100%;
mat-tab-group {
height: 100%;
}
}

View File

@ -1,3 +1,9 @@
<ucap-organization-tree <div class="oraganization-tab" fxLayout="column">
[oraganizationList]="departmentInfoList$ | async" <div class="oraganization-tab-tree" fxFlex="50" style="overflow: scroll">
></ucap-organization-tree> <ucap-organization-tree
[oraganizationList]="departmentInfoList$ | async"
(selected)="onSelectedOrganization($event)"
></ucap-organization-tree>
</div>
<div fxFlex="50">dddd</div>
</div>

View File

@ -0,0 +1,7 @@
.oraganization-tab {
height: 100%;
.oraganization-tab-tree {
overflow: scroll;
}
}

View File

@ -1,11 +1,18 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { ucapAnimations } from '@ucap-webmessenger/ui'; import { ucapAnimations } from '@ucap-webmessenger/ui';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { DeptInfo } from '@ucap-webmessenger/protocol-query'; import {
DeptInfo,
QueryProtocolService,
DeptSearchType
} from '@ucap-webmessenger/protocol-query';
import { Store, select } from '@ngrx/store'; import { Store, select } from '@ngrx/store';
import { NGXLogger } from 'ngx-logger'; import { NGXLogger } from 'ngx-logger';
import * as AppStore from '@app/store'; import * as AppStore from '@app/store';
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
import { LoginInfo, KEY_LOGIN_INFO } from '@app/types';
import { take, map } from 'rxjs/operators';
@Component({ @Component({
selector: 'app-layout-chat-left-sidenav-organization', selector: 'app-layout-chat-left-sidenav-organization',
@ -16,11 +23,40 @@ import * as AppStore from '@app/store';
export class OrganizationComponent implements OnInit { export class OrganizationComponent implements OnInit {
departmentInfoList$: Observable<DeptInfo[]>; departmentInfoList$: Observable<DeptInfo[]>;
constructor(private store: Store<any>, private logger: NGXLogger) {} constructor(
private store: Store<any>,
private queryProtocolService: QueryProtocolService,
private sessionStorageService: SessionStorageService,
private logger: NGXLogger
) {}
ngOnInit() { ngOnInit() {
this.departmentInfoList$ = this.store.pipe( this.departmentInfoList$ = this.store.pipe(
select(AppStore.MessengerSelector.QuerySelector.departmentInfoList) select(AppStore.MessengerSelector.QuerySelector.departmentInfoList)
); );
} }
onSelectedOrganization(deptInfo: DeptInfo) {
const loginInfo = this.sessionStorageService.get<LoginInfo>(KEY_LOGIN_INFO);
// this.store
// .pipe(
// take(1),
// select(AppStore.AccountSelector.AuthenticationSelector.loginRes),
// map(loginRes => {
// this.queryProtocolService.deptUser({
// divCd: 'ORG',
// companyCode: loginInfo.companyCode,
// seq: deptInfo.seq,
// search: '',
// searchRange: DeptSearchType.All,
// senderCompanyCode: loginInfo.companyCode,
// senderEmployeeType: loginRes.
// });
// })
// )
// .subscribe();
}
} }

View File

@ -9,7 +9,7 @@ import {
LoginResponse, LoginResponse,
encodeLogin, encodeLogin,
decodeLogin decodeLogin
} from '../models/login'; } from '../protocols/login';
import { import {
SVC_TYPE_LOGIN, SVC_TYPE_LOGIN,
SSVC_TYPE_LOGIN_REQ, SSVC_TYPE_LOGIN_REQ,
@ -22,13 +22,13 @@ import {
LogoutResponse, LogoutResponse,
encodeLogout, encodeLogout,
decodeLogout decodeLogout
} from '../models/logout'; } from '../protocols/logout';
import { import {
encodeLogoutRemote, encodeLogoutRemote,
decodeLogoutRemote, decodeLogoutRemote,
LogoutRemoteRequest, LogoutRemoteRequest,
LogoutRemoteResponse LogoutRemoteResponse
} from '../models/logout-remote'; } from '../protocols/logout-remote';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -2,10 +2,10 @@
* Public API Surface of ucap-webmessenger-protocol-authentication * Public API Surface of ucap-webmessenger-protocol-authentication
*/ */
export * from './lib/models/fmc'; export * from './lib/protocols/fmc';
export * from './lib/models/login'; export * from './lib/protocols/login';
export * from './lib/models/logout'; export * from './lib/protocols/logout';
export * from './lib/models/logout-remote'; export * from './lib/protocols/logout-remote';
export * from './lib/services/authentication-protocol.service'; export * from './lib/services/authentication-protocol.service';

View File

@ -12,14 +12,24 @@ import {
SSVC_TYPE_BUDDY_UPD_REQ SSVC_TYPE_BUDDY_UPD_REQ
} from '../types/service'; } from '../types/service';
import { AddRequest, encodeAdd, decodeAdd, AddResponse } from '../models/add'; import {
import { DelRequest, encodeDel, decodeDel, DelResponse } from '../models/del'; AddRequest,
encodeAdd,
decodeAdd,
AddResponse
} from '../protocols/add';
import {
DelRequest,
encodeDel,
decodeDel,
DelResponse
} from '../protocols/del';
import { import {
UpdateRequest, UpdateRequest,
decodeUpdate, decodeUpdate,
encodeUpdate, encodeUpdate,
UpdateResponse UpdateResponse
} from '../models/update'; } from '../protocols/update';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -1,9 +1,9 @@
/* /*
* Public API Surface of ucap-webmessenger-protocol-buddy * Public API Surface of ucap-webmessenger-protocol-buddy
*/ */
export * from './lib/models/add'; export * from './lib/protocols/add';
export * from './lib/models/del'; export * from './lib/protocols/del';
export * from './lib/models/update'; export * from './lib/protocols/update';
export * from './lib/services/buddy-protocol.service'; export * from './lib/services/buddy-protocol.service';

View File

@ -1,24 +1,5 @@
import {
ProtocolRequest,
ProtocolResponse,
ProtocolEncoder,
PacketBody,
ProtocolDecoder,
ProtocolMessage,
ProtocolStream,
PacketBodyValue
} from '@ucap-webmessenger/protocol';
import { EventType } from '../types/event.type'; import { EventType } from '../types/event.type';
export interface InfoRequest extends ProtocolRequest {
// 대화방SEQ(s)
roomSeq: string;
// 기준이벤트SEQ(n)
baseSeq: number;
// 요청이벤트개수(n)
requestCount: number;
}
export interface Info { export interface Info {
// 이벤트SEQ // 이벤트SEQ
seq: number; seq: number;
@ -33,64 +14,3 @@ export interface Info {
// 수신자수 // 수신자수
receiverCount: number; receiverCount: number;
} }
export interface InfoData extends ProtocolStream {
// 대화방SEQ(s)
roomSeq: string;
infoList: Info[];
}
export interface InfoResponse extends ProtocolResponse {
// 대화방SEQ(s)
roomSeq: string;
// 기준이벤트SEQ(n)
baseSeq: number;
// 유효한파일기준이벤트SEQ(n)
validFileBaseSeq: number;
// 이벤트정보 개수(n)
count: number;
}
export const encodeInfo: ProtocolEncoder<InfoRequest> = (req: InfoRequest) => {
const bodyList: PacketBody[] = [];
bodyList.push(
{ type: PacketBodyValue.String, value: req.roomSeq },
{ type: PacketBodyValue.Integer, value: req.baseSeq },
{ type: PacketBodyValue.Integer, value: req.requestCount }
);
return bodyList;
};
export const decodeInfoData: ProtocolDecoder<InfoData> = (
message: ProtocolMessage
) => {
const infoList: Info[] = [];
for (let i = 1; i < message.bodyList.length; ) {
infoList.push({
seq: message.bodyList[0],
type: message.bodyList[1],
senderSeq: message.bodyList[2],
sendDate: message.bodyList[3],
sentMessage: message.bodyList[4],
receiverCount: message.bodyList[5]
});
}
return {
roomSeq: message.bodyList[0],
infoList
} as InfoData;
};
export const decodeInfo: ProtocolDecoder<InfoResponse> = (
message: ProtocolMessage
) => {
return {
roomSeq: message.bodyList[0],
baseSeq: message.bodyList[1],
validFileBaseSeq: message.bodyList[2],
count: message.bodyList[3]
} as InfoResponse;
};

View File

@ -0,0 +1,82 @@
import {
ProtocolRequest,
ProtocolResponse,
ProtocolEncoder,
PacketBody,
ProtocolDecoder,
ProtocolMessage,
ProtocolStream,
PacketBodyValue
} from '@ucap-webmessenger/protocol';
import { EventType } from '../types/event.type';
import { Info } from '../models/info';
export interface InfoRequest extends ProtocolRequest {
// 대화방SEQ(s)
roomSeq: string;
// 기준이벤트SEQ(n)
baseSeq: number;
// 요청이벤트개수(n)
requestCount: number;
}
export interface InfoData extends ProtocolStream {
// 대화방SEQ(s)
roomSeq: string;
infoList: Info[];
}
export interface InfoResponse extends ProtocolResponse {
// 대화방SEQ(s)
roomSeq: string;
// 기준이벤트SEQ(n)
baseSeq: number;
// 유효한파일기준이벤트SEQ(n)
validFileBaseSeq: number;
// 이벤트정보 개수(n)
count: number;
}
export const encodeInfo: ProtocolEncoder<InfoRequest> = (req: InfoRequest) => {
const bodyList: PacketBody[] = [];
bodyList.push(
{ type: PacketBodyValue.String, value: req.roomSeq },
{ type: PacketBodyValue.Integer, value: req.baseSeq },
{ type: PacketBodyValue.Integer, value: req.requestCount }
);
return bodyList;
};
export const decodeInfoData: ProtocolDecoder<InfoData> = (
message: ProtocolMessage
) => {
const infoList: Info[] = [];
for (let i = 1; i < message.bodyList.length; ) {
infoList.push({
seq: message.bodyList[0],
type: message.bodyList[1],
senderSeq: message.bodyList[2],
sendDate: message.bodyList[3],
sentMessage: message.bodyList[4],
receiverCount: message.bodyList[5]
});
}
return {
roomSeq: message.bodyList[0],
infoList
} as InfoData;
};
export const decodeInfo: ProtocolDecoder<InfoResponse> = (
message: ProtocolMessage
) => {
return {
roomSeq: message.bodyList[0],
baseSeq: message.bodyList[1],
validFileBaseSeq: message.bodyList[2],
count: message.bodyList[3]
} as InfoResponse;
};

View File

@ -12,7 +12,7 @@ import {
decodeInfo, decodeInfo,
decodeInfoData, decodeInfoData,
InfoData InfoData
} from '../models/info'; } from '../protocols/info';
import { import {
SVC_TYPE_EVENT, SVC_TYPE_EVENT,
SSVC_TYPE_EVENT_INFO_REQ, SSVC_TYPE_EVENT_INFO_REQ,
@ -29,14 +29,14 @@ import {
SendResponse, SendResponse,
decodeSend, decodeSend,
encodeSend encodeSend
} from '../models/send'; } from '../protocols/send';
import { PushRequest, encodePush } from '../models/push'; import { PushRequest, encodePush } from '../protocols/push';
import { import {
ReadResponse, ReadResponse,
ReadRequest, ReadRequest,
encodeRead, encodeRead,
decodeRead decodeRead
} from '../models/read'; } from '../protocols/read';
import { import {
DelRequest, DelRequest,
DelResponse, DelResponse,
@ -48,7 +48,7 @@ import {
CancelResponse, CancelResponse,
encodeCancel, encodeCancel,
decodeCancel decodeCancel
} from '../models/cancel'; } from '../protocols/cancel';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -3,7 +3,9 @@
*/ */
export * from './lib/models/info'; export * from './lib/models/info';
export * from './lib/models/send';
export * from './lib/protocols/info';
export * from './lib/protocols/send';
export * from './lib/services/event-protocol.service'; export * from './lib/services/event-protocol.service';

View File

@ -0,0 +1,14 @@
export interface FileDownloadInfo {
// 대화방SEQ
roomSeq: string;
// 파일SEQ
seq: number;
// 사용자SEQ
userSeq: number;
// 사용자명
userName: string;
// 다운로드일시
downloadDate: string;
// DownYN
isDownload: boolean;
}

View File

@ -0,0 +1,26 @@
import { FileType } from '../types/file.type';
export interface FileInfo {
// 대화방SEQ
roomSeq: string;
// 이벤트SEQ
eventSeq: number;
// 파일SEQ
seq: number;
// 송신자SEQ
senderSeq: number;
// 파일타입
type: FileType;
// 파일이름
name: string;
// 파일URL
url: string;
// 파일크기(byte)
size: number;
// 전송일시
sendDate: string;
// 수신완료자수
receivedUserCount: number;
// 수신자수
receiverCount: number;
}

View File

@ -10,6 +10,8 @@ import {
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { FileType } from '../types/file.type'; import { FileType } from '../types/file.type';
import { FileInfo } from '../models/file-info';
import { FileDownloadInfo } from '../models/file-download-info';
export interface InfoRequest extends ProtocolRequest { export interface InfoRequest extends ProtocolRequest {
// 대화방SEQ(s) // 대화방SEQ(s)
@ -18,51 +20,11 @@ export interface InfoRequest extends ProtocolRequest {
type: FileType; type: FileType;
} }
export interface FileInfo {
// 대화방SEQ
roomSeq: string;
// 이벤트SEQ
eventSeq: number;
// 파일SEQ
seq: number;
// 송신자SEQ
senderSeq: number;
// 파일타입
type: FileType;
// 파일이름
name: string;
// 파일URL
url: string;
// 파일크기(byte)
size: number;
// 전송일시
sendDate: string;
// 수신완료자수
receivedUserCount: number;
// 수신자수
receiverCount: number;
}
export interface InfoData extends ProtocolStream { export interface InfoData extends ProtocolStream {
// { 대화방파일정보 }... // { 대화방파일정보 }...
fileInfos: FileInfo[]; fileInfos: FileInfo[];
} }
export interface FileDownloadInfo {
// 대화방SEQ
roomSeq: string;
// 파일SEQ
seq: number;
// 사용자SEQ
userSeq: number;
// 사용자명
userName: string;
// 다운로드일시
downloadDate: string;
// DownYN
isDownload: boolean;
}
export interface InfoCheckData extends ProtocolStream { export interface InfoCheckData extends ProtocolStream {
// { 파일다운로드정보 }... // { 파일다운로드정보 }...
fileDownloadInfos: FileDownloadInfo[]; fileDownloadInfos: FileDownloadInfo[];

View File

@ -21,13 +21,13 @@ import {
InfoCheckData, InfoCheckData,
decodeInfoData, decodeInfoData,
decodeInfoCheckData decodeInfoCheckData
} from '../models/info'; } from '../protocols/info';
import { import {
DownCheckRequest, DownCheckRequest,
DownCheckResponse, DownCheckResponse,
encodeDownCheck, encodeDownCheck,
decodeDownCheck decodeDownCheck
} from '../models/down-check'; } from '../protocols/down-check';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })

View File

@ -2,8 +2,11 @@
* Public API Surface of ucap-webmessenger-protocol-file * Public API Surface of ucap-webmessenger-protocol-file
*/ */
export * from './lib/models/down-check'; export * from './lib/models/file-download-info';
export * from './lib/models/info'; export * from './lib/models/file-info';
export * from './lib/protocols/down-check';
export * from './lib/protocols/info';
export * from './lib/services/file-protocol.service'; export * from './lib/services/file-protocol.service';

View File

@ -11,8 +11,18 @@ import {
SSVC_TYPE_GROUP_UPD_REQ, SSVC_TYPE_GROUP_UPD_REQ,
SSVC_TYPE_GROUP_UPD_REQ2 SSVC_TYPE_GROUP_UPD_REQ2
} from '../types/service'; } from '../types/service';
import { AddRequest, encodeAdd, decodeAdd, AddResponse } from '../models/add'; import {
import { DelRequest, encodeDel, decodeDel, DelResponse } from '../models/del'; AddRequest,
encodeAdd,
decodeAdd,
AddResponse
} from '../protocols/add';
import {
DelRequest,
encodeDel,
decodeDel,
DelResponse
} from '../protocols/del';
import { import {
UpdateRequest, UpdateRequest,
encodeUpdate, encodeUpdate,
@ -20,7 +30,7 @@ import {
encodeUpdate2, encodeUpdate2,
decodeUpdate2, decodeUpdate2,
UpdateResponse UpdateResponse
} from '../models/update'; } from '../protocols/update';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })

View File

@ -1,9 +1,9 @@
/* /*
* Public API Surface of ucap-webmessenger-protocol-group * Public API Surface of ucap-webmessenger-protocol-group
*/ */
export * from './lib/models/add'; export * from './lib/protocols/add';
export * from './lib/models/del'; export * from './lib/protocols/del';
export * from './lib/models/update'; export * from './lib/protocols/update';
export * from './lib/services/group-protocol.service'; export * from './lib/services/group-protocol.service';

View File

@ -16,13 +16,13 @@ import {
encodeUser, encodeUser,
UserResponse, UserResponse,
decodeUser decodeUser
} from '../models/user'; } from '../protocols/user';
import { import {
StatusRequest, StatusRequest,
StatusResponse, StatusResponse,
encodeStatus, encodeStatus,
decodeStatus decodeStatus
} from '../models/status'; } from '../protocols/status';
import { import {
UserOptionResponse, UserOptionResponse,
decodeUserOption, decodeUserOption,
@ -30,7 +30,7 @@ import {
encodeUserOptionUpdate, encodeUserOptionUpdate,
UserOptionUpdateResponse, UserOptionUpdateResponse,
decodeUserOptionUpdate decodeUserOptionUpdate
} from '../models/user-option'; } from '../protocols/user-option';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -2,9 +2,9 @@
* Public API Surface of ucap-webmessenger-protocol-info * Public API Surface of ucap-webmessenger-protocol-info
*/ */
export * from './lib/models/status'; export * from './lib/protocols/status';
export * from './lib/models/user-option'; export * from './lib/protocols/user-option';
export * from './lib/models/user'; export * from './lib/protocols/user';
export * from './lib/services/info-protocol.service'; export * from './lib/services/info-protocol.service';

View File

@ -10,7 +10,7 @@ import {
ConnRequest, ConnRequest,
encodeConn, encodeConn,
decodeConn decodeConn
} from '../models/conn'; } from '../protocols/conn';
import { SVC_TYPE_INNER, SSVC_TYPE_CONN_REQ } from '../types/service'; import { SVC_TYPE_INNER, SSVC_TYPE_CONN_REQ } from '../types/service';
@Injectable({ @Injectable({

View File

@ -2,6 +2,8 @@
* Public API Surface of ucap-webmessenger-protocol-inner * Public API Surface of ucap-webmessenger-protocol-inner
*/ */
export * from './lib/protocols/conn';
export * from './lib/services/inner-protocol.service'; export * from './lib/services/inner-protocol.service';
export * from './lib/ucap-inner-protocol.module'; export * from './lib/ucap-inner-protocol.module';

View File

@ -18,37 +18,37 @@ import {
decodeView, decodeView,
ViewRequest, ViewRequest,
ViewResponse ViewResponse
} from '../models/view'; } from '../protocols/view';
import { import {
UpdateRequest, UpdateRequest,
UpdateResponse, UpdateResponse,
encodeUpdate, encodeUpdate,
decodeUpdate decodeUpdate
} from '../models/update'; } from '../protocols/update';
import { import {
RegViewRequest, RegViewRequest,
RegViewResponse, RegViewResponse,
encodeRegView, encodeRegView,
decodeRegView decodeRegView
} from '../models/reg-view'; } from '../protocols/reg-view';
import { import {
RegUpdateRequest, RegUpdateRequest,
RegUpdateResponse, RegUpdateResponse,
encodeRegUpdate, encodeRegUpdate,
decodeRegUpdate decodeRegUpdate
} from '../models/reg-update'; } from '../protocols/reg-update';
import { import {
CallViewRequest, CallViewRequest,
CallViewResponse, CallViewResponse,
encodeCallView, encodeCallView,
decodeCallView decodeCallView
} from '../models/call-view'; } from '../protocols/call-view';
import { import {
CallUpdateRequest, CallUpdateRequest,
CallUpdateResponse, CallUpdateResponse,
encodeCallUpdate, encodeCallUpdate,
decodeCallUpdate decodeCallUpdate
} from '../models/call-update'; } from '../protocols/call-update';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -2,12 +2,12 @@
* Public API Surface of ucap-webmessenger-protocol-option * Public API Surface of ucap-webmessenger-protocol-option
*/ */
export * from './lib/models/call-update'; export * from './lib/protocols/call-update';
export * from './lib/models/call-view'; export * from './lib/protocols/call-view';
export * from './lib/models/reg-update'; export * from './lib/protocols/reg-update';
export * from './lib/models/reg-view'; export * from './lib/protocols/reg-view';
export * from './lib/models/update'; export * from './lib/protocols/update';
export * from './lib/models/view'; export * from './lib/protocols/view';
export * from './lib/services/option-protocol.service'; export * from './lib/services/option-protocol.service';

View File

@ -0,0 +1,26 @@
import { DeptType } from '../types/dept.type';
export interface DeptInfo {
// 부서SEQ
seq: number;
// 부서명
name: string;
// 기관코드
companyCode: string;
// 부서타입
type: DeptType;
// 본부SEQ
rootSeq: number;
// 상위부서SEQ
parentSeq: number;
// 조회순서
order: string;
// 조회레벨
depth: number;
// ActiveYN
isActive: boolean;
// 부서명(영어)
nameEn: string;
// 부서명(중국어)
nameCn: string;
}

View File

@ -0,0 +1,52 @@
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
export interface UserInfoDN {
/** 사용자SEQ */
seq: number;
/** 사용자명 */
name: string;
/** 사진파일 */
profileImageFile: string;
/** 직급 */
grade: string;
/** 업무소개 */
intro: string;
// 기관코드
companyCode: string;
// 핸드폰번호
hpNumber: string;
// 내선번호
lineNumber: string;
// 이메일
email: string;
// 모바일YN
isMobile: boolean;
// 조회순서
order: string;
// ActiveYN
isActive: boolean;
// 역할코드
roleCd: RoleCode;
// 사번
employeeNum: string;
// 부서명
deptName: string;
// MADN
madn: string;
// HARDPHONE_SADN
hardSadn: string;
// FMC_SADN
fmcSadn: string;
// 사용자명(영어)
nameEn: string;
// 사용자명(중국어)
nameCn: string;
// 직급(영어)
gradeEn: string;
// 직급(중국어)
gradeCn: string;
// 부서명(영어)
deptNameEn: string;
// 부서명(중국어)
deptNameCn: string;
}

View File

@ -0,0 +1,63 @@
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
export interface UserInfoF {
// 사용자SEQ
seq: number;
// 사용자명
name: string;
// 사진파일
profileImageFile: string;
// 직급
grade: string;
// 업무소개
intro: string;
// 기관코드
companyCode: string;
// 핸드폰번호
hpNumber: string;
// 내선번호
lineNumber: string;
// 이메일
email: string;
// 모바일YN
isMobile: boolean;
// 부서명
deptName: string;
// 즐.찾 여부
isFavorit: boolean;
// 친구여부
isBuddy: boolean;
// ActiveYN
isActive: boolean;
// 역할코드
roleCd: RoleCode;
// 사번
employeeNum: string;
// MADN
madn: string;
// HARDPHONE_SADN
hardSadn: string;
// FMC_SADN
fmcSadn: string;
// 사용자명(영어)
nameEn: string;
// 사용자명(중국어)
nameCn: string;
// 직급(영어)
gradeEn: string;
// 직급(중국어)
gradeCn: string;
// 부서명(영어)
deptNameEn: string;
// 부서명(중국어)
deptNameCn: string;
// 이용약관동의여부YN
isPrivacyAgree: boolean;
// 유효접속여부YN
isValidLogin: boolean;
// 임직원유형(s)
employeeType: EmployeeType;
// 별명
nickName: string;
}

View File

@ -0,0 +1,64 @@
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { CallMode } from '@ucap-webmessenger/core';
import { EmployeeType } from '@ucap-webmessenger/protocol-room';
export interface UserInfoSS {
/** 사용자SEQ */
seq: number;
/** 사용자명 */
name: string;
/** 사진파일 */
profileImageFile: string;
/** 직급 */
grade: string;
/** 업무소개 */
intro: string;
/** 기관코드 */
companyCode: string;
/** 핸드폰번호 */
hpNumber: string;
/** 내선번호 */
lineNumber: string;
/** 이메일 */
email: string;
/** 모바일YN */
isMobile: boolean;
/** 부서명 */
deptName: string;
/** 조회순서 */
order: string;
/** ActiveYN */
isActive: boolean;
/** 역할코드 */
roleCd: RoleCode;
/** 사번 */
employeeNum: string;
/** MADN */
madn: string;
/** HARDPHONE_SADN */
hardSadn: string;
/** FMC_SADN */
fmcSadn: string;
/** CALL_MODE */
callMode: CallMode;
/** 사용자명(영어) */
nameEn: string;
/** 사용자명(중국어) */
nameCn: string;
/** 직급(영어) */
gradeEn: string;
/** 직급(중국어) */
gradeCn: string;
/** 부서명(영어) */
deptNameEn: string;
/** 부서명(중국어) */
deptNameCn: string;
/** 부서SEQ */
deptSeq: number;
/** 이용약관동의여부YN */
isPrivacyAgree: boolean;
/** 유효접속여부YN */
isValidLogin: boolean;
/** 임직원유형(s) */
employeeType: EmployeeType;
}

View File

@ -0,0 +1,10 @@
export interface UserSeqInfo {
// 로그인ID
id: string;
// 사용자SEQ
seq: number;
// 모바일YN
isMobile: boolean;
// 회사코드
companyCode: string;
}

View File

@ -10,7 +10,7 @@ import {
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { EmployeeType } from '@ucap-webmessenger/protocol-room'; import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication'; import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { UserInfoSS } from './dept-user'; import { UserInfoSS } from '../models/user-info-ss';
export interface DataUserRequest extends ProtocolRequest { export interface DataUserRequest extends ProtocolRequest {
// DivCD(s) // DivCD(s)

View File

@ -13,102 +13,43 @@ import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication'; import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { DeptSearchType } from '../types/dept-search.type'; import { DeptSearchType } from '../types/dept-search.type';
import { CallMode } from '@ucap-webmessenger/core'; import { CallMode } from '@ucap-webmessenger/core';
import { UserInfoSS } from '../models/user-info-ss';
export interface DeptUserRequest extends ProtocolRequest { export interface DeptUserRequest extends ProtocolRequest {
// DivCD(s) /** DivCD(s) */
divCd: string; divCd: string;
// 기관코드(s) /** 기관코드(s) */
companyCode: string; companyCode: string;
// 부서SEQ(n) /** 부서SEQ(n) */
seq?: number; seq?: number;
// 검색string(s) /** 검색string(s) */
search?: string; search?: string;
// 검색범위(s) /** 검색범위(s) */
searchRange: DeptSearchType; searchRange: DeptSearchType;
// 요청리스트(n) 사용안하면 0 최대 200 /** 요청리스트(n) 사용안하면 0 최대 200 */
pageListCount?: number; pageListCount?: number;
// 요청페이지(n) 사용안하면 0 처음은 1 /** 요청페이지(n) 사용안하면 0 처음은 1 */
pageCurrent?: number; pageCurrent?: number;
// 발신자회사코드(s) /** 발신자회사코드(s) */
senderCompanyCode: string; senderCompanyCode: string;
// 발신자임직원유형(s) /** 발신자임직원유형(s) */
senderEmployeeType: EmployeeType; senderEmployeeType: EmployeeType;
} }
export interface UserInfoSS {
// 사용자SEQ
seq: number;
// 사용자명
name: string;
// 사진파일
profileImageFile: string;
// 직급
grade: string;
// 업무소개
intro: string;
// 기관코드
companyCode: string;
// 핸드폰번호
hpNumber: string;
// 내선번호
lineNumber: string;
// 이메일
email: string;
// 모바일YN
isMobile: boolean;
// 부서명
deptName: string;
// 조회순서
order: string;
// ActiveYN
isActive: boolean;
// 역할코드
roleCd: RoleCode;
// 사번
employeeNum: string;
// MADN
madn: string;
// HARDPHONE_SADN
hardSadn: string;
// FMC_SADN
fmcSadn: string;
// CALL_MODE
callMode: CallMode;
// 사용자명(영어)
nameEn: string;
// 사용자명(중국어)
nameCn: string;
// 직급(영어)
gradeEn: string;
// 직급(중국어)
gradeCn: string;
// 부서명(영어)
deptNameEn: string;
// 부서명(중국어)
deptNameCn: string;
// 부서SEQ
deptSeq: number;
// 이용약관동의여부YN
isPrivacyAgree: boolean;
// 유효접속여부YN
isValidLogin: boolean;
// 임직원유형(s)
employeeType: EmployeeType;
}
export interface DeptUserData extends ProtocolStream { export interface DeptUserData extends ProtocolStream {
// DivCD(s) /** DivCD(s) */
divCd: string; divCd: string;
// {부서정보-S}... /** {부서정보-S}... */
userInfos: UserInfoSS[]; userInfos: UserInfoSS[];
} }
export interface DeptUserResponse extends ProtocolResponse { export interface DeptUserResponse extends ProtocolResponse {
// DivCD(s) /** DivCD(s) */
divCd: string; divCd: string;
// 전체갯수(n) /** 전체갯수(n) */
pageTotalCount: number; pageTotalCount: number;
// 요청리스트(n) /** 요청리스트(n) */
pageListCount?: number; pageListCount?: number;
// 페이지(n) /** 페이지(n) */
pageCurrent?: number; pageCurrent?: number;
} }

View File

@ -10,6 +10,7 @@ import {
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { DeptType } from '../types/dept.type'; import { DeptType } from '../types/dept.type';
import { DeptInfo } from '../models/dept-info';
export interface DeptRequest extends ProtocolRequest { export interface DeptRequest extends ProtocolRequest {
// DivCD(s) // DivCD(s)
@ -18,30 +19,6 @@ export interface DeptRequest extends ProtocolRequest {
companyCode: string; companyCode: string;
} }
export interface DeptInfo {
// 부서SEQ
seq: number;
// 부서명
name: string;
// 기관코드
companyCode: string;
// 부서타입
type: DeptType;
// 본부SEQ
rootSeq: number;
// 상위부서SEQ
parentSeq: number;
// 조회순서
order: string;
// 조회레벨
depth: number;
// ActiveYN
isActive: boolean;
// 부서명(영어)
nameEn: string;
// 부서명(중국어)
nameCn: string;
}
export interface DeptData extends ProtocolStream { export interface DeptData extends ProtocolStream {
// DivCD(s) // DivCD(s)
divCd: string; divCd: string;

View File

@ -12,6 +12,7 @@ import {
import { EmployeeType } from '@ucap-webmessenger/protocol-room'; import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication'; import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { UserDnSearchType } from '../types/user-dn-search.type'; import { UserDnSearchType } from '../types/user-dn-search.type';
import { UserInfoDN } from '../models/user-info-dn';
export interface UserDnRequest extends ProtocolRequest { export interface UserDnRequest extends ProtocolRequest {
// DivCD(s) // DivCD(s)
@ -34,56 +35,6 @@ export interface UserDnRequest extends ProtocolRequest {
senderEmployeeType: EmployeeType; senderEmployeeType: EmployeeType;
} }
export interface UserInfoDN {
// 사용자SEQ
seq: number;
// 사용자명
name: string;
// 사진파일
profileImageFile: string;
// 직급
grade: string;
// 업무소개
intro: string;
// 기관코드
companyCode: string;
// 핸드폰번호
hpNumber: string;
// 내선번호
lineNumber: string;
// 이메일
email: string;
// 모바일YN
isMobile: boolean;
// 조회순서
order: string;
// ActiveYN
isActive: boolean;
// 역할코드
roleCd: RoleCode;
// 사번
employeeNum: string;
// 부서명
deptName: string;
// MADN
madn: string;
// HARDPHONE_SADN
hardSadn: string;
// FMC_SADN
fmcSadn: string;
// 사용자명(영어)
nameEn: string;
// 사용자명(중국어)
nameCn: string;
// 직급(영어)
gradeEn: string;
// 직급(중국어)
gradeCn: string;
// 부서명(영어)
deptNameEn: string;
// 부서명(중국어)
deptNameCn: string;
}
export interface UserDnData extends ProtocolStream { export interface UserDnData extends ProtocolStream {
// DivCD(s) // DivCD(s)
divCd: string; divCd: string;

View File

@ -10,6 +10,7 @@ import {
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { EmployeeType } from '@ucap-webmessenger/protocol-room'; import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { UserSeqInfo } from '../models/user-seq-info';
export interface UserIdRequest extends ProtocolRequest { export interface UserIdRequest extends ProtocolRequest {
// DivCD(s) // DivCD(s)
@ -21,22 +22,14 @@ export interface UserIdRequest extends ProtocolRequest {
// 발신자임직원유형(s) // 발신자임직원유형(s)
senderEmployeeType: EmployeeType; senderEmployeeType: EmployeeType;
} }
export interface UserSeqInfo {
// 로그인ID
id: string;
// 사용자SEQ
seq: number;
// 모바일YN
isMobile: boolean;
// 회사코드
companyCode: string;
}
export interface UserIdData extends ProtocolStream { export interface UserIdData extends ProtocolStream {
// DivCD(s) // DivCD(s)
divCd: string; divCd: string;
// {SEQ정보}1... // {SEQ정보}1...
userSeqInfos: UserSeqInfo[]; userSeqInfos: UserSeqInfo[];
} }
export interface UserIdResponse extends ProtocolResponse { export interface UserIdResponse extends ProtocolResponse {
// DivCD(s) // DivCD(s)
divCd: string; divCd: string;

View File

@ -10,7 +10,8 @@ import {
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { EmployeeType } from '@ucap-webmessenger/protocol-room'; import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication'; import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { UserInfoSS } from './dept-user'; import { UserInfoF } from '../models/user-info-f';
import { UserInfoSS } from '../models/user-info-ss';
export interface UserSeqRequest extends ProtocolRequest { export interface UserSeqRequest extends ProtocolRequest {
// DivCD(s) // DivCD(s)
@ -26,66 +27,7 @@ export interface UserSeqRequest extends ProtocolRequest {
// 발신자임직원유형(s) // 발신자임직원유형(s)
senderEmployeeType: EmployeeType; senderEmployeeType: EmployeeType;
} }
export interface UserInfoF {
// 사용자SEQ
seq: number;
// 사용자명
name: string;
// 사진파일
profileImageFile: string;
// 직급
grade: string;
// 업무소개
intro: string;
// 기관코드
companyCode: string;
// 핸드폰번호
hpNumber: string;
// 내선번호
lineNumber: string;
// 이메일
email: string;
// 모바일YN
isMobile: boolean;
// 부서명
deptName: string;
// 즐.찾 여부
isFavorit: boolean;
// 친구여부
isBuddy: boolean;
// ActiveYN
isActive: boolean;
// 역할코드
roleCd: RoleCode;
// 사번
employeeNum: string;
// MADN
madn: string;
// HARDPHONE_SADN
hardSadn: string;
// FMC_SADN
fmcSadn: string;
// 사용자명(영어)
nameEn: string;
// 사용자명(중국어)
nameCn: string;
// 직급(영어)
gradeEn: string;
// 직급(중국어)
gradeCn: string;
// 부서명(영어)
deptNameEn: string;
// 부서명(중국어)
deptNameCn: string;
// 이용약관동의여부YN
isPrivacyAgree: boolean;
// 유효접속여부YN
isValidLogin: boolean;
// 임직원유형(s)
employeeType: EmployeeType;
// 별명
nickName: string;
}
export interface UserSeqData extends ProtocolStream { export interface UserSeqData extends ProtocolStream {
// DivCD(s) // DivCD(s)
divCd: string; divCd: string;

View File

@ -7,7 +7,7 @@ import {
AuthResponse, AuthResponse,
encodeAuth, encodeAuth,
decodeAuth decodeAuth
} from '../models/auth'; } from '../protocols/auth';
import { import {
SVC_TYPE_QUERY_DATA, SVC_TYPE_QUERY_DATA,
SSVC_TYPE_QUERY_AUTH_REQ, SSVC_TYPE_QUERY_AUTH_REQ,
@ -40,7 +40,7 @@ import {
decodeDept, decodeDept,
decodeDeptData, decodeDeptData,
DeptData DeptData
} from '../models/dept'; } from '../protocols/dept';
import { import {
encodeDeptUser, encodeDeptUser,
decodeDeptUser, decodeDeptUser,
@ -48,7 +48,7 @@ import {
DeptUserRequest, DeptUserRequest,
DeptUserData, DeptUserData,
DeptUserResponse DeptUserResponse
} from '../models/dept-user'; } from '../protocols/dept-user';
import { import {
UserSeqData, UserSeqData,
UserSeqData2, UserSeqData2,
@ -56,7 +56,7 @@ import {
decodeUserSeqData, decodeUserSeqData,
decodeUserSeqData2, decodeUserSeqData2,
UserSeqRequest UserSeqRequest
} from '../models/user-seq'; } from '../protocols/user-seq';
import { import {
UserIdRequest, UserIdRequest,
UserIdResponse, UserIdResponse,
@ -64,7 +64,7 @@ import {
encodeUserId, encodeUserId,
decodeUserId, decodeUserId,
decodeUserIdData decodeUserIdData
} from '../models/user-id'; } from '../protocols/user-id';
import { import {
UserDnRequest, UserDnRequest,
UserDnResponse, UserDnResponse,
@ -72,19 +72,19 @@ import {
encodeUserDn, encodeUserDn,
decodeUserDnData, decodeUserDnData,
decodeUserDn decodeUserDn
} from '../models/user-dn'; } from '../protocols/user-dn';
import { import {
DataUserRequest, DataUserRequest,
DataUserResponse, DataUserResponse,
encodeDataUser, encodeDataUser,
decodeDataUser decodeDataUser
} from '../models/data-user'; } from '../protocols/data-user';
import { import {
DataUserExtRequest, DataUserExtRequest,
DataUserExtResponse, DataUserExtResponse,
encodeDataUserExt, encodeDataUserExt,
decodeDataUserExt decodeDataUserExt
} from '../models/data-user-ext'; } from '../protocols/data-user-ext';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -2,14 +2,20 @@
* Public API Surface of ucap-webmessenger-protocol-query * Public API Surface of ucap-webmessenger-protocol-query
*/ */
export * from './lib/models/auth'; export * from './lib/models/dept-info';
export * from './lib/models/data-user-ext'; export * from './lib/models/user-info-dn';
export * from './lib/models/data-user'; export * from './lib/models/user-info-f';
export * from './lib/models/dept-user'; export * from './lib/models/user-info-ss';
export * from './lib/models/dept'; export * from './lib/models/user-seq-info';
export * from './lib/models/user-dn';
export * from './lib/models/user-id'; export * from './lib/protocols/auth';
export * from './lib/models/user-seq'; export * from './lib/protocols/data-user-ext';
export * from './lib/protocols/data-user';
export * from './lib/protocols/dept-user';
export * from './lib/protocols/dept';
export * from './lib/protocols/user-dn';
export * from './lib/protocols/user-id';
export * from './lib/protocols/user-seq';
export * from './lib/services/query-protocol.service'; export * from './lib/services/query-protocol.service';

View File

@ -0,0 +1,31 @@
import { RoomType } from '../types/room.type';
import { EventType } from '@ucap-webmessenger/protocol-event';
export interface RoomInfo {
// 0. 대화방SEQ
roomSeq: string;
// 1. 대화방종류
roomType: RoomType;
// 2. 대화방명
roomName: string;
// 3. 최종타입
finalEventType: EventType;
// 4. 최종대화
finalEventMessage: string;
// 5. 최종시간
finalEventDate: string;
// 6. 참여인원수
joinUserCount: number;
// 7. 안읽은수
noReadCnt: number;
// 8. 알람여부
isAlarm: boolean;
// 9. 참여여부
isJoinRoom: boolean;
// 10. 유효한파일 이벤트 기준 SEQ
expiredFileStdSeq: number;
// 11. 타이머대화방여부YN
isTimeRoom: boolean;
// 12. 타이머시간(n)
timeRoomInterval: number;
}

View File

@ -0,0 +1,32 @@
import { EmployeeType } from '../types/employee.type';
export interface UserInfoShort {
// 0. 사용자SEQ
seq: number;
// 1. 사용자명
name: string;
// 2. 사진파일
profileImageFile: string;
// 3. 참여여부
isJoinRoom: boolean;
// 4. 최종확인SEQ
lastReadEventSeq: number;
// 5. MADN
madn: string;
// 6. HARDPHONE_SADN
hardSadn: string;
// 7. FMC_SADN
fmcSadn: string;
// 8. 사용자명(영어)
nameEn: string;
// 9. 사용자명(중국어)
nameCn: string;
// 10. 이용약관동의여부YN
isPrivacyAgree: boolean;
// 11. 유효접속여부YN
isValidLogin: boolean;
// 12. 임직원유형(s)
employeeType: EmployeeType;
// 13. 폰트색(s)
fontColor: string;
}

View File

@ -0,0 +1,65 @@
import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { EmployeeType } from '../types/employee.type';
export interface UserInfo {
// 0. 사용자SEQ
seq: number;
// 1. 사용자명
name: string;
// 2. 사진파일
profileImageFile: string;
// 3. 직급
grade: string;
// 4. 업무소개
intro: string;
// 5. 기관코드
companyCode: string;
// 6. 핸드폰번호
hpNumber: string;
// 7. 내선번호
lineNumber: string;
// 8. 이메일
email: string;
// 9. 모바일YN
isMobile: boolean;
// 10. 부서명
deptName: string;
// 11. 참여 여부 <<<<
isJoinRoom: boolean;
// 12. 최종확인SEQ <<<<
lastReadEventSeq: number;
// 13. ActiveYN
isActive: boolean;
// 14. 역할코드
roleCd: RoleCode;
// 15. 사번
employeeNum: string;
// 16. MADN
madn: string;
// 17. HARDPHONE_SADN
hardSadn: string;
// 18. FMC_SADN
fmcSadn: string;
// 19. 사용자명(영어)
nameEn: string;
// 20. 사용자명(중국어)
nameCn: string;
// 21. 직급(영어)
gradeEn: string;
// 22. 직급(중국어)
gradeCn: string;
// 23. 부서명(영어)
deptNameEn: string;
// 24. 부서명(중국어)
deptNameCn: string;
// 25. CALL_MODE <<<
callMode: string;
// 26. 이용약관동의여부YN
isPrivacyAgree: boolean;
// 27. 유효접속여부YN
isValidLogin: boolean;
// 28. 임직원유형(s)
employeeType: EmployeeType;
// 29. 사용자아이디(s) <<<
id: string;
}

View File

@ -14,129 +14,9 @@ import { RoomType } from '../types/room.type';
import { EventType } from '@ucap-webmessenger/protocol-event'; import { EventType } from '@ucap-webmessenger/protocol-event';
import { EmployeeType } from '../types/employee.type'; import { EmployeeType } from '../types/employee.type';
import { RoleCode } from '@ucap-webmessenger/protocol-authentication'; import { RoleCode } from '@ucap-webmessenger/protocol-authentication';
import { RoomInfo } from '../models/room-info';
export interface RoomInfo { import { UserInfoShort } from '../models/user-info-short';
// 0. 대화방SEQ import { UserInfo } from '../models/user-info';
roomSeq: string;
// 1. 대화방종류
roomType: RoomType;
// 2. 대화방명
roomName: string;
// 3. 최종타입
finalEventType: EventType;
// 4. 최종대화
finalEventMessage: string;
// 5. 최종시간
finalEventDate: string;
// 6. 참여인원수
joinUserCount: number;
// 7. 안읽은수
noReadCnt: number;
// 8. 알람여부
isAlarm: boolean;
// 9. 참여여부
isJoinRoom: boolean;
// 10. 유효한파일 이벤트 기준 SEQ
expiredFileStdSeq: number;
// 11. 타이머대화방여부YN
isTimeRoom: boolean;
// 12. 타이머시간(n)
timeRoomInterval: number;
}
export interface UserInfoShort {
// 0. 사용자SEQ
seq: number;
// 1. 사용자명
name: string;
// 2. 사진파일
profileImageFile: string;
// 3. 참여여부
isJoinRoom: boolean;
// 4. 최종확인SEQ
lastReadEventSeq: number;
// 5. MADN
madn: string;
// 6. HARDPHONE_SADN
hardSadn: string;
// 7. FMC_SADN
fmcSadn: string;
// 8. 사용자명(영어)
nameEn: string;
// 9. 사용자명(중국어)
nameCn: string;
// 10. 이용약관동의여부YN
isPrivacyAgree: boolean;
// 11. 유효접속여부YN
isValidLogin: boolean;
// 12. 임직원유형(s)
employeeType: EmployeeType;
// 13. 폰트색(s)
fontColor: string;
}
export interface UserInfo {
// 0. 사용자SEQ
seq: number;
// 1. 사용자명
name: string;
// 2. 사진파일
profileImageFile: string;
// 3. 직급
grade: string;
// 4. 업무소개
intro: string;
// 5. 기관코드
companyCode: string;
// 6. 핸드폰번호
hpNumber: string;
// 7. 내선번호
lineNumber: string;
// 8. 이메일
email: string;
// 9. 모바일YN
isMobile: boolean;
// 10. 부서명
deptName: string;
// 11. 참여 여부 <<<<
isJoinRoom: boolean;
// 12. 최종확인SEQ <<<<
lastReadEventSeq: number;
// 13. ActiveYN
isActive: boolean;
// 14. 역할코드
roleCd: RoleCode;
// 15. 사번
employeeNum: string;
// 16. MADN
madn: string;
// 17. HARDPHONE_SADN
hardSadn: string;
// 18. FMC_SADN
fmcSadn: string;
// 19. 사용자명(영어)
nameEn: string;
// 20. 사용자명(중국어)
nameCn: string;
// 21. 직급(영어)
gradeEn: string;
// 22. 직급(중국어)
gradeCn: string;
// 23. 부서명(영어)
deptNameEn: string;
// 24. 부서명(중국어)
deptNameCn: string;
// 25. CALL_MODE <<<
callMode: string;
// 26. 이용약관동의여부YN
isPrivacyAgree: boolean;
// 27. 유효접속여부YN
isValidLogin: boolean;
// 28. 임직원유형(s)
employeeType: EmployeeType;
// 29. 사용자아이디(s) <<<
id: string;
}
export interface InfoRequest extends ProtocolRequest { export interface InfoRequest extends ProtocolRequest {
// 0. 대화방SEQ(s) // 0. 대화방SEQ(s)

View File

@ -41,13 +41,13 @@ import {
Open4Response, Open4Response,
encodeOpen4, encodeOpen4,
decodeOpen4 decodeOpen4
} from '../models/open'; } from '../protocols/open';
import { import {
InviteRequest, InviteRequest,
InviteResponse, InviteResponse,
encodeInvite, encodeInvite,
decodeInvite decodeInvite
} from '../models/invite'; } from '../protocols/invite';
import { import {
InfoRequest, InfoRequest,
InfoResponse, InfoResponse,
@ -63,7 +63,7 @@ import {
UserStatusOfflineResponse, UserStatusOfflineResponse,
encodeUserStatusOffline, encodeUserStatusOffline,
decodeUserStatusOffline decodeUserStatusOffline
} from '../models/info'; } from '../protocols/info';
import { import {
ExitRequest, ExitRequest,
ExitResponse, ExitResponse,
@ -77,7 +77,7 @@ import {
decodeExitForcing, decodeExitForcing,
decodeAllExit, decodeAllExit,
ExitAllResponse ExitAllResponse
} from '../models/exit'; } from '../protocols/exit';
import { import {
UpdateRequest, UpdateRequest,
UpdateResponse, UpdateResponse,
@ -91,7 +91,7 @@ import {
UpdateFontResponse, UpdateFontResponse,
encodeUpdateFont, encodeUpdateFont,
decodeUpdateFont decodeUpdateFont
} from '../models/update'; } from '../protocols/update';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -2,9 +2,13 @@
* Public API Surface of ucap-webmessenger-protocol-room * Public API Surface of ucap-webmessenger-protocol-room
*/ */
export * from './lib/models/info'; export * from './lib/models/room-info';
export * from './lib/models/invite'; export * from './lib/models/user-info';
export * from './lib/models/open'; export * from './lib/models/user-info-short';
export * from './lib/protocols/info';
export * from './lib/protocols/invite';
export * from './lib/protocols/open';
export * from './lib/services/room-protocol.service'; export * from './lib/services/room-protocol.service';
export * from './lib/types/employee.type'; export * from './lib/types/employee.type';

View File

@ -7,7 +7,7 @@ import {
UserPasswordSetResponse, UserPasswordSetResponse,
encodeUserPasswordSet, encodeUserPasswordSet,
decodeUserPasswordSet decodeUserPasswordSet
} from '../models/password-set'; } from '../protocols/password-set';
import { ProtocolService } from '@ucap-webmessenger/protocol'; import { ProtocolService } from '@ucap-webmessenger/protocol';
import { SVC_TYPE_SERVICE, SSVC_TYPE_USER_PW_SET_REQ } from '../types/service'; import { SVC_TYPE_SERVICE, SSVC_TYPE_USER_PW_SET_REQ } from '../types/service';

View File

@ -2,7 +2,7 @@
* Public API Surface of ucap-webmessenger-protocol-service * Public API Surface of ucap-webmessenger-protocol-service
*/ */
export * from './lib/models/password-set'; export * from './lib/protocols/password-set';
export * from './lib/services/service-protocol.service'; export * from './lib/services/service-protocol.service';

View File

@ -0,0 +1,21 @@
import { StatusInfo } from './status-info';
import {
TerminalStatusInfo,
TerminalStatusNumber
} from '../types/terminal-status.type';
export interface StatusBulkInfo extends StatusInfo {
// 사용자SEQ
// 상태코드(PC)
// 상태코드(통화)
// 상태코드(모바일)
// 상태코드(PC화상)
// 상태메시지
// 상태코드(Mobile화상)
// 상태코드(iMessenger)
/** 단말상태정보(s) */
terminalStatus: TerminalStatusInfo;
/** 단말상태번호(n) */
terminalStatusNumber: TerminalStatusNumber;
}

View File

@ -0,0 +1,20 @@
import { StatusCode } from '@ucap-webmessenger/core';
export interface StatusInfo {
// 사용자SEQ
userSeq: number;
// 상태코드(PC)
pcStatus: StatusCode;
// 상태코드(통화)
phoneStatus: StatusCode;
// 상태코드(모바일)
mobileStatus: StatusCode;
// 상태코드(PC화상)
conferenceStatus: StatusCode;
// 상태메시지
statusMessage: string;
// 상태코드(Mobile화상)
mobileConferenceStatus: StatusCode;
// 상태코드(iMessenger)
imessengerStatus: StatusCode;
}

View File

@ -5,7 +5,7 @@ import {
BodyStringDivider BodyStringDivider
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { StatusCode } from '@ucap-webmessenger/core'; import { StatusCode } from '@ucap-webmessenger/core';
import { StatusInfo } from './status'; import { StatusInfo } from '../models/status-info';
export interface BuddyResponse extends ProtocolResponse { export interface BuddyResponse extends ProtocolResponse {
// {상태정보}... // {상태정보}...

View File

@ -9,12 +9,13 @@ import {
BodyStringDivider, BodyStringDivider,
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { StatusType, StatusCode } from '@ucap-webmessenger/core'; import { StatusCode } from '@ucap-webmessenger/core';
import { StatusInfo } from './status';
import { import {
TerminalStatusInfo, TerminalStatusInfo,
TerminalStatusNumber TerminalStatusNumber
} from '../types/terminal-status.type'; } from '../types/terminal-status.type';
import { StatusInfo } from '../models/status-info';
import { StatusBulkInfo } from '../models/status-bulk-info';
export interface BulkInfoRequest extends ProtocolRequest { export interface BulkInfoRequest extends ProtocolRequest {
/** DivCD(s) */ /** DivCD(s) */
@ -22,21 +23,7 @@ export interface BulkInfoRequest extends ProtocolRequest {
/** 사용자SEQ(n)[] */ /** 사용자SEQ(n)[] */
userSeqs: number[]; userSeqs: number[];
} }
export interface StatusBulkInfo extends StatusInfo {
// 사용자SEQ
// 상태코드(PC)
// 상태코드(통화)
// 상태코드(모바일)
// 상태코드(PC화상)
// 상태메시지
// 상태코드(Mobile화상)
// 상태코드(iMessenger)
/** 단말상태정보(s) */
terminalStatus: TerminalStatusInfo;
/** 단말상태번호(n) */
terminalStatusNumber: TerminalStatusNumber;
}
export interface BulkInfoData extends ProtocolStream { export interface BulkInfoData extends ProtocolStream {
/** DivCD(s) */ /** DivCD(s) */
divCd: string; divCd: string;

View File

@ -10,6 +10,7 @@ import {
ProtocolNotification ProtocolNotification
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { StatusType, StatusCode } from '@ucap-webmessenger/core'; import { StatusType, StatusCode } from '@ucap-webmessenger/core';
import { StatusInfo } from '../models/status-info';
export interface StatusRequest extends ProtocolRequest { export interface StatusRequest extends ProtocolRequest {
// 상태타입(s) // 상태타입(s)
@ -29,24 +30,6 @@ export interface StatusResponse extends ProtocolResponse {
statusMessage: string; statusMessage: string;
} }
export interface StatusInfo {
// 사용자SEQ
userSeq: number;
// 상태코드(PC)
pcStatus: StatusCode;
// 상태코드(통화)
phoneStatus: StatusCode;
// 상태코드(모바일)
mobileStatus: StatusCode;
// 상태코드(PC화상)
conferenceStatus: StatusCode;
// 상태메시지
statusMessage: string;
// 상태코드(Mobile화상)
mobileConferenceStatus: StatusCode;
// 상태코드(iMessenger)
imessengerStatus: StatusCode;
}
export interface StatusNotification extends StatusInfo, ProtocolNotification {} export interface StatusNotification extends StatusInfo, ProtocolNotification {}
export const encodeStatus: ProtocolEncoder<StatusRequest> = ( export const encodeStatus: ProtocolEncoder<StatusRequest> = (

View File

@ -10,7 +10,7 @@ import {
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { StatusCode } from '@ucap-webmessenger/core'; import { StatusCode } from '@ucap-webmessenger/core';
import { StatusInfo } from './status'; import { StatusInfo } from '../models/status-info';
export interface SubscribeRequest extends ProtocolRequest { export interface SubscribeRequest extends ProtocolRequest {
// 사용자SEQ(n)... // 사용자SEQ(n)...

View File

@ -5,7 +5,7 @@ import {
PacketBody, PacketBody,
PacketBodyValue PacketBodyValue
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { StatusInfo } from './status'; import { StatusInfo } from '../models/status-info';
export interface UnSubscribeRequest extends ProtocolRequest { export interface UnSubscribeRequest extends ProtocolRequest {
// 사용자SEQ(n)... // 사용자SEQ(n)...

View File

@ -9,7 +9,7 @@ import {
encodeStatus, encodeStatus,
decodeStatus, decodeStatus,
StatusResponse StatusResponse
} from '../models/status'; } from '../protocols/status';
import { import {
SVC_TYPE_STATUS, SVC_TYPE_STATUS,
SSVC_TYPE_STATUS_REQ, SSVC_TYPE_STATUS_REQ,
@ -28,21 +28,24 @@ import {
encodeBulkInfo, encodeBulkInfo,
decodeBulkInfo, decodeBulkInfo,
decodeBulkInfoData decodeBulkInfoData
} from '../models/bulk-info'; } from '../protocols/bulk-info';
import { BuddyResponse, decodeBuddy } from '../models/buddy'; import { BuddyResponse, decodeBuddy } from '../protocols/buddy';
import { import {
MessageUpdateRequest, MessageUpdateRequest,
MessageUpdateResponse, MessageUpdateResponse,
encodeMessageUpdate, encodeMessageUpdate,
decodeMessageUpdate decodeMessageUpdate
} from '../models/message-update'; } from '../protocols/message-update';
import { import {
SubscribeRequest, SubscribeRequest,
SubscribeResponse, SubscribeResponse,
decodeSubscribe, decodeSubscribe,
encodeSubscribe encodeSubscribe
} from '../models/subscribe'; } from '../protocols/subscribe';
import { UnSubscribeRequest, encodeUnSubscribe } from '../models/unsubscribe'; import {
UnSubscribeRequest,
encodeUnSubscribe
} from '../protocols/unsubscribe';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -1,13 +1,15 @@
/* /*
* Public API Surface of ucap-webmessenger-protocol-status * Public API Surface of ucap-webmessenger-protocol-status
*/ */
export * from './lib/models/status-bulk-info';
export * from './lib/models/status-info';
export * from './lib/models/buddy'; export * from './lib/protocols/buddy';
export * from './lib/models/bulk-info'; export * from './lib/protocols/bulk-info';
export * from './lib/models/message-update'; export * from './lib/protocols/message-update';
export * from './lib/models/status'; export * from './lib/protocols/status';
export * from './lib/models/subscribe'; export * from './lib/protocols/subscribe';
export * from './lib/models/unsubscribe'; export * from './lib/protocols/unsubscribe';
export * from './lib/services/status-protocol.service'; export * from './lib/services/status-protocol.service';

View File

@ -0,0 +1,8 @@
export interface BuddyInfo {
// 사용자SEQ
seq: number;
// 즐.찾 여부
isFavorit: boolean;
// 친구여부
isBuddy: boolean;
}

View File

@ -0,0 +1,10 @@
export interface GroupInfo {
// 그룹SEQ(n)
seq: number;
// 그룹이름(s)
name: string;
// ActiveYN(s)
isActive: boolean;
// 사용자SEQ(s)
userSeqStr: string;
}

View File

@ -11,15 +11,7 @@ import {
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { UserInfo } from '../types/userInfo'; import { UserInfo } from '../types/userInfo';
import { EmployeeType } from '@ucap-webmessenger/protocol-room'; import { EmployeeType } from '@ucap-webmessenger/protocol-room';
import { BuddyInfo } from '../models/buddy-info';
export interface BuddyInfo {
// 사용자SEQ
seq: number;
// 즐.찾 여부
isFavorit: boolean;
// 친구여부
isBuddy: boolean;
}
export interface BuddyRequest extends ProtocolRequest { export interface BuddyRequest extends ProtocolRequest {
// 0. 동료 씽크일시(s) cf)2019-09-24 16:51:42 // 0. 동료 씽크일시(s) cf)2019-09-24 16:51:42

View File

@ -9,17 +9,8 @@ import {
BodyStringDivider, BodyStringDivider,
ProtocolStream ProtocolStream
} from '@ucap-webmessenger/protocol'; } from '@ucap-webmessenger/protocol';
import { GroupInfo } from '../models/group-info';
export interface GroupInfo {
// 그룹SEQ(n)
seq: number;
// 그룹이름(s)
name: string;
// ActiveYN(s)
isActive: boolean;
// 사용자SEQ(s)
userSeqStr: string;
}
export interface GroupRequest extends ProtocolRequest { export interface GroupRequest extends ProtocolRequest {
// 0. 동료 씽크일시(s) cf)2019-09-24 16:51:42 // 0. 동료 씽크일시(s) cf)2019-09-24 16:51:42
syncDate: string; syncDate: string;

View File

@ -13,7 +13,7 @@ import {
decodeBuddy, decodeBuddy,
decodeBuddyDetailData, decodeBuddyDetailData,
BuddyDetailData BuddyDetailData
} from '../models/buddy'; } from '../protocols/buddy';
import { import {
SVC_TYPE_SYNC_BUDDY, SVC_TYPE_SYNC_BUDDY,
SSVC_TYPE_SYNC_BUDDY_REQ, SSVC_TYPE_SYNC_BUDDY_REQ,
@ -50,7 +50,7 @@ import {
decodeGroup, decodeGroup,
decodeGroupData, decodeGroupData,
GroupDetailData GroupDetailData
} from '../models/group'; } from '../protocols/group';
import { import {
RoomRequest, RoomRequest,
RoomResponse, RoomResponse,
@ -62,7 +62,7 @@ import {
decodeRoomData, decodeRoomData,
decodeRoomUserData, decodeRoomUserData,
decodeRoomUserDataDetail decodeRoomUserDataDetail
} from '../models/room'; } from '../protocols/room';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

@ -1,9 +1,13 @@
/* /*
* Public API Surface of ucap-webmessenger-protocol-sync * Public API Surface of ucap-webmessenger-protocol-sync
*/ */
export * from './lib/models/buddy';
export * from './lib/models/group'; export * from './lib/models/buddy-info';
export * from './lib/models/room'; export * from './lib/models/group-info';
export * from './lib/protocols/buddy';
export * from './lib/protocols/group';
export * from './lib/protocols/room';
export * from './lib/services/sync-protocol.service'; export * from './lib/services/sync-protocol.service';

View File

@ -13,14 +13,14 @@ import {
import { _MODULE_CONFIG } from '../types/token'; import { _MODULE_CONFIG } from '../types/token';
import { ModuleConfig } from '../types/module-config'; import { ModuleConfig } from '../types/module-config';
import { PacketBody } from '../models/packet'; import { PacketBody } from '../protocols/packet';
import { import {
PacketBodyValueDivider, PacketBodyValueDivider,
PacketBodyDivider PacketBodyDivider
} from '../types/packet-body-divider'; } from '../types/packet-body-divider';
import { PacketBodyValue } from '../types/packet-body-value.type'; import { PacketBodyValue } from '../types/packet-body-value.type';
import { SSVC_TYPE_ERROR_RES, ServerErrorCode } from '../types/service'; import { SSVC_TYPE_ERROR_RES, ServerErrorCode } from '../types/service';
import { ProtocolMessage } from '../models/protocol'; import { ProtocolMessage } from '../protocols/protocol';
import { NGXLogger } from 'ngx-logger'; import { NGXLogger } from 'ngx-logger';

View File

@ -2,8 +2,8 @@
* Public API Surface of ucap-webmessenger-protocol * Public API Surface of ucap-webmessenger-protocol
*/ */
export * from './lib/models/packet'; export * from './lib/protocols/packet';
export * from './lib/models/protocol'; export * from './lib/protocols/protocol';
export * from './lib/services/protocol.service'; export * from './lib/services/protocol.service';

Some files were not shown because too many files have changed in this diff Show More