37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.VersioningIntent = void 0;
|
|
exports.versioningIntentToProto = versioningIntentToProto;
|
|
const type_helpers_1 = require("./type-helpers");
|
|
/* eslint-disable @typescript-eslint/no-deprecated */
|
|
// Avoid importing the proto implementation to reduce workflow bundle size
|
|
// Copied from coresdk.common.VersioningIntent
|
|
/**
|
|
* Protobuf enum representation of {@link VersioningIntentString}.
|
|
*
|
|
* @deprecated Worker Versioning is now deprecated. Please use the Worker Deployment API instead: https://docs.temporal.io/worker-deployments
|
|
*/
|
|
var VersioningIntent;
|
|
(function (VersioningIntent) {
|
|
VersioningIntent[VersioningIntent["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
VersioningIntent[VersioningIntent["COMPATIBLE"] = 1] = "COMPATIBLE";
|
|
VersioningIntent[VersioningIntent["DEFAULT"] = 2] = "DEFAULT";
|
|
})(VersioningIntent || (exports.VersioningIntent = VersioningIntent = {}));
|
|
(0, type_helpers_1.checkExtends)();
|
|
(0, type_helpers_1.checkExtends)();
|
|
/**
|
|
* @deprecated Worker Versioning is now deprecated. Please use the Worker Deployment API instead: https://docs.temporal.io/worker-deployments
|
|
*/
|
|
function versioningIntentToProto(intent) {
|
|
switch (intent) {
|
|
case 'DEFAULT':
|
|
return VersioningIntent.DEFAULT;
|
|
case 'COMPATIBLE':
|
|
return VersioningIntent.COMPATIBLE;
|
|
case undefined:
|
|
return VersioningIntent.UNSPECIFIED;
|
|
default:
|
|
(0, type_helpers_1.assertNever)('Unexpected VersioningIntent', intent);
|
|
}
|
|
}
|
|
//# sourceMappingURL=versioning-intent-enum.js.map
|