@lemoncloud/ssocio-stacks-api 0.23.313
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/README.md +4 -0
- package/dist/cores/abstract-controllers.d.ts +175 -0
- package/dist/cores/abstract-rest-apis.d.ts +111 -0
- package/dist/cores/abstract-services.d.ts +220 -0
- package/dist/cores/commons.d.ts +32 -0
- package/dist/cores/index.d.ts +14 -0
- package/dist/cores/types.d.ts +108 -0
- package/dist/lib/categories-types.d.ts +33 -0
- package/dist/lib/types.d.ts +34 -0
- package/dist/service/backend-model.d.ts +524 -0
- package/dist/service/backend-types.d.ts +311 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/view/types.d.ts +204 -0
- package/package.json +24 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `types.ts`
|
|
3
|
+
* - view types used in API controllers and transformer
|
|
4
|
+
*
|
|
5
|
+
* @author Steve <steve@lemoncloud.io>
|
|
6
|
+
* @date 2022-06-21 optimized w/ `abstract-services`
|
|
7
|
+
*
|
|
8
|
+
* @copyright (C) 2022 LemonCloud Co Ltd. - All Rights Reserved.
|
|
9
|
+
*/
|
|
10
|
+
import { View, Body } from '../cores/types';
|
|
11
|
+
import { BankModel, TestModel, ProgramModel, CategoryModel, PaymentModel, CancelModel, DisplayModel, PeriodEnrollModel, TimeEnrollModel, PushNotificationModel, ProgramOperatorModel, FirmModel } from '../service/backend-model';
|
|
12
|
+
/**
|
|
13
|
+
* type: `CategoryView`
|
|
14
|
+
*/
|
|
15
|
+
export interface CategoryView extends View, Omit<Partial<CategoryModel>, 'hidden'> {
|
|
16
|
+
/** hidden(숨김) flag */
|
|
17
|
+
hidden?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* type: `CategoryBody`
|
|
21
|
+
*/
|
|
22
|
+
export interface CategoryBody extends Body, Partial<CategoryView> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* type: `ProgramView`
|
|
26
|
+
*/
|
|
27
|
+
export interface ProgramView extends View, Omit<Partial<ProgramModel>, 'payment$' | 'cancel$' | 'display$' | 'period$' | 'time$' | 'push$' | 'operator$' | 'useNumOfPeopleLimit' | 'useImage' | 'useFacilityInfo' | 'useAutoExtend' | 'usePushNotification'> {
|
|
28
|
+
/** (optional) 프로그램 결제 정보를 보여줌 */
|
|
29
|
+
readonly payment$?: PaymentView;
|
|
30
|
+
/** (optional) 프로그램 취소 정보를 보여줌 */
|
|
31
|
+
readonly cancel$?: CancelView;
|
|
32
|
+
/** (optional) 프로그램 결제 정보를 보여줌 */
|
|
33
|
+
readonly display$?: DisplayView;
|
|
34
|
+
/** (optional) 프로그램 기간 신청 관리 정보를 보여줌 */
|
|
35
|
+
readonly period$?: PeriodEnrollView;
|
|
36
|
+
/** (optional) 프로그램 시간 신청 관리 정보를 보여줌 */
|
|
37
|
+
readonly time$?: TimeEnrollView;
|
|
38
|
+
/** (optional) 푸쉬 관리 정보를 보여줌 */
|
|
39
|
+
readonly push$?: PushNotificationView;
|
|
40
|
+
/** (optional) 업체/강사 관리 정보를 보여줌 */
|
|
41
|
+
readonly operator$?: ProgramOperatorView;
|
|
42
|
+
/** flag of use 인원 제한 */
|
|
43
|
+
useNumOfPeopleLimit?: boolean;
|
|
44
|
+
/** flag of use 이미지 사용 */
|
|
45
|
+
useImage?: boolean;
|
|
46
|
+
/** flag of use 시설 정보 */
|
|
47
|
+
useFacilityInfo?: boolean;
|
|
48
|
+
/** flag of use 자동 연장 */
|
|
49
|
+
useAutoExtend?: boolean;
|
|
50
|
+
/** flag of use 푸쉬 알람 */
|
|
51
|
+
usePushNotification?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* type: `ProgramBody`
|
|
55
|
+
*/
|
|
56
|
+
export interface ProgramBody extends Body, Omit<Partial<ProgramView>, 'payment$' | 'cancel$' | 'display$' | 'period$' | 'time$' | 'operator$'> {
|
|
57
|
+
/** (optional) 프로그램 결제 정보를 가짐 */
|
|
58
|
+
payment$?: PaymentBody;
|
|
59
|
+
/** (optional) 프로그램 취소 정보를 가짐 */
|
|
60
|
+
cancel$?: CancelBody;
|
|
61
|
+
/** (optional) 프로그램 결제 정보를 가짐 */
|
|
62
|
+
display$?: DisplayBody;
|
|
63
|
+
/** (optional) 프로그램 기간 신청 관리 정보를 가짐 */
|
|
64
|
+
period$?: PeriodEnrollBody;
|
|
65
|
+
/** (optional) 프로그램 시간 신청 관리 정보를 가짐 */
|
|
66
|
+
time$?: TimeEnrollBody;
|
|
67
|
+
/** (optional) 업체/강사 관리 정보를 가짐 */
|
|
68
|
+
operator$?: ProgramOperatorBody;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* type: `PaymentView`
|
|
72
|
+
*/
|
|
73
|
+
export interface PaymentView extends View, Omit<Partial<PaymentModel>, 'useTenant'> {
|
|
74
|
+
/** 세대원 선택 여부 flag*/
|
|
75
|
+
useTenant?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* type: `PaymentBody`
|
|
79
|
+
*/
|
|
80
|
+
export interface PaymentBody extends Body, Partial<PaymentView> {
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* type: `CancelView`
|
|
84
|
+
*/
|
|
85
|
+
export interface CancelView extends View, Omit<Partial<CancelModel>, 'useCancellationPeriod' | 'usePenalty' | 'useCollectReason'> {
|
|
86
|
+
/** 취소 기간 사용 (허용) 여부 flag*/
|
|
87
|
+
useCancellationPeriod?: boolean;
|
|
88
|
+
/** 위약금 사용 여부 flag */
|
|
89
|
+
usePenalty?: boolean;
|
|
90
|
+
/** 취소 사유 수집 사용 여부 flag */
|
|
91
|
+
useCollectReason?: boolean;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* type: `CancelBody`
|
|
95
|
+
*/
|
|
96
|
+
export interface CancelBody extends Body, Partial<CancelView> {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* type: `DisplayView`
|
|
100
|
+
*/
|
|
101
|
+
export interface DisplayView extends View, Omit<Partial<DisplayModel>, 'useDisplay'> {
|
|
102
|
+
/** 노출 상태 여부 flag */
|
|
103
|
+
useDisplay?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* type: `DisplayBody`
|
|
107
|
+
*/
|
|
108
|
+
export interface DisplayBody extends Body, Partial<DisplayView> {
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* type: `PeriodEnrollView`
|
|
112
|
+
*/
|
|
113
|
+
export interface PeriodEnrollView extends View, Omit<Partial<PeriodEnrollModel>, 'useMonthly' | 'useDaily' | 'useEarlyRegister' | 'useAutoExtension'> {
|
|
114
|
+
/** 월권 신청 사용 여부 flag */
|
|
115
|
+
useMonthly?: boolean;
|
|
116
|
+
/** 일권 신청 사용 여부 flag */
|
|
117
|
+
useDaily?: boolean;
|
|
118
|
+
/** 우선 등록 여부 flag */
|
|
119
|
+
useEarlyRegister?: boolean;
|
|
120
|
+
/** 자동 연장 사용 여부 flag */
|
|
121
|
+
useAutoExtension?: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* type: `PeriodEnrollBody`
|
|
125
|
+
*/
|
|
126
|
+
export interface PeriodEnrollBody extends Body, Partial<PeriodEnrollView> {
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* type: `TimeEnrollView`
|
|
130
|
+
*/
|
|
131
|
+
export interface TimeEnrollView extends View, Omit<Partial<TimeEnrollModel>, 'useTimeLimit' | 'useDayOfTheWeekPolicy'> {
|
|
132
|
+
/** 시간 제한 사용 여부 flag */
|
|
133
|
+
useTimeLimit?: boolean;
|
|
134
|
+
/** 요일 정책 사용 여부 flag */
|
|
135
|
+
useDayOfTheWeekPolicy?: boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* type: `TimeEnrollBody`
|
|
139
|
+
*/
|
|
140
|
+
export interface TimeEnrollBody extends Body, Partial<TimeEnrollView> {
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* type: `PushNotificationView`
|
|
144
|
+
*/
|
|
145
|
+
export interface PushNotificationView extends View, Partial<PushNotificationModel> {
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* type: `PushNotificationBody`
|
|
149
|
+
*/
|
|
150
|
+
export interface PushNotificationBody extends Body, Partial<PushNotificationView> {
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* type: `ProgramOperatorView`
|
|
154
|
+
*/
|
|
155
|
+
export interface ProgramOperatorView extends View, Omit<Partial<ProgramOperatorModel>, 'useProfileDisplay'> {
|
|
156
|
+
/** 프로필 노출 여부 flag */
|
|
157
|
+
useProfileDisplay?: boolean;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* type: `ProgramOperatorBody`
|
|
161
|
+
*/
|
|
162
|
+
export interface ProgramOperatorBody extends Body, Partial<ProgramOperatorView> {
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* type: `FirmView`
|
|
166
|
+
*/
|
|
167
|
+
export interface FirmView extends View, Omit<Partial<FirmModel>, 'isValid'> {
|
|
168
|
+
/** 협력 업체 유효 여부 flag */
|
|
169
|
+
isValid?: boolean;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* type: `FirmBody`
|
|
173
|
+
*/
|
|
174
|
+
export interface FirmBody extends Body, Partial<FirmView> {
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* type: `TestView`
|
|
178
|
+
* - usually same as post's body.
|
|
179
|
+
*/
|
|
180
|
+
export interface TestView extends View, Omit<Partial<TestModel>, 'id' | 'required'> {
|
|
181
|
+
/**
|
|
182
|
+
* unique id of this type
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* (optional) flag required.
|
|
187
|
+
*/
|
|
188
|
+
required?: boolean;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Type `TestBody`
|
|
192
|
+
*/
|
|
193
|
+
export interface TestBody extends Body, Partial<TestView> {
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* type `BankView` (은행)
|
|
197
|
+
*/
|
|
198
|
+
export interface BankView extends View, Partial<BankModel> {
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* type `BankBody` (은행)
|
|
202
|
+
*/
|
|
203
|
+
export interface BankBody extends Body, Partial<BankView> {
|
|
204
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lemoncloud/ssocio-stacks-api",
|
|
3
|
+
"version": "0.23.313",
|
|
4
|
+
"description": "ssocio stacks management api",
|
|
5
|
+
"types": "dist/view/types.d.ts",
|
|
6
|
+
"scripts": {},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"lemon-model": "^1.0.2"
|
|
9
|
+
},
|
|
10
|
+
"browser": {
|
|
11
|
+
"fs": false
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"lib/**/*",
|
|
15
|
+
"dist/**/*",
|
|
16
|
+
"example/**/*"
|
|
17
|
+
],
|
|
18
|
+
"private": false,
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"author": "Steve Jung (steve@lemoncloud.io)",
|
|
23
|
+
"license": "MIT"
|
|
24
|
+
}
|