@perses-dev/core 0.53.1 → 0.54.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/cjs/constants/dashboard-defaults.js +3 -3
  2. package/dist/cjs/model/calculations.js +6 -6
  3. package/dist/cjs/model/definitions.js +1 -3
  4. package/dist/cjs/model/folder.js +16 -0
  5. package/dist/cjs/model/index.js +1 -0
  6. package/dist/cjs/model/legend.js +11 -11
  7. package/dist/cjs/model/otlp/index.js +4 -4
  8. package/dist/cjs/model/otlp/trace/v1/trace.js +4 -4
  9. package/dist/cjs/model/resource.js +3 -3
  10. package/dist/cjs/model/roles.js +4 -4
  11. package/dist/cjs/model/time.js +21 -309
  12. package/dist/cjs/model/units/bits.js +4 -4
  13. package/dist/cjs/model/units/bytes.js +4 -4
  14. package/dist/cjs/model/units/currency.js +4 -4
  15. package/dist/cjs/model/units/date.js +4 -4
  16. package/dist/cjs/model/units/decimal.js +4 -4
  17. package/dist/cjs/model/units/formatterCache.js +3 -3
  18. package/dist/cjs/model/units/percent.js +4 -4
  19. package/dist/cjs/model/units/temperature.js +4 -4
  20. package/dist/cjs/model/units/throughput.js +4 -4
  21. package/dist/cjs/model/units/time.js +5 -5
  22. package/dist/cjs/model/units/units.js +18 -18
  23. package/dist/cjs/model/units/utils.js +4 -4
  24. package/dist/cjs/model/variables.js +3 -3
  25. package/dist/cjs/schema/datasource.js +13 -29
  26. package/dist/cjs/schema/display.js +2 -6
  27. package/dist/cjs/schema/duration.js +2 -4
  28. package/dist/cjs/schema/metadata.js +4 -4
  29. package/dist/cjs/schema/panel.js +20 -73
  30. package/dist/cjs/schema/plugin.js +2 -6
  31. package/dist/cjs/schema/role.js +6 -6
  32. package/dist/cjs/schema/rolebinding.js +6 -6
  33. package/dist/cjs/schema/secret.js +5 -5
  34. package/dist/cjs/schema/user.js +5 -5
  35. package/dist/cjs/schema/variable.js +24 -137
  36. package/dist/cjs/utils/fetch.js +5 -5
  37. package/dist/cjs/utils/panel-refs.js +4 -4
  38. package/dist/cjs/utils/regexp.js +3 -3
  39. package/dist/cjs/utils/text.js +7 -7
  40. package/dist/cjs/utils/time-series-data.js +4 -4
  41. package/dist/cjs/utils/transform-data.js +6 -6
  42. package/dist/model/dashboard.d.ts +2 -21
  43. package/dist/model/dashboard.d.ts.map +1 -1
  44. package/dist/model/dashboard.js.map +1 -1
  45. package/dist/model/datasource.d.ts +3 -22
  46. package/dist/model/datasource.d.ts.map +1 -1
  47. package/dist/model/datasource.js +1 -3
  48. package/dist/model/datasource.js.map +1 -1
  49. package/dist/model/definitions.d.ts +1 -12
  50. package/dist/model/definitions.d.ts.map +1 -1
  51. package/dist/model/definitions.js +1 -6
  52. package/dist/model/definitions.js.map +1 -1
  53. package/dist/model/display.d.ts +1 -4
  54. package/dist/model/display.d.ts.map +1 -1
  55. package/dist/model/display.js.map +1 -1
  56. package/dist/model/folder.d.ts +19 -0
  57. package/dist/model/folder.d.ts.map +1 -0
  58. package/dist/model/folder.js +15 -0
  59. package/dist/model/folder.js.map +1 -0
  60. package/dist/model/index.d.ts +1 -0
  61. package/dist/model/index.d.ts.map +1 -1
  62. package/dist/model/index.js +1 -0
  63. package/dist/model/index.js.map +1 -1
  64. package/dist/model/project.d.ts +1 -1
  65. package/dist/model/project.d.ts.map +1 -1
  66. package/dist/model/project.js.map +1 -1
  67. package/dist/model/resource.d.ts +1 -1
  68. package/dist/model/resource.d.ts.map +1 -1
  69. package/dist/model/resource.js.map +1 -1
  70. package/dist/model/time.d.ts +3 -54
  71. package/dist/model/time.d.ts.map +1 -1
  72. package/dist/model/time.js +2 -299
  73. package/dist/model/time.js.map +1 -1
  74. package/dist/schema/datasource.d.ts +10 -9
  75. package/dist/schema/datasource.d.ts.map +1 -1
  76. package/dist/schema/datasource.js +2 -14
  77. package/dist/schema/datasource.js.map +1 -1
  78. package/dist/schema/display.d.ts +1 -11
  79. package/dist/schema/display.d.ts.map +1 -1
  80. package/dist/schema/display.js +1 -5
  81. package/dist/schema/display.js.map +1 -1
  82. package/dist/schema/duration.d.ts +1 -2
  83. package/dist/schema/duration.d.ts.map +1 -1
  84. package/dist/schema/duration.js +1 -3
  85. package/dist/schema/duration.js.map +1 -1
  86. package/dist/schema/panel.d.ts +1 -12
  87. package/dist/schema/panel.d.ts.map +1 -1
  88. package/dist/schema/panel.js +1 -54
  89. package/dist/schema/panel.js.map +1 -1
  90. package/dist/schema/plugin.d.ts +2 -13
  91. package/dist/schema/plugin.d.ts.map +1 -1
  92. package/dist/schema/plugin.js +1 -5
  93. package/dist/schema/plugin.js.map +1 -1
  94. package/dist/schema/role.d.ts +4 -4
  95. package/dist/schema/rolebinding.d.ts +4 -4
  96. package/dist/schema/secret.d.ts +70 -70
  97. package/dist/schema/variable.d.ts +1 -91
  98. package/dist/schema/variable.d.ts.map +1 -1
  99. package/dist/schema/variable.js +1 -105
  100. package/dist/schema/variable.js.map +1 -1
  101. package/dist/utils/fetch.js.map +1 -1
  102. package/dist/utils/text.js +4 -4
  103. package/dist/utils/text.js.map +1 -1
  104. package/package.json +3 -2
@@ -17,155 +17,42 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- buildVariableDefinitionSchema: function() {
25
- return buildVariableDefinitionSchema;
24
+ get buildVariableDefinitionSchema () {
25
+ return _spec.buildVariableDefinitionSchema;
26
26
  },
27
- buildVariableListSchema: function() {
28
- return buildVariableListSchema;
27
+ get buildVariableListSchema () {
28
+ return _spec.buildVariableListSchema;
29
29
  },
30
- buildVariableListSpecSchema: function() {
31
- return buildVariableListSpecSchema;
30
+ get buildVariableListSpecSchema () {
31
+ return _spec.buildVariableListSpecSchema;
32
32
  },
33
- buildVariableSpecSchema: function() {
34
- return buildVariableSpecSchema;
33
+ get buildVariableSpecSchema () {
34
+ return _spec.buildVariableSpecSchema;
35
35
  },
36
- globalVariableSchema: function() {
37
- return globalVariableSchema;
36
+ get variableDefinitionSchema () {
37
+ return _spec.variableDefinitionSchema;
38
38
  },
39
- variableDefinitionSchema: function() {
40
- return variableDefinitionSchema;
39
+ get variableDisplaySchema () {
40
+ return _spec.variableDisplaySchema;
41
41
  },
42
- variableDisplaySchema: function() {
43
- return variableDisplaySchema;
42
+ get variableListSchema () {
43
+ return _spec.variableListSchema;
44
44
  },
45
- variableListSchema: function() {
46
- return variableListSchema;
45
+ get variableListSpecSchema () {
46
+ return _spec.variableListSpecSchema;
47
47
  },
48
- variableListSpecSchema: function() {
49
- return variableListSpecSchema;
48
+ get variableSpecSchema () {
49
+ return _spec.variableSpecSchema;
50
50
  },
51
- variableSchema: function() {
52
- return variableSchema;
51
+ get variableTextSchema () {
52
+ return _spec.variableTextSchema;
53
53
  },
54
- variableSpecSchema: function() {
55
- return variableSpecSchema;
56
- },
57
- variableTextSchema: function() {
58
- return variableTextSchema;
59
- },
60
- variableTextSpecSchema: function() {
61
- return variableTextSpecSchema;
62
- },
63
- variablesSchema: function() {
64
- return variablesSchema;
54
+ get variableTextSpecSchema () {
55
+ return _spec.variableTextSpecSchema;
65
56
  }
66
57
  });
67
- const _zod = require("zod");
68
- const _metadata = require("./metadata");
69
- const _plugin = require("./plugin");
70
- const variableDisplaySchema = _zod.z.object({
71
- name: _zod.z.string().optional(),
72
- description: _zod.z.string().optional(),
73
- hidden: _zod.z.boolean().optional()
74
- });
75
- const variableListSpecSchema = _zod.z.object({
76
- name: _zod.z.string().min(1),
77
- display: variableDisplaySchema.optional(),
78
- defaultValue: _zod.z.string().or(_zod.z.array(_zod.z.string())).optional(),
79
- allowAllValue: _zod.z.boolean(),
80
- allowMultiple: _zod.z.boolean(),
81
- customAllValue: _zod.z.string().optional(),
82
- capturingRegexp: _zod.z.string().optional(),
83
- sort: _zod.z.enum([
84
- 'none',
85
- 'alphabetical-asc',
86
- 'alphabetical-desc',
87
- 'numerical-asc',
88
- 'numerical-desc',
89
- 'alphabetical-ci-asc',
90
- 'alphabetical-ci-desc'
91
- ]).optional(),
92
- plugin: _plugin.pluginSchema
93
- });
94
- function buildVariableListSpecSchema(pluginSchema) {
95
- return _zod.z.object({
96
- name: _zod.z.string().min(1),
97
- display: variableDisplaySchema.optional(),
98
- defaultValue: _zod.z.string().or(_zod.z.array(_zod.z.string())).optional(),
99
- allowAllValue: _zod.z.boolean(),
100
- allowMultiple: _zod.z.boolean(),
101
- customAllValue: _zod.z.string().optional(),
102
- capturingRegexp: _zod.z.string().optional(),
103
- sort: _zod.z.enum([
104
- 'none',
105
- 'alphabetical-asc',
106
- 'alphabetical-desc',
107
- 'numerical-asc',
108
- 'numerical-desc',
109
- 'alphabetical-ci-asc',
110
- 'alphabetical-ci-desc'
111
- ]).optional(),
112
- plugin: pluginSchema
113
- });
114
- }
115
- const variableListSchema = _zod.z.object({
116
- kind: _zod.z.literal('ListVariable'),
117
- spec: variableListSpecSchema
118
- });
119
- function buildVariableListSchema(pluginSchema) {
120
- return _zod.z.object({
121
- kind: _zod.z.literal('ListVariable'),
122
- spec: buildVariableListSpecSchema(pluginSchema)
123
- });
124
- }
125
- const variableTextSpecSchema = _zod.z.object({
126
- name: _zod.z.string().min(1),
127
- display: variableDisplaySchema.optional(),
128
- value: _zod.z.string(),
129
- constant: _zod.z.boolean().optional()
130
- });
131
- const variableTextSchema = _zod.z.object({
132
- kind: _zod.z.literal('TextVariable'),
133
- spec: variableTextSpecSchema
134
- });
135
- const variableSpecSchema = _zod.z.discriminatedUnion('kind', [
136
- variableTextSchema,
137
- variableListSchema
138
- ]);
139
- function buildVariableSpecSchema(pluginSchema) {
140
- return _zod.z.union([
141
- variableTextSchema,
142
- buildVariableListSchema(pluginSchema)
143
- ]);
144
- }
145
- const variableSchema = _zod.z.object({
146
- kind: _zod.z.literal('Variable'),
147
- metadata: _metadata.projectMetadataSchema,
148
- spec: variableSpecSchema
149
- });
150
- const globalVariableSchema = _zod.z.object({
151
- kind: _zod.z.literal('GlobalVariable'),
152
- metadata: _metadata.projectMetadataSchema,
153
- spec: variableSpecSchema
154
- });
155
- const variablesSchema = _zod.z.discriminatedUnion('kind', [
156
- variableSchema,
157
- globalVariableSchema
158
- ]);
159
- const variableDefinitionSchema = variableSpecSchema;
160
- function buildVariableDefinitionSchema(pluginSchema) {
161
- return _zod.z.discriminatedUnion('kind', [
162
- _zod.z.object({
163
- kind: _zod.z.literal('ListVariable'),
164
- spec: buildVariableListSpecSchema(pluginSchema)
165
- }),
166
- _zod.z.object({
167
- kind: _zod.z.literal('TextVariable'),
168
- spec: variableTextSpecSchema
169
- })
170
- ]);
171
- }
58
+ const _spec = require("@perses-dev/spec");
@@ -19,20 +19,20 @@ Object.defineProperty(exports, "__esModule", {
19
19
  function _export(target, all) {
20
20
  for(var name in all)Object.defineProperty(target, name, {
21
21
  enumerable: true,
22
- get: all[name]
22
+ get: Object.getOwnPropertyDescriptor(all, name).get
23
23
  });
24
24
  }
25
25
  _export(exports, {
26
- FetchError: function() {
26
+ get FetchError () {
27
27
  return FetchError;
28
28
  },
29
- UserFriendlyError: function() {
29
+ get UserFriendlyError () {
30
30
  return UserFriendlyError;
31
31
  },
32
- fetch: function() {
32
+ get fetch () {
33
33
  return fetch;
34
34
  },
35
- fetchJson: function() {
35
+ get fetchJson () {
36
36
  return fetchJson;
37
37
  }
38
38
  });
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- createPanelRef: function() {
24
+ get createPanelRef () {
25
25
  return createPanelRef;
26
26
  },
27
- getPanelKeyFromRef: function() {
27
+ get getPanelKeyFromRef () {
28
28
  return getPanelKeyFromRef;
29
29
  },
30
- resolvePanelRef: function() {
30
+ get resolvePanelRef () {
31
31
  return resolvePanelRef;
32
32
  }
33
33
  });
@@ -19,14 +19,14 @@ Object.defineProperty(exports, "__esModule", {
19
19
  function _export(target, all) {
20
20
  for(var name in all)Object.defineProperty(target, name, {
21
21
  enumerable: true,
22
- get: all[name]
22
+ get: Object.getOwnPropertyDescriptor(all, name).get
23
23
  });
24
24
  }
25
25
  _export(exports, {
26
- createRegexFromString: function() {
26
+ get createRegexFromString () {
27
27
  return createRegexFromString;
28
28
  },
29
- isRegexPattern: function() {
29
+ get isRegexPattern () {
30
30
  return isRegexPattern;
31
31
  }
32
32
  });
@@ -17,35 +17,35 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- getResourceDisplayName: function() {
24
+ get getResourceDisplayName () {
25
25
  return getResourceDisplayName;
26
26
  },
27
- getResourceExtendedDisplayName: function() {
27
+ get getResourceExtendedDisplayName () {
28
28
  return getResourceExtendedDisplayName;
29
29
  }
30
30
  });
31
31
  function getResourceDisplayName(resource) {
32
32
  // Variables
33
- if (resource.spec.spec?.display?.name) {
33
+ if (resource.spec?.spec?.display?.name) {
34
34
  return resource.spec.spec.display.name;
35
35
  }
36
36
  // Other resources with display
37
- if (resource.spec.display?.name) {
37
+ if (resource.spec?.display?.name) {
38
38
  return resource.spec.display.name;
39
39
  }
40
40
  return resource.metadata.name;
41
41
  }
42
42
  function getResourceExtendedDisplayName(resource) {
43
43
  // Variables
44
- if (resource.spec.spec?.display?.name) {
44
+ if (resource.spec?.spec?.display?.name) {
45
45
  return `${resource.spec.spec.display.name} (ID: ${resource.metadata.name})`;
46
46
  }
47
47
  // Other resources with display
48
- if (resource.spec.display?.name) {
48
+ if (resource.spec?.display?.name) {
49
49
  return `${resource.spec.display.name} (ID: ${resource.metadata.name})`;
50
50
  }
51
51
  return resource.metadata.name;
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- MIN_STEP_INTERVAL_MS: function() {
24
+ get MIN_STEP_INTERVAL_MS () {
25
25
  return MIN_STEP_INTERVAL_MS;
26
26
  },
27
- getCommonTimeScale: function() {
27
+ get getCommonTimeScale () {
28
28
  return getCommonTimeScale;
29
29
  },
30
- getTimeSeriesValues: function() {
30
+ get getTimeSeriesValues () {
31
31
  return getTimeSeriesValues;
32
32
  }
33
33
  });
@@ -17,23 +17,23 @@ Object.defineProperty(exports, "__esModule", {
17
17
  function _export(target, all) {
18
18
  for(var name in all)Object.defineProperty(target, name, {
19
19
  enumerable: true,
20
- get: all[name]
20
+ get: Object.getOwnPropertyDescriptor(all, name).get
21
21
  });
22
22
  }
23
23
  _export(exports, {
24
- applyJoinTransform: function() {
24
+ get applyJoinTransform () {
25
25
  return applyJoinTransform;
26
26
  },
27
- applyMergeColumnsTransform: function() {
27
+ get applyMergeColumnsTransform () {
28
28
  return applyMergeColumnsTransform;
29
29
  },
30
- applyMergeIndexedColumnsTransform: function() {
30
+ get applyMergeIndexedColumnsTransform () {
31
31
  return applyMergeIndexedColumnsTransform;
32
32
  },
33
- applyMergeSeriesTransform: function() {
33
+ get applyMergeSeriesTransform () {
34
34
  return applyMergeSeriesTransform;
35
35
  },
36
- transformData: function() {
36
+ get transformData () {
37
37
  return transformData;
38
38
  }
39
39
  });
@@ -1,28 +1,9 @@
1
- import { DatasourceSpec } from './datasource';
2
- import { LayoutDefinition } from './layout';
3
- import { Link, PanelDefinition } from './panels';
1
+ import { DashboardSpec, DashboardSelector } from '@perses-dev/spec';
4
2
  import { ProjectMetadata } from './resource';
5
- import { DurationString } from './time';
6
- import { VariableDefinition } from './variables';
7
- import { Display } from './display';
3
+ export type { DashboardSelector, DashboardSpec };
8
4
  export interface DashboardResource {
9
5
  kind: 'Dashboard';
10
6
  metadata: ProjectMetadata;
11
7
  spec: DashboardSpec;
12
8
  }
13
- export interface DashboardSpec {
14
- display?: Display;
15
- datasources?: Record<string, DatasourceSpec>;
16
- duration: DurationString;
17
- refreshInterval?: DurationString;
18
- variables: VariableDefinition[];
19
- layouts: LayoutDefinition[];
20
- panels: Record<string, PanelDefinition>;
21
- links?: Link[];
22
- }
23
- export interface DashboardSelector {
24
- project: string;
25
- dashboard: string;
26
- tags?: string[];
27
- }
28
9
  //# sourceMappingURL=dashboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/model/dashboard.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC7C,QAAQ,EAAE,cAAc,CAAC;IACzB,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACxC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/model/dashboard.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;CACrB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/dashboard.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceSpec } from './datasource';\nimport { LayoutDefinition } from './layout';\nimport { Link, PanelDefinition } from './panels';\nimport { ProjectMetadata } from './resource';\nimport { DurationString } from './time';\nimport { VariableDefinition } from './variables';\nimport { Display } from './display';\n\nexport interface DashboardResource {\n kind: 'Dashboard';\n metadata: ProjectMetadata;\n spec: DashboardSpec;\n}\n\nexport interface DashboardSpec {\n display?: Display;\n datasources?: Record<string, DatasourceSpec>;\n duration: DurationString;\n refreshInterval?: DurationString;\n variables: VariableDefinition[];\n layouts: LayoutDefinition[];\n panels: Record<string, PanelDefinition>;\n links?: Link[];\n}\n\nexport interface DashboardSelector {\n project: string;\n dashboard: string;\n tags?: string[];\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AA2BjC,WAIC"}
1
+ {"version":3,"sources":["../../src/model/dashboard.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DashboardSpec, DashboardSelector } from '@perses-dev/spec';\nimport { ProjectMetadata } from './resource';\n\nexport type { DashboardSelector, DashboardSpec };\n\nexport interface DashboardResource {\n kind: 'Dashboard';\n metadata: ProjectMetadata;\n spec: DashboardSpec;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAOjC,WAIC"}
@@ -1,11 +1,6 @@
1
- import { Definition, UnknownSpec } from './definitions';
1
+ import { DatasourceSpec, DatasourceSelector } from '@perses-dev/spec';
2
2
  import { Metadata, ProjectMetadata } from './resource';
3
- import { Display } from './display';
4
- export interface DatasourceSpec<PluginSpec = UnknownSpec> {
5
- display?: Display;
6
- default: boolean;
7
- plugin: Definition<PluginSpec>;
8
- }
3
+ export type { DatasourceSelector, DatasourceSpec };
9
4
  /**
10
5
  * A Datasource that's available across all projects.
11
6
  */
@@ -22,21 +17,6 @@ export interface DatasourceResource {
22
17
  metadata: ProjectMetadata;
23
18
  spec: DatasourceSpec;
24
19
  }
25
- export type Datasource = DatasourceResource | GlobalDatasourceResource;
26
- /**
27
- * A selector for pointing at a specific Datasource.
28
- */
29
- export interface DatasourceSelector {
30
- /**
31
- * Kind of the datasource.
32
- */
33
- kind: string;
34
- /**
35
- * Name of the datasource.
36
- * If omitted, it's assumed that you target the default datasource for the specified kind (and group, if set)
37
- */
38
- name?: string;
39
- }
40
20
  /**
41
21
  * An intermediary type to regroup the name and the spec of a datasource.
42
22
  */
@@ -44,4 +24,5 @@ export interface DatasourceDefinition {
44
24
  name: string;
45
25
  spec: DatasourceSpec;
46
26
  }
27
+ export type Datasource = DatasourceResource | GlobalDatasourceResource;
47
28
  //# sourceMappingURL=datasource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../src/model/datasource.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,WAAW,cAAc,CAAC,UAAU,GAAG,WAAW;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,wBAAwB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;CACtB"}
1
+ {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../src/model/datasource.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,wBAAwB,CAAC"}
@@ -10,8 +10,6 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- /**
14
- * An intermediary type to regroup the name and the spec of a datasource.
15
- */ export { };
13
+ export { };
16
14
 
17
15
  //# sourceMappingURL=datasource.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/datasource.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { Definition, UnknownSpec } from './definitions';\nimport { Metadata, ProjectMetadata } from './resource';\nimport { Display } from './display';\n\nexport interface DatasourceSpec<PluginSpec = UnknownSpec> {\n display?: Display;\n default: boolean;\n plugin: Definition<PluginSpec>;\n}\n\n/**\n * A Datasource that's available across all projects.\n */\nexport interface GlobalDatasourceResource {\n kind: 'GlobalDatasource';\n metadata: Metadata;\n spec: DatasourceSpec;\n}\n\n/**\n * A Datasource resource, that belongs to a project.\n */\nexport interface DatasourceResource {\n kind: 'Datasource';\n metadata: ProjectMetadata;\n spec: DatasourceSpec;\n}\n\nexport type Datasource = DatasourceResource | GlobalDatasourceResource;\n\n/**\n * A selector for pointing at a specific Datasource.\n */\nexport interface DatasourceSelector {\n /**\n * Kind of the datasource.\n */\n kind: string;\n\n /**\n * Name of the datasource.\n * If omitted, it's assumed that you target the default datasource for the specified kind (and group, if set)\n */\n name?: string;\n}\n\n/**\n * An intermediary type to regroup the name and the spec of a datasource.\n */\nexport interface DatasourceDefinition {\n name: string;\n spec: DatasourceSpec;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAgDjC;;CAEC,GACD,WAGC"}
1
+ {"version":3,"sources":["../../src/model/datasource.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { DatasourceSpec, DatasourceSelector } from '@perses-dev/spec';\nimport { Metadata, ProjectMetadata } from './resource';\nexport type { DatasourceSelector, DatasourceSpec };\n\n/**\n * A Datasource that's available across all projects.\n */\nexport interface GlobalDatasourceResource {\n kind: 'GlobalDatasource';\n metadata: Metadata;\n spec: DatasourceSpec;\n}\n\n/**\n * A Datasource resource, that belongs to a project.\n */\nexport interface DatasourceResource {\n kind: 'Datasource';\n metadata: ProjectMetadata;\n spec: DatasourceSpec;\n}\n\n/**\n * An intermediary type to regroup the name and the spec of a datasource.\n */\nexport interface DatasourceDefinition {\n name: string;\n spec: DatasourceSpec;\n}\n\nexport type Datasource = DatasourceResource | GlobalDatasourceResource;\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAgCjC,WAAuE"}
@@ -1,13 +1,2 @@
1
- /**
2
- * Base type for definitions in JSON config resources.
3
- */
4
- export interface Definition<Spec> {
5
- kind: string;
6
- spec: Spec;
7
- }
8
- /**
9
- * Type to represent specs at runtime in framework code where we don't know the spec's real type, probably because it's
10
- * part of a plugin.
11
- */
12
- export type UnknownSpec = Record<string, unknown>;
1
+ export type { Definition, UnknownSpec } from '@perses-dev/spec';
13
2
  //# sourceMappingURL=definitions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/model/definitions.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,IAAI;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/model/definitions.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -10,11 +10,6 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- /**
14
- * Base type for definitions in JSON config resources.
15
- */ /**
16
- * Type to represent specs at runtime in framework code where we don't know the spec's real type, probably because it's
17
- * part of a plugin.
18
- */ export { };
13
+ export { };
19
14
 
20
15
  //# sourceMappingURL=definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/definitions.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * Base type for definitions in JSON config resources.\n */\nexport interface Definition<Spec> {\n kind: string;\n spec: Spec;\n}\n\n/**\n * Type to represent specs at runtime in framework code where we don't know the spec's real type, probably because it's\n * part of a plugin.\n */\nexport type UnknownSpec = Record<string, unknown>;\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC;;CAEC,GAMD;;;CAGC,GACD,WAAkD"}
1
+ {"version":3,"sources":["../../src/model/definitions.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport type { Definition, UnknownSpec } from '@perses-dev/spec';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,WAAgE"}
@@ -1,5 +1,2 @@
1
- export interface Display {
2
- name?: string;
3
- description?: string;
4
- }
1
+ export type { Display } from '@perses-dev/spec';
5
2
  //# sourceMappingURL=display.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/model/display.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/model/display.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/display.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport interface Display {\n name?: string;\n description?: string;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,WAGC"}
1
+ {"version":3,"sources":["../../src/model/display.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport type { Display } from '@perses-dev/spec';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,WAAgD"}
@@ -0,0 +1,19 @@
1
+ import { ProjectMetadata } from './resource';
2
+ export interface FolderDisplay {
3
+ name?: string;
4
+ }
5
+ export interface FolderSpec {
6
+ display?: FolderDisplay;
7
+ items?: FolderItem[];
8
+ }
9
+ export interface FolderItem {
10
+ kind: 'Folder' | 'Dashboard';
11
+ name: string;
12
+ items?: FolderItem[];
13
+ }
14
+ export interface FolderResource {
15
+ kind: 'Folder';
16
+ metadata: ProjectMetadata;
17
+ spec: FolderSpec;
18
+ }
19
+ //# sourceMappingURL=folder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../src/model/folder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -0,0 +1,15 @@
1
+ // Copyright The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export { };
14
+
15
+ //# sourceMappingURL=folder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/model/folder.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ProjectMetadata } from './resource';\n\nexport interface FolderDisplay {\n name?: string;\n}\n\nexport interface FolderSpec {\n display?: FolderDisplay;\n items?: FolderItem[];\n}\n\nexport interface FolderItem {\n kind: 'Folder' | 'Dashboard';\n name: string;\n items?: FolderItem[];\n}\n\nexport interface FolderResource {\n kind: 'Folder';\n metadata: ProjectMetadata;\n spec: FolderSpec;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAmBjC,WAIC"}
@@ -6,6 +6,7 @@ export * from './definitions';
6
6
  export * from './display';
7
7
  export * from './ephemeraldashboard';
8
8
  export * from './external-variable';
9
+ export * from './folder';
9
10
  export * from './http';
10
11
  export * from './http-proxy';
11
12
  export * from './kind';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -18,6 +18,7 @@ export * from './definitions';
18
18
  export * from './display';
19
19
  export * from './ephemeraldashboard';
20
20
  export * from './external-variable';
21
+ export * from './folder';
21
22
  export * from './http';
22
23
  export * from './http-proxy';
23
24
  export * from './kind';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/model/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './calculations';\nexport * from './dashboard';\nexport * from './datasource';\nexport * from './datasource-api';\nexport * from './definitions';\nexport * from './display';\nexport * from './ephemeraldashboard';\nexport * from './external-variable';\nexport * from './http';\nexport * from './http-proxy';\nexport * from './kind';\nexport * from './layout';\nexport * from './legend';\nexport * from './notice';\nexport * from './otlp';\nexport * from './panel-group';\nexport * from './panels';\nexport * from './project';\nexport * from './query';\nexport * from './resource';\nexport * from './roles';\nexport * from './rolebindings';\nexport * from './secrets';\nexport * from './thresholds';\nexport * from './time';\nexport * from './time-series-data';\nexport * from './time-series-queries';\nexport * from './trace-data';\nexport * from './profile-data';\nexport * from './log-data';\nexport * from './transforms';\nexport * from './units';\nexport * from './user';\nexport * from './variables';\nexport * from './value-mapping';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,YAAY;AAC1B,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AACpC,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,qBAAqB;AACnC,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,kBAAkB"}
1
+ {"version":3,"sources":["../../src/model/index.ts"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './calculations';\nexport * from './dashboard';\nexport * from './datasource';\nexport * from './datasource-api';\nexport * from './definitions';\nexport * from './display';\nexport * from './ephemeraldashboard';\nexport * from './external-variable';\nexport * from './folder';\nexport * from './http';\nexport * from './http-proxy';\nexport * from './kind';\nexport * from './layout';\nexport * from './legend';\nexport * from './notice';\nexport * from './otlp';\nexport * from './panel-group';\nexport * from './panels';\nexport * from './project';\nexport * from './query';\nexport * from './resource';\nexport * from './roles';\nexport * from './rolebindings';\nexport * from './secrets';\nexport * from './thresholds';\nexport * from './time';\nexport * from './time-series-data';\nexport * from './time-series-queries';\nexport * from './trace-data';\nexport * from './profile-data';\nexport * from './log-data';\nexport * from './transforms';\nexport * from './units';\nexport * from './user';\nexport * from './variables';\nexport * from './value-mapping';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,gBAAgB;AAC9B,cAAc,YAAY;AAC1B,cAAc,uBAAuB;AACrC,cAAc,sBAAsB;AACpC,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,qBAAqB;AACnC,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,kBAAkB"}
@@ -3,7 +3,7 @@ import { Display } from './display';
3
3
  export interface ProjectResource {
4
4
  kind: 'Project';
5
5
  metadata: Metadata;
6
- spec: ProjectSpec;
6
+ spec?: ProjectSpec;
7
7
  }
8
8
  export interface ProjectSpec {
9
9
  display?: Display;