Socket
Socket
Sign inDemoInstall

@wix/blog_draft-posts

Package Overview
Dependencies
Maintainers
26
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog_draft-posts - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

17

build/cjs/src/blog-v3-draft-draft-posts.context.d.ts

@@ -1,1 +0,16 @@

import './blog-v3-draft-draft-posts.public';
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 { BuildRESTFunction } from '@wix/sdk-types';
export declare const createDraftPost: BuildRESTFunction<typeof publicCreateDraftPost>;
export declare const bulkCreateDraftPosts: BuildRESTFunction<typeof publicBulkCreateDraftPosts>;
export declare const bulkUpdateDraftPosts: BuildRESTFunction<typeof publicBulkUpdateDraftPosts>;
export declare const listDeletedDraftPosts: BuildRESTFunction<typeof publicListDeletedDraftPosts>;
export declare const getDraftPost: BuildRESTFunction<typeof publicGetDraftPost>;
export declare const updateDraftPost: BuildRESTFunction<typeof publicUpdateDraftPost>;
export declare const deleteDraftPost: BuildRESTFunction<typeof publicDeleteDraftPost>;
export declare const removeFromTrashBin: BuildRESTFunction<typeof publicRemoveFromTrashBin>;
export declare const bulkDeleteDraftPosts: BuildRESTFunction<typeof publicBulkDeleteDraftPosts>;
export declare const listDraftPosts: BuildRESTFunction<typeof publicListDraftPosts>;
export declare const getDeletedDraftPost: BuildRESTFunction<typeof publicGetDeletedDraftPost>;
export declare const restoreFromTrashBin: BuildRESTFunction<typeof publicRestoreFromTrashBin>;
export declare const queryDraftPosts: BuildRESTFunction<typeof publicQueryDraftPosts>;
export declare const publishDraftPost: BuildRESTFunction<typeof publicPublishDraftPost>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("./blog-v3-draft-draft-posts.public");
exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = void 0;
const blog_v3_draft_draft_posts_public_1 = require("./blog-v3-draft-draft-posts.public");
const createDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.createDraftPost = createDraftPost;
const bulkCreateDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.bulkCreateDraftPosts = bulkCreateDraftPosts;
const bulkUpdateDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.bulkUpdateDraftPosts = bulkUpdateDraftPosts;
const listDeletedDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.listDeletedDraftPosts = listDeletedDraftPosts;
const getDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.getDraftPost = getDraftPost;
const updateDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.updateDraftPost = updateDraftPost;
const deleteDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.deleteDraftPost = deleteDraftPost;
const removeFromTrashBin = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.removeFromTrashBin = removeFromTrashBin;
const bulkDeleteDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.bulkDeleteDraftPosts = bulkDeleteDraftPosts;
const listDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.listDraftPosts = listDraftPosts;
const getDeletedDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.getDeletedDraftPost = getDeletedDraftPost;
const restoreFromTrashBin = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.restoreFromTrashBin = restoreFromTrashBin;
const queryDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.queryDraftPosts = queryDraftPosts;
const publishDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
exports.publishDraftPost = publishDraftPost;
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map

@@ -1,1 +0,16 @@

import './blog-v3-draft-draft-posts.public';
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 { BuildRESTFunction } from '@wix/sdk-types';
export declare const createDraftPost: BuildRESTFunction<typeof publicCreateDraftPost>;
export declare const bulkCreateDraftPosts: BuildRESTFunction<typeof publicBulkCreateDraftPosts>;
export declare const bulkUpdateDraftPosts: BuildRESTFunction<typeof publicBulkUpdateDraftPosts>;
export declare const listDeletedDraftPosts: BuildRESTFunction<typeof publicListDeletedDraftPosts>;
export declare const getDraftPost: BuildRESTFunction<typeof publicGetDraftPost>;
export declare const updateDraftPost: BuildRESTFunction<typeof publicUpdateDraftPost>;
export declare const deleteDraftPost: BuildRESTFunction<typeof publicDeleteDraftPost>;
export declare const removeFromTrashBin: BuildRESTFunction<typeof publicRemoveFromTrashBin>;
export declare const bulkDeleteDraftPosts: BuildRESTFunction<typeof publicBulkDeleteDraftPosts>;
export declare const listDraftPosts: BuildRESTFunction<typeof publicListDraftPosts>;
export declare const getDeletedDraftPost: BuildRESTFunction<typeof publicGetDeletedDraftPost>;
export declare const restoreFromTrashBin: BuildRESTFunction<typeof publicRestoreFromTrashBin>;
export declare const queryDraftPosts: BuildRESTFunction<typeof publicQueryDraftPosts>;
export declare const publishDraftPost: BuildRESTFunction<typeof publicPublishDraftPost>;

@@ -1,2 +0,226 @@

import './blog-v3-draft-draft-posts.public';
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';
export const createDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const bulkCreateDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const bulkUpdateDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const listDeletedDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const getDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const updateDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const deleteDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const removeFromTrashBin = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const bulkDeleteDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const listDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const getDeletedDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const restoreFromTrashBin = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const queryDraftPosts = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
export const publishDraftPost = (...args) => {
var _a;
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, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
.apply(undefined, args);
};
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map

6

package.json
{
"name": "@wix/blog_draft-posts",
"version": "1.0.7",
"version": "1.0.8",
"publishConfig": {

@@ -21,3 +21,3 @@ "registry": "https://registry.npmjs.org/",

"@wix/motion-edm-autogen-query-wrapper": "^1.0.37",
"@wix/sdk-runtime": "^0.2.7",
"@wix/sdk-runtime": "^0.2.10",
"@wix/sdk-types": "^1.5.11"

@@ -43,3 +43,3 @@ },

},
"falconPackageHash": "6e3058111f20115fb6a8da267dd34798513382ec8108f628de9e961c"
"falconPackageHash": "c9301c13bb88fc2763396df28b17c66c1d5f5366c8bdba09f4e9cd87"
}

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 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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc