@itentialopensource/adapter-oracle_cloud 0.1.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 (166) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/CHANGELOG.md +9 -0
  5. package/CODE_OF_CONDUCT.md +48 -0
  6. package/CONTRIBUTING.md +158 -0
  7. package/LICENSE +201 -0
  8. package/README.md +687 -0
  9. package/adapter.js +11250 -0
  10. package/adapterBase.js +1028 -0
  11. package/entities/.generic/action.json +109 -0
  12. package/entities/.generic/schema.json +23 -0
  13. package/entities/.system/action.json +50 -0
  14. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  15. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  16. package/entities/.system/schema.json +19 -0
  17. package/entities/.system/schemaTokenReq.json +53 -0
  18. package/entities/.system/schemaTokenResp.json +53 -0
  19. package/entities/Applinks/action.json +64 -0
  20. package/entities/Applinks/mockdatafiles/postDocumentsApi12ApplinksFileFileId-default.json +10 -0
  21. package/entities/Applinks/mockdatafiles/postDocumentsApi12ApplinksFolderFolderId-default.json +10 -0
  22. package/entities/Applinks/mockdatafiles/putDocumentsApi12ApplinksToken-default.json +5 -0
  23. package/entities/Applinks/schema.json +21 -0
  24. package/entities/Catalog/action.json +298 -0
  25. package/entities/Catalog/mockdatafiles/getDocumentsApi-default.json +61 -0
  26. package/entities/Catalog/mockdatafiles/getDocumentsApiVersion-default.json +23 -0
  27. package/entities/Catalog/mockdatafiles/getDocumentsApiVersionMetadataCatalog-default.json +147 -0
  28. package/entities/Catalog/schema.json +32 -0
  29. package/entities/Collections/action.json +145 -0
  30. package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionId-default.json +5 -0
  31. package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionIdFiles-default.json +25 -0
  32. package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionIdFilesFileId-default.json +5 -0
  33. package/entities/Collections/mockdatafiles/getDocumentsApi12CollectionsItems-default.json +37 -0
  34. package/entities/Collections/mockdatafiles/postDocumentsApi12Collections-default.json +28 -0
  35. package/entities/Collections/mockdatafiles/postDocumentsApi12CollectionsCollectionIdFiles-default.json +32 -0
  36. package/entities/Collections/mockdatafiles/postDocumentsApi12CollectionsCollectionIdFilesFileId-default.json +6 -0
  37. package/entities/Collections/schema.json +25 -0
  38. package/entities/Configuration/action.json +87 -0
  39. package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigCollaboration-default.json +9 -0
  40. package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigNotificationEmail-default.json +5 -0
  41. package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigSitesDeliverycdn-default.json +10 -0
  42. package/entities/Configuration/mockdatafiles/putDocumentsApi12ConfigNotificationEmail-default.json +4 -0
  43. package/entities/Configuration/schema.json +22 -0
  44. package/entities/Files/action.json +721 -0
  45. package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileId-default.json +5 -0
  46. package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileIdMetadata-default.json +5 -0
  47. package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileIdTags-default.json +5 -0
  48. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileId-default.json +150 -0
  49. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdAccesses-default.json +26 -0
  50. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdDataRenditions-default.json +21 -0
  51. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdMetadata-default.json +15 -0
  52. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdMetadataFields-default.json +45 -0
  53. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdPages-default.json +6 -0
  54. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdPreviewPath-default.json +7 -0
  55. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdTags-default.json +6 -0
  56. package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdVersions-default.json +37 -0
  57. package/entities/Files/mockdatafiles/getDocumentsApi12FilesLists-default.json +34 -0
  58. package/entities/Files/mockdatafiles/postDocumentsApi12FilesData-default.json +30 -0
  59. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdConversation-default.json +9 -0
  60. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdCopy-default.json +7 -0
  61. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdData-default.json +30 -0
  62. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdDataRendition-default.json +5 -0
  63. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMetadata-default.json +5 -0
  64. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMetadataCollectionName-default.json +5 -0
  65. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMove-default.json +6 -0
  66. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdPages-default.json +5 -0
  67. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdReserve-default.json +12 -0
  68. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdTags-default.json +5 -0
  69. package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdUnreserve-default.json +5 -0
  70. package/entities/Files/mockdatafiles/putDocumentsApi12FilesFileId-default.json +29 -0
  71. package/entities/Files/mockdatafiles/putDocumentsApi12FilesFileIdTags-default.json +5 -0
  72. package/entities/Files/schema.json +53 -0
  73. package/entities/Folders/action.json +535 -0
  74. package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderId-default.json +5 -0
  75. package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdDownloadJobId-default.json +4 -0
  76. package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdMetadata-default.json +5 -0
  77. package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdTags-default.json +5 -0
  78. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderId-default.json +26 -0
  79. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdDownloadJobId-default.json +17 -0
  80. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdItems-default.json +91 -0
  81. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdMetadata-default.json +11 -0
  82. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdMetadataFields-default.json +26 -0
  83. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdSearchItems-default.json +87 -0
  84. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdTags-default.json +6 -0
  85. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersItems-default.json +93 -0
  86. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersLists-default.json +26 -0
  87. package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersSearchItems-default.json +99 -0
  88. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderId-default.json +30 -0
  89. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdBulkCreate-default.json +98 -0
  90. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdConversation-default.json +9 -0
  91. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdCopy-default.json +7 -0
  92. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdDownload-default.json +8 -0
  93. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMetadata-default.json +5 -0
  94. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMetadataCollectionName-default.json +5 -0
  95. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMove-default.json +6 -0
  96. package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdTags-default.json +5 -0
  97. package/entities/Folders/mockdatafiles/putDocumentsApi12FoldersFolderId-default.json +30 -0
  98. package/entities/Folders/mockdatafiles/putDocumentsApi12FoldersFolderIdTags-default.json +5 -0
  99. package/entities/Folders/schema.json +44 -0
  100. package/entities/MetadataCollection/action.json +167 -0
  101. package/entities/MetadataCollection/mockdatafiles/deleteDocumentsApi12MetadataCollectionName-default.json +3 -0
  102. package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12Metadata-default.json +45 -0
  103. package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12MetadataCollectionName-default.json +21 -0
  104. package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12MetadataSearchFields-default.json +6 -0
  105. package/entities/MetadataCollection/mockdatafiles/postDocumentsApi12MetadataCollectionName-default.json +3 -0
  106. package/entities/MetadataCollection/mockdatafiles/postDocumentsApi12MetadataSearchFields-default.json +3 -0
  107. package/entities/MetadataCollection/mockdatafiles/putDocumentsApi12MetadataCollectionName-default.json +3 -0
  108. package/entities/MetadataCollection/mockdatafiles/putDocumentsApi12MetadataCollectionNameField-default.json +3 -0
  109. package/entities/MetadataCollection/schema.json +26 -0
  110. package/entities/Publiclinks/action.json +147 -0
  111. package/entities/Publiclinks/mockdatafiles/deleteDocumentsApi12PubliclinksLinkId-default.json +5 -0
  112. package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFileFileId-default.json +37 -0
  113. package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFolderFolderId-default.json +36 -0
  114. package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksLinkId-default.json +16 -0
  115. package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFileFileId-default.json +17 -0
  116. package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFolderFolderId-default.json +17 -0
  117. package/entities/Publiclinks/mockdatafiles/putDocumentsApi12PubliclinksLinkId-default.json +16 -0
  118. package/entities/Publiclinks/schema.json +25 -0
  119. package/entities/Shares/action.json +125 -0
  120. package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderId-default.json +5 -0
  121. package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderIdMyuser-default.json +5 -0
  122. package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderIdUser-default.json +18 -0
  123. package/entities/Shares/mockdatafiles/getDocumentsApi12SharesFolderIdItems-default.json +16 -0
  124. package/entities/Shares/mockdatafiles/postDocumentsApi12SharesFolderId-default.json +19 -0
  125. package/entities/Shares/mockdatafiles/putDocumentsApi12SharesFolderIdRole-default.json +19 -0
  126. package/entities/Shares/schema.json +24 -0
  127. package/entities/Sites/action.json +24 -0
  128. package/entities/Sites/mockdatafiles/postDocumentsApi12SitesSiteIdSite-default.json +33 -0
  129. package/entities/Sites/schema.json +19 -0
  130. package/entities/Templates/action.json +24 -0
  131. package/entities/Templates/mockdatafiles/postDocumentsApi12TemplatesTemplateIdSite-default.json +33 -0
  132. package/entities/Templates/schema.json +19 -0
  133. package/entities/Users/action.json +66 -0
  134. package/entities/Users/mockdatafiles/getDocumentsApi12UsersItems-default.json +24 -0
  135. package/entities/Users/mockdatafiles/getDocumentsApi12UsersSearchItems-default.json +12 -0
  136. package/entities/Users/mockdatafiles/postDocumentsApi12UsersUserIDTransferContent-default.json +15 -0
  137. package/entities/Users/schema.json +21 -0
  138. package/error.json +184 -0
  139. package/package.json +83 -0
  140. package/pronghorn.json +10358 -0
  141. package/propertiesSchema.json +840 -0
  142. package/refs?service=git-upload-pack +0 -0
  143. package/report/creationReport.json +434 -0
  144. package/report/oracleCloud.json +11867 -0
  145. package/sampleProperties.json +106 -0
  146. package/test/integration/adapterTestBasicGet.js +85 -0
  147. package/test/integration/adapterTestConnectivity.js +93 -0
  148. package/test/integration/adapterTestIntegration.js +3824 -0
  149. package/test/unit/adapterBaseTestUnit.js +944 -0
  150. package/test/unit/adapterTestUnit.js +5333 -0
  151. package/utils/addAuth.js +94 -0
  152. package/utils/artifactize.js +146 -0
  153. package/utils/basicGet.js +50 -0
  154. package/utils/checkMigrate.js +63 -0
  155. package/utils/entitiesToDB.js +224 -0
  156. package/utils/findPath.js +74 -0
  157. package/utils/modify.js +154 -0
  158. package/utils/packModificationScript.js +35 -0
  159. package/utils/pre-commit.sh +27 -0
  160. package/utils/removeHooks.js +20 -0
  161. package/utils/setup.js +33 -0
  162. package/utils/tbScript.js +169 -0
  163. package/utils/tbUtils.js +445 -0
  164. package/utils/testRunner.js +298 -0
  165. package/utils/troubleshootingAdapter.js +190 -0
  166. package/workflows/README.md +3 -0
@@ -0,0 +1,109 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getGenerics",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "createGeneric",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "updateGeneric",
47
+ "protocol": "REST",
48
+ "method": "PUT",
49
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "patchGeneric",
68
+ "protocol": "REST",
69
+ "method": "PATCH",
70
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{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": "deleteGeneric",
89
+ "protocol": "REST",
90
+ "method": "DELETE",
91
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": ""
105
+ }
106
+ ]
107
+ }
108
+ ]
109
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$id": "generic_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": "getGeneric",
12
+ "enum": [
13
+ "getGenerics",
14
+ "createGeneric",
15
+ "updateGeneric",
16
+ "patchGeneric",
17
+ "deleteGeneric"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getToken",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/login",
8
+ "requestSchema": "schemaTokenReq.json",
9
+ "responseSchema": "schemaTokenResp.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "",
13
+ "responseDatatype": "",
14
+ "headers": {},
15
+ "sso": {
16
+ "protocol": "",
17
+ "host": "",
18
+ "port": 0
19
+ },
20
+ "responseObjects": [
21
+ {
22
+ "type": "default",
23
+ "key": "",
24
+ "mockFile": "mockdatafiles/getToken-default.json"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "name": "healthcheck",
30
+ "protocol": "REST",
31
+ "method": "GET",
32
+ "entitypath": "{base_path}/{version}/healthcheck?{query}",
33
+ "requestSchema": "schema.json",
34
+ "responseSchema": "schema.json",
35
+ "timeout": 0,
36
+ "sendEmpty": false,
37
+ "sendGetBody": false,
38
+ "requestDatatype": "",
39
+ "responseDatatype": "",
40
+ "headers": {},
41
+ "responseObjects": [
42
+ {
43
+ "type": "default",
44
+ "key": "",
45
+ "mockFile": "mockdatafiles/healthcheck-default.json"
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "token": "garbagetoken"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "mockkey": "mockvalue"
3
+ }
@@ -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": "healthcheck",
12
+ "enum": [
13
+ "healthcheck"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$id": ".system-schemaTokenReq.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": "getToken",
12
+ "enum": [
13
+ "getToken"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "username": {
18
+ "type": "string",
19
+ "description": "username to log in with",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "username"
27
+ },
28
+ "password": {
29
+ "type": "string",
30
+ "description": "password to log in with",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "password"
38
+ },
39
+ "token": {
40
+ "type": "string",
41
+ "description": "token returned by system",
42
+ "parse": false,
43
+ "encode": false,
44
+ "placement": "BODY",
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "token"
50
+ }
51
+ },
52
+ "definitions": {}
53
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$id": ".system-schemaTokenResp.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": "getToken",
12
+ "enum": [
13
+ "getToken"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "username": {
18
+ "type": "string",
19
+ "description": "username to log in with",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "username"
27
+ },
28
+ "password": {
29
+ "type": "string",
30
+ "description": "password to log in with",
31
+ "parse": false,
32
+ "encode": false,
33
+ "encrypt": {
34
+ "type": "AES",
35
+ "key": ""
36
+ },
37
+ "external_name": "password"
38
+ },
39
+ "token": {
40
+ "type": "string",
41
+ "description": "token returned by system",
42
+ "parse": false,
43
+ "encode": false,
44
+ "placement": "BODY",
45
+ "encrypt": {
46
+ "type": "AES",
47
+ "key": ""
48
+ },
49
+ "external_name": "token"
50
+ }
51
+ },
52
+ "definitions": {}
53
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postDocumentsApi12ApplinksFolderFolderId",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/documents/api/1.2/applinks/folder/{pathv1}?{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": "mockdatafiles/postDocumentsApi12ApplinksFolderFolderId-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "postDocumentsApi12ApplinksFileFileId",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/documents/api/1.2/applinks/file/{pathv1}?{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": "mockdatafiles/postDocumentsApi12ApplinksFileFileId-default.json"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "putDocumentsApi12ApplinksToken",
45
+ "protocol": "REST",
46
+ "method": "PUT",
47
+ "entitypath": "{base_path}/{version}/documents/api/1.2/applinks/token?{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": "mockdatafiles/putDocumentsApi12ApplinksToken-default.json"
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "appLinkID": "LDhsn4VPTsnDnKpKLFZTCkjaPkYbMC6-3taYSdJAazckhezJ2HlSjs2THOou6cCAvxcRnw5gpXcU7pIRkCmWN8kEToJHFwwZ-ptWvPGhJaiirl9baL9mka14WnwpL6auOO40-gFMPvkPv23OtMnj2W3A==",
3
+ "accessToken": "GYrSN5zuj0kOTE4k_60bKvdkxx2-ARA546A2T77GtEOgoPZPGgKk126OeCn1w-Ij",
4
+ "appLinkUrl": "http://www.example.com/documents/embed/link/app/LDhsn4VPTsnDnKpKLFZTCkjaPkYbMC6-3taYSdJAazckhezJ2HlSjs2THOou6cCAvxcRnw5gpXcU7pIRkCmWN8kEToJHFwwZ-ptWvPGhJaiirl9baL9mka14WnwpL6auOO40-gFMPvkPv23OtMnj2W3A==/fileview/DFD11F62E911327CB1F160F6T0000000000100000001",
5
+ "refreshToken": "Yc_b_dE8V03eDTCmcmC1gi_y3LVJTPiZOSQDhuS_VWim9E_FRpLQGtEhgxCNbKTG",
6
+ "role": "manager",
7
+ "id": "DFD11F62E911327CB1F160F6T0000000000100000001",
8
+ "type": "applink",
9
+ "errorCode": "0"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "appLinkID": "LFwi1u1E9vZC_3pQhK5C4qxigAC4o1eUuMnv3dZbo6_OiaZx-yte-xIrxWdDJCA_jEgfVHe1At-26KX-M9mi9BaI7B0UX3Gx-QufREHWcHakby0_V9n8_C1pT7P_CKYlSqFU0rudQ8Q81M67-3fLffMA==",
3
+ "accessToken": "_qVnD42Et8KwZrBUqveiqn1sw-RLpfZQdIPPi_fd17-gt60FP6-IuCApyLFw32EL",
4
+ "refreshToken": "ctOCKm4mtpayp__jUlQsfdFEd52vSn2Pd4QxOTcSZ1Wch0f9JP7EFSaXmDLKZdql",
5
+ "appLinkUrl": "http://www.example.com/documents/embed/link/app/LFwi1u1E9vZC_3pQhK5C4qxigAC4o1eUuMnv3dZbo6_OiaZx-yte-xIrxWdDJCA_jEgfVHe1At-26KX-M9mi9BaI7B0UX3Gx-QufREHWcHakby0_V9n8_C1pT7P_CKYlSqFU0rudQ8Q81M67-3fLffMA==/folder/F3399E673E5B93B3774531E7T0000000000100000001",
6
+ "role": "viewer",
7
+ "id": "F3399E673E5B93B3774531E7T0000000000100000001",
8
+ "type": "applink",
9
+ "errorCode": "0"
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "accessToken": "GYrSN5zuj0kOTE4k_60bKvdkxx2-ARA546A2T77GtEOgoPZPGgKk126OeCn1w-Ij",
3
+ "type": "applink",
4
+ "errorCode": "0"
5
+ }
@@ -0,0 +1,21 @@
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": "postDocumentsApi12ApplinksFolderFolderId",
12
+ "enum": [
13
+ "postDocumentsApi12ApplinksFolderFolderId",
14
+ "postDocumentsApi12ApplinksFileFileId",
15
+ "putDocumentsApi12ApplinksToken"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }