@wix/auto_sdk_site-import_imports 1.0.0 → 1.0.1

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.
@@ -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`, 0>>;
12
+ (request: string, options?: StartImportOptions): Promise<NonNullablePaths<StartImportResponse, `importId` | `sourcePlatform` | `sourceConfidence` | `destinationSiteId` | `existingImport`, 0>>;
13
13
  }
14
14
  declare function getImportStatus$1(httpClient: HttpClient): GetImportStatusSignature;
15
15
  interface GetImportStatusSignature {
@@ -183,8 +183,8 @@ interface GetImportBySiteSignature {
183
183
  * caller error (`SITE_UNIDENTIFIED`), same as `StartImport` — this rpc has no
184
184
  * request-text fallback, so a site or fileset must be named explicitly.
185
185
  * ACCOUNT tenancy (unlike the SITE-tenancy pair above): scoped to the
186
- * CALLING USER's own imports only, never another account member's — see
187
- * GetImportBySiteRequest's comment and spec 0025 for why.
186
+ * ACCOUNT's import for the source, whichever member started it — see
187
+ * GetImportBySiteRequest's comment.
188
188
  * Resolvable only within the import's 7-day resumability window (the same
189
189
  * window `SendImportMessage`'s `SESSION_EXPIRED` bounds) — a lookup outside
190
190
  * that window returns `IMPORT_NOT_FOUND`, indistinguishable from "never
@@ -352,7 +352,6 @@ var ImportStatus = /* @__PURE__ */ ((ImportStatus2) => {
352
352
  ImportStatus2["DEPLOYED"] = "DEPLOYED";
353
353
  ImportStatus2["FAILED"] = "FAILED";
354
354
  ImportStatus2["CANCELLED"] = "CANCELLED";
355
- ImportStatus2["AUTH_EXPIRED"] = "AUTH_EXPIRED";
356
355
  ImportStatus2["NEEDS_INPUT"] = "NEEDS_INPUT";
357
356
  return ImportStatus2;
358
357
  })(ImportStatus || {});
@@ -394,7 +393,8 @@ async function startImport2(request, options) {
394
393
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
395
394
  request,
396
395
  sourceUrl: options?.sourceUrl,
397
- fileUrls: options?.fileUrls
396
+ fileUrls: options?.fileUrls,
397
+ forceNew: options?.forceNew
398
398
  });
399
399
  const reqOpts = startImport(payload);
400
400
  sideEffects?.onSiteCall?.();
@@ -410,7 +410,8 @@ async function startImport2(request, options) {
410
410
  explicitPathsToArguments: {
411
411
  request: "$[0]",
412
412
  sourceUrl: "$[1].sourceUrl",
413
- fileUrls: "$[1].fileUrls"
413
+ fileUrls: "$[1].fileUrls",
414
+ forceNew: "$[1].forceNew"
414
415
  },
415
416
  singleArgumentUnchanged: false
416
417
  },