@wix/auto_sdk_site-import_imports 1.0.5 → 1.0.7

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { StartImportOptions, StartImportResponse, GetImportStatusOptions, GetImportStatusResponse, GetImportDebugResponse, CancelImportResponse, SendImportMessageResponse, StartFrontendPreviewResponse, GetImportSourceOptions, GetImportSourceResponse, GetImportSourceFileOptions, GetImportSourceFileResponse, GetImportSourceForSiteOptions, GetImportSourceForSiteResponse, GetImportSourceFileForSiteOptions, GetImportSourceFileForSiteResponse, SearchImportSourceOptions, SearchImportSourceResponse, SearchImportSourceForSiteOptions, SearchImportSourceForSiteResponse, GetImportBySiteOptions, GetImportBySiteResponse } from './index.typings.js';
3
- export { CancelImportRequest, ClaudeResultSummary, FailedTaskDetail, GetImportBySiteRequest, GetImportDebugRequest, GetImportSourceFileForSiteRequest, GetImportSourceFileRequest, GetImportSourceForSiteRequest, GetImportSourceRequest, GetImportStatusRequest, Import, ImportActivity, ImportActivityKind, ImportActivityKindWithLiterals, ImportArtifact, ImportArtifactFormat, ImportArtifactFormatWithLiterals, ImportStatus, ImportStatusWithLiterals, ImportTodo, ImportTodoStatus, ImportTodoStatusWithLiterals, SearchImportSourceForSiteRequest, SearchImportSourceRequest, SearchMatch, SendImportMessageRequest, SourceChange, SourceChangeStatus, SourceChangeStatusWithLiterals, SourceConfidence, SourceConfidenceWithLiterals, SourceFile, SourceMatch, SourcePlatform, SourcePlatformWithLiterals, SourceSyncMode, SourceSyncModeWithLiterals, StartFrontendPreviewRequest, StartImportRequest, TaskDebug } from './index.typings.js';
3
+ export { CancelImportRequest, ClaudeResultSummary, FailedTaskDetail, GetImportBySiteRequest, GetImportDebugRequest, GetImportSourceFileForSiteRequest, GetImportSourceFileRequest, GetImportSourceForSiteRequest, GetImportSourceRequest, GetImportStatusRequest, Import, ImportActivity, ImportActivityKind, ImportActivityKindWithLiterals, ImportArtifact, ImportArtifactFormat, ImportArtifactFormatWithLiterals, ImportDestination, ImportDestinationWithLiterals, ImportStatus, ImportStatusWithLiterals, ImportTodo, ImportTodoStatus, ImportTodoStatusWithLiterals, SearchImportSourceForSiteRequest, SearchImportSourceRequest, SearchMatch, SendImportMessageRequest, SourceChange, SourceChangeStatus, SourceChangeStatusWithLiterals, SourceConfidence, SourceConfidenceWithLiterals, SourceFile, SourceMatch, SourcePlatform, SourcePlatformWithLiterals, SourceSyncMode, SourceSyncModeWithLiterals, StartFrontendPreviewRequest, StartImportRequest, TaskDebug } from './index.typings.js';
4
4
 
5
5
  declare function startImport$1(httpClient: HttpClient): StartImportSignature;
6
6
  interface StartImportSignature {
@@ -9,7 +9,7 @@ interface StartImportSignature {
9
9
  * @param - Natural-language import request. Include the source site URL
10
10
  * (e.g. "import https://shop.example.com into Wix").
11
11
  */
12
- (request: string, options?: StartImportOptions): Promise<NonNullablePaths<StartImportResponse, `importId` | `sourcePlatform` | `sourceConfidence` | `destinationSiteId` | `existingImport`, 0>>;
12
+ (request: string, options?: StartImportOptions): Promise<NonNullablePaths<StartImportResponse, `importId` | `sourcePlatform` | `sourceConfidence` | `destinationSiteId` | `existingImport` | `supported` | `message`, 0>>;
13
13
  }
14
14
  declare function getImportStatus$1(httpClient: HttpClient): GetImportStatusSignature;
15
15
  interface GetImportStatusSignature {
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  ImportActivityKind: () => ImportActivityKind,
24
24
  ImportArtifactFormat: () => ImportArtifactFormat,
25
+ ImportDestination: () => ImportDestination,
25
26
  ImportStatus: () => ImportStatus,
26
27
  ImportTodoStatus: () => ImportTodoStatus,
27
28
  SourceChangeStatus: () => SourceChangeStatus,
@@ -383,6 +384,12 @@ function getImportBySite(payload) {
383
384
  }
384
385
 
385
386
  // src/ecom-site-import-v1-import-imports.universal.ts
387
+ var ImportDestination = /* @__PURE__ */ ((ImportDestination2) => {
388
+ ImportDestination2["UNKNOWN_IMPORT_DESTINATION"] = "UNKNOWN_IMPORT_DESTINATION";
389
+ ImportDestination2["NEW_SITE"] = "NEW_SITE";
390
+ ImportDestination2["CONTEXT_SITE"] = "CONTEXT_SITE";
391
+ return ImportDestination2;
392
+ })(ImportDestination || {});
386
393
  var SourcePlatform = /* @__PURE__ */ ((SourcePlatform2) => {
387
394
  SourcePlatform2["UNKNOWN_SOURCE_PLATFORM"] = "UNKNOWN_SOURCE_PLATFORM";
388
395
  SourcePlatform2["SHOPIFY"] = "SHOPIFY";
@@ -407,6 +414,7 @@ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
407
414
  ImportStatus2["FAILED"] = "FAILED";
408
415
  ImportStatus2["CANCELLED"] = "CANCELLED";
409
416
  ImportStatus2["NEEDS_INPUT"] = "NEEDS_INPUT";
417
+ ImportStatus2["HANDED_OFF"] = "HANDED_OFF";
410
418
  return ImportStatus2;
411
419
  })(ImportStatus || {});
412
420
  var ImportActivityKind = /* @__PURE__ */ ((ImportActivityKind2) => {
@@ -448,7 +456,8 @@ async function startImport2(request, options) {
448
456
  request,
449
457
  sourceUrl: options?.sourceUrl,
450
458
  fileUrls: options?.fileUrls,
451
- forceNew: options?.forceNew
459
+ forceNew: options?.forceNew,
460
+ destination: options?.destination
452
461
  });
453
462
  const reqOpts = startImport(payload);
454
463
  sideEffects?.onSiteCall?.();
@@ -465,7 +474,8 @@ async function startImport2(request, options) {
465
474
  request: "$[0]",
466
475
  sourceUrl: "$[1].sourceUrl",
467
476
  fileUrls: "$[1].fileUrls",
468
- forceNew: "$[1].forceNew"
477
+ forceNew: "$[1].forceNew",
478
+ destination: "$[1].destination"
469
479
  },
470
480
  singleArgumentUnchanged: false
471
481
  },
@@ -973,6 +983,7 @@ var getImportBySite4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule
973
983
  0 && (module.exports = {
974
984
  ImportActivityKind,
975
985
  ImportArtifactFormat,
986
+ ImportDestination,
976
987
  ImportStatus,
977
988
  ImportTodoStatus,
978
989
  SourceChangeStatus,