@itentialopensource/adapter-tiger_connect 1.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 (82) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +42 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +170 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +5398 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/Events/action.json +65 -0
  33. package/entities/Events/schema.json +21 -0
  34. package/entities/Group/action.json +125 -0
  35. package/entities/Group/schema.json +24 -0
  36. package/entities/Messages/action.json +167 -0
  37. package/entities/Messages/schema.json +48 -0
  38. package/entities/Metadata/action.json +45 -0
  39. package/entities/Metadata/schema.json +20 -0
  40. package/entities/Organization/action.json +105 -0
  41. package/entities/Organization/schema.json +23 -0
  42. package/entities/Roster/action.json +65 -0
  43. package/entities/Roster/schema.json +21 -0
  44. package/entities/Scheduler/action.json +244 -0
  45. package/entities/Scheduler/schema.json +30 -0
  46. package/entities/Search/action.json +24 -0
  47. package/entities/Search/schema.json +19 -0
  48. package/entities/Users/action.json +209 -0
  49. package/entities/Users/schema.json +72 -0
  50. package/error.json +190 -0
  51. package/package.json +87 -0
  52. package/pronghorn.json +2645 -0
  53. package/propertiesDecorators.json +14 -0
  54. package/propertiesSchema.json +1248 -0
  55. package/refs?service=git-upload-pack +0 -0
  56. package/report/TigerConnect.swagger-converted.json-OpenApi3Json.json +2843 -0
  57. package/report/creationReport.json +582 -0
  58. package/sampleProperties.json +195 -0
  59. package/test/integration/adapterTestBasicGet.js +83 -0
  60. package/test/integration/adapterTestConnectivity.js +93 -0
  61. package/test/integration/adapterTestIntegration.js +1684 -0
  62. package/test/unit/adapterBaseTestUnit.js +949 -0
  63. package/test/unit/adapterTestUnit.js +3033 -0
  64. package/utils/adapterInfo.js +206 -0
  65. package/utils/addAuth.js +94 -0
  66. package/utils/artifactize.js +146 -0
  67. package/utils/basicGet.js +50 -0
  68. package/utils/checkMigrate.js +63 -0
  69. package/utils/entitiesToDB.js +178 -0
  70. package/utils/findPath.js +74 -0
  71. package/utils/methodDocumentor.js +225 -0
  72. package/utils/modify.js +154 -0
  73. package/utils/packModificationScript.js +35 -0
  74. package/utils/patches2bundledDeps.js +90 -0
  75. package/utils/pre-commit.sh +32 -0
  76. package/utils/removeHooks.js +20 -0
  77. package/utils/setup.js +33 -0
  78. package/utils/tbScript.js +246 -0
  79. package/utils/tbUtils.js +490 -0
  80. package/utils/testRunner.js +298 -0
  81. package/utils/troubleshootingAdapter.js +195 -0
  82. package/workflows/README.md +3 -0
@@ -0,0 +1,244 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postReturnIntegrationInfo",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/configs/info?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "postDeleteAllMappingsOnDeletingIntegration",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/delete?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "postDifferentIntegrationIDOfOrg",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/configs/info/org?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "postAccessOrganizationKey",
65
+ "protocol": "REST",
66
+ "method": "POST",
67
+ "entitypath": "{base_path}/{version}/configs/set?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "postReturnAllMappings",
85
+ "protocol": "REST",
86
+ "method": "POST",
87
+ "entitypath": "{base_path}/{version}/mappings/ids/info?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "requestDatatype": "JSON",
93
+ "responseDatatype": "JSON",
94
+ "headers": {},
95
+ "responseObjects": [
96
+ {
97
+ "type": "default",
98
+ "key": "",
99
+ "mockFile": ""
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "name": "postUserOrRolesMappings",
105
+ "protocol": "REST",
106
+ "method": "POST",
107
+ "entitypath": "{base_path}/{version}/mappings/ids/add?{query}",
108
+ "requestSchema": "schema.json",
109
+ "responseSchema": "schema.json",
110
+ "timeout": 0,
111
+ "sendEmpty": false,
112
+ "requestDatatype": "JSON",
113
+ "responseDatatype": "JSON",
114
+ "headers": {},
115
+ "responseObjects": [
116
+ {
117
+ "type": "default",
118
+ "key": "",
119
+ "mockFile": ""
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "postDeleteAllMapings",
125
+ "protocol": "REST",
126
+ "method": "POST",
127
+ "entitypath": "{base_path}/{version}/mappings/ids/delete?{query}",
128
+ "requestSchema": "schema.json",
129
+ "responseSchema": "schema.json",
130
+ "timeout": 0,
131
+ "sendEmpty": false,
132
+ "requestDatatype": "JSON",
133
+ "responseDatatype": "JSON",
134
+ "headers": {},
135
+ "responseObjects": [
136
+ {
137
+ "type": "default",
138
+ "key": "",
139
+ "mockFile": ""
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "name": "postGetIntegrationInfo",
145
+ "protocol": "REST",
146
+ "method": "POST",
147
+ "entitypath": "{base_path}/{version}/mappings/ids/set?{query}",
148
+ "requestSchema": "schema.json",
149
+ "responseSchema": "schema.json",
150
+ "timeout": 0,
151
+ "sendEmpty": false,
152
+ "requestDatatype": "JSON",
153
+ "responseDatatype": "JSON",
154
+ "headers": {},
155
+ "responseObjects": [
156
+ {
157
+ "type": "default",
158
+ "key": "",
159
+ "mockFile": ""
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "name": "postSubmitPayloadOfCSVInfo",
165
+ "protocol": "REST",
166
+ "method": "POST",
167
+ "entitypath": "{base_path}/{version}/webhook/ids?{query}",
168
+ "requestSchema": "schema.json",
169
+ "responseSchema": "schema.json",
170
+ "timeout": 0,
171
+ "sendEmpty": false,
172
+ "requestDatatype": "JSON",
173
+ "responseDatatype": "JSON",
174
+ "headers": {},
175
+ "responseObjects": [
176
+ {
177
+ "type": "default",
178
+ "key": "",
179
+ "mockFile": ""
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "name": "postpostSubmitPayloadOfCSVInfo",
185
+ "protocol": "REST",
186
+ "method": "POST",
187
+ "entitypath": "{base_path}/{version}/webhook/csv?{query}",
188
+ "requestSchema": "schema.json",
189
+ "responseSchema": "schema.json",
190
+ "timeout": 0,
191
+ "sendEmpty": false,
192
+ "requestDatatype": "JSON",
193
+ "responseDatatype": "JSON",
194
+ "headers": {},
195
+ "responseObjects": [
196
+ {
197
+ "type": "default",
198
+ "key": "",
199
+ "mockFile": ""
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "name": "postRetrieveLastCsvFile",
205
+ "protocol": "REST",
206
+ "method": "POST",
207
+ "entitypath": "{base_path}/{version}/webhook/download?{query}",
208
+ "requestSchema": "schema.json",
209
+ "responseSchema": "schema.json",
210
+ "timeout": 0,
211
+ "sendEmpty": false,
212
+ "requestDatatype": "JSON",
213
+ "responseDatatype": "JSON",
214
+ "headers": {},
215
+ "responseObjects": [
216
+ {
217
+ "type": "default",
218
+ "key": "",
219
+ "mockFile": ""
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "postSubmitPayloadOfShiftInfo",
225
+ "protocol": "REST",
226
+ "method": "POST",
227
+ "entitypath": "{base_path}/{version}/webhook?{query}",
228
+ "requestSchema": "schema.json",
229
+ "responseSchema": "schema.json",
230
+ "timeout": 0,
231
+ "sendEmpty": false,
232
+ "requestDatatype": "JSON",
233
+ "responseDatatype": "JSON",
234
+ "headers": {},
235
+ "responseObjects": [
236
+ {
237
+ "type": "default",
238
+ "key": "",
239
+ "mockFile": ""
240
+ }
241
+ ]
242
+ }
243
+ ]
244
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "postReturnIntegrationInfo",
12
+ "enum": [
13
+ "postReturnIntegrationInfo",
14
+ "postDeleteAllMappingsOnDeletingIntegration",
15
+ "postDifferentIntegrationIDOfOrg",
16
+ "postAccessOrganizationKey",
17
+ "postReturnAllMappings",
18
+ "postUserOrRolesMappings",
19
+ "postDeleteAllMapings",
20
+ "postGetIntegrationInfo",
21
+ "postSubmitPayloadOfCSVInfo",
22
+ "postpostSubmitPayloadOfCSVInfo",
23
+ "postRetrieveLastCsvFile",
24
+ "postSubmitPayloadOfShiftInfo"
25
+ ],
26
+ "external_name": "ph_request_type"
27
+ }
28
+ },
29
+ "definitions": {}
30
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postSearchEntities",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/search?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "postSearchEntities",
12
+ "enum": [
13
+ "postSearchEntities"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,209 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getUserInfo",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/user/{pathv1}?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getUnreadMsgCountAcrossAllOrg",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/user/{pathv1}/message/unread_count?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getUnreadMsgCountForUserForSingleOrg",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization/{pathv2}/message/unread_count?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": ""
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "getUserBasicDetails",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/user_lookup/{pathv1}?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": ""
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "postAddUserToOrg",
89
+ "protocol": "REST",
90
+ "method": "POST",
91
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "requestDatatype": "URLENCODE",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "name": "deleteUserFromOrg",
109
+ "protocol": "REST",
110
+ "method": "DELETE",
111
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization/{pathv2}?{query}",
112
+ "requestSchema": "schema.json",
113
+ "responseSchema": "schema.json",
114
+ "timeout": 0,
115
+ "sendEmpty": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "getUserRole",
129
+ "protocol": "REST",
130
+ "method": "GET",
131
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization/{pathv2}/roles?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "sendGetBody": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "postSpecificRoleToUser",
150
+ "protocol": "REST",
151
+ "method": "POST",
152
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization/{pathv2}/roles/{pathv3}?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "requestDatatype": "JSON",
158
+ "responseDatatype": "JSON",
159
+ "headers": {},
160
+ "responseObjects": [
161
+ {
162
+ "type": "default",
163
+ "key": "",
164
+ "mockFile": ""
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "name": "deleteUserRole",
170
+ "protocol": "REST",
171
+ "method": "DELETE",
172
+ "entitypath": "{base_path}/{version}/user/{pathv1}/organization/{pathv2}/roles/{pathv3}?{query}",
173
+ "requestSchema": "schema.json",
174
+ "responseSchema": "schema.json",
175
+ "timeout": 0,
176
+ "sendEmpty": false,
177
+ "requestDatatype": "JSON",
178
+ "responseDatatype": "JSON",
179
+ "headers": {},
180
+ "responseObjects": [
181
+ {
182
+ "type": "default",
183
+ "key": "",
184
+ "mockFile": ""
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "postUpdateUsers",
190
+ "protocol": "REST",
191
+ "method": "POST",
192
+ "entitypath": "{base_path}/{version}/user?{query}",
193
+ "requestSchema": "schema.json",
194
+ "responseSchema": "schema.json",
195
+ "timeout": 0,
196
+ "sendEmpty": false,
197
+ "requestDatatype": "URLENCODE",
198
+ "responseDatatype": "JSON",
199
+ "headers": {},
200
+ "responseObjects": [
201
+ {
202
+ "type": "default",
203
+ "key": "",
204
+ "mockFile": ""
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getUserInfo",
12
+ "enum": [
13
+ "getUserInfo",
14
+ "getUnreadMsgCountAcrossAllOrg",
15
+ "getUnreadMsgCountForUserForSingleOrg",
16
+ "getUserBasicDetails",
17
+ "postAddUserToOrg",
18
+ "deleteUserFromOrg",
19
+ "getUserRole",
20
+ "postSpecificRoleToUser",
21
+ "deleteUserRole",
22
+ "postUpdateUsers"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ },
26
+ "organizationKey": {
27
+ "type": "string",
28
+ "description": "",
29
+ "parse": false,
30
+ "encode": false,
31
+ "encrypt": {
32
+ "type": "AES",
33
+ "key": ""
34
+ },
35
+ "external_name": "organization_key"
36
+ },
37
+ "uniqueId": {
38
+ "type": "string",
39
+ "description": "",
40
+ "parse": false,
41
+ "encode": false,
42
+ "encrypt": {
43
+ "type": "AES",
44
+ "key": ""
45
+ },
46
+ "external_name": "unique_id"
47
+ },
48
+ "firstName": {
49
+ "type": "string",
50
+ "description": "",
51
+ "parse": false,
52
+ "encode": false,
53
+ "encrypt": {
54
+ "type": "AES",
55
+ "key": ""
56
+ },
57
+ "external_name": "first_name"
58
+ },
59
+ "lastName": {
60
+ "type": "string",
61
+ "description": "",
62
+ "parse": false,
63
+ "encode": false,
64
+ "encrypt": {
65
+ "type": "AES",
66
+ "key": ""
67
+ },
68
+ "external_name": "last_name"
69
+ }
70
+ },
71
+ "definitions": {}
72
+ }