UNPKG

6.99 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.WidgetScope = exports.TeamDashboardPermission = exports.GroupMemberPermission = exports.DashboardScope = void 0;
13/**
14 * identifies the scope of dashboard storage and permissions.
15 */
16var DashboardScope;
17(function (DashboardScope) {
18 /**
19 * [DEPRECATED] Dashboard is scoped to the collection user.
20 */
21 DashboardScope[DashboardScope["Collection_User"] = 0] = "Collection_User";
22 /**
23 * Dashboard is scoped to the team.
24 */
25 DashboardScope[DashboardScope["Project_Team"] = 1] = "Project_Team";
26 /**
27 * Dashboard is scoped to the project.
28 */
29 DashboardScope[DashboardScope["Project"] = 2] = "Project";
30})(DashboardScope = exports.DashboardScope || (exports.DashboardScope = {}));
31/**
32 * None - Team member cannot edit dashboard Edit - Team member can add, configure and delete widgets Manage - Team member can add, reorder, delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
33 */
34var GroupMemberPermission;
35(function (GroupMemberPermission) {
36 GroupMemberPermission[GroupMemberPermission["None"] = 0] = "None";
37 GroupMemberPermission[GroupMemberPermission["Edit"] = 1] = "Edit";
38 GroupMemberPermission[GroupMemberPermission["Manage"] = 2] = "Manage";
39 GroupMemberPermission[GroupMemberPermission["ManagePermissions"] = 3] = "ManagePermissions";
40})(GroupMemberPermission = exports.GroupMemberPermission || (exports.GroupMemberPermission = {}));
41/**
42 * Read - User can see dashboards Create - User can create dashboards Edit - User can add, configure and delete widgets, and edit dashboard settings. Delete - User can delete dashboards Manage Permissions - Team member can manage membership of other members to perform group operations.
43 */
44var TeamDashboardPermission;
45(function (TeamDashboardPermission) {
46 TeamDashboardPermission[TeamDashboardPermission["None"] = 0] = "None";
47 TeamDashboardPermission[TeamDashboardPermission["Read"] = 1] = "Read";
48 TeamDashboardPermission[TeamDashboardPermission["Create"] = 2] = "Create";
49 TeamDashboardPermission[TeamDashboardPermission["Edit"] = 4] = "Edit";
50 TeamDashboardPermission[TeamDashboardPermission["Delete"] = 8] = "Delete";
51 TeamDashboardPermission[TeamDashboardPermission["ManagePermissions"] = 16] = "ManagePermissions";
52})(TeamDashboardPermission = exports.TeamDashboardPermission || (exports.TeamDashboardPermission = {}));
53/**
54 * data contract required for the widget to function in a webaccess area or page.
55 */
56var WidgetScope;
57(function (WidgetScope) {
58 WidgetScope[WidgetScope["Collection_User"] = 0] = "Collection_User";
59 WidgetScope[WidgetScope["Project_Team"] = 1] = "Project_Team";
60})(WidgetScope = exports.WidgetScope || (exports.WidgetScope = {}));
61exports.TypeInfo = {
62 CopyDashboardOptions: {},
63 CopyDashboardResponse: {},
64 Dashboard: {},
65 DashboardGroup: {},
66 DashboardGroupEntry: {},
67 DashboardGroupEntryResponse: {},
68 DashboardResponse: {},
69 DashboardScope: {
70 enumValues: {
71 "collection_User": 0,
72 "project_Team": 1,
73 "project": 2
74 }
75 },
76 GroupMemberPermission: {
77 enumValues: {
78 "none": 0,
79 "edit": 1,
80 "manage": 2,
81 "managePermissions": 3
82 }
83 },
84 TeamDashboardPermission: {
85 enumValues: {
86 "none": 0,
87 "read": 1,
88 "create": 2,
89 "edit": 4,
90 "delete": 8,
91 "managePermissions": 16
92 }
93 },
94 Widget: {},
95 WidgetMetadata: {},
96 WidgetMetadataResponse: {},
97 WidgetResponse: {},
98 WidgetScope: {
99 enumValues: {
100 "collection_User": 0,
101 "project_Team": 1
102 }
103 },
104 WidgetsVersionedList: {},
105 WidgetTypesResponse: {},
106};
107exports.TypeInfo.CopyDashboardOptions.fields = {
108 copyDashboardScope: {
109 enumType: exports.TypeInfo.DashboardScope
110 }
111};
112exports.TypeInfo.CopyDashboardResponse.fields = {
113 copiedDashboard: {
114 typeInfo: exports.TypeInfo.Dashboard
115 },
116 copyDashboardOptions: {
117 typeInfo: exports.TypeInfo.CopyDashboardOptions
118 }
119};
120exports.TypeInfo.Dashboard.fields = {
121 dashboardScope: {
122 enumType: exports.TypeInfo.DashboardScope
123 },
124 lastAccessedDate: {
125 isDate: true,
126 },
127 modifiedDate: {
128 isDate: true,
129 },
130 widgets: {
131 isArray: true,
132 typeInfo: exports.TypeInfo.Widget
133 }
134};
135exports.TypeInfo.DashboardGroup.fields = {
136 dashboardEntries: {
137 isArray: true,
138 typeInfo: exports.TypeInfo.DashboardGroupEntry
139 },
140 permission: {
141 enumType: exports.TypeInfo.GroupMemberPermission
142 },
143 teamDashboardPermission: {
144 enumType: exports.TypeInfo.TeamDashboardPermission
145 }
146};
147exports.TypeInfo.DashboardGroupEntry.fields = {
148 dashboardScope: {
149 enumType: exports.TypeInfo.DashboardScope
150 },
151 lastAccessedDate: {
152 isDate: true,
153 },
154 modifiedDate: {
155 isDate: true,
156 },
157 widgets: {
158 isArray: true,
159 typeInfo: exports.TypeInfo.Widget
160 }
161};
162exports.TypeInfo.DashboardGroupEntryResponse.fields = {
163 dashboardScope: {
164 enumType: exports.TypeInfo.DashboardScope
165 },
166 lastAccessedDate: {
167 isDate: true,
168 },
169 modifiedDate: {
170 isDate: true,
171 },
172 widgets: {
173 isArray: true,
174 typeInfo: exports.TypeInfo.Widget
175 }
176};
177exports.TypeInfo.DashboardResponse.fields = {
178 dashboardScope: {
179 enumType: exports.TypeInfo.DashboardScope
180 },
181 lastAccessedDate: {
182 isDate: true,
183 },
184 modifiedDate: {
185 isDate: true,
186 },
187 widgets: {
188 isArray: true,
189 typeInfo: exports.TypeInfo.Widget
190 }
191};
192exports.TypeInfo.Widget.fields = {
193 dashboard: {
194 typeInfo: exports.TypeInfo.Dashboard
195 }
196};
197exports.TypeInfo.WidgetMetadata.fields = {
198 supportedScopes: {
199 isArray: true,
200 enumType: exports.TypeInfo.WidgetScope
201 }
202};
203exports.TypeInfo.WidgetMetadataResponse.fields = {
204 widgetMetadata: {
205 typeInfo: exports.TypeInfo.WidgetMetadata
206 }
207};
208exports.TypeInfo.WidgetResponse.fields = {
209 dashboard: {
210 typeInfo: exports.TypeInfo.Dashboard
211 }
212};
213exports.TypeInfo.WidgetsVersionedList.fields = {
214 widgets: {
215 isArray: true,
216 typeInfo: exports.TypeInfo.Widget
217 }
218};
219exports.TypeInfo.WidgetTypesResponse.fields = {
220 widgetTypes: {
221 isArray: true,
222 typeInfo: exports.TypeInfo.WidgetMetadata
223 }
224};