@happyvertical/smrt-content 0.40.65 → 0.40.67
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/chunks/playground-DryZ2Hm_.js +390 -0
- package/dist/chunks/playground-DryZ2Hm_.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/manifest.json +1 -1
- package/dist/playground.js +1 -389
- package/dist/route-loaders.d.ts +9 -0
- package/dist/route-loaders.d.ts.map +1 -0
- package/dist/route-module.d.ts +19 -0
- package/dist/route-module.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +4026 -153
- package/dist/svelte/routes/ContentContributionsRoute.svelte +30 -27
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts +2 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentFactsRoute.svelte +4 -2
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts +2 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentGovernanceRoute.svelte +4 -1
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts +2 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte +14 -7
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts +2 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts.map +1 -1
- package/dist/workbench.d.ts +498 -0
- package/dist/workbench.d.ts.map +1 -0
- package/dist/workbench.js +719 -0
- package/dist/workbench.js.map +1 -0
- package/package.json +26 -22
- package/dist/playground.js.map +0 -1
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
import { ApiResponse, ContentContributionData, ContentContributionTypeConfigStateData, ContentContributionTypeData, ContentContributorData, ContentData, ContentGovernanceAssignmentData, ContentGovernanceDefinitionsData, ContentGovernanceProfileData, ContentReviewPolicyData, FactData, ResolvedContentGovernanceData } from './mock-smrt-client.js';
|
|
2
|
+
import { default as playground } from './svelte/playground.js';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
packageName: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
description: string;
|
|
7
|
+
routeModules: {
|
|
8
|
+
routes: {
|
|
9
|
+
workspace: {
|
|
10
|
+
props: {
|
|
11
|
+
embedded: boolean;
|
|
12
|
+
client: {
|
|
13
|
+
contents: {
|
|
14
|
+
list: () => Promise<ApiResponse<ContentData[]>>;
|
|
15
|
+
get: (id: string) => Promise<ApiResponse<ContentData>>;
|
|
16
|
+
create: (content: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
17
|
+
update: (id: string, updates: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
18
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
19
|
+
browseFacts: (query?: string, _options?: Record<string, unknown>) => Promise<ApiResponse<FactData[]>>;
|
|
20
|
+
getGovernanceDefinitions: () => Promise<ApiResponse<ContentGovernanceDefinitionsData>>;
|
|
21
|
+
resolveGovernance: (options: {
|
|
22
|
+
type?: string;
|
|
23
|
+
variant?: string | null;
|
|
24
|
+
}) => Promise<ApiResponse<ResolvedContentGovernanceData>>;
|
|
25
|
+
};
|
|
26
|
+
contentGovernancePolicies: {
|
|
27
|
+
create: (policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
28
|
+
update: (id: string, policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
29
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
30
|
+
};
|
|
31
|
+
contentGovernanceProfiles: {
|
|
32
|
+
create: (profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
33
|
+
update: (id: string, profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
34
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
35
|
+
};
|
|
36
|
+
contentGovernanceAssignments: {
|
|
37
|
+
create: (assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
38
|
+
update: (id: string, assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
39
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
40
|
+
};
|
|
41
|
+
contentContributions: {
|
|
42
|
+
getContributionTypes: () => Promise<ApiResponse<ContentContributionTypeConfigStateData>>;
|
|
43
|
+
listInbox: () => Promise<ApiResponse<ContentContributionData[]>>;
|
|
44
|
+
listForContributor: (options: {
|
|
45
|
+
contributorId?: string;
|
|
46
|
+
contributorEmail?: string;
|
|
47
|
+
}) => Promise<ApiResponse<ContentContributionData[]>>;
|
|
48
|
+
submitWebContribution: (payload: Partial<ContentContributionData> & {
|
|
49
|
+
typeKey?: string;
|
|
50
|
+
attachments?: unknown[];
|
|
51
|
+
}) => Promise<ApiResponse<{
|
|
52
|
+
contribution: ContentContributionData;
|
|
53
|
+
}>>;
|
|
54
|
+
ingestEmailContribution: (payload: Partial<ContentContributionData>) => Promise<ApiResponse<{
|
|
55
|
+
contribution: {
|
|
56
|
+
id: string;
|
|
57
|
+
status: string;
|
|
58
|
+
contributorId?: string | undefined;
|
|
59
|
+
contributionTypeKey?: string | undefined;
|
|
60
|
+
intakeDecision?: string | null | undefined;
|
|
61
|
+
channel?: string | null | undefined;
|
|
62
|
+
title?: string | null | undefined;
|
|
63
|
+
description?: string | null | undefined;
|
|
64
|
+
body?: string | null | undefined;
|
|
65
|
+
contributorEmail?: string | null | undefined;
|
|
66
|
+
contributorName?: string | null | undefined;
|
|
67
|
+
threadKey?: string | null | undefined;
|
|
68
|
+
sourceMessageId?: string | null | undefined;
|
|
69
|
+
editorNotes?: string | null | undefined;
|
|
70
|
+
promotedContentId?: string | null | undefined;
|
|
71
|
+
revisionCount?: number | null | undefined;
|
|
72
|
+
approvedAt?: string | null | undefined;
|
|
73
|
+
promotedAt?: string | null | undefined;
|
|
74
|
+
rejectedAt?: string | null | undefined;
|
|
75
|
+
withdrawnAt?: string | null | undefined;
|
|
76
|
+
requestedChangesAt?: string | null | undefined;
|
|
77
|
+
metadata?: Record<string, any> | undefined;
|
|
78
|
+
tenantId?: string | null | undefined;
|
|
79
|
+
createdAt?: string | undefined;
|
|
80
|
+
updatedAt?: string | undefined;
|
|
81
|
+
contributor?: (ContentContributorData | null) | undefined;
|
|
82
|
+
revisions?: import('./mock-smrt-client.js').ContentContributionRevisionData[] | undefined;
|
|
83
|
+
attachments?: import('./mock-smrt-client.js').ContentContributionAttachmentData[] | undefined;
|
|
84
|
+
};
|
|
85
|
+
}>>;
|
|
86
|
+
appendRevision: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
87
|
+
requestChanges: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
88
|
+
approve: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
89
|
+
reject: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
90
|
+
withdraw: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
91
|
+
promote: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
92
|
+
};
|
|
93
|
+
contentContributionTypes: {
|
|
94
|
+
create: (type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
95
|
+
update: (id: string, type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
96
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
97
|
+
};
|
|
98
|
+
contentContributors: {
|
|
99
|
+
list: () => Promise<ApiResponse<ContentContributorData[]>>;
|
|
100
|
+
create: (contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
101
|
+
update: (id: string, contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
102
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
navigation: import('./route-module.js').ContentRouteNavigationItem[];
|
|
106
|
+
};
|
|
107
|
+
id: string;
|
|
108
|
+
title: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
defaultPath: string;
|
|
111
|
+
component: import('@happyvertical/smrt-types').ModuleComponentType<{
|
|
112
|
+
data?: unknown;
|
|
113
|
+
}>;
|
|
114
|
+
load?: ((input: unknown) => unknown) | undefined;
|
|
115
|
+
loadKind?: import('@happyvertical/smrt-types').SmrtRouteLoadKind;
|
|
116
|
+
nav?: import('@happyvertical/smrt-types').SmrtRouteNavigationMeta;
|
|
117
|
+
tags?: string[];
|
|
118
|
+
};
|
|
119
|
+
facts: {
|
|
120
|
+
props: {
|
|
121
|
+
embedded: boolean;
|
|
122
|
+
client: {
|
|
123
|
+
contents: {
|
|
124
|
+
list: () => Promise<ApiResponse<ContentData[]>>;
|
|
125
|
+
get: (id: string) => Promise<ApiResponse<ContentData>>;
|
|
126
|
+
create: (content: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
127
|
+
update: (id: string, updates: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
128
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
129
|
+
browseFacts: (query?: string, _options?: Record<string, unknown>) => Promise<ApiResponse<FactData[]>>;
|
|
130
|
+
getGovernanceDefinitions: () => Promise<ApiResponse<ContentGovernanceDefinitionsData>>;
|
|
131
|
+
resolveGovernance: (options: {
|
|
132
|
+
type?: string;
|
|
133
|
+
variant?: string | null;
|
|
134
|
+
}) => Promise<ApiResponse<ResolvedContentGovernanceData>>;
|
|
135
|
+
};
|
|
136
|
+
contentGovernancePolicies: {
|
|
137
|
+
create: (policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
138
|
+
update: (id: string, policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
139
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
140
|
+
};
|
|
141
|
+
contentGovernanceProfiles: {
|
|
142
|
+
create: (profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
143
|
+
update: (id: string, profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
144
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
145
|
+
};
|
|
146
|
+
contentGovernanceAssignments: {
|
|
147
|
+
create: (assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
148
|
+
update: (id: string, assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
149
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
150
|
+
};
|
|
151
|
+
contentContributions: {
|
|
152
|
+
getContributionTypes: () => Promise<ApiResponse<ContentContributionTypeConfigStateData>>;
|
|
153
|
+
listInbox: () => Promise<ApiResponse<ContentContributionData[]>>;
|
|
154
|
+
listForContributor: (options: {
|
|
155
|
+
contributorId?: string;
|
|
156
|
+
contributorEmail?: string;
|
|
157
|
+
}) => Promise<ApiResponse<ContentContributionData[]>>;
|
|
158
|
+
submitWebContribution: (payload: Partial<ContentContributionData> & {
|
|
159
|
+
typeKey?: string;
|
|
160
|
+
attachments?: unknown[];
|
|
161
|
+
}) => Promise<ApiResponse<{
|
|
162
|
+
contribution: ContentContributionData;
|
|
163
|
+
}>>;
|
|
164
|
+
ingestEmailContribution: (payload: Partial<ContentContributionData>) => Promise<ApiResponse<{
|
|
165
|
+
contribution: {
|
|
166
|
+
id: string;
|
|
167
|
+
status: string;
|
|
168
|
+
contributorId?: string | undefined;
|
|
169
|
+
contributionTypeKey?: string | undefined;
|
|
170
|
+
intakeDecision?: string | null | undefined;
|
|
171
|
+
channel?: string | null | undefined;
|
|
172
|
+
title?: string | null | undefined;
|
|
173
|
+
description?: string | null | undefined;
|
|
174
|
+
body?: string | null | undefined;
|
|
175
|
+
contributorEmail?: string | null | undefined;
|
|
176
|
+
contributorName?: string | null | undefined;
|
|
177
|
+
threadKey?: string | null | undefined;
|
|
178
|
+
sourceMessageId?: string | null | undefined;
|
|
179
|
+
editorNotes?: string | null | undefined;
|
|
180
|
+
promotedContentId?: string | null | undefined;
|
|
181
|
+
revisionCount?: number | null | undefined;
|
|
182
|
+
approvedAt?: string | null | undefined;
|
|
183
|
+
promotedAt?: string | null | undefined;
|
|
184
|
+
rejectedAt?: string | null | undefined;
|
|
185
|
+
withdrawnAt?: string | null | undefined;
|
|
186
|
+
requestedChangesAt?: string | null | undefined;
|
|
187
|
+
metadata?: Record<string, any> | undefined;
|
|
188
|
+
tenantId?: string | null | undefined;
|
|
189
|
+
createdAt?: string | undefined;
|
|
190
|
+
updatedAt?: string | undefined;
|
|
191
|
+
contributor?: (ContentContributorData | null) | undefined;
|
|
192
|
+
revisions?: import('./mock-smrt-client.js').ContentContributionRevisionData[] | undefined;
|
|
193
|
+
attachments?: import('./mock-smrt-client.js').ContentContributionAttachmentData[] | undefined;
|
|
194
|
+
};
|
|
195
|
+
}>>;
|
|
196
|
+
appendRevision: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
197
|
+
requestChanges: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
198
|
+
approve: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
199
|
+
reject: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
200
|
+
withdraw: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
201
|
+
promote: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
202
|
+
};
|
|
203
|
+
contentContributionTypes: {
|
|
204
|
+
create: (type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
205
|
+
update: (id: string, type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
206
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
207
|
+
};
|
|
208
|
+
contentContributors: {
|
|
209
|
+
list: () => Promise<ApiResponse<ContentContributorData[]>>;
|
|
210
|
+
create: (contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
211
|
+
update: (id: string, contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
212
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
navigation: import('./route-module.js').ContentRouteNavigationItem[];
|
|
216
|
+
};
|
|
217
|
+
id: string;
|
|
218
|
+
title: string;
|
|
219
|
+
description?: string;
|
|
220
|
+
defaultPath: string;
|
|
221
|
+
component: import('@happyvertical/smrt-types').ModuleComponentType<{
|
|
222
|
+
data?: unknown;
|
|
223
|
+
}>;
|
|
224
|
+
load?: ((input: unknown) => unknown) | undefined;
|
|
225
|
+
loadKind?: import('@happyvertical/smrt-types').SmrtRouteLoadKind;
|
|
226
|
+
nav?: import('@happyvertical/smrt-types').SmrtRouteNavigationMeta;
|
|
227
|
+
tags?: string[];
|
|
228
|
+
};
|
|
229
|
+
governance: {
|
|
230
|
+
props: {
|
|
231
|
+
embedded: boolean;
|
|
232
|
+
client: {
|
|
233
|
+
contents: {
|
|
234
|
+
list: () => Promise<ApiResponse<ContentData[]>>;
|
|
235
|
+
get: (id: string) => Promise<ApiResponse<ContentData>>;
|
|
236
|
+
create: (content: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
237
|
+
update: (id: string, updates: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
238
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
239
|
+
browseFacts: (query?: string, _options?: Record<string, unknown>) => Promise<ApiResponse<FactData[]>>;
|
|
240
|
+
getGovernanceDefinitions: () => Promise<ApiResponse<ContentGovernanceDefinitionsData>>;
|
|
241
|
+
resolveGovernance: (options: {
|
|
242
|
+
type?: string;
|
|
243
|
+
variant?: string | null;
|
|
244
|
+
}) => Promise<ApiResponse<ResolvedContentGovernanceData>>;
|
|
245
|
+
};
|
|
246
|
+
contentGovernancePolicies: {
|
|
247
|
+
create: (policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
248
|
+
update: (id: string, policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
249
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
250
|
+
};
|
|
251
|
+
contentGovernanceProfiles: {
|
|
252
|
+
create: (profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
253
|
+
update: (id: string, profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
254
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
255
|
+
};
|
|
256
|
+
contentGovernanceAssignments: {
|
|
257
|
+
create: (assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
258
|
+
update: (id: string, assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
259
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
260
|
+
};
|
|
261
|
+
contentContributions: {
|
|
262
|
+
getContributionTypes: () => Promise<ApiResponse<ContentContributionTypeConfigStateData>>;
|
|
263
|
+
listInbox: () => Promise<ApiResponse<ContentContributionData[]>>;
|
|
264
|
+
listForContributor: (options: {
|
|
265
|
+
contributorId?: string;
|
|
266
|
+
contributorEmail?: string;
|
|
267
|
+
}) => Promise<ApiResponse<ContentContributionData[]>>;
|
|
268
|
+
submitWebContribution: (payload: Partial<ContentContributionData> & {
|
|
269
|
+
typeKey?: string;
|
|
270
|
+
attachments?: unknown[];
|
|
271
|
+
}) => Promise<ApiResponse<{
|
|
272
|
+
contribution: ContentContributionData;
|
|
273
|
+
}>>;
|
|
274
|
+
ingestEmailContribution: (payload: Partial<ContentContributionData>) => Promise<ApiResponse<{
|
|
275
|
+
contribution: {
|
|
276
|
+
id: string;
|
|
277
|
+
status: string;
|
|
278
|
+
contributorId?: string | undefined;
|
|
279
|
+
contributionTypeKey?: string | undefined;
|
|
280
|
+
intakeDecision?: string | null | undefined;
|
|
281
|
+
channel?: string | null | undefined;
|
|
282
|
+
title?: string | null | undefined;
|
|
283
|
+
description?: string | null | undefined;
|
|
284
|
+
body?: string | null | undefined;
|
|
285
|
+
contributorEmail?: string | null | undefined;
|
|
286
|
+
contributorName?: string | null | undefined;
|
|
287
|
+
threadKey?: string | null | undefined;
|
|
288
|
+
sourceMessageId?: string | null | undefined;
|
|
289
|
+
editorNotes?: string | null | undefined;
|
|
290
|
+
promotedContentId?: string | null | undefined;
|
|
291
|
+
revisionCount?: number | null | undefined;
|
|
292
|
+
approvedAt?: string | null | undefined;
|
|
293
|
+
promotedAt?: string | null | undefined;
|
|
294
|
+
rejectedAt?: string | null | undefined;
|
|
295
|
+
withdrawnAt?: string | null | undefined;
|
|
296
|
+
requestedChangesAt?: string | null | undefined;
|
|
297
|
+
metadata?: Record<string, any> | undefined;
|
|
298
|
+
tenantId?: string | null | undefined;
|
|
299
|
+
createdAt?: string | undefined;
|
|
300
|
+
updatedAt?: string | undefined;
|
|
301
|
+
contributor?: (ContentContributorData | null) | undefined;
|
|
302
|
+
revisions?: import('./mock-smrt-client.js').ContentContributionRevisionData[] | undefined;
|
|
303
|
+
attachments?: import('./mock-smrt-client.js').ContentContributionAttachmentData[] | undefined;
|
|
304
|
+
};
|
|
305
|
+
}>>;
|
|
306
|
+
appendRevision: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
307
|
+
requestChanges: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
308
|
+
approve: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
309
|
+
reject: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
310
|
+
withdraw: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
311
|
+
promote: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
312
|
+
};
|
|
313
|
+
contentContributionTypes: {
|
|
314
|
+
create: (type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
315
|
+
update: (id: string, type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
316
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
317
|
+
};
|
|
318
|
+
contentContributors: {
|
|
319
|
+
list: () => Promise<ApiResponse<ContentContributorData[]>>;
|
|
320
|
+
create: (contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
321
|
+
update: (id: string, contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
322
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
navigation: import('./route-module.js').ContentRouteNavigationItem[];
|
|
326
|
+
};
|
|
327
|
+
id: string;
|
|
328
|
+
title: string;
|
|
329
|
+
description?: string;
|
|
330
|
+
defaultPath: string;
|
|
331
|
+
component: import('@happyvertical/smrt-types').ModuleComponentType<{
|
|
332
|
+
data?: unknown;
|
|
333
|
+
}>;
|
|
334
|
+
load?: ((input: unknown) => unknown) | undefined;
|
|
335
|
+
loadKind?: import('@happyvertical/smrt-types').SmrtRouteLoadKind;
|
|
336
|
+
nav?: import('@happyvertical/smrt-types').SmrtRouteNavigationMeta;
|
|
337
|
+
tags?: string[];
|
|
338
|
+
};
|
|
339
|
+
contributions: {
|
|
340
|
+
props: {
|
|
341
|
+
embedded: boolean;
|
|
342
|
+
client: {
|
|
343
|
+
contents: {
|
|
344
|
+
list: () => Promise<ApiResponse<ContentData[]>>;
|
|
345
|
+
get: (id: string) => Promise<ApiResponse<ContentData>>;
|
|
346
|
+
create: (content: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
347
|
+
update: (id: string, updates: Partial<ContentData>) => Promise<ApiResponse<ContentData>>;
|
|
348
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
349
|
+
browseFacts: (query?: string, _options?: Record<string, unknown>) => Promise<ApiResponse<FactData[]>>;
|
|
350
|
+
getGovernanceDefinitions: () => Promise<ApiResponse<ContentGovernanceDefinitionsData>>;
|
|
351
|
+
resolveGovernance: (options: {
|
|
352
|
+
type?: string;
|
|
353
|
+
variant?: string | null;
|
|
354
|
+
}) => Promise<ApiResponse<ResolvedContentGovernanceData>>;
|
|
355
|
+
};
|
|
356
|
+
contentGovernancePolicies: {
|
|
357
|
+
create: (policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
358
|
+
update: (id: string, policy: Partial<ContentReviewPolicyData>) => Promise<ApiResponse<ContentReviewPolicyData>>;
|
|
359
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
360
|
+
};
|
|
361
|
+
contentGovernanceProfiles: {
|
|
362
|
+
create: (profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
363
|
+
update: (id: string, profile: Partial<ContentGovernanceProfileData>) => Promise<ApiResponse<ContentGovernanceProfileData>>;
|
|
364
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
365
|
+
};
|
|
366
|
+
contentGovernanceAssignments: {
|
|
367
|
+
create: (assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
368
|
+
update: (id: string, assignment: Partial<ContentGovernanceAssignmentData>) => Promise<ApiResponse<ContentGovernanceAssignmentData>>;
|
|
369
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
370
|
+
};
|
|
371
|
+
contentContributions: {
|
|
372
|
+
getContributionTypes: () => Promise<ApiResponse<ContentContributionTypeConfigStateData>>;
|
|
373
|
+
listInbox: () => Promise<ApiResponse<ContentContributionData[]>>;
|
|
374
|
+
listForContributor: (options: {
|
|
375
|
+
contributorId?: string;
|
|
376
|
+
contributorEmail?: string;
|
|
377
|
+
}) => Promise<ApiResponse<ContentContributionData[]>>;
|
|
378
|
+
submitWebContribution: (payload: Partial<ContentContributionData> & {
|
|
379
|
+
typeKey?: string;
|
|
380
|
+
attachments?: unknown[];
|
|
381
|
+
}) => Promise<ApiResponse<{
|
|
382
|
+
contribution: ContentContributionData;
|
|
383
|
+
}>>;
|
|
384
|
+
ingestEmailContribution: (payload: Partial<ContentContributionData>) => Promise<ApiResponse<{
|
|
385
|
+
contribution: {
|
|
386
|
+
id: string;
|
|
387
|
+
status: string;
|
|
388
|
+
contributorId?: string | undefined;
|
|
389
|
+
contributionTypeKey?: string | undefined;
|
|
390
|
+
intakeDecision?: string | null | undefined;
|
|
391
|
+
channel?: string | null | undefined;
|
|
392
|
+
title?: string | null | undefined;
|
|
393
|
+
description?: string | null | undefined;
|
|
394
|
+
body?: string | null | undefined;
|
|
395
|
+
contributorEmail?: string | null | undefined;
|
|
396
|
+
contributorName?: string | null | undefined;
|
|
397
|
+
threadKey?: string | null | undefined;
|
|
398
|
+
sourceMessageId?: string | null | undefined;
|
|
399
|
+
editorNotes?: string | null | undefined;
|
|
400
|
+
promotedContentId?: string | null | undefined;
|
|
401
|
+
revisionCount?: number | null | undefined;
|
|
402
|
+
approvedAt?: string | null | undefined;
|
|
403
|
+
promotedAt?: string | null | undefined;
|
|
404
|
+
rejectedAt?: string | null | undefined;
|
|
405
|
+
withdrawnAt?: string | null | undefined;
|
|
406
|
+
requestedChangesAt?: string | null | undefined;
|
|
407
|
+
metadata?: Record<string, any> | undefined;
|
|
408
|
+
tenantId?: string | null | undefined;
|
|
409
|
+
createdAt?: string | undefined;
|
|
410
|
+
updatedAt?: string | undefined;
|
|
411
|
+
contributor?: (ContentContributorData | null) | undefined;
|
|
412
|
+
revisions?: import('./mock-smrt-client.js').ContentContributionRevisionData[] | undefined;
|
|
413
|
+
attachments?: import('./mock-smrt-client.js').ContentContributionAttachmentData[] | undefined;
|
|
414
|
+
};
|
|
415
|
+
}>>;
|
|
416
|
+
appendRevision: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
417
|
+
requestChanges: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
418
|
+
approve: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
419
|
+
reject: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
420
|
+
withdraw: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
421
|
+
promote: (id: string) => Promise<ApiResponse<ContentContributionData | null>>;
|
|
422
|
+
};
|
|
423
|
+
contentContributionTypes: {
|
|
424
|
+
create: (type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
425
|
+
update: (id: string, type: Partial<ContentContributionTypeData>) => Promise<ApiResponse<ContentContributionTypeData>>;
|
|
426
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
427
|
+
};
|
|
428
|
+
contentContributors: {
|
|
429
|
+
list: () => Promise<ApiResponse<ContentContributorData[]>>;
|
|
430
|
+
create: (contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
431
|
+
update: (id: string, contributor: Partial<ContentContributorData>) => Promise<ApiResponse<ContentContributorData>>;
|
|
432
|
+
delete: (id: string) => Promise<ApiResponse<undefined>>;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
navigation: import('./route-module.js').ContentRouteNavigationItem[];
|
|
436
|
+
};
|
|
437
|
+
id: string;
|
|
438
|
+
title: string;
|
|
439
|
+
description?: string;
|
|
440
|
+
defaultPath: string;
|
|
441
|
+
component: import('@happyvertical/smrt-types').ModuleComponentType<{
|
|
442
|
+
data?: unknown;
|
|
443
|
+
}>;
|
|
444
|
+
load?: ((input: unknown) => unknown) | undefined;
|
|
445
|
+
loadKind?: import('@happyvertical/smrt-types').SmrtRouteLoadKind;
|
|
446
|
+
nav?: import('@happyvertical/smrt-types').SmrtRouteNavigationMeta;
|
|
447
|
+
tags?: string[];
|
|
448
|
+
};
|
|
449
|
+
article: {
|
|
450
|
+
props: {
|
|
451
|
+
data: {
|
|
452
|
+
content: {
|
|
453
|
+
id: string;
|
|
454
|
+
slug: string;
|
|
455
|
+
title: string;
|
|
456
|
+
description: string;
|
|
457
|
+
author: string;
|
|
458
|
+
body: string;
|
|
459
|
+
bodyFormat: string;
|
|
460
|
+
publish_date: string;
|
|
461
|
+
status: string;
|
|
462
|
+
};
|
|
463
|
+
transparency: null;
|
|
464
|
+
};
|
|
465
|
+
backHref: string;
|
|
466
|
+
};
|
|
467
|
+
id: string;
|
|
468
|
+
title: string;
|
|
469
|
+
description?: string;
|
|
470
|
+
defaultPath: string;
|
|
471
|
+
component: import('@happyvertical/smrt-types').ModuleComponentType<{
|
|
472
|
+
data?: import('./route-module.js').PublishedContentArticleRouteData | undefined;
|
|
473
|
+
}>;
|
|
474
|
+
load?: ((input: import('./route-module.js').LoadPublishedArticleRouteInput) => import('./route-module.js').PublishedContentArticleRouteData | Promise<import('./route-module.js').PublishedContentArticleRouteData>) | undefined;
|
|
475
|
+
loadKind?: import('@happyvertical/smrt-types').SmrtRouteLoadKind;
|
|
476
|
+
nav?: import('@happyvertical/smrt-types').SmrtRouteNavigationMeta;
|
|
477
|
+
tags?: string[];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
description?: string | undefined;
|
|
481
|
+
packageName: string;
|
|
482
|
+
displayName: string;
|
|
483
|
+
}[];
|
|
484
|
+
recommendedCommands: {
|
|
485
|
+
id: string;
|
|
486
|
+
label: string;
|
|
487
|
+
command: string;
|
|
488
|
+
}[];
|
|
489
|
+
examples: {
|
|
490
|
+
id: string;
|
|
491
|
+
title: string;
|
|
492
|
+
path: string;
|
|
493
|
+
source: string;
|
|
494
|
+
}[];
|
|
495
|
+
};
|
|
496
|
+
export default _default;
|
|
497
|
+
export { playground };
|
|
498
|
+
//# sourceMappingURL=workbench.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench.d.ts","sourceRoot":"","sources":["../src/workbench.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,uBAAuB,EACvB,sCAAsC,EACtC,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,+BAA+B,EAC/B,gCAAgC,EAChC,4BAA4B,EAC5B,uBAAuB,EACvB,QAAQ,EACR,6BAA6B,EAC9B,MAAM,uBAAuB,CAAC;AAM/B,OAAO,UAAU,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;sCAgY1B,MAAM;8CAEE,OAAO,CAAC,WAAW,CAAC;yCAazB,MAAM,WAAW,OAAO,CAAC,WAAW,CAAC;yCAerC,MAAM;qEAMb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;yDAqBA;gCACjC,IAAI,CAAC,EAAE,MAAM,CAAC;gCACd,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;6BACzB;;;6CAGsB,OAAO,CAAC,uBAAuB,CAAC;yCAIpC,MAAM,UAAU,OAAO,CAAC,uBAAuB,CAAC;yCAMhD,MAAM;;;8CAMD,OAAO,CAAC,4BAA4B,CAAC;yCAKvD,MAAM,WACD,OAAO,CAAC,4BAA4B,CAAC;yCAO7B,MAAM;;;iDAME,OAAO,CAAC,+BAA+B,CAAC;yCAK7D,MAAM,cACE,OAAO,CAAC,+BAA+B,CAAC;yCAWnC,MAAM;;;;;0DAQW;gCAClC,aAAa,CAAC,EAAE,MAAM,CAAC;gCACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;6BAC3B;6DASU,OAAO,CAAC,uBAAuB,CAAC,GAAG;gCAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;gCACjB,WAAW,CAAC,EAAE,O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