@spfn/cms 0.1.0-alpha.63 → 0.1.0-alpha.64
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.
|
@@ -99,8 +99,8 @@ declare const cmsLabelValuesRepository: {
|
|
|
99
99
|
* 섹션 + 언어 + 사용자로 초안 캐시 조회
|
|
100
100
|
*/
|
|
101
101
|
declare function findByUser(section: string, locale: string, userId: string): Promise<{
|
|
102
|
-
section: string;
|
|
103
102
|
locale: string;
|
|
103
|
+
section: string;
|
|
104
104
|
content: unknown;
|
|
105
105
|
id: number;
|
|
106
106
|
updatedAt: Date;
|
|
@@ -110,8 +110,8 @@ declare function findByUser(section: string, locale: string, userId: string): Pr
|
|
|
110
110
|
* 초안 캐시 생성 또는 업데이트 (UPSERT)
|
|
111
111
|
*/
|
|
112
112
|
declare function upsert$1(data: NewCmsDraftCache): Promise<{
|
|
113
|
-
section: string;
|
|
114
113
|
locale: string;
|
|
114
|
+
section: string;
|
|
115
115
|
content: unknown;
|
|
116
116
|
id: number;
|
|
117
117
|
updatedAt: Date;
|
|
@@ -121,8 +121,8 @@ declare function upsert$1(data: NewCmsDraftCache): Promise<{
|
|
|
121
121
|
* 특정 사용자의 모든 초안 조회
|
|
122
122
|
*/
|
|
123
123
|
declare function findAllByUser(userId: string): Promise<{
|
|
124
|
-
section: string;
|
|
125
124
|
locale: string;
|
|
125
|
+
section: string;
|
|
126
126
|
content: unknown;
|
|
127
127
|
id: number;
|
|
128
128
|
updatedAt: Date;
|
|
@@ -136,8 +136,8 @@ declare function deleteByUser(section: string, locale: string, userId: string):
|
|
|
136
136
|
* 오래된 초안 정리 (30일 이상 미사용)
|
|
137
137
|
*/
|
|
138
138
|
declare function cleanupOldDrafts(daysOld?: number): Promise<{
|
|
139
|
-
section: string;
|
|
140
139
|
locale: string;
|
|
140
|
+
section: string;
|
|
141
141
|
content: unknown;
|
|
142
142
|
id: number;
|
|
143
143
|
updatedAt: Date;
|
|
@@ -161,8 +161,8 @@ declare const cmsDraftCacheRepository: {
|
|
|
161
161
|
* 섹션 + 언어로 발행된 캐시 조회
|
|
162
162
|
*/
|
|
163
163
|
declare function findBySection(section: string, locale?: string): Promise<{
|
|
164
|
-
section: string;
|
|
165
164
|
locale: string;
|
|
165
|
+
section: string;
|
|
166
166
|
content: unknown;
|
|
167
167
|
version: number;
|
|
168
168
|
publishedAt: Date;
|
|
@@ -173,8 +173,8 @@ declare function findBySection(section: string, locale?: string): Promise<{
|
|
|
173
173
|
* 캐시 생성 또는 업데이트 (UPSERT)
|
|
174
174
|
*/
|
|
175
175
|
declare function upsert(data: NewCmsPublishedCache): Promise<{
|
|
176
|
-
section: string;
|
|
177
176
|
locale: string;
|
|
177
|
+
section: string;
|
|
178
178
|
content: unknown;
|
|
179
179
|
version: number;
|
|
180
180
|
publishedAt: Date;
|
|
@@ -185,8 +185,8 @@ declare function upsert(data: NewCmsPublishedCache): Promise<{
|
|
|
185
185
|
* 섹션별 모든 언어 캐시 조회
|
|
186
186
|
*/
|
|
187
187
|
declare function findAllLanguages(section: string): Promise<{
|
|
188
|
-
section: string;
|
|
189
188
|
locale: string;
|
|
189
|
+
section: string;
|
|
190
190
|
content: unknown;
|
|
191
191
|
version: number;
|
|
192
192
|
publishedAt: Date;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spfn/cms",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.64",
|
|
4
4
|
"description": "SPFN CMS - Content Management System with type-safe labels and Next.js integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"drizzle-orm": "^0.44.0",
|
|
94
94
|
"next": "^15.0.0",
|
|
95
95
|
"react": "^18.0.0 || ^19.0.0",
|
|
96
|
-
"@spfn/core": "0.1.0-alpha.
|
|
96
|
+
"@spfn/core": "0.1.0-alpha.64"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@sinclair/typebox": "^0.34.0",
|