UNPKG

@hank.chat/types

Version:
96 lines (94 loc) 3.19 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/plugin/instruction_kind.ts var instruction_kind_exports = {}; __export(instruction_kind_exports, { InstructionKind: () => InstructionKind, instructionKindFromJSON: () => instructionKindFromJSON, instructionKindToJSON: () => instructionKindToJSON }); module.exports = __toCommonJS(instruction_kind_exports); var InstructionKind = /* @__PURE__ */ ((InstructionKind2) => { InstructionKind2[InstructionKind2["Plugin"] = 0] = "Plugin"; InstructionKind2[InstructionKind2["GetMetadata"] = 1] = "GetMetadata"; InstructionKind2[InstructionKind2["Install"] = 2] = "Install"; InstructionKind2[InstructionKind2["Initialize"] = 3] = "Initialize"; InstructionKind2[InstructionKind2["Shutdown"] = 4] = "Shutdown"; InstructionKind2[InstructionKind2["ChatMessage"] = 5] = "ChatMessage"; InstructionKind2[InstructionKind2["ChatCommand"] = 6] = "ChatCommand"; InstructionKind2[InstructionKind2["ScheduledJob"] = 7] = "ScheduledJob"; InstructionKind2[InstructionKind2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; return InstructionKind2; })(InstructionKind || {}); function instructionKindFromJSON(object) { switch (object) { case 0: case "Plugin": return 0 /* Plugin */; case 1: case "GetMetadata": return 1 /* GetMetadata */; case 2: case "Install": return 2 /* Install */; case 3: case "Initialize": return 3 /* Initialize */; case 4: case "Shutdown": return 4 /* Shutdown */; case 5: case "ChatMessage": return 5 /* ChatMessage */; case 6: case "ChatCommand": return 6 /* ChatCommand */; case 7: case "ScheduledJob": return 7 /* ScheduledJob */; case -1: case "UNRECOGNIZED": default: return -1 /* UNRECOGNIZED */; } } function instructionKindToJSON(object) { switch (object) { case 0 /* Plugin */: return "Plugin"; case 1 /* GetMetadata */: return "GetMetadata"; case 2 /* Install */: return "Install"; case 3 /* Initialize */: return "Initialize"; case 4 /* Shutdown */: return "Shutdown"; case 5 /* ChatMessage */: return "ChatMessage"; case 6 /* ChatCommand */: return "ChatCommand"; case 7 /* ScheduledJob */: return "ScheduledJob"; case -1 /* UNRECOGNIZED */: default: return "UNRECOGNIZED"; } } //# sourceMappingURL=instruction_kind.js.map