From 8038c8de39a1f0ee5be1c5ca173a1027cf7706e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=A5=EC=A7=80=ED=9B=88?= Date: Sun, 6 Mar 2022 02:20:26 +0900 Subject: [PATCH] chore(): 1.0.0 --- README.md | 39 ++++++++++++++++++--------------------- package.json | 2 +- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index dea3912..f6e3546 100644 --- a/README.md +++ b/README.md @@ -16,29 +16,26 @@ async function main() { const theCampClient = new TheCampClient(); await theCampClient.login({ - id: 'id@test.com', - password: '{password}', + id: 'email@test.com', + password: 'password', }); - await theCampClient.sendLetter( - { - 성분: '예비군인/훈련병', - 군종: '육군', - 이름: '홍길동', - 입영부대: '육군훈련소-논산', - 관계: '팬', - 생년월일: '2001-01-01', - 입영일: '2022-02-14', - 전화번호: '01012341234', - }, - { - 작성자: '장지훈', - 제목: `내용은 곧 제목`, - 내용: `제목은 - 곧 - 내용`, - }, - ); + const soldierIdentifier = await theCampClient.registerSoldier({ + 성분: '예비군인/훈련병', + 군종: '육군', + 이름: '홍길동', + 입영부대: '육군훈련소-논산', + 관계: '팬', + 생년월일: '2001-11-26', + 입영일: '2022-02-14', + 전화번호: '01094862564', + }); + + await theCampClient.sendLetter(soldierIdentifier, { + 작성자: '장지훈', + 제목: `내용은 곧 제목22`, + 내용: `제목은 곧 내용`, + }); } main(); diff --git a/package.json b/package.json index 405747d..0eb653b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "the-camp", - "version": "0.0.3", + "version": "1.0.0", "main": "lib/index.js", "types": "lib/index.d.ts", "repository": "git@github.com:whitekiwi/the-camp.git",