cribl-control-plane 0.0.20 → 0.0.21
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/README.md +30 -1
- package/dist/commonjs/__tests__/versioning.test.d.ts +2 -0
- package/dist/commonjs/__tests__/versioning.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/versioning.test.js +185 -0
- package/dist/commonjs/__tests__/versioning.test.js.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionCommit.d.ts +19 -0
- package/dist/commonjs/funcs/versioningCreateVersionCommit.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionCommit.js +118 -0
- package/dist/commonjs/funcs/versioningCreateVersionCommit.js.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionPush.d.ts +18 -0
- package/dist/commonjs/funcs/versioningCreateVersionPush.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionPush.js +107 -0
- package/dist/commonjs/funcs/versioningCreateVersionPush.js.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionRevert.d.ts +18 -0
- package/dist/commonjs/funcs/versioningCreateVersionRevert.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionRevert.js +121 -0
- package/dist/commonjs/funcs/versioningCreateVersionRevert.js.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionSync.d.ts +18 -0
- package/dist/commonjs/funcs/versioningCreateVersionSync.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionSync.js +107 -0
- package/dist/commonjs/funcs/versioningCreateVersionSync.js.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionUndo.d.ts +18 -0
- package/dist/commonjs/funcs/versioningCreateVersionUndo.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningCreateVersionUndo.js +120 -0
- package/dist/commonjs/funcs/versioningCreateVersionUndo.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionBranch.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionBranch.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionBranch.js +107 -0
- package/dist/commonjs/funcs/versioningGetVersionBranch.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionCount.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionCount.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionCount.js +121 -0
- package/dist/commonjs/funcs/versioningGetVersionCount.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionCurrentBranch.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionCurrentBranch.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionCurrentBranch.js +107 -0
- package/dist/commonjs/funcs/versioningGetVersionCurrentBranch.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionDiff.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionDiff.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionDiff.js +123 -0
- package/dist/commonjs/funcs/versioningGetVersionDiff.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionFiles.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionFiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionFiles.js +121 -0
- package/dist/commonjs/funcs/versioningGetVersionFiles.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionInfo.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionInfo.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionInfo.js +107 -0
- package/dist/commonjs/funcs/versioningGetVersionInfo.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionShow.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionShow.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionShow.js +123 -0
- package/dist/commonjs/funcs/versioningGetVersionShow.js.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionStatus.d.ts +18 -0
- package/dist/commonjs/funcs/versioningGetVersionStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/versioningGetVersionStatus.js +120 -0
- package/dist/commonjs/funcs/versioningGetVersionStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/gitcommitparams.d.ts +35 -0
- package/dist/commonjs/models/gitcommitparams.d.ts.map +1 -0
- package/dist/commonjs/models/gitcommitparams.js +75 -0
- package/dist/commonjs/models/gitcommitparams.js.map +1 -0
- package/dist/commonjs/models/gitcommitsummary.d.ts +124 -0
- package/dist/commonjs/models/gitcommitsummary.d.ts.map +1 -0
- package/dist/commonjs/models/gitcommitsummary.js +171 -0
- package/dist/commonjs/models/gitcommitsummary.js.map +1 -0
- package/dist/commonjs/models/gitfile.d.ts +33 -0
- package/dist/commonjs/models/gitfile.d.ts.map +1 -0
- package/dist/commonjs/models/gitfile.js +73 -0
- package/dist/commonjs/models/gitfile.js.map +1 -0
- package/dist/commonjs/models/gitfilesresponse.d.ts +38 -0
- package/dist/commonjs/models/gitfilesresponse.d.ts.map +1 -0
- package/dist/commonjs/models/gitfilesresponse.js +74 -0
- package/dist/commonjs/models/gitfilesresponse.js.map +1 -0
- package/dist/commonjs/models/gitinfo.d.ts +52 -0
- package/dist/commonjs/models/gitinfo.d.ts.map +1 -0
- package/dist/commonjs/models/gitinfo.js +95 -0
- package/dist/commonjs/models/gitinfo.js.map +1 -0
- package/dist/commonjs/models/gitrevertparams.d.ts +33 -0
- package/dist/commonjs/models/gitrevertparams.d.ts.map +1 -0
- package/dist/commonjs/models/gitrevertparams.js +73 -0
- package/dist/commonjs/models/gitrevertparams.js.map +1 -0
- package/dist/commonjs/models/gitrevertresult.d.ts +91 -0
- package/dist/commonjs/models/gitrevertresult.d.ts.map +1 -0
- package/dist/commonjs/models/gitrevertresult.js +136 -0
- package/dist/commonjs/models/gitrevertresult.js.map +1 -0
- package/dist/commonjs/models/gitstatusresult.d.ts +107 -0
- package/dist/commonjs/models/gitstatusresult.d.ts.map +1 -0
- package/dist/commonjs/models/gitstatusresult.js +169 -0
- package/dist/commonjs/models/gitstatusresult.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +8 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +8 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/createversioncommit.d.ts +38 -0
- package/dist/commonjs/models/operations/createversioncommit.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createversioncommit.js +72 -0
- package/dist/commonjs/models/operations/createversioncommit.js.map +1 -0
- package/dist/commonjs/models/operations/createversionpush.d.ts +41 -0
- package/dist/commonjs/models/operations/createversionpush.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createversionpush.js +71 -0
- package/dist/commonjs/models/operations/createversionpush.js.map +1 -0
- package/dist/commonjs/models/operations/createversionrevert.d.ts +71 -0
- package/dist/commonjs/models/operations/createversionrevert.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createversionrevert.js +110 -0
- package/dist/commonjs/models/operations/createversionrevert.js.map +1 -0
- package/dist/commonjs/models/operations/createversionsync.d.ts +41 -0
- package/dist/commonjs/models/operations/createversionsync.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createversionsync.js +71 -0
- package/dist/commonjs/models/operations/createversionsync.js.map +1 -0
- package/dist/commonjs/models/operations/createversionundo.d.ts +65 -0
- package/dist/commonjs/models/operations/createversionundo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createversionundo.js +98 -0
- package/dist/commonjs/models/operations/createversionundo.js.map +1 -0
- package/dist/commonjs/models/operations/getversionbranch.d.ts +41 -0
- package/dist/commonjs/models/operations/getversionbranch.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversionbranch.js +71 -0
- package/dist/commonjs/models/operations/getversionbranch.js.map +1 -0
- package/dist/commonjs/models/operations/getversioncount.d.ts +74 -0
- package/dist/commonjs/models/operations/getversioncount.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversioncount.js +109 -0
- package/dist/commonjs/models/operations/getversioncount.js.map +1 -0
- package/dist/commonjs/models/operations/getversioncurrentbranch.d.ts +41 -0
- package/dist/commonjs/models/operations/getversioncurrentbranch.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversioncurrentbranch.js +71 -0
- package/dist/commonjs/models/operations/getversioncurrentbranch.js.map +1 -0
- package/dist/commonjs/models/operations/getversiondiff.d.ts +84 -0
- package/dist/commonjs/models/operations/getversiondiff.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversiondiff.js +104 -0
- package/dist/commonjs/models/operations/getversiondiff.js.map +1 -0
- package/dist/commonjs/models/operations/getversionfiles.d.ts +71 -0
- package/dist/commonjs/models/operations/getversionfiles.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversionfiles.js +110 -0
- package/dist/commonjs/models/operations/getversionfiles.js.map +1 -0
- package/dist/commonjs/models/operations/getversioninfo.d.ts +38 -0
- package/dist/commonjs/models/operations/getversioninfo.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversioninfo.js +72 -0
- package/dist/commonjs/models/operations/getversioninfo.js.map +1 -0
- package/dist/commonjs/models/operations/getversionshow.d.ts +84 -0
- package/dist/commonjs/models/operations/getversionshow.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversionshow.js +104 -0
- package/dist/commonjs/models/operations/getversionshow.js.map +1 -0
- package/dist/commonjs/models/operations/getversionstatus.d.ts +66 -0
- package/dist/commonjs/models/operations/getversionstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getversionstatus.js +99 -0
- package/dist/commonjs/models/operations/getversionstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +13 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +13 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/versioning.d.ts +97 -0
- package/dist/commonjs/sdk/versioning.d.ts.map +1 -0
- package/dist/commonjs/sdk/versioning.js +142 -0
- package/dist/commonjs/sdk/versioning.js.map +1 -0
- package/dist/esm/__tests__/versioning.test.d.ts +2 -0
- package/dist/esm/__tests__/versioning.test.d.ts.map +1 -0
- package/dist/esm/__tests__/versioning.test.js +183 -0
- package/dist/esm/__tests__/versioning.test.js.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionCommit.d.ts +19 -0
- package/dist/esm/funcs/versioningCreateVersionCommit.d.ts.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionCommit.js +82 -0
- package/dist/esm/funcs/versioningCreateVersionCommit.js.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionPush.d.ts +18 -0
- package/dist/esm/funcs/versioningCreateVersionPush.d.ts.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionPush.js +71 -0
- package/dist/esm/funcs/versioningCreateVersionPush.js.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionRevert.d.ts +18 -0
- package/dist/esm/funcs/versioningCreateVersionRevert.d.ts.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionRevert.js +85 -0
- package/dist/esm/funcs/versioningCreateVersionRevert.js.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionSync.d.ts +18 -0
- package/dist/esm/funcs/versioningCreateVersionSync.d.ts.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionSync.js +71 -0
- package/dist/esm/funcs/versioningCreateVersionSync.js.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionUndo.d.ts +18 -0
- package/dist/esm/funcs/versioningCreateVersionUndo.d.ts.map +1 -0
- package/dist/esm/funcs/versioningCreateVersionUndo.js +84 -0
- package/dist/esm/funcs/versioningCreateVersionUndo.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionBranch.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionBranch.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionBranch.js +71 -0
- package/dist/esm/funcs/versioningGetVersionBranch.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionCount.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionCount.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionCount.js +85 -0
- package/dist/esm/funcs/versioningGetVersionCount.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionCurrentBranch.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionCurrentBranch.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionCurrentBranch.js +71 -0
- package/dist/esm/funcs/versioningGetVersionCurrentBranch.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionDiff.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionDiff.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionDiff.js +87 -0
- package/dist/esm/funcs/versioningGetVersionDiff.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionFiles.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionFiles.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionFiles.js +85 -0
- package/dist/esm/funcs/versioningGetVersionFiles.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionInfo.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionInfo.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionInfo.js +71 -0
- package/dist/esm/funcs/versioningGetVersionInfo.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionShow.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionShow.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionShow.js +87 -0
- package/dist/esm/funcs/versioningGetVersionShow.js.map +1 -0
- package/dist/esm/funcs/versioningGetVersionStatus.d.ts +18 -0
- package/dist/esm/funcs/versioningGetVersionStatus.d.ts.map +1 -0
- package/dist/esm/funcs/versioningGetVersionStatus.js +84 -0
- package/dist/esm/funcs/versioningGetVersionStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/gitcommitparams.d.ts +35 -0
- package/dist/esm/models/gitcommitparams.d.ts.map +1 -0
- package/dist/esm/models/gitcommitparams.js +37 -0
- package/dist/esm/models/gitcommitparams.js.map +1 -0
- package/dist/esm/models/gitcommitsummary.d.ts +124 -0
- package/dist/esm/models/gitcommitsummary.d.ts.map +1 -0
- package/dist/esm/models/gitcommitsummary.js +127 -0
- package/dist/esm/models/gitcommitsummary.js.map +1 -0
- package/dist/esm/models/gitfile.d.ts +33 -0
- package/dist/esm/models/gitfile.d.ts.map +1 -0
- package/dist/esm/models/gitfile.js +35 -0
- package/dist/esm/models/gitfile.js.map +1 -0
- package/dist/esm/models/gitfilesresponse.d.ts +38 -0
- package/dist/esm/models/gitfilesresponse.d.ts.map +1 -0
- package/dist/esm/models/gitfilesresponse.js +36 -0
- package/dist/esm/models/gitfilesresponse.js.map +1 -0
- package/dist/esm/models/gitinfo.d.ts +52 -0
- package/dist/esm/models/gitinfo.d.ts.map +1 -0
- package/dist/esm/models/gitinfo.js +55 -0
- package/dist/esm/models/gitinfo.js.map +1 -0
- package/dist/esm/models/gitrevertparams.d.ts +33 -0
- package/dist/esm/models/gitrevertparams.d.ts.map +1 -0
- package/dist/esm/models/gitrevertparams.js +35 -0
- package/dist/esm/models/gitrevertparams.js.map +1 -0
- package/dist/esm/models/gitrevertresult.d.ts +91 -0
- package/dist/esm/models/gitrevertresult.d.ts.map +1 -0
- package/dist/esm/models/gitrevertresult.js +94 -0
- package/dist/esm/models/gitrevertresult.js.map +1 -0
- package/dist/esm/models/gitstatusresult.d.ts +107 -0
- package/dist/esm/models/gitstatusresult.d.ts.map +1 -0
- package/dist/esm/models/gitstatusresult.js +127 -0
- package/dist/esm/models/gitstatusresult.js.map +1 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/createversioncommit.d.ts +38 -0
- package/dist/esm/models/operations/createversioncommit.d.ts.map +1 -0
- package/dist/esm/models/operations/createversioncommit.js +34 -0
- package/dist/esm/models/operations/createversioncommit.js.map +1 -0
- package/dist/esm/models/operations/createversionpush.d.ts +41 -0
- package/dist/esm/models/operations/createversionpush.d.ts.map +1 -0
- package/dist/esm/models/operations/createversionpush.js +33 -0
- package/dist/esm/models/operations/createversionpush.js.map +1 -0
- package/dist/esm/models/operations/createversionrevert.d.ts +71 -0
- package/dist/esm/models/operations/createversionrevert.d.ts.map +1 -0
- package/dist/esm/models/operations/createversionrevert.js +70 -0
- package/dist/esm/models/operations/createversionrevert.js.map +1 -0
- package/dist/esm/models/operations/createversionsync.d.ts +41 -0
- package/dist/esm/models/operations/createversionsync.d.ts.map +1 -0
- package/dist/esm/models/operations/createversionsync.js +33 -0
- package/dist/esm/models/operations/createversionsync.js.map +1 -0
- package/dist/esm/models/operations/createversionundo.d.ts +65 -0
- package/dist/esm/models/operations/createversionundo.d.ts.map +1 -0
- package/dist/esm/models/operations/createversionundo.js +58 -0
- package/dist/esm/models/operations/createversionundo.js.map +1 -0
- package/dist/esm/models/operations/getversionbranch.d.ts +41 -0
- package/dist/esm/models/operations/getversionbranch.d.ts.map +1 -0
- package/dist/esm/models/operations/getversionbranch.js +33 -0
- package/dist/esm/models/operations/getversionbranch.js.map +1 -0
- package/dist/esm/models/operations/getversioncount.d.ts +74 -0
- package/dist/esm/models/operations/getversioncount.d.ts.map +1 -0
- package/dist/esm/models/operations/getversioncount.js +69 -0
- package/dist/esm/models/operations/getversioncount.js.map +1 -0
- package/dist/esm/models/operations/getversioncurrentbranch.d.ts +41 -0
- package/dist/esm/models/operations/getversioncurrentbranch.d.ts.map +1 -0
- package/dist/esm/models/operations/getversioncurrentbranch.js +33 -0
- package/dist/esm/models/operations/getversioncurrentbranch.js.map +1 -0
- package/dist/esm/models/operations/getversiondiff.d.ts +84 -0
- package/dist/esm/models/operations/getversiondiff.d.ts.map +1 -0
- package/dist/esm/models/operations/getversiondiff.js +64 -0
- package/dist/esm/models/operations/getversiondiff.js.map +1 -0
- package/dist/esm/models/operations/getversionfiles.d.ts +71 -0
- package/dist/esm/models/operations/getversionfiles.d.ts.map +1 -0
- package/dist/esm/models/operations/getversionfiles.js +70 -0
- package/dist/esm/models/operations/getversionfiles.js.map +1 -0
- package/dist/esm/models/operations/getversioninfo.d.ts +38 -0
- package/dist/esm/models/operations/getversioninfo.d.ts.map +1 -0
- package/dist/esm/models/operations/getversioninfo.js +34 -0
- package/dist/esm/models/operations/getversioninfo.js.map +1 -0
- package/dist/esm/models/operations/getversionshow.d.ts +84 -0
- package/dist/esm/models/operations/getversionshow.d.ts.map +1 -0
- package/dist/esm/models/operations/getversionshow.js +64 -0
- package/dist/esm/models/operations/getversionshow.js.map +1 -0
- package/dist/esm/models/operations/getversionstatus.d.ts +66 -0
- package/dist/esm/models/operations/getversionstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getversionstatus.js +59 -0
- package/dist/esm/models/operations/getversionstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +13 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +13 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/versioning.d.ts +97 -0
- package/dist/esm/sdk/versioning.d.ts.map +1 -0
- package/dist/esm/sdk/versioning.js +138 -0
- package/dist/esm/sdk/versioning.js.map +1 -0
- package/docs/sdks/versioning/README.md +1006 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/versioning.test.ts +222 -0
- package/src/funcs/versioningCreateVersionCommit.ts +169 -0
- package/src/funcs/versioningCreateVersionPush.ts +150 -0
- package/src/funcs/versioningCreateVersionRevert.ts +174 -0
- package/src/funcs/versioningCreateVersionSync.ts +150 -0
- package/src/funcs/versioningCreateVersionUndo.ts +175 -0
- package/src/funcs/versioningGetVersionBranch.ts +150 -0
- package/src/funcs/versioningGetVersionCount.ts +174 -0
- package/src/funcs/versioningGetVersionCurrentBranch.ts +150 -0
- package/src/funcs/versioningGetVersionDiff.ts +176 -0
- package/src/funcs/versioningGetVersionFiles.ts +174 -0
- package/src/funcs/versioningGetVersionInfo.ts +150 -0
- package/src/funcs/versioningGetVersionShow.ts +176 -0
- package/src/funcs/versioningGetVersionStatus.ts +173 -0
- package/src/lib/config.ts +3 -3
- package/src/models/gitcommitparams.ts +76 -0
- package/src/models/gitcommitsummary.ts +266 -0
- package/src/models/gitfile.ts +67 -0
- package/src/models/gitfilesresponse.ts +80 -0
- package/src/models/gitinfo.ts +106 -0
- package/src/models/gitrevertparams.ts +72 -0
- package/src/models/gitrevertresult.ts +197 -0
- package/src/models/gitstatusresult.ts +239 -0
- package/src/models/index.ts +8 -0
- package/src/models/operations/createversioncommit.ts +79 -0
- package/src/models/operations/createversionpush.ts +76 -0
- package/src/models/operations/createversionrevert.ts +156 -0
- package/src/models/operations/createversionsync.ts +76 -0
- package/src/models/operations/createversionundo.ts +137 -0
- package/src/models/operations/getversionbranch.ts +76 -0
- package/src/models/operations/getversioncount.ts +153 -0
- package/src/models/operations/getversioncurrentbranch.ts +78 -0
- package/src/models/operations/getversiondiff.ts +158 -0
- package/src/models/operations/getversionfiles.ts +154 -0
- package/src/models/operations/getversioninfo.ts +77 -0
- package/src/models/operations/getversionshow.ts +158 -0
- package/src/models/operations/getversionstatus.ts +138 -0
- package/src/models/operations/index.ts +13 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/versioning.ts +234 -0
|
@@ -0,0 +1,1006 @@
|
|
|
1
|
+
# Versioning
|
|
2
|
+
(*versioning*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Actions related to Versioning
|
|
7
|
+
|
|
8
|
+
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [getVersionBranch](#getversionbranch) - get the list of branches
|
|
11
|
+
* [createVersionCommit](#createversioncommit) - create a new commit containing the current configs the given log message describing the changes.
|
|
12
|
+
* [getVersionCount](#getversioncount) - get the count of files of changed
|
|
13
|
+
* [getVersionCurrentBranch](#getversioncurrentbranch) - returns git branch that the config is checked out to, if any
|
|
14
|
+
* [getVersionDiff](#getversiondiff) - get the textual diff for given commit
|
|
15
|
+
* [getVersionFiles](#getversionfiles) - get the files changed
|
|
16
|
+
* [getVersionInfo](#getversioninfo) - Get info about versioning availability
|
|
17
|
+
* [createVersionPush](#createversionpush) - push the current configs to the remote repository.
|
|
18
|
+
* [createVersionRevert](#createversionrevert) - revert a commit
|
|
19
|
+
* [getVersionShow](#getversionshow) - get the log message and textual diff for given commit
|
|
20
|
+
* [getVersionStatus](#getversionstatus) - get the the working tree status
|
|
21
|
+
* [createVersionSync](#createversionsync) - syncs with remote repo via POST requests
|
|
22
|
+
* [createVersionUndo](#createversionundo) - undo the last commit
|
|
23
|
+
|
|
24
|
+
## getVersionBranch
|
|
25
|
+
|
|
26
|
+
get the list of branches
|
|
27
|
+
|
|
28
|
+
### Example Usage
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
32
|
+
|
|
33
|
+
const criblControlPlane = new CriblControlPlane({
|
|
34
|
+
serverURL: "https://api.example.com",
|
|
35
|
+
security: {
|
|
36
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
async function run() {
|
|
41
|
+
const result = await criblControlPlane.versioning.getVersionBranch();
|
|
42
|
+
|
|
43
|
+
console.log(result);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
run();
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Standalone function
|
|
50
|
+
|
|
51
|
+
The standalone function version of this method:
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
55
|
+
import { versioningGetVersionBranch } from "cribl-control-plane/funcs/versioningGetVersionBranch.js";
|
|
56
|
+
|
|
57
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
58
|
+
// You can create one instance of it to use across an application.
|
|
59
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
60
|
+
serverURL: "https://api.example.com",
|
|
61
|
+
security: {
|
|
62
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
async function run() {
|
|
67
|
+
const res = await versioningGetVersionBranch(criblControlPlane);
|
|
68
|
+
if (res.ok) {
|
|
69
|
+
const { value: result } = res;
|
|
70
|
+
console.log(result);
|
|
71
|
+
} else {
|
|
72
|
+
console.log("versioningGetVersionBranch failed:", res.error);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
run();
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
| Parameter | Type | Required | Description |
|
|
82
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
83
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
84
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
85
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
86
|
+
|
|
87
|
+
### Response
|
|
88
|
+
|
|
89
|
+
**Promise\<[operations.GetVersionBranchResponse](../../models/operations/getversionbranchresponse.md)\>**
|
|
90
|
+
|
|
91
|
+
### Errors
|
|
92
|
+
|
|
93
|
+
| Error Type | Status Code | Content Type |
|
|
94
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
95
|
+
| errors.ErrorT | 500 | application/json |
|
|
96
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
97
|
+
|
|
98
|
+
## createVersionCommit
|
|
99
|
+
|
|
100
|
+
create a new commit containing the current configs the given log message describing the changes.
|
|
101
|
+
|
|
102
|
+
### Example Usage
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
106
|
+
|
|
107
|
+
const criblControlPlane = new CriblControlPlane({
|
|
108
|
+
serverURL: "https://api.example.com",
|
|
109
|
+
security: {
|
|
110
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
async function run() {
|
|
115
|
+
const result = await criblControlPlane.versioning.createVersionCommit({
|
|
116
|
+
message: "<value>",
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
console.log(result);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
run();
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Standalone function
|
|
126
|
+
|
|
127
|
+
The standalone function version of this method:
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
131
|
+
import { versioningCreateVersionCommit } from "cribl-control-plane/funcs/versioningCreateVersionCommit.js";
|
|
132
|
+
|
|
133
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
134
|
+
// You can create one instance of it to use across an application.
|
|
135
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
136
|
+
serverURL: "https://api.example.com",
|
|
137
|
+
security: {
|
|
138
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
async function run() {
|
|
143
|
+
const res = await versioningCreateVersionCommit(criblControlPlane, {
|
|
144
|
+
message: "<value>",
|
|
145
|
+
});
|
|
146
|
+
if (res.ok) {
|
|
147
|
+
const { value: result } = res;
|
|
148
|
+
console.log(result);
|
|
149
|
+
} else {
|
|
150
|
+
console.log("versioningCreateVersionCommit failed:", res.error);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
run();
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
| Parameter | Type | Required | Description |
|
|
160
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
161
|
+
| `request` | [models.GitCommitParams](../../models/gitcommitparams.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
162
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
163
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
164
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
165
|
+
|
|
166
|
+
### Response
|
|
167
|
+
|
|
168
|
+
**Promise\<[operations.CreateVersionCommitResponse](../../models/operations/createversioncommitresponse.md)\>**
|
|
169
|
+
|
|
170
|
+
### Errors
|
|
171
|
+
|
|
172
|
+
| Error Type | Status Code | Content Type |
|
|
173
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
174
|
+
| errors.ErrorT | 500 | application/json |
|
|
175
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
176
|
+
|
|
177
|
+
## getVersionCount
|
|
178
|
+
|
|
179
|
+
get the count of files of changed
|
|
180
|
+
|
|
181
|
+
### Example Usage
|
|
182
|
+
|
|
183
|
+
```typescript
|
|
184
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
185
|
+
|
|
186
|
+
const criblControlPlane = new CriblControlPlane({
|
|
187
|
+
serverURL: "https://api.example.com",
|
|
188
|
+
security: {
|
|
189
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
async function run() {
|
|
194
|
+
const result = await criblControlPlane.versioning.getVersionCount();
|
|
195
|
+
|
|
196
|
+
console.log(result);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
run();
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Standalone function
|
|
203
|
+
|
|
204
|
+
The standalone function version of this method:
|
|
205
|
+
|
|
206
|
+
```typescript
|
|
207
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
208
|
+
import { versioningGetVersionCount } from "cribl-control-plane/funcs/versioningGetVersionCount.js";
|
|
209
|
+
|
|
210
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
211
|
+
// You can create one instance of it to use across an application.
|
|
212
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
213
|
+
serverURL: "https://api.example.com",
|
|
214
|
+
security: {
|
|
215
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
async function run() {
|
|
220
|
+
const res = await versioningGetVersionCount(criblControlPlane);
|
|
221
|
+
if (res.ok) {
|
|
222
|
+
const { value: result } = res;
|
|
223
|
+
console.log(result);
|
|
224
|
+
} else {
|
|
225
|
+
console.log("versioningGetVersionCount failed:", res.error);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
run();
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Parameters
|
|
233
|
+
|
|
234
|
+
| Parameter | Type | Required | Description |
|
|
235
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
236
|
+
| `request` | [operations.GetVersionCountRequest](../../models/operations/getversioncountrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
237
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
238
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
239
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
240
|
+
|
|
241
|
+
### Response
|
|
242
|
+
|
|
243
|
+
**Promise\<[operations.GetVersionCountResponse](../../models/operations/getversioncountresponse.md)\>**
|
|
244
|
+
|
|
245
|
+
### Errors
|
|
246
|
+
|
|
247
|
+
| Error Type | Status Code | Content Type |
|
|
248
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
249
|
+
| errors.ErrorT | 500 | application/json |
|
|
250
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
251
|
+
|
|
252
|
+
## getVersionCurrentBranch
|
|
253
|
+
|
|
254
|
+
returns git branch that the config is checked out to, if any
|
|
255
|
+
|
|
256
|
+
### Example Usage
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
260
|
+
|
|
261
|
+
const criblControlPlane = new CriblControlPlane({
|
|
262
|
+
serverURL: "https://api.example.com",
|
|
263
|
+
security: {
|
|
264
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
async function run() {
|
|
269
|
+
const result = await criblControlPlane.versioning.getVersionCurrentBranch();
|
|
270
|
+
|
|
271
|
+
console.log(result);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
run();
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Standalone function
|
|
278
|
+
|
|
279
|
+
The standalone function version of this method:
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
283
|
+
import { versioningGetVersionCurrentBranch } from "cribl-control-plane/funcs/versioningGetVersionCurrentBranch.js";
|
|
284
|
+
|
|
285
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
286
|
+
// You can create one instance of it to use across an application.
|
|
287
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
288
|
+
serverURL: "https://api.example.com",
|
|
289
|
+
security: {
|
|
290
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
async function run() {
|
|
295
|
+
const res = await versioningGetVersionCurrentBranch(criblControlPlane);
|
|
296
|
+
if (res.ok) {
|
|
297
|
+
const { value: result } = res;
|
|
298
|
+
console.log(result);
|
|
299
|
+
} else {
|
|
300
|
+
console.log("versioningGetVersionCurrentBranch failed:", res.error);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
run();
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Parameters
|
|
308
|
+
|
|
309
|
+
| Parameter | Type | Required | Description |
|
|
310
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
311
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
312
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
313
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
314
|
+
|
|
315
|
+
### Response
|
|
316
|
+
|
|
317
|
+
**Promise\<[operations.GetVersionCurrentBranchResponse](../../models/operations/getversioncurrentbranchresponse.md)\>**
|
|
318
|
+
|
|
319
|
+
### Errors
|
|
320
|
+
|
|
321
|
+
| Error Type | Status Code | Content Type |
|
|
322
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
323
|
+
| errors.ErrorT | 500 | application/json |
|
|
324
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
325
|
+
|
|
326
|
+
## getVersionDiff
|
|
327
|
+
|
|
328
|
+
get the textual diff for given commit
|
|
329
|
+
|
|
330
|
+
### Example Usage
|
|
331
|
+
|
|
332
|
+
```typescript
|
|
333
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
334
|
+
|
|
335
|
+
const criblControlPlane = new CriblControlPlane({
|
|
336
|
+
serverURL: "https://api.example.com",
|
|
337
|
+
security: {
|
|
338
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
async function run() {
|
|
343
|
+
const result = await criblControlPlane.versioning.getVersionDiff();
|
|
344
|
+
|
|
345
|
+
console.log(result);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
run();
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Standalone function
|
|
352
|
+
|
|
353
|
+
The standalone function version of this method:
|
|
354
|
+
|
|
355
|
+
```typescript
|
|
356
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
357
|
+
import { versioningGetVersionDiff } from "cribl-control-plane/funcs/versioningGetVersionDiff.js";
|
|
358
|
+
|
|
359
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
360
|
+
// You can create one instance of it to use across an application.
|
|
361
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
362
|
+
serverURL: "https://api.example.com",
|
|
363
|
+
security: {
|
|
364
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
async function run() {
|
|
369
|
+
const res = await versioningGetVersionDiff(criblControlPlane);
|
|
370
|
+
if (res.ok) {
|
|
371
|
+
const { value: result } = res;
|
|
372
|
+
console.log(result);
|
|
373
|
+
} else {
|
|
374
|
+
console.log("versioningGetVersionDiff failed:", res.error);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
run();
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Parameters
|
|
382
|
+
|
|
383
|
+
| Parameter | Type | Required | Description |
|
|
384
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
385
|
+
| `request` | [operations.GetVersionDiffRequest](../../models/operations/getversiondiffrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
386
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
387
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
388
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
389
|
+
|
|
390
|
+
### Response
|
|
391
|
+
|
|
392
|
+
**Promise\<[operations.GetVersionDiffResponse](../../models/operations/getversiondiffresponse.md)\>**
|
|
393
|
+
|
|
394
|
+
### Errors
|
|
395
|
+
|
|
396
|
+
| Error Type | Status Code | Content Type |
|
|
397
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
398
|
+
| errors.ErrorT | 500 | application/json |
|
|
399
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
400
|
+
|
|
401
|
+
## getVersionFiles
|
|
402
|
+
|
|
403
|
+
get the files changed
|
|
404
|
+
|
|
405
|
+
### Example Usage
|
|
406
|
+
|
|
407
|
+
```typescript
|
|
408
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
409
|
+
|
|
410
|
+
const criblControlPlane = new CriblControlPlane({
|
|
411
|
+
serverURL: "https://api.example.com",
|
|
412
|
+
security: {
|
|
413
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
async function run() {
|
|
418
|
+
const result = await criblControlPlane.versioning.getVersionFiles();
|
|
419
|
+
|
|
420
|
+
console.log(result);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
run();
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
### Standalone function
|
|
427
|
+
|
|
428
|
+
The standalone function version of this method:
|
|
429
|
+
|
|
430
|
+
```typescript
|
|
431
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
432
|
+
import { versioningGetVersionFiles } from "cribl-control-plane/funcs/versioningGetVersionFiles.js";
|
|
433
|
+
|
|
434
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
435
|
+
// You can create one instance of it to use across an application.
|
|
436
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
437
|
+
serverURL: "https://api.example.com",
|
|
438
|
+
security: {
|
|
439
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
440
|
+
},
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
async function run() {
|
|
444
|
+
const res = await versioningGetVersionFiles(criblControlPlane);
|
|
445
|
+
if (res.ok) {
|
|
446
|
+
const { value: result } = res;
|
|
447
|
+
console.log(result);
|
|
448
|
+
} else {
|
|
449
|
+
console.log("versioningGetVersionFiles failed:", res.error);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
run();
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Parameters
|
|
457
|
+
|
|
458
|
+
| Parameter | Type | Required | Description |
|
|
459
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
460
|
+
| `request` | [operations.GetVersionFilesRequest](../../models/operations/getversionfilesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
461
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
462
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
463
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
464
|
+
|
|
465
|
+
### Response
|
|
466
|
+
|
|
467
|
+
**Promise\<[operations.GetVersionFilesResponse](../../models/operations/getversionfilesresponse.md)\>**
|
|
468
|
+
|
|
469
|
+
### Errors
|
|
470
|
+
|
|
471
|
+
| Error Type | Status Code | Content Type |
|
|
472
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
473
|
+
| errors.ErrorT | 500 | application/json |
|
|
474
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
475
|
+
|
|
476
|
+
## getVersionInfo
|
|
477
|
+
|
|
478
|
+
Get info about versioning availability
|
|
479
|
+
|
|
480
|
+
### Example Usage
|
|
481
|
+
|
|
482
|
+
```typescript
|
|
483
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
484
|
+
|
|
485
|
+
const criblControlPlane = new CriblControlPlane({
|
|
486
|
+
serverURL: "https://api.example.com",
|
|
487
|
+
security: {
|
|
488
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
489
|
+
},
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
async function run() {
|
|
493
|
+
const result = await criblControlPlane.versioning.getVersionInfo();
|
|
494
|
+
|
|
495
|
+
console.log(result);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
run();
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Standalone function
|
|
502
|
+
|
|
503
|
+
The standalone function version of this method:
|
|
504
|
+
|
|
505
|
+
```typescript
|
|
506
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
507
|
+
import { versioningGetVersionInfo } from "cribl-control-plane/funcs/versioningGetVersionInfo.js";
|
|
508
|
+
|
|
509
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
510
|
+
// You can create one instance of it to use across an application.
|
|
511
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
512
|
+
serverURL: "https://api.example.com",
|
|
513
|
+
security: {
|
|
514
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
515
|
+
},
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
async function run() {
|
|
519
|
+
const res = await versioningGetVersionInfo(criblControlPlane);
|
|
520
|
+
if (res.ok) {
|
|
521
|
+
const { value: result } = res;
|
|
522
|
+
console.log(result);
|
|
523
|
+
} else {
|
|
524
|
+
console.log("versioningGetVersionInfo failed:", res.error);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
run();
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
### Parameters
|
|
532
|
+
|
|
533
|
+
| Parameter | Type | Required | Description |
|
|
534
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
535
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
536
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
537
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
538
|
+
|
|
539
|
+
### Response
|
|
540
|
+
|
|
541
|
+
**Promise\<[operations.GetVersionInfoResponse](../../models/operations/getversioninforesponse.md)\>**
|
|
542
|
+
|
|
543
|
+
### Errors
|
|
544
|
+
|
|
545
|
+
| Error Type | Status Code | Content Type |
|
|
546
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
547
|
+
| errors.ErrorT | 500 | application/json |
|
|
548
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
549
|
+
|
|
550
|
+
## createVersionPush
|
|
551
|
+
|
|
552
|
+
push the current configs to the remote repository.
|
|
553
|
+
|
|
554
|
+
### Example Usage
|
|
555
|
+
|
|
556
|
+
```typescript
|
|
557
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
558
|
+
|
|
559
|
+
const criblControlPlane = new CriblControlPlane({
|
|
560
|
+
serverURL: "https://api.example.com",
|
|
561
|
+
security: {
|
|
562
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
563
|
+
},
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
async function run() {
|
|
567
|
+
const result = await criblControlPlane.versioning.createVersionPush();
|
|
568
|
+
|
|
569
|
+
console.log(result);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
run();
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### Standalone function
|
|
576
|
+
|
|
577
|
+
The standalone function version of this method:
|
|
578
|
+
|
|
579
|
+
```typescript
|
|
580
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
581
|
+
import { versioningCreateVersionPush } from "cribl-control-plane/funcs/versioningCreateVersionPush.js";
|
|
582
|
+
|
|
583
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
584
|
+
// You can create one instance of it to use across an application.
|
|
585
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
586
|
+
serverURL: "https://api.example.com",
|
|
587
|
+
security: {
|
|
588
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
589
|
+
},
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
async function run() {
|
|
593
|
+
const res = await versioningCreateVersionPush(criblControlPlane);
|
|
594
|
+
if (res.ok) {
|
|
595
|
+
const { value: result } = res;
|
|
596
|
+
console.log(result);
|
|
597
|
+
} else {
|
|
598
|
+
console.log("versioningCreateVersionPush failed:", res.error);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
run();
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
### Parameters
|
|
606
|
+
|
|
607
|
+
| Parameter | Type | Required | Description |
|
|
608
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
609
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
610
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
611
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
612
|
+
|
|
613
|
+
### Response
|
|
614
|
+
|
|
615
|
+
**Promise\<[operations.CreateVersionPushResponse](../../models/operations/createversionpushresponse.md)\>**
|
|
616
|
+
|
|
617
|
+
### Errors
|
|
618
|
+
|
|
619
|
+
| Error Type | Status Code | Content Type |
|
|
620
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
621
|
+
| errors.ErrorT | 500 | application/json |
|
|
622
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
623
|
+
|
|
624
|
+
## createVersionRevert
|
|
625
|
+
|
|
626
|
+
revert a commit
|
|
627
|
+
|
|
628
|
+
### Example Usage
|
|
629
|
+
|
|
630
|
+
```typescript
|
|
631
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
632
|
+
|
|
633
|
+
const criblControlPlane = new CriblControlPlane({
|
|
634
|
+
serverURL: "https://api.example.com",
|
|
635
|
+
security: {
|
|
636
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
637
|
+
},
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
async function run() {
|
|
641
|
+
const result = await criblControlPlane.versioning.createVersionRevert({
|
|
642
|
+
gitRevertParams: {
|
|
643
|
+
commit: "<value>",
|
|
644
|
+
message: "<value>",
|
|
645
|
+
},
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
console.log(result);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
run();
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
### Standalone function
|
|
655
|
+
|
|
656
|
+
The standalone function version of this method:
|
|
657
|
+
|
|
658
|
+
```typescript
|
|
659
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
660
|
+
import { versioningCreateVersionRevert } from "cribl-control-plane/funcs/versioningCreateVersionRevert.js";
|
|
661
|
+
|
|
662
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
663
|
+
// You can create one instance of it to use across an application.
|
|
664
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
665
|
+
serverURL: "https://api.example.com",
|
|
666
|
+
security: {
|
|
667
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
668
|
+
},
|
|
669
|
+
});
|
|
670
|
+
|
|
671
|
+
async function run() {
|
|
672
|
+
const res = await versioningCreateVersionRevert(criblControlPlane, {
|
|
673
|
+
gitRevertParams: {
|
|
674
|
+
commit: "<value>",
|
|
675
|
+
message: "<value>",
|
|
676
|
+
},
|
|
677
|
+
});
|
|
678
|
+
if (res.ok) {
|
|
679
|
+
const { value: result } = res;
|
|
680
|
+
console.log(result);
|
|
681
|
+
} else {
|
|
682
|
+
console.log("versioningCreateVersionRevert failed:", res.error);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
run();
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
### Parameters
|
|
690
|
+
|
|
691
|
+
| Parameter | Type | Required | Description |
|
|
692
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
693
|
+
| `request` | [operations.CreateVersionRevertRequest](../../models/operations/createversionrevertrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
694
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
695
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
696
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
697
|
+
|
|
698
|
+
### Response
|
|
699
|
+
|
|
700
|
+
**Promise\<[operations.CreateVersionRevertResponse](../../models/operations/createversionrevertresponse.md)\>**
|
|
701
|
+
|
|
702
|
+
### Errors
|
|
703
|
+
|
|
704
|
+
| Error Type | Status Code | Content Type |
|
|
705
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
706
|
+
| errors.ErrorT | 500 | application/json |
|
|
707
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
708
|
+
|
|
709
|
+
## getVersionShow
|
|
710
|
+
|
|
711
|
+
get the log message and textual diff for given commit
|
|
712
|
+
|
|
713
|
+
### Example Usage
|
|
714
|
+
|
|
715
|
+
```typescript
|
|
716
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
717
|
+
|
|
718
|
+
const criblControlPlane = new CriblControlPlane({
|
|
719
|
+
serverURL: "https://api.example.com",
|
|
720
|
+
security: {
|
|
721
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
722
|
+
},
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
async function run() {
|
|
726
|
+
const result = await criblControlPlane.versioning.getVersionShow();
|
|
727
|
+
|
|
728
|
+
console.log(result);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
run();
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
### Standalone function
|
|
735
|
+
|
|
736
|
+
The standalone function version of this method:
|
|
737
|
+
|
|
738
|
+
```typescript
|
|
739
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
740
|
+
import { versioningGetVersionShow } from "cribl-control-plane/funcs/versioningGetVersionShow.js";
|
|
741
|
+
|
|
742
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
743
|
+
// You can create one instance of it to use across an application.
|
|
744
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
745
|
+
serverURL: "https://api.example.com",
|
|
746
|
+
security: {
|
|
747
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
748
|
+
},
|
|
749
|
+
});
|
|
750
|
+
|
|
751
|
+
async function run() {
|
|
752
|
+
const res = await versioningGetVersionShow(criblControlPlane);
|
|
753
|
+
if (res.ok) {
|
|
754
|
+
const { value: result } = res;
|
|
755
|
+
console.log(result);
|
|
756
|
+
} else {
|
|
757
|
+
console.log("versioningGetVersionShow failed:", res.error);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
run();
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
### Parameters
|
|
765
|
+
|
|
766
|
+
| Parameter | Type | Required | Description |
|
|
767
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
768
|
+
| `request` | [operations.GetVersionShowRequest](../../models/operations/getversionshowrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
769
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
770
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
771
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
772
|
+
|
|
773
|
+
### Response
|
|
774
|
+
|
|
775
|
+
**Promise\<[operations.GetVersionShowResponse](../../models/operations/getversionshowresponse.md)\>**
|
|
776
|
+
|
|
777
|
+
### Errors
|
|
778
|
+
|
|
779
|
+
| Error Type | Status Code | Content Type |
|
|
780
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
781
|
+
| errors.ErrorT | 500 | application/json |
|
|
782
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
783
|
+
|
|
784
|
+
## getVersionStatus
|
|
785
|
+
|
|
786
|
+
get the the working tree status
|
|
787
|
+
|
|
788
|
+
### Example Usage
|
|
789
|
+
|
|
790
|
+
```typescript
|
|
791
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
792
|
+
|
|
793
|
+
const criblControlPlane = new CriblControlPlane({
|
|
794
|
+
serverURL: "https://api.example.com",
|
|
795
|
+
security: {
|
|
796
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
797
|
+
},
|
|
798
|
+
});
|
|
799
|
+
|
|
800
|
+
async function run() {
|
|
801
|
+
const result = await criblControlPlane.versioning.getVersionStatus();
|
|
802
|
+
|
|
803
|
+
console.log(result);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
run();
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
### Standalone function
|
|
810
|
+
|
|
811
|
+
The standalone function version of this method:
|
|
812
|
+
|
|
813
|
+
```typescript
|
|
814
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
815
|
+
import { versioningGetVersionStatus } from "cribl-control-plane/funcs/versioningGetVersionStatus.js";
|
|
816
|
+
|
|
817
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
818
|
+
// You can create one instance of it to use across an application.
|
|
819
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
820
|
+
serverURL: "https://api.example.com",
|
|
821
|
+
security: {
|
|
822
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
823
|
+
},
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
async function run() {
|
|
827
|
+
const res = await versioningGetVersionStatus(criblControlPlane);
|
|
828
|
+
if (res.ok) {
|
|
829
|
+
const { value: result } = res;
|
|
830
|
+
console.log(result);
|
|
831
|
+
} else {
|
|
832
|
+
console.log("versioningGetVersionStatus failed:", res.error);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
run();
|
|
837
|
+
```
|
|
838
|
+
|
|
839
|
+
### Parameters
|
|
840
|
+
|
|
841
|
+
| Parameter | Type | Required | Description |
|
|
842
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
843
|
+
| `request` | [operations.GetVersionStatusRequest](../../models/operations/getversionstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
844
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
845
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
846
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
847
|
+
|
|
848
|
+
### Response
|
|
849
|
+
|
|
850
|
+
**Promise\<[operations.GetVersionStatusResponse](../../models/operations/getversionstatusresponse.md)\>**
|
|
851
|
+
|
|
852
|
+
### Errors
|
|
853
|
+
|
|
854
|
+
| Error Type | Status Code | Content Type |
|
|
855
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
856
|
+
| errors.ErrorT | 500 | application/json |
|
|
857
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
858
|
+
|
|
859
|
+
## createVersionSync
|
|
860
|
+
|
|
861
|
+
syncs with remote repo via POST requests
|
|
862
|
+
|
|
863
|
+
### Example Usage
|
|
864
|
+
|
|
865
|
+
```typescript
|
|
866
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
867
|
+
|
|
868
|
+
const criblControlPlane = new CriblControlPlane({
|
|
869
|
+
serverURL: "https://api.example.com",
|
|
870
|
+
security: {
|
|
871
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
872
|
+
},
|
|
873
|
+
});
|
|
874
|
+
|
|
875
|
+
async function run() {
|
|
876
|
+
const result = await criblControlPlane.versioning.createVersionSync();
|
|
877
|
+
|
|
878
|
+
console.log(result);
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
run();
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
### Standalone function
|
|
885
|
+
|
|
886
|
+
The standalone function version of this method:
|
|
887
|
+
|
|
888
|
+
```typescript
|
|
889
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
890
|
+
import { versioningCreateVersionSync } from "cribl-control-plane/funcs/versioningCreateVersionSync.js";
|
|
891
|
+
|
|
892
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
893
|
+
// You can create one instance of it to use across an application.
|
|
894
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
895
|
+
serverURL: "https://api.example.com",
|
|
896
|
+
security: {
|
|
897
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
898
|
+
},
|
|
899
|
+
});
|
|
900
|
+
|
|
901
|
+
async function run() {
|
|
902
|
+
const res = await versioningCreateVersionSync(criblControlPlane);
|
|
903
|
+
if (res.ok) {
|
|
904
|
+
const { value: result } = res;
|
|
905
|
+
console.log(result);
|
|
906
|
+
} else {
|
|
907
|
+
console.log("versioningCreateVersionSync failed:", res.error);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
run();
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
### Parameters
|
|
915
|
+
|
|
916
|
+
| Parameter | Type | Required | Description |
|
|
917
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
918
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
919
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
920
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
921
|
+
|
|
922
|
+
### Response
|
|
923
|
+
|
|
924
|
+
**Promise\<[operations.CreateVersionSyncResponse](../../models/operations/createversionsyncresponse.md)\>**
|
|
925
|
+
|
|
926
|
+
### Errors
|
|
927
|
+
|
|
928
|
+
| Error Type | Status Code | Content Type |
|
|
929
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
930
|
+
| errors.ErrorT | 500 | application/json |
|
|
931
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
932
|
+
|
|
933
|
+
## createVersionUndo
|
|
934
|
+
|
|
935
|
+
undo the last commit
|
|
936
|
+
|
|
937
|
+
### Example Usage
|
|
938
|
+
|
|
939
|
+
```typescript
|
|
940
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
941
|
+
|
|
942
|
+
const criblControlPlane = new CriblControlPlane({
|
|
943
|
+
serverURL: "https://api.example.com",
|
|
944
|
+
security: {
|
|
945
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
946
|
+
},
|
|
947
|
+
});
|
|
948
|
+
|
|
949
|
+
async function run() {
|
|
950
|
+
const result = await criblControlPlane.versioning.createVersionUndo();
|
|
951
|
+
|
|
952
|
+
console.log(result);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
run();
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
### Standalone function
|
|
959
|
+
|
|
960
|
+
The standalone function version of this method:
|
|
961
|
+
|
|
962
|
+
```typescript
|
|
963
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
964
|
+
import { versioningCreateVersionUndo } from "cribl-control-plane/funcs/versioningCreateVersionUndo.js";
|
|
965
|
+
|
|
966
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
967
|
+
// You can create one instance of it to use across an application.
|
|
968
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
969
|
+
serverURL: "https://api.example.com",
|
|
970
|
+
security: {
|
|
971
|
+
bearerAuth: process.env["CRIBLCONTROLPLANE_BEARER_AUTH"] ?? "",
|
|
972
|
+
},
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
async function run() {
|
|
976
|
+
const res = await versioningCreateVersionUndo(criblControlPlane);
|
|
977
|
+
if (res.ok) {
|
|
978
|
+
const { value: result } = res;
|
|
979
|
+
console.log(result);
|
|
980
|
+
} else {
|
|
981
|
+
console.log("versioningCreateVersionUndo failed:", res.error);
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
run();
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
### Parameters
|
|
989
|
+
|
|
990
|
+
| Parameter | Type | Required | Description |
|
|
991
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
992
|
+
| `request` | [operations.CreateVersionUndoRequest](../../models/operations/createversionundorequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
993
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
994
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
995
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
996
|
+
|
|
997
|
+
### Response
|
|
998
|
+
|
|
999
|
+
**Promise\<[operations.CreateVersionUndoResponse](../../models/operations/createversionundoresponse.md)\>**
|
|
1000
|
+
|
|
1001
|
+
### Errors
|
|
1002
|
+
|
|
1003
|
+
| Error Type | Status Code | Content Type |
|
|
1004
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
1005
|
+
| errors.ErrorT | 500 | application/json |
|
|
1006
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|