@wix/auto_sdk_git-code-store_projects 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 +12 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -8
- 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 +12 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -8
- 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 +12 -5
- package/build/internal/cjs/index.typings.d.ts +17 -8
- package/build/internal/cjs/meta.d.ts +5 -3
- package/build/internal/es/index.d.mts +12 -5
- package/build/internal/es/index.typings.d.mts +17 -8
- package/build/internal/es/meta.d.mts +5 -3
- package/package.json +2 -2
|
@@ -7,9 +7,13 @@ interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|
|
|
7
7
|
/**
|
|
8
8
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
9
9
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
10
|
-
* Defaults to main.
|
|
10
|
+
* Defaults to main. Omit revision_id to download the current branch head.
|
|
11
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
12
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
13
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
11
14
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
12
|
-
* @param -
|
|
15
|
+
* @param - ID of the existing AppManagedProject whose code will be downloaded.
|
|
16
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
13
17
|
*/
|
|
14
18
|
(managedProjectId: string, options?: GenerateGitCodeStoreProjectDownloadUrlOptions): Promise<NonNullablePaths<GenerateGitCodeStoreProjectDownloadUrlResponse, `downloadUrl` | `revision.author.name` | `revision.author.email` | `branchName`, 2> & {
|
|
15
19
|
__applicationErrorsType?: GenerateGitCodeStoreProjectDownloadUrlApplicationErrors;
|
|
@@ -23,7 +27,8 @@ interface GenerateGitCodeStoreProjectUploadUrlSignature {
|
|
|
23
27
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
24
28
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
25
29
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
26
|
-
* @param -
|
|
30
|
+
* @param - ID of the existing AppManagedProject receiving the upload.
|
|
31
|
+
* Use the same managed_project_id for downloading, uploading, and committing.
|
|
27
32
|
*/
|
|
28
33
|
(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
29
34
|
}
|
|
@@ -38,9 +43,11 @@ interface CommitGitCodeStoreProjectUploadSignature {
|
|
|
38
43
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
39
44
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
40
45
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
41
|
-
* After a timeout,
|
|
46
|
+
* After a timeout, call GenerateGitCodeStoreProjectDownloadUrl for the same branch with revision_id omitted.
|
|
47
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
48
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
42
49
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
43
|
-
* @param -
|
|
50
|
+
* @param - ID of the existing AppManagedProject to update. Must be the same project that issued upload_id.
|
|
44
51
|
* @param - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
45
52
|
* The ZIP must have been uploaded within the last hour.
|
|
46
53
|
*/
|
|
@@ -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 managed_project_id 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 upload_id.
|
|
216
218
|
* @format GUID
|
|
217
219
|
*/
|
|
218
220
|
managedProjectId: string;
|
|
@@ -1040,9 +1042,13 @@ type CommitGitCodeStoreProjectUploadApplicationErrors = {
|
|
|
1040
1042
|
/**
|
|
1041
1043
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
1042
1044
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
1043
|
-
* Defaults to main.
|
|
1045
|
+
* Defaults to main. Omit revision_id to download the current branch head.
|
|
1046
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
1047
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
1048
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
1044
1049
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
1045
|
-
* @param managedProjectId -
|
|
1050
|
+
* @param managedProjectId - ID of the existing AppManagedProject whose code will be downloaded.
|
|
1051
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
1046
1052
|
* @public
|
|
1047
1053
|
* @documentationMaturity preview
|
|
1048
1054
|
* @requiredField managedProjectId
|
|
@@ -1072,7 +1078,8 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1072
1078
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
1073
1079
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
1074
1080
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1075
|
-
* @param managedProjectId -
|
|
1081
|
+
* @param managedProjectId - ID of the existing AppManagedProject receiving the upload.
|
|
1082
|
+
* Use the same managed_project_id for downloading, uploading, and committing.
|
|
1076
1083
|
* @public
|
|
1077
1084
|
* @documentationMaturity preview
|
|
1078
1085
|
* @requiredField managedProjectId
|
|
@@ -1089,9 +1096,11 @@ declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string):
|
|
|
1089
1096
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
1090
1097
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
1091
1098
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
1092
|
-
* After a timeout,
|
|
1099
|
+
* After a timeout, call GenerateGitCodeStoreProjectDownloadUrl for the same branch with revision_id omitted.
|
|
1100
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
1101
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
1093
1102
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1094
|
-
* @param managedProjectId -
|
|
1103
|
+
* @param managedProjectId - ID of the existing AppManagedProject to update. Must be the same project that issued upload_id.
|
|
1095
1104
|
* @param uploadId - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
1096
1105
|
* The ZIP must have been uploaded within the last hour.
|
|
1097
1106
|
* @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 managed_project_id 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 upload_id.
|
|
217
219
|
* @format GUID
|
|
218
220
|
*/
|
|
219
221
|
managedProjectId: string;
|
|
@@ -7,9 +7,13 @@ interface GenerateGitCodeStoreProjectDownloadUrlSignature {
|
|
|
7
7
|
/**
|
|
8
8
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
9
9
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
10
|
-
* Defaults to main.
|
|
10
|
+
* Defaults to main. Omit revision_id to download the current branch head.
|
|
11
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
12
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
13
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
11
14
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
12
|
-
* @param -
|
|
15
|
+
* @param - ID of the existing AppManagedProject whose code will be downloaded.
|
|
16
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
13
17
|
*/
|
|
14
18
|
(managedProjectId: string, options?: GenerateGitCodeStoreProjectDownloadUrlOptions): Promise<NonNullablePaths<GenerateGitCodeStoreProjectDownloadUrlResponse, `downloadUrl` | `revision.author.name` | `revision.author.email` | `branchName`, 2> & {
|
|
15
19
|
__applicationErrorsType?: GenerateGitCodeStoreProjectDownloadUrlApplicationErrors;
|
|
@@ -23,7 +27,8 @@ interface GenerateGitCodeStoreProjectUploadUrlSignature {
|
|
|
23
27
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
24
28
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
25
29
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
26
|
-
* @param -
|
|
30
|
+
* @param - ID of the existing AppManagedProject receiving the upload.
|
|
31
|
+
* Use the same managed_project_id for downloading, uploading, and committing.
|
|
27
32
|
*/
|
|
28
33
|
(managedProjectId: string): Promise<NonNullablePaths<GenerateGitCodeStoreProjectUploadUrlResponse, `uploadId` | `uploadUrl`, 0>>;
|
|
29
34
|
}
|
|
@@ -38,9 +43,11 @@ interface CommitGitCodeStoreProjectUploadSignature {
|
|
|
38
43
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
39
44
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
40
45
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
41
|
-
* After a timeout,
|
|
46
|
+
* After a timeout, call GenerateGitCodeStoreProjectDownloadUrl for the same branch with revision_id omitted.
|
|
47
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
48
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
42
49
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
43
|
-
* @param -
|
|
50
|
+
* @param - ID of the existing AppManagedProject to update. Must be the same project that issued upload_id.
|
|
44
51
|
* @param - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
45
52
|
* The ZIP must have been uploaded within the last hour.
|
|
46
53
|
*/
|
|
@@ -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 managed_project_id 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 upload_id.
|
|
216
218
|
* @format GUID
|
|
217
219
|
*/
|
|
218
220
|
managedProjectId: string;
|
|
@@ -1040,9 +1042,13 @@ type CommitGitCodeStoreProjectUploadApplicationErrors = {
|
|
|
1040
1042
|
/**
|
|
1041
1043
|
* Generates a temporary URL to download all tracked files at one revision as a ZIP.
|
|
1042
1044
|
* Includes hidden directories, binary files and materialized LFS objects; excludes Git history.
|
|
1043
|
-
* Defaults to main.
|
|
1045
|
+
* Defaults to main. Omit revision_id to download the current branch head.
|
|
1046
|
+
* Supply the returned revision when committing uploaded code unless force is true.
|
|
1047
|
+
* Supports at most 10,000 tracked files, 256 MiB expanded, and a 64 MiB ZIP.
|
|
1048
|
+
* Rejects unsafe paths, submodules, special files, and dangling or escaping symlinks.
|
|
1044
1049
|
* Requires an authenticated user with read access to the app or its companion site.
|
|
1045
|
-
* @param managedProjectId -
|
|
1050
|
+
* @param managedProjectId - ID of the existing AppManagedProject whose code will be downloaded.
|
|
1051
|
+
* This identifies the managed project, not its site or a legacy v1 Code Store project.
|
|
1046
1052
|
* @public
|
|
1047
1053
|
* @documentationMaturity preview
|
|
1048
1054
|
* @requiredField managedProjectId
|
|
@@ -1072,7 +1078,8 @@ interface GenerateGitCodeStoreProjectDownloadUrlOptions {
|
|
|
1072
1078
|
* The 64 MiB compressed size limit is checked when committing the upload, not by the signed PUT.
|
|
1073
1079
|
* Uploading alone never changes the repository. ZIP paths must be relative to its root.
|
|
1074
1080
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1075
|
-
* @param managedProjectId -
|
|
1081
|
+
* @param managedProjectId - ID of the existing AppManagedProject receiving the upload.
|
|
1082
|
+
* Use the same managed_project_id for downloading, uploading, and committing.
|
|
1076
1083
|
* @public
|
|
1077
1084
|
* @documentationMaturity preview
|
|
1078
1085
|
* @requiredField managedProjectId
|
|
@@ -1089,9 +1096,11 @@ declare function generateGitCodeStoreProjectUploadUrl(managedProjectId: string):
|
|
|
1089
1096
|
* Force replaces the latest checked-out tree and preserves history; concurrent writes can still conflict.
|
|
1090
1097
|
* Accepts at most 64 MiB compressed, 256 MiB expanded, and 10,000 ZIP entries.
|
|
1091
1098
|
* Rejects unsafe paths, Git metadata, submodules, and symlinks outside the repository.
|
|
1092
|
-
* After a timeout,
|
|
1099
|
+
* After a timeout, call GenerateGitCodeStoreProjectDownloadUrl for the same branch with revision_id omitted.
|
|
1100
|
+
* Compare its revision and downloaded tree with your intended changes before retrying.
|
|
1101
|
+
* A changed head alone does not prove this request succeeded. Do not use force to recover from a timeout.
|
|
1093
1102
|
* Requires an authenticated user with update access to the app or its companion site.
|
|
1094
|
-
* @param managedProjectId -
|
|
1103
|
+
* @param managedProjectId - ID of the existing AppManagedProject to update. Must be the same project that issued upload_id.
|
|
1095
1104
|
* @param uploadId - Identifier returned by GenerateGitCodeStoreProjectUploadUrl.
|
|
1096
1105
|
* The ZIP must have been uploaded within the last hour.
|
|
1097
1106
|
* @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 managed_project_id 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 upload_id.
|
|
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.1",
|
|
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": "7cf33324149e5fec11227975cc65a7607c5e7c9c0e511b0752ae1975"
|
|
54
54
|
}
|