Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/blog_blog-importer

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog_blog-importer - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

2

build/cjs/src/blog-v1-wordpress-import-blog-importer.context.d.ts

@@ -9,2 +9,2 @@ import { startImport as publicStartImport, submitUrlForImport as publicSubmitUrlForImport, validateUrlForImport as publicValidateUrlForImport, getImportStatus as publicGetImportStatus, getNotImportedPosts as publicGetNotImportedPosts } from './blog-v1-wordpress-import-blog-importer.public';

export { Status } from './blog-v1-wordpress-import-blog-importer.universal';
export { ImportStatus, StartImportRequest, StartImportResponse, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, GetImportStatusRequest, GetImportStatusResponse, GetNotImportedPostsRequest, GetNotImportedPostsResponse, Post, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, } from './blog-v1-wordpress-import-blog-importer.universal';
export { ImportStatus, StartImportRequest, StartImportResponse, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, GetImportStatusRequest, GetImportStatusResponse, GetNotImportedPostsRequest, GetNotImportedPostsResponse, Post, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, SubmitUrlForImportOptions, } from './blog-v1-wordpress-import-blog-importer.universal';
import { HttpClient } from '@wix/sdk-types';
import { GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, ValidateUrlForImportResponse } from './blog-v1-wordpress-import-blog-importer.universal';
import { GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, SubmitUrlForImportOptions, ValidateUrlForImportResponse } from './blog-v1-wordpress-import-blog-importer.universal';
export declare const __metadata: {

@@ -22,3 +22,3 @@ PACKAGE_NAME: string;

*/
(url: string): Promise<void>;
(url: string, options?: SubmitUrlForImportOptions | undefined): Promise<void>;
}

@@ -44,2 +44,2 @@ export declare function validateUrlForImport(httpClient: HttpClient): ValidateUrlForImportSignature;

}
export { GetImportStatusRequest, GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsRequest, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, ImportStatus, Post, StartImportOptions, StartImportRequest, StartImportResponse, Status, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, } from './blog-v1-wordpress-import-blog-importer.universal';
export { GetImportStatusRequest, GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsRequest, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, ImportStatus, Post, StartImportOptions, StartImportRequest, StartImportResponse, Status, SubmitUrlForImportOptions, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, } from './blog-v1-wordpress-import-blog-importer.universal';

@@ -13,3 +13,3 @@ "use strict";

function submitUrlForImport(httpClient) {
return (url) => (0, blog_v1_wordpress_import_blog_importer_universal_1.submitUrlForImport)(url,
return (url, options) => (0, blog_v1_wordpress_import_blog_importer_universal_1.submitUrlForImport)(url, options,
// @ts-ignore

@@ -16,0 +16,0 @@ { httpClient });

@@ -34,2 +34,4 @@ export interface ImportStatus {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -36,0 +38,0 @@ export interface SubmitUrlForImportResponse {

@@ -34,2 +34,4 @@ export interface ImportStatus {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -109,3 +111,7 @@ export interface SubmitUrlForImportResponse {

*/
export declare function submitUrlForImport(url: string): Promise<void>;
export declare function submitUrlForImport(url: string, options?: SubmitUrlForImportOptions): Promise<void>;
export interface SubmitUrlForImportOptions {
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}
/** @param url - Url for wordpress site.

@@ -112,0 +118,0 @@ * @public

@@ -79,6 +79,9 @@ "use strict";

*/
async function submitUrlForImport(url) {
async function submitUrlForImport(url, options) {
// @ts-ignore
const { httpClient, sideEffects } = arguments[1];
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ url: url });
const { httpClient, sideEffects } = arguments[2];
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
url: url,
siteDomain: options?.siteDomain,
});
const reqOpts = ambassadorWixBlogV1WordpressImport.submitUrlForImport(payload);

@@ -93,5 +96,8 @@ sideEffects?.onSiteCall?.();

spreadPathsToArguments: {},
explicitPathsToArguments: { url: '$[0]' },
explicitPathsToArguments: {
url: '$[0]',
siteDomain: '$[1].siteDomain',
},
singleArgumentUnchanged: false,
}, ['url']);
}, ['url', 'options']);
sideEffects?.onError?.(err);

@@ -98,0 +104,0 @@ throw transformedError;

@@ -9,2 +9,2 @@ import { startImport as publicStartImport, submitUrlForImport as publicSubmitUrlForImport, validateUrlForImport as publicValidateUrlForImport, getImportStatus as publicGetImportStatus, getNotImportedPosts as publicGetNotImportedPosts } from './blog-v1-wordpress-import-blog-importer.public';

export { Status } from './blog-v1-wordpress-import-blog-importer.universal';
export { ImportStatus, StartImportRequest, StartImportResponse, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, GetImportStatusRequest, GetImportStatusResponse, GetNotImportedPostsRequest, GetNotImportedPostsResponse, Post, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, } from './blog-v1-wordpress-import-blog-importer.universal';
export { ImportStatus, StartImportRequest, StartImportResponse, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, GetImportStatusRequest, GetImportStatusResponse, GetNotImportedPostsRequest, GetNotImportedPostsResponse, Post, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, SubmitUrlForImportOptions, } from './blog-v1-wordpress-import-blog-importer.universal';
import { HttpClient } from '@wix/sdk-types';
import { GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, ValidateUrlForImportResponse } from './blog-v1-wordpress-import-blog-importer.universal';
import { GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, StartImportOptions, SubmitUrlForImportOptions, ValidateUrlForImportResponse } from './blog-v1-wordpress-import-blog-importer.universal';
export declare const __metadata: {

@@ -22,3 +22,3 @@ PACKAGE_NAME: string;

*/
(url: string): Promise<void>;
(url: string, options?: SubmitUrlForImportOptions | undefined): Promise<void>;
}

@@ -44,2 +44,2 @@ export declare function validateUrlForImport(httpClient: HttpClient): ValidateUrlForImportSignature;

}
export { GetImportStatusRequest, GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsRequest, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, ImportStatus, Post, StartImportOptions, StartImportRequest, StartImportResponse, Status, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, } from './blog-v1-wordpress-import-blog-importer.universal';
export { GetImportStatusRequest, GetImportStatusResponse, GetImportStatusResponseNonNullableFields, GetNotImportedPostsRequest, GetNotImportedPostsResponse, GetNotImportedPostsResponseNonNullableFields, ImportStatus, Post, StartImportOptions, StartImportRequest, StartImportResponse, Status, SubmitUrlForImportOptions, SubmitUrlForImportRequest, SubmitUrlForImportResponse, ValidateUrlForImportRequest, ValidateUrlForImportResponse, } from './blog-v1-wordpress-import-blog-importer.universal';

@@ -9,3 +9,3 @@ import { getImportStatus as universalGetImportStatus, getNotImportedPosts as universalGetNotImportedPosts, startImport as universalStartImport, submitUrlForImport as universalSubmitUrlForImport, validateUrlForImport as universalValidateUrlForImport, } from './blog-v1-wordpress-import-blog-importer.universal';

export function submitUrlForImport(httpClient) {
return (url) => universalSubmitUrlForImport(url,
return (url, options) => universalSubmitUrlForImport(url, options,
// @ts-ignore

@@ -12,0 +12,0 @@ { httpClient });

@@ -34,2 +34,4 @@ export interface ImportStatus {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -36,0 +38,0 @@ export interface SubmitUrlForImportResponse {

@@ -34,2 +34,4 @@ export interface ImportStatus {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -109,3 +111,7 @@ export interface SubmitUrlForImportResponse {

*/
export declare function submitUrlForImport(url: string): Promise<void>;
export declare function submitUrlForImport(url: string, options?: SubmitUrlForImportOptions): Promise<void>;
export interface SubmitUrlForImportOptions {
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}
/** @param url - Url for wordpress site.

@@ -112,0 +118,0 @@ * @public

@@ -52,6 +52,9 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';

*/
export async function submitUrlForImport(url) {
export async function submitUrlForImport(url, options) {
// @ts-ignore
const { httpClient, sideEffects } = arguments[1];
const payload = renameKeysFromSDKRequestToRESTRequest({ url: url });
const { httpClient, sideEffects } = arguments[2];
const payload = renameKeysFromSDKRequestToRESTRequest({
url: url,
siteDomain: options?.siteDomain,
});
const reqOpts = ambassadorWixBlogV1WordpressImport.submitUrlForImport(payload);

@@ -66,5 +69,8 @@ sideEffects?.onSiteCall?.();

spreadPathsToArguments: {},
explicitPathsToArguments: { url: '$[0]' },
explicitPathsToArguments: {
url: '$[0]',
siteDomain: '$[1].siteDomain',
},
singleArgumentUnchanged: false,
}, ['url']);
}, ['url', 'options']);
sideEffects?.onError?.(err);

@@ -71,0 +77,0 @@ throw transformedError;

{
"name": "@wix/blog_blog-importer",
"version": "1.0.22",
"version": "1.0.23",
"publishConfig": {

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

},
"falconPackageHash": "a39cf888471afdda3fb284404fa2e650a2bb178ff8bd20d11affec2c"
"falconPackageHash": "236f6ba6dd7c772b279f8afebddc43c86db2181e6e1a8196b0ce8806"
}

@@ -512,2 +512,4 @@ type HostModule<T, H extends Host> = {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -569,2 +571,6 @@ interface SubmitUrlForImportResponse {

}
interface SubmitUrlForImportOptions {
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -587,3 +593,3 @@ declare function startImport$1(httpClient: HttpClient): StartImportSignature;

*/
(url: string): Promise<void>;
(url: string, options?: SubmitUrlForImportOptions | undefined): Promise<void>;
}

@@ -616,2 +622,2 @@ declare function validateUrlForImport$1(httpClient: HttpClient): ValidateUrlForImportSignature;

export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };
export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportOptions, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };

@@ -512,2 +512,4 @@ type HostModule<T, H extends Host> = {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -569,2 +571,6 @@ interface SubmitUrlForImportResponse {

}
interface SubmitUrlForImportOptions {
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -587,3 +593,3 @@ declare function startImport$1(httpClient: HttpClient): StartImportSignature;

*/
(url: string): Promise<void>;
(url: string, options?: SubmitUrlForImportOptions | undefined): Promise<void>;
}

@@ -616,2 +622,2 @@ declare function validateUrlForImport$1(httpClient: HttpClient): ValidateUrlForImportSignature;

export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };
export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportOptions, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };

@@ -34,2 +34,4 @@ interface ImportStatus {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -109,3 +111,7 @@ interface SubmitUrlForImportResponse {

*/
declare function submitUrlForImport(url: string): Promise<void>;
declare function submitUrlForImport(url: string, options?: SubmitUrlForImportOptions): Promise<void>;
interface SubmitUrlForImportOptions {
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}
/** @param url - Url for wordpress site.

@@ -133,2 +139,2 @@ * @public

export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };
export { type GetImportStatusRequest, type GetImportStatusResponse, type GetImportStatusResponseNonNullableFields, type GetNotImportedPostsRequest, type GetNotImportedPostsResponse, type GetNotImportedPostsResponseNonNullableFields, type ImportStatus, type Post, type StartImportOptions, type StartImportRequest, type StartImportResponse, Status, type SubmitUrlForImportOptions, type SubmitUrlForImportRequest, type SubmitUrlForImportResponse, type ValidateUrlForImportRequest, type ValidateUrlForImportResponse, getImportStatus, getNotImportedPosts, startImport, submitUrlForImport, validateUrlForImport };

@@ -34,2 +34,4 @@ interface ImportStatus$1 {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -121,2 +123,4 @@ interface SubmitUrlForImportResponse$1 {

url: string;
/** Domain of the site without www or https://. */
siteDomain?: string | null;
}

@@ -123,0 +127,0 @@ interface SubmitUrlForImportResponse {

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

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