opensoma 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/src/client.d.ts +7 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +13 -11
- package/dist/src/client.js.map +1 -1
- package/dist/src/commands/auth.d.ts +1 -1
- package/dist/src/commands/auth.d.ts.map +1 -1
- package/dist/src/commands/auth.js +94 -52
- package/dist/src/commands/auth.js.map +1 -1
- package/dist/src/constants.d.ts +40 -0
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +42 -0
- package/dist/src/constants.js.map +1 -1
- package/dist/src/formatters.d.ts.map +1 -1
- package/dist/src/formatters.js +42 -16
- package/dist/src/formatters.js.map +1 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/shared/utils/swmaestro.d.ts.map +1 -1
- package/dist/src/shared/utils/swmaestro.js +1 -5
- package/dist/src/shared/utils/swmaestro.js.map +1 -1
- package/dist/src/shared/utils/toz.d.ts +23 -0
- package/dist/src/shared/utils/toz.d.ts.map +1 -0
- package/dist/src/shared/utils/toz.js +72 -0
- package/dist/src/shared/utils/toz.js.map +1 -0
- package/dist/src/token-extractor.d.ts +9 -1
- package/dist/src/token-extractor.d.ts.map +1 -1
- package/dist/src/token-extractor.js +54 -10
- package/dist/src/token-extractor.js.map +1 -1
- package/dist/src/toz-formatters.d.ts +9 -0
- package/dist/src/toz-formatters.d.ts.map +1 -0
- package/dist/src/toz-formatters.js +151 -0
- package/dist/src/toz-formatters.js.map +1 -0
- package/dist/src/toz-http.d.ts +27 -0
- package/dist/src/toz-http.d.ts.map +1 -0
- package/dist/src/toz-http.js +154 -0
- package/dist/src/toz-http.js.map +1 -0
- package/dist/src/types.d.ts +52 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +46 -0
- package/dist/src/types.js.map +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/toz/toz_all_branches.json +211 -0
- package/src/__fixtures__/toz/toz_booking.html +2190 -0
- package/src/__fixtures__/toz/toz_boothes.json +59 -0
- package/src/__fixtures__/toz/toz_duration.json +25 -0
- package/src/__fixtures__/toz/toz_mypage_response.html +388 -0
- package/src/__fixtures__/toz/toz_page.html +211 -0
- package/src/client.test.ts +135 -117
- package/src/client.ts +16 -12
- package/src/commands/auth.test.ts +7 -7
- package/src/commands/auth.ts +107 -50
- package/src/commands/helpers.test.ts +8 -8
- package/src/commands/report.test.ts +7 -7
- package/src/constants.ts +50 -0
- package/src/credential-manager.test.ts +5 -5
- package/src/formatters.test.ts +22 -22
- package/src/formatters.ts +44 -16
- package/src/http.test.ts +37 -37
- package/src/index.ts +3 -0
- package/src/shared/utils/mentoring-params.test.ts +16 -16
- package/src/shared/utils/swmaestro.test.ts +87 -8
- package/src/shared/utils/swmaestro.ts +1 -6
- package/src/shared/utils/toz.test.ts +138 -0
- package/src/shared/utils/toz.ts +100 -0
- package/src/token-extractor.test.ts +40 -15
- package/src/token-extractor.ts +65 -13
- package/src/toz-formatters.test.ts +197 -0
- package/src/toz-formatters.ts +211 -0
- package/src/toz-http.test.ts +157 -0
- package/src/toz-http.ts +188 -0
- package/src/types.test.ts +220 -204
- package/src/types.ts +58 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"resultMsg": "SUCCESS",
|
|
4
|
+
"id": 740,
|
|
5
|
+
"branchName": "토즈타워점",
|
|
6
|
+
"branchTel": "02-3454-0116",
|
|
7
|
+
"name": "304 _ A",
|
|
8
|
+
"minUseUserCount": 1,
|
|
9
|
+
"enableMaxUserCount": 2,
|
|
10
|
+
"boothGroupName": "2인부스 A타입",
|
|
11
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=28&url=&path=",
|
|
12
|
+
"boothMemoForUser": "15,000원(기본2시간) / 기업, 학생할인 적용",
|
|
13
|
+
"durationTime": null,
|
|
14
|
+
"possDate": null,
|
|
15
|
+
"possStartTime": null,
|
|
16
|
+
"possEndTime": null,
|
|
17
|
+
"specialDiscount": null,
|
|
18
|
+
"isLargeBooth": false,
|
|
19
|
+
"s_possDate": null
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"resultMsg": "SUCCESS",
|
|
23
|
+
"id": 737,
|
|
24
|
+
"branchName": "토즈타워점",
|
|
25
|
+
"branchTel": "02-3454-0116",
|
|
26
|
+
"name": "303 _ A",
|
|
27
|
+
"minUseUserCount": 1,
|
|
28
|
+
"enableMaxUserCount": 2,
|
|
29
|
+
"boothGroupName": "좌식(1~2인부스) A타입",
|
|
30
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=28&url=&path=",
|
|
31
|
+
"boothMemoForUser": "15,000원(기본2시간) / 모니터 무료 / 기업, 학생할인 적용",
|
|
32
|
+
"durationTime": null,
|
|
33
|
+
"possDate": null,
|
|
34
|
+
"possStartTime": null,
|
|
35
|
+
"possEndTime": null,
|
|
36
|
+
"specialDiscount": null,
|
|
37
|
+
"isLargeBooth": false,
|
|
38
|
+
"s_possDate": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"resultMsg": "SUCCESS",
|
|
42
|
+
"id": 745,
|
|
43
|
+
"branchName": "토즈타워점",
|
|
44
|
+
"branchTel": "02-3454-0116",
|
|
45
|
+
"name": "311 _ B",
|
|
46
|
+
"minUseUserCount": 2,
|
|
47
|
+
"enableMaxUserCount": 4,
|
|
48
|
+
"boothGroupName": "3~4인 부스 B타입",
|
|
49
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=28&url=&path=",
|
|
50
|
+
"boothMemoForUser": "25,000원(기본2시간) / 모니터 무료 / 기업, 학생할인 적용",
|
|
51
|
+
"durationTime": null,
|
|
52
|
+
"possDate": null,
|
|
53
|
+
"possStartTime": null,
|
|
54
|
+
"possEndTime": null,
|
|
55
|
+
"specialDiscount": null,
|
|
56
|
+
"isLargeBooth": false,
|
|
57
|
+
"s_possDate": null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"resultMsg": "SUCCESS",
|
|
61
|
+
"id": 369,
|
|
62
|
+
"branchName": "양재점",
|
|
63
|
+
"branchTel": "02-2058-0118",
|
|
64
|
+
"name": "Y.10_A",
|
|
65
|
+
"minUseUserCount": 2,
|
|
66
|
+
"enableMaxUserCount": 3,
|
|
67
|
+
"boothGroupName": "A타입(최대3인)",
|
|
68
|
+
"boothGroupUrl": "https://moim.toz.co.kr/boothDetail/413",
|
|
69
|
+
"boothMemoForUser": "",
|
|
70
|
+
"durationTime": null,
|
|
71
|
+
"possDate": null,
|
|
72
|
+
"possStartTime": null,
|
|
73
|
+
"possEndTime": null,
|
|
74
|
+
"specialDiscount": null,
|
|
75
|
+
"isLargeBooth": false,
|
|
76
|
+
"s_possDate": null
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"resultMsg": "SUCCESS",
|
|
80
|
+
"id": 387,
|
|
81
|
+
"branchName": "건대점",
|
|
82
|
+
"branchTel": "02-467-0116",
|
|
83
|
+
"name": "11 _ A",
|
|
84
|
+
"minUseUserCount": 2,
|
|
85
|
+
"enableMaxUserCount": 2,
|
|
86
|
+
"boothGroupName": "A타입 (최대3인)",
|
|
87
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=39&url=&path=",
|
|
88
|
+
"boothMemoForUser": "",
|
|
89
|
+
"durationTime": null,
|
|
90
|
+
"possDate": null,
|
|
91
|
+
"possStartTime": null,
|
|
92
|
+
"possEndTime": null,
|
|
93
|
+
"specialDiscount": null,
|
|
94
|
+
"isLargeBooth": false,
|
|
95
|
+
"s_possDate": null
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"resultMsg": "SUCCESS",
|
|
99
|
+
"id": 282,
|
|
100
|
+
"branchName": "선릉점",
|
|
101
|
+
"branchTel": "02-2052-0113",
|
|
102
|
+
"name": "2-3 B",
|
|
103
|
+
"minUseUserCount": 2,
|
|
104
|
+
"enableMaxUserCount": 4,
|
|
105
|
+
"boothGroupName": "B타입 최대4인",
|
|
106
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=31&url=&path=",
|
|
107
|
+
"boothMemoForUser": "",
|
|
108
|
+
"durationTime": null,
|
|
109
|
+
"possDate": null,
|
|
110
|
+
"possStartTime": null,
|
|
111
|
+
"possEndTime": null,
|
|
112
|
+
"specialDiscount": null,
|
|
113
|
+
"isLargeBooth": false,
|
|
114
|
+
"s_possDate": null
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"resultMsg": "SUCCESS",
|
|
118
|
+
"id": 283,
|
|
119
|
+
"branchName": "선릉점",
|
|
120
|
+
"branchTel": "02-2052-0113",
|
|
121
|
+
"name": "2-2 A",
|
|
122
|
+
"minUseUserCount": 2,
|
|
123
|
+
"enableMaxUserCount": 2,
|
|
124
|
+
"boothGroupName": "A타입 최대2인",
|
|
125
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=31&url=&path=",
|
|
126
|
+
"boothMemoForUser": "",
|
|
127
|
+
"durationTime": null,
|
|
128
|
+
"possDate": null,
|
|
129
|
+
"possStartTime": null,
|
|
130
|
+
"possEndTime": null,
|
|
131
|
+
"specialDiscount": null,
|
|
132
|
+
"isLargeBooth": false,
|
|
133
|
+
"s_possDate": null
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"resultMsg": "SUCCESS",
|
|
137
|
+
"id": 4252,
|
|
138
|
+
"branchName": "역삼",
|
|
139
|
+
"branchTel": "",
|
|
140
|
+
"name": "09 _ A",
|
|
141
|
+
"minUseUserCount": 2,
|
|
142
|
+
"enableMaxUserCount": 2,
|
|
143
|
+
"boothGroupName": "A타입(2~3인)",
|
|
144
|
+
"boothGroupUrl": "https://work.toz.co.kr/branchDetail?branch_id=27&url=&path=",
|
|
145
|
+
"boothMemoForUser": "",
|
|
146
|
+
"durationTime": null,
|
|
147
|
+
"possDate": null,
|
|
148
|
+
"possStartTime": null,
|
|
149
|
+
"possEndTime": null,
|
|
150
|
+
"specialDiscount": null,
|
|
151
|
+
"isLargeBooth": false,
|
|
152
|
+
"s_possDate": null
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"resultMsg": "SUCCESS",
|
|
156
|
+
"id": 4186,
|
|
157
|
+
"branchName": "광화문",
|
|
158
|
+
"branchTel": "02-735-0022",
|
|
159
|
+
"name": "11 _ A",
|
|
160
|
+
"minUseUserCount": 2,
|
|
161
|
+
"enableMaxUserCount": 2,
|
|
162
|
+
"boothGroupName": "A타입 최대2인",
|
|
163
|
+
"boothGroupUrl": "https://work.toz.co.kr/branchDetail?branch_id=36&url=&path=",
|
|
164
|
+
"boothMemoForUser": "",
|
|
165
|
+
"durationTime": null,
|
|
166
|
+
"possDate": null,
|
|
167
|
+
"possStartTime": null,
|
|
168
|
+
"possEndTime": null,
|
|
169
|
+
"specialDiscount": null,
|
|
170
|
+
"isLargeBooth": false,
|
|
171
|
+
"s_possDate": null
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"resultMsg": "SUCCESS",
|
|
175
|
+
"id": 4188,
|
|
176
|
+
"branchName": "광화문",
|
|
177
|
+
"branchTel": "02-735-0022",
|
|
178
|
+
"name": "06 _ B",
|
|
179
|
+
"minUseUserCount": 2,
|
|
180
|
+
"enableMaxUserCount": 3,
|
|
181
|
+
"boothGroupName": "B타입 최대3인",
|
|
182
|
+
"boothGroupUrl": "https://work.toz.co.kr/branchDetail?branch_id=36&url=&path=",
|
|
183
|
+
"boothMemoForUser": "",
|
|
184
|
+
"durationTime": null,
|
|
185
|
+
"possDate": null,
|
|
186
|
+
"possStartTime": null,
|
|
187
|
+
"possEndTime": null,
|
|
188
|
+
"specialDiscount": null,
|
|
189
|
+
"isLargeBooth": false,
|
|
190
|
+
"s_possDate": null
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"resultMsg": "SUCCESS",
|
|
194
|
+
"id": 4412,
|
|
195
|
+
"branchName": "홍대점2",
|
|
196
|
+
"branchTel": "",
|
|
197
|
+
"name": "02. A",
|
|
198
|
+
"minUseUserCount": 2,
|
|
199
|
+
"enableMaxUserCount": 2,
|
|
200
|
+
"boothGroupName": "A타입(최대2인)",
|
|
201
|
+
"boothGroupUrl": "https://moim.toz.co.kr/branchDetail?branch_id=742",
|
|
202
|
+
"boothMemoForUser": "",
|
|
203
|
+
"durationTime": null,
|
|
204
|
+
"possDate": null,
|
|
205
|
+
"possStartTime": null,
|
|
206
|
+
"possEndTime": null,
|
|
207
|
+
"specialDiscount": null,
|
|
208
|
+
"isLargeBooth": false,
|
|
209
|
+
"s_possDate": null
|
|
210
|
+
}
|
|
211
|
+
]
|