UNPKG

2.39 kBJavaScriptView Raw
1/*
2 * ---------------------------------------------------------
3 * Copyright(C) Microsoft Corporation. All rights reserved.
4 * ---------------------------------------------------------
5 *
6 * ---------------------------------------------------------
7 * Generated file, DO NOT EDIT
8 * ---------------------------------------------------------
9 */
10"use strict";
11Object.defineProperty(exports, "__esModule", { value: true });
12exports.TypeInfo = exports.PolicyEvaluationStatus = void 0;
13/**
14 * Status of a policy which is running against a specific pull request.
15 */
16var PolicyEvaluationStatus;
17(function (PolicyEvaluationStatus) {
18 /**
19 * The policy is either queued to run, or is waiting for some event before progressing.
20 */
21 PolicyEvaluationStatus[PolicyEvaluationStatus["Queued"] = 0] = "Queued";
22 /**
23 * The policy is currently running.
24 */
25 PolicyEvaluationStatus[PolicyEvaluationStatus["Running"] = 1] = "Running";
26 /**
27 * The policy has been fulfilled for this pull request.
28 */
29 PolicyEvaluationStatus[PolicyEvaluationStatus["Approved"] = 2] = "Approved";
30 /**
31 * The policy has rejected this pull request.
32 */
33 PolicyEvaluationStatus[PolicyEvaluationStatus["Rejected"] = 3] = "Rejected";
34 /**
35 * The policy does not apply to this pull request.
36 */
37 PolicyEvaluationStatus[PolicyEvaluationStatus["NotApplicable"] = 4] = "NotApplicable";
38 /**
39 * The policy has encountered an unexpected error.
40 */
41 PolicyEvaluationStatus[PolicyEvaluationStatus["Broken"] = 5] = "Broken";
42})(PolicyEvaluationStatus = exports.PolicyEvaluationStatus || (exports.PolicyEvaluationStatus = {}));
43exports.TypeInfo = {
44 PolicyConfiguration: {},
45 PolicyEvaluationRecord: {},
46 PolicyEvaluationStatus: {
47 enumValues: {
48 "queued": 0,
49 "running": 1,
50 "approved": 2,
51 "rejected": 3,
52 "notApplicable": 4,
53 "broken": 5
54 }
55 },
56};
57exports.TypeInfo.PolicyConfiguration.fields = {
58 createdDate: {
59 isDate: true,
60 }
61};
62exports.TypeInfo.PolicyEvaluationRecord.fields = {
63 completedDate: {
64 isDate: true,
65 },
66 configuration: {
67 typeInfo: exports.TypeInfo.PolicyConfiguration
68 },
69 startedDate: {
70 isDate: true,
71 },
72 status: {
73 enumType: exports.TypeInfo.PolicyEvaluationStatus
74 }
75};