@kontent-ai/management-sdk
Version:
Official Kontent.ai management SDK
27 lines • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkflowStepIdentifierQuery = void 0;
const models_1 = require("../models");
class WorkflowStepIdentifierQuery {
constructor(config, queryService, buildResult) {
this.config = config;
this.queryService = queryService;
this.buildResult = buildResult;
}
/**
* Id identifier
* @param id If of the workflow step
*/
byWorkflowStepId(id) {
return this.buildResult(this.config, this.queryService, new models_1.Identifiers.WorkflowIdentifier(models_1.Identifiers.WorkflowIdentifierEnum.Id, id));
}
/**
* Codename identifier
* @param codename codename of the workflow step
*/
byWorkflowStepCodename(codename) {
return this.buildResult(this.config, this.queryService, new models_1.Identifiers.WorkflowIdentifier(models_1.Identifiers.WorkflowIdentifierEnum.Codename, codename));
}
}
exports.WorkflowStepIdentifierQuery = WorkflowStepIdentifierQuery;
//# sourceMappingURL=workflow-step-identifier-query.class.js.map