@wix/auto_sdk_git-code-store_projects 1.0.0 → 1.0.2
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 +18 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +23 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +23 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -6
- package/build/internal/cjs/index.typings.d.ts +23 -9
- package/build/internal/cjs/meta.d.ts +5 -3
- package/build/internal/es/index.d.mts +18 -6
- package/build/internal/es/index.typings.d.mts +23 -9
- package/build/internal/es/meta.d.mts +5 -3
- package/package.json +2 -2
|
@@ -6,10 +6,15 @@ declare function generateGitCodeStoreProjectDownloadUrl$1(httpClient: HttpClient
|
|
|
6
6
|
interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|
|
7
7
|
/**
|
|
8
8
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
9
|
+
*
|
|
9
10
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
10
|
-
* Defaults to main.
|
|
11
|
+
* Defaults to main. Omit `revisionId` to download the current branch head.
|
|
12
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
13
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
14
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
11
15
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
12
|
-
* @param -
|
|
16
|
+
* @param - ID of the existing AppManagedProject whose code will be downloaded.
|
|
17
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
13
18
|
*/
|
|
14
19
|
(managedProjectId: string, options?: GenerateGitCodeStoreProjectDownloadUrlOptions): Promise<NonNullablePaths<GenerateGitCodeStoreProjectDownloadUrlResponse, `downloadUrl` | `revision.author.name` | `revision.author.email` | `branchName`, 2> & {
|
|
15
20
|
__applicationErrorsType?: GenerateGitCodeStoreProjectDownloadUrlApplicationErrors;
|
|
@@ -19,11 +24,14 @@ declare function generateGitCodeStoreProjectUploadUrl$1(httpClient: HttpClient):
|
|
|
19
24
|
interface GenerateGitCodeStoreProjectUploadUrlSignature {
|
|
20
25
|
/**
|
|
21
26
|
* Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.
|
|
22
|
-
*
|
|
27
|
+
*
|
|
28
|
+
* PUT the ZIP with the returned headers, then call
|
|
29
|
+
* [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).
|
|
23
30
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
24
31
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
25
32
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
26
|
-
* @param -
|
|
33
|
+
* @param - ID of the existing AppManagedProject receiving the upload.
|
|
34
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
27
35
|
*/
|
|
28
36
|
(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
29
37
|
}
|
|
@@ -31,6 +39,7 @@ declare function commitGitCodeStoreProjectUpload$1(httpClient: HttpClient): Comm
|
|
|
31
39
|
interface CommitGitCodeStoreProjectUploadSignature {
|
|
32
40
|
/**
|
|
33
41
|
* Commits and pushes a previously uploaded ZIP's contents to an existing branch.
|
|
42
|
+
*
|
|
34
43
|
* Replaces the complete tracked file tree. Does not publish or deploy the application.
|
|
35
44
|
* Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.
|
|
36
45
|
* Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.
|
|
@@ -38,9 +47,12 @@ interface CommitGitCodeStoreProjectUploadSignature {
|
|
|
38
47
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
39
48
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
40
49
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
41
|
-
* After a timeout,
|
|
50
|
+
* After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)
|
|
51
|
+
* for the same branch with `revisionId` omitted.
|
|
52
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
53
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
42
54
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
43
|
-
* @param -
|
|
55
|
+
* @param - ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
44
56
|
* @param - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
45
57
|
* The ZIP must have been uploaded within the last hour.
|
|
46
58
|
*/
|
|
@@ -85,7 +85,8 @@ interface GitCodeStoreProjectDeleted {
|
|
|
85
85
|
}
|
|
86
86
|
interface GenerateGitCodeStoreProjectDownloadUrlRequest {
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* ID of the existing AppManagedProject whose code will be downloaded.
|
|
89
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
89
90
|
* @format GUID
|
|
90
91
|
*/
|
|
91
92
|
managedProjectId: string;
|
|
@@ -156,7 +157,8 @@ interface Author {
|
|
|
156
157
|
}
|
|
157
158
|
interface GenerateGitCodeStoreProjectUploadUrlRequest {
|
|
158
159
|
/**
|
|
159
|
-
*
|
|
160
|
+
* ID of the existing AppManagedProject receiving the upload.
|
|
161
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
160
162
|
* @format GUID
|
|
161
163
|
*/
|
|
162
164
|
managedProjectId: string;
|
|
@@ -212,7 +214,7 @@ interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {
|
|
|
212
214
|
}
|
|
213
215
|
interface CommitGitCodeStoreProjectUploadRequest {
|
|
214
216
|
/**
|
|
215
|
-
*
|
|
217
|
+
* ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
216
218
|
* @format GUID
|
|
217
219
|
*/
|
|
218
220
|
managedProjectId: string;
|
|
@@ -1039,10 +1041,15 @@ type CommitGitCodeStoreProjectUploadApplicationErrors = {
|
|
|
1039
1041
|
};
|
|
1040
1042
|
/**
|
|
1041
1043
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
1044
|
+
*
|
|
1042
1045
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
1043
|
-
* Defaults to main.
|
|
1046
|
+
* Defaults to main. Omit `revisionId` to download the current branch head.
|
|
1047
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
1048
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
1049
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
1044
1050
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
1045
|
-
* @param managedProjectId -
|
|
1051
|
+
* @param managedProjectId - ID of the existing AppManagedProject whose code will be downloaded.
|
|
1052
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
1046
1053
|
* @public
|
|
1047
1054
|
* @documentationMaturity preview
|
|
1048
1055
|
* @requiredField managedProjectId
|
|
@@ -1068,11 +1075,14 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1068
1075
|
}
|
|
1069
1076
|
/**
|
|
1070
1077
|
* Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.
|
|
1071
|
-
*
|
|
1078
|
+
*
|
|
1079
|
+
* PUT the ZIP with the returned headers, then call
|
|
1080
|
+
* [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).
|
|
1072
1081
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
1073
1082
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
1074
1083
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1075
|
-
* @param managedProjectId -
|
|
1084
|
+
* @param managedProjectId - ID of the existing AppManagedProject receiving the upload.
|
|
1085
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
1076
1086
|
* @public
|
|
1077
1087
|
* @documentationMaturity preview
|
|
1078
1088
|
* @requiredField managedProjectId
|
|
@@ -1082,6 +1092,7 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1082
1092
|
declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
1083
1093
|
/**
|
|
1084
1094
|
* Commits and pushes a previously uploaded ZIP's contents to an existing branch.
|
|
1095
|
+
*
|
|
1085
1096
|
* Replaces the complete tracked file tree. Does not publish or deploy the application.
|
|
1086
1097
|
* Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.
|
|
1087
1098
|
* Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.
|
|
@@ -1089,9 +1100,12 @@ declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string):
|
|
|
1089
1100
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
1090
1101
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
1091
1102
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
1092
|
-
* After a timeout,
|
|
1103
|
+
* After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)
|
|
1104
|
+
* for the same branch with `revisionId` omitted.
|
|
1105
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
1106
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
1093
1107
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1094
|
-
* @param managedProjectId -
|
|
1108
|
+
* @param managedProjectId - ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
1095
1109
|
* @param uploadId - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
1096
1110
|
* The ZIP must have been uploaded within the last hour.
|
|
1097
1111
|
* @public
|
|
@@ -86,7 +86,8 @@ interface GitCodeStoreProjectDeleted {
|
|
|
86
86
|
}
|
|
87
87
|
interface GenerateGitCodeStoreProjectDownloadUrlRequest {
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* ID of the existing AppManagedProject whose code will be downloaded.
|
|
90
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
90
91
|
* @format GUID
|
|
91
92
|
*/
|
|
92
93
|
managedProjectId: string;
|
|
@@ -157,7 +158,8 @@ interface Author {
|
|
|
157
158
|
}
|
|
158
159
|
interface GenerateGitCodeStoreProjectUploadUrlRequest {
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
+
* ID of the existing AppManagedProject receiving the upload.
|
|
162
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
161
163
|
* @format GUID
|
|
162
164
|
*/
|
|
163
165
|
managedProjectId: string;
|
|
@@ -213,7 +215,7 @@ interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {
|
|
|
213
215
|
}
|
|
214
216
|
interface CommitGitCodeStoreProjectUploadRequest {
|
|
215
217
|
/**
|
|
216
|
-
*
|
|
218
|
+
* ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
217
219
|
* @format GUID
|
|
218
220
|
*/
|
|
219
221
|
managedProjectId: string;
|
|
@@ -6,10 +6,15 @@ declare function generateGitCodeStoreProjectDownloadUrl$1(httpClient: HttpClient
|
|
|
6
6
|
interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|
|
7
7
|
/**
|
|
8
8
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
9
|
+
*
|
|
9
10
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
10
|
-
* Defaults to main.
|
|
11
|
+
* Defaults to main. Omit `revisionId` to download the current branch head.
|
|
12
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
13
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
14
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
11
15
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
12
|
-
* @param -
|
|
16
|
+
* @param - ID of the existing AppManagedProject whose code will be downloaded.
|
|
17
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
13
18
|
*/
|
|
14
19
|
(managedProjectId: string, options?: GenerateGitCodeStoreProjectDownloadUrlOptions): Promise<NonNullablePaths<GenerateGitCodeStoreProjectDownloadUrlResponse, `downloadUrl` | `revision.author.name` | `revision.author.email` | `branchName`, 2> & {
|
|
15
20
|
__applicationErrorsType?: GenerateGitCodeStoreProjectDownloadUrlApplicationErrors;
|
|
@@ -19,11 +24,14 @@ declare function generateGitCodeStoreProjectUploadUrl$1(httpClient: HttpClient):
|
|
|
19
24
|
interface GenerateGitCodeStoreProjectUploadUrlSignature {
|
|
20
25
|
/**
|
|
21
26
|
* Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.
|
|
22
|
-
*
|
|
27
|
+
*
|
|
28
|
+
* PUT the ZIP with the returned headers, then call
|
|
29
|
+
* [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).
|
|
23
30
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
24
31
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
25
32
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
26
|
-
* @param -
|
|
33
|
+
* @param - ID of the existing AppManagedProject receiving the upload.
|
|
34
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
27
35
|
*/
|
|
28
36
|
(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
29
37
|
}
|
|
@@ -31,6 +39,7 @@ declare function commitGitCodeStoreProjectUpload$1(httpClient: HttpClient): Comm
|
|
|
31
39
|
interface CommitGitCodeStoreProjectUploadSignature {
|
|
32
40
|
/**
|
|
33
41
|
* Commits and pushes a previously uploaded ZIP's contents to an existing branch.
|
|
42
|
+
*
|
|
34
43
|
* Replaces the complete tracked file tree. Does not publish or deploy the application.
|
|
35
44
|
* Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.
|
|
36
45
|
* Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.
|
|
@@ -38,9 +47,12 @@ interface CommitGitCodeStoreProjectUploadSignature {
|
|
|
38
47
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
39
48
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
40
49
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
41
|
-
* After a timeout,
|
|
50
|
+
* After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)
|
|
51
|
+
* for the same branch with `revisionId` omitted.
|
|
52
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
53
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
42
54
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
43
|
-
* @param -
|
|
55
|
+
* @param - ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
44
56
|
* @param - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
45
57
|
* The ZIP must have been uploaded within the last hour.
|
|
46
58
|
*/
|
|
@@ -85,7 +85,8 @@ interface GitCodeStoreProjectDeleted {
|
|
|
85
85
|
}
|
|
86
86
|
interface GenerateGitCodeStoreProjectDownloadUrlRequest {
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* ID of the existing AppManagedProject whose code will be downloaded.
|
|
89
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
89
90
|
* @format GUID
|
|
90
91
|
*/
|
|
91
92
|
managedProjectId: string;
|
|
@@ -156,7 +157,8 @@ interface Author {
|
|
|
156
157
|
}
|
|
157
158
|
interface GenerateGitCodeStoreProjectUploadUrlRequest {
|
|
158
159
|
/**
|
|
159
|
-
*
|
|
160
|
+
* ID of the existing AppManagedProject receiving the upload.
|
|
161
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
160
162
|
* @format GUID
|
|
161
163
|
*/
|
|
162
164
|
managedProjectId: string;
|
|
@@ -212,7 +214,7 @@ interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {
|
|
|
212
214
|
}
|
|
213
215
|
interface CommitGitCodeStoreProjectUploadRequest {
|
|
214
216
|
/**
|
|
215
|
-
*
|
|
217
|
+
* ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
216
218
|
* @format GUID
|
|
217
219
|
*/
|
|
218
220
|
managedProjectId: string;
|
|
@@ -1039,10 +1041,15 @@ type CommitGitCodeStoreProjectUploadApplicationErrors = {
|
|
|
1039
1041
|
};
|
|
1040
1042
|
/**
|
|
1041
1043
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
1044
|
+
*
|
|
1042
1045
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
1043
|
-
* Defaults to main.
|
|
1046
|
+
* Defaults to main. Omit `revisionId` to download the current branch head.
|
|
1047
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
1048
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
1049
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
1044
1050
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
1045
|
-
* @param managedProjectId -
|
|
1051
|
+
* @param managedProjectId - ID of the existing AppManagedProject whose code will be downloaded.
|
|
1052
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
1046
1053
|
* @public
|
|
1047
1054
|
* @documentationMaturity preview
|
|
1048
1055
|
* @requiredField managedProjectId
|
|
@@ -1068,11 +1075,14 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1068
1075
|
}
|
|
1069
1076
|
/**
|
|
1070
1077
|
* Generates a temporary, project-scoped URL for uploading a ZIP with HTTP PUT.
|
|
1071
|
-
*
|
|
1078
|
+
*
|
|
1079
|
+
* PUT the ZIP with the returned headers, then call
|
|
1080
|
+
* [Commit Git Code Store Project Upload](https://dev.wix.com/docs/api-reference/account-level/git-codestore/commit-git-code-store-project-upload).
|
|
1072
1081
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
1073
1082
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
1074
1083
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1075
|
-
* @param managedProjectId -
|
|
1084
|
+
* @param managedProjectId - ID of the existing AppManagedProject receiving the upload.
|
|
1085
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
1076
1086
|
* @public
|
|
1077
1087
|
* @documentationMaturity preview
|
|
1078
1088
|
* @requiredField managedProjectId
|
|
@@ -1082,6 +1092,7 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1082
1092
|
declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
1083
1093
|
/**
|
|
1084
1094
|
* Commits and pushes a previously uploaded ZIP's contents to an existing branch.
|
|
1095
|
+
*
|
|
1085
1096
|
* Replaces the complete tracked file tree. Does not publish or deploy the application.
|
|
1086
1097
|
* Files omitted from the ZIP are deleted. Creates one child commit and preserves history; never resets the branch history.
|
|
1087
1098
|
* Defaults to main. An empty ZIP intentionally removes all files. An unchanged tree creates no commit.
|
|
@@ -1089,9 +1100,12 @@ declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string):
|
|
|
1089
1100
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
1090
1101
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
1091
1102
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
1092
|
-
* After a timeout,
|
|
1103
|
+
* After a timeout, call [Generate Git Code Store Project Download Url](https://dev.wix.com/docs/api-reference/account-level/git-codestore/generate-git-code-store-project-download-url)
|
|
1104
|
+
* for the same branch with `revisionId` omitted.
|
|
1105
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
1106
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
1093
1107
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1094
|
-
* @param managedProjectId -
|
|
1108
|
+
* @param managedProjectId - ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
1095
1109
|
* @param uploadId - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
1096
1110
|
* The ZIP must have been uploaded within the last hour.
|
|
1097
1111
|
* @public
|
|
@@ -86,7 +86,8 @@ interface GitCodeStoreProjectDeleted {
|
|
|
86
86
|
}
|
|
87
87
|
interface GenerateGitCodeStoreProjectDownloadUrlRequest {
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* ID of the existing AppManagedProject whose code will be downloaded.
|
|
90
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
90
91
|
* @format GUID
|
|
91
92
|
*/
|
|
92
93
|
managedProjectId: string;
|
|
@@ -157,7 +158,8 @@ interface Author {
|
|
|
157
158
|
}
|
|
158
159
|
interface GenerateGitCodeStoreProjectUploadUrlRequest {
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
+
* ID of the existing AppManagedProject receiving the upload.
|
|
162
|
+
* Use the same `managedProjectId` for downloading, uploading, and committing.
|
|
161
163
|
* @format GUID
|
|
162
164
|
*/
|
|
163
165
|
managedProjectId: string;
|
|
@@ -213,7 +215,7 @@ interface GenerateGitCodeStoreProjectStagedUploadDownloadUrlResponse {
|
|
|
213
215
|
}
|
|
214
216
|
interface CommitGitCodeStoreProjectUploadRequest {
|
|
215
217
|
/**
|
|
216
|
-
*
|
|
218
|
+
* ID of the existing AppManagedProject to update. Must be the same project that issued `uploadId`.
|
|
217
219
|
* @format GUID
|
|
218
220
|
*/
|
|
219
221
|
managedProjectId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_git-code-store_projects",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.codestore.v2.project"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "5f3b951b94fa6e685e238e1e344b734335ec6a1dd9d985c2cd02e7b4"
|
|
54
54
|
}
|