@wix/blog_draft-posts
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -5,271 +5,23 @@ "use strict"; | ||
const blog_v3_draft_draft_posts_public_1 = require("./blog-v3-draft-draft-posts.public"); | ||
const context_1 = require("@wix/sdk-runtime/context"); | ||
const blog_v3_draft_draft_posts_public_2 = require("./blog-v3-draft-draft-posts.public"); | ||
const blog_v3_draft_draft_posts_public_3 = require("./blog-v3-draft-draft-posts.public"); | ||
const blog_v3_draft_draft_posts_public_4 = require("./blog-v3-draft-draft-posts.public"); | ||
const createDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.createDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.createDraftPost = createDraftPost; | ||
const bulkCreateDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.bulkCreateDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.bulkCreateDraftPosts = bulkCreateDraftPosts; | ||
const bulkUpdateDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.bulkUpdateDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.bulkUpdateDraftPosts = bulkUpdateDraftPosts; | ||
const listDeletedDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.listDeletedDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.listDeletedDraftPosts = listDeletedDraftPosts; | ||
const getDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.getDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.getDraftPost = getDraftPost; | ||
const updateDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.updateDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.updateDraftPost = updateDraftPost; | ||
const deleteDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.deleteDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.deleteDraftPost = deleteDraftPost; | ||
const removeFromTrashBin = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.removeFromTrashBin, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.removeFromTrashBin = removeFromTrashBin; | ||
const bulkDeleteDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.bulkDeleteDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.bulkDeleteDraftPosts = bulkDeleteDraftPosts; | ||
const listDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.listDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.listDraftPosts = listDraftPosts; | ||
const getDeletedDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.getDeletedDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.getDeletedDraftPost = getDeletedDraftPost; | ||
const restoreFromTrashBin = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.restoreFromTrashBin, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.restoreFromTrashBin = restoreFromTrashBin; | ||
const queryDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.queryDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.queryDraftPosts = queryDraftPosts; | ||
const publishDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(blog_v3_draft_draft_posts_public_1.publishDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
exports.publishDraftPost = publishDraftPost; | ||
const onDraftCreated = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(blog_v3_draft_draft_posts_public_2.onDraftCreated).apply(undefined, args); | ||
}; | ||
exports.onDraftCreated = onDraftCreated; | ||
const onDraftUpdated = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(blog_v3_draft_draft_posts_public_3.onDraftUpdated).apply(undefined, args); | ||
}; | ||
exports.onDraftUpdated = onDraftUpdated; | ||
const onDraftDeleted = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(blog_v3_draft_draft_posts_public_4.onDraftDeleted).apply(undefined, args); | ||
}; | ||
exports.onDraftDeleted = onDraftDeleted; | ||
exports.createDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.createDraftPost, 1); | ||
exports.bulkCreateDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.bulkCreateDraftPosts, 1); | ||
exports.bulkUpdateDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.bulkUpdateDraftPosts, 1); | ||
exports.listDeletedDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.listDeletedDraftPosts, 1); | ||
exports.getDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.getDraftPost, 1); | ||
exports.updateDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.updateDraftPost, 1); | ||
exports.deleteDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.deleteDraftPost, 1); | ||
exports.removeFromTrashBin = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.removeFromTrashBin, 1); | ||
exports.bulkDeleteDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.bulkDeleteDraftPosts, 1); | ||
exports.listDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.listDraftPosts, 1); | ||
exports.getDeletedDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.getDeletedDraftPost, 1); | ||
exports.restoreFromTrashBin = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.restoreFromTrashBin, 1); | ||
exports.queryDraftPosts = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.queryDraftPosts, 1); | ||
exports.publishDraftPost = (0, context_1.contextualizeRESTModule)(blog_v3_draft_draft_posts_public_1.publishDraftPost, 1); | ||
exports.onDraftCreated = (0, context_1.contextualizeEventDefinitionModule)(blog_v3_draft_draft_posts_public_2.onDraftCreated); | ||
exports.onDraftUpdated = (0, context_1.contextualizeEventDefinitionModule)(blog_v3_draft_draft_posts_public_3.onDraftUpdated); | ||
exports.onDraftDeleted = (0, context_1.contextualizeEventDefinitionModule)(blog_v3_draft_draft_posts_public_4.onDraftDeleted); | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map |
import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost, } from './blog-v3-draft-draft-posts.public'; | ||
import { contextualizeRESTModule, contextualizeEventDefinitionModule, } from '@wix/sdk-runtime/context'; | ||
import { onDraftCreated as publicOnDraftCreated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftDeleted as publicOnDraftDeleted } from './blog-v3-draft-draft-posts.public'; | ||
export const createDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicCreateDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const bulkCreateDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicBulkCreateDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const bulkUpdateDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicBulkUpdateDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const listDeletedDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicListDeletedDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const getDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicGetDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const updateDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicUpdateDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const deleteDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicDeleteDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const removeFromTrashBin = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicRemoveFromTrashBin, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const bulkDeleteDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicBulkDeleteDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const listDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicListDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const getDeletedDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicGetDeletedDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const restoreFromTrashBin = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicRestoreFromTrashBin, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const queryDraftPosts = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicQueryDraftPosts, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const publishDraftPost = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context | ||
.initWixModules(publicPublishDraftPost, args[1]?.supressAuth ? true : false) | ||
.apply(undefined, args); | ||
}; | ||
export const onDraftCreated = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(publicOnDraftCreated).apply(undefined, args); | ||
}; | ||
export const onDraftUpdated = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(publicOnDraftUpdated).apply(undefined, args); | ||
}; | ||
export const onDraftDeleted = (...args) => { | ||
const context = | ||
// @ts-expect-error | ||
typeof $wixContext !== 'undefined' | ||
? // @ts-expect-error | ||
$wixContext | ||
: // @ts-expect-error | ||
globalThis.__wix_context__; | ||
if (!context) { | ||
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules'); | ||
} | ||
return context.initWixModules(publicOnDraftDeleted).apply(undefined, args); | ||
}; | ||
export const createDraftPost = contextualizeRESTModule(publicCreateDraftPost, 1); | ||
export const bulkCreateDraftPosts = contextualizeRESTModule(publicBulkCreateDraftPosts, 1); | ||
export const bulkUpdateDraftPosts = contextualizeRESTModule(publicBulkUpdateDraftPosts, 1); | ||
export const listDeletedDraftPosts = contextualizeRESTModule(publicListDeletedDraftPosts, 1); | ||
export const getDraftPost = contextualizeRESTModule(publicGetDraftPost, 1); | ||
export const updateDraftPost = contextualizeRESTModule(publicUpdateDraftPost, 1); | ||
export const deleteDraftPost = contextualizeRESTModule(publicDeleteDraftPost, 1); | ||
export const removeFromTrashBin = contextualizeRESTModule(publicRemoveFromTrashBin, 1); | ||
export const bulkDeleteDraftPosts = contextualizeRESTModule(publicBulkDeleteDraftPosts, 1); | ||
export const listDraftPosts = contextualizeRESTModule(publicListDraftPosts, 1); | ||
export const getDeletedDraftPost = contextualizeRESTModule(publicGetDeletedDraftPost, 1); | ||
export const restoreFromTrashBin = contextualizeRESTModule(publicRestoreFromTrashBin, 1); | ||
export const queryDraftPosts = contextualizeRESTModule(publicQueryDraftPosts, 1); | ||
export const publishDraftPost = contextualizeRESTModule(publicPublishDraftPost, 1); | ||
export const onDraftCreated = contextualizeEventDefinitionModule(publicOnDraftCreated); | ||
export const onDraftUpdated = contextualizeEventDefinitionModule(publicOnDraftUpdated); | ||
export const onDraftDeleted = contextualizeEventDefinitionModule(publicOnDraftDeleted); | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map |
{ | ||
"name": "@wix/blog_draft-posts", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"publishConfig": { | ||
@@ -23,7 +23,6 @@ "registry": "https://registry.npmjs.org/", | ||
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37", | ||
"@wix/sdk-runtime": "^0.2.12", | ||
"@wix/sdk-types": "^1.7.1" | ||
"@wix/sdk-runtime": "^0.3.2", | ||
"@wix/sdk-types": "^1.9.0" | ||
}, | ||
"devDependencies": { | ||
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz", | ||
"glob": "^10.4.1", | ||
@@ -49,3 +48,3 @@ "rollup": "^4.18.0", | ||
}, | ||
"falconPackageHash": "a711002fd2eba1ee11cef09ade2cc0323fd42504bb5dd4e9a482fe80" | ||
"falconPackageHash": "325ff4b27b03d42e37152cc0ad6e00434a643236728b95014d302770" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4
3339860
87003
+ Added@wix/sdk-context@0.0.1(transitive)
+ Added@wix/sdk-runtime@0.3.23(transitive)
- Removed@wix/sdk-runtime@0.2.12(transitive)
Updated@wix/sdk-runtime@^0.3.2
Updated@wix/sdk-types@^1.9.0