UNPKG

@vtexlab/planner-contracts

Version:

Contracts to use in an Eventual-Driven Architecture (EDA)

41 lines (40 loc) 1.96 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { Message } from "../../abstractions/message"; import { Context, Type } from "../../decorators/context"; export var plannerNotificationEvent; (function (plannerNotificationEvent) { let DeploymentTimedOut = class DeploymentTimedOut extends Message { constructor(data) { super(data); this.DeploymentId = data.deploymentId; this.ScheduleAt = data.scheduleAt; } }; DeploymentTimedOut = __decorate([ Context('planner'), Type('DeploymentTimedOut'), __metadata("design:paramtypes", [Object]) ], DeploymentTimedOut); plannerNotificationEvent.DeploymentTimedOut = DeploymentTimedOut; let InQueueTimedOut = class InQueueTimedOut extends Message { constructor(data) { super(data); this.DeploymentId = data.deploymentId; this.ScheduleAt = data.scheduleAt; } }; InQueueTimedOut = __decorate([ Context('planner'), Type('InQueueTimedOut'), __metadata("design:paramtypes", [Object]) ], InQueueTimedOut); plannerNotificationEvent.InQueueTimedOut = InQueueTimedOut; })(plannerNotificationEvent || (plannerNotificationEvent = {}));