@paroicms/public-server-lib 0.32.0 → 0.33.0
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/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
ScSiteSchema,
|
|
9
9
|
SiteIds,
|
|
10
10
|
ThemeConf,
|
|
11
|
+
UpdateLabelingFieldValue,
|
|
11
12
|
} from "@paroicms/public-anywhere-lib";
|
|
12
13
|
import type Stream from "node:stream";
|
|
13
14
|
|
|
@@ -277,13 +278,13 @@ export interface RunningInstanceConnector {
|
|
|
277
278
|
fqdn: string,
|
|
278
279
|
account: RiNewAccount,
|
|
279
280
|
options?: { asContactEmail?: boolean },
|
|
280
|
-
): Promise<
|
|
281
|
+
): Promise<string>;
|
|
281
282
|
updateSiteFields(fqdn: string, fields: RiFieldSetContent): Promise<void>;
|
|
282
|
-
|
|
283
|
+
updateNodeContent(
|
|
283
284
|
fqdn: string,
|
|
284
285
|
options: {
|
|
285
286
|
nodeId: string;
|
|
286
|
-
content:
|
|
287
|
+
content: RiNodeContent;
|
|
287
288
|
},
|
|
288
289
|
): Promise<void>;
|
|
289
290
|
addMultipleDocumentContents(
|
|
@@ -292,14 +293,14 @@ export interface RunningInstanceConnector {
|
|
|
292
293
|
parentNodeId: string;
|
|
293
294
|
contents: RiDocumentContent[];
|
|
294
295
|
},
|
|
295
|
-
): Promise<
|
|
296
|
+
): Promise<ParsedNodelId[]>;
|
|
296
297
|
addMultiplePartContents(
|
|
297
298
|
fqdn: string,
|
|
298
299
|
options: {
|
|
299
300
|
parentNodeId: string;
|
|
300
301
|
contents: RiPartContent[];
|
|
301
302
|
},
|
|
302
|
-
): Promise<
|
|
303
|
+
): Promise<ParsedNodelId[]>;
|
|
303
304
|
registerNewSite: (options: NewSiteOptions) => Promise<RegisteredSite>;
|
|
304
305
|
removeSite: (fqdn: string) => Promise<void>;
|
|
305
306
|
}
|
|
@@ -324,7 +325,6 @@ export interface RiExternalNewAccount {
|
|
|
324
325
|
name: string;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
|
-
/** "Nc" stands for Node Content. */
|
|
328
328
|
export type RiNodeContent = RiDocumentContent | RiPartContent;
|
|
329
329
|
|
|
330
330
|
export interface RiDocumentContent {
|
|
@@ -351,7 +351,8 @@ export type RiFieldContent =
|
|
|
351
351
|
| RiBooleanContent
|
|
352
352
|
| RiQuillDeltaContent
|
|
353
353
|
| RiMediaContent
|
|
354
|
-
| RiGalleryContent
|
|
354
|
+
| RiGalleryContent
|
|
355
|
+
| RiLabelingContent;
|
|
355
356
|
|
|
356
357
|
export type RiStringContent = RiFieldContentTemplate<"string", string>;
|
|
357
358
|
export type RiNumberContent = RiFieldContentTemplate<"number", number>;
|
|
@@ -359,6 +360,7 @@ export type RiBooleanContent = RiFieldContentTemplate<"boolean", boolean>;
|
|
|
359
360
|
export type RiQuillDeltaContent = RiFieldContentTemplate<"json", JsonFieldValue>;
|
|
360
361
|
export type RiMediaContent = RiFieldContentTemplate<"media", RiMediaValue>;
|
|
361
362
|
export type RiGalleryContent = RiFieldContentTemplate<"gallery", RiGalleryValue>;
|
|
363
|
+
export type RiLabelingContent = RiUnlocalizedFieldContent<"labeling", UpdateLabelingFieldValue>;
|
|
362
364
|
|
|
363
365
|
export type RiFieldContentTemplate<T extends ScFieldDataType, V> =
|
|
364
366
|
| RiLocalizedFieldContent<T, V>
|