UNPKG

@umbraco/json-models-builders

Version:
49 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentTypeContainerBuilder = void 0; const BuilderUtils_1 = require("../../helpers/BuilderUtils"); class DocumentTypeContainerBuilder { parentBuilder; id; parentId; name; type; sortOrder; constructor(parentBuilder) { this.parentBuilder = parentBuilder; } withId(id) { this.id = id; return this; } withParentId(parentId) { this.parentId = parentId; return this; } withName(name) { this.name = name; return this; } withType(type) { this.type = type; return this; } withSortOrder(sortOrder) { this.sortOrder = sortOrder; return this; } done() { return this.parentBuilder; } build() { return (0, BuilderUtils_1.buildContainer)({ id: this.id, parentId: this.parentId, name: this.name, type: this.type, sortOrder: this.sortOrder }); } } exports.DocumentTypeContainerBuilder = DocumentTypeContainerBuilder; //# sourceMappingURL=documentTypeContainerBuilder.js.map