@wix/auto_sdk_site-import_imports 1.0.3 → 1.0.5
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 +15 -15
- package/build/cjs/index.js +4 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +46 -46
- package/build/cjs/index.typings.js +4 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -22
- package/build/cjs/meta.js +4 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +15 -15
- package/build/es/index.mjs +4 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +46 -46
- package/build/es/index.typings.mjs +4 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -22
- package/build/es/meta.mjs +4 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -15
- package/build/internal/cjs/index.typings.d.ts +46 -46
- package/build/internal/cjs/meta.d.ts +22 -22
- package/build/internal/es/index.d.mts +15 -15
- package/build/internal/es/index.typings.d.mts +46 -46
- package/build/internal/es/meta.d.mts +22 -22
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -80,23 +80,24 @@ interface StartFrontendPreviewSignature {
|
|
|
80
80
|
declare function getImportSource$1(httpClient: HttpClient): GetImportSourceSignature;
|
|
81
81
|
interface GetImportSourceSignature {
|
|
82
82
|
/**
|
|
83
|
-
* Read-only, checkpoint-based MANIFEST
|
|
84
|
-
*
|
|
83
|
+
* Read-only, checkpoint-based MANIFEST of the migration's durable source
|
|
84
|
+
* snapshot (specs 0022, 0027) — the only way a code-review/browser UI
|
|
85
85
|
* ever sees the generated source tree, without holding a project id or
|
|
86
86
|
* Git/S3 credential. Metadata only (path/size) — advertise cheaply, fetch
|
|
87
87
|
* on demand: a selected file's content is a separate call,
|
|
88
88
|
* GetImportSourceFile, pinned to this response's `checkpoint`.
|
|
89
89
|
*
|
|
90
|
-
* No `checkpoint` (or one
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* `changes` only (ADDED/MODIFIED carry `size`, DELETED carries only
|
|
95
|
-
* `path`).
|
|
90
|
+
* No `checkpoint` (or one that is not the latest): mode FULL, every
|
|
91
|
+
* eligible file's path+size. `checkpoint` already equal to the latest:
|
|
92
|
+
* mode UNCHANGED, nothing else in the response is meaningful. Mode DELTA
|
|
93
|
+
* and `changes` are no longer produced (spec 0027).
|
|
96
94
|
*
|
|
97
|
-
*
|
|
95
|
+
* Served from the S3 snapshot the sandbox writes at each checkpoint. A
|
|
96
|
+
* project with no snapshot yet answers FAILED_PRECONDITION.
|
|
97
|
+
*
|
|
98
|
+
* `files` is PAGINATED, never silently truncated: a
|
|
98
99
|
* `next_page_token` in the response means more entries remain for this
|
|
99
|
-
* exact `checkpoint
|
|
100
|
+
* exact `checkpoint` — pass it back as `page_token` (sufficient on its
|
|
100
101
|
* own; `checkpoint` is not needed on a continuation) to fetch the rest. A
|
|
101
102
|
* client MUST drain every page (no `next_page_token`) before treating the
|
|
102
103
|
* listing as complete and only THEN may it store/advance its `checkpoint` —
|
|
@@ -114,7 +115,7 @@ interface GetImportSourceFileSignature {
|
|
|
114
115
|
/**
|
|
115
116
|
* One file's content, pinned to a specific checkpoint (always one a prior
|
|
116
117
|
* GetImportSource response named, so what a client reads matches what its
|
|
117
|
-
* manifest
|
|
118
|
+
* manifest said was there) — the on-demand half of the same
|
|
118
119
|
* "advertise cheaply, fetch on demand" pair. Its OWN permission (flynt's
|
|
119
120
|
* permissions-naming rule ties one permission to one rpc name) — a caller
|
|
120
121
|
* needs both get_import_source and get_import_source_file to browse AND
|
|
@@ -122,14 +123,14 @@ interface GetImportSourceFileSignature {
|
|
|
122
123
|
* @param - Id of the import whose checkpoint history to read from.
|
|
123
124
|
* @param - Which checkpoint to read the file AS OF — always a prior
|
|
124
125
|
* GetImportSource response's `checkpoint`, so a selected file's content
|
|
125
|
-
* matches what that manifest
|
|
126
|
+
* matches what that manifest said was there.
|
|
126
127
|
*/
|
|
127
128
|
(importId: string, checkpoint: string, options?: NonNullablePaths<GetImportSourceFileOptions, `filePath`, 0>): Promise<NonNullablePaths<GetImportSourceFileResponse, `importId` | `checkpoint` | `path` | `content` | `truncated` | `firstLine` | `matches` | `matches.${number}.line` | `matches.${number}.text` | `matches.${number}.contextLine` | `truncatedReason`, 2>>;
|
|
128
129
|
}
|
|
129
130
|
declare function getImportSourceForSite$1(httpClient: HttpClient): GetImportSourceForSiteSignature;
|
|
130
131
|
interface GetImportSourceForSiteSignature {
|
|
131
132
|
/**
|
|
132
|
-
* Same manifest
|
|
133
|
+
* Same manifest contract as GetImportSource, but scoped to the
|
|
133
134
|
* caller's SITE rather than their account: there is no import_id on the
|
|
134
135
|
* wire at all — the destination site comes from the caller's gateway-signed
|
|
135
136
|
* request context (the same `metaSiteId` primitive StartImport's response
|
|
@@ -176,8 +177,7 @@ interface SearchImportSourceSignature {
|
|
|
176
177
|
* Search the migration's source for a pattern WITHOUT downloading it (spec
|
|
177
178
|
* 0027): the service streams each file from S3, matches, and returns only
|
|
178
179
|
* the matching lines (with optional context). Works only on checkpoints
|
|
179
|
-
* that have a snapshot
|
|
180
|
-
* covers; otherwise FAILED_PRECONDITION / UNIMPLEMENTED. Bounded — a
|
|
180
|
+
* that have a snapshot; otherwise FAILED_PRECONDITION. Bounded — a
|
|
181
181
|
* `truncated_reason` says which cap (files, bytes, time, matches, response
|
|
182
182
|
* size) ended the scan and `last_path_scanned` lets the caller continue with
|
|
183
183
|
* a narrower `path_prefix`.
|