@gravitee/ui-policy-studio-angular 4.13.0 → 5.0.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 (118) hide show
  1. package/{esm2015/gravitee-ui-policy-studio-angular.js → esm2020/gravitee-ui-policy-studio-angular.mjs} +0 -0
  2. package/esm2020/lib/gio-policy-studio.component.mjs +181 -0
  3. package/{esm2015/lib/gio-policy-studio.module.js → esm2020/lib/gio-policy-studio.module.mjs} +4 -4
  4. package/esm2020/lib/models/flow/ConfigurationSchema.fixture.mjs +25 -0
  5. package/{esm2015/lib/models/flow/ConfigurationSchema.js → esm2020/lib/models/flow/ConfigurationSchema.mjs} +0 -0
  6. package/esm2020/lib/models/flow/OrganizationFlowConfiguration.fixture.mjs +10 -0
  7. package/{esm2015/lib/models/flow/OrganizationFlowConfiguration.js → esm2020/lib/models/flow/OrganizationFlowConfiguration.mjs} +0 -0
  8. package/{esm2015/lib/models/flow/PlatformFlowSchema.fixture.js → esm2020/lib/models/flow/PlatformFlowSchema.fixture.mjs} +2 -2
  9. package/{esm2015/lib/models/flow/PlatformFlowSchema.js → esm2020/lib/models/flow/PlatformFlowSchema.mjs} +0 -0
  10. package/{esm2015/lib/models/flow/index-testing.js → esm2020/lib/models/flow/index-testing.mjs} +0 -0
  11. package/{esm2015/lib/models/flow/index.js → esm2020/lib/models/flow/index.mjs} +0 -0
  12. package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +0 -0
  13. package/{esm2015/lib/models/json.js → esm2020/lib/models/json.mjs} +0 -0
  14. package/esm2020/lib/models/policy/PolicyDocumentation.fixture.mjs +218 -0
  15. package/{esm2015/lib/models/policy/PolicyDocumentation.js → esm2020/lib/models/policy/PolicyDocumentation.mjs} +0 -0
  16. package/esm2020/lib/models/policy/PolicyListItem.fixture.mjs +18 -0
  17. package/{esm2015/lib/models/policy/PolicyListItem.js → esm2020/lib/models/policy/PolicyListItem.mjs} +0 -0
  18. package/esm2020/lib/models/policy/PolicySchema.fixture.mjs +5 -0
  19. package/{esm2015/lib/models/policy/PolicySchema.js → esm2020/lib/models/policy/PolicySchema.mjs} +0 -0
  20. package/{esm2015/lib/models/policy/index-testing.js → esm2020/lib/models/policy/index-testing.mjs} +0 -0
  21. package/{esm2015/lib/models/policy/index.js → esm2020/lib/models/policy/index.mjs} +0 -0
  22. package/esm2020/lib/models/resource/ResourceDocumentation.fixture.mjs +70 -0
  23. package/{esm2015/lib/models/resource/ResourceDocumentation.js → esm2020/lib/models/resource/ResourceDocumentation.mjs} +0 -0
  24. package/esm2020/lib/models/resource/ResourceListItem.fixture.mjs +15 -0
  25. package/{esm2015/lib/models/resource/ResourceListItem.js → esm2020/lib/models/resource/ResourceListItem.mjs} +0 -0
  26. package/{esm2015/lib/models/resource/index-testing.js → esm2020/lib/models/resource/index-testing.mjs} +0 -0
  27. package/{esm2015/lib/models/resource/index.js → esm2020/lib/models/resource/index.mjs} +0 -0
  28. package/{esm2015/testing/lib/models/spel/Grammar.fixture.js → esm2020/lib/models/spel/Grammar.fixture.mjs} +5 -2
  29. package/{esm2015/lib/models/spel/Grammar.js → esm2020/lib/models/spel/Grammar.mjs} +0 -0
  30. package/{esm2015/lib/models/spel/index-testing.js → esm2020/lib/models/spel/index-testing.mjs} +0 -0
  31. package/{esm2015/lib/models/spel/index.js → esm2020/lib/models/spel/index.mjs} +0 -0
  32. package/{esm2015/lib/services/flow.abstract.service.js → esm2020/lib/services/flow.abstract.service.mjs} +0 -0
  33. package/{esm2015/lib/services/flow.service.fixture.js → esm2020/lib/services/flow.service.fixture.mjs} +3 -3
  34. package/{esm2015/lib/services/index.js → esm2020/lib/services/index.mjs} +0 -0
  35. package/{esm2015/lib/services/policy.abstract.service.js → esm2020/lib/services/policy.abstract.service.mjs} +0 -0
  36. package/{esm2015/lib/services/policy.service.fixture.js → esm2020/lib/services/policy.service.fixture.mjs} +3 -3
  37. package/{esm2015/lib/services/resource.abstract.service.js → esm2020/lib/services/resource.abstract.service.mjs} +0 -0
  38. package/{esm2015/lib/services/resource.service.fixture.js → esm2020/lib/services/resource.service.fixture.mjs} +3 -3
  39. package/{esm2015/lib/services/spel.abstract.service.js → esm2020/lib/services/spel.abstract.service.mjs} +0 -0
  40. package/{esm2015/lib/services/spel.service.fixture.js → esm2020/lib/services/spel.service.fixture.mjs} +3 -3
  41. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  42. package/{esm2015/testing/gravitee-ui-policy-studio-angular-testing.js → esm2020/testing/gravitee-ui-policy-studio-angular-testing.mjs} +0 -0
  43. package/esm2020/testing/lib/models/flow/ConfigurationSchema.fixture.mjs +25 -0
  44. package/{esm2015/testing/lib/models/flow/ConfigurationSchema.js → esm2020/testing/lib/models/flow/ConfigurationSchema.mjs} +0 -0
  45. package/esm2020/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.mjs +10 -0
  46. package/{esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.js → esm2020/testing/lib/models/flow/OrganizationFlowConfiguration.mjs} +0 -0
  47. package/{esm2015/testing/lib/models/flow/PlatformFlowSchema.fixture.js → esm2020/testing/lib/models/flow/PlatformFlowSchema.fixture.mjs} +2 -2
  48. package/{esm2015/testing/lib/models/flow/PlatformFlowSchema.js → esm2020/testing/lib/models/flow/PlatformFlowSchema.mjs} +0 -0
  49. package/{esm2015/testing/lib/models/flow/index-testing.js → esm2020/testing/lib/models/flow/index-testing.mjs} +0 -0
  50. package/{esm2015/testing/lib/models/flow/index.js → esm2020/testing/lib/models/flow/index.mjs} +0 -0
  51. package/{esm2015/testing/lib/models/index-testing.js → esm2020/testing/lib/models/index-testing.mjs} +0 -0
  52. package/{esm2015/testing/lib/models/json.js → esm2020/testing/lib/models/json.mjs} +0 -0
  53. package/esm2020/testing/lib/models/policy/PolicyDocumentation.fixture.mjs +218 -0
  54. package/{esm2015/testing/lib/models/policy/PolicyDocumentation.js → esm2020/testing/lib/models/policy/PolicyDocumentation.mjs} +0 -0
  55. package/esm2020/testing/lib/models/policy/PolicyListItem.fixture.mjs +18 -0
  56. package/{esm2015/testing/lib/models/policy/PolicyListItem.js → esm2020/testing/lib/models/policy/PolicyListItem.mjs} +0 -0
  57. package/esm2020/testing/lib/models/policy/PolicySchema.fixture.mjs +5 -0
  58. package/{esm2015/testing/lib/models/policy/PolicySchema.js → esm2020/testing/lib/models/policy/PolicySchema.mjs} +0 -0
  59. package/{esm2015/testing/lib/models/policy/index-testing.js → esm2020/testing/lib/models/policy/index-testing.mjs} +0 -0
  60. package/{esm2015/testing/lib/models/policy/index.js → esm2020/testing/lib/models/policy/index.mjs} +0 -0
  61. package/esm2020/testing/lib/models/resource/ResourceDocumentation.fixture.mjs +70 -0
  62. package/{esm2015/testing/lib/models/resource/ResourceDocumentation.js → esm2020/testing/lib/models/resource/ResourceDocumentation.mjs} +0 -0
  63. package/esm2020/testing/lib/models/resource/ResourceListItem.fixture.mjs +15 -0
  64. package/{esm2015/testing/lib/models/resource/ResourceListItem.js → esm2020/testing/lib/models/resource/ResourceListItem.mjs} +0 -0
  65. package/{esm2015/testing/lib/models/resource/index-testing.js → esm2020/testing/lib/models/resource/index-testing.mjs} +0 -0
  66. package/{esm2015/testing/lib/models/resource/index.js → esm2020/testing/lib/models/resource/index.mjs} +0 -0
  67. package/{esm2015/lib/models/spel/Grammar.fixture.js → esm2020/testing/lib/models/spel/Grammar.fixture.mjs} +5 -2
  68. package/{esm2015/testing/lib/models/spel/Grammar.js → esm2020/testing/lib/models/spel/Grammar.mjs} +0 -0
  69. package/{esm2015/testing/lib/models/spel/index-testing.js → esm2020/testing/lib/models/spel/index-testing.mjs} +0 -0
  70. package/{esm2015/testing/lib/models/spel/index.js → esm2020/testing/lib/models/spel/index.mjs} +0 -0
  71. package/{esm2015/testing/lib/services/flow.abstract.service.js → esm2020/testing/lib/services/flow.abstract.service.mjs} +0 -0
  72. package/{esm2015/testing/lib/services/flow.service.fixture.js → esm2020/testing/lib/services/flow.service.fixture.mjs} +3 -3
  73. package/{esm2015/testing/lib/services/index-testing.js → esm2020/testing/lib/services/index-testing.mjs} +0 -0
  74. package/{esm2015/testing/lib/services/policy.abstract.service.js → esm2020/testing/lib/services/policy.abstract.service.mjs} +0 -0
  75. package/{esm2015/testing/lib/services/policy.service.fixture.js → esm2020/testing/lib/services/policy.service.fixture.mjs} +3 -3
  76. package/{esm2015/testing/lib/services/resource.abstract.service.js → esm2020/testing/lib/services/resource.abstract.service.mjs} +0 -0
  77. package/{esm2015/testing/lib/services/resource.service.fixture.js → esm2020/testing/lib/services/resource.service.fixture.mjs} +3 -3
  78. package/{esm2015/testing/lib/services/spel.abstract.service.js → esm2020/testing/lib/services/spel.abstract.service.mjs} +0 -0
  79. package/{esm2015/testing/lib/services/spel.service.fixture.js → esm2020/testing/lib/services/spel.service.fixture.mjs} +3 -3
  80. package/{esm2015/testing/public-testing-api.js → esm2020/testing/public-testing-api.mjs} +0 -0
  81. package/{esm2015/testing/testing/index.js → esm2020/testing/testing/index.mjs} +0 -0
  82. package/{esm2015 → esm2020}/testing/testing/stories-resources/apim-definition.json +0 -0
  83. package/{esm2015 → esm2020}/testing/testing/stories-resources/apim-flow.json +0 -0
  84. package/{esm2015 → esm2020}/testing/testing/stories-resources/apim-policies.json +0 -0
  85. package/{esm2015 → esm2020}/testing/testing/stories-resources/apim-property-providers.json +0 -0
  86. package/{esm2015 → esm2020}/testing/testing/stories-resources/apim-resource-types.json +0 -0
  87. package/{esm2015/testing/testing/stories-resources/index.js → esm2020/testing/testing/stories-resources/index.mjs} +0 -0
  88. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs +5675 -0
  89. package/fesm2015/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -0
  90. package/fesm2015/{gravitee-ui-policy-studio-angular.js → gravitee-ui-policy-studio-angular.mjs} +36 -70
  91. package/fesm2015/gravitee-ui-policy-studio-angular.mjs.map +1 -0
  92. package/{fesm2015/gravitee-ui-policy-studio-angular-testing.js → fesm2020/gravitee-ui-policy-studio-angular-testing.mjs} +34 -22
  93. package/fesm2020/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -0
  94. package/fesm2020/gravitee-ui-policy-studio-angular.mjs +4708 -0
  95. package/fesm2020/gravitee-ui-policy-studio-angular.mjs.map +1 -0
  96. package/package.json +34 -13
  97. package/testing/package.json +5 -5
  98. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js +0 -5729
  99. package/bundles/gravitee-ui-policy-studio-angular-testing.umd.js.map +0 -1
  100. package/bundles/gravitee-ui-policy-studio-angular.umd.js +0 -4711
  101. package/bundles/gravitee-ui-policy-studio-angular.umd.js.map +0 -1
  102. package/esm2015/lib/gio-policy-studio.component.js +0 -185
  103. package/esm2015/lib/models/flow/ConfigurationSchema.fixture.js +0 -25
  104. package/esm2015/lib/models/flow/OrganizationFlowConfiguration.fixture.js +0 -7
  105. package/esm2015/lib/models/policy/PolicyDocumentation.fixture.js +0 -218
  106. package/esm2015/lib/models/policy/PolicyListItem.fixture.js +0 -15
  107. package/esm2015/lib/models/policy/PolicySchema.fixture.js +0 -5
  108. package/esm2015/lib/models/resource/ResourceDocumentation.fixture.js +0 -70
  109. package/esm2015/lib/models/resource/ResourceListItem.fixture.js +0 -12
  110. package/esm2015/testing/lib/models/flow/ConfigurationSchema.fixture.js +0 -25
  111. package/esm2015/testing/lib/models/flow/OrganizationFlowConfiguration.fixture.js +0 -7
  112. package/esm2015/testing/lib/models/policy/PolicyDocumentation.fixture.js +0 -218
  113. package/esm2015/testing/lib/models/policy/PolicyListItem.fixture.js +0 -15
  114. package/esm2015/testing/lib/models/policy/PolicySchema.fixture.js +0 -5
  115. package/esm2015/testing/lib/models/resource/ResourceDocumentation.fixture.js +0 -70
  116. package/esm2015/testing/lib/models/resource/ResourceListItem.fixture.js +0 -12
  117. package/fesm2015/gravitee-ui-policy-studio-angular-testing.js.map +0 -1
  118. package/fesm2015/gravitee-ui-policy-studio-angular.js.map +0 -1
@@ -1,4711 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('lodash'), require('rxjs/operators'), require('rxjs'), require('@gravitee/ui-components/wc/gv-policy-studio'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('@gravitee/ui-policy-studio-angular', ['exports', '@angular/core', 'lodash', 'rxjs/operators', 'rxjs', '@gravitee/ui-components/wc/gv-policy-studio', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.gravitee = global.gravitee || {}, global.gravitee["ui-policy-studio-angular"] = {}), global.ng.core, global.lodash, global.rxjs.operators, global.rxjs, null, global.ng.common));
5
- })(this, (function (exports, i0, lodash, operators, rxjs, gvPolicyStudio, i1) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
-
28
- /*
29
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
30
- *
31
- * Licensed under the Apache License, Version 2.0 (the "License");
32
- * you may not use this file except in compliance with the License.
33
- * You may obtain a copy of the License at
34
- *
35
- * http://www.apache.org/licenses/LICENSE-2.0
36
- *
37
- * Unless required by applicable law or agreed to in writing, software
38
- * distributed under the License is distributed on an "AS IS" BASIS,
39
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40
- * See the License for the specific language governing permissions and
41
- * limitations under the License.
42
- */
43
-
44
- /*
45
- * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
46
- *
47
- * Licensed under the Apache License, Version 2.0 (the "License");
48
- * you may not use this file except in compliance with the License.
49
- * You may obtain a copy of the License at
50
- *
51
- * http://www.apache.org/licenses/LICENSE-2.0
52
- *
53
- * Unless required by applicable law or agreed to in writing, software
54
- * distributed under the License is distributed on an "AS IS" BASIS,
55
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
- * See the License for the specific language governing permissions and
57
- * limitations under the License.
58
- */
59
-
60
- /*
61
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
62
- *
63
- * Licensed under the Apache License, Version 2.0 (the "License");
64
- * you may not use this file except in compliance with the License.
65
- * You may obtain a copy of the License at
66
- *
67
- * http://www.apache.org/licenses/LICENSE-2.0
68
- *
69
- * Unless required by applicable law or agreed to in writing, software
70
- * distributed under the License is distributed on an "AS IS" BASIS,
71
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
- * See the License for the specific language governing permissions and
73
- * limitations under the License.
74
- */
75
-
76
- /*
77
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
78
- *
79
- * Licensed under the Apache License, Version 2.0 (the "License");
80
- * you may not use this file except in compliance with the License.
81
- * You may obtain a copy of the License at
82
- *
83
- * http://www.apache.org/licenses/LICENSE-2.0
84
- *
85
- * Unless required by applicable law or agreed to in writing, software
86
- * distributed under the License is distributed on an "AS IS" BASIS,
87
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
88
- * See the License for the specific language governing permissions and
89
- * limitations under the License.
90
- */
91
-
92
- /*
93
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
94
- *
95
- * Licensed under the Apache License, Version 2.0 (the "License");
96
- * you may not use this file except in compliance with the License.
97
- * You may obtain a copy of the License at
98
- *
99
- * http://www.apache.org/licenses/LICENSE-2.0
100
- *
101
- * Unless required by applicable law or agreed to in writing, software
102
- * distributed under the License is distributed on an "AS IS" BASIS,
103
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
- * See the License for the specific language governing permissions and
105
- * limitations under the License.
106
- */
107
-
108
- var FlowServiceAbstract = /** @class */ (function () {
109
- function FlowServiceAbstract() {
110
- }
111
- return FlowServiceAbstract;
112
- }());
113
-
114
- var PolicyServiceAbstract = /** @class */ (function () {
115
- function PolicyServiceAbstract() {
116
- }
117
- return PolicyServiceAbstract;
118
- }());
119
-
120
- var ResourceServiceAbstract = /** @class */ (function () {
121
- function ResourceServiceAbstract() {
122
- }
123
- return ResourceServiceAbstract;
124
- }());
125
-
126
- var SpelServiceAbstract = /** @class */ (function () {
127
- function SpelServiceAbstract() {
128
- }
129
- return SpelServiceAbstract;
130
- }());
131
-
132
- /*
133
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
134
- *
135
- * Licensed under the Apache License, Version 2.0 (the "License");
136
- * you may not use this file except in compliance with the License.
137
- * You may obtain a copy of the License at
138
- *
139
- * http://www.apache.org/licenses/LICENSE-2.0
140
- *
141
- * Unless required by applicable law or agreed to in writing, software
142
- * distributed under the License is distributed on an "AS IS" BASIS,
143
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
144
- * See the License for the specific language governing permissions and
145
- * limitations under the License.
146
- */
147
-
148
- /*! *****************************************************************************
149
- Copyright (c) Microsoft Corporation.
150
-
151
- Permission to use, copy, modify, and/or distribute this software for any
152
- purpose with or without fee is hereby granted.
153
-
154
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
155
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
156
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
157
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
158
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
159
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
160
- PERFORMANCE OF THIS SOFTWARE.
161
- ***************************************************************************** */
162
- /* global Reflect, Promise */
163
- var extendStatics = function (d, b) {
164
- extendStatics = Object.setPrototypeOf ||
165
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
166
- function (d, b) { for (var p in b)
167
- if (Object.prototype.hasOwnProperty.call(b, p))
168
- d[p] = b[p]; };
169
- return extendStatics(d, b);
170
- };
171
- function __extends(d, b) {
172
- if (typeof b !== "function" && b !== null)
173
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
174
- extendStatics(d, b);
175
- function __() { this.constructor = d; }
176
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
177
- }
178
- var __assign = function () {
179
- __assign = Object.assign || function __assign(t) {
180
- for (var s, i = 1, n = arguments.length; i < n; i++) {
181
- s = arguments[i];
182
- for (var p in s)
183
- if (Object.prototype.hasOwnProperty.call(s, p))
184
- t[p] = s[p];
185
- }
186
- return t;
187
- };
188
- return __assign.apply(this, arguments);
189
- };
190
- function __rest(s, e) {
191
- var t = {};
192
- for (var p in s)
193
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
194
- t[p] = s[p];
195
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
196
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
197
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
198
- t[p[i]] = s[p[i]];
199
- }
200
- return t;
201
- }
202
- function __decorate(decorators, target, key, desc) {
203
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
204
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
205
- r = Reflect.decorate(decorators, target, key, desc);
206
- else
207
- for (var i = decorators.length - 1; i >= 0; i--)
208
- if (d = decorators[i])
209
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
210
- return c > 3 && r && Object.defineProperty(target, key, r), r;
211
- }
212
- function __param(paramIndex, decorator) {
213
- return function (target, key) { decorator(target, key, paramIndex); };
214
- }
215
- function __metadata(metadataKey, metadataValue) {
216
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
217
- return Reflect.metadata(metadataKey, metadataValue);
218
- }
219
- function __awaiter(thisArg, _arguments, P, generator) {
220
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
221
- return new (P || (P = Promise))(function (resolve, reject) {
222
- function fulfilled(value) { try {
223
- step(generator.next(value));
224
- }
225
- catch (e) {
226
- reject(e);
227
- } }
228
- function rejected(value) { try {
229
- step(generator["throw"](value));
230
- }
231
- catch (e) {
232
- reject(e);
233
- } }
234
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
235
- step((generator = generator.apply(thisArg, _arguments || [])).next());
236
- });
237
- }
238
- function __generator(thisArg, body) {
239
- var _ = { label: 0, sent: function () { if (t[0] & 1)
240
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
241
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
242
- function verb(n) { return function (v) { return step([n, v]); }; }
243
- function step(op) {
244
- if (f)
245
- throw new TypeError("Generator is already executing.");
246
- while (_)
247
- try {
248
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
249
- return t;
250
- if (y = 0, t)
251
- op = [op[0] & 2, t.value];
252
- switch (op[0]) {
253
- case 0:
254
- case 1:
255
- t = op;
256
- break;
257
- case 4:
258
- _.label++;
259
- return { value: op[1], done: false };
260
- case 5:
261
- _.label++;
262
- y = op[1];
263
- op = [0];
264
- continue;
265
- case 7:
266
- op = _.ops.pop();
267
- _.trys.pop();
268
- continue;
269
- default:
270
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
271
- _ = 0;
272
- continue;
273
- }
274
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
275
- _.label = op[1];
276
- break;
277
- }
278
- if (op[0] === 6 && _.label < t[1]) {
279
- _.label = t[1];
280
- t = op;
281
- break;
282
- }
283
- if (t && _.label < t[2]) {
284
- _.label = t[2];
285
- _.ops.push(op);
286
- break;
287
- }
288
- if (t[2])
289
- _.ops.pop();
290
- _.trys.pop();
291
- continue;
292
- }
293
- op = body.call(thisArg, _);
294
- }
295
- catch (e) {
296
- op = [6, e];
297
- y = 0;
298
- }
299
- finally {
300
- f = t = 0;
301
- }
302
- if (op[0] & 5)
303
- throw op[1];
304
- return { value: op[0] ? op[1] : void 0, done: true };
305
- }
306
- }
307
- var __createBinding = Object.create ? (function (o, m, k, k2) {
308
- if (k2 === undefined)
309
- k2 = k;
310
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
311
- }) : (function (o, m, k, k2) {
312
- if (k2 === undefined)
313
- k2 = k;
314
- o[k2] = m[k];
315
- });
316
- function __exportStar(m, o) {
317
- for (var p in m)
318
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
319
- __createBinding(o, m, p);
320
- }
321
- function __values(o) {
322
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
323
- if (m)
324
- return m.call(o);
325
- if (o && typeof o.length === "number")
326
- return {
327
- next: function () {
328
- if (o && i >= o.length)
329
- o = void 0;
330
- return { value: o && o[i++], done: !o };
331
- }
332
- };
333
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
334
- }
335
- function __read(o, n) {
336
- var m = typeof Symbol === "function" && o[Symbol.iterator];
337
- if (!m)
338
- return o;
339
- var i = m.call(o), r, ar = [], e;
340
- try {
341
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
342
- ar.push(r.value);
343
- }
344
- catch (error) {
345
- e = { error: error };
346
- }
347
- finally {
348
- try {
349
- if (r && !r.done && (m = i["return"]))
350
- m.call(i);
351
- }
352
- finally {
353
- if (e)
354
- throw e.error;
355
- }
356
- }
357
- return ar;
358
- }
359
- /** @deprecated */
360
- function __spread() {
361
- for (var ar = [], i = 0; i < arguments.length; i++)
362
- ar = ar.concat(__read(arguments[i]));
363
- return ar;
364
- }
365
- /** @deprecated */
366
- function __spreadArrays() {
367
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
368
- s += arguments[i].length;
369
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
370
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
371
- r[k] = a[j];
372
- return r;
373
- }
374
- function __spreadArray(to, from, pack) {
375
- if (pack || arguments.length === 2)
376
- for (var i = 0, l = from.length, ar; i < l; i++) {
377
- if (ar || !(i in from)) {
378
- if (!ar)
379
- ar = Array.prototype.slice.call(from, 0, i);
380
- ar[i] = from[i];
381
- }
382
- }
383
- return to.concat(ar || Array.prototype.slice.call(from));
384
- }
385
- function __await(v) {
386
- return this instanceof __await ? (this.v = v, this) : new __await(v);
387
- }
388
- function __asyncGenerator(thisArg, _arguments, generator) {
389
- if (!Symbol.asyncIterator)
390
- throw new TypeError("Symbol.asyncIterator is not defined.");
391
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
392
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
393
- function verb(n) { if (g[n])
394
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
395
- function resume(n, v) { try {
396
- step(g[n](v));
397
- }
398
- catch (e) {
399
- settle(q[0][3], e);
400
- } }
401
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
402
- function fulfill(value) { resume("next", value); }
403
- function reject(value) { resume("throw", value); }
404
- function settle(f, v) { if (f(v), q.shift(), q.length)
405
- resume(q[0][0], q[0][1]); }
406
- }
407
- function __asyncDelegator(o) {
408
- var i, p;
409
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
410
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
411
- }
412
- function __asyncValues(o) {
413
- if (!Symbol.asyncIterator)
414
- throw new TypeError("Symbol.asyncIterator is not defined.");
415
- var m = o[Symbol.asyncIterator], i;
416
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
417
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
418
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
419
- }
420
- function __makeTemplateObject(cooked, raw) {
421
- if (Object.defineProperty) {
422
- Object.defineProperty(cooked, "raw", { value: raw });
423
- }
424
- else {
425
- cooked.raw = raw;
426
- }
427
- return cooked;
428
- }
429
- ;
430
- var __setModuleDefault = Object.create ? (function (o, v) {
431
- Object.defineProperty(o, "default", { enumerable: true, value: v });
432
- }) : function (o, v) {
433
- o["default"] = v;
434
- };
435
- function __importStar(mod) {
436
- if (mod && mod.__esModule)
437
- return mod;
438
- var result = {};
439
- if (mod != null)
440
- for (var k in mod)
441
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
442
- __createBinding(result, mod, k);
443
- __setModuleDefault(result, mod);
444
- return result;
445
- }
446
- function __importDefault(mod) {
447
- return (mod && mod.__esModule) ? mod : { default: mod };
448
- }
449
- function __classPrivateFieldGet(receiver, state, kind, f) {
450
- if (kind === "a" && !f)
451
- throw new TypeError("Private accessor was defined without a getter");
452
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
453
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
454
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
455
- }
456
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
457
- if (kind === "m")
458
- throw new TypeError("Private method is not writable");
459
- if (kind === "a" && !f)
460
- throw new TypeError("Private accessor was defined without a setter");
461
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
462
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
463
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
464
- }
465
-
466
- var GioPolicyStudioComponent = /** @class */ (function () {
467
- function GioPolicyStudioComponent(location, flowService, policyService, resourceService, spelService) {
468
- this.location = location;
469
- this.flowService = flowService;
470
- this.policyService = policyService;
471
- this.resourceService = resourceService;
472
- this.spelService = spelService;
473
- this.hasPlans = false;
474
- this.services = {};
475
- this.dynamicPropertySchema = {};
476
- this.configurationInformation = 'By default, the selection of a flow is based on the operator defined in the flow itself. This operator allows either to select a flow when the path matches exactly, or when the start of the path matches. The "Best match" option allows you to select the flow from the path that is closest.';
477
- this.hideTab = false;
478
- this.save = new i0.EventEmitter();
479
- this.debug = new i0.EventEmitter();
480
- this.unknownPolicyCategory = 'others';
481
- this.policyCategoriesOrder = ['security', 'performance', 'transformation', this.unknownPolicyCategory];
482
- }
483
- Object.defineProperty(GioPolicyStudioComponent.prototype, "policies", {
484
- get: function () {
485
- return this._policies;
486
- },
487
- set: function (policies) {
488
- var _this = this;
489
- this._policies = lodash.chain(policies)
490
- .map(function (policy) { return (!lodash.isNil(policy.category) ? policy : Object.assign(Object.assign({}, policy), { category: _this.unknownPolicyCategory })); })
491
- // First sort by category (based on category order) and then by name
492
- .sortBy([function (policy) { var _a; return _this.policyCategoriesOrder.indexOf((_a = policy.category) !== null && _a !== void 0 ? _a : ''); }, function (policy) { return policy.name; }])
493
- .value();
494
- },
495
- enumerable: false,
496
- configurable: true
497
- });
498
- GioPolicyStudioComponent.prototype.ngOnInit = function () {
499
- var _this = this;
500
- this.flowService
501
- .getConfigurationSchemaForm()
502
- .pipe(operators.tap(function (configurationSchema) {
503
- _this.configurationSchema = configurationSchema;
504
- }))
505
- .subscribe();
506
- var _b = this.parseUrl(), tabId = _b.tabId, flowsIds = _b.flowsIds;
507
- if (!this.hideTab) {
508
- this.tabId = tabId;
509
- }
510
- this.selectedFlowsIds = JSON.stringify(flowsIds);
511
- };
512
- GioPolicyStudioComponent.prototype.onTabChanged = function (tabId) {
513
- this.updateUrl(Object.assign(Object.assign({}, this.parseUrl()), { tabId: tabId }));
514
- };
515
- GioPolicyStudioComponent.prototype.onFlowSelectionChanged = function (_b) {
516
- var flows = _b.flows;
517
- this.updateUrl(Object.assign(Object.assign({}, this.parseUrl()), { flowsIds: flows }));
518
- };
519
- GioPolicyStudioComponent.prototype.fetchPolicyDocumentation = function (_b) {
520
- var _this = this;
521
- var policy = _b.policy;
522
- this.policyService
523
- .getDocumentation(policy.id)
524
- .pipe(operators.tap(function (documentation) { return (_this.policyDocumentation = { id: policy.id, image: policy.icon, content: documentation }); }))
525
- .subscribe();
526
- };
527
- GioPolicyStudioComponent.prototype.fetchResourceDocumentation = function (_b) {
528
- var resourceType = _b.resourceType, target = _b.target;
529
- this.resourceService
530
- .getDocumentation(resourceType.id)
531
- .pipe(operators.tap(function (documentation) { return (target.documentation = { image: resourceType.icon, content: documentation }); }), operators.catchError(function () {
532
- target.documentation = null;
533
- return rxjs.EMPTY;
534
- }))
535
- .subscribe();
536
- };
537
- GioPolicyStudioComponent.prototype.fetchSpelGrammar = function (_b) {
538
- var currentTarget = _b.currentTarget;
539
- this.spelService
540
- .getGrammar()
541
- .pipe(operators.tap(function (grammar) { return (currentTarget.grammar = grammar); }))
542
- .subscribe();
543
- };
544
- GioPolicyStudioComponent.prototype.parseUrl = function () {
545
- // TODO: Improve this with Angular Router
546
- // Hack to add the tab as Fragment part of the URL
547
- var _b = __read(this.location.path(true).split(/#(\w*)$/), 2), path = _b[0], tabId = _b[1];
548
- var _c = __read(path.split('flows')), basePath = _c[0], flowsIds = _c.slice(1);
549
- var cleanedPath = basePath.replace('?', '');
550
- var cleanedFlows = (flowsIds !== null && flowsIds !== void 0 ? flowsIds : []).map(function (flow) { return flow.replace('=', ''); });
551
- return {
552
- path: cleanedPath,
553
- tabId: tabId !== null && tabId !== void 0 ? tabId : '',
554
- flowsIds: cleanedFlows,
555
- };
556
- };
557
- GioPolicyStudioComponent.prototype.updateUrl = function (_b) {
558
- var path = _b.path, tabId = _b.tabId, flowsIds = _b.flowsIds;
559
- // TODO: Improve this with Angular Router
560
- // Hack to add the tab as Fragment part of the URL
561
- var flowsQueryParams = (flowsIds !== null && flowsIds !== void 0 ? flowsIds : []).map(function (value) { return "flows=" + value; }).join('&');
562
- var queryParams = flowsQueryParams.length > 0 ? "?" + flowsQueryParams : '';
563
- this.location.go("" + path + queryParams + "#" + tabId);
564
- };
565
- return GioPolicyStudioComponent;
566
- }());
567
- GioPolicyStudioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioComponent, deps: [{ token: i1__namespace.Location }, { token: 'FlowService' }, { token: 'PolicyService' }, { token: 'ResourceService' }, { token: 'SpelService' }], target: i0__namespace.ɵɵFactoryTarget.Component });
568
- GioPolicyStudioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: GioPolicyStudioComponent, selector: "gio-policy-studio", inputs: { readonly: "readonly", canAdd: "canAdd", canDebug: "canDebug", hasResources: "hasResources", hasProperties: "hasProperties", hasPolicyFilter: "hasPolicyFilter", hasConditionalSteps: "hasConditionalSteps", hasPlans: "hasPlans", sortable: "sortable", policies: "policies", definition: "definition", services: "services", flowSchema: "flowSchema", resourceTypes: "resourceTypes", propertyProviders: "propertyProviders", readonlyPlans: "readonlyPlans", dynamicPropertySchema: "dynamicPropertySchema", debugResponse: "debugResponse", flowsTitle: "flowsTitle", configurationInformation: "configurationInformation", hideTab: "hideTab", tabId: "tabId" }, outputs: { save: "save", debug: "debug" }, ngImport: i0__namespace, template: "<!--\n\n Copyright (C) 2015 The Gravitee team (http://gravitee.io)\n\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\n<div class=\"policy-studio-wrapper\">\n <gv-policy-studio\n [policies]=\"policies\"\n [services]=\"services\"\n [resourceTypes]=\"resourceTypes\"\n [propertyProviders]=\"propertyProviders\"\n [dynamicPropertySchema]=\"dynamicPropertySchema\"\n [definition]=\"definition\"\n [flowSchema]=\"flowSchema\"\n [configurationSchema]=\"configurationSchema\"\n [configurationInformation]=\"configurationInformation\"\n [attr.readonly]=\"readonly ? readonly : null\"\n [attr.can-add]=\"canAdd ? canAdd : null\"\n [attr.can-debug]=\"canDebug ? canDebug : null\"\n [attr.has-resources]=\"hasResources ? hasResources : null\"\n [attr.has-properties]=\"hasProperties ? hasProperties : null\"\n [attr.has-policy-filter]=\"hasPolicyFilter ? hasPolicyFilter : null\"\n [attr.has-plans]=\"hasPlans ? hasPlans : null\"\n [attr.sortable]=\"sortable ? sortable : null\"\n [attr.readonly-plans]=\"readonlyPlans ? readonlyPlans : null\"\n [attr.flows-title]=\"flowsTitle\"\n [attr.has-conditional-steps]=\"hasConditionalSteps\"\n [debugResponse]=\"debugResponse\"\n [tabId]=\"tabId\"\n (:gv-policy-studio:change-tab)=\"onTabChanged($any($event).detail)\"\n [documentation]=\"policyDocumentation\"\n (:gv-policy-studio:fetch-documentation)=\"fetchPolicyDocumentation($any($event).detail)\"\n (:gv-resources:fetch-documentation)=\"fetchResourceDocumentation($any($event).detail)\"\n (:gv-expression-language:ready)=\"fetchSpelGrammar($any($event).detail)\"\n [attr.selected-flows-id]=\"selectedFlowsIds ? selectedFlowsIds : null\"\n (:gv-policy-studio:select-flows)=\"onFlowSelectionChanged($any($event).detail)\"\n (:gv-policy-studio:save)=\"save.emit($any($event).detail)\"\n (:gv-policy-studio:debug)=\"debug.emit($any($event).detail)\"\n >\n </gv-policy-studio>\n</div>\n", styles: [".policy-studio-wrapper{background-color:#fff}gv-policy-studio{overflow:hidden;margin:2rem 0 1rem 1rem}\n"] });
569
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioComponent, decorators: [{
570
- type: i0.Component,
571
- args: [{
572
- selector: 'gio-policy-studio',
573
- templateUrl: './gio-policy-studio.component.html',
574
- styleUrls: ['./gio-policy-studio.component.scss'],
575
- }]
576
- }], ctorParameters: function () {
577
- return [{ type: i1__namespace.Location }, { type: FlowServiceAbstract, decorators: [{
578
- type: i0.Inject,
579
- args: ['FlowService']
580
- }] }, { type: PolicyServiceAbstract, decorators: [{
581
- type: i0.Inject,
582
- args: ['PolicyService']
583
- }] }, { type: ResourceServiceAbstract, decorators: [{
584
- type: i0.Inject,
585
- args: ['ResourceService']
586
- }] }, { type: SpelServiceAbstract, decorators: [{
587
- type: i0.Inject,
588
- args: ['SpelService']
589
- }] }];
590
- }, propDecorators: { readonly: [{
591
- type: i0.Input
592
- }], canAdd: [{
593
- type: i0.Input
594
- }], canDebug: [{
595
- type: i0.Input
596
- }], hasResources: [{
597
- type: i0.Input
598
- }], hasProperties: [{
599
- type: i0.Input
600
- }], hasPolicyFilter: [{
601
- type: i0.Input
602
- }], hasConditionalSteps: [{
603
- type: i0.Input
604
- }], hasPlans: [{
605
- type: i0.Input
606
- }], sortable: [{
607
- type: i0.Input
608
- }], policies: [{
609
- type: i0.Input
610
- }], definition: [{
611
- type: i0.Input
612
- }], services: [{
613
- type: i0.Input
614
- }], flowSchema: [{
615
- type: i0.Input
616
- }], resourceTypes: [{
617
- type: i0.Input
618
- }], propertyProviders: [{
619
- type: i0.Input
620
- }], readonlyPlans: [{
621
- type: i0.Input
622
- }], dynamicPropertySchema: [{
623
- type: i0.Input
624
- }], debugResponse: [{
625
- type: i0.Input
626
- }], flowsTitle: [{
627
- type: i0.Input
628
- }], configurationInformation: [{
629
- type: i0.Input
630
- }], hideTab: [{
631
- type: i0.Input
632
- }], tabId: [{
633
- type: i0.Input
634
- }], save: [{
635
- type: i0.Output
636
- }], debug: [{
637
- type: i0.Output
638
- }] } });
639
-
640
- function fakeFlowConfigurationSchema(attributes) {
641
- var base = {
642
- type: 'object',
643
- id: 'apim',
644
- properties: {
645
- flow_mode: {
646
- title: 'Flow Mode',
647
- description: 'The flow mode',
648
- type: 'string',
649
- enum: ['DEFAULT', 'BEST_MATCH'],
650
- default: 'DEFAULT',
651
- 'x-schema-form': {
652
- titleMap: {
653
- DEFAULT: 'Default',
654
- BEST_MATCH: 'Best match',
655
- },
656
- },
657
- },
658
- },
659
- required: [],
660
- disabled: [],
661
- };
662
- return Object.assign(Object.assign({}, base), attributes);
663
- }
664
-
665
- function fakeOrganizationFlowConfiguration(attributes) {
666
- var base = {
667
- has_policies: true,
668
- };
669
- return Object.assign(Object.assign({}, base), attributes);
670
- }
671
-
672
- function fakePlatformFlowSchema(attributes) {
673
- var base = {
674
- type: 'object',
675
- id: 'apim',
676
- properties: {
677
- name: {
678
- title: 'Name',
679
- description: 'The name of flow. If empty, the name will be generated with the path and methods',
680
- type: 'string',
681
- },
682
- 'path-operator': {
683
- type: 'object',
684
- properties: {
685
- operator: {
686
- title: 'Operator path',
687
- description: 'The operator path',
688
- type: 'string',
689
- enum: ['EQUALS', 'STARTS_WITH'],
690
- default: 'STARTS_WITH',
691
- 'x-schema-form': {
692
- titleMap: {
693
- EQUALS: 'Equals',
694
- STARTS_WITH: 'Starts with',
695
- },
696
- },
697
- },
698
- path: {
699
- title: 'Path',
700
- description: 'The path of flow (must start by /)',
701
- type: 'string',
702
- pattern: '^/',
703
- default: '/',
704
- },
705
- },
706
- required: ['path', 'operator'],
707
- },
708
- methods: {
709
- title: 'Methods',
710
- description: 'The HTTP methods of flow (ALL if empty)',
711
- type: 'array',
712
- items: {
713
- type: 'string',
714
- enum: ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'],
715
- },
716
- },
717
- consumers: {
718
- title: 'Tags',
719
- description: 'The tags of flow.',
720
- type: 'array',
721
- items: {
722
- type: 'string',
723
- enum: [],
724
- },
725
- },
726
- condition: {
727
- title: 'Condition',
728
- description: 'The condition of the flow. Supports EL.',
729
- type: 'string',
730
- 'x-schema-form': {
731
- 'expression-language': true,
732
- },
733
- },
734
- },
735
- required: [],
736
- disabled: [],
737
- };
738
- return Object.assign(Object.assign({}, base), attributes);
739
- }
740
-
741
- /*
742
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
743
- *
744
- * Licensed under the Apache License, Version 2.0 (the "License");
745
- * you may not use this file except in compliance with the License.
746
- * You may obtain a copy of the License at
747
- *
748
- * http://www.apache.org/licenses/LICENSE-2.0
749
- *
750
- * Unless required by applicable law or agreed to in writing, software
751
- * distributed under the License is distributed on an "AS IS" BASIS,
752
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
753
- * See the License for the specific language governing permissions and
754
- * limitations under the License.
755
- */
756
-
757
- var FlowService = /** @class */ (function (_super) {
758
- __extends(FlowService, _super);
759
- function FlowService() {
760
- return _super !== null && _super.apply(this, arguments) || this;
761
- }
762
- FlowService.prototype.getConfigurationSchemaForm = function () {
763
- return rxjs.of(fakeFlowConfigurationSchema());
764
- };
765
- FlowService.prototype.getPlatformFlowSchemaForm = function () {
766
- return rxjs.of(fakePlatformFlowSchema());
767
- };
768
- FlowService.prototype.getConfiguration = function () {
769
- return rxjs.of(fakeOrganizationFlowConfiguration());
770
- };
771
- return FlowService;
772
- }(FlowServiceAbstract));
773
- FlowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
774
- FlowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService });
775
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FlowService, decorators: [{
776
- type: i0.Injectable
777
- }] });
778
-
779
- function fakePolicyListItem(attributes) {
780
- var base = {
781
- category: 'transformation',
782
- description: 'Description of the JSON to JSON Transformation Gravitee Policy',
783
- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAuNzEgMTEyLjgyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6Izg2YzNkMDt9LmNscy0ye2ZpbGw6I2ZmZjt9LmNscy0ze2ZvbnQtc2l6ZToxMnB4O2ZpbGw6IzFkMWQxYjtmb250LWZhbWlseTpNeXJpYWRQcm8tUmVndWxhciwgTXlyaWFkIFBybzt9LmNscy00e2xldHRlci1zcGFjaW5nOi0wLjAxZW07fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJBUEkiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTUwLjM1LDEzLjM3YTQzLDQzLDAsMSwwLDQzLjA1LDQzQTQzLDQzLDAsMCwwLDUwLjM1LDEzLjM3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTYzLjgsNzcuMDlhNC44Myw0LjgzLDAsMSwxLDMuNjktNy45Miw0Ljc0LDQuNzQsMCwwLDEsMS4xMywzLjA5QTQuODMsNC44MywwLDAsMSw2My44LDc3LjA5Wm0wLTcuOTNhMy4xMSwzLjExLDAsMSwwLDIuMzgsMS4xMkEzLjEsMy4xLDAsMCwwLDYzLjgsNjkuMTZaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTEuNSw0My42OGE0Ljg1LDQuODUsMCwwLDEtNC43Ny00LjE0LDUsNSwwLDAsMSwwLS42OSw0LjgzLDQuODMsMCwwLDEsOS42NSwwLDMuNDUsMy40NSwwLDAsMS0uMDcuNzRBNC44MSw0LjgxLDAsMCwxLDUxLjUsNDMuNjhabTAtNy45M2EzLjEsMy4xLDAsMCwwLTMuMSwzLjEsMy4yNSwzLjI1LDAsMCwwLDAsLjQ0LDMuMSwzLjEsMCwwLDAsNi4xNCwwLDIuNjYsMi42NiwwLDAsMCwwLS40NUEzLjExLDMuMTEsMCwwLDAsNTEuNSwzNS43NVoiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0zMy42NCw3MC4xNWE0LjgzLDQuODMsMCwwLDEtMS4zNy05LjQ2LDUsNSwwLDAsMSwxLjM3LS4xOSw0LjgyLDQuODIsMCwwLDEsNC44Miw0LjgyLDQuODcsNC44NywwLDAsMS0yLjcxLDQuMzVBNC43Myw0LjczLDAsMCwxLDMzLjY0LDcwLjE1Wm0wLTcuOTNhMywzLDAsMCwwLS44OS4xMywzLjEsMy4xLDAsMCwwLC44OSw2LjA4QTMsMywwLDAsMCwzNSw2OC4xMmEzLjExLDMuMTEsMCwwLDAtMS4zNS01LjlaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMzIuMTgsNTYuMzVoLS4xMmEuODcuODcsMCwwLDEtLjczLTFBMjAuNDcsMjAuNDcsMCwwLDEsNDIsNDAuMzNhLjg2Ljg2LDAsMSwxLC44LDEuNTJBMTguNzcsMTguNzcsMCwwLDAsMzMsNTUuNjEuODYuODYsMCwwLDEsMzIuMTgsNTYuMzVaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTEuNSw3OC43OWEyMC4xNywyMC4xNywwLDAsMS0xMi4yNy00LjExLjg2Ljg2LDAsMCwxLS4xNy0xLjIxLjg1Ljg1LDAsMCwxLDEuMi0uMTZBMTguNTIsMTguNTIsMCwwLDAsNTEuNSw3Ny4wNywxOC4yMywxOC4yMywwLDAsMCw1NSw3Ni43M2EuODcuODcsMCwwLDEsLjMzLDEuN0EyMC44NywyMC44NywwLDAsMSw1MS41LDc4Ljc5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTcwLDY1LjQyYS44NC44NCwwLDAsMS0uMjcsMCwuODYuODYsMCwwLDEtLjU0LTEuMDksMTguNzEsMTguNzEsMCwwLDAtOC41NS0yMi4xNy44Ni44NiwwLDEsMSwuODUtMS41LDIwLjQyLDIwLjQyLDAsMCwxLDkuMzMsMjQuMjFBLjg3Ljg3LDAsMCwxLDcwLDY1LjQyWiIvPjwvZz48ZyBpZD0iSE9TVElORyI+PHRleHQgY2xhc3M9ImNscy0zIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNy45MyAtNC45OCkiPkpTT04gPHRzcGFuIGNsYXNzPSJjbHMtNCIgeD0iMjkuMDYiIHk9IjAiPnQ8L3RzcGFuPjx0c3BhbiB4PSIzMi45NiIgeT0iMCI+byBKU09OPC90c3Bhbj48L3RleHQ+PC9nPjwvc3ZnPg==',
784
- id: 'json-to-json',
785
- name: 'JSON to JSON Transformation',
786
- onRequest: true,
787
- onResponse: true,
788
- schema: '{\n "type" : "object",\n "id" : "urn:jsonschema:io:gravitee:policy:json2json:configuration:JsonToJsonTransformationPolicyConfiguration",\n "properties" : {\n "scope" : {\n "title": "Scope",\n "description": "Execute policy on <strong>request</strong> or <strong>response</strong> phase.",\n "type" : "string",\n "default": "REQUEST",\n "enum" : [ "REQUEST", "RESPONSE" ],\n "deprecated": "true"\n },\n "overrideContentType" : {\n "title": "Override the Content-Type",\n "description": "Enforce the Content-Type: application/json",\n "type" : "boolean",\n "default": true\n },\n "specification" : {\n "title": "JOLT specification",\n "type" : "string",\n "x-schema-form": {\n "type": "codemirror",\n "codemirrorOptions": {\n "placeholder": "Place your JOLT specification here or drag\'n\'drop your JOLT specification file",\n "lineWrapping": true,\n "lineNumbers": true,\n "allowDropFileTypes": true,\n "autoCloseTags": true,\n "mode": "javascript"\n },\n "expression-language": true\n }\n }\n },\n "required": [\n "specification"\n ]\n}\n',
789
- version: '1.6.0',
790
- };
791
- return Object.assign(Object.assign({}, base), attributes);
792
- }
793
-
794
- function fakePolicyDocumentation(attributes) {
795
- var base = "\n= RateLimit policy\n\n\nifdef::env-github[]\nimage:https://ci.gravitee.io/buildStatus/icon?job=gravitee-io/gravitee-policy-ratelimit/master[\"Build status\", link=\"https://ci.gravitee.io/job/gravitee-io/job/gravitee-policy-ratelimit/\"]\nimage:https://badges.gitter.im/Join Chat.svg[\"Gitter\", link=\"https://gitter.im/gravitee-io/gravitee-io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\"]\nendif::[]\n\n== Phase\n\n|===\n|onRequest |onResponse\n\n| X\n|\n\n|===\n\n== Description\n\nThere are three `rate-limit` policies:\n\n* Quota: configures the number of requests allowed over a period of time (hours, days, weeks, months)\n* Rate-Limit: configures the number of requests allowed over a limited period of time (seconds, minutes)\n* Spike-Arrest: throttles the number of requests processed and sends them to the backend to avoid a spike\n\n== Configuration\n\nYou can configure the policies with the following options:\n\n=== Quota\n\nThe Quota policy configures the number of requests allowed over a large period of time (from hours to months).\nThis policy does not prevent request spikes.\n\n|===\n|Property |Required |Description |Type |Default\n\n|key\n|No\n|Key to identify a consumer to apply the quota against. Leave it empty to apply the default behavior (plan/subscription pair). Supports Expression Language.\n|String\n|null\n\n|limit\n|No\n|Static limit on the number of requests that can be sent (this limit is used if the value > 0).\n|integer\n|0\n\n|dynamicLimit\n|No\n|Dynamic limit on the number of requests that can be sent (this limit is used if static limit = 0). The dynamic value is based on Expression Language expressions.\n|string\n|null\n\n|periodTime\n|Yes\n|Time duration\n|Integer\n|1\n\n|periodTimeUnit\n|Yes\n|Time unit (`HOURS`, `DAYS`, `WEEKS`, `MONTHS`)\n|String\n|MONTHS\n\n|===\n\n==== Configuration example\n\n[source, json]\n----\n \"quota\": {\n \"limit\": \"1000\",\n \"periodTime\": 1,\n \"periodTimeUnit\": \"MONTHS\"\n }\n----\n\n=== Rate-Limit\n\nThe Rate-Limit policy configures the number of requests allow over a limited period of time (from seconds to minutes).\nThis policy does not prevent request spikes.\n\n|===\n|Property |Required |Description |Type |Default\n\n|key\n|No\n|Key to identify a consumer to apply rate-limiting against. Leave it empty to use the default behavior (plan/subscription pair). Supports Expression Language.\n|String\n|null\n\n|limit\n|No\n|Static limit on the number of requests that can be sent (this limit is used if the value > 0).\n|integer\n|0\n\n|dynamicLimit\n|No\n|Dynamic limit on the number of requests that can be sent (this limit is used if static limit = 0). The dynamic value is based on Expression Language expressions.\n|string\n|null\n\n|periodTime\n|Yes\n|Time duration\n|Integer\n|1\n\n|periodTimeUnit\n|Yes\n|Time unit (\"SECONDS\", \"MINUTES\" )\n|String\n|SECONDS\n\n|===\n\n==== Configuration example\n\n[source, json]\n----\n \"rate\": {\n \"limit\": \"10\",\n \"periodTime\": 10,\n \"periodTimeUnit\": \"MINUTES\"\n }\n----\n\n=== Spike Arrest\n\nThe Spike-Arrest policy configures the number of requests allow over a limited period of time (from seconds to minutes).\nThis policy prevents request spikes by throttling incoming requests.\nFor example, a SpikeArrest policy configured to 2000 requests/second will limit the execution of simultaneous requests to 200 requests per 100ms.\n\nBy default, the SpikeArrest policy is applied to a plan, not a consumer. To apply a spike arrest to a consumer, you need to use the `key` attribute, which supports Expression Language.\n\n|===\n|Property |Required |Description |Type |Default\n\n|key\n|No\n|Key to identify a consumer to apply spike arresting against. Leave it empty to use the default behavior. Supports Expression Language (example: `{#request.headers['x-consumer-id']}`).\n|String\n|null\n\n|limit\n|No\n|Static limit on the number of requests that can be sent (this limit is used if the value > 0).\n|integer\n|0\n\n|dynamicLimit\n|No\n|Dynamic limit on the number of requests that can be sent (this limit is used if static limit = 0). The dynamic value is based on Expression Language expressions.\n|string\n|null\n\n|periodTime\n|Yes\n|Time duration\n|Integer\n|1\n\n|periodTimeUnit\n|Yes\n|Time unit (`SECONDS`, `MINUTES`)\n|String\n|SECONDS\n\n|===\n\n==== Configuration example\n\n[source, json]\n----\n \"spike\": {\n \"limit\": \"10\",\n \"periodTime\": 10,\n \"periodTimeUnit\": \"MINUTES\"\n }\n----\n\n== Errors\n\n=== Default response override\n\nYou can use the response template feature to override the default response provided by the policies. These templates must be defined at the API level (see the API Console *Response Templates*\noption in the API *Proxy* menu).\n\n=== Error keys\n\nThe error keys sent by these policies are as follows:\n\n[cols=\"2*\", options=\"header\"]\n|===\n^|Key\n^|Parameters\n\n.^|RATE_LIMIT_TOO_MANY_REQUESTS\n^.^|limit - period_time - period_unit\n\n.^|QUOTA_TOO_MANY_REQUESTS\n^.^|limit - period_time - period_unit\n\n.^|SPIKE_ARREST_TOO_MANY_REQUESTS\n^.^|limit - period_time - period_unit - slice_limit - slice_period_time - slice_limit_period_unit\n\n|===\n";
796
- return attributes !== null && attributes !== void 0 ? attributes : base;
797
- }
798
-
799
- function fakePolicySchema(attributes) {
800
- var base = 'A policy schema';
801
- return attributes !== null && attributes !== void 0 ? attributes : base;
802
- }
803
-
804
- /*
805
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
806
- *
807
- * Licensed under the Apache License, Version 2.0 (the "License");
808
- * you may not use this file except in compliance with the License.
809
- * You may obtain a copy of the License at
810
- *
811
- * http://www.apache.org/licenses/LICENSE-2.0
812
- *
813
- * Unless required by applicable law or agreed to in writing, software
814
- * distributed under the License is distributed on an "AS IS" BASIS,
815
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
816
- * See the License for the specific language governing permissions and
817
- * limitations under the License.
818
- */
819
-
820
- var PolicyService = /** @class */ (function (_super) {
821
- __extends(PolicyService, _super);
822
- function PolicyService() {
823
- return _super !== null && _super.apply(this, arguments) || this;
824
- }
825
- PolicyService.prototype.list = function (_params) {
826
- return rxjs.of([fakePolicyListItem()]);
827
- };
828
- PolicyService.prototype.listSwaggerPolicies = function () {
829
- return rxjs.of([fakePolicyListItem()]);
830
- };
831
- PolicyService.prototype.getSchema = function (_policyId) {
832
- return rxjs.of(fakePolicySchema());
833
- };
834
- PolicyService.prototype.getDocumentation = function (_policyId) {
835
- return rxjs.of(fakePolicyDocumentation()).pipe(operators.map(function (buffer) { return buffer.toString(); }));
836
- };
837
- return PolicyService;
838
- }(PolicyServiceAbstract));
839
- PolicyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PolicyService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
840
- PolicyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PolicyService });
841
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PolicyService, decorators: [{
842
- type: i0.Injectable
843
- }] });
844
-
845
- function fakeResourceDocumentation(attributes) {
846
- var base = "\n= Cache Resource\n\nifdef::env-github[]\nimage:https://ci.gravitee.io/buildStatus/icon?job=gravitee-io/gravitee-resource-cache/master[\"Build status\", link=\"https://ci.gravitee.io/job/gravitee-io/job/gravitee-resource-cache/\"]\nimage:https://badges.gitter.im/Join Chat.svg[\"Gitter\", link=\"https://gitter.im/gravitee-io/gravitee-io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\"]\nendif::[]\n\n== Description\n\nThe cache resource is used to maintain a cache and link it to the API lifecycle.\nIt means that the cache is initialized when the API is starting and released when API is stopped.\n\nThis cache is responsible to store HTTP response from the backend to avoid subsequent calls.\n\nCurrent implementation of the cache resource is based on https://hazelcast.com/[Hazelcast].\n\n== Configuration\n\nYou can configure the resource with the following options :\n\n|===\n|Property |Required |Description |Type |Default\n\n.^|name\n^.^|X\n|The name of the cache.\n^.^|string\n^.^|my-cache\n\n.^|timeToIdleSeconds\n^.^|X\n|The maximum number of seconds an element can exist in the cache without being accessed. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no timeToIdle (TTI) eviction takes place (infinite lifetime).\n^.^|integer\n^.^|0\n\n.^|timeToLiveSeconds\n^.^|X\n|The maximum number of seconds an element can exist in the cache regardless of use. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no timeToLive (TTL) eviction takes place (infinite lifetime).\n^.^|integer\n^.^|0\n\n.^|maxEntriesLocalHeap\n^.^|X\n|The maximum objects to be held in local heap memory (0 = no limit).\n^.^|integer\n^.^|1000\n\n|===\n\n\n[source, json]\n.Configuration example\n----\n{\n \"name\" : \"cache\",\n \"type\" : \"cache\",\n \"enabled\" : true,\n \"configuration\" : {\n \"name\": \"my-cache\",\n \"timeToIdleSeconds\":0,\n \"timeToLiveSeconds\":0,\n \"maxEntriesLocalHeap\":1000\n }\n}\n----";
847
- return attributes !== null && attributes !== void 0 ? attributes : base;
848
- }
849
-
850
- function fakeResourceListItem(attributes) {
851
- var base = {
852
- description: 'The resource is used to maintain a cache and link it to the API lifecycle. It means that the cache is initialized when the API is starting and released when API is stopped.',
853
- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAuNzEgMTEyLjgyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZvbnQtc2l6ZToxMnB4O2ZpbGw6IzFkMWQxYjtmb250LWZhbWlseTpNeXJpYWRQcm8tUmVndWxhciwgTXlyaWFkIFBybzt9LmNscy0ye2xldHRlci1zcGFjaW5nOi0wLjAxZW07fS5jbHMtM3tmaWxsOiM4NmMzZDA7fS5jbHMtNHtmaWxsOiNmZmY7c3Ryb2tlOiNmZmY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJIT1NUSU5HIj48dGV4dCBjbGFzcz0iY2xzLTEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE3LjkzIC00Ljk4KSI+PHRzcGFuIGNsYXNzPSJjbHMtMiI+QzwvdHNwYW4+PHRzcGFuIHg9IjYuODgiIHk9IjAiPmFjaGU8L3RzcGFuPjwvdGV4dD48cmVjdCBjbGFzcz0iY2xzLTMiIHg9IjUiIHk9IjExIiB3aWR0aD0iOTAiIGhlaWdodD0iOTAiIGZpbGw9InRyYW5zcGFyZW50IiBzdHJva2Utd2lkdGg9IjUiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik00Ny40NSw3Ny41OEEyMy4zLDIzLjMsMCwwLDEsNDIsNzYuOTNMNDIuNDYsNzVhMjEuMzQsMjEuMzQsMCwxLDAtMTEtMzQuODNsLTEuNS0xLjMyQTIzLjM0LDIzLjM0LDAsMSwxLDQ3LjQ1LDc3LjU4WiIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtNCIgcG9pbnRzPSI0Ni4yOCA3MC44OSAzNC40MSA3Mi4zNyA0MS42MyA4MS45MSA0Ni4yOCA3MC44OSIvPjwvZz48L3N2Zz4K',
854
- id: 'cache',
855
- name: 'Cache',
856
- schema: '{\n "type" : "object",\n "id" : "urn:jsonschema:io:gravitee:resource:cache:configuration:CacheResourceConfiguration",\n "properties" : {\n "name" : {\n "title": "Cache name",\n "description": "The name of the cache.",\n "type" : "string",\n "default": "my-cache"\n },\n "timeToIdleSeconds" : {\n "title": "Time to idle (in seconds)",\n "type" : "integer",\n "description": "The maximum number of seconds an element can exist in the cache without being accessed. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no timeToIdle (TTI) eviction takes place (infinite lifetime).",\n "default": 0,\n "minimum": 0\n },\n "timeToLiveSeconds" : {\n "title": "Time to live (in seconds)",\n "type" : "integer",\n "description": "The maximum number of seconds an element can exist in the cache regardless of use. The element expires at this limit and will no longer be returned from the cache. The default value is 0, which means no timeToLive (TTL) eviction takes place (infinite lifetime).",\n "default": 0,\n "minimum": 0\n },\n "maxEntriesLocalHeap" : {\n "title": "Max entries on heap",\n "description": "The maximum objects to be held in local heap memory (0 = no limit).",\n "type" : "integer",\n "default": 1000,\n "minimum": 0\n }\n },\n "required": [\n "name",\n "timeToIdleSeconds",\n "timeToLiveSeconds",\n "maxEntriesLocalHeap",\n "timeToLiveSeconds"\n ]\n}\n',
857
- version: '1.6.1',
858
- };
859
- return Object.assign(Object.assign({}, base), attributes);
860
- }
861
-
862
- /*
863
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
864
- *
865
- * Licensed under the Apache License, Version 2.0 (the "License");
866
- * you may not use this file except in compliance with the License.
867
- * You may obtain a copy of the License at
868
- *
869
- * http://www.apache.org/licenses/LICENSE-2.0
870
- *
871
- * Unless required by applicable law or agreed to in writing, software
872
- * distributed under the License is distributed on an "AS IS" BASIS,
873
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
874
- * See the License for the specific language governing permissions and
875
- * limitations under the License.
876
- */
877
-
878
- var ResourceService = /** @class */ (function (_super) {
879
- __extends(ResourceService, _super);
880
- function ResourceService() {
881
- return _super !== null && _super.apply(this, arguments) || this;
882
- }
883
- ResourceService.prototype.list = function (_params) {
884
- return rxjs.of([fakeResourceListItem()]);
885
- };
886
- ResourceService.prototype.getDocumentation = function (_resourceId) {
887
- return rxjs.of(fakeResourceDocumentation());
888
- };
889
- return ResourceService;
890
- }(ResourceServiceAbstract));
891
- ResourceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ResourceService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
892
- ResourceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ResourceService });
893
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ResourceService, decorators: [{
894
- type: i0.Injectable
895
- }] });
896
-
897
- function fakeGrammar(attributes) {
898
- return Object.assign(Object.assign({}, base), attributes);
899
- }
900
- var base = {
901
- request: {
902
- content: {
903
- _type: 'String',
904
- },
905
- contextPath: {
906
- _type: 'String',
907
- },
908
- headers: {
909
- _type: 'HttpHeaders',
910
- },
911
- id: {
912
- _type: 'String',
913
- },
914
- localAddress: {
915
- _type: 'String',
916
- },
917
- params: {
918
- _type: 'MultiValueMap',
919
- },
920
- path: {
921
- _type: 'String',
922
- },
923
- pathInfo: {
924
- _type: 'String',
925
- },
926
- pathInfos: {
927
- _type: 'String[]',
928
- },
929
- pathParams: {
930
- _type: 'MultiValueMap',
931
- },
932
- paths: {
933
- _type: 'String[]',
934
- },
935
- remoteAddress: {
936
- _type: 'String',
937
- },
938
- scheme: {
939
- _type: 'String',
940
- },
941
- ssl: {
942
- client: {
943
- attributes: {
944
- _type: 'MultiValueMap',
945
- },
946
- businessCategory: {
947
- _type: 'String',
948
- },
949
- c: {
950
- _type: 'String',
951
- },
952
- cn: {
953
- _type: 'String',
954
- },
955
- countryOfCitizenship: {
956
- _type: 'String',
957
- },
958
- countryOfResidence: {
959
- _type: 'String',
960
- },
961
- dateOfBirth: {
962
- _type: 'String',
963
- },
964
- dc: {
965
- _type: 'String',
966
- },
967
- defined: {
968
- _type: 'boolean',
969
- },
970
- description: {
971
- _type: 'String',
972
- },
973
- dmdName: {
974
- _type: 'String',
975
- },
976
- dn: {
977
- _type: 'String',
978
- },
979
- dnQualifier: {
980
- _type: 'String',
981
- },
982
- e: {
983
- _type: 'String',
984
- },
985
- emailAddress: {
986
- _type: 'String',
987
- },
988
- gender: {
989
- _type: 'String',
990
- },
991
- generation: {
992
- _type: 'String',
993
- },
994
- givenname: {
995
- _type: 'String',
996
- },
997
- initials: {
998
- _type: 'String',
999
- },
1000
- l: {
1001
- _type: 'String',
1002
- },
1003
- name: {
1004
- _type: 'String',
1005
- },
1006
- nameAtBirth: {
1007
- _type: 'String',
1008
- },
1009
- o: {
1010
- _type: 'String',
1011
- },
1012
- organizationIdentifier: {
1013
- _type: 'String',
1014
- },
1015
- ou: {
1016
- _type: 'String',
1017
- },
1018
- placeOfBirth: {
1019
- _type: 'String',
1020
- },
1021
- postalAddress: {
1022
- _type: 'String',
1023
- },
1024
- postalCode: {
1025
- _type: 'String',
1026
- },
1027
- pseudonym: {
1028
- _type: 'String',
1029
- },
1030
- role: {
1031
- _type: 'String',
1032
- },
1033
- serialnumber: {
1034
- _type: 'String',
1035
- },
1036
- st: {
1037
- _type: 'String',
1038
- },
1039
- street: {
1040
- _type: 'String',
1041
- },
1042
- surname: {
1043
- _type: 'String',
1044
- },
1045
- t: {
1046
- _type: 'String',
1047
- },
1048
- telephoneNumber: {
1049
- _type: 'String',
1050
- },
1051
- uid: {
1052
- _type: 'String',
1053
- },
1054
- uniqueIdentifier: {
1055
- _type: 'String',
1056
- },
1057
- unstructuredAddress: {
1058
- _type: 'String',
1059
- },
1060
- },
1061
- clientHost: {
1062
- _type: 'String',
1063
- },
1064
- clientPort: {
1065
- _type: 'Integer',
1066
- },
1067
- server: {
1068
- attributes: {
1069
- _type: 'MultiValueMap',
1070
- },
1071
- businessCategory: {
1072
- _type: 'String',
1073
- },
1074
- c: {
1075
- _type: 'String',
1076
- },
1077
- cn: {
1078
- _type: 'String',
1079
- },
1080
- countryOfCitizenship: {
1081
- _type: 'String',
1082
- },
1083
- countryOfResidence: {
1084
- _type: 'String',
1085
- },
1086
- dateOfBirth: {
1087
- _type: 'String',
1088
- },
1089
- dc: {
1090
- _type: 'String',
1091
- },
1092
- defined: {
1093
- _type: 'boolean',
1094
- },
1095
- description: {
1096
- _type: 'String',
1097
- },
1098
- dmdName: {
1099
- _type: 'String',
1100
- },
1101
- dn: {
1102
- _type: 'String',
1103
- },
1104
- dnQualifier: {
1105
- _type: 'String',
1106
- },
1107
- e: {
1108
- _type: 'String',
1109
- },
1110
- emailAddress: {
1111
- _type: 'String',
1112
- },
1113
- gender: {
1114
- _type: 'String',
1115
- },
1116
- generation: {
1117
- _type: 'String',
1118
- },
1119
- givenname: {
1120
- _type: 'String',
1121
- },
1122
- initials: {
1123
- _type: 'String',
1124
- },
1125
- l: {
1126
- _type: 'String',
1127
- },
1128
- name: {
1129
- _type: 'String',
1130
- },
1131
- nameAtBirth: {
1132
- _type: 'String',
1133
- },
1134
- o: {
1135
- _type: 'String',
1136
- },
1137
- organizationIdentifier: {
1138
- _type: 'String',
1139
- },
1140
- ou: {
1141
- _type: 'String',
1142
- },
1143
- placeOfBirth: {
1144
- _type: 'String',
1145
- },
1146
- postalAddress: {
1147
- _type: 'String',
1148
- },
1149
- postalCode: {
1150
- _type: 'String',
1151
- },
1152
- pseudonym: {
1153
- _type: 'String',
1154
- },
1155
- role: {
1156
- _type: 'String',
1157
- },
1158
- serialnumber: {
1159
- _type: 'String',
1160
- },
1161
- st: {
1162
- _type: 'String',
1163
- },
1164
- street: {
1165
- _type: 'String',
1166
- },
1167
- surname: {
1168
- _type: 'String',
1169
- },
1170
- t: {
1171
- _type: 'String',
1172
- },
1173
- telephoneNumber: {
1174
- _type: 'String',
1175
- },
1176
- uid: {
1177
- _type: 'String',
1178
- },
1179
- uniqueIdentifier: {
1180
- _type: 'String',
1181
- },
1182
- unstructuredAddress: {
1183
- _type: 'String',
1184
- },
1185
- },
1186
- },
1187
- timestamp: {
1188
- _type: 'long',
1189
- },
1190
- transactionId: {
1191
- _type: 'String',
1192
- },
1193
- uri: {
1194
- _type: 'String',
1195
- },
1196
- version: {
1197
- _type: 'String',
1198
- },
1199
- },
1200
- endpoints: {
1201
- _type: 'String[]',
1202
- },
1203
- response: {
1204
- headers: {
1205
- _type: 'HttpHeaders',
1206
- },
1207
- content: {
1208
- _type: 'String',
1209
- },
1210
- status: {
1211
- _type: 'int',
1212
- },
1213
- },
1214
- context: {
1215
- attributes: {
1216
- 'context-path': {
1217
- _type: 'String',
1218
- },
1219
- application: {
1220
- _type: 'String',
1221
- },
1222
- 'api-key': {
1223
- _type: 'String',
1224
- },
1225
- 'user-id': {
1226
- _type: 'String',
1227
- },
1228
- api: {
1229
- _type: 'String',
1230
- },
1231
- plan: {
1232
- _type: 'String',
1233
- },
1234
- 'resolved-path': {
1235
- _type: 'String',
1236
- },
1237
- },
1238
- },
1239
- _enums: {
1240
- HttpHeaders: [
1241
- 'Accept',
1242
- 'Accept-Charset',
1243
- 'Accept-Encoding',
1244
- 'Accept-Language',
1245
- 'Accept-Ranges',
1246
- 'Access-Control-Allow-Credentials',
1247
- 'Access-Control-Allow-Headers',
1248
- 'Access-Control-Allow-Methods',
1249
- 'Access-Control-Allow-Origin',
1250
- 'Access-Control-Expose-Headers',
1251
- 'Access-Control-Max-Age',
1252
- 'Access-Control-Request-Headers',
1253
- 'Access-Control-Request-Method',
1254
- 'Age',
1255
- 'Allow',
1256
- 'Authorization',
1257
- 'Cache-Control',
1258
- 'Connection',
1259
- 'Content-Disposition',
1260
- 'Content-Encoding',
1261
- 'Content-ID',
1262
- 'Content-Language',
1263
- 'Content-Length',
1264
- 'Content-Location',
1265
- 'Content-MD5',
1266
- 'Content-Range',
1267
- 'Content-Type',
1268
- 'Cookie',
1269
- 'Date',
1270
- 'ETag',
1271
- 'Expires',
1272
- 'Expect',
1273
- 'Forwarded',
1274
- 'From',
1275
- 'Host',
1276
- 'If-Match',
1277
- 'If-Modified-Since',
1278
- 'If-None-Match',
1279
- 'If-Unmodified-Since',
1280
- 'Keep-Alive',
1281
- 'Last-Modified',
1282
- 'Location',
1283
- 'Link',
1284
- 'Max-Forwards',
1285
- 'MIME-Version',
1286
- 'Origin',
1287
- 'Pragma',
1288
- 'Proxy-Authenticate',
1289
- 'Proxy-Authorization',
1290
- 'Proxy-Connection',
1291
- 'Range',
1292
- 'Referer',
1293
- 'Retry-After',
1294
- 'Server',
1295
- 'Set-Cookie',
1296
- 'Set-Cookie2',
1297
- 'TE',
1298
- 'Trailer',
1299
- 'Transfer-Encoding',
1300
- 'Upgrade',
1301
- 'User-Agent',
1302
- 'Vary',
1303
- 'Via',
1304
- 'Warning',
1305
- 'WWW-Authenticate',
1306
- 'X-Forwarded-For',
1307
- 'X-Forwarded-Proto',
1308
- 'X-Forwarded-Server',
1309
- 'X-Forwarded-Host',
1310
- 'X-Forwarded-Port',
1311
- 'X-Forwarded-Prefix',
1312
- ],
1313
- },
1314
- properties: {
1315
- _type: 'String[]',
1316
- },
1317
- dictionaries: {
1318
- _type: 'String[]',
1319
- },
1320
- _types: {
1321
- MultiValueMap: {
1322
- methods: [
1323
- {
1324
- name: 'containsKey',
1325
- returnType: 'boolean',
1326
- params: [
1327
- {
1328
- name: 'arg0',
1329
- type: 'Object',
1330
- },
1331
- ],
1332
- },
1333
- {
1334
- name: 'containsValue',
1335
- returnType: 'boolean',
1336
- params: [
1337
- {
1338
- name: 'arg0',
1339
- type: 'Object',
1340
- },
1341
- ],
1342
- },
1343
- {
1344
- name: 'entrySet',
1345
- returnType: 'Set',
1346
- },
1347
- {
1348
- name: 'get',
1349
- returnType: 'Object',
1350
- params: [
1351
- {
1352
- name: 'arg0',
1353
- type: 'Object',
1354
- },
1355
- ],
1356
- },
1357
- {
1358
- name: 'getOrDefault',
1359
- returnType: 'Object',
1360
- params: [
1361
- {
1362
- name: 'arg0',
1363
- type: 'Object',
1364
- },
1365
- {
1366
- name: 'arg1',
1367
- type: 'Object',
1368
- },
1369
- ],
1370
- },
1371
- {
1372
- name: 'isEmpty',
1373
- returnType: 'boolean',
1374
- },
1375
- {
1376
- name: 'keySet',
1377
- returnType: 'Set',
1378
- },
1379
- {
1380
- name: 'size',
1381
- returnType: 'int',
1382
- },
1383
- {
1384
- name: 'values',
1385
- returnType: 'Collection',
1386
- },
1387
- ],
1388
- },
1389
- HttpHeaders: {
1390
- methods: [
1391
- {
1392
- name: 'equals',
1393
- returnType: 'boolean',
1394
- params: [
1395
- {
1396
- name: 'arg0',
1397
- type: 'Object',
1398
- },
1399
- ],
1400
- },
1401
- {
1402
- name: 'hashCode',
1403
- returnType: 'int',
1404
- },
1405
- {
1406
- name: 'toString',
1407
- returnType: 'String',
1408
- },
1409
- {
1410
- name: 'containsKey',
1411
- returnType: 'boolean',
1412
- params: [
1413
- {
1414
- name: 'arg0',
1415
- type: 'Object',
1416
- },
1417
- ],
1418
- },
1419
- {
1420
- name: 'containsValue',
1421
- returnType: 'boolean',
1422
- params: [
1423
- {
1424
- name: 'arg0',
1425
- type: 'Object',
1426
- },
1427
- ],
1428
- },
1429
- {
1430
- name: 'entrySet',
1431
- returnType: 'Set',
1432
- },
1433
- {
1434
- name: 'get',
1435
- returnType: 'Object',
1436
- params: [
1437
- {
1438
- name: 'arg0',
1439
- type: 'Object',
1440
- },
1441
- ],
1442
- },
1443
- {
1444
- name: 'getOrDefault',
1445
- returnType: 'Object',
1446
- params: [
1447
- {
1448
- name: 'arg0',
1449
- type: 'Object',
1450
- },
1451
- {
1452
- name: 'arg1',
1453
- type: 'Object',
1454
- },
1455
- ],
1456
- },
1457
- {
1458
- name: 'isEmpty',
1459
- returnType: 'boolean',
1460
- },
1461
- {
1462
- name: 'keySet',
1463
- returnType: 'Set',
1464
- },
1465
- {
1466
- name: 'size',
1467
- returnType: 'int',
1468
- },
1469
- {
1470
- name: 'values',
1471
- returnType: 'Collection',
1472
- },
1473
- ],
1474
- },
1475
- Map: {
1476
- methods: [
1477
- {
1478
- name: 'containsKey',
1479
- returnType: 'boolean',
1480
- params: [
1481
- {
1482
- name: 'arg0',
1483
- type: 'Object',
1484
- },
1485
- ],
1486
- },
1487
- {
1488
- name: 'containsValue',
1489
- returnType: 'boolean',
1490
- params: [
1491
- {
1492
- name: 'arg0',
1493
- type: 'Object',
1494
- },
1495
- ],
1496
- },
1497
- {
1498
- name: 'entrySet',
1499
- returnType: 'Set',
1500
- },
1501
- {
1502
- name: 'get',
1503
- returnType: 'Object',
1504
- params: [
1505
- {
1506
- name: 'arg0',
1507
- type: 'Object',
1508
- },
1509
- ],
1510
- },
1511
- {
1512
- name: 'getOrDefault',
1513
- returnType: 'Object',
1514
- params: [
1515
- {
1516
- name: 'arg0',
1517
- type: 'Object',
1518
- },
1519
- {
1520
- name: 'arg1',
1521
- type: 'Object',
1522
- },
1523
- ],
1524
- },
1525
- {
1526
- name: 'isEmpty',
1527
- returnType: 'boolean',
1528
- },
1529
- {
1530
- name: 'keySet',
1531
- returnType: 'Set',
1532
- },
1533
- {
1534
- name: 'size',
1535
- returnType: 'int',
1536
- },
1537
- {
1538
- name: 'values',
1539
- returnType: 'Collection',
1540
- },
1541
- ],
1542
- },
1543
- Boolean: {
1544
- methods: [
1545
- {
1546
- name: 'equals',
1547
- returnType: 'boolean',
1548
- params: [
1549
- {
1550
- name: 'arg0',
1551
- type: 'Object',
1552
- },
1553
- ],
1554
- },
1555
- {
1556
- name: 'hashCode',
1557
- returnType: 'int',
1558
- },
1559
- {
1560
- name: 'toString',
1561
- returnType: 'String',
1562
- },
1563
- ],
1564
- },
1565
- Integer: {
1566
- methods: [
1567
- {
1568
- name: 'numberOfLeadingZeros',
1569
- returnType: 'int',
1570
- params: [
1571
- {
1572
- name: 'arg0',
1573
- type: 'int',
1574
- },
1575
- ],
1576
- },
1577
- {
1578
- name: 'numberOfTrailingZeros',
1579
- returnType: 'int',
1580
- params: [
1581
- {
1582
- name: 'arg0',
1583
- type: 'int',
1584
- },
1585
- ],
1586
- },
1587
- {
1588
- name: 'bitCount',
1589
- returnType: 'int',
1590
- params: [
1591
- {
1592
- name: 'arg0',
1593
- type: 'int',
1594
- },
1595
- ],
1596
- },
1597
- {
1598
- name: 'equals',
1599
- returnType: 'boolean',
1600
- params: [
1601
- {
1602
- name: 'arg0',
1603
- type: 'Object',
1604
- },
1605
- ],
1606
- },
1607
- {
1608
- name: 'toString',
1609
- returnType: 'String',
1610
- params: [
1611
- {
1612
- name: 'arg0',
1613
- type: 'int',
1614
- },
1615
- ],
1616
- },
1617
- {
1618
- name: 'toString',
1619
- returnType: 'String',
1620
- params: [
1621
- {
1622
- name: 'arg0',
1623
- type: 'int',
1624
- },
1625
- {
1626
- name: 'arg1',
1627
- type: 'int',
1628
- },
1629
- ],
1630
- },
1631
- {
1632
- name: 'toString',
1633
- returnType: 'String',
1634
- },
1635
- {
1636
- name: 'hashCode',
1637
- returnType: 'int',
1638
- params: [
1639
- {
1640
- name: 'arg0',
1641
- type: 'int',
1642
- },
1643
- ],
1644
- },
1645
- {
1646
- name: 'hashCode',
1647
- returnType: 'int',
1648
- },
1649
- {
1650
- name: 'min',
1651
- returnType: 'int',
1652
- params: [
1653
- {
1654
- name: 'arg0',
1655
- type: 'int',
1656
- },
1657
- {
1658
- name: 'arg1',
1659
- type: 'int',
1660
- },
1661
- ],
1662
- },
1663
- {
1664
- name: 'max',
1665
- returnType: 'int',
1666
- params: [
1667
- {
1668
- name: 'arg0',
1669
- type: 'int',
1670
- },
1671
- {
1672
- name: 'arg1',
1673
- type: 'int',
1674
- },
1675
- ],
1676
- },
1677
- {
1678
- name: 'signum',
1679
- returnType: 'int',
1680
- params: [
1681
- {
1682
- name: 'arg0',
1683
- type: 'int',
1684
- },
1685
- ],
1686
- },
1687
- {
1688
- name: 'reverseBytes',
1689
- returnType: 'int',
1690
- params: [
1691
- {
1692
- name: 'arg0',
1693
- type: 'int',
1694
- },
1695
- ],
1696
- },
1697
- {
1698
- name: 'compareTo',
1699
- returnType: 'int',
1700
- params: [
1701
- {
1702
- name: 'arg0',
1703
- type: 'Object',
1704
- },
1705
- ],
1706
- },
1707
- {
1708
- name: 'compareTo',
1709
- returnType: 'int',
1710
- params: [
1711
- {
1712
- name: 'arg0',
1713
- type: 'Integer',
1714
- },
1715
- ],
1716
- },
1717
- {
1718
- name: 'byteValue',
1719
- returnType: 'byte',
1720
- },
1721
- {
1722
- name: 'shortValue',
1723
- returnType: 'short',
1724
- },
1725
- {
1726
- name: 'intValue',
1727
- returnType: 'int',
1728
- },
1729
- {
1730
- name: 'longValue',
1731
- returnType: 'long',
1732
- },
1733
- {
1734
- name: 'floatValue',
1735
- returnType: 'float',
1736
- },
1737
- {
1738
- name: 'doubleValue',
1739
- returnType: 'double',
1740
- },
1741
- {
1742
- name: 'valueOf',
1743
- returnType: 'Integer',
1744
- params: [
1745
- {
1746
- name: 'arg0',
1747
- type: 'String',
1748
- },
1749
- ],
1750
- },
1751
- {
1752
- name: 'valueOf',
1753
- returnType: 'Integer',
1754
- params: [
1755
- {
1756
- name: 'arg0',
1757
- type: 'int',
1758
- },
1759
- ],
1760
- },
1761
- {
1762
- name: 'valueOf',
1763
- returnType: 'Integer',
1764
- params: [
1765
- {
1766
- name: 'arg0',
1767
- type: 'String',
1768
- },
1769
- {
1770
- name: 'arg1',
1771
- type: 'int',
1772
- },
1773
- ],
1774
- },
1775
- {
1776
- name: 'toHexString',
1777
- returnType: 'String',
1778
- params: [
1779
- {
1780
- name: 'arg0',
1781
- type: 'int',
1782
- },
1783
- ],
1784
- },
1785
- {
1786
- name: 'decode',
1787
- returnType: 'Integer',
1788
- params: [
1789
- {
1790
- name: 'arg0',
1791
- type: 'String',
1792
- },
1793
- ],
1794
- },
1795
- {
1796
- name: 'compare',
1797
- returnType: 'int',
1798
- params: [
1799
- {
1800
- name: 'arg0',
1801
- type: 'int',
1802
- },
1803
- {
1804
- name: 'arg1',
1805
- type: 'int',
1806
- },
1807
- ],
1808
- },
1809
- {
1810
- name: 'reverse',
1811
- returnType: 'int',
1812
- params: [
1813
- {
1814
- name: 'arg0',
1815
- type: 'int',
1816
- },
1817
- ],
1818
- },
1819
- {
1820
- name: 'toUnsignedLong',
1821
- returnType: 'long',
1822
- params: [
1823
- {
1824
- name: 'arg0',
1825
- type: 'int',
1826
- },
1827
- ],
1828
- },
1829
- {
1830
- name: 'parseInt',
1831
- returnType: 'int',
1832
- params: [
1833
- {
1834
- name: 'arg0',
1835
- type: 'String',
1836
- },
1837
- {
1838
- name: 'arg1',
1839
- type: 'int',
1840
- },
1841
- ],
1842
- },
1843
- {
1844
- name: 'parseInt',
1845
- returnType: 'int',
1846
- params: [
1847
- {
1848
- name: 'arg0',
1849
- type: 'String',
1850
- },
1851
- ],
1852
- },
1853
- {
1854
- name: 'parseInt',
1855
- returnType: 'int',
1856
- params: [
1857
- {
1858
- name: 'arg0',
1859
- type: 'CharSequence',
1860
- },
1861
- {
1862
- name: 'arg1',
1863
- type: 'int',
1864
- },
1865
- {
1866
- name: 'arg2',
1867
- type: 'int',
1868
- },
1869
- {
1870
- name: 'arg3',
1871
- type: 'int',
1872
- },
1873
- ],
1874
- },
1875
- {
1876
- name: 'sum',
1877
- returnType: 'int',
1878
- params: [
1879
- {
1880
- name: 'arg0',
1881
- type: 'int',
1882
- },
1883
- {
1884
- name: 'arg1',
1885
- type: 'int',
1886
- },
1887
- ],
1888
- },
1889
- {
1890
- name: 'compareUnsigned',
1891
- returnType: 'int',
1892
- params: [
1893
- {
1894
- name: 'arg0',
1895
- type: 'int',
1896
- },
1897
- {
1898
- name: 'arg1',
1899
- type: 'int',
1900
- },
1901
- ],
1902
- },
1903
- {
1904
- name: 'toUnsignedString',
1905
- returnType: 'String',
1906
- params: [
1907
- {
1908
- name: 'arg0',
1909
- type: 'int',
1910
- },
1911
- {
1912
- name: 'arg1',
1913
- type: 'int',
1914
- },
1915
- ],
1916
- },
1917
- {
1918
- name: 'toUnsignedString',
1919
- returnType: 'String',
1920
- params: [
1921
- {
1922
- name: 'arg0',
1923
- type: 'int',
1924
- },
1925
- ],
1926
- },
1927
- {
1928
- name: 'toOctalString',
1929
- returnType: 'String',
1930
- params: [
1931
- {
1932
- name: 'arg0',
1933
- type: 'int',
1934
- },
1935
- ],
1936
- },
1937
- {
1938
- name: 'toBinaryString',
1939
- returnType: 'String',
1940
- params: [
1941
- {
1942
- name: 'arg0',
1943
- type: 'int',
1944
- },
1945
- ],
1946
- },
1947
- {
1948
- name: 'parseUnsignedInt',
1949
- returnType: 'int',
1950
- params: [
1951
- {
1952
- name: 'arg0',
1953
- type: 'String',
1954
- },
1955
- {
1956
- name: 'arg1',
1957
- type: 'int',
1958
- },
1959
- ],
1960
- },
1961
- {
1962
- name: 'parseUnsignedInt',
1963
- returnType: 'int',
1964
- params: [
1965
- {
1966
- name: 'arg0',
1967
- type: 'String',
1968
- },
1969
- ],
1970
- },
1971
- {
1972
- name: 'parseUnsignedInt',
1973
- returnType: 'int',
1974
- params: [
1975
- {
1976
- name: 'arg0',
1977
- type: 'CharSequence',
1978
- },
1979
- {
1980
- name: 'arg1',
1981
- type: 'int',
1982
- },
1983
- {
1984
- name: 'arg2',
1985
- type: 'int',
1986
- },
1987
- {
1988
- name: 'arg3',
1989
- type: 'int',
1990
- },
1991
- ],
1992
- },
1993
- {
1994
- name: 'getInteger',
1995
- returnType: 'Integer',
1996
- params: [
1997
- {
1998
- name: 'arg0',
1999
- type: 'String',
2000
- },
2001
- {
2002
- name: 'arg1',
2003
- type: 'int',
2004
- },
2005
- ],
2006
- },
2007
- {
2008
- name: 'getInteger',
2009
- returnType: 'Integer',
2010
- params: [
2011
- {
2012
- name: 'arg0',
2013
- type: 'String',
2014
- },
2015
- ],
2016
- },
2017
- {
2018
- name: 'getInteger',
2019
- returnType: 'Integer',
2020
- params: [
2021
- {
2022
- name: 'arg0',
2023
- type: 'String',
2024
- },
2025
- {
2026
- name: 'arg1',
2027
- type: 'Integer',
2028
- },
2029
- ],
2030
- },
2031
- {
2032
- name: 'divideUnsigned',
2033
- returnType: 'int',
2034
- params: [
2035
- {
2036
- name: 'arg0',
2037
- type: 'int',
2038
- },
2039
- {
2040
- name: 'arg1',
2041
- type: 'int',
2042
- },
2043
- ],
2044
- },
2045
- {
2046
- name: 'remainderUnsigned',
2047
- returnType: 'int',
2048
- params: [
2049
- {
2050
- name: 'arg0',
2051
- type: 'int',
2052
- },
2053
- {
2054
- name: 'arg1',
2055
- type: 'int',
2056
- },
2057
- ],
2058
- },
2059
- {
2060
- name: 'highestOneBit',
2061
- returnType: 'int',
2062
- params: [
2063
- {
2064
- name: 'arg0',
2065
- type: 'int',
2066
- },
2067
- ],
2068
- },
2069
- {
2070
- name: 'lowestOneBit',
2071
- returnType: 'int',
2072
- params: [
2073
- {
2074
- name: 'arg0',
2075
- type: 'int',
2076
- },
2077
- ],
2078
- },
2079
- {
2080
- name: 'rotateLeft',
2081
- returnType: 'int',
2082
- params: [
2083
- {
2084
- name: 'arg0',
2085
- type: 'int',
2086
- },
2087
- {
2088
- name: 'arg1',
2089
- type: 'int',
2090
- },
2091
- ],
2092
- },
2093
- {
2094
- name: 'rotateRight',
2095
- returnType: 'int',
2096
- params: [
2097
- {
2098
- name: 'arg0',
2099
- type: 'int',
2100
- },
2101
- {
2102
- name: 'arg1',
2103
- type: 'int',
2104
- },
2105
- ],
2106
- },
2107
- {
2108
- name: 'equals',
2109
- returnType: 'boolean',
2110
- params: [
2111
- {
2112
- name: 'arg0',
2113
- type: 'Object',
2114
- },
2115
- ],
2116
- },
2117
- {
2118
- name: 'hashCode',
2119
- returnType: 'int',
2120
- },
2121
- {
2122
- name: 'toString',
2123
- returnType: 'String',
2124
- },
2125
- ],
2126
- },
2127
- Long: {
2128
- methods: [
2129
- {
2130
- name: 'numberOfLeadingZeros',
2131
- returnType: 'int',
2132
- params: [
2133
- {
2134
- name: 'arg0',
2135
- type: 'long',
2136
- },
2137
- ],
2138
- },
2139
- {
2140
- name: 'numberOfTrailingZeros',
2141
- returnType: 'int',
2142
- params: [
2143
- {
2144
- name: 'arg0',
2145
- type: 'long',
2146
- },
2147
- ],
2148
- },
2149
- {
2150
- name: 'bitCount',
2151
- returnType: 'int',
2152
- params: [
2153
- {
2154
- name: 'arg0',
2155
- type: 'long',
2156
- },
2157
- ],
2158
- },
2159
- {
2160
- name: 'equals',
2161
- returnType: 'boolean',
2162
- params: [
2163
- {
2164
- name: 'arg0',
2165
- type: 'Object',
2166
- },
2167
- ],
2168
- },
2169
- {
2170
- name: 'toString',
2171
- returnType: 'String',
2172
- params: [
2173
- {
2174
- name: 'arg0',
2175
- type: 'long',
2176
- },
2177
- ],
2178
- },
2179
- {
2180
- name: 'toString',
2181
- returnType: 'String',
2182
- params: [
2183
- {
2184
- name: 'arg0',
2185
- type: 'long',
2186
- },
2187
- {
2188
- name: 'arg1',
2189
- type: 'int',
2190
- },
2191
- ],
2192
- },
2193
- {
2194
- name: 'toString',
2195
- returnType: 'String',
2196
- },
2197
- {
2198
- name: 'hashCode',
2199
- returnType: 'int',
2200
- params: [
2201
- {
2202
- name: 'arg0',
2203
- type: 'long',
2204
- },
2205
- ],
2206
- },
2207
- {
2208
- name: 'hashCode',
2209
- returnType: 'int',
2210
- },
2211
- {
2212
- name: 'min',
2213
- returnType: 'long',
2214
- params: [
2215
- {
2216
- name: 'arg0',
2217
- type: 'long',
2218
- },
2219
- {
2220
- name: 'arg1',
2221
- type: 'long',
2222
- },
2223
- ],
2224
- },
2225
- {
2226
- name: 'max',
2227
- returnType: 'long',
2228
- params: [
2229
- {
2230
- name: 'arg0',
2231
- type: 'long',
2232
- },
2233
- {
2234
- name: 'arg1',
2235
- type: 'long',
2236
- },
2237
- ],
2238
- },
2239
- {
2240
- name: 'signum',
2241
- returnType: 'int',
2242
- params: [
2243
- {
2244
- name: 'arg0',
2245
- type: 'long',
2246
- },
2247
- ],
2248
- },
2249
- {
2250
- name: 'reverseBytes',
2251
- returnType: 'long',
2252
- params: [
2253
- {
2254
- name: 'arg0',
2255
- type: 'long',
2256
- },
2257
- ],
2258
- },
2259
- {
2260
- name: 'compareTo',
2261
- returnType: 'int',
2262
- params: [
2263
- {
2264
- name: 'arg0',
2265
- type: 'Object',
2266
- },
2267
- ],
2268
- },
2269
- {
2270
- name: 'compareTo',
2271
- returnType: 'int',
2272
- params: [
2273
- {
2274
- name: 'arg0',
2275
- type: 'Long',
2276
- },
2277
- ],
2278
- },
2279
- {
2280
- name: 'getLong',
2281
- returnType: 'Long',
2282
- params: [
2283
- {
2284
- name: 'arg0',
2285
- type: 'String',
2286
- },
2287
- ],
2288
- },
2289
- {
2290
- name: 'getLong',
2291
- returnType: 'Long',
2292
- params: [
2293
- {
2294
- name: 'arg0',
2295
- type: 'String',
2296
- },
2297
- {
2298
- name: 'arg1',
2299
- type: 'long',
2300
- },
2301
- ],
2302
- },
2303
- {
2304
- name: 'getLong',
2305
- returnType: 'Long',
2306
- params: [
2307
- {
2308
- name: 'arg0',
2309
- type: 'String',
2310
- },
2311
- {
2312
- name: 'arg1',
2313
- type: 'Long',
2314
- },
2315
- ],
2316
- },
2317
- {
2318
- name: 'byteValue',
2319
- returnType: 'byte',
2320
- },
2321
- {
2322
- name: 'shortValue',
2323
- returnType: 'short',
2324
- },
2325
- {
2326
- name: 'intValue',
2327
- returnType: 'int',
2328
- },
2329
- {
2330
- name: 'longValue',
2331
- returnType: 'long',
2332
- },
2333
- {
2334
- name: 'floatValue',
2335
- returnType: 'float',
2336
- },
2337
- {
2338
- name: 'doubleValue',
2339
- returnType: 'double',
2340
- },
2341
- {
2342
- name: 'valueOf',
2343
- returnType: 'Long',
2344
- params: [
2345
- {
2346
- name: 'arg0',
2347
- type: 'long',
2348
- },
2349
- ],
2350
- },
2351
- {
2352
- name: 'valueOf',
2353
- returnType: 'Long',
2354
- params: [
2355
- {
2356
- name: 'arg0',
2357
- type: 'String',
2358
- },
2359
- {
2360
- name: 'arg1',
2361
- type: 'int',
2362
- },
2363
- ],
2364
- },
2365
- {
2366
- name: 'valueOf',
2367
- returnType: 'Long',
2368
- params: [
2369
- {
2370
- name: 'arg0',
2371
- type: 'String',
2372
- },
2373
- ],
2374
- },
2375
- {
2376
- name: 'toHexString',
2377
- returnType: 'String',
2378
- params: [
2379
- {
2380
- name: 'arg0',
2381
- type: 'long',
2382
- },
2383
- ],
2384
- },
2385
- {
2386
- name: 'decode',
2387
- returnType: 'Long',
2388
- params: [
2389
- {
2390
- name: 'arg0',
2391
- type: 'String',
2392
- },
2393
- ],
2394
- },
2395
- {
2396
- name: 'compare',
2397
- returnType: 'int',
2398
- params: [
2399
- {
2400
- name: 'arg0',
2401
- type: 'long',
2402
- },
2403
- {
2404
- name: 'arg1',
2405
- type: 'long',
2406
- },
2407
- ],
2408
- },
2409
- {
2410
- name: 'reverse',
2411
- returnType: 'long',
2412
- params: [
2413
- {
2414
- name: 'arg0',
2415
- type: 'long',
2416
- },
2417
- ],
2418
- },
2419
- {
2420
- name: 'sum',
2421
- returnType: 'long',
2422
- params: [
2423
- {
2424
- name: 'arg0',
2425
- type: 'long',
2426
- },
2427
- {
2428
- name: 'arg1',
2429
- type: 'long',
2430
- },
2431
- ],
2432
- },
2433
- {
2434
- name: 'compareUnsigned',
2435
- returnType: 'int',
2436
- params: [
2437
- {
2438
- name: 'arg0',
2439
- type: 'long',
2440
- },
2441
- {
2442
- name: 'arg1',
2443
- type: 'long',
2444
- },
2445
- ],
2446
- },
2447
- {
2448
- name: 'toUnsignedString',
2449
- returnType: 'String',
2450
- params: [
2451
- {
2452
- name: 'arg0',
2453
- type: 'long',
2454
- },
2455
- {
2456
- name: 'arg1',
2457
- type: 'int',
2458
- },
2459
- ],
2460
- },
2461
- {
2462
- name: 'toUnsignedString',
2463
- returnType: 'String',
2464
- params: [
2465
- {
2466
- name: 'arg0',
2467
- type: 'long',
2468
- },
2469
- ],
2470
- },
2471
- {
2472
- name: 'toOctalString',
2473
- returnType: 'String',
2474
- params: [
2475
- {
2476
- name: 'arg0',
2477
- type: 'long',
2478
- },
2479
- ],
2480
- },
2481
- {
2482
- name: 'toBinaryString',
2483
- returnType: 'String',
2484
- params: [
2485
- {
2486
- name: 'arg0',
2487
- type: 'long',
2488
- },
2489
- ],
2490
- },
2491
- {
2492
- name: 'parseLong',
2493
- returnType: 'long',
2494
- params: [
2495
- {
2496
- name: 'arg0',
2497
- type: 'String',
2498
- },
2499
- {
2500
- name: 'arg1',
2501
- type: 'int',
2502
- },
2503
- ],
2504
- },
2505
- {
2506
- name: 'parseLong',
2507
- returnType: 'long',
2508
- params: [
2509
- {
2510
- name: 'arg0',
2511
- type: 'CharSequence',
2512
- },
2513
- {
2514
- name: 'arg1',
2515
- type: 'int',
2516
- },
2517
- {
2518
- name: 'arg2',
2519
- type: 'int',
2520
- },
2521
- {
2522
- name: 'arg3',
2523
- type: 'int',
2524
- },
2525
- ],
2526
- },
2527
- {
2528
- name: 'parseLong',
2529
- returnType: 'long',
2530
- params: [
2531
- {
2532
- name: 'arg0',
2533
- type: 'String',
2534
- },
2535
- ],
2536
- },
2537
- {
2538
- name: 'divideUnsigned',
2539
- returnType: 'long',
2540
- params: [
2541
- {
2542
- name: 'arg0',
2543
- type: 'long',
2544
- },
2545
- {
2546
- name: 'arg1',
2547
- type: 'long',
2548
- },
2549
- ],
2550
- },
2551
- {
2552
- name: 'remainderUnsigned',
2553
- returnType: 'long',
2554
- params: [
2555
- {
2556
- name: 'arg0',
2557
- type: 'long',
2558
- },
2559
- {
2560
- name: 'arg1',
2561
- type: 'long',
2562
- },
2563
- ],
2564
- },
2565
- {
2566
- name: 'highestOneBit',
2567
- returnType: 'long',
2568
- params: [
2569
- {
2570
- name: 'arg0',
2571
- type: 'long',
2572
- },
2573
- ],
2574
- },
2575
- {
2576
- name: 'lowestOneBit',
2577
- returnType: 'long',
2578
- params: [
2579
- {
2580
- name: 'arg0',
2581
- type: 'long',
2582
- },
2583
- ],
2584
- },
2585
- {
2586
- name: 'rotateLeft',
2587
- returnType: 'long',
2588
- params: [
2589
- {
2590
- name: 'arg0',
2591
- type: 'long',
2592
- },
2593
- {
2594
- name: 'arg1',
2595
- type: 'int',
2596
- },
2597
- ],
2598
- },
2599
- {
2600
- name: 'rotateRight',
2601
- returnType: 'long',
2602
- params: [
2603
- {
2604
- name: 'arg0',
2605
- type: 'long',
2606
- },
2607
- {
2608
- name: 'arg1',
2609
- type: 'int',
2610
- },
2611
- ],
2612
- },
2613
- {
2614
- name: 'parseUnsignedLong',
2615
- returnType: 'long',
2616
- params: [
2617
- {
2618
- name: 'arg0',
2619
- type: 'String',
2620
- },
2621
- ],
2622
- },
2623
- {
2624
- name: 'parseUnsignedLong',
2625
- returnType: 'long',
2626
- params: [
2627
- {
2628
- name: 'arg0',
2629
- type: 'CharSequence',
2630
- },
2631
- {
2632
- name: 'arg1',
2633
- type: 'int',
2634
- },
2635
- {
2636
- name: 'arg2',
2637
- type: 'int',
2638
- },
2639
- {
2640
- name: 'arg3',
2641
- type: 'int',
2642
- },
2643
- ],
2644
- },
2645
- {
2646
- name: 'parseUnsignedLong',
2647
- returnType: 'long',
2648
- params: [
2649
- {
2650
- name: 'arg0',
2651
- type: 'String',
2652
- },
2653
- {
2654
- name: 'arg1',
2655
- type: 'int',
2656
- },
2657
- ],
2658
- },
2659
- {
2660
- name: 'equals',
2661
- returnType: 'boolean',
2662
- params: [
2663
- {
2664
- name: 'arg0',
2665
- type: 'Object',
2666
- },
2667
- ],
2668
- },
2669
- {
2670
- name: 'hashCode',
2671
- returnType: 'int',
2672
- },
2673
- {
2674
- name: 'toString',
2675
- returnType: 'String',
2676
- },
2677
- ],
2678
- },
2679
- Math: {
2680
- methods: [
2681
- {
2682
- name: 'abs',
2683
- returnType: 'long',
2684
- params: [
2685
- {
2686
- name: 'arg0',
2687
- type: 'long',
2688
- },
2689
- ],
2690
- },
2691
- {
2692
- name: 'abs',
2693
- returnType: 'double',
2694
- params: [
2695
- {
2696
- name: 'arg0',
2697
- type: 'double',
2698
- },
2699
- ],
2700
- },
2701
- {
2702
- name: 'abs',
2703
- returnType: 'int',
2704
- params: [
2705
- {
2706
- name: 'arg0',
2707
- type: 'int',
2708
- },
2709
- ],
2710
- },
2711
- {
2712
- name: 'abs',
2713
- returnType: 'float',
2714
- params: [
2715
- {
2716
- name: 'arg0',
2717
- type: 'float',
2718
- },
2719
- ],
2720
- },
2721
- {
2722
- name: 'sin',
2723
- returnType: 'double',
2724
- params: [
2725
- {
2726
- name: 'arg0',
2727
- type: 'double',
2728
- },
2729
- ],
2730
- },
2731
- {
2732
- name: 'cos',
2733
- returnType: 'double',
2734
- params: [
2735
- {
2736
- name: 'arg0',
2737
- type: 'double',
2738
- },
2739
- ],
2740
- },
2741
- {
2742
- name: 'tan',
2743
- returnType: 'double',
2744
- params: [
2745
- {
2746
- name: 'arg0',
2747
- type: 'double',
2748
- },
2749
- ],
2750
- },
2751
- {
2752
- name: 'atan2',
2753
- returnType: 'double',
2754
- params: [
2755
- {
2756
- name: 'arg0',
2757
- type: 'double',
2758
- },
2759
- {
2760
- name: 'arg1',
2761
- type: 'double',
2762
- },
2763
- ],
2764
- },
2765
- {
2766
- name: 'sqrt',
2767
- returnType: 'double',
2768
- params: [
2769
- {
2770
- name: 'arg0',
2771
- type: 'double',
2772
- },
2773
- ],
2774
- },
2775
- {
2776
- name: 'log',
2777
- returnType: 'double',
2778
- params: [
2779
- {
2780
- name: 'arg0',
2781
- type: 'double',
2782
- },
2783
- ],
2784
- },
2785
- {
2786
- name: 'log10',
2787
- returnType: 'double',
2788
- params: [
2789
- {
2790
- name: 'arg0',
2791
- type: 'double',
2792
- },
2793
- ],
2794
- },
2795
- {
2796
- name: 'pow',
2797
- returnType: 'double',
2798
- params: [
2799
- {
2800
- name: 'arg0',
2801
- type: 'double',
2802
- },
2803
- {
2804
- name: 'arg1',
2805
- type: 'double',
2806
- },
2807
- ],
2808
- },
2809
- {
2810
- name: 'exp',
2811
- returnType: 'double',
2812
- params: [
2813
- {
2814
- name: 'arg0',
2815
- type: 'double',
2816
- },
2817
- ],
2818
- },
2819
- {
2820
- name: 'min',
2821
- returnType: 'long',
2822
- params: [
2823
- {
2824
- name: 'arg0',
2825
- type: 'long',
2826
- },
2827
- {
2828
- name: 'arg1',
2829
- type: 'long',
2830
- },
2831
- ],
2832
- },
2833
- {
2834
- name: 'min',
2835
- returnType: 'float',
2836
- params: [
2837
- {
2838
- name: 'arg0',
2839
- type: 'float',
2840
- },
2841
- {
2842
- name: 'arg1',
2843
- type: 'float',
2844
- },
2845
- ],
2846
- },
2847
- {
2848
- name: 'min',
2849
- returnType: 'double',
2850
- params: [
2851
- {
2852
- name: 'arg0',
2853
- type: 'double',
2854
- },
2855
- {
2856
- name: 'arg1',
2857
- type: 'double',
2858
- },
2859
- ],
2860
- },
2861
- {
2862
- name: 'min',
2863
- returnType: 'int',
2864
- params: [
2865
- {
2866
- name: 'arg0',
2867
- type: 'int',
2868
- },
2869
- {
2870
- name: 'arg1',
2871
- type: 'int',
2872
- },
2873
- ],
2874
- },
2875
- {
2876
- name: 'max',
2877
- returnType: 'long',
2878
- params: [
2879
- {
2880
- name: 'arg0',
2881
- type: 'long',
2882
- },
2883
- {
2884
- name: 'arg1',
2885
- type: 'long',
2886
- },
2887
- ],
2888
- },
2889
- {
2890
- name: 'max',
2891
- returnType: 'float',
2892
- params: [
2893
- {
2894
- name: 'arg0',
2895
- type: 'float',
2896
- },
2897
- {
2898
- name: 'arg1',
2899
- type: 'float',
2900
- },
2901
- ],
2902
- },
2903
- {
2904
- name: 'max',
2905
- returnType: 'double',
2906
- params: [
2907
- {
2908
- name: 'arg0',
2909
- type: 'double',
2910
- },
2911
- {
2912
- name: 'arg1',
2913
- type: 'double',
2914
- },
2915
- ],
2916
- },
2917
- {
2918
- name: 'max',
2919
- returnType: 'int',
2920
- params: [
2921
- {
2922
- name: 'arg0',
2923
- type: 'int',
2924
- },
2925
- {
2926
- name: 'arg1',
2927
- type: 'int',
2928
- },
2929
- ],
2930
- },
2931
- {
2932
- name: 'floor',
2933
- returnType: 'double',
2934
- params: [
2935
- {
2936
- name: 'arg0',
2937
- type: 'double',
2938
- },
2939
- ],
2940
- },
2941
- {
2942
- name: 'ceil',
2943
- returnType: 'double',
2944
- params: [
2945
- {
2946
- name: 'arg0',
2947
- type: 'double',
2948
- },
2949
- ],
2950
- },
2951
- {
2952
- name: 'rint',
2953
- returnType: 'double',
2954
- params: [
2955
- {
2956
- name: 'arg0',
2957
- type: 'double',
2958
- },
2959
- ],
2960
- },
2961
- {
2962
- name: 'addExact',
2963
- returnType: 'int',
2964
- params: [
2965
- {
2966
- name: 'arg0',
2967
- type: 'int',
2968
- },
2969
- {
2970
- name: 'arg1',
2971
- type: 'int',
2972
- },
2973
- ],
2974
- },
2975
- {
2976
- name: 'addExact',
2977
- returnType: 'long',
2978
- params: [
2979
- {
2980
- name: 'arg0',
2981
- type: 'long',
2982
- },
2983
- {
2984
- name: 'arg1',
2985
- type: 'long',
2986
- },
2987
- ],
2988
- },
2989
- {
2990
- name: 'decrementExact',
2991
- returnType: 'int',
2992
- params: [
2993
- {
2994
- name: 'arg0',
2995
- type: 'int',
2996
- },
2997
- ],
2998
- },
2999
- {
3000
- name: 'decrementExact',
3001
- returnType: 'long',
3002
- params: [
3003
- {
3004
- name: 'arg0',
3005
- type: 'long',
3006
- },
3007
- ],
3008
- },
3009
- {
3010
- name: 'incrementExact',
3011
- returnType: 'long',
3012
- params: [
3013
- {
3014
- name: 'arg0',
3015
- type: 'long',
3016
- },
3017
- ],
3018
- },
3019
- {
3020
- name: 'incrementExact',
3021
- returnType: 'int',
3022
- params: [
3023
- {
3024
- name: 'arg0',
3025
- type: 'int',
3026
- },
3027
- ],
3028
- },
3029
- {
3030
- name: 'multiplyExact',
3031
- returnType: 'int',
3032
- params: [
3033
- {
3034
- name: 'arg0',
3035
- type: 'int',
3036
- },
3037
- {
3038
- name: 'arg1',
3039
- type: 'int',
3040
- },
3041
- ],
3042
- },
3043
- {
3044
- name: 'multiplyExact',
3045
- returnType: 'long',
3046
- params: [
3047
- {
3048
- name: 'arg0',
3049
- type: 'long',
3050
- },
3051
- {
3052
- name: 'arg1',
3053
- type: 'int',
3054
- },
3055
- ],
3056
- },
3057
- {
3058
- name: 'multiplyExact',
3059
- returnType: 'long',
3060
- params: [
3061
- {
3062
- name: 'arg0',
3063
- type: 'long',
3064
- },
3065
- {
3066
- name: 'arg1',
3067
- type: 'long',
3068
- },
3069
- ],
3070
- },
3071
- {
3072
- name: 'multiplyHigh',
3073
- returnType: 'long',
3074
- params: [
3075
- {
3076
- name: 'arg0',
3077
- type: 'long',
3078
- },
3079
- {
3080
- name: 'arg1',
3081
- type: 'long',
3082
- },
3083
- ],
3084
- },
3085
- {
3086
- name: 'negateExact',
3087
- returnType: 'long',
3088
- params: [
3089
- {
3090
- name: 'arg0',
3091
- type: 'long',
3092
- },
3093
- ],
3094
- },
3095
- {
3096
- name: 'negateExact',
3097
- returnType: 'int',
3098
- params: [
3099
- {
3100
- name: 'arg0',
3101
- type: 'int',
3102
- },
3103
- ],
3104
- },
3105
- {
3106
- name: 'subtractExact',
3107
- returnType: 'long',
3108
- params: [
3109
- {
3110
- name: 'arg0',
3111
- type: 'long',
3112
- },
3113
- {
3114
- name: 'arg1',
3115
- type: 'long',
3116
- },
3117
- ],
3118
- },
3119
- {
3120
- name: 'subtractExact',
3121
- returnType: 'int',
3122
- params: [
3123
- {
3124
- name: 'arg0',
3125
- type: 'int',
3126
- },
3127
- {
3128
- name: 'arg1',
3129
- type: 'int',
3130
- },
3131
- ],
3132
- },
3133
- {
3134
- name: 'fma',
3135
- returnType: 'float',
3136
- params: [
3137
- {
3138
- name: 'arg0',
3139
- type: 'float',
3140
- },
3141
- {
3142
- name: 'arg1',
3143
- type: 'float',
3144
- },
3145
- {
3146
- name: 'arg2',
3147
- type: 'float',
3148
- },
3149
- ],
3150
- },
3151
- {
3152
- name: 'fma',
3153
- returnType: 'double',
3154
- params: [
3155
- {
3156
- name: 'arg0',
3157
- type: 'double',
3158
- },
3159
- {
3160
- name: 'arg1',
3161
- type: 'double',
3162
- },
3163
- {
3164
- name: 'arg2',
3165
- type: 'double',
3166
- },
3167
- ],
3168
- },
3169
- {
3170
- name: 'copySign',
3171
- returnType: 'float',
3172
- params: [
3173
- {
3174
- name: 'arg0',
3175
- type: 'float',
3176
- },
3177
- {
3178
- name: 'arg1',
3179
- type: 'float',
3180
- },
3181
- ],
3182
- },
3183
- {
3184
- name: 'copySign',
3185
- returnType: 'double',
3186
- params: [
3187
- {
3188
- name: 'arg0',
3189
- type: 'double',
3190
- },
3191
- {
3192
- name: 'arg1',
3193
- type: 'double',
3194
- },
3195
- ],
3196
- },
3197
- {
3198
- name: 'signum',
3199
- returnType: 'double',
3200
- params: [
3201
- {
3202
- name: 'arg0',
3203
- type: 'double',
3204
- },
3205
- ],
3206
- },
3207
- {
3208
- name: 'signum',
3209
- returnType: 'float',
3210
- params: [
3211
- {
3212
- name: 'arg0',
3213
- type: 'float',
3214
- },
3215
- ],
3216
- },
3217
- {
3218
- name: 'scalb',
3219
- returnType: 'double',
3220
- params: [
3221
- {
3222
- name: 'arg0',
3223
- type: 'double',
3224
- },
3225
- {
3226
- name: 'arg1',
3227
- type: 'int',
3228
- },
3229
- ],
3230
- },
3231
- {
3232
- name: 'scalb',
3233
- returnType: 'float',
3234
- params: [
3235
- {
3236
- name: 'arg0',
3237
- type: 'float',
3238
- },
3239
- {
3240
- name: 'arg1',
3241
- type: 'int',
3242
- },
3243
- ],
3244
- },
3245
- {
3246
- name: 'getExponent',
3247
- returnType: 'int',
3248
- params: [
3249
- {
3250
- name: 'arg0',
3251
- type: 'float',
3252
- },
3253
- ],
3254
- },
3255
- {
3256
- name: 'getExponent',
3257
- returnType: 'int',
3258
- params: [
3259
- {
3260
- name: 'arg0',
3261
- type: 'double',
3262
- },
3263
- ],
3264
- },
3265
- {
3266
- name: 'floorMod',
3267
- returnType: 'int',
3268
- params: [
3269
- {
3270
- name: 'arg0',
3271
- type: 'int',
3272
- },
3273
- {
3274
- name: 'arg1',
3275
- type: 'int',
3276
- },
3277
- ],
3278
- },
3279
- {
3280
- name: 'floorMod',
3281
- returnType: 'long',
3282
- params: [
3283
- {
3284
- name: 'arg0',
3285
- type: 'long',
3286
- },
3287
- {
3288
- name: 'arg1',
3289
- type: 'long',
3290
- },
3291
- ],
3292
- },
3293
- {
3294
- name: 'floorMod',
3295
- returnType: 'int',
3296
- params: [
3297
- {
3298
- name: 'arg0',
3299
- type: 'long',
3300
- },
3301
- {
3302
- name: 'arg1',
3303
- type: 'int',
3304
- },
3305
- ],
3306
- },
3307
- {
3308
- name: 'asin',
3309
- returnType: 'double',
3310
- params: [
3311
- {
3312
- name: 'arg0',
3313
- type: 'double',
3314
- },
3315
- ],
3316
- },
3317
- {
3318
- name: 'acos',
3319
- returnType: 'double',
3320
- params: [
3321
- {
3322
- name: 'arg0',
3323
- type: 'double',
3324
- },
3325
- ],
3326
- },
3327
- {
3328
- name: 'atan',
3329
- returnType: 'double',
3330
- params: [
3331
- {
3332
- name: 'arg0',
3333
- type: 'double',
3334
- },
3335
- ],
3336
- },
3337
- {
3338
- name: 'toRadians',
3339
- returnType: 'double',
3340
- params: [
3341
- {
3342
- name: 'arg0',
3343
- type: 'double',
3344
- },
3345
- ],
3346
- },
3347
- {
3348
- name: 'toDegrees',
3349
- returnType: 'double',
3350
- params: [
3351
- {
3352
- name: 'arg0',
3353
- type: 'double',
3354
- },
3355
- ],
3356
- },
3357
- {
3358
- name: 'cbrt',
3359
- returnType: 'double',
3360
- params: [
3361
- {
3362
- name: 'arg0',
3363
- type: 'double',
3364
- },
3365
- ],
3366
- },
3367
- {
3368
- name: 'IEEEremainder',
3369
- returnType: 'double',
3370
- params: [
3371
- {
3372
- name: 'arg0',
3373
- type: 'double',
3374
- },
3375
- {
3376
- name: 'arg1',
3377
- type: 'double',
3378
- },
3379
- ],
3380
- },
3381
- {
3382
- name: 'round',
3383
- returnType: 'int',
3384
- params: [
3385
- {
3386
- name: 'arg0',
3387
- type: 'float',
3388
- },
3389
- ],
3390
- },
3391
- {
3392
- name: 'round',
3393
- returnType: 'long',
3394
- params: [
3395
- {
3396
- name: 'arg0',
3397
- type: 'double',
3398
- },
3399
- ],
3400
- },
3401
- {
3402
- name: 'random',
3403
- returnType: 'double',
3404
- },
3405
- {
3406
- name: 'toIntExact',
3407
- returnType: 'int',
3408
- params: [
3409
- {
3410
- name: 'arg0',
3411
- type: 'long',
3412
- },
3413
- ],
3414
- },
3415
- {
3416
- name: 'multiplyFull',
3417
- returnType: 'long',
3418
- params: [
3419
- {
3420
- name: 'arg0',
3421
- type: 'int',
3422
- },
3423
- {
3424
- name: 'arg1',
3425
- type: 'int',
3426
- },
3427
- ],
3428
- },
3429
- {
3430
- name: 'floorDiv',
3431
- returnType: 'long',
3432
- params: [
3433
- {
3434
- name: 'arg0',
3435
- type: 'long',
3436
- },
3437
- {
3438
- name: 'arg1',
3439
- type: 'int',
3440
- },
3441
- ],
3442
- },
3443
- {
3444
- name: 'floorDiv',
3445
- returnType: 'long',
3446
- params: [
3447
- {
3448
- name: 'arg0',
3449
- type: 'long',
3450
- },
3451
- {
3452
- name: 'arg1',
3453
- type: 'long',
3454
- },
3455
- ],
3456
- },
3457
- {
3458
- name: 'floorDiv',
3459
- returnType: 'int',
3460
- params: [
3461
- {
3462
- name: 'arg0',
3463
- type: 'int',
3464
- },
3465
- {
3466
- name: 'arg1',
3467
- type: 'int',
3468
- },
3469
- ],
3470
- },
3471
- {
3472
- name: 'ulp',
3473
- returnType: 'float',
3474
- params: [
3475
- {
3476
- name: 'arg0',
3477
- type: 'float',
3478
- },
3479
- ],
3480
- },
3481
- {
3482
- name: 'ulp',
3483
- returnType: 'double',
3484
- params: [
3485
- {
3486
- name: 'arg0',
3487
- type: 'double',
3488
- },
3489
- ],
3490
- },
3491
- {
3492
- name: 'sinh',
3493
- returnType: 'double',
3494
- params: [
3495
- {
3496
- name: 'arg0',
3497
- type: 'double',
3498
- },
3499
- ],
3500
- },
3501
- {
3502
- name: 'cosh',
3503
- returnType: 'double',
3504
- params: [
3505
- {
3506
- name: 'arg0',
3507
- type: 'double',
3508
- },
3509
- ],
3510
- },
3511
- {
3512
- name: 'tanh',
3513
- returnType: 'double',
3514
- params: [
3515
- {
3516
- name: 'arg0',
3517
- type: 'double',
3518
- },
3519
- ],
3520
- },
3521
- {
3522
- name: 'hypot',
3523
- returnType: 'double',
3524
- params: [
3525
- {
3526
- name: 'arg0',
3527
- type: 'double',
3528
- },
3529
- {
3530
- name: 'arg1',
3531
- type: 'double',
3532
- },
3533
- ],
3534
- },
3535
- {
3536
- name: 'expm1',
3537
- returnType: 'double',
3538
- params: [
3539
- {
3540
- name: 'arg0',
3541
- type: 'double',
3542
- },
3543
- ],
3544
- },
3545
- {
3546
- name: 'log1p',
3547
- returnType: 'double',
3548
- params: [
3549
- {
3550
- name: 'arg0',
3551
- type: 'double',
3552
- },
3553
- ],
3554
- },
3555
- {
3556
- name: 'nextAfter',
3557
- returnType: 'double',
3558
- params: [
3559
- {
3560
- name: 'arg0',
3561
- type: 'double',
3562
- },
3563
- {
3564
- name: 'arg1',
3565
- type: 'double',
3566
- },
3567
- ],
3568
- },
3569
- {
3570
- name: 'nextAfter',
3571
- returnType: 'float',
3572
- params: [
3573
- {
3574
- name: 'arg0',
3575
- type: 'float',
3576
- },
3577
- {
3578
- name: 'arg1',
3579
- type: 'double',
3580
- },
3581
- ],
3582
- },
3583
- {
3584
- name: 'nextUp',
3585
- returnType: 'double',
3586
- params: [
3587
- {
3588
- name: 'arg0',
3589
- type: 'double',
3590
- },
3591
- ],
3592
- },
3593
- {
3594
- name: 'nextUp',
3595
- returnType: 'float',
3596
- params: [
3597
- {
3598
- name: 'arg0',
3599
- type: 'float',
3600
- },
3601
- ],
3602
- },
3603
- {
3604
- name: 'nextDown',
3605
- returnType: 'float',
3606
- params: [
3607
- {
3608
- name: 'arg0',
3609
- type: 'float',
3610
- },
3611
- ],
3612
- },
3613
- {
3614
- name: 'nextDown',
3615
- returnType: 'double',
3616
- params: [
3617
- {
3618
- name: 'arg0',
3619
- type: 'double',
3620
- },
3621
- ],
3622
- },
3623
- {
3624
- name: 'equals',
3625
- returnType: 'boolean',
3626
- params: [
3627
- {
3628
- name: 'arg0',
3629
- type: 'Object',
3630
- },
3631
- ],
3632
- },
3633
- {
3634
- name: 'hashCode',
3635
- returnType: 'int',
3636
- },
3637
- {
3638
- name: 'toString',
3639
- returnType: 'String',
3640
- },
3641
- ],
3642
- },
3643
- Object: {
3644
- methods: [
3645
- {
3646
- name: 'equals',
3647
- returnType: 'boolean',
3648
- params: [
3649
- {
3650
- name: 'arg0',
3651
- type: 'Object',
3652
- },
3653
- ],
3654
- },
3655
- {
3656
- name: 'hashCode',
3657
- returnType: 'int',
3658
- },
3659
- {
3660
- name: 'toString',
3661
- returnType: 'String',
3662
- },
3663
- ],
3664
- },
3665
- List: {
3666
- methods: [
3667
- {
3668
- name: 'get',
3669
- returnType: 'Object',
3670
- params: [
3671
- {
3672
- name: 'arg0',
3673
- type: 'int',
3674
- },
3675
- ],
3676
- },
3677
- {
3678
- name: 'contains',
3679
- returnType: 'boolean',
3680
- params: [
3681
- {
3682
- name: 'arg0',
3683
- type: 'Object',
3684
- },
3685
- ],
3686
- },
3687
- {
3688
- name: 'isEmpty',
3689
- returnType: 'boolean',
3690
- },
3691
- {
3692
- name: 'size',
3693
- returnType: 'int',
3694
- },
3695
- ],
3696
- },
3697
- Collection: {
3698
- methods: [
3699
- {
3700
- name: 'contains',
3701
- returnType: 'boolean',
3702
- params: [
3703
- {
3704
- name: 'arg0',
3705
- type: 'Object',
3706
- },
3707
- ],
3708
- },
3709
- {
3710
- name: 'isEmpty',
3711
- returnType: 'boolean',
3712
- },
3713
- {
3714
- name: 'size',
3715
- returnType: 'int',
3716
- },
3717
- ],
3718
- },
3719
- Set: {
3720
- methods: [
3721
- {
3722
- name: 'contains',
3723
- returnType: 'boolean',
3724
- params: [
3725
- {
3726
- name: 'arg0',
3727
- type: 'Object',
3728
- },
3729
- ],
3730
- },
3731
- {
3732
- name: 'isEmpty',
3733
- returnType: 'boolean',
3734
- },
3735
- {
3736
- name: 'size',
3737
- returnType: 'int',
3738
- },
3739
- ],
3740
- },
3741
- String: {
3742
- methods: [
3743
- {
3744
- name: 'equals',
3745
- returnType: 'boolean',
3746
- params: [
3747
- {
3748
- name: 'arg0',
3749
- type: 'Object',
3750
- },
3751
- ],
3752
- },
3753
- {
3754
- name: 'length',
3755
- returnType: 'int',
3756
- },
3757
- {
3758
- name: 'toString',
3759
- returnType: 'String',
3760
- },
3761
- {
3762
- name: 'hashCode',
3763
- returnType: 'int',
3764
- },
3765
- {
3766
- name: 'getChars',
3767
- returnType: 'void',
3768
- params: [
3769
- {
3770
- name: 'arg0',
3771
- type: 'int',
3772
- },
3773
- {
3774
- name: 'arg1',
3775
- type: 'int',
3776
- },
3777
- {
3778
- name: 'arg2',
3779
- type: 'char[]',
3780
- },
3781
- {
3782
- name: 'arg3',
3783
- type: 'int',
3784
- },
3785
- ],
3786
- },
3787
- {
3788
- name: 'compareTo',
3789
- returnType: 'int',
3790
- params: [
3791
- {
3792
- name: 'arg0',
3793
- type: 'String',
3794
- },
3795
- ],
3796
- },
3797
- {
3798
- name: 'compareTo',
3799
- returnType: 'int',
3800
- params: [
3801
- {
3802
- name: 'arg0',
3803
- type: 'Object',
3804
- },
3805
- ],
3806
- },
3807
- {
3808
- name: 'indexOf',
3809
- returnType: 'int',
3810
- params: [
3811
- {
3812
- name: 'arg0',
3813
- type: 'String',
3814
- },
3815
- {
3816
- name: 'arg1',
3817
- type: 'int',
3818
- },
3819
- ],
3820
- },
3821
- {
3822
- name: 'indexOf',
3823
- returnType: 'int',
3824
- params: [
3825
- {
3826
- name: 'arg0',
3827
- type: 'int',
3828
- },
3829
- ],
3830
- },
3831
- {
3832
- name: 'indexOf',
3833
- returnType: 'int',
3834
- params: [
3835
- {
3836
- name: 'arg0',
3837
- type: 'int',
3838
- },
3839
- {
3840
- name: 'arg1',
3841
- type: 'int',
3842
- },
3843
- ],
3844
- },
3845
- {
3846
- name: 'indexOf',
3847
- returnType: 'int',
3848
- params: [
3849
- {
3850
- name: 'arg0',
3851
- type: 'String',
3852
- },
3853
- ],
3854
- },
3855
- {
3856
- name: 'valueOf',
3857
- returnType: 'String',
3858
- params: [
3859
- {
3860
- name: 'arg0',
3861
- type: 'long',
3862
- },
3863
- ],
3864
- },
3865
- {
3866
- name: 'valueOf',
3867
- returnType: 'String',
3868
- params: [
3869
- {
3870
- name: 'arg0',
3871
- type: 'int',
3872
- },
3873
- ],
3874
- },
3875
- {
3876
- name: 'valueOf',
3877
- returnType: 'String',
3878
- params: [
3879
- {
3880
- name: 'arg0',
3881
- type: 'char',
3882
- },
3883
- ],
3884
- },
3885
- {
3886
- name: 'valueOf',
3887
- returnType: 'String',
3888
- params: [
3889
- {
3890
- name: 'arg0',
3891
- type: 'double',
3892
- },
3893
- ],
3894
- },
3895
- {
3896
- name: 'valueOf',
3897
- returnType: 'String',
3898
- params: [
3899
- {
3900
- name: 'arg0',
3901
- type: 'float',
3902
- },
3903
- ],
3904
- },
3905
- {
3906
- name: 'valueOf',
3907
- returnType: 'String',
3908
- params: [
3909
- {
3910
- name: 'arg0',
3911
- type: 'Object',
3912
- },
3913
- ],
3914
- },
3915
- {
3916
- name: 'valueOf',
3917
- returnType: 'String',
3918
- params: [
3919
- {
3920
- name: 'arg0',
3921
- type: 'char[]',
3922
- },
3923
- ],
3924
- },
3925
- {
3926
- name: 'valueOf',
3927
- returnType: 'String',
3928
- params: [
3929
- {
3930
- name: 'arg0',
3931
- type: 'boolean',
3932
- },
3933
- ],
3934
- },
3935
- {
3936
- name: 'valueOf',
3937
- returnType: 'String',
3938
- params: [
3939
- {
3940
- name: 'arg0',
3941
- type: 'char[]',
3942
- },
3943
- {
3944
- name: 'arg1',
3945
- type: 'int',
3946
- },
3947
- {
3948
- name: 'arg2',
3949
- type: 'int',
3950
- },
3951
- ],
3952
- },
3953
- {
3954
- name: 'isEmpty',
3955
- returnType: 'boolean',
3956
- },
3957
- {
3958
- name: 'charAt',
3959
- returnType: 'char',
3960
- params: [
3961
- {
3962
- name: 'arg0',
3963
- type: 'int',
3964
- },
3965
- ],
3966
- },
3967
- {
3968
- name: 'codePointAt',
3969
- returnType: 'int',
3970
- params: [
3971
- {
3972
- name: 'arg0',
3973
- type: 'int',
3974
- },
3975
- ],
3976
- },
3977
- {
3978
- name: 'codePointBefore',
3979
- returnType: 'int',
3980
- params: [
3981
- {
3982
- name: 'arg0',
3983
- type: 'int',
3984
- },
3985
- ],
3986
- },
3987
- {
3988
- name: 'codePointCount',
3989
- returnType: 'int',
3990
- params: [
3991
- {
3992
- name: 'arg0',
3993
- type: 'int',
3994
- },
3995
- {
3996
- name: 'arg1',
3997
- type: 'int',
3998
- },
3999
- ],
4000
- },
4001
- {
4002
- name: 'offsetByCodePoints',
4003
- returnType: 'int',
4004
- params: [
4005
- {
4006
- name: 'arg0',
4007
- type: 'int',
4008
- },
4009
- {
4010
- name: 'arg1',
4011
- type: 'int',
4012
- },
4013
- ],
4014
- },
4015
- {
4016
- name: 'getBytes',
4017
- returnType: 'byte[]',
4018
- params: [
4019
- {
4020
- name: 'arg0',
4021
- type: 'Charset',
4022
- },
4023
- ],
4024
- },
4025
- {
4026
- name: 'getBytes',
4027
- returnType: 'void',
4028
- params: [
4029
- {
4030
- name: 'arg0',
4031
- type: 'int',
4032
- },
4033
- {
4034
- name: 'arg1',
4035
- type: 'int',
4036
- },
4037
- {
4038
- name: 'arg2',
4039
- type: 'byte[]',
4040
- },
4041
- {
4042
- name: 'arg3',
4043
- type: 'int',
4044
- },
4045
- ],
4046
- },
4047
- {
4048
- name: 'getBytes',
4049
- returnType: 'byte[]',
4050
- params: [
4051
- {
4052
- name: 'arg0',
4053
- type: 'String',
4054
- },
4055
- ],
4056
- },
4057
- {
4058
- name: 'getBytes',
4059
- returnType: 'byte[]',
4060
- },
4061
- {
4062
- name: 'contentEquals',
4063
- returnType: 'boolean',
4064
- params: [
4065
- {
4066
- name: 'arg0',
4067
- type: 'StringBuffer',
4068
- },
4069
- ],
4070
- },
4071
- {
4072
- name: 'contentEquals',
4073
- returnType: 'boolean',
4074
- params: [
4075
- {
4076
- name: 'arg0',
4077
- type: 'CharSequence',
4078
- },
4079
- ],
4080
- },
4081
- {
4082
- name: 'equalsIgnoreCase',
4083
- returnType: 'boolean',
4084
- params: [
4085
- {
4086
- name: 'arg0',
4087
- type: 'String',
4088
- },
4089
- ],
4090
- },
4091
- {
4092
- name: 'regionMatches',
4093
- returnType: 'boolean',
4094
- params: [
4095
- {
4096
- name: 'arg0',
4097
- type: 'boolean',
4098
- },
4099
- {
4100
- name: 'arg1',
4101
- type: 'int',
4102
- },
4103
- {
4104
- name: 'arg2',
4105
- type: 'String',
4106
- },
4107
- {
4108
- name: 'arg3',
4109
- type: 'int',
4110
- },
4111
- {
4112
- name: 'arg4',
4113
- type: 'int',
4114
- },
4115
- ],
4116
- },
4117
- {
4118
- name: 'regionMatches',
4119
- returnType: 'boolean',
4120
- params: [
4121
- {
4122
- name: 'arg0',
4123
- type: 'int',
4124
- },
4125
- {
4126
- name: 'arg1',
4127
- type: 'String',
4128
- },
4129
- {
4130
- name: 'arg2',
4131
- type: 'int',
4132
- },
4133
- {
4134
- name: 'arg3',
4135
- type: 'int',
4136
- },
4137
- ],
4138
- },
4139
- {
4140
- name: 'compareToIgnoreCase',
4141
- returnType: 'int',
4142
- params: [
4143
- {
4144
- name: 'arg0',
4145
- type: 'String',
4146
- },
4147
- ],
4148
- },
4149
- {
4150
- name: 'startsWith',
4151
- returnType: 'boolean',
4152
- params: [
4153
- {
4154
- name: 'arg0',
4155
- type: 'String',
4156
- },
4157
- {
4158
- name: 'arg1',
4159
- type: 'int',
4160
- },
4161
- ],
4162
- },
4163
- {
4164
- name: 'startsWith',
4165
- returnType: 'boolean',
4166
- params: [
4167
- {
4168
- name: 'arg0',
4169
- type: 'String',
4170
- },
4171
- ],
4172
- },
4173
- {
4174
- name: 'endsWith',
4175
- returnType: 'boolean',
4176
- params: [
4177
- {
4178
- name: 'arg0',
4179
- type: 'String',
4180
- },
4181
- ],
4182
- },
4183
- {
4184
- name: 'lastIndexOf',
4185
- returnType: 'int',
4186
- params: [
4187
- {
4188
- name: 'arg0',
4189
- type: 'String',
4190
- },
4191
- {
4192
- name: 'arg1',
4193
- type: 'int',
4194
- },
4195
- ],
4196
- },
4197
- {
4198
- name: 'lastIndexOf',
4199
- returnType: 'int',
4200
- params: [
4201
- {
4202
- name: 'arg0',
4203
- type: 'String',
4204
- },
4205
- ],
4206
- },
4207
- {
4208
- name: 'lastIndexOf',
4209
- returnType: 'int',
4210
- params: [
4211
- {
4212
- name: 'arg0',
4213
- type: 'int',
4214
- },
4215
- {
4216
- name: 'arg1',
4217
- type: 'int',
4218
- },
4219
- ],
4220
- },
4221
- {
4222
- name: 'lastIndexOf',
4223
- returnType: 'int',
4224
- params: [
4225
- {
4226
- name: 'arg0',
4227
- type: 'int',
4228
- },
4229
- ],
4230
- },
4231
- {
4232
- name: 'substring',
4233
- returnType: 'String',
4234
- params: [
4235
- {
4236
- name: 'arg0',
4237
- type: 'int',
4238
- },
4239
- ],
4240
- },
4241
- {
4242
- name: 'substring',
4243
- returnType: 'String',
4244
- params: [
4245
- {
4246
- name: 'arg0',
4247
- type: 'int',
4248
- },
4249
- {
4250
- name: 'arg1',
4251
- type: 'int',
4252
- },
4253
- ],
4254
- },
4255
- {
4256
- name: 'subSequence',
4257
- returnType: 'CharSequence',
4258
- params: [
4259
- {
4260
- name: 'arg0',
4261
- type: 'int',
4262
- },
4263
- {
4264
- name: 'arg1',
4265
- type: 'int',
4266
- },
4267
- ],
4268
- },
4269
- {
4270
- name: 'concat',
4271
- returnType: 'String',
4272
- params: [
4273
- {
4274
- name: 'arg0',
4275
- type: 'String',
4276
- },
4277
- ],
4278
- },
4279
- {
4280
- name: 'replace',
4281
- returnType: 'String',
4282
- params: [
4283
- {
4284
- name: 'arg0',
4285
- type: 'CharSequence',
4286
- },
4287
- {
4288
- name: 'arg1',
4289
- type: 'CharSequence',
4290
- },
4291
- ],
4292
- },
4293
- {
4294
- name: 'replace',
4295
- returnType: 'String',
4296
- params: [
4297
- {
4298
- name: 'arg0',
4299
- type: 'char',
4300
- },
4301
- {
4302
- name: 'arg1',
4303
- type: 'char',
4304
- },
4305
- ],
4306
- },
4307
- {
4308
- name: 'matches',
4309
- returnType: 'boolean',
4310
- params: [
4311
- {
4312
- name: 'arg0',
4313
- type: 'String',
4314
- },
4315
- ],
4316
- },
4317
- {
4318
- name: 'contains',
4319
- returnType: 'boolean',
4320
- params: [
4321
- {
4322
- name: 'arg0',
4323
- type: 'CharSequence',
4324
- },
4325
- ],
4326
- },
4327
- {
4328
- name: 'replaceFirst',
4329
- returnType: 'String',
4330
- params: [
4331
- {
4332
- name: 'arg0',
4333
- type: 'String',
4334
- },
4335
- {
4336
- name: 'arg1',
4337
- type: 'String',
4338
- },
4339
- ],
4340
- },
4341
- {
4342
- name: 'replaceAll',
4343
- returnType: 'String',
4344
- params: [
4345
- {
4346
- name: 'arg0',
4347
- type: 'String',
4348
- },
4349
- {
4350
- name: 'arg1',
4351
- type: 'String',
4352
- },
4353
- ],
4354
- },
4355
- {
4356
- name: 'split',
4357
- returnType: 'String[]',
4358
- params: [
4359
- {
4360
- name: 'arg0',
4361
- type: 'String',
4362
- },
4363
- ],
4364
- },
4365
- {
4366
- name: 'split',
4367
- returnType: 'String[]',
4368
- params: [
4369
- {
4370
- name: 'arg0',
4371
- type: 'String',
4372
- },
4373
- {
4374
- name: 'arg1',
4375
- type: 'int',
4376
- },
4377
- ],
4378
- },
4379
- {
4380
- name: 'join',
4381
- returnType: 'String',
4382
- params: [
4383
- {
4384
- name: 'arg0',
4385
- type: 'CharSequence',
4386
- },
4387
- {
4388
- name: 'arg1',
4389
- type: 'CharSequence[]',
4390
- },
4391
- ],
4392
- },
4393
- {
4394
- name: 'join',
4395
- returnType: 'String',
4396
- params: [
4397
- {
4398
- name: 'arg0',
4399
- type: 'CharSequence',
4400
- },
4401
- {
4402
- name: 'arg1',
4403
- type: 'Iterable',
4404
- },
4405
- ],
4406
- },
4407
- {
4408
- name: 'toLowerCase',
4409
- returnType: 'String',
4410
- params: [
4411
- {
4412
- name: 'arg0',
4413
- type: 'Locale',
4414
- },
4415
- ],
4416
- },
4417
- {
4418
- name: 'toLowerCase',
4419
- returnType: 'String',
4420
- },
4421
- {
4422
- name: 'toUpperCase',
4423
- returnType: 'String',
4424
- params: [
4425
- {
4426
- name: 'arg0',
4427
- type: 'Locale',
4428
- },
4429
- ],
4430
- },
4431
- {
4432
- name: 'toUpperCase',
4433
- returnType: 'String',
4434
- },
4435
- {
4436
- name: 'trim',
4437
- returnType: 'String',
4438
- },
4439
- {
4440
- name: 'strip',
4441
- returnType: 'String',
4442
- },
4443
- {
4444
- name: 'stripLeading',
4445
- returnType: 'String',
4446
- },
4447
- {
4448
- name: 'stripTrailing',
4449
- returnType: 'String',
4450
- },
4451
- {
4452
- name: 'isBlank',
4453
- returnType: 'boolean',
4454
- },
4455
- {
4456
- name: 'lines',
4457
- returnType: 'Stream',
4458
- },
4459
- {
4460
- name: 'chars',
4461
- returnType: 'IntStream',
4462
- },
4463
- {
4464
- name: 'codePoints',
4465
- returnType: 'IntStream',
4466
- },
4467
- {
4468
- name: 'toCharArray',
4469
- returnType: 'char[]',
4470
- },
4471
- {
4472
- name: 'format',
4473
- returnType: 'String',
4474
- params: [
4475
- {
4476
- name: 'arg0',
4477
- type: 'String',
4478
- },
4479
- {
4480
- name: 'arg1',
4481
- type: 'Object[]',
4482
- },
4483
- ],
4484
- },
4485
- {
4486
- name: 'format',
4487
- returnType: 'String',
4488
- params: [
4489
- {
4490
- name: 'arg0',
4491
- type: 'Locale',
4492
- },
4493
- {
4494
- name: 'arg1',
4495
- type: 'String',
4496
- },
4497
- {
4498
- name: 'arg2',
4499
- type: 'Object[]',
4500
- },
4501
- ],
4502
- },
4503
- {
4504
- name: 'copyValueOf',
4505
- returnType: 'String',
4506
- params: [
4507
- {
4508
- name: 'arg0',
4509
- type: 'char[]',
4510
- },
4511
- {
4512
- name: 'arg1',
4513
- type: 'int',
4514
- },
4515
- {
4516
- name: 'arg2',
4517
- type: 'int',
4518
- },
4519
- ],
4520
- },
4521
- {
4522
- name: 'copyValueOf',
4523
- returnType: 'String',
4524
- params: [
4525
- {
4526
- name: 'arg0',
4527
- type: 'char[]',
4528
- },
4529
- ],
4530
- },
4531
- {
4532
- name: 'intern',
4533
- returnType: 'String',
4534
- },
4535
- {
4536
- name: 'repeat',
4537
- returnType: 'String',
4538
- params: [
4539
- {
4540
- name: 'arg0',
4541
- type: 'int',
4542
- },
4543
- ],
4544
- },
4545
- {
4546
- name: 'equals',
4547
- returnType: 'boolean',
4548
- params: [
4549
- {
4550
- name: 'arg0',
4551
- type: 'Object',
4552
- },
4553
- ],
4554
- },
4555
- {
4556
- name: 'hashCode',
4557
- returnType: 'int',
4558
- },
4559
- {
4560
- name: 'toString',
4561
- returnType: 'String',
4562
- },
4563
- ],
4564
- },
4565
- 'String[]': {
4566
- methods: [
4567
- {
4568
- name: 'equals',
4569
- returnType: 'boolean',
4570
- params: [
4571
- {
4572
- name: 'arg0',
4573
- type: 'Object',
4574
- },
4575
- ],
4576
- },
4577
- {
4578
- name: 'hashCode',
4579
- returnType: 'int',
4580
- },
4581
- {
4582
- name: 'toString',
4583
- returnType: 'String',
4584
- },
4585
- ],
4586
- },
4587
- },
4588
- };
4589
-
4590
- /*
4591
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
4592
- *
4593
- * Licensed under the Apache License, Version 2.0 (the "License");
4594
- * you may not use this file except in compliance with the License.
4595
- * You may obtain a copy of the License at
4596
- *
4597
- * http://www.apache.org/licenses/LICENSE-2.0
4598
- *
4599
- * Unless required by applicable law or agreed to in writing, software
4600
- * distributed under the License is distributed on an "AS IS" BASIS,
4601
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4602
- * See the License for the specific language governing permissions and
4603
- * limitations under the License.
4604
- */
4605
-
4606
- var SpelService = /** @class */ (function (_super) {
4607
- __extends(SpelService, _super);
4608
- function SpelService() {
4609
- return _super !== null && _super.apply(this, arguments) || this;
4610
- }
4611
- SpelService.prototype.getGrammar = function () {
4612
- return rxjs.of(fakeGrammar());
4613
- };
4614
- return SpelService;
4615
- }(SpelServiceAbstract));
4616
- SpelService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SpelService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
4617
- SpelService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SpelService, providedIn: 'root' });
4618
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SpelService, decorators: [{
4619
- type: i0.Injectable,
4620
- args: [{
4621
- providedIn: 'root',
4622
- }]
4623
- }] });
4624
-
4625
- /*
4626
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
4627
- *
4628
- * Licensed under the Apache License, Version 2.0 (the "License");
4629
- * you may not use this file except in compliance with the License.
4630
- * You may obtain a copy of the License at
4631
- *
4632
- * http://www.apache.org/licenses/LICENSE-2.0
4633
- *
4634
- * Unless required by applicable law or agreed to in writing, software
4635
- * distributed under the License is distributed on an "AS IS" BASIS,
4636
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4637
- * See the License for the specific language governing permissions and
4638
- * limitations under the License.
4639
- */
4640
- var GioPolicyStudioModule = /** @class */ (function () {
4641
- function GioPolicyStudioModule() {
4642
- }
4643
- GioPolicyStudioModule.forSpecs = function () {
4644
- return {
4645
- ngModule: GioPolicyStudioModule,
4646
- providers: [
4647
- {
4648
- provide: 'FlowService',
4649
- useClass: FlowService,
4650
- },
4651
- {
4652
- provide: 'PolicyService',
4653
- useClass: PolicyService,
4654
- },
4655
- {
4656
- provide: 'ResourceService',
4657
- useClass: ResourceService,
4658
- },
4659
- {
4660
- provide: 'SpelService',
4661
- useClass: SpelService,
4662
- },
4663
- ],
4664
- };
4665
- };
4666
- return GioPolicyStudioModule;
4667
- }());
4668
- GioPolicyStudioModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4669
- GioPolicyStudioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioModule, declarations: [GioPolicyStudioComponent], exports: [GioPolicyStudioComponent] });
4670
- GioPolicyStudioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioModule, imports: [[]] });
4671
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GioPolicyStudioModule, decorators: [{
4672
- type: i0.NgModule,
4673
- args: [{
4674
- declarations: [GioPolicyStudioComponent],
4675
- imports: [],
4676
- exports: [GioPolicyStudioComponent],
4677
- schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
4678
- }]
4679
- }] });
4680
-
4681
- /*
4682
- * Copyright (C) 2022 The Gravitee team (http://gravitee.io)
4683
- *
4684
- * Licensed under the Apache License, Version 2.0 (the "License");
4685
- * you may not use this file except in compliance with the License.
4686
- * You may obtain a copy of the License at
4687
- *
4688
- * http://www.apache.org/licenses/LICENSE-2.0
4689
- *
4690
- * Unless required by applicable law or agreed to in writing, software
4691
- * distributed under the License is distributed on an "AS IS" BASIS,
4692
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4693
- * See the License for the specific language governing permissions and
4694
- * limitations under the License.
4695
- */
4696
-
4697
- /**
4698
- * Generated bundle index. Do not edit.
4699
- */
4700
-
4701
- exports.FlowServiceAbstract = FlowServiceAbstract;
4702
- exports.GioPolicyStudioComponent = GioPolicyStudioComponent;
4703
- exports.GioPolicyStudioModule = GioPolicyStudioModule;
4704
- exports.PolicyServiceAbstract = PolicyServiceAbstract;
4705
- exports.ResourceServiceAbstract = ResourceServiceAbstract;
4706
- exports.SpelServiceAbstract = SpelServiceAbstract;
4707
-
4708
- Object.defineProperty(exports, '__esModule', { value: true });
4709
-
4710
- }));
4711
- //# sourceMappingURL=gravitee-ui-policy-studio-angular.umd.js.map