UNPKG

az-deployment-denoise

Version:
42 lines 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OperationResultT = exports.PropertyChangeTypeT = exports.ChangeTypeList = void 0; const t = require("io-ts"); exports.ChangeTypeList = { Create: 'Create', Delete: 'Delete', Deploy: 'Deploy', Ignore: 'Ignore', Modify: 'Modify', NoChange: 'NoChange', }; const ChangeTypeT = t.keyof(exports.ChangeTypeList); const PropertyChangeTypeList = { 'Array': 'Array', Create: 'Create', Delete: 'Delete', Modify: 'Modify', NoEffect: 'NoEffect', }; exports.PropertyChangeTypeT = t.keyof(PropertyChangeTypeList); const PropertyChangeT = t.recursion('PropertyChange', () => { return t.type({ path: t.string, propertyChangeType: exports.PropertyChangeTypeT, before: t.union([t.unknown, t.null]), after: t.union([t.unknown, t.null]), children: t.union([t.array(PropertyChangeT), t.null]), }); }); const ChangeT = t.type({ resourceId: t.string, changeType: ChangeTypeT, before: t.union([t.object, t.null]), after: t.union([t.object, t.null]), delta: t.union([t.array(PropertyChangeT), t.null]), }); exports.OperationResultT = t.type({ status: t.string, changes: t.array(ChangeT), }); //# sourceMappingURL=whatif.js.map