@researchdatabox/sails-hook-redbox-servicenow-catalog 0.0.1-beta.35
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.
- package/README.md +97 -0
- package/assets/fonts/.gitkeep +1 -0
- package/assets/images/blank.png +0 -0
- package/bootstrap-data/vocabularies/servicenow-catalog-storage-sizes.json +11 -0
- package/bootstrap-data/vocabularies/servicenow-catalog-storage-types.json +12 -0
- package/dist/api/configmodels/ServiceNowCatalogAppConfig.d.ts +542 -0
- package/dist/api/configmodels/ServiceNowCatalogAppConfig.d.ts.map +1 -0
- package/dist/api/configmodels/ServiceNowCatalogAppConfig.js +173 -0
- package/dist/api/controllers/CatalogController.d.ts +22 -0
- package/dist/api/controllers/CatalogController.d.ts.map +1 -0
- package/dist/api/controllers/CatalogController.js +196 -0
- package/dist/api/controllers/index.d.ts +8 -0
- package/dist/api/controllers/index.d.ts.map +1 -0
- package/dist/api/controllers/index.js +16 -0
- package/dist/api/services/ServicenowCatalogService.d.ts +50 -0
- package/dist/api/services/ServicenowCatalogService.d.ts.map +1 -0
- package/dist/api/services/ServicenowCatalogService.js +347 -0
- package/dist/api/services/index.d.ts +8 -0
- package/dist/api/services/index.d.ts.map +1 -0
- package/dist/api/services/index.js +16 -0
- package/dist/api/services/servicenow/audit.d.ts +72 -0
- package/dist/api/services/servicenow/audit.d.ts.map +1 -0
- package/dist/api/services/servicenow/audit.js +155 -0
- package/dist/api/services/servicenow/context.d.ts +19 -0
- package/dist/api/services/servicenow/context.d.ts.map +1 -0
- package/dist/api/services/servicenow/context.js +7 -0
- package/dist/api/services/servicenow/errors.d.ts +87 -0
- package/dist/api/services/servicenow/errors.d.ts.map +1 -0
- package/dist/api/services/servicenow/errors.js +80 -0
- package/dist/api/services/servicenow/http.d.ts +16 -0
- package/dist/api/services/servicenow/http.d.ts.map +1 -0
- package/dist/api/services/servicenow/http.js +161 -0
- package/dist/api/services/servicenow/mapping.d.ts +19 -0
- package/dist/api/services/servicenow/mapping.d.ts.map +1 -0
- package/dist/api/services/servicenow/mapping.js +92 -0
- package/dist/api/services/servicenow/runtime.d.ts +8 -0
- package/dist/api/services/servicenow/runtime.d.ts.map +1 -0
- package/dist/api/services/servicenow/runtime.js +44 -0
- package/dist/config/auth.d.ts +3 -0
- package/dist/config/auth.d.ts.map +1 -0
- package/dist/config/auth.js +13 -0
- package/dist/config/recordtypes.d.ts +3 -0
- package/dist/config/recordtypes.d.ts.map +1 -0
- package/dist/config/recordtypes.js +35 -0
- package/dist/config/servicenow.d.ts +7 -0
- package/dist/config/servicenow.d.ts.map +1 -0
- package/dist/config/servicenow.js +10 -0
- package/dist/config/workflows.d.ts +3 -0
- package/dist/config/workflows.d.ts.map +1 -0
- package/dist/config/workflows.js +83 -0
- package/dist/config/workspacetypes.d.ts +3 -0
- package/dist/config/workspacetypes.d.ts.map +1 -0
- package/dist/config/workspacetypes.js +13 -0
- package/dist/form-config/index.d.ts +3 -0
- package/dist/form-config/index.d.ts.map +1 -0
- package/dist/form-config/index.js +15 -0
- package/dist/form-config/servicenow-catalog-1.0-draft.d.ts +3 -0
- package/dist/form-config/servicenow-catalog-1.0-draft.d.ts.map +1 -0
- package/dist/form-config/servicenow-catalog-1.0-draft.js +5 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioned.d.ts +3 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioned.d.ts.map +1 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioned.js +5 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioning.d.ts +3 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioning.d.ts.map +1 -0
- package/dist/form-config/servicenow-catalog-1.0-provisioning.js +5 -0
- package/dist/form-config/servicenow-catalog-common.d.ts +3 -0
- package/dist/form-config/servicenow-catalog-common.d.ts.map +1 -0
- package/dist/form-config/servicenow-catalog-common.js +250 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +119 -0
- package/language-defaults/.gitkeep +1 -0
- package/language-defaults/en/translation.json +21 -0
- package/package.json +55 -0
- package/views/.gitkeep +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# ServiceNow Catalog Hook for ReDBox v5
|
|
2
|
+
|
|
3
|
+
This Sails hook adds a ServiceNow-backed workspace record type to ReDBox. Creating a
|
|
4
|
+
`servicenow-catalog` workspace can submit a configured ServiceNow catalog request,
|
|
5
|
+
write the returned ServiceNow identifiers onto the workspace, and associate the
|
|
6
|
+
workspace with its parent research data management plan.
|
|
7
|
+
|
|
8
|
+
## ReDBox v5 structure
|
|
9
|
+
|
|
10
|
+
- `src/index.ts` registers hook config, routes, controllers, services, and forms.
|
|
11
|
+
- `src/config` contains typed ServiceNow, record type, workflow, authorization, and workspace type config.
|
|
12
|
+
- `src/form-config` contains the draft, provisioning, and provisioned form stages.
|
|
13
|
+
- `bootstrap-data/vocabularies` contains the production option vocabularies used by the forms.
|
|
14
|
+
- `language-defaults/en/translation.json` contains the hook's default English labels.
|
|
15
|
+
- `legacy-form-config` preserves the source v4 form and the single-form wrappers used by the migration tool.
|
|
16
|
+
|
|
17
|
+
The legacy Angular 5 catalog app remains under `angular/catalog` as migration evidence.
|
|
18
|
+
It depends on the removed v4 shared Angular tree and is not part of the v5 build.
|
|
19
|
+
|
|
20
|
+
## Configuration
|
|
21
|
+
|
|
22
|
+
The record trigger uses the brand-aware `servicenowCatalog` application configuration.
|
|
23
|
+
It is disabled by default. Configure and enable it independently for each brand through
|
|
24
|
+
the ReDBox Application Configuration administration interface.
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"enabled": true,
|
|
29
|
+
"connection": {
|
|
30
|
+
"url": "https://example.service-now.com/api/sn_sc/servicecatalog/items/ITEM_ID/order_now",
|
|
31
|
+
"method": "post",
|
|
32
|
+
"headers": {
|
|
33
|
+
"Authorization": "Basic BASE64_CREDENTIALS"
|
|
34
|
+
},
|
|
35
|
+
"timeoutMs": 30000,
|
|
36
|
+
"totalTimeoutMs": 120000,
|
|
37
|
+
"retry": {
|
|
38
|
+
"maxAttempts": 3,
|
|
39
|
+
"baseDelayMs": 1000,
|
|
40
|
+
"maxDelayMs": 10000,
|
|
41
|
+
"retryOnStatusCodes": [408, 429, 500, 502, 503, 504]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"requestFields": [
|
|
45
|
+
{
|
|
46
|
+
"destination": "variables.short_description",
|
|
47
|
+
"source": { "kind": "handlebars", "template": "{{workspace.metadata.title}}" }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"destination": "variables.requested_size",
|
|
51
|
+
"source": { "kind": "jsonata", "expression": "workspace.metadata.storage_size" }
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Mappings use the same path, Handlebars, and JSONata value-binding model as the core DOI
|
|
58
|
+
and Figshare integrations. Response mappings write ServiceNow identifiers back to the
|
|
59
|
+
workspace. Trigger options can override the brand configuration for a single run.
|
|
60
|
+
|
|
61
|
+
OAuth client-credentials, password, and refresh-token grants are supported through the
|
|
62
|
+
`oauth` block. Application Configuration masks OAuth secrets and the Authorization
|
|
63
|
+
header; do not commit raw credentials to this hook.
|
|
64
|
+
|
|
65
|
+
The compatibility endpoints under `/:branding/:portal/ws/catalog` use the legacy
|
|
66
|
+
`sails.config.workspaces.catalog` settings when the standalone workspace flow is still enabled.
|
|
67
|
+
|
|
68
|
+
## Development
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm install
|
|
72
|
+
npm run compile
|
|
73
|
+
npm run test:unit
|
|
74
|
+
redbox-dev-tools check
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The Docker-backed portal integration harness is available with:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm run test:integration:mocha
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## CI and releases
|
|
84
|
+
|
|
85
|
+
CircleCI compiles and runs the unit suite for every branch. Stable Git tags matching
|
|
86
|
+
`vMAJOR.MINOR.PATCH` run the same checks and publish the matching package version with
|
|
87
|
+
the npm `latest` dist-tag.
|
|
88
|
+
|
|
89
|
+
Beta packages are published by triggering a CircleCI pipeline with:
|
|
90
|
+
|
|
91
|
+
- `npm_publish_mode`: `beta`
|
|
92
|
+
- `npm_publish_version`: the stable base version, for example `1.2.3`
|
|
93
|
+
- `npm_publish_dist_tag`: `beta`, `next`, or `alpha`
|
|
94
|
+
|
|
95
|
+
The published prerelease version includes the pipeline number, such as
|
|
96
|
+
`1.2.3-beta.456`. Publishing uses npm trusted publishing through the CircleCI
|
|
97
|
+
`npm-publish` context.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ServiceNow Catalog Storage Sizes",
|
|
3
|
+
"slug": "servicenow-catalog-storage-sizes",
|
|
4
|
+
"description": "Storage sizes available when creating a ServiceNow catalog request.",
|
|
5
|
+
"type": "flat",
|
|
6
|
+
"entries": [
|
|
7
|
+
{ "label": "@servicenow-catalog-storage-size-less-than-1tb", "value": "@servicenow-catalog-storage-size-less-than-1tb", "order": 0 },
|
|
8
|
+
{ "label": "@servicenow-catalog-storage-size-1-5tb", "value": "@servicenow-catalog-storage-size-1-5tb", "order": 1 },
|
|
9
|
+
{ "label": "@servicenow-catalog-storage-size-more-than-5tb", "value": "@servicenow-catalog-storage-size-more-than-5tb", "order": 2 }
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ServiceNow Catalog Storage Types",
|
|
3
|
+
"slug": "servicenow-catalog-storage-types",
|
|
4
|
+
"description": "Storage types available when creating a ServiceNow catalog request.",
|
|
5
|
+
"type": "flat",
|
|
6
|
+
"entries": [
|
|
7
|
+
{ "label": "@servicenow-catalog-storage-type-hpc", "value": "@servicenow-catalog-storage-type-hpc", "order": 0 },
|
|
8
|
+
{ "label": "@servicenow-catalog-storage-type-cloudstor", "value": "@servicenow-catalog-storage-type-cloudstor", "order": 1 },
|
|
9
|
+
{ "label": "@servicenow-catalog-storage-type-s3", "value": "@servicenow-catalog-storage-type-s3", "order": 2 },
|
|
10
|
+
{ "label": "@servicenow-catalog-storage-type-gcp", "value": "@servicenow-catalog-storage-type-gcp", "order": 3 }
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import type { ValueBinding as CoreValueBinding } from '@researchdatabox/redbox-core';
|
|
2
|
+
/** Brand-aware application configuration for the ServiceNow catalog integration. */
|
|
3
|
+
export type ValueBinding = CoreValueBinding;
|
|
4
|
+
export interface ServiceNowFieldMapping {
|
|
5
|
+
/** Dot-notation path in the target object the evaluated value is written to. */
|
|
6
|
+
destination: string;
|
|
7
|
+
source: ValueBinding;
|
|
8
|
+
/** Parse a string result as JSON before writing it to the destination. */
|
|
9
|
+
parseJson?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ServiceNowRetryConfig {
|
|
12
|
+
maxAttempts: number;
|
|
13
|
+
baseDelayMs: number;
|
|
14
|
+
maxDelayMs: number;
|
|
15
|
+
retryOnStatusCodes: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface ServiceNowConnectionConfig {
|
|
18
|
+
url: string;
|
|
19
|
+
method: string;
|
|
20
|
+
headers: Record<string, string>;
|
|
21
|
+
/** Per-attempt request timeout. */
|
|
22
|
+
timeoutMs: number;
|
|
23
|
+
/** Overall budget for the whole submit orchestration, retries included. */
|
|
24
|
+
totalTimeoutMs: number;
|
|
25
|
+
retry: ServiceNowRetryConfig;
|
|
26
|
+
}
|
|
27
|
+
export interface ServiceNowOAuthConfig {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
url: string;
|
|
30
|
+
clientId: string;
|
|
31
|
+
clientSecret: string;
|
|
32
|
+
scope?: string;
|
|
33
|
+
grantType: 'client_credentials' | 'password' | 'refresh_token';
|
|
34
|
+
username?: string;
|
|
35
|
+
password?: string;
|
|
36
|
+
refreshToken?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ServiceNowCatalogConfigData {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
connection: ServiceNowConnectionConfig;
|
|
41
|
+
oauth: ServiceNowOAuthConfig;
|
|
42
|
+
/** Static request body the request field mappings are applied over. */
|
|
43
|
+
bodyTemplate: Record<string, unknown>;
|
|
44
|
+
/** Mappings from the workspace/rdmp context into the outgoing request body. */
|
|
45
|
+
requestFields: ServiceNowFieldMapping[];
|
|
46
|
+
/** Mappings from the ServiceNow response into the workspace metadata. */
|
|
47
|
+
responseFields: ServiceNowFieldMapping[];
|
|
48
|
+
}
|
|
49
|
+
export declare class ServiceNowCatalogAppConfig implements ServiceNowCatalogConfigData {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
connection: ServiceNowConnectionConfig;
|
|
52
|
+
oauth: ServiceNowOAuthConfig;
|
|
53
|
+
bodyTemplate: Record<string, unknown>;
|
|
54
|
+
requestFields: ServiceNowFieldMapping[];
|
|
55
|
+
responseFields: ServiceNowFieldMapping[];
|
|
56
|
+
static getFieldOrder(): string[];
|
|
57
|
+
}
|
|
58
|
+
export declare const SERVICENOW_CATALOG_SCHEMA: {
|
|
59
|
+
type: string;
|
|
60
|
+
properties: {
|
|
61
|
+
enabled: {
|
|
62
|
+
type: string;
|
|
63
|
+
title: string;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
connection: {
|
|
67
|
+
type: string;
|
|
68
|
+
title: string;
|
|
69
|
+
properties: {
|
|
70
|
+
url: {
|
|
71
|
+
type: string;
|
|
72
|
+
title: string;
|
|
73
|
+
};
|
|
74
|
+
method: {
|
|
75
|
+
type: string;
|
|
76
|
+
title: string;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
headers: {
|
|
80
|
+
type: string;
|
|
81
|
+
title: string;
|
|
82
|
+
additionalProperties: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
default: {};
|
|
86
|
+
};
|
|
87
|
+
timeoutMs: {
|
|
88
|
+
type: string;
|
|
89
|
+
title: string;
|
|
90
|
+
minimum: number;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
totalTimeoutMs: {
|
|
94
|
+
type: string;
|
|
95
|
+
title: string;
|
|
96
|
+
minimum: number;
|
|
97
|
+
default: number;
|
|
98
|
+
};
|
|
99
|
+
retry: {
|
|
100
|
+
type: string;
|
|
101
|
+
title: string;
|
|
102
|
+
properties: {
|
|
103
|
+
maxAttempts: {
|
|
104
|
+
type: string;
|
|
105
|
+
title: string;
|
|
106
|
+
minimum: number;
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
baseDelayMs: {
|
|
110
|
+
type: string;
|
|
111
|
+
title: string;
|
|
112
|
+
minimum: number;
|
|
113
|
+
default: number;
|
|
114
|
+
};
|
|
115
|
+
maxDelayMs: {
|
|
116
|
+
type: string;
|
|
117
|
+
title: string;
|
|
118
|
+
minimum: number;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
retryOnStatusCodes: {
|
|
122
|
+
type: string;
|
|
123
|
+
title: string;
|
|
124
|
+
items: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
default: number[];
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
required: string[];
|
|
133
|
+
};
|
|
134
|
+
oauth: {
|
|
135
|
+
type: string;
|
|
136
|
+
title: string;
|
|
137
|
+
properties: {
|
|
138
|
+
enabled: {
|
|
139
|
+
type: string;
|
|
140
|
+
title: string;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
url: {
|
|
144
|
+
type: string;
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
clientId: {
|
|
148
|
+
type: string;
|
|
149
|
+
title: string;
|
|
150
|
+
};
|
|
151
|
+
clientSecret: {
|
|
152
|
+
type: string;
|
|
153
|
+
title: string;
|
|
154
|
+
};
|
|
155
|
+
scope: {
|
|
156
|
+
type: string;
|
|
157
|
+
title: string;
|
|
158
|
+
};
|
|
159
|
+
grantType: {
|
|
160
|
+
type: string;
|
|
161
|
+
title: string;
|
|
162
|
+
enum: string[];
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
username: {
|
|
166
|
+
type: string;
|
|
167
|
+
title: string;
|
|
168
|
+
};
|
|
169
|
+
password: {
|
|
170
|
+
type: string;
|
|
171
|
+
title: string;
|
|
172
|
+
};
|
|
173
|
+
refreshToken: {
|
|
174
|
+
type: string;
|
|
175
|
+
title: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
required: string[];
|
|
179
|
+
};
|
|
180
|
+
bodyTemplate: {
|
|
181
|
+
type: string;
|
|
182
|
+
title: string;
|
|
183
|
+
default: {};
|
|
184
|
+
};
|
|
185
|
+
requestFields: {
|
|
186
|
+
type: string;
|
|
187
|
+
title: string;
|
|
188
|
+
items: {
|
|
189
|
+
type: string;
|
|
190
|
+
title: string;
|
|
191
|
+
properties: {
|
|
192
|
+
destination: {
|
|
193
|
+
type: string;
|
|
194
|
+
title: string;
|
|
195
|
+
};
|
|
196
|
+
source: {
|
|
197
|
+
widget: {
|
|
198
|
+
formlyConfig: {
|
|
199
|
+
type: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
type: string;
|
|
203
|
+
title: string;
|
|
204
|
+
properties: {
|
|
205
|
+
kind: {
|
|
206
|
+
type: string;
|
|
207
|
+
title: string;
|
|
208
|
+
enum: string[];
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
path: {
|
|
212
|
+
type: string;
|
|
213
|
+
title: string;
|
|
214
|
+
};
|
|
215
|
+
template: {
|
|
216
|
+
type: string;
|
|
217
|
+
title: string;
|
|
218
|
+
};
|
|
219
|
+
expression: {
|
|
220
|
+
type: string;
|
|
221
|
+
title: string;
|
|
222
|
+
};
|
|
223
|
+
defaultValue: {
|
|
224
|
+
title: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
required: string[];
|
|
228
|
+
};
|
|
229
|
+
parseJson: {
|
|
230
|
+
type: string;
|
|
231
|
+
title: string;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
required: string[];
|
|
236
|
+
};
|
|
237
|
+
default: never[];
|
|
238
|
+
};
|
|
239
|
+
responseFields: {
|
|
240
|
+
type: string;
|
|
241
|
+
title: string;
|
|
242
|
+
items: {
|
|
243
|
+
type: string;
|
|
244
|
+
title: string;
|
|
245
|
+
properties: {
|
|
246
|
+
destination: {
|
|
247
|
+
type: string;
|
|
248
|
+
title: string;
|
|
249
|
+
};
|
|
250
|
+
source: {
|
|
251
|
+
widget: {
|
|
252
|
+
formlyConfig: {
|
|
253
|
+
type: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
type: string;
|
|
257
|
+
title: string;
|
|
258
|
+
properties: {
|
|
259
|
+
kind: {
|
|
260
|
+
type: string;
|
|
261
|
+
title: string;
|
|
262
|
+
enum: string[];
|
|
263
|
+
default: string;
|
|
264
|
+
};
|
|
265
|
+
path: {
|
|
266
|
+
type: string;
|
|
267
|
+
title: string;
|
|
268
|
+
};
|
|
269
|
+
template: {
|
|
270
|
+
type: string;
|
|
271
|
+
title: string;
|
|
272
|
+
};
|
|
273
|
+
expression: {
|
|
274
|
+
type: string;
|
|
275
|
+
title: string;
|
|
276
|
+
};
|
|
277
|
+
defaultValue: {
|
|
278
|
+
title: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
required: string[];
|
|
282
|
+
};
|
|
283
|
+
parseJson: {
|
|
284
|
+
type: string;
|
|
285
|
+
title: string;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
required: string[];
|
|
290
|
+
};
|
|
291
|
+
default: never[];
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
required: string[];
|
|
295
|
+
};
|
|
296
|
+
export declare const SERVICENOW_CATALOG_CONFIG_KEY = "servicenowCatalog";
|
|
297
|
+
export declare const SERVICENOW_CATALOG_CONFIG_MODEL: {
|
|
298
|
+
key: string;
|
|
299
|
+
modelName: string;
|
|
300
|
+
title: string;
|
|
301
|
+
class: typeof ServiceNowCatalogAppConfig;
|
|
302
|
+
schema: {
|
|
303
|
+
type: string;
|
|
304
|
+
properties: {
|
|
305
|
+
enabled: {
|
|
306
|
+
type: string;
|
|
307
|
+
title: string;
|
|
308
|
+
default: boolean;
|
|
309
|
+
};
|
|
310
|
+
connection: {
|
|
311
|
+
type: string;
|
|
312
|
+
title: string;
|
|
313
|
+
properties: {
|
|
314
|
+
url: {
|
|
315
|
+
type: string;
|
|
316
|
+
title: string;
|
|
317
|
+
};
|
|
318
|
+
method: {
|
|
319
|
+
type: string;
|
|
320
|
+
title: string;
|
|
321
|
+
default: string;
|
|
322
|
+
};
|
|
323
|
+
headers: {
|
|
324
|
+
type: string;
|
|
325
|
+
title: string;
|
|
326
|
+
additionalProperties: {
|
|
327
|
+
type: string;
|
|
328
|
+
};
|
|
329
|
+
default: {};
|
|
330
|
+
};
|
|
331
|
+
timeoutMs: {
|
|
332
|
+
type: string;
|
|
333
|
+
title: string;
|
|
334
|
+
minimum: number;
|
|
335
|
+
default: number;
|
|
336
|
+
};
|
|
337
|
+
totalTimeoutMs: {
|
|
338
|
+
type: string;
|
|
339
|
+
title: string;
|
|
340
|
+
minimum: number;
|
|
341
|
+
default: number;
|
|
342
|
+
};
|
|
343
|
+
retry: {
|
|
344
|
+
type: string;
|
|
345
|
+
title: string;
|
|
346
|
+
properties: {
|
|
347
|
+
maxAttempts: {
|
|
348
|
+
type: string;
|
|
349
|
+
title: string;
|
|
350
|
+
minimum: number;
|
|
351
|
+
default: number;
|
|
352
|
+
};
|
|
353
|
+
baseDelayMs: {
|
|
354
|
+
type: string;
|
|
355
|
+
title: string;
|
|
356
|
+
minimum: number;
|
|
357
|
+
default: number;
|
|
358
|
+
};
|
|
359
|
+
maxDelayMs: {
|
|
360
|
+
type: string;
|
|
361
|
+
title: string;
|
|
362
|
+
minimum: number;
|
|
363
|
+
default: number;
|
|
364
|
+
};
|
|
365
|
+
retryOnStatusCodes: {
|
|
366
|
+
type: string;
|
|
367
|
+
title: string;
|
|
368
|
+
items: {
|
|
369
|
+
type: string;
|
|
370
|
+
};
|
|
371
|
+
default: number[];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
required: string[];
|
|
377
|
+
};
|
|
378
|
+
oauth: {
|
|
379
|
+
type: string;
|
|
380
|
+
title: string;
|
|
381
|
+
properties: {
|
|
382
|
+
enabled: {
|
|
383
|
+
type: string;
|
|
384
|
+
title: string;
|
|
385
|
+
default: boolean;
|
|
386
|
+
};
|
|
387
|
+
url: {
|
|
388
|
+
type: string;
|
|
389
|
+
title: string;
|
|
390
|
+
};
|
|
391
|
+
clientId: {
|
|
392
|
+
type: string;
|
|
393
|
+
title: string;
|
|
394
|
+
};
|
|
395
|
+
clientSecret: {
|
|
396
|
+
type: string;
|
|
397
|
+
title: string;
|
|
398
|
+
};
|
|
399
|
+
scope: {
|
|
400
|
+
type: string;
|
|
401
|
+
title: string;
|
|
402
|
+
};
|
|
403
|
+
grantType: {
|
|
404
|
+
type: string;
|
|
405
|
+
title: string;
|
|
406
|
+
enum: string[];
|
|
407
|
+
default: string;
|
|
408
|
+
};
|
|
409
|
+
username: {
|
|
410
|
+
type: string;
|
|
411
|
+
title: string;
|
|
412
|
+
};
|
|
413
|
+
password: {
|
|
414
|
+
type: string;
|
|
415
|
+
title: string;
|
|
416
|
+
};
|
|
417
|
+
refreshToken: {
|
|
418
|
+
type: string;
|
|
419
|
+
title: string;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
required: string[];
|
|
423
|
+
};
|
|
424
|
+
bodyTemplate: {
|
|
425
|
+
type: string;
|
|
426
|
+
title: string;
|
|
427
|
+
default: {};
|
|
428
|
+
};
|
|
429
|
+
requestFields: {
|
|
430
|
+
type: string;
|
|
431
|
+
title: string;
|
|
432
|
+
items: {
|
|
433
|
+
type: string;
|
|
434
|
+
title: string;
|
|
435
|
+
properties: {
|
|
436
|
+
destination: {
|
|
437
|
+
type: string;
|
|
438
|
+
title: string;
|
|
439
|
+
};
|
|
440
|
+
source: {
|
|
441
|
+
widget: {
|
|
442
|
+
formlyConfig: {
|
|
443
|
+
type: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
type: string;
|
|
447
|
+
title: string;
|
|
448
|
+
properties: {
|
|
449
|
+
kind: {
|
|
450
|
+
type: string;
|
|
451
|
+
title: string;
|
|
452
|
+
enum: string[];
|
|
453
|
+
default: string;
|
|
454
|
+
};
|
|
455
|
+
path: {
|
|
456
|
+
type: string;
|
|
457
|
+
title: string;
|
|
458
|
+
};
|
|
459
|
+
template: {
|
|
460
|
+
type: string;
|
|
461
|
+
title: string;
|
|
462
|
+
};
|
|
463
|
+
expression: {
|
|
464
|
+
type: string;
|
|
465
|
+
title: string;
|
|
466
|
+
};
|
|
467
|
+
defaultValue: {
|
|
468
|
+
title: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
required: string[];
|
|
472
|
+
};
|
|
473
|
+
parseJson: {
|
|
474
|
+
type: string;
|
|
475
|
+
title: string;
|
|
476
|
+
default: boolean;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
required: string[];
|
|
480
|
+
};
|
|
481
|
+
default: never[];
|
|
482
|
+
};
|
|
483
|
+
responseFields: {
|
|
484
|
+
type: string;
|
|
485
|
+
title: string;
|
|
486
|
+
items: {
|
|
487
|
+
type: string;
|
|
488
|
+
title: string;
|
|
489
|
+
properties: {
|
|
490
|
+
destination: {
|
|
491
|
+
type: string;
|
|
492
|
+
title: string;
|
|
493
|
+
};
|
|
494
|
+
source: {
|
|
495
|
+
widget: {
|
|
496
|
+
formlyConfig: {
|
|
497
|
+
type: string;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
type: string;
|
|
501
|
+
title: string;
|
|
502
|
+
properties: {
|
|
503
|
+
kind: {
|
|
504
|
+
type: string;
|
|
505
|
+
title: string;
|
|
506
|
+
enum: string[];
|
|
507
|
+
default: string;
|
|
508
|
+
};
|
|
509
|
+
path: {
|
|
510
|
+
type: string;
|
|
511
|
+
title: string;
|
|
512
|
+
};
|
|
513
|
+
template: {
|
|
514
|
+
type: string;
|
|
515
|
+
title: string;
|
|
516
|
+
};
|
|
517
|
+
expression: {
|
|
518
|
+
type: string;
|
|
519
|
+
title: string;
|
|
520
|
+
};
|
|
521
|
+
defaultValue: {
|
|
522
|
+
title: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
required: string[];
|
|
526
|
+
};
|
|
527
|
+
parseJson: {
|
|
528
|
+
type: string;
|
|
529
|
+
title: string;
|
|
530
|
+
default: boolean;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
required: string[];
|
|
534
|
+
};
|
|
535
|
+
default: never[];
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
required: string[];
|
|
539
|
+
};
|
|
540
|
+
secretFields: string[];
|
|
541
|
+
};
|
|
542
|
+
//# sourceMappingURL=ServiceNowCatalogAppConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceNowCatalogAppConfig.d.ts","sourceRoot":"","sources":["../../../src/api/configmodels/ServiceNowCatalogAppConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErF,oFAAoF;AAIpF,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAE5C,MAAM,WAAW,sBAAsB;IACrC,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAA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