@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.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +48 -0
- package/CONTRIBUTING.md +158 -0
- package/LICENSE +201 -0
- package/README.md +687 -0
- package/adapter.js +11250 -0
- package/adapterBase.js +1028 -0
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Applinks/action.json +64 -0
- package/entities/Applinks/mockdatafiles/postDocumentsApi12ApplinksFileFileId-default.json +10 -0
- package/entities/Applinks/mockdatafiles/postDocumentsApi12ApplinksFolderFolderId-default.json +10 -0
- package/entities/Applinks/mockdatafiles/putDocumentsApi12ApplinksToken-default.json +5 -0
- package/entities/Applinks/schema.json +21 -0
- package/entities/Catalog/action.json +298 -0
- package/entities/Catalog/mockdatafiles/getDocumentsApi-default.json +61 -0
- package/entities/Catalog/mockdatafiles/getDocumentsApiVersion-default.json +23 -0
- package/entities/Catalog/mockdatafiles/getDocumentsApiVersionMetadataCatalog-default.json +147 -0
- package/entities/Catalog/schema.json +32 -0
- package/entities/Collections/action.json +145 -0
- package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionId-default.json +5 -0
- package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionIdFiles-default.json +25 -0
- package/entities/Collections/mockdatafiles/deleteDocumentsApi12CollectionsCollectionIdFilesFileId-default.json +5 -0
- package/entities/Collections/mockdatafiles/getDocumentsApi12CollectionsItems-default.json +37 -0
- package/entities/Collections/mockdatafiles/postDocumentsApi12Collections-default.json +28 -0
- package/entities/Collections/mockdatafiles/postDocumentsApi12CollectionsCollectionIdFiles-default.json +32 -0
- package/entities/Collections/mockdatafiles/postDocumentsApi12CollectionsCollectionIdFilesFileId-default.json +6 -0
- package/entities/Collections/schema.json +25 -0
- package/entities/Configuration/action.json +87 -0
- package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigCollaboration-default.json +9 -0
- package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigNotificationEmail-default.json +5 -0
- package/entities/Configuration/mockdatafiles/getDocumentsApi12ConfigSitesDeliverycdn-default.json +10 -0
- package/entities/Configuration/mockdatafiles/putDocumentsApi12ConfigNotificationEmail-default.json +4 -0
- package/entities/Configuration/schema.json +22 -0
- package/entities/Files/action.json +721 -0
- package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileId-default.json +5 -0
- package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileIdMetadata-default.json +5 -0
- package/entities/Files/mockdatafiles/deleteDocumentsApi12FilesFileIdTags-default.json +5 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileId-default.json +150 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdAccesses-default.json +26 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdDataRenditions-default.json +21 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdMetadata-default.json +15 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdMetadataFields-default.json +45 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdPages-default.json +6 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdPreviewPath-default.json +7 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdTags-default.json +6 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesFileIdVersions-default.json +37 -0
- package/entities/Files/mockdatafiles/getDocumentsApi12FilesLists-default.json +34 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesData-default.json +30 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdConversation-default.json +9 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdCopy-default.json +7 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdData-default.json +30 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdDataRendition-default.json +5 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMetadata-default.json +5 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMetadataCollectionName-default.json +5 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdMove-default.json +6 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdPages-default.json +5 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdReserve-default.json +12 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdTags-default.json +5 -0
- package/entities/Files/mockdatafiles/postDocumentsApi12FilesFileIdUnreserve-default.json +5 -0
- package/entities/Files/mockdatafiles/putDocumentsApi12FilesFileId-default.json +29 -0
- package/entities/Files/mockdatafiles/putDocumentsApi12FilesFileIdTags-default.json +5 -0
- package/entities/Files/schema.json +53 -0
- package/entities/Folders/action.json +535 -0
- package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderId-default.json +5 -0
- package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdDownloadJobId-default.json +4 -0
- package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdMetadata-default.json +5 -0
- package/entities/Folders/mockdatafiles/deleteDocumentsApi12FoldersFolderIdTags-default.json +5 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderId-default.json +26 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdDownloadJobId-default.json +17 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdItems-default.json +91 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdMetadata-default.json +11 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdMetadataFields-default.json +26 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdSearchItems-default.json +87 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersFolderIdTags-default.json +6 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersItems-default.json +93 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersLists-default.json +26 -0
- package/entities/Folders/mockdatafiles/getDocumentsApi12FoldersSearchItems-default.json +99 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderId-default.json +30 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdBulkCreate-default.json +98 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdConversation-default.json +9 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdCopy-default.json +7 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdDownload-default.json +8 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMetadata-default.json +5 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMetadataCollectionName-default.json +5 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdMove-default.json +6 -0
- package/entities/Folders/mockdatafiles/postDocumentsApi12FoldersFolderIdTags-default.json +5 -0
- package/entities/Folders/mockdatafiles/putDocumentsApi12FoldersFolderId-default.json +30 -0
- package/entities/Folders/mockdatafiles/putDocumentsApi12FoldersFolderIdTags-default.json +5 -0
- package/entities/Folders/schema.json +44 -0
- package/entities/MetadataCollection/action.json +167 -0
- package/entities/MetadataCollection/mockdatafiles/deleteDocumentsApi12MetadataCollectionName-default.json +3 -0
- package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12Metadata-default.json +45 -0
- package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12MetadataCollectionName-default.json +21 -0
- package/entities/MetadataCollection/mockdatafiles/getDocumentsApi12MetadataSearchFields-default.json +6 -0
- package/entities/MetadataCollection/mockdatafiles/postDocumentsApi12MetadataCollectionName-default.json +3 -0
- package/entities/MetadataCollection/mockdatafiles/postDocumentsApi12MetadataSearchFields-default.json +3 -0
- package/entities/MetadataCollection/mockdatafiles/putDocumentsApi12MetadataCollectionName-default.json +3 -0
- package/entities/MetadataCollection/mockdatafiles/putDocumentsApi12MetadataCollectionNameField-default.json +3 -0
- package/entities/MetadataCollection/schema.json +26 -0
- package/entities/Publiclinks/action.json +147 -0
- package/entities/Publiclinks/mockdatafiles/deleteDocumentsApi12PubliclinksLinkId-default.json +5 -0
- package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFileFileId-default.json +37 -0
- package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFolderFolderId-default.json +36 -0
- package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksLinkId-default.json +16 -0
- package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFileFileId-default.json +17 -0
- package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFolderFolderId-default.json +17 -0
- package/entities/Publiclinks/mockdatafiles/putDocumentsApi12PubliclinksLinkId-default.json +16 -0
- package/entities/Publiclinks/schema.json +25 -0
- package/entities/Shares/action.json +125 -0
- package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderId-default.json +5 -0
- package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderIdMyuser-default.json +5 -0
- package/entities/Shares/mockdatafiles/deleteDocumentsApi12SharesFolderIdUser-default.json +18 -0
- package/entities/Shares/mockdatafiles/getDocumentsApi12SharesFolderIdItems-default.json +16 -0
- package/entities/Shares/mockdatafiles/postDocumentsApi12SharesFolderId-default.json +19 -0
- package/entities/Shares/mockdatafiles/putDocumentsApi12SharesFolderIdRole-default.json +19 -0
- package/entities/Shares/schema.json +24 -0
- package/entities/Sites/action.json +24 -0
- package/entities/Sites/mockdatafiles/postDocumentsApi12SitesSiteIdSite-default.json +33 -0
- package/entities/Sites/schema.json +19 -0
- package/entities/Templates/action.json +24 -0
- package/entities/Templates/mockdatafiles/postDocumentsApi12TemplatesTemplateIdSite-default.json +33 -0
- package/entities/Templates/schema.json +19 -0
- package/entities/Users/action.json +66 -0
- package/entities/Users/mockdatafiles/getDocumentsApi12UsersItems-default.json +24 -0
- package/entities/Users/mockdatafiles/getDocumentsApi12UsersSearchItems-default.json +12 -0
- package/entities/Users/mockdatafiles/postDocumentsApi12UsersUserIDTransferContent-default.json +15 -0
- package/entities/Users/schema.json +21 -0
- package/error.json +184 -0
- package/package.json +83 -0
- package/pronghorn.json +10358 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +434 -0
- package/report/oracleCloud.json +11867 -0
- package/sampleProperties.json +106 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +3824 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +5333 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/pre-commit.sh +27 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +445 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,44 @@
|
|
|
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": "postDocumentsApi12FoldersFolderIdMetadataCollectionName",
|
|
12
|
+
"enum": [
|
|
13
|
+
"postDocumentsApi12FoldersFolderIdMetadataCollectionName",
|
|
14
|
+
"postDocumentsApi12FoldersFolderIdMetadata",
|
|
15
|
+
"getDocumentsApi12FoldersFolderIdMetadata",
|
|
16
|
+
"deleteDocumentsApi12FoldersFolderIdMetadata",
|
|
17
|
+
"getDocumentsApi12FoldersFolderIdMetadataFields",
|
|
18
|
+
"postDocumentsApi12FoldersFolderIdBulkCreate",
|
|
19
|
+
"postDocumentsApi12FoldersFolderIdDownload",
|
|
20
|
+
"getDocumentsApi12FoldersFolderIdDownloadJobId",
|
|
21
|
+
"deleteDocumentsApi12FoldersFolderIdDownloadJobId",
|
|
22
|
+
"getDocumentsApi12FoldersFolderIdDownloadJobIdPackage",
|
|
23
|
+
"getDocumentsApi12FoldersFolderId",
|
|
24
|
+
"postDocumentsApi12FoldersFolderId",
|
|
25
|
+
"putDocumentsApi12FoldersFolderId",
|
|
26
|
+
"deleteDocumentsApi12FoldersFolderId",
|
|
27
|
+
"postDocumentsApi12FoldersFolderIdCopy",
|
|
28
|
+
"postDocumentsApi12FoldersFolderIdMove",
|
|
29
|
+
"getDocumentsApi12FoldersItems",
|
|
30
|
+
"getDocumentsApi12FoldersFolderIdItems",
|
|
31
|
+
"getDocumentsApi12FoldersSearchItems",
|
|
32
|
+
"getDocumentsApi12FoldersFolderIdSearchItems",
|
|
33
|
+
"getDocumentsApi12FoldersLists",
|
|
34
|
+
"getDocumentsApi12FoldersFolderIdTags",
|
|
35
|
+
"postDocumentsApi12FoldersFolderIdTags",
|
|
36
|
+
"putDocumentsApi12FoldersFolderIdTags",
|
|
37
|
+
"deleteDocumentsApi12FoldersFolderIdTags",
|
|
38
|
+
"postDocumentsApi12FoldersFolderIdConversation"
|
|
39
|
+
],
|
|
40
|
+
"external_name": "ph_request_type"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"definitions": {}
|
|
44
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postDocumentsApi12MetadataCollectionName",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/{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/postDocumentsApi12MetadataCollectionName-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "putDocumentsApi12MetadataCollectionName",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "PUT",
|
|
27
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/{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/putDocumentsApi12MetadataCollectionName-default.json"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "getDocumentsApi12MetadataCollectionName",
|
|
45
|
+
"protocol": "REST",
|
|
46
|
+
"method": "GET",
|
|
47
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/{pathv1}?{query}",
|
|
48
|
+
"requestSchema": "schema.json",
|
|
49
|
+
"responseSchema": "schema.json",
|
|
50
|
+
"timeout": 0,
|
|
51
|
+
"sendEmpty": false,
|
|
52
|
+
"sendGetBody": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": "mockdatafiles/getDocumentsApi12MetadataCollectionName-default.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "deleteDocumentsApi12MetadataCollectionName",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "DELETE",
|
|
68
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/{pathv1}?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"requestDatatype": "JSON",
|
|
74
|
+
"responseDatatype": "JSON",
|
|
75
|
+
"headers": {},
|
|
76
|
+
"responseObjects": [
|
|
77
|
+
{
|
|
78
|
+
"type": "default",
|
|
79
|
+
"key": "",
|
|
80
|
+
"mockFile": "mockdatafiles/deleteDocumentsApi12MetadataCollectionName-default.json"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "putDocumentsApi12MetadataCollectionNameField",
|
|
86
|
+
"protocol": "REST",
|
|
87
|
+
"method": "PUT",
|
|
88
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/{pathv1}/field?{query}",
|
|
89
|
+
"requestSchema": "schema.json",
|
|
90
|
+
"responseSchema": "schema.json",
|
|
91
|
+
"timeout": 0,
|
|
92
|
+
"sendEmpty": false,
|
|
93
|
+
"requestDatatype": "JSON",
|
|
94
|
+
"responseDatatype": "JSON",
|
|
95
|
+
"headers": {},
|
|
96
|
+
"responseObjects": [
|
|
97
|
+
{
|
|
98
|
+
"type": "default",
|
|
99
|
+
"key": "",
|
|
100
|
+
"mockFile": "mockdatafiles/putDocumentsApi12MetadataCollectionNameField-default.json"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "getDocumentsApi12MetadataSearchFields",
|
|
106
|
+
"protocol": "REST",
|
|
107
|
+
"method": "GET",
|
|
108
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/searchFields?{query}",
|
|
109
|
+
"requestSchema": "schema.json",
|
|
110
|
+
"responseSchema": "schema.json",
|
|
111
|
+
"timeout": 0,
|
|
112
|
+
"sendEmpty": false,
|
|
113
|
+
"sendGetBody": false,
|
|
114
|
+
"requestDatatype": "JSON",
|
|
115
|
+
"responseDatatype": "JSON",
|
|
116
|
+
"headers": {},
|
|
117
|
+
"responseObjects": [
|
|
118
|
+
{
|
|
119
|
+
"type": "default",
|
|
120
|
+
"key": "",
|
|
121
|
+
"mockFile": "mockdatafiles/getDocumentsApi12MetadataSearchFields-default.json"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "postDocumentsApi12MetadataSearchFields",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "POST",
|
|
129
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata/searchFields?{query}",
|
|
130
|
+
"requestSchema": "schema.json",
|
|
131
|
+
"responseSchema": "schema.json",
|
|
132
|
+
"timeout": 0,
|
|
133
|
+
"sendEmpty": false,
|
|
134
|
+
"requestDatatype": "JSON",
|
|
135
|
+
"responseDatatype": "JSON",
|
|
136
|
+
"headers": {},
|
|
137
|
+
"responseObjects": [
|
|
138
|
+
{
|
|
139
|
+
"type": "default",
|
|
140
|
+
"key": "",
|
|
141
|
+
"mockFile": "mockdatafiles/postDocumentsApi12MetadataSearchFields-default.json"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "getDocumentsApi12Metadata",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "GET",
|
|
149
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/metadata?{query}",
|
|
150
|
+
"requestSchema": "schema.json",
|
|
151
|
+
"responseSchema": "schema.json",
|
|
152
|
+
"timeout": 0,
|
|
153
|
+
"sendEmpty": false,
|
|
154
|
+
"sendGetBody": false,
|
|
155
|
+
"requestDatatype": "JSON",
|
|
156
|
+
"responseDatatype": "JSON",
|
|
157
|
+
"headers": {},
|
|
158
|
+
"responseObjects": [
|
|
159
|
+
{
|
|
160
|
+
"type": "default",
|
|
161
|
+
"key": "",
|
|
162
|
+
"mockFile": "mockdatafiles/getDocumentsApi12Metadata-default.json"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errorCode": 10,
|
|
3
|
+
"metadataCollections": [
|
|
4
|
+
{
|
|
5
|
+
"type": "string",
|
|
6
|
+
"isEnabled": "string",
|
|
7
|
+
"items": [
|
|
8
|
+
{
|
|
9
|
+
"type": "string",
|
|
10
|
+
"fieldName": "string",
|
|
11
|
+
"fieldDescription": "string",
|
|
12
|
+
"fieldType": "string",
|
|
13
|
+
"isEnabled": "string"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"isEnabled": "string",
|
|
20
|
+
"items": [
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"fieldName": "string",
|
|
24
|
+
"fieldDescription": "string",
|
|
25
|
+
"fieldType": "string",
|
|
26
|
+
"isEnabled": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "string",
|
|
30
|
+
"fieldName": "string",
|
|
31
|
+
"fieldDescription": "string",
|
|
32
|
+
"fieldType": "string",
|
|
33
|
+
"isEnabled": "string"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "string",
|
|
37
|
+
"fieldName": "string",
|
|
38
|
+
"fieldDescription": "string",
|
|
39
|
+
"fieldType": "string",
|
|
40
|
+
"isEnabled": "string"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errorCode": 2,
|
|
3
|
+
"isEnabled": "string",
|
|
4
|
+
"type": "string",
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"type": "string",
|
|
8
|
+
"fieldName": "string",
|
|
9
|
+
"fieldDescription": "string",
|
|
10
|
+
"fieldType": "string",
|
|
11
|
+
"isEnabled": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "string",
|
|
15
|
+
"fieldName": "string",
|
|
16
|
+
"fieldDescription": "string",
|
|
17
|
+
"fieldType": "string",
|
|
18
|
+
"isEnabled": "string"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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": "postDocumentsApi12MetadataCollectionName",
|
|
12
|
+
"enum": [
|
|
13
|
+
"postDocumentsApi12MetadataCollectionName",
|
|
14
|
+
"putDocumentsApi12MetadataCollectionName",
|
|
15
|
+
"getDocumentsApi12MetadataCollectionName",
|
|
16
|
+
"deleteDocumentsApi12MetadataCollectionName",
|
|
17
|
+
"putDocumentsApi12MetadataCollectionNameField",
|
|
18
|
+
"getDocumentsApi12MetadataSearchFields",
|
|
19
|
+
"postDocumentsApi12MetadataSearchFields",
|
|
20
|
+
"getDocumentsApi12Metadata"
|
|
21
|
+
],
|
|
22
|
+
"external_name": "ph_request_type"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"definitions": {}
|
|
26
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postDocumentsApi12PubliclinksFolderFolderId",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/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/postDocumentsApi12PubliclinksFolderFolderId-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getDocumentsApi12PubliclinksFolderFolderId",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/folder/{pathv1}?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": "mockdatafiles/getDocumentsApi12PubliclinksFolderFolderId-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "postDocumentsApi12PubliclinksFileFileId",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "POST",
|
|
48
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/file/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": "mockdatafiles/postDocumentsApi12PubliclinksFileFileId-default.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "getDocumentsApi12PubliclinksFileFileId",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "GET",
|
|
68
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/file/{pathv1}?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"sendGetBody": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": "mockdatafiles/getDocumentsApi12PubliclinksFileFileId-default.json"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "getDocumentsApi12PubliclinksLinkId",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "GET",
|
|
89
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/{pathv1}?{query}",
|
|
90
|
+
"requestSchema": "schema.json",
|
|
91
|
+
"responseSchema": "schema.json",
|
|
92
|
+
"timeout": 0,
|
|
93
|
+
"sendEmpty": false,
|
|
94
|
+
"sendGetBody": false,
|
|
95
|
+
"requestDatatype": "JSON",
|
|
96
|
+
"responseDatatype": "JSON",
|
|
97
|
+
"headers": {},
|
|
98
|
+
"responseObjects": [
|
|
99
|
+
{
|
|
100
|
+
"type": "default",
|
|
101
|
+
"key": "",
|
|
102
|
+
"mockFile": "mockdatafiles/getDocumentsApi12PubliclinksLinkId-default.json"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "putDocumentsApi12PubliclinksLinkId",
|
|
108
|
+
"protocol": "REST",
|
|
109
|
+
"method": "PUT",
|
|
110
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/{pathv1}?{query}",
|
|
111
|
+
"requestSchema": "schema.json",
|
|
112
|
+
"responseSchema": "schema.json",
|
|
113
|
+
"timeout": 0,
|
|
114
|
+
"sendEmpty": false,
|
|
115
|
+
"requestDatatype": "JSON",
|
|
116
|
+
"responseDatatype": "JSON",
|
|
117
|
+
"headers": {},
|
|
118
|
+
"responseObjects": [
|
|
119
|
+
{
|
|
120
|
+
"type": "default",
|
|
121
|
+
"key": "",
|
|
122
|
+
"mockFile": "mockdatafiles/putDocumentsApi12PubliclinksLinkId-default.json"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "deleteDocumentsApi12PubliclinksLinkId",
|
|
128
|
+
"protocol": "REST",
|
|
129
|
+
"method": "DELETE",
|
|
130
|
+
"entitypath": "{base_path}/{version}/documents/api/1.2/publiclinks/{pathv1}?{query}",
|
|
131
|
+
"requestSchema": "schema.json",
|
|
132
|
+
"responseSchema": "schema.json",
|
|
133
|
+
"timeout": 0,
|
|
134
|
+
"sendEmpty": false,
|
|
135
|
+
"requestDatatype": "JSON",
|
|
136
|
+
"responseDatatype": "JSON",
|
|
137
|
+
"headers": {},
|
|
138
|
+
"responseObjects": [
|
|
139
|
+
{
|
|
140
|
+
"type": "default",
|
|
141
|
+
"key": "",
|
|
142
|
+
"mockFile": "mockdatafiles/deleteDocumentsApi12PubliclinksLinkId-default.json"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFileFileId-default.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": "2",
|
|
3
|
+
"id": "D1E1E9F089AC1EF8481E5B94T0000000000100000001",
|
|
4
|
+
"type": "file",
|
|
5
|
+
"errorCode": "0",
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"linkID": "LDFD004B846DB106DB8B2906T0000000000100000001",
|
|
9
|
+
"linkName": "MyFileLinkOne",
|
|
10
|
+
"assignedUsers": "@everybody",
|
|
11
|
+
"role": "contributor",
|
|
12
|
+
"type": "publiclink",
|
|
13
|
+
"createdTime": "2015-06-10T16:13:19Z",
|
|
14
|
+
"lastModifiedTime": "2015-06-10T16:13:19Z",
|
|
15
|
+
"expirationTime": "2017-01-01T00:00:01Z",
|
|
16
|
+
"ownedBy": {
|
|
17
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
18
|
+
"displayName": "User AA",
|
|
19
|
+
"type": "user"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"linkID": "LF5E5F73A444FFB8924EF8ACT0000000000100000001",
|
|
24
|
+
"linkName": "MyFileLinkTwo",
|
|
25
|
+
"assignedUsers": "@everybody",
|
|
26
|
+
"role": "contributor",
|
|
27
|
+
"type": "publiclink",
|
|
28
|
+
"createdTime": "2015-06-10T16:17:11Z",
|
|
29
|
+
"lastModifiedTime": "2015-06-10T16:17:11Z",
|
|
30
|
+
"ownedBy": {
|
|
31
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
32
|
+
"displayName": "User AA",
|
|
33
|
+
"type": "user"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
package/entities/Publiclinks/mockdatafiles/getDocumentsApi12PubliclinksFolderFolderId-default.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": "2",
|
|
3
|
+
"id": "F4E111D0D0645CD368453C2BT0000000000100000001",
|
|
4
|
+
"type": "folder",
|
|
5
|
+
"errorCode": "0",
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"linkID": "LF31C09DE51854DBBDA37A90T0000000000100000001",
|
|
9
|
+
"linkName": "hasSecondLink",
|
|
10
|
+
"assignedUsers": "@everybody",
|
|
11
|
+
"role": "viewer",
|
|
12
|
+
"type": "publiclink",
|
|
13
|
+
"createdTime": "2015-06-02T19:30:37Z",
|
|
14
|
+
"lastModifiedTime": "2015-06-02T19:30:37Z",
|
|
15
|
+
"ownedBy": {
|
|
16
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
17
|
+
"displayName": "User AA",
|
|
18
|
+
"type": "user"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"linkID": "LF5E5F73A444FFB8924EF8ACT0000000000100000001",
|
|
23
|
+
"linkName": "hasFirstLink",
|
|
24
|
+
"assignedUsers": "@serviceinstance",
|
|
25
|
+
"role": "contributor",
|
|
26
|
+
"type": "publiclink",
|
|
27
|
+
"createdTime": "2015-06-10T16:15:37Z",
|
|
28
|
+
"lastModifiedTime": "2015-06-10T16:15:37Z",
|
|
29
|
+
"ownedBy": {
|
|
30
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
31
|
+
"displayName": "User AA",
|
|
32
|
+
"type": "user"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"linkID": "LF906748A021ACD714CABC82T0000000000100000001",
|
|
3
|
+
"linkName": "MyLinkOne",
|
|
4
|
+
"assignedUsers": "@everybody",
|
|
5
|
+
"role": "contributor",
|
|
6
|
+
"type": "publiclink",
|
|
7
|
+
"createdTime": "2015-06-10T16:01:44Z",
|
|
8
|
+
"expirationTime": "2016-01-01T00:00:01Z",
|
|
9
|
+
"lastModifiedTime": "2015-06-10T16:01:44Z",
|
|
10
|
+
"ownedBy": {
|
|
11
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
12
|
+
"displayName": "User AA",
|
|
13
|
+
"type": "user"
|
|
14
|
+
},
|
|
15
|
+
"errorCode": "0"
|
|
16
|
+
}
|
package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFileFileId-default.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"linkID": "LDFD004B846DB106DB8B2906T0000000000100000001",
|
|
3
|
+
"linkName": "MyFileLinkOne",
|
|
4
|
+
"assignedUsers": "@everybody",
|
|
5
|
+
"role": "contributor",
|
|
6
|
+
"type": "publiclink",
|
|
7
|
+
"createdTime": "2015-06-10T16:13:19Z",
|
|
8
|
+
"expirationTime": "2017-01-01T00:00:01Z",
|
|
9
|
+
"lastModifiedTime": "2015-06-10T16:13:19Z",
|
|
10
|
+
"ownedBy": {
|
|
11
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
12
|
+
"displayName": "User AA",
|
|
13
|
+
"type": "user"
|
|
14
|
+
},
|
|
15
|
+
"errorCode": "0",
|
|
16
|
+
"id": "D1E1E9F089AC1EF8481E5B94T0000000000100000001"
|
|
17
|
+
}
|
package/entities/Publiclinks/mockdatafiles/postDocumentsApi12PubliclinksFolderFolderId-default.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"linkID": "LF906748A021ACD714CABC82T0000000000100000001",
|
|
3
|
+
"linkName": "MyLinkOne",
|
|
4
|
+
"assignedUsers": "@serviceinstance",
|
|
5
|
+
"role": "contributor",
|
|
6
|
+
"type": "publiclink",
|
|
7
|
+
"createdTime": "2015-06-10T16:01:44Z",
|
|
8
|
+
"expirationTime": "2016-01-01T00:00:01Z",
|
|
9
|
+
"lastModifiedTime": "2015-06-10T16:01:44Z",
|
|
10
|
+
"ownedBy": {
|
|
11
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
12
|
+
"displayName": "User AA",
|
|
13
|
+
"type": "user"
|
|
14
|
+
},
|
|
15
|
+
"errorCode": "0",
|
|
16
|
+
"id": "FBE1117A270E747BB1D95024T0000000000100000001"
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"linkID": "LFCE8A35C88A6A96FD39B621T0000000000100000001",
|
|
3
|
+
"linkName": "pub-test-158",
|
|
4
|
+
"assignedUsers": "@everybody",
|
|
5
|
+
"role": "viewer",
|
|
6
|
+
"type": "publiclink",
|
|
7
|
+
"createdTime": "2015-06-05T21:04:56Z",
|
|
8
|
+
"expirationTime": "2016-02-15T01:02:03Z",
|
|
9
|
+
"lastModifiedTime": "2015-06-10T22:01:08Z",
|
|
10
|
+
"ownedBy": {
|
|
11
|
+
"id": "U0EAA20910FAF3052ACB79E4T00000000001",
|
|
12
|
+
"displayName": "User AA",
|
|
13
|
+
"type": "user"
|
|
14
|
+
},
|
|
15
|
+
"errorCode": "0"
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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": "postDocumentsApi12PubliclinksFolderFolderId",
|
|
12
|
+
"enum": [
|
|
13
|
+
"postDocumentsApi12PubliclinksFolderFolderId",
|
|
14
|
+
"getDocumentsApi12PubliclinksFolderFolderId",
|
|
15
|
+
"postDocumentsApi12PubliclinksFileFileId",
|
|
16
|
+
"getDocumentsApi12PubliclinksFileFileId",
|
|
17
|
+
"getDocumentsApi12PubliclinksLinkId",
|
|
18
|
+
"putDocumentsApi12PubliclinksLinkId",
|
|
19
|
+
"deleteDocumentsApi12PubliclinksLinkId"
|
|
20
|
+
],
|
|
21
|
+
"external_name": "ph_request_type"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"definitions": {}
|
|
25
|
+
}
|