@manyos/smileconnect-api 1.39.1 → 1.40.1

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 (105) hide show
  1. package/app.js +13 -0
  2. package/conf/clients.json +2 -1
  3. package/conf/scripts/p4.js +24 -1
  4. package/docs/.nojekyll +0 -0
  5. package/docs/README.md +1 -0
  6. package/docs/_coverpage.md +12 -0
  7. package/docs/_media/dataflow.png +0 -0
  8. package/docs/_media/gui_client_fields.png +0 -0
  9. package/docs/_media/gui_clients_scripts.png +0 -0
  10. package/docs/_media/gui_mapping_inc.png +0 -0
  11. package/docs/_media/gui_scripts_edit.png +0 -0
  12. package/docs/_media/gui_scripts_usage.png +0 -0
  13. package/docs/_media/gui_scripts_warning.png +0 -0
  14. package/docs/_media/logo.png +0 -0
  15. package/docs/_sidebar.md +25 -0
  16. package/docs/{configuration/adapter.md → adapter.md} +8 -16
  17. package/docs/architecture.md +8 -0
  18. package/docs/configuration/clients.md +589 -0
  19. package/docs/configuration/config.md +323 -0
  20. package/docs/{eventlog → configuration}/events.md +11 -8
  21. package/docs/configuration/mapping.md +60 -0
  22. package/docs/howto/{worklog-attachment.md → attachments.md} +8 -15
  23. package/docs/howto/cmdbobjects.md +11 -17
  24. package/docs/howto/incidents.md +16 -23
  25. package/docs/howto/token.md +14 -18
  26. package/docs/howto/{incident-worklogs.md → worklogs.md} +14 -21
  27. package/docs/index.html +27 -0
  28. package/docs/openapi.json +2054 -1354
  29. package/docs/quickstart.md +9 -0
  30. package/docs/releases.md +21 -0
  31. package/docs/scripts.md +272 -0
  32. package/package.json +1 -1
  33. package/docs/.gitattributes +0 -48
  34. package/docs/404.html +0 -13
  35. package/docs/Gemfile +0 -7
  36. package/docs/Gemfile.lock +0 -249
  37. package/docs/_config.yml +0 -259
  38. package/docs/_data/SocialNetworks.yml +0 -92
  39. package/docs/_data/ui-text.yml +0 -494
  40. package/docs/_includes/disqus.html +0 -17
  41. package/docs/_includes/ext-css.html +0 -7
  42. package/docs/_includes/ext-js.html +0 -7
  43. package/docs/_includes/fb-comment.html +0 -14
  44. package/docs/_includes/footer-minimal.html +0 -16
  45. package/docs/_includes/footer-scripts.html +0 -32
  46. package/docs/_includes/footer.html +0 -51
  47. package/docs/_includes/google_analytics.html +0 -14
  48. package/docs/_includes/gtag.html +0 -11
  49. package/docs/_includes/gtm_body.html +0 -6
  50. package/docs/_includes/gtm_head.html +0 -9
  51. package/docs/_includes/head.html +0 -131
  52. package/docs/_includes/header.html +0 -76
  53. package/docs/_includes/just_comments.html +0 -4
  54. package/docs/_includes/matomo.html +0 -17
  55. package/docs/_includes/nav.html +0 -57
  56. package/docs/_includes/social-share.html +0 -42
  57. package/docs/_includes/staticman-comment.html +0 -22
  58. package/docs/_includes/staticman-comments.html +0 -81
  59. package/docs/_layouts/base.html +0 -35
  60. package/docs/_layouts/default.html +0 -9
  61. package/docs/_layouts/minimal.html +0 -26
  62. package/docs/_layouts/page.html +0 -26
  63. package/docs/_layouts/post.html +0 -82
  64. package/docs/_posts/2015-02-28-test-markdown.md +0 -77
  65. package/docs/aboutme.md +0 -18
  66. package/docs/configuration/scripts.md +0 -207
  67. package/docs/css/bootstrap-social.css +0 -147
  68. package/docs/css/bootstrap-theme.css +0 -476
  69. package/docs/css/bootstrap-theme.css.map +0 -1
  70. package/docs/css/bootstrap-theme.min.css +0 -5
  71. package/docs/css/bootstrap.css +0 -6566
  72. package/docs/css/bootstrap.css.map +0 -1
  73. package/docs/css/bootstrap.min.css +0 -5
  74. package/docs/css/main-minimal.css +0 -13
  75. package/docs/css/main.css +0 -788
  76. package/docs/css/normalize.css +0 -427
  77. package/docs/css/pygment_highlights.css +0 -61
  78. package/docs/css/staticman.css +0 -180
  79. package/docs/feed.xml +0 -24
  80. package/docs/general/architecture.md +0 -10
  81. package/docs/general/config.md +0 -201
  82. package/docs/general/field-management.md +0 -119
  83. package/docs/general/release-notes.md +0 -9
  84. package/docs/howto/sample-config.md +0 -518
  85. package/docs/img/404-southpark.jpg +0 -0
  86. package/docs/img/avatar-icon.png +0 -0
  87. package/docs/img/bgimage.png +0 -0
  88. package/docs/img/gb-isapi.jpg +0 -0
  89. package/docs/img/install-steps.gif +0 -0
  90. package/docs/img/workflow.png +0 -0
  91. package/docs/js/bootstrap.js +0 -2306
  92. package/docs/js/bootstrap.min.js +0 -7
  93. package/docs/js/jquery-1.11.2.min.js +0 -4
  94. package/docs/js/main.js +0 -140
  95. package/docs/js/staticman.js +0 -54
  96. package/docs/staticman.yml +0 -110
  97. /package/docs/{img → _media}/architecture.jpeg +0 -0
  98. /package/docs/{img → _media}/attachment-upload.png +0 -0
  99. /package/docs/{getting-started.md → old/getting-started.md} +0 -0
  100. /package/docs/{index.md → old/index.md} +0 -0
  101. /package/docs/{installation.md → old/installation.md} +0 -0
  102. /package/docs/{postinstall.md → old/postinstall.md} +0 -0
  103. /package/docs/{preinstall.md → old/preinstall.md} +0 -0
  104. /package/docs/{tags.html → old/tags.html} +0 -0
  105. /package/docs/{workflow.md → old/workflow.md} +0 -0
@@ -1,201 +0,0 @@
1
- ---
2
- layout: page
3
- title: Config Options
4
- subtitle: The global configuration of our API
5
- use-site-title: true
6
- ---
7
-
8
- All of the following config options needs to be set as Environment Variables.
9
-
10
- ## AR Server Connection
11
-
12
- ### BASEURL
13
-
14
- Base URL of the used arrestfulapi
15
-
16
- Sample:
17
-
18
- *BASEURL=http://localhost:8080*
19
-
20
- ### AR_SERVER
21
-
22
- Remedy Server to connect to.
23
-
24
- Sample:
25
-
26
- *AR_SERVER=pier1*
27
-
28
- ### AR_PORT
29
-
30
- Remedy Server TCP Port.
31
-
32
- Sample:
33
-
34
- *AR_PORT=1234*
35
-
36
- ### AR_USER
37
-
38
- Remedy Admin User who is used for all queries.
39
-
40
- Sample:
41
-
42
- *AR_USER=Demo*
43
-
44
- ### AR_PASSWORD
45
-
46
- Remedy Admin User password.
47
-
48
- Sample:
49
-
50
- *AR_PASSWORD=password*
51
-
52
- ## SSO Server Connection
53
-
54
- ### SSO_PUBLIC_KEY
55
-
56
- Public Key used to validate JWT tokens.
57
-
58
- Sample:
59
-
60
- *SSO_PUBLIC_KEY=1635rN5xkbubgmuNQCnKKFu7OlAD3QxiDwecg1bJvFhJW9Qj5YhOwGuX5/4sOSCjmdTcKT1mCHL61FJ5mzxtbrct97zVwXmi4F4KDKj2PsW+qxUg0Jz/06iTVjtv2H1yBq1*
61
-
62
- ### SSO_AUDIENCE
63
-
64
- Audience (Clients) which are allowed to use JWT tokens. This parameter is optional. If it is not set, no check against the JWT token will be performed.
65
-
66
- Sample:
67
-
68
- *SSO_AUDIENCE=gihub, jira*
69
-
70
- ### SSO_ISSUER
71
-
72
- Issuer (SSO Server) of the JWT tokens.
73
-
74
- Sample:
75
-
76
- *SSO_ISSUER=https://sso.manyos.it/auth/realms/itsmproxy*
77
-
78
- ### ADMIN_USERS
79
-
80
- List of users who are allowed to access /v1/appconfig endpoints.
81
-
82
- Sample:
83
- ADMIN_USERS=username1, username2
84
-
85
- ### MASTER_CLIENTS
86
-
87
- List of clients that can act on behalf of other clients.
88
-
89
- The URL Parameter *clientId* is used for this.
90
-
91
- Sample:
92
- MASTER_CLIENTS=idm,adminTool
93
-
94
- ## Cache
95
-
96
- ### CACHETTL_CMDB
97
- Interval in seconds in which before cached CMDB Data is deleted from the cache.
98
-
99
- Default: *600*
100
-
101
- Sample:
102
-
103
- *CACHETTL_CMDB=2800*
104
-
105
- ### CACHETTL_ORGDATA
106
- Interval in seconds in which before cached Org Data like People, Support Groups, Organisations are deleted from the cache.
107
-
108
- Default: *3600*
109
-
110
- Sample:
111
-
112
- *CACHETTL_ORGDATA=7200*
113
-
114
- ### CACHETTL_CHANGE
115
- Interval in seconds in which before cached Change Data is deleted from the cache.
116
-
117
- Default: *1*
118
-
119
- Sample:
120
-
121
- *CACHETTL_CHANGE=600*
122
-
123
- ### CACHETTL_INCIDENT
124
-
125
- Interval in seconds in which before cached Incident Data is deleted from the cache.
126
-
127
- Default: *1*
128
-
129
- Sample:
130
-
131
- *CACHETTL_INCIDENT=600*
132
-
133
- ### CACHETTL_WORKORDER
134
-
135
- Interval in seconds in which before cached Work Order Data is deleted from the cache.
136
-
137
- Default: *1*
138
-
139
- Sample:
140
-
141
- *CACHETTL_WORKORDER=600*
142
-
143
- ### CACHETTL_TASK
144
-
145
- Interval in seconds in which before cached Task Data is deleted from the cache.
146
-
147
- Default: *1*
148
-
149
- Sample:
150
-
151
- *CACHETTL_TASK=600*
152
-
153
- ## Loglevel
154
-
155
- Loglevel of the api. Defaults to *error*
156
-
157
- ## RATE_LIMIT
158
-
159
- Defines how many API requests from a single IP are allowed within a 15min timeframe.
160
-
161
- Default *10000*
162
-
163
- Sample:
164
-
165
- *RATE_LIMIT=600*
166
-
167
- ## LIMIT_DEFAULT
168
-
169
- Limits the resultsize of all queries against the Remedy Server. Sets a default that can be overwritten by requests. Can be used to prevent performance issues.
170
- Affects also relations.
171
-
172
- Default *unlimited*
173
-
174
- Sample:
175
-
176
- *LIMIT_DEFAULT=100*
177
-
178
- ## LIMIT_MAX
179
-
180
- Limits the resultsize of all queries against the Remedy Server. Defines a global maximum that can not be overwritten by requests. Will only be overwritten by Limits defined for certains clients. Can be used to prevent performance issues.
181
- Affects also relations.
182
-
183
- Default *unlimited*
184
-
185
- Sample:
186
-
187
- *LIMIT_MAX=100*
188
-
189
- ## MAX_HTTP_SOCKETS
190
-
191
- Defines how many TCP Sockets are used for outgoing connections. (Parallel connections to the Remedy REST API.)
192
-
193
- Reduce this parameter if you see ECONNRESET or socket hang up errors.
194
-
195
- This parameter has direct impact on performance.
196
-
197
- Default *10*
198
-
199
- Sample:
200
-
201
- *MAX_HTTP_SOCKETS=15*
@@ -1,119 +0,0 @@
1
- # Client Config
2
-
3
- On a per client base it can be configured which fields are returned for each object and if a basequery is applied. This expose certain fields only dedicated clients. It also allows to define which rows a client can access. Clients are configured in conf/clients.json
4
-
5
- {% highlight json linenos %}
6
- [
7
- {
8
- "name": "jira",
9
- "config": {
10
- "options" : {
11
- "dateFormat" : "dd.MM.yyyy HH:mm.ss",
12
- "clientLimit": 100
13
- },
14
- "cmdbobject": {
15
- "basequery": "'Data Set Id' = \"BMC.ASSET\" AND ('Mark As Deleted' = \"No\" OR 'Mark As Deleted' = $NULL$) AND 'Class Id' = \"BMC_COMPUTERSYSTEM\"",
16
- "fields": [
17
- "Instance Id",
18
- "Tag Number",
19
- "Name",
20
- "AssetLifecycleStatus",
21
- "Category",
22
- "Item",
23
- "Type",
24
- "Availability",
25
- "Confidentiality",
26
- "Integrity",
27
- "Authenticity",
28
- "Model Number",
29
- "Class Id",
30
- "Reconciliation Identity"
31
- ]
32
- },
33
- "orgdata": {
34
- "basequeryPeople": "'Profile Status' = \"Enabled\"",
35
- "basequeryOrganisation": "'Status'=\"Enabled\"",
36
- "basequerySupportGroup": "'Status'=\"Enabled\""
37
- },
38
- "change": {
39
- "fields": [
40
- "Infrastructure Change ID",
41
- "Categorization Tier 1",
42
- "Categorization Tier 2",
43
- "Categorization Tier 3",
44
- "Product Cat Tier 1",
45
- "Product Cat Tier 2",
46
- "Product Cat Tier 3",
47
- "Product Name (2)",
48
- "Description",
49
- "Detailed Description",
50
- "Status Reason",
51
- "Change Request Status",
52
- "Requested Start Date",
53
- "Requested End Date",
54
- "Scheduled Start Date",
55
- "Scheduled End Date",
56
- "Support Group ID",
57
- "Support Group ID 2",
58
- "Customer Person ID"
59
- ],
60
- "constants" : [
61
- {"name": "Location Company", "value" : "Calbro Services"},
62
- {"name": "Company", "value" : "Calbro Services"},
63
- {"name": "RequesterLoginID", "value" : "Allen"}
64
- ]
65
- }
66
- }
67
- }
68
- ]
69
- {% endhighlight %}
70
-
71
- # Field Mappings
72
-
73
- Field mappings are configured in conf/mapping.json and are used globally for all clients.
74
-
75
- {% highlight json linenos %}
76
- {
77
- "cmdbobject":[
78
- {"oldName":"Instance Id", "newName" : "id"},
79
- {"oldName":"Tag Number", "newName" : "tagNumber"},
80
- {"oldName":"Name", "newName" : "name"},
81
- {"oldName":"AssetLifecycleStatus", "newName" : "assetlifecycleStatus"},
82
- {"oldName":"Category", "newName" : "category"},
83
- {"oldName":"Item", "newName" : "item"},
84
- {"oldName":"Type", "newName" : "type"},
85
- {"oldName":"Availability", "newName" : "availability"},
86
- {"oldName":"Confidentiality", "newName" : "confidentiality"},
87
- {"oldName":"Integrity", "newName" : "integrity"},
88
- {"oldName":"Authenticity", "newName" : "authenticity"},
89
- {"oldName":"Model Number", "newName" : "model"},
90
- {"oldName":"Class Id", "newName" : "classId"},
91
- {"oldName":"Reconciliation Identity", "newName" : "reconId"}
92
- ],
93
- "change":[
94
- {"oldName":"Infrastructure Change ID", "newName" : "id"},
95
- {"oldName":"Categorization Tier 1", "newName" : "opsCat1"},
96
- {"oldName":"Categorization Tier 2", "newName" : "opsCat2"},
97
- {"oldName":"Categorization Tier 3", "newName" : "opsCat3"},
98
- {"oldName":"Product Cat Tier 1", "newName" : "prodCat1"},
99
- {"oldName":"Product Cat Tier 2", "newName" : "prodCat2"},
100
- {"oldName":"Product Cat Tier 3", "newName" : "prodCat3"},
101
- {"oldName":"Product Name (2)", "newName" : "productName"},
102
- {"oldName":"Description", "newName" : "summary"},
103
- {"oldName":"Detailed Description", "newName" : "detailedDescription"},
104
- {"oldName":"Status Reason", "newName" : "statusReason"},
105
- {"oldName":"Change Request Status", "newName" : "status"},
106
- {"oldName":"Requested Start Date", "newName" : "requestedStartDate"},
107
- {"oldName":"Requested End Date", "newName" : "requestedEndDate"},
108
- {"oldName":"Scheduled Start Date", "newName" : "scheduledStartDate"},
109
- {"oldName":"Scheduled End Date", "newName" : "scheduledEndDate"},
110
- {"oldName":"Support Group ID", "newName" : "managerGroup"},
111
- {"oldName":"Support Group ID 2", "newName" : "coordinatorGroup"},
112
- {"oldName":"Customer Person ID", "newName" : "customerId"}
113
- ],
114
- "newChange":[
115
- {"oldName":"Description", "newName" : "summary"},
116
- {"oldName":"TemplateID", "newName" : "template"}
117
- ]
118
- }
119
- {% endhighlight %}
@@ -1,9 +0,0 @@
1
- ---
2
- layout: page
3
- title: Architecture
4
- subtitle: How it fits together
5
- use-site-title: true
6
- version: 1.2.3
7
- ---
8
-
9
- Release Notes