sim 2.1.22-preview.146.1 → 2.1.22-preview.148.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/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11139,6 +11139,10 @@ var V2_OPERATIONS = {
|
|
|
11139
11139
|
kind: "unknown",
|
|
11140
11140
|
required: true,
|
|
11141
11141
|
describe: "One exact or anchor-based edit: search_replace, replace_between, insert_after, or delete_between."
|
|
11142
|
+
},
|
|
11143
|
+
expectedRevision: {
|
|
11144
|
+
kind: "string",
|
|
11145
|
+
describe: "Revision from Get File Metadata or an earlier write; the request is refused with `409` when the content moved on."
|
|
11142
11146
|
}
|
|
11143
11147
|
}
|
|
11144
11148
|
},
|
|
@@ -14479,7 +14483,11 @@ var V2_OPERATIONS = {
|
|
|
14479
14483
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
14480
14484
|
expectedCurrentVersion: {
|
|
14481
14485
|
kind: "integer",
|
|
14482
|
-
describe: "Revert only while this is still the current version; otherwise the request fails with `409`. Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number."
|
|
14486
|
+
describe: "Revert only while this is still the current version; otherwise the request fails with `409`. Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number, so prefer `expectedRevision` to guard content."
|
|
14487
|
+
},
|
|
14488
|
+
expectedRevision: {
|
|
14489
|
+
kind: "string",
|
|
14490
|
+
describe: "Revert only while the file still holds the content this revision names, as returned by Get File Metadata or an earlier write; otherwise the request fails with `409`. Unlike a version number, it also catches edits that folded into the current version."
|
|
14483
14491
|
}
|
|
14484
14492
|
}
|
|
14485
14493
|
},
|
|
@@ -14876,6 +14884,10 @@ var V2_OPERATIONS = {
|
|
|
14876
14884
|
values: ["utf-8", "base64"],
|
|
14877
14885
|
default: "utf-8",
|
|
14878
14886
|
describe: "Encoding of the content field."
|
|
14887
|
+
},
|
|
14888
|
+
expectedRevision: {
|
|
14889
|
+
kind: "string",
|
|
14890
|
+
describe: "Revision from Get File Metadata or an earlier write; the request is refused with `409` when the content moved on."
|
|
14879
14891
|
}
|
|
14880
14892
|
}
|
|
14881
14893
|
},
|