@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.
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +4 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +46 -10
- package/build/cjs/index.typings.js +4 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +26 -7
- package/build/cjs/meta.js +0 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +4 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +46 -10
- package/build/es/index.typings.mjs +4 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +26 -7
- package/build/es/meta.mjs +0 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.typings.d.ts +46 -10
- package/build/internal/cjs/meta.d.ts +26 -7
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.typings.d.mts +46 -10
- package/build/internal/es/meta.d.mts +26 -7
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
187
|
-
* GetImportBySiteRequest's comment
|
|
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
|
package/build/cjs/index.js
CHANGED
|
@@ -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
|
},
|