@columnus/api-cli 0.2.5 → 0.2.6
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/cli.js +11 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -24389,6 +24389,10 @@ export type ProfileProposalSummary = {
|
|
|
24389
24389
|
createdAt: number;
|
|
24390
24390
|
/** Revision of a protected shared draft; pass it back when publishing. */
|
|
24391
24391
|
draftRevision?: number;
|
|
24392
|
+
/** The editor draft's key (absent: the default draft), label and author name. */
|
|
24393
|
+
draftKey?: string;
|
|
24394
|
+
draftLabel?: string;
|
|
24395
|
+
createdByName?: string;
|
|
24392
24396
|
patches: ProfileProposalPatchSummary[];
|
|
24393
24397
|
};
|
|
24394
24398
|
|
|
@@ -24407,13 +24411,16 @@ export type ProfileProposalOutcome = {
|
|
|
24407
24411
|
export const proposeProfileBatchRef = anyApi.columnus.share.proposeProfileBatch as FunctionReference<"mutation", "public", { profileSlug: string; patches: ProfileProposalPatch[]; expectedRevision?: number }, ProfileDraftSaveResult>;
|
|
24408
24412
|
|
|
24409
24413
|
/** Merge changed rows into the caller's shared draft (concurrent-safe Save). */
|
|
24410
|
-
export const saveMyProfileDraftRef = anyApi.columnus.share.saveMyProfileDraft as FunctionReference<"mutation", "public", { profileSlug: string; patches: Array<ProfileProposalPatch & { clearFields?: string[] }>; discard?: Array<{ table: string; rowId: string }
|
|
24414
|
+
export const saveMyProfileDraftRef = anyApi.columnus.share.saveMyProfileDraft as FunctionReference<"mutation", "public", { profileSlug: string; patches: Array<ProfileProposalPatch & { clearFields?: string[] }>; discard?: Array<{ table: string; rowId: string; fields?: string[] }>; draftKey?: string; draftLabel?: string }, ProfileDraftSaveResult>;
|
|
24411
24415
|
|
|
24412
24416
|
export const listProfileProposalsRef = anyApi.columnus.share.listProfileProposals as FunctionReference<"query", "public", { profileSlug: string }, ProfileProposalSummary[]>;
|
|
24413
24417
|
|
|
24414
|
-
export const publishMyProfileProposalRef = anyApi.columnus.share.publishMyProfileProposal as FunctionReference<"mutation", "public", { profileSlug: string; expectedRevision?: number }, ProfileProposalOutcome[]>;
|
|
24418
|
+
export const publishMyProfileProposalRef = anyApi.columnus.share.publishMyProfileProposal as FunctionReference<"mutation", "public", { profileSlug: string; expectedRevision?: number; draftKey?: string }, ProfileProposalOutcome[]>;
|
|
24415
24419
|
|
|
24416
|
-
export const withdrawMyProfileProposalRef = anyApi.columnus.share.withdrawMyProfileProposal as FunctionReference<"mutation", "public", { profileSlug: string }, { id: string; status: "withdrawn" }>;
|
|
24420
|
+
export const withdrawMyProfileProposalRef = anyApi.columnus.share.withdrawMyProfileProposal as FunctionReference<"mutation", "public", { profileSlug: string; draftKey?: string }, { id: string; status: "withdrawn" }>;
|
|
24421
|
+
|
|
24422
|
+
/** Keep mine or Use published per stale field of the caller's draft for the key. */
|
|
24423
|
+
export const resolveMyDraftRef = anyApi.columnus.share.resolveMyDraft as FunctionReference<"mutation", "public", { profileSlug: string; draftKey?: string; expectedRevision: number; choices: Array<{ table: string; rowId: string; field?: string; keep: "mine" | "published" }> }, ProfileDraftSaveResult>;
|
|
24417
24424
|
|
|
24418
24425
|
export const generateUploadUrlRef = anyApi.columnus.storage.generateUploadUrl as FunctionReference<
|
|
24419
24426
|
"mutation",
|
|
@@ -24545,6 +24552,7 @@ export const cmsHostRefs = {
|
|
|
24545
24552
|
listProfileProposals: listProfileProposalsRef,
|
|
24546
24553
|
publishMyProfileProposal: publishMyProfileProposalRef,
|
|
24547
24554
|
withdrawMyProfileProposal: withdrawMyProfileProposalRef,
|
|
24555
|
+
resolveMyDraft: resolveMyDraftRef,
|
|
24548
24556
|
generateUploadUrl: generateUploadUrlRef,
|
|
24549
24557
|
deleteStorageFile: deleteStorageFileRef,
|
|
24550
24558
|
createAssetFromStorage: createAssetFromStorageRef,
|