@researchdatabox/sails-hook-redbox-servicenow-catalog 0.0.13 → 1.0.0-beta.43

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 (162) hide show
  1. package/README.md +290 -74
  2. package/dist/api/configmodels/ServiceNowCatalogAppConfig.d.ts +1045 -0
  3. package/dist/api/configmodels/ServiceNowCatalogAppConfig.d.ts.map +1 -0
  4. package/dist/api/configmodels/ServiceNowCatalogAppConfig.js +269 -0
  5. package/dist/api/controllers/CatalogController.d.ts +24 -0
  6. package/dist/api/controllers/CatalogController.d.ts.map +1 -0
  7. package/dist/api/controllers/CatalogController.js +206 -0
  8. package/dist/api/controllers/index.d.ts +8 -0
  9. package/dist/api/controllers/index.d.ts.map +1 -0
  10. package/dist/api/controllers/index.js +16 -0
  11. package/dist/api/models/ServicenowCatalogIdempotency.d.ts +18 -0
  12. package/dist/api/models/ServicenowCatalogIdempotency.d.ts.map +1 -0
  13. package/dist/api/models/ServicenowCatalogIdempotency.js +76 -0
  14. package/dist/api/models/index.d.ts +5 -0
  15. package/dist/api/models/index.d.ts.map +1 -0
  16. package/dist/api/models/index.js +23 -0
  17. package/dist/api/services/ServicenowCatalogService.d.ts +60 -0
  18. package/dist/api/services/ServicenowCatalogService.d.ts.map +1 -0
  19. package/dist/api/services/ServicenowCatalogService.js +848 -0
  20. package/dist/api/services/index.d.ts +8 -0
  21. package/dist/api/services/index.d.ts.map +1 -0
  22. package/dist/api/services/index.js +16 -0
  23. package/dist/api/services/servicenow/audit.d.ts +91 -0
  24. package/dist/api/services/servicenow/audit.d.ts.map +1 -0
  25. package/dist/api/services/servicenow/audit.js +230 -0
  26. package/dist/api/services/servicenow/configuration.d.ts +26 -0
  27. package/dist/api/services/servicenow/configuration.d.ts.map +1 -0
  28. package/dist/api/services/servicenow/configuration.js +105 -0
  29. package/dist/api/services/servicenow/context.d.ts +29 -0
  30. package/dist/api/services/servicenow/context.d.ts.map +1 -0
  31. package/dist/api/services/servicenow/context.js +7 -0
  32. package/dist/api/services/servicenow/errors.d.ts +133 -0
  33. package/dist/api/services/servicenow/errors.d.ts.map +1 -0
  34. package/dist/api/services/servicenow/errors.js +204 -0
  35. package/dist/api/services/servicenow/http.d.ts +16 -0
  36. package/dist/api/services/servicenow/http.d.ts.map +1 -0
  37. package/dist/api/services/servicenow/http.js +168 -0
  38. package/dist/api/services/servicenow/idempotency.d.ts +29 -0
  39. package/dist/api/services/servicenow/idempotency.d.ts.map +1 -0
  40. package/dist/api/services/servicenow/idempotency.js +119 -0
  41. package/dist/api/services/servicenow/mapping.d.ts +27 -0
  42. package/dist/api/services/servicenow/mapping.d.ts.map +1 -0
  43. package/dist/api/services/servicenow/mapping.js +145 -0
  44. package/dist/api/services/servicenow/normalizeResponse.d.ts +4 -0
  45. package/dist/api/services/servicenow/normalizeResponse.d.ts.map +1 -0
  46. package/dist/api/services/servicenow/normalizeResponse.js +16 -0
  47. package/dist/api/services/servicenow/runtime.d.ts +8 -0
  48. package/dist/api/services/servicenow/runtime.d.ts.map +1 -0
  49. package/dist/api/services/servicenow/runtime.js +44 -0
  50. package/dist/config/auth.d.ts +3 -0
  51. package/dist/config/auth.d.ts.map +1 -0
  52. package/dist/config/auth.js +13 -0
  53. package/dist/config/servicenow.d.ts +7 -0
  54. package/dist/config/servicenow.d.ts.map +1 -0
  55. package/dist/config/servicenow.js +10 -0
  56. package/dist/index.d.ts +3 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +111 -0
  59. package/language-defaults/.gitkeep +1 -0
  60. package/{locales → language-defaults}/en/translation.json +8 -3
  61. package/package.json +39 -41
  62. package/.circleci/config.yml +0 -33
  63. package/.editorconfig +0 -13
  64. package/.nvmrc +0 -1
  65. package/angular/catalog/.angular-cli.json +0 -60
  66. package/angular/catalog/.editorconfig +0 -13
  67. package/angular/catalog/README.md +0 -27
  68. package/angular/catalog/buildAngularProd.sh +0 -3
  69. package/angular/catalog/dist/3rdpartylicenses.txt +0 -2215
  70. package/angular/catalog/dist/assets/images/aws_ec2.png +0 -0
  71. package/angular/catalog/dist/assets/images/catalog.png +0 -0
  72. package/angular/catalog/dist/assets/images/cloudstor.png +0 -0
  73. package/angular/catalog/dist/assets/images/limesurvey.png +0 -0
  74. package/angular/catalog/dist/assets/images/omeka.png +0 -0
  75. package/angular/catalog/dist/assets/images/qualtrics.png +0 -0
  76. package/angular/catalog/dist/assets/images/storage.png +0 -0
  77. package/angular/catalog/dist/assets/images/uts_hpcc.png +0 -0
  78. package/angular/catalog/dist/assets/images/uts_hpcs.png +0 -0
  79. package/angular/catalog/dist/assets/images/uts_ihpc.png +0 -0
  80. package/angular/catalog/dist/favicon.ico +0 -0
  81. package/angular/catalog/dist/index.html +0 -1
  82. package/angular/catalog/dist/inline.bundle.js +0 -1
  83. package/angular/catalog/dist/main.bundle.js +0 -1
  84. package/angular/catalog/dist/polyfills.bundle.js +0 -1
  85. package/angular/catalog/dist/styles.bundle.css +0 -0
  86. package/angular/catalog/e2e/app.e2e-spec.ts +0 -14
  87. package/angular/catalog/e2e/app.po.ts +0 -11
  88. package/angular/catalog/e2e/tsconfig.e2e.json +0 -14
  89. package/angular/catalog/karma.conf.js +0 -33
  90. package/angular/catalog/package-lock.json +0 -11967
  91. package/angular/catalog/package.json +0 -71
  92. package/angular/catalog/protractor.conf.js +0 -28
  93. package/angular/catalog/src/app/catalog-form.component.css +0 -6
  94. package/angular/catalog/src/app/catalog-form.component.spec.ts +0 -27
  95. package/angular/catalog/src/app/catalog-form.component.ts +0 -201
  96. package/angular/catalog/src/app/catalog-form.html +0 -24
  97. package/angular/catalog/src/app/catalog.module.ts +0 -30
  98. package/angular/catalog/src/app/catalog.service.ts +0 -97
  99. package/angular/catalog/src/app/components/catalog-display.component.ts +0 -212
  100. package/angular/catalog/src/app/components/request-box.component.ts +0 -489
  101. package/angular/catalog/src/assets/.gitkeep +0 -0
  102. package/angular/catalog/src/assets/images/aws_ec2.png +0 -0
  103. package/angular/catalog/src/assets/images/catalog.png +0 -0
  104. package/angular/catalog/src/assets/images/cloudstor.png +0 -0
  105. package/angular/catalog/src/assets/images/limesurvey.png +0 -0
  106. package/angular/catalog/src/assets/images/omeka.png +0 -0
  107. package/angular/catalog/src/assets/images/qualtrics.png +0 -0
  108. package/angular/catalog/src/assets/images/storage.png +0 -0
  109. package/angular/catalog/src/assets/images/uts_hpcc.png +0 -0
  110. package/angular/catalog/src/assets/images/uts_hpcs.png +0 -0
  111. package/angular/catalog/src/assets/images/uts_ihpc.png +0 -0
  112. package/angular/catalog/src/environments/environment.prod.ts +0 -3
  113. package/angular/catalog/src/environments/environment.ts +0 -8
  114. package/angular/catalog/src/favicon.ico +0 -0
  115. package/angular/catalog/src/index.html +0 -14
  116. package/angular/catalog/src/main.ts +0 -12
  117. package/angular/catalog/src/polyfills.ts +0 -79
  118. package/angular/catalog/src/styles.css +0 -1
  119. package/angular/catalog/src/test.ts +0 -20
  120. package/angular/catalog/src/tsconfig.app.json +0 -13
  121. package/angular/catalog/src/tsconfig.spec.json +0 -19
  122. package/angular/catalog/src/typings.d.ts +0 -5
  123. package/angular/catalog/tsconfig.json +0 -31
  124. package/angular/catalog/tslint.json +0 -143
  125. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/assets/images/catalog.png +0 -0
  126. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/favicon.ico +0 -0
  127. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/index.html +0 -14
  128. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/inline.bundle.js +0 -102
  129. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/inline.bundle.js.map +0 -1
  130. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/main.bundle.js +0 -9817
  131. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/main.bundle.js.map +0 -1
  132. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/polyfills.bundle.js +0 -5057
  133. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/polyfills.bundle.js.map +0 -1
  134. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/styles.bundle.js +0 -520
  135. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/styles.bundle.js.map +0 -1
  136. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/vendor.bundle.js +0 -232274
  137. package/angular/catalog/~/source/code.research/redbox-portal/.tmp/public/angular/catalog/vendor.bundle.js.map +0 -1
  138. package/api/Config.js +0 -42
  139. package/api/controllers/CatalogController.js +0 -211
  140. package/api/services/ServicenowCatalogService.js +0 -214
  141. package/assets/images/blank.png +0 -0
  142. package/config/auth.js +0 -82
  143. package/config/env/docker.js +0 -34
  144. package/config/servicenow-catalog-general.js +0 -58
  145. package/config/servicenow-catalog-recordtype.js +0 -36
  146. package/config/servicenow-catalog-routes.js +0 -17
  147. package/config/servicenow-catalog-workflow.js +0 -79
  148. package/config/servicenow-catalog-workspacetype.js +0 -9
  149. package/form-config/servicenow-catalog-1.0.js +0 -195
  150. package/index.js +0 -20
  151. package/runForDev.sh +0 -97
  152. package/support/development/docker-compose.yml +0 -43
  153. package/support/development/linkHook.sh +0 -9
  154. package/support/development/monitorSailsWorkingDir.sh +0 -46
  155. package/support/doc/images/service-catalog-in-rdmp.png +0 -0
  156. package/support/doc/images/service-catalog-storage.png +0 -0
  157. package/support/doc/images/service-catalog.png +0 -0
  158. package/test/dependencies.spec.js +0 -71
  159. package/tsconfig.json +0 -45
  160. package/typescript/api/Config.ts +0 -62
  161. package/typescript/api/controllers/CatalogController.ts +0 -248
  162. package/typescript/api/services/ServicenowCatalogService.ts +0 -201
@@ -0,0 +1,1045 @@
1
+ import type { ValueBinding as CoreValueBinding } from '@researchdatabox/redbox-core';
2
+ /** Brand-aware application configuration for reusable ServiceNow catalog submissions. */
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
+ /**
12
+ * A post-mapping request transform. The binding receives the current target
13
+ * value as `value`, the complete outgoing body as `request`, and the normal
14
+ * workspace/parent mapping context. A null/undefined result removes the
15
+ * destination; any other result replaces it.
16
+ */
17
+ export interface ServiceNowRequestFilter {
18
+ destination: string;
19
+ source: ValueBinding;
20
+ }
21
+ export interface ServiceNowRetryConfig {
22
+ maxAttempts: number;
23
+ baseDelayMs: number;
24
+ maxDelayMs: number;
25
+ retryOnStatusCodes: number[];
26
+ }
27
+ export interface ServiceNowConnectionConfig {
28
+ url: string;
29
+ method: string;
30
+ headers: Record<string, string>;
31
+ /** Per-attempt request timeout. */
32
+ timeoutMs: number;
33
+ /** Overall budget for the whole submit orchestration, retries included. */
34
+ totalTimeoutMs: number;
35
+ retry: ServiceNowRetryConfig;
36
+ }
37
+ export interface ServiceNowOAuthConfig {
38
+ enabled: boolean;
39
+ url: string;
40
+ clientId: string;
41
+ clientSecret: string;
42
+ scope?: string;
43
+ grantType: 'client_credentials' | 'password' | 'refresh_token';
44
+ username?: string;
45
+ password?: string;
46
+ refreshToken?: string;
47
+ }
48
+ export interface ServiceNowCatalogDefinition {
49
+ enabled: boolean;
50
+ connection: ServiceNowConnectionConfig;
51
+ oauth: ServiceNowOAuthConfig;
52
+ /** Static request body the request field mappings are applied over. */
53
+ bodyTemplate: Record<string, unknown>;
54
+ /** Mappings from the stable submission context into the outgoing request body. */
55
+ requestFields: ServiceNowFieldMapping[];
56
+ /** Optional JSONata/path transforms applied to the built request body. */
57
+ requestFilters?: ServiceNowRequestFilter[];
58
+ /** Response mappings are independently applied to the workspace and optional parent. */
59
+ responseFields: {
60
+ workspace: ServiceNowFieldMapping[];
61
+ parentRecord?: ServiceNowFieldMapping[];
62
+ };
63
+ /** When present, the binding resolves the record associated with the submitted workspace. */
64
+ parentRecord?: {
65
+ oid: ValueBinding;
66
+ };
67
+ responseNormalization?: {
68
+ /** Parse a JSON-encoded root response string when possible. */
69
+ parseJsonString: boolean;
70
+ };
71
+ idempotency?: {
72
+ enabled: boolean;
73
+ /** Used when a trigger does not supply an explicit idempotency key. */
74
+ key?: ValueBinding;
75
+ };
76
+ }
77
+ export interface ServiceNowCatalogConfigData {
78
+ enabled: boolean;
79
+ catalogs: Record<string, ServiceNowCatalogDefinition>;
80
+ }
81
+ export declare const DEFAULT_SERVICENOW_CATALOG_NAME = "default";
82
+ export declare function createDefaultCatalogDefinition(): ServiceNowCatalogDefinition;
83
+ export declare class ServiceNowCatalogAppConfig implements ServiceNowCatalogConfigData {
84
+ enabled: boolean;
85
+ catalogs: Record<string, ServiceNowCatalogDefinition>;
86
+ static getFieldOrder(): string[];
87
+ }
88
+ export declare const SERVICENOW_CATALOG_SCHEMA: {
89
+ type: string;
90
+ title: string;
91
+ properties: {
92
+ enabled: {
93
+ type: string;
94
+ title: string;
95
+ default: boolean;
96
+ };
97
+ catalogs: {
98
+ type: string;
99
+ title: string;
100
+ additionalProperties: {
101
+ type: string;
102
+ title: string;
103
+ properties: {
104
+ enabled: {
105
+ type: string;
106
+ title: string;
107
+ default: boolean;
108
+ };
109
+ connection: {
110
+ type: string;
111
+ title: string;
112
+ properties: {
113
+ url: {
114
+ type: string;
115
+ title: string;
116
+ };
117
+ method: {
118
+ type: string;
119
+ title: string;
120
+ default: string;
121
+ };
122
+ headers: {
123
+ type: string;
124
+ title: string;
125
+ additionalProperties: {
126
+ type: string;
127
+ };
128
+ default: {};
129
+ };
130
+ timeoutMs: {
131
+ type: string;
132
+ title: string;
133
+ minimum: number;
134
+ default: number;
135
+ };
136
+ totalTimeoutMs: {
137
+ type: string;
138
+ title: string;
139
+ minimum: number;
140
+ default: number;
141
+ };
142
+ retry: {
143
+ type: string;
144
+ title: string;
145
+ properties: {
146
+ maxAttempts: {
147
+ type: string;
148
+ title: string;
149
+ minimum: number;
150
+ default: number;
151
+ };
152
+ baseDelayMs: {
153
+ type: string;
154
+ title: string;
155
+ minimum: number;
156
+ default: number;
157
+ };
158
+ maxDelayMs: {
159
+ type: string;
160
+ title: string;
161
+ minimum: number;
162
+ default: number;
163
+ };
164
+ retryOnStatusCodes: {
165
+ type: string;
166
+ title: string;
167
+ items: {
168
+ type: string;
169
+ };
170
+ default: number[];
171
+ };
172
+ };
173
+ required: string[];
174
+ };
175
+ };
176
+ required: string[];
177
+ };
178
+ oauth: {
179
+ type: string;
180
+ title: string;
181
+ properties: {
182
+ enabled: {
183
+ type: string;
184
+ title: string;
185
+ default: boolean;
186
+ };
187
+ url: {
188
+ type: string;
189
+ title: string;
190
+ };
191
+ clientId: {
192
+ type: string;
193
+ title: string;
194
+ };
195
+ clientSecret: {
196
+ type: string;
197
+ title: string;
198
+ };
199
+ scope: {
200
+ type: string;
201
+ title: string;
202
+ };
203
+ grantType: {
204
+ type: string;
205
+ title: string;
206
+ enum: string[];
207
+ default: string;
208
+ };
209
+ username: {
210
+ type: string;
211
+ title: string;
212
+ };
213
+ password: {
214
+ type: string;
215
+ title: string;
216
+ };
217
+ refreshToken: {
218
+ type: string;
219
+ title: string;
220
+ };
221
+ };
222
+ required: string[];
223
+ };
224
+ bodyTemplate: {
225
+ type: string;
226
+ title: string;
227
+ default: {};
228
+ };
229
+ requestFields: {
230
+ title: string;
231
+ type: string;
232
+ items: {
233
+ type: string;
234
+ title: string;
235
+ properties: {
236
+ destination: {
237
+ type: string;
238
+ title: string;
239
+ };
240
+ source: {
241
+ widget: {
242
+ formlyConfig: {
243
+ type: string;
244
+ };
245
+ };
246
+ type: string;
247
+ title: string;
248
+ properties: {
249
+ kind: {
250
+ type: string;
251
+ title: string;
252
+ enum: string[];
253
+ default: string;
254
+ };
255
+ path: {
256
+ type: string;
257
+ title: string;
258
+ };
259
+ template: {
260
+ type: string;
261
+ title: string;
262
+ };
263
+ expression: {
264
+ type: string;
265
+ title: string;
266
+ };
267
+ defaultValue: {
268
+ title: string;
269
+ };
270
+ };
271
+ required: string[];
272
+ };
273
+ parseJson: {
274
+ type: string;
275
+ title: string;
276
+ default: boolean;
277
+ };
278
+ };
279
+ required: string[];
280
+ };
281
+ default: never[];
282
+ };
283
+ requestFilters: {
284
+ title: string;
285
+ type: string;
286
+ items: {
287
+ type: string;
288
+ title: string;
289
+ properties: {
290
+ destination: {
291
+ type: string;
292
+ title: string;
293
+ };
294
+ source: {
295
+ widget: {
296
+ formlyConfig: {
297
+ type: string;
298
+ };
299
+ };
300
+ type: string;
301
+ title: string;
302
+ properties: {
303
+ kind: {
304
+ type: string;
305
+ title: string;
306
+ enum: string[];
307
+ default: string;
308
+ };
309
+ path: {
310
+ type: string;
311
+ title: string;
312
+ };
313
+ template: {
314
+ type: string;
315
+ title: string;
316
+ };
317
+ expression: {
318
+ type: string;
319
+ title: string;
320
+ };
321
+ defaultValue: {
322
+ title: string;
323
+ };
324
+ };
325
+ required: string[];
326
+ };
327
+ parseJson: {
328
+ type: string;
329
+ title: string;
330
+ default: boolean;
331
+ };
332
+ };
333
+ required: string[];
334
+ };
335
+ default: never[];
336
+ };
337
+ responseFields: {
338
+ type: string;
339
+ title: string;
340
+ properties: {
341
+ workspace: {
342
+ title: string;
343
+ type: string;
344
+ items: {
345
+ type: string;
346
+ title: string;
347
+ properties: {
348
+ destination: {
349
+ type: string;
350
+ title: string;
351
+ };
352
+ source: {
353
+ widget: {
354
+ formlyConfig: {
355
+ type: string;
356
+ };
357
+ };
358
+ type: string;
359
+ title: string;
360
+ properties: {
361
+ kind: {
362
+ type: string;
363
+ title: string;
364
+ enum: string[];
365
+ default: string;
366
+ };
367
+ path: {
368
+ type: string;
369
+ title: string;
370
+ };
371
+ template: {
372
+ type: string;
373
+ title: string;
374
+ };
375
+ expression: {
376
+ type: string;
377
+ title: string;
378
+ };
379
+ defaultValue: {
380
+ title: string;
381
+ };
382
+ };
383
+ required: string[];
384
+ };
385
+ parseJson: {
386
+ type: string;
387
+ title: string;
388
+ default: boolean;
389
+ };
390
+ };
391
+ required: string[];
392
+ };
393
+ default: never[];
394
+ };
395
+ parentRecord: {
396
+ title: string;
397
+ type: string;
398
+ items: {
399
+ type: string;
400
+ title: string;
401
+ properties: {
402
+ destination: {
403
+ type: string;
404
+ title: string;
405
+ };
406
+ source: {
407
+ widget: {
408
+ formlyConfig: {
409
+ type: string;
410
+ };
411
+ };
412
+ type: string;
413
+ title: string;
414
+ properties: {
415
+ kind: {
416
+ type: string;
417
+ title: string;
418
+ enum: string[];
419
+ default: string;
420
+ };
421
+ path: {
422
+ type: string;
423
+ title: string;
424
+ };
425
+ template: {
426
+ type: string;
427
+ title: string;
428
+ };
429
+ expression: {
430
+ type: string;
431
+ title: string;
432
+ };
433
+ defaultValue: {
434
+ title: string;
435
+ };
436
+ };
437
+ required: string[];
438
+ };
439
+ parseJson: {
440
+ type: string;
441
+ title: string;
442
+ default: boolean;
443
+ };
444
+ };
445
+ required: string[];
446
+ };
447
+ default: never[];
448
+ };
449
+ };
450
+ required: string[];
451
+ };
452
+ parentRecord: {
453
+ type: string;
454
+ title: string;
455
+ properties: {
456
+ oid: {
457
+ widget: {
458
+ formlyConfig: {
459
+ type: string;
460
+ };
461
+ };
462
+ type: string;
463
+ title: string;
464
+ properties: {
465
+ kind: {
466
+ type: string;
467
+ title: string;
468
+ enum: string[];
469
+ default: string;
470
+ };
471
+ path: {
472
+ type: string;
473
+ title: string;
474
+ };
475
+ template: {
476
+ type: string;
477
+ title: string;
478
+ };
479
+ expression: {
480
+ type: string;
481
+ title: string;
482
+ };
483
+ defaultValue: {
484
+ title: string;
485
+ };
486
+ };
487
+ required: string[];
488
+ };
489
+ };
490
+ required: string[];
491
+ };
492
+ responseNormalization: {
493
+ type: string;
494
+ title: string;
495
+ properties: {
496
+ parseJsonString: {
497
+ type: string;
498
+ title: string;
499
+ default: boolean;
500
+ };
501
+ };
502
+ required: string[];
503
+ };
504
+ idempotency: {
505
+ type: string;
506
+ title: string;
507
+ properties: {
508
+ enabled: {
509
+ type: string;
510
+ title: string;
511
+ default: boolean;
512
+ };
513
+ key: {
514
+ widget: {
515
+ formlyConfig: {
516
+ type: string;
517
+ };
518
+ };
519
+ type: string;
520
+ title: string;
521
+ properties: {
522
+ kind: {
523
+ type: string;
524
+ title: string;
525
+ enum: string[];
526
+ default: string;
527
+ };
528
+ path: {
529
+ type: string;
530
+ title: string;
531
+ };
532
+ template: {
533
+ type: string;
534
+ title: string;
535
+ };
536
+ expression: {
537
+ type: string;
538
+ title: string;
539
+ };
540
+ defaultValue: {
541
+ title: string;
542
+ };
543
+ };
544
+ required: string[];
545
+ };
546
+ };
547
+ required: string[];
548
+ };
549
+ };
550
+ required: string[];
551
+ };
552
+ default: {};
553
+ };
554
+ };
555
+ required: string[];
556
+ };
557
+ export declare const SERVICENOW_CATALOG_CONFIG_KEY = "servicenowCatalog";
558
+ /**
559
+ * AppConfigService currently resolves lodash paths literally and does not
560
+ * expand wildcard map keys. Keep one mutable path list and let its form adapter
561
+ * add concrete, safely quoted catalog paths before core masks or merges them.
562
+ */
563
+ export declare const SERVICENOW_CATALOG_SECRET_FIELDS: string[];
564
+ export declare function registerServiceNowCatalogSecretFields(model: unknown): unknown;
565
+ export declare const SERVICENOW_CATALOG_CONFIG_MODEL: {
566
+ key: string;
567
+ modelName: string;
568
+ title: string;
569
+ class: typeof ServiceNowCatalogAppConfig;
570
+ schema: {
571
+ type: string;
572
+ title: string;
573
+ properties: {
574
+ enabled: {
575
+ type: string;
576
+ title: string;
577
+ default: boolean;
578
+ };
579
+ catalogs: {
580
+ type: string;
581
+ title: string;
582
+ additionalProperties: {
583
+ type: string;
584
+ title: string;
585
+ properties: {
586
+ enabled: {
587
+ type: string;
588
+ title: string;
589
+ default: boolean;
590
+ };
591
+ connection: {
592
+ type: string;
593
+ title: string;
594
+ properties: {
595
+ url: {
596
+ type: string;
597
+ title: string;
598
+ };
599
+ method: {
600
+ type: string;
601
+ title: string;
602
+ default: string;
603
+ };
604
+ headers: {
605
+ type: string;
606
+ title: string;
607
+ additionalProperties: {
608
+ type: string;
609
+ };
610
+ default: {};
611
+ };
612
+ timeoutMs: {
613
+ type: string;
614
+ title: string;
615
+ minimum: number;
616
+ default: number;
617
+ };
618
+ totalTimeoutMs: {
619
+ type: string;
620
+ title: string;
621
+ minimum: number;
622
+ default: number;
623
+ };
624
+ retry: {
625
+ type: string;
626
+ title: string;
627
+ properties: {
628
+ maxAttempts: {
629
+ type: string;
630
+ title: string;
631
+ minimum: number;
632
+ default: number;
633
+ };
634
+ baseDelayMs: {
635
+ type: string;
636
+ title: string;
637
+ minimum: number;
638
+ default: number;
639
+ };
640
+ maxDelayMs: {
641
+ type: string;
642
+ title: string;
643
+ minimum: number;
644
+ default: number;
645
+ };
646
+ retryOnStatusCodes: {
647
+ type: string;
648
+ title: string;
649
+ items: {
650
+ type: string;
651
+ };
652
+ default: number[];
653
+ };
654
+ };
655
+ required: string[];
656
+ };
657
+ };
658
+ required: string[];
659
+ };
660
+ oauth: {
661
+ type: string;
662
+ title: string;
663
+ properties: {
664
+ enabled: {
665
+ type: string;
666
+ title: string;
667
+ default: boolean;
668
+ };
669
+ url: {
670
+ type: string;
671
+ title: string;
672
+ };
673
+ clientId: {
674
+ type: string;
675
+ title: string;
676
+ };
677
+ clientSecret: {
678
+ type: string;
679
+ title: string;
680
+ };
681
+ scope: {
682
+ type: string;
683
+ title: string;
684
+ };
685
+ grantType: {
686
+ type: string;
687
+ title: string;
688
+ enum: string[];
689
+ default: string;
690
+ };
691
+ username: {
692
+ type: string;
693
+ title: string;
694
+ };
695
+ password: {
696
+ type: string;
697
+ title: string;
698
+ };
699
+ refreshToken: {
700
+ type: string;
701
+ title: string;
702
+ };
703
+ };
704
+ required: string[];
705
+ };
706
+ bodyTemplate: {
707
+ type: string;
708
+ title: string;
709
+ default: {};
710
+ };
711
+ requestFields: {
712
+ title: string;
713
+ type: string;
714
+ items: {
715
+ type: string;
716
+ title: string;
717
+ properties: {
718
+ destination: {
719
+ type: string;
720
+ title: string;
721
+ };
722
+ source: {
723
+ widget: {
724
+ formlyConfig: {
725
+ type: string;
726
+ };
727
+ };
728
+ type: string;
729
+ title: string;
730
+ properties: {
731
+ kind: {
732
+ type: string;
733
+ title: string;
734
+ enum: string[];
735
+ default: string;
736
+ };
737
+ path: {
738
+ type: string;
739
+ title: string;
740
+ };
741
+ template: {
742
+ type: string;
743
+ title: string;
744
+ };
745
+ expression: {
746
+ type: string;
747
+ title: string;
748
+ };
749
+ defaultValue: {
750
+ title: string;
751
+ };
752
+ };
753
+ required: string[];
754
+ };
755
+ parseJson: {
756
+ type: string;
757
+ title: string;
758
+ default: boolean;
759
+ };
760
+ };
761
+ required: string[];
762
+ };
763
+ default: never[];
764
+ };
765
+ requestFilters: {
766
+ title: string;
767
+ type: string;
768
+ items: {
769
+ type: string;
770
+ title: string;
771
+ properties: {
772
+ destination: {
773
+ type: string;
774
+ title: string;
775
+ };
776
+ source: {
777
+ widget: {
778
+ formlyConfig: {
779
+ type: string;
780
+ };
781
+ };
782
+ type: string;
783
+ title: string;
784
+ properties: {
785
+ kind: {
786
+ type: string;
787
+ title: string;
788
+ enum: string[];
789
+ default: string;
790
+ };
791
+ path: {
792
+ type: string;
793
+ title: string;
794
+ };
795
+ template: {
796
+ type: string;
797
+ title: string;
798
+ };
799
+ expression: {
800
+ type: string;
801
+ title: string;
802
+ };
803
+ defaultValue: {
804
+ title: string;
805
+ };
806
+ };
807
+ required: string[];
808
+ };
809
+ parseJson: {
810
+ type: string;
811
+ title: string;
812
+ default: boolean;
813
+ };
814
+ };
815
+ required: string[];
816
+ };
817
+ default: never[];
818
+ };
819
+ responseFields: {
820
+ type: string;
821
+ title: string;
822
+ properties: {
823
+ workspace: {
824
+ title: string;
825
+ type: string;
826
+ items: {
827
+ type: string;
828
+ title: string;
829
+ properties: {
830
+ destination: {
831
+ type: string;
832
+ title: string;
833
+ };
834
+ source: {
835
+ widget: {
836
+ formlyConfig: {
837
+ type: string;
838
+ };
839
+ };
840
+ type: string;
841
+ title: string;
842
+ properties: {
843
+ kind: {
844
+ type: string;
845
+ title: string;
846
+ enum: string[];
847
+ default: string;
848
+ };
849
+ path: {
850
+ type: string;
851
+ title: string;
852
+ };
853
+ template: {
854
+ type: string;
855
+ title: string;
856
+ };
857
+ expression: {
858
+ type: string;
859
+ title: string;
860
+ };
861
+ defaultValue: {
862
+ title: string;
863
+ };
864
+ };
865
+ required: string[];
866
+ };
867
+ parseJson: {
868
+ type: string;
869
+ title: string;
870
+ default: boolean;
871
+ };
872
+ };
873
+ required: string[];
874
+ };
875
+ default: never[];
876
+ };
877
+ parentRecord: {
878
+ title: string;
879
+ type: string;
880
+ items: {
881
+ type: string;
882
+ title: string;
883
+ properties: {
884
+ destination: {
885
+ type: string;
886
+ title: string;
887
+ };
888
+ source: {
889
+ widget: {
890
+ formlyConfig: {
891
+ type: string;
892
+ };
893
+ };
894
+ type: string;
895
+ title: string;
896
+ properties: {
897
+ kind: {
898
+ type: string;
899
+ title: string;
900
+ enum: string[];
901
+ default: string;
902
+ };
903
+ path: {
904
+ type: string;
905
+ title: string;
906
+ };
907
+ template: {
908
+ type: string;
909
+ title: string;
910
+ };
911
+ expression: {
912
+ type: string;
913
+ title: string;
914
+ };
915
+ defaultValue: {
916
+ title: string;
917
+ };
918
+ };
919
+ required: string[];
920
+ };
921
+ parseJson: {
922
+ type: string;
923
+ title: string;
924
+ default: boolean;
925
+ };
926
+ };
927
+ required: string[];
928
+ };
929
+ default: never[];
930
+ };
931
+ };
932
+ required: string[];
933
+ };
934
+ parentRecord: {
935
+ type: string;
936
+ title: string;
937
+ properties: {
938
+ oid: {
939
+ widget: {
940
+ formlyConfig: {
941
+ type: string;
942
+ };
943
+ };
944
+ type: string;
945
+ title: string;
946
+ properties: {
947
+ kind: {
948
+ type: string;
949
+ title: string;
950
+ enum: string[];
951
+ default: string;
952
+ };
953
+ path: {
954
+ type: string;
955
+ title: string;
956
+ };
957
+ template: {
958
+ type: string;
959
+ title: string;
960
+ };
961
+ expression: {
962
+ type: string;
963
+ title: string;
964
+ };
965
+ defaultValue: {
966
+ title: string;
967
+ };
968
+ };
969
+ required: string[];
970
+ };
971
+ };
972
+ required: string[];
973
+ };
974
+ responseNormalization: {
975
+ type: string;
976
+ title: string;
977
+ properties: {
978
+ parseJsonString: {
979
+ type: string;
980
+ title: string;
981
+ default: boolean;
982
+ };
983
+ };
984
+ required: string[];
985
+ };
986
+ idempotency: {
987
+ type: string;
988
+ title: string;
989
+ properties: {
990
+ enabled: {
991
+ type: string;
992
+ title: string;
993
+ default: boolean;
994
+ };
995
+ key: {
996
+ widget: {
997
+ formlyConfig: {
998
+ type: string;
999
+ };
1000
+ };
1001
+ type: string;
1002
+ title: string;
1003
+ properties: {
1004
+ kind: {
1005
+ type: string;
1006
+ title: string;
1007
+ enum: string[];
1008
+ default: string;
1009
+ };
1010
+ path: {
1011
+ type: string;
1012
+ title: string;
1013
+ };
1014
+ template: {
1015
+ type: string;
1016
+ title: string;
1017
+ };
1018
+ expression: {
1019
+ type: string;
1020
+ title: string;
1021
+ };
1022
+ defaultValue: {
1023
+ title: string;
1024
+ };
1025
+ };
1026
+ required: string[];
1027
+ };
1028
+ };
1029
+ required: string[];
1030
+ };
1031
+ };
1032
+ required: string[];
1033
+ };
1034
+ default: {};
1035
+ };
1036
+ };
1037
+ required: string[];
1038
+ };
1039
+ secretFields: string[];
1040
+ formAdapter: {
1041
+ toForm: typeof registerServiceNowCatalogSecretFields;
1042
+ fromForm: typeof registerServiceNowCatalogSecretFields;
1043
+ };
1044
+ };
1045
+ //# sourceMappingURL=ServiceNowCatalogAppConfig.d.ts.map