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.
Files changed (75) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/client.d.ts +7 -1
  3. package/dist/src/client.d.ts.map +1 -1
  4. package/dist/src/client.js +13 -11
  5. package/dist/src/client.js.map +1 -1
  6. package/dist/src/commands/auth.d.ts +1 -1
  7. package/dist/src/commands/auth.d.ts.map +1 -1
  8. package/dist/src/commands/auth.js +94 -52
  9. package/dist/src/commands/auth.js.map +1 -1
  10. package/dist/src/constants.d.ts +40 -0
  11. package/dist/src/constants.d.ts.map +1 -1
  12. package/dist/src/constants.js +42 -0
  13. package/dist/src/constants.js.map +1 -1
  14. package/dist/src/formatters.d.ts.map +1 -1
  15. package/dist/src/formatters.js +42 -16
  16. package/dist/src/formatters.js.map +1 -1
  17. package/dist/src/index.d.ts +3 -0
  18. package/dist/src/index.d.ts.map +1 -1
  19. package/dist/src/index.js +2 -0
  20. package/dist/src/index.js.map +1 -1
  21. package/dist/src/shared/utils/swmaestro.d.ts.map +1 -1
  22. package/dist/src/shared/utils/swmaestro.js +1 -5
  23. package/dist/src/shared/utils/swmaestro.js.map +1 -1
  24. package/dist/src/shared/utils/toz.d.ts +23 -0
  25. package/dist/src/shared/utils/toz.d.ts.map +1 -0
  26. package/dist/src/shared/utils/toz.js +72 -0
  27. package/dist/src/shared/utils/toz.js.map +1 -0
  28. package/dist/src/token-extractor.d.ts +9 -1
  29. package/dist/src/token-extractor.d.ts.map +1 -1
  30. package/dist/src/token-extractor.js +54 -10
  31. package/dist/src/token-extractor.js.map +1 -1
  32. package/dist/src/toz-formatters.d.ts +9 -0
  33. package/dist/src/toz-formatters.d.ts.map +1 -0
  34. package/dist/src/toz-formatters.js +151 -0
  35. package/dist/src/toz-formatters.js.map +1 -0
  36. package/dist/src/toz-http.d.ts +27 -0
  37. package/dist/src/toz-http.d.ts.map +1 -0
  38. package/dist/src/toz-http.js +154 -0
  39. package/dist/src/toz-http.js.map +1 -0
  40. package/dist/src/types.d.ts +52 -0
  41. package/dist/src/types.d.ts.map +1 -1
  42. package/dist/src/types.js +46 -0
  43. package/dist/src/types.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/__fixtures__/toz/toz_all_branches.json +211 -0
  46. package/src/__fixtures__/toz/toz_booking.html +2190 -0
  47. package/src/__fixtures__/toz/toz_boothes.json +59 -0
  48. package/src/__fixtures__/toz/toz_duration.json +25 -0
  49. package/src/__fixtures__/toz/toz_mypage_response.html +388 -0
  50. package/src/__fixtures__/toz/toz_page.html +211 -0
  51. package/src/client.test.ts +135 -117
  52. package/src/client.ts +16 -12
  53. package/src/commands/auth.test.ts +7 -7
  54. package/src/commands/auth.ts +107 -50
  55. package/src/commands/helpers.test.ts +8 -8
  56. package/src/commands/report.test.ts +7 -7
  57. package/src/constants.ts +50 -0
  58. package/src/credential-manager.test.ts +5 -5
  59. package/src/formatters.test.ts +22 -22
  60. package/src/formatters.ts +44 -16
  61. package/src/http.test.ts +37 -37
  62. package/src/index.ts +3 -0
  63. package/src/shared/utils/mentoring-params.test.ts +16 -16
  64. package/src/shared/utils/swmaestro.test.ts +87 -8
  65. package/src/shared/utils/swmaestro.ts +1 -6
  66. package/src/shared/utils/toz.test.ts +138 -0
  67. package/src/shared/utils/toz.ts +100 -0
  68. package/src/token-extractor.test.ts +40 -15
  69. package/src/token-extractor.ts +65 -13
  70. package/src/toz-formatters.test.ts +197 -0
  71. package/src/toz-formatters.ts +211 -0
  72. package/src/toz-http.test.ts +157 -0
  73. package/src/toz-http.ts +188 -0
  74. package/src/types.test.ts +220 -204
  75. 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
+ ]