@wix/auto_sdk_site-import_imports 1.0.2 → 1.0.3
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 +31 -5
- package/build/cjs/index.js +165 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +363 -5
- package/build/cjs/index.typings.js +148 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +238 -2
- package/build/cjs/meta.js +82 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +31 -5
- package/build/es/index.mjs +163 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +363 -5
- package/build/es/index.typings.mjs +146 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +238 -2
- package/build/es/meta.mjs +80 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +31 -5
- package/build/internal/cjs/index.typings.d.ts +363 -5
- package/build/internal/cjs/meta.d.ts +238 -2
- package/build/internal/es/index.d.mts +31 -5
- package/build/internal/es/index.typings.d.mts +363 -5
- package/build/internal/es/meta.d.mts +238 -2
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StartImportRequest as StartImportRequest$1, StartImportResponse as StartImportResponse$1, GetImportStatusRequest as GetImportStatusRequest$1, GetImportStatusResponse as GetImportStatusResponse$1, GetImportDebugRequest as GetImportDebugRequest$1, GetImportDebugResponse as GetImportDebugResponse$1, CancelImportRequest as CancelImportRequest$1, CancelImportResponse as CancelImportResponse$1, SendImportMessageRequest as SendImportMessageRequest$1, SendImportMessageResponse as SendImportMessageResponse$1, StartFrontendPreviewRequest as StartFrontendPreviewRequest$1, StartFrontendPreviewResponse as StartFrontendPreviewResponse$1, GetImportSourceRequest as GetImportSourceRequest$1, GetImportSourceResponse as GetImportSourceResponse$1, GetImportSourceFileRequest as GetImportSourceFileRequest$1, GetImportSourceFileResponse as GetImportSourceFileResponse$1, GetImportSourceForSiteRequest as GetImportSourceForSiteRequest$1, GetImportSourceForSiteResponse as GetImportSourceForSiteResponse$1, GetImportSourceFileForSiteRequest as GetImportSourceFileForSiteRequest$1, GetImportSourceFileForSiteResponse as GetImportSourceFileForSiteResponse$1, GetImportBySiteRequest as GetImportBySiteRequest$1, GetImportBySiteResponse as GetImportBySiteResponse$1 } from './index.typings.js';
|
|
1
|
+
import { StartImportRequest as StartImportRequest$1, StartImportResponse as StartImportResponse$1, GetImportStatusRequest as GetImportStatusRequest$1, GetImportStatusResponse as GetImportStatusResponse$1, GetImportDebugRequest as GetImportDebugRequest$1, GetImportDebugResponse as GetImportDebugResponse$1, CancelImportRequest as CancelImportRequest$1, CancelImportResponse as CancelImportResponse$1, SendImportMessageRequest as SendImportMessageRequest$1, SendImportMessageResponse as SendImportMessageResponse$1, StartFrontendPreviewRequest as StartFrontendPreviewRequest$1, StartFrontendPreviewResponse as StartFrontendPreviewResponse$1, GetImportSourceRequest as GetImportSourceRequest$1, GetImportSourceResponse as GetImportSourceResponse$1, GetImportSourceFileRequest as GetImportSourceFileRequest$1, GetImportSourceFileResponse as GetImportSourceFileResponse$1, GetImportSourceForSiteRequest as GetImportSourceForSiteRequest$1, GetImportSourceForSiteResponse as GetImportSourceForSiteResponse$1, GetImportSourceFileForSiteRequest as GetImportSourceFileForSiteRequest$1, GetImportSourceFileForSiteResponse as GetImportSourceFileForSiteResponse$1, SearchImportSourceRequest as SearchImportSourceRequest$1, SearchImportSourceResponse as SearchImportSourceResponse$1, SearchImportSourceForSiteRequest as SearchImportSourceForSiteRequest$1, SearchImportSourceForSiteResponse as SearchImportSourceForSiteResponse$1, GetImportBySiteRequest as GetImportBySiteRequest$1, GetImportBySiteResponse as GetImportBySiteResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -680,6 +680,31 @@ interface GetImportSourceFileRequest {
|
|
|
680
680
|
* @maxLength 500
|
|
681
681
|
*/
|
|
682
682
|
filePath: string;
|
|
683
|
+
/**
|
|
684
|
+
* QUERY OPTIONS (spec 0027) — at most one of `tail`, `head`, `lines`, `grep`.
|
|
685
|
+
* Served from the S3 snapshot only (never a clone): a checkpoint with no
|
|
686
|
+
* snapshot answers FAILED_PRECONDITION, an account outside the rollout
|
|
687
|
+
* UNIMPLEMENTED. When none is set the call is the plain bounded preview.
|
|
688
|
+
*
|
|
689
|
+
* Return only the last N lines of the file (N ≤ 200).
|
|
690
|
+
*/
|
|
691
|
+
tail?: number;
|
|
692
|
+
/** Return only the first N lines of the file (N ≤ 200). */
|
|
693
|
+
head?: number;
|
|
694
|
+
/**
|
|
695
|
+
* Return a line range such as "10-60" (at most 200 lines).
|
|
696
|
+
* @maxLength 20
|
|
697
|
+
*/
|
|
698
|
+
lines?: string;
|
|
699
|
+
/**
|
|
700
|
+
* Return the lines matching this pattern (with `context` lines around each).
|
|
701
|
+
* @maxLength 200
|
|
702
|
+
*/
|
|
703
|
+
grep?: string;
|
|
704
|
+
/** Lines of context around each `grep` match, 0-10. */
|
|
705
|
+
context?: number;
|
|
706
|
+
/** Treat `grep` as a literal string instead of a regular expression. */
|
|
707
|
+
fixed?: boolean;
|
|
683
708
|
}
|
|
684
709
|
interface GetImportSourceFileResponse {
|
|
685
710
|
/**
|
|
@@ -708,6 +733,36 @@ interface GetImportSourceFileResponse {
|
|
|
708
733
|
* clipped, not the complete file.
|
|
709
734
|
*/
|
|
710
735
|
truncated?: boolean;
|
|
736
|
+
/**
|
|
737
|
+
* First line number of `content` for `head`/`lines`; absent for `tail`
|
|
738
|
+
* (the line number of a file's end is not known without reading all of it).
|
|
739
|
+
*/
|
|
740
|
+
firstLine?: number;
|
|
741
|
+
/**
|
|
742
|
+
* `grep` results (with context lines), in file order. `content` is empty.
|
|
743
|
+
* @maxSize 5000
|
|
744
|
+
*/
|
|
745
|
+
matches?: SourceMatch[];
|
|
746
|
+
/**
|
|
747
|
+
* Why a query result is incomplete — MAX_LINES, MAX_MATCHES, RESPONSE_SIZE,
|
|
748
|
+
* TIME, LINE_CLIPPED (a line over 64 KiB was cut, so text past it was not
|
|
749
|
+
* seen) or STORED_PREFIX_ONLY (the file is over 25 MB and only its start is
|
|
750
|
+
* stored). Set whenever `truncated` is true for a query.
|
|
751
|
+
* @maxLength 32
|
|
752
|
+
*/
|
|
753
|
+
truncatedReason?: string;
|
|
754
|
+
}
|
|
755
|
+
/** One matching (or context) line of a `grep` query on a single file. */
|
|
756
|
+
interface SourceMatch {
|
|
757
|
+
/** 1-based line number within the file. */
|
|
758
|
+
line?: number;
|
|
759
|
+
/**
|
|
760
|
+
* The line's text (clipped to 2000 characters).
|
|
761
|
+
* @maxLength 2000
|
|
762
|
+
*/
|
|
763
|
+
text?: string;
|
|
764
|
+
/** True for a context line around a match, false for the match itself. */
|
|
765
|
+
contextLine?: boolean;
|
|
711
766
|
}
|
|
712
767
|
interface GetImportSourceForSiteRequest {
|
|
713
768
|
/**
|
|
@@ -823,6 +878,31 @@ interface GetImportSourceFileForSiteRequest {
|
|
|
823
878
|
* @format GUID
|
|
824
879
|
*/
|
|
825
880
|
importId: string;
|
|
881
|
+
/**
|
|
882
|
+
* QUERY OPTIONS (spec 0027) — at most one of `tail`, `head`, `lines`, `grep`.
|
|
883
|
+
* Served from the S3 snapshot only (never a clone): a checkpoint with no
|
|
884
|
+
* snapshot answers FAILED_PRECONDITION, an account outside the rollout
|
|
885
|
+
* UNIMPLEMENTED. When none is set the call is the plain bounded preview.
|
|
886
|
+
*
|
|
887
|
+
* Return only the last N lines of the file (N ≤ 200).
|
|
888
|
+
*/
|
|
889
|
+
tail?: number;
|
|
890
|
+
/** Return only the first N lines of the file (N ≤ 200). */
|
|
891
|
+
head?: number;
|
|
892
|
+
/**
|
|
893
|
+
* Return a line range such as "10-60" (at most 200 lines).
|
|
894
|
+
* @maxLength 20
|
|
895
|
+
*/
|
|
896
|
+
lines?: string;
|
|
897
|
+
/**
|
|
898
|
+
* Return the lines matching this pattern (with `context` lines around each).
|
|
899
|
+
* @maxLength 200
|
|
900
|
+
*/
|
|
901
|
+
grep?: string;
|
|
902
|
+
/** Lines of context around each `grep` match, 0-10. */
|
|
903
|
+
context?: number;
|
|
904
|
+
/** Treat `grep` as a literal string instead of a regular expression. */
|
|
905
|
+
fixed?: boolean;
|
|
826
906
|
}
|
|
827
907
|
/**
|
|
828
908
|
* Identical shape to GetImportSourceFileResponse — a distinct message only
|
|
@@ -855,6 +935,158 @@ interface GetImportSourceFileForSiteResponse {
|
|
|
855
935
|
* clipped, not the complete file.
|
|
856
936
|
*/
|
|
857
937
|
truncated?: boolean;
|
|
938
|
+
/**
|
|
939
|
+
* First line number of `content` for `head`/`lines`; absent for `tail`
|
|
940
|
+
* (the line number of a file's end is not known without reading all of it).
|
|
941
|
+
*/
|
|
942
|
+
firstLine?: number;
|
|
943
|
+
/**
|
|
944
|
+
* `grep` results (with context lines), in file order. `content` is empty.
|
|
945
|
+
* @maxSize 5000
|
|
946
|
+
*/
|
|
947
|
+
matches?: SourceMatch[];
|
|
948
|
+
/**
|
|
949
|
+
* Why a query result is incomplete — MAX_LINES, MAX_MATCHES, RESPONSE_SIZE,
|
|
950
|
+
* TIME, LINE_CLIPPED (a line over 64 KiB was cut, so text past it was not
|
|
951
|
+
* seen) or STORED_PREFIX_ONLY (the file is over 25 MB and only its start is
|
|
952
|
+
* stored). Set whenever `truncated` is true for a query.
|
|
953
|
+
* @maxLength 32
|
|
954
|
+
*/
|
|
955
|
+
truncatedReason?: string;
|
|
956
|
+
}
|
|
957
|
+
interface SearchImportSourceRequest {
|
|
958
|
+
/**
|
|
959
|
+
* Id of the import whose source to search.
|
|
960
|
+
* @format GUID
|
|
961
|
+
*/
|
|
962
|
+
importId: string;
|
|
963
|
+
/**
|
|
964
|
+
* Checkpoint to search AS OF — a prior GetImportSource response's
|
|
965
|
+
* `checkpoint`. Absent = the latest checkpoint.
|
|
966
|
+
* @maxLength 40
|
|
967
|
+
*/
|
|
968
|
+
checkpoint?: string;
|
|
969
|
+
/**
|
|
970
|
+
* The pattern to look for (a regular expression unless `fixed`).
|
|
971
|
+
* @maxLength 200
|
|
972
|
+
*/
|
|
973
|
+
pattern: string;
|
|
974
|
+
/** Treat `pattern` as a literal string. */
|
|
975
|
+
fixed?: boolean;
|
|
976
|
+
/** Lines of context around each match, 0-10. */
|
|
977
|
+
context?: number;
|
|
978
|
+
/**
|
|
979
|
+
* Only search files whose path starts with this prefix.
|
|
980
|
+
* @maxLength 500
|
|
981
|
+
*/
|
|
982
|
+
pathPrefix?: string;
|
|
983
|
+
}
|
|
984
|
+
interface SearchImportSourceResponse {
|
|
985
|
+
/**
|
|
986
|
+
* Id of this import (echoes the request).
|
|
987
|
+
* @format GUID
|
|
988
|
+
*/
|
|
989
|
+
importId?: string;
|
|
990
|
+
/**
|
|
991
|
+
* The checkpoint that was searched.
|
|
992
|
+
* @maxLength 40
|
|
993
|
+
*/
|
|
994
|
+
checkpoint?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Matching lines (and their context), in path order.
|
|
997
|
+
* @maxSize 5000
|
|
998
|
+
*/
|
|
999
|
+
matches?: SearchMatch[];
|
|
1000
|
+
/** True if the scan stopped before covering every file. */
|
|
1001
|
+
truncated?: boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Why: MAX_FILES, MAX_BYTES, MAX_MATCHES, RESPONSE_SIZE, TIME, LINE_CLIPPED (a
|
|
1004
|
+
* line over 64 KiB was cut) or STORED_PREFIX_ONLY (a file over 25 MB is stored
|
|
1005
|
+
* only in part). Unknown values should be treated as "partial result".
|
|
1006
|
+
* @maxLength 32
|
|
1007
|
+
*/
|
|
1008
|
+
truncatedReason?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* The last path fully scanned, so a capped search can continue with a
|
|
1011
|
+
* narrower `path_prefix`.
|
|
1012
|
+
* @maxLength 500
|
|
1013
|
+
*/
|
|
1014
|
+
lastPathScanned?: string;
|
|
1015
|
+
}
|
|
1016
|
+
/** One matching (or context) line found by SearchImportSource. */
|
|
1017
|
+
interface SearchMatch {
|
|
1018
|
+
/**
|
|
1019
|
+
* File the line is in, relative to the repository root.
|
|
1020
|
+
* @maxLength 500
|
|
1021
|
+
*/
|
|
1022
|
+
path?: string;
|
|
1023
|
+
/** 1-based line number within the file. */
|
|
1024
|
+
line?: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* The line's text (clipped to 2000 characters).
|
|
1027
|
+
* @maxLength 2000
|
|
1028
|
+
*/
|
|
1029
|
+
text?: string;
|
|
1030
|
+
/** True for a context line around a match, false for the match itself. */
|
|
1031
|
+
contextLine?: boolean;
|
|
1032
|
+
}
|
|
1033
|
+
interface SearchImportSourceForSiteRequest {
|
|
1034
|
+
/**
|
|
1035
|
+
* OPTIONAL. Pins the search to the import a prior GetImportSourceForSite
|
|
1036
|
+
* response resolved; the server re-verifies it belongs to the caller's site.
|
|
1037
|
+
* @format GUID
|
|
1038
|
+
*/
|
|
1039
|
+
importId?: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Checkpoint to search AS OF. Absent = the latest checkpoint.
|
|
1042
|
+
* @maxLength 40
|
|
1043
|
+
*/
|
|
1044
|
+
checkpoint?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* The pattern to look for (a regular expression unless `fixed`).
|
|
1047
|
+
* @maxLength 200
|
|
1048
|
+
*/
|
|
1049
|
+
pattern: string;
|
|
1050
|
+
/** Treat `pattern` as a literal string. */
|
|
1051
|
+
fixed?: boolean;
|
|
1052
|
+
/** Lines of context around each match, 0-10. */
|
|
1053
|
+
context?: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* Only search files whose path starts with this prefix.
|
|
1056
|
+
* @maxLength 500
|
|
1057
|
+
*/
|
|
1058
|
+
pathPrefix?: string;
|
|
1059
|
+
}
|
|
1060
|
+
interface SearchImportSourceForSiteResponse {
|
|
1061
|
+
/**
|
|
1062
|
+
* Id of the import resolved for the caller's site.
|
|
1063
|
+
* @format GUID
|
|
1064
|
+
*/
|
|
1065
|
+
importId?: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* The checkpoint that was searched.
|
|
1068
|
+
* @maxLength 40
|
|
1069
|
+
*/
|
|
1070
|
+
checkpoint?: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Matching lines (and their context), in path order.
|
|
1073
|
+
* @maxSize 5000
|
|
1074
|
+
*/
|
|
1075
|
+
matches?: SearchMatch[];
|
|
1076
|
+
/** True if the scan stopped before covering every file. */
|
|
1077
|
+
truncated?: boolean;
|
|
1078
|
+
/**
|
|
1079
|
+
* Why: MAX_FILES, MAX_BYTES, MAX_MATCHES, RESPONSE_SIZE, TIME, LINE_CLIPPED (a
|
|
1080
|
+
* line over 64 KiB was cut) or STORED_PREFIX_ONLY (a file over 25 MB is stored
|
|
1081
|
+
* only in part). Unknown values should be treated as "partial result".
|
|
1082
|
+
* @maxLength 32
|
|
1083
|
+
*/
|
|
1084
|
+
truncatedReason?: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* The last path fully scanned, so a capped search can continue.
|
|
1087
|
+
* @maxLength 500
|
|
1088
|
+
*/
|
|
1089
|
+
lastPathScanned?: string;
|
|
858
1090
|
}
|
|
859
1091
|
interface GetImportBySiteRequest {
|
|
860
1092
|
/**
|
|
@@ -920,6 +1152,10 @@ declare function getImportSourceFile(): __PublicMethodMetaInfo<'GET', {
|
|
|
920
1152
|
}, GetImportSourceFileRequest$1, GetImportSourceFileRequest, GetImportSourceFileResponse$1, GetImportSourceFileResponse>;
|
|
921
1153
|
declare function getImportSourceForSite(): __PublicMethodMetaInfo<'GET', {}, GetImportSourceForSiteRequest$1, GetImportSourceForSiteRequest, GetImportSourceForSiteResponse$1, GetImportSourceForSiteResponse>;
|
|
922
1154
|
declare function getImportSourceFileForSite(): __PublicMethodMetaInfo<'GET', {}, GetImportSourceFileForSiteRequest$1, GetImportSourceFileForSiteRequest, GetImportSourceFileForSiteResponse$1, GetImportSourceFileForSiteResponse>;
|
|
1155
|
+
declare function searchImportSource(): __PublicMethodMetaInfo<'GET', {
|
|
1156
|
+
importId: string;
|
|
1157
|
+
}, SearchImportSourceRequest$1, SearchImportSourceRequest, SearchImportSourceResponse$1, SearchImportSourceResponse>;
|
|
1158
|
+
declare function searchImportSourceForSite(): __PublicMethodMetaInfo<'GET', {}, SearchImportSourceForSiteRequest$1, SearchImportSourceForSiteRequest, SearchImportSourceForSiteResponse$1, SearchImportSourceForSiteResponse>;
|
|
923
1159
|
declare function getImportBySite(): __PublicMethodMetaInfo<'GET', {}, GetImportBySiteRequest$1, GetImportBySiteRequest, GetImportBySiteResponse$1, GetImportBySiteResponse>;
|
|
924
1160
|
|
|
925
|
-
export { type CancelImportRequest as CancelImportRequestOriginal, type CancelImportResponse as CancelImportResponseOriginal, type ClaudeResultSummary as ClaudeResultSummaryOriginal, type FailedTaskDetail as FailedTaskDetailOriginal, type GetImportBySiteRequest as GetImportBySiteRequestOriginal, type GetImportBySiteResponse as GetImportBySiteResponseOriginal, type GetImportDebugRequest as GetImportDebugRequestOriginal, type GetImportDebugResponse as GetImportDebugResponseOriginal, type GetImportSourceFileForSiteRequest as GetImportSourceFileForSiteRequestOriginal, type GetImportSourceFileForSiteResponse as GetImportSourceFileForSiteResponseOriginal, type GetImportSourceFileRequest as GetImportSourceFileRequestOriginal, type GetImportSourceFileResponse as GetImportSourceFileResponseOriginal, type GetImportSourceForSiteRequest as GetImportSourceForSiteRequestOriginal, type GetImportSourceForSiteResponse as GetImportSourceForSiteResponseOriginal, type GetImportSourceRequest as GetImportSourceRequestOriginal, type GetImportSourceResponse as GetImportSourceResponseOriginal, type GetImportStatusRequest as GetImportStatusRequestOriginal, type GetImportStatusResponse as GetImportStatusResponseOriginal, ImportActivityKind as ImportActivityKindOriginal, type ImportActivityKindWithLiterals as ImportActivityKindWithLiteralsOriginal, type ImportActivity as ImportActivityOriginal, ImportArtifactFormat as ImportArtifactFormatOriginal, type ImportArtifactFormatWithLiterals as ImportArtifactFormatWithLiteralsOriginal, type ImportArtifact as ImportArtifactOriginal, type Import as ImportOriginal, ImportStatus as ImportStatusOriginal, type ImportStatusWithLiterals as ImportStatusWithLiteralsOriginal, type ImportTodo as ImportTodoOriginal, ImportTodoStatus as ImportTodoStatusOriginal, type ImportTodoStatusWithLiterals as ImportTodoStatusWithLiteralsOriginal, type SendImportMessageRequest as SendImportMessageRequestOriginal, type SendImportMessageResponse as SendImportMessageResponseOriginal, type SourceChange as SourceChangeOriginal, SourceChangeStatus as SourceChangeStatusOriginal, type SourceChangeStatusWithLiterals as SourceChangeStatusWithLiteralsOriginal, SourceConfidence as SourceConfidenceOriginal, type SourceConfidenceWithLiterals as SourceConfidenceWithLiteralsOriginal, type SourceFile as SourceFileOriginal, SourcePlatform as SourcePlatformOriginal, type SourcePlatformWithLiterals as SourcePlatformWithLiteralsOriginal, SourceSyncMode as SourceSyncModeOriginal, type SourceSyncModeWithLiterals as SourceSyncModeWithLiteralsOriginal, type StartFrontendPreviewRequest as StartFrontendPreviewRequestOriginal, type StartFrontendPreviewResponse as StartFrontendPreviewResponseOriginal, type StartImportRequest as StartImportRequestOriginal, type StartImportResponse as StartImportResponseOriginal, type TaskDebug as TaskDebugOriginal, type __PublicMethodMetaInfo, cancelImport, getImportBySite, getImportDebug, getImportSource, getImportSourceFile, getImportSourceFileForSite, getImportSourceForSite, getImportStatus, sendImportMessage, startFrontendPreview, startImport };
|
|
1161
|
+
export { type CancelImportRequest as CancelImportRequestOriginal, type CancelImportResponse as CancelImportResponseOriginal, type ClaudeResultSummary as ClaudeResultSummaryOriginal, type FailedTaskDetail as FailedTaskDetailOriginal, type GetImportBySiteRequest as GetImportBySiteRequestOriginal, type GetImportBySiteResponse as GetImportBySiteResponseOriginal, type GetImportDebugRequest as GetImportDebugRequestOriginal, type GetImportDebugResponse as GetImportDebugResponseOriginal, type GetImportSourceFileForSiteRequest as GetImportSourceFileForSiteRequestOriginal, type GetImportSourceFileForSiteResponse as GetImportSourceFileForSiteResponseOriginal, type GetImportSourceFileRequest as GetImportSourceFileRequestOriginal, type GetImportSourceFileResponse as GetImportSourceFileResponseOriginal, type GetImportSourceForSiteRequest as GetImportSourceForSiteRequestOriginal, type GetImportSourceForSiteResponse as GetImportSourceForSiteResponseOriginal, type GetImportSourceRequest as GetImportSourceRequestOriginal, type GetImportSourceResponse as GetImportSourceResponseOriginal, type GetImportStatusRequest as GetImportStatusRequestOriginal, type GetImportStatusResponse as GetImportStatusResponseOriginal, ImportActivityKind as ImportActivityKindOriginal, type ImportActivityKindWithLiterals as ImportActivityKindWithLiteralsOriginal, type ImportActivity as ImportActivityOriginal, ImportArtifactFormat as ImportArtifactFormatOriginal, type ImportArtifactFormatWithLiterals as ImportArtifactFormatWithLiteralsOriginal, type ImportArtifact as ImportArtifactOriginal, type Import as ImportOriginal, ImportStatus as ImportStatusOriginal, type ImportStatusWithLiterals as ImportStatusWithLiteralsOriginal, type ImportTodo as ImportTodoOriginal, ImportTodoStatus as ImportTodoStatusOriginal, type ImportTodoStatusWithLiterals as ImportTodoStatusWithLiteralsOriginal, type SearchImportSourceForSiteRequest as SearchImportSourceForSiteRequestOriginal, type SearchImportSourceForSiteResponse as SearchImportSourceForSiteResponseOriginal, type SearchImportSourceRequest as SearchImportSourceRequestOriginal, type SearchImportSourceResponse as SearchImportSourceResponseOriginal, type SearchMatch as SearchMatchOriginal, type SendImportMessageRequest as SendImportMessageRequestOriginal, type SendImportMessageResponse as SendImportMessageResponseOriginal, type SourceChange as SourceChangeOriginal, SourceChangeStatus as SourceChangeStatusOriginal, type SourceChangeStatusWithLiterals as SourceChangeStatusWithLiteralsOriginal, SourceConfidence as SourceConfidenceOriginal, type SourceConfidenceWithLiterals as SourceConfidenceWithLiteralsOriginal, type SourceFile as SourceFileOriginal, type SourceMatch as SourceMatchOriginal, SourcePlatform as SourcePlatformOriginal, type SourcePlatformWithLiterals as SourcePlatformWithLiteralsOriginal, SourceSyncMode as SourceSyncModeOriginal, type SourceSyncModeWithLiterals as SourceSyncModeWithLiteralsOriginal, type StartFrontendPreviewRequest as StartFrontendPreviewRequestOriginal, type StartFrontendPreviewResponse as StartFrontendPreviewResponseOriginal, type StartImportRequest as StartImportRequestOriginal, type StartImportResponse as StartImportResponseOriginal, type TaskDebug as TaskDebugOriginal, type __PublicMethodMetaInfo, cancelImport, getImportBySite, getImportDebug, getImportSource, getImportSourceFile, getImportSourceFileForSite, getImportSourceForSite, getImportStatus, searchImportSource, searchImportSourceForSite, sendImportMessage, startFrontendPreview, startImport };
|
package/build/cjs/meta.js
CHANGED
|
@@ -36,6 +36,8 @@ __export(meta_exports, {
|
|
|
36
36
|
getImportSourceFileForSite: () => getImportSourceFileForSite2,
|
|
37
37
|
getImportSourceForSite: () => getImportSourceForSite2,
|
|
38
38
|
getImportStatus: () => getImportStatus2,
|
|
39
|
+
searchImportSource: () => searchImportSource2,
|
|
40
|
+
searchImportSourceForSite: () => searchImportSourceForSite2,
|
|
39
41
|
sendImportMessage: () => sendImportMessage2,
|
|
40
42
|
startFrontendPreview: () => startFrontendPreview2,
|
|
41
43
|
startImport: () => startImport2
|
|
@@ -308,6 +310,48 @@ function getImportSourceFileForSite(payload) {
|
|
|
308
310
|
}
|
|
309
311
|
return __getImportSourceFileForSite;
|
|
310
312
|
}
|
|
313
|
+
function searchImportSource(payload) {
|
|
314
|
+
function __searchImportSource({ host }) {
|
|
315
|
+
const metadata = {
|
|
316
|
+
entityFqdn: "wix.ecom.site_import.v1.import",
|
|
317
|
+
method: "GET",
|
|
318
|
+
methodFqn: "wix.ecom.site_import.v1.SiteImportService.SearchImportSource",
|
|
319
|
+
packageName: PACKAGE_NAME,
|
|
320
|
+
migrationOptions: {
|
|
321
|
+
optInTransformResponse: true
|
|
322
|
+
},
|
|
323
|
+
url: resolveWixEcomSiteImportV1SiteImportServiceUrl({
|
|
324
|
+
protoPath: "/v1/imports/{importId}/source/search",
|
|
325
|
+
data: payload,
|
|
326
|
+
host
|
|
327
|
+
}),
|
|
328
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
329
|
+
};
|
|
330
|
+
return metadata;
|
|
331
|
+
}
|
|
332
|
+
return __searchImportSource;
|
|
333
|
+
}
|
|
334
|
+
function searchImportSourceForSite(payload) {
|
|
335
|
+
function __searchImportSourceForSite({ host }) {
|
|
336
|
+
const metadata = {
|
|
337
|
+
entityFqdn: "wix.ecom.site_import.v1.import",
|
|
338
|
+
method: "GET",
|
|
339
|
+
methodFqn: "wix.ecom.site_import.v1.SiteImportService.SearchImportSourceForSite",
|
|
340
|
+
packageName: PACKAGE_NAME,
|
|
341
|
+
migrationOptions: {
|
|
342
|
+
optInTransformResponse: true
|
|
343
|
+
},
|
|
344
|
+
url: resolveWixEcomSiteImportV1SiteImportServiceUrl({
|
|
345
|
+
protoPath: "/v1/site-imports/source/search",
|
|
346
|
+
data: payload,
|
|
347
|
+
host
|
|
348
|
+
}),
|
|
349
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
350
|
+
};
|
|
351
|
+
return metadata;
|
|
352
|
+
}
|
|
353
|
+
return __searchImportSourceForSite;
|
|
354
|
+
}
|
|
311
355
|
function getImportBySite(payload) {
|
|
312
356
|
function __getImportBySite({ host }) {
|
|
313
357
|
const metadata = {
|
|
@@ -572,6 +616,42 @@ function getImportSourceFileForSite2() {
|
|
|
572
616
|
__originalResponseType: null
|
|
573
617
|
};
|
|
574
618
|
}
|
|
619
|
+
function searchImportSource2() {
|
|
620
|
+
const payload = { importId: ":importId" };
|
|
621
|
+
const getRequestOptions = searchImportSource(payload);
|
|
622
|
+
const getUrl = (context) => {
|
|
623
|
+
const { url } = getRequestOptions(context);
|
|
624
|
+
return url;
|
|
625
|
+
};
|
|
626
|
+
return {
|
|
627
|
+
getUrl,
|
|
628
|
+
httpMethod: "GET",
|
|
629
|
+
path: "/v1/imports/{importId}/source/search",
|
|
630
|
+
pathParams: { importId: "importId" },
|
|
631
|
+
__requestType: null,
|
|
632
|
+
__originalRequestType: null,
|
|
633
|
+
__responseType: null,
|
|
634
|
+
__originalResponseType: null
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function searchImportSourceForSite2() {
|
|
638
|
+
const payload = {};
|
|
639
|
+
const getRequestOptions = searchImportSourceForSite(payload);
|
|
640
|
+
const getUrl = (context) => {
|
|
641
|
+
const { url } = getRequestOptions(context);
|
|
642
|
+
return url;
|
|
643
|
+
};
|
|
644
|
+
return {
|
|
645
|
+
getUrl,
|
|
646
|
+
httpMethod: "GET",
|
|
647
|
+
path: "/v1/site-imports/source/search",
|
|
648
|
+
pathParams: {},
|
|
649
|
+
__requestType: null,
|
|
650
|
+
__originalRequestType: null,
|
|
651
|
+
__responseType: null,
|
|
652
|
+
__originalResponseType: null
|
|
653
|
+
};
|
|
654
|
+
}
|
|
575
655
|
function getImportBySite2() {
|
|
576
656
|
const payload = {};
|
|
577
657
|
const getRequestOptions = getImportBySite(payload);
|
|
@@ -608,6 +688,8 @@ function getImportBySite2() {
|
|
|
608
688
|
getImportSourceFileForSite,
|
|
609
689
|
getImportSourceForSite,
|
|
610
690
|
getImportStatus,
|
|
691
|
+
searchImportSource,
|
|
692
|
+
searchImportSourceForSite,
|
|
611
693
|
sendImportMessage,
|
|
612
694
|
startFrontendPreview,
|
|
613
695
|
startImport
|