@itentialopensource/adapter-azure_devops 0.1.3 → 0.1.5

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 (46) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/adapter.js +118 -0
  3. package/entities/AnnotatedTags/schema.json +13 -2
  4. package/entities/Blobs/schema.json +13 -2
  5. package/entities/CherryPicks/schema.json +13 -2
  6. package/entities/Commits/action.json +21 -0
  7. package/entities/Commits/schema.json +267 -2
  8. package/entities/Diffs/schema.json +13 -2
  9. package/entities/Forks/schema.json +13 -2
  10. package/entities/ImportRequests/schema.json +13 -2
  11. package/entities/Items/mockdatafiles/itemsGetItemsBatch-default.json +7 -5
  12. package/entities/Items/schema.json +13 -2
  13. package/entities/MergeBases/schema.json +13 -2
  14. package/entities/Merges/schema.json +13 -2
  15. package/entities/PolicyConfigurations/schema.json +12 -1
  16. package/entities/PullRequestAttachments/schema.json +13 -2
  17. package/entities/PullRequestCommentLikes/schema.json +13 -2
  18. package/entities/PullRequestCommits/schema.json +13 -2
  19. package/entities/PullRequestIterationChanges/schema.json +13 -2
  20. package/entities/PullRequestIterationStatuses/schema.json +13 -2
  21. package/entities/PullRequestIterations/schema.json +13 -2
  22. package/entities/PullRequestLabels/schema.json +13 -2
  23. package/entities/PullRequestProperties/schema.json +13 -2
  24. package/entities/PullRequestQuery/schema.json +13 -2
  25. package/entities/PullRequestReviewers/schema.json +13 -2
  26. package/entities/PullRequestShare/schema.json +13 -2
  27. package/entities/PullRequestStatuses/schema.json +13 -2
  28. package/entities/PullRequestThreadComments/schema.json +13 -2
  29. package/entities/PullRequestThreads/schema.json +13 -2
  30. package/entities/PullRequestWorkItems/schema.json +13 -2
  31. package/entities/PullRequests/schema.json +13 -2
  32. package/entities/Pushes/schema.json +13 -2
  33. package/entities/Refs/schema.json +13 -2
  34. package/entities/RefsFavorites/schema.json +13 -2
  35. package/entities/Repositories/schema.json +13 -2
  36. package/entities/Reverts/schema.json +13 -2
  37. package/entities/Stats/schema.json +13 -2
  38. package/entities/Statuses/schema.json +13 -2
  39. package/entities/Suggestions/schema.json +13 -2
  40. package/entities/Trees/schema.json +13 -2
  41. package/package.json +1 -1
  42. package/pronghorn.json +294 -0
  43. package/refs?service=git-upload-pack +0 -0
  44. package/report/adapterInfo.json +7 -7
  45. package/test/integration/adapterTestIntegration.js +28 -3
  46. package/test/unit/adapterTestUnit.js +63 -0
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.1.5 [11-22-2022]
3
+
4
+ * Implement API request Commits – Get Commits
5
+
6
+ See merge request itentialopensource/adapters/devops-netops/adapter-azure_devops!5
7
+
8
+ ---
9
+
10
+ ## 0.1.4 [11-22-2022]
11
+
12
+ * Query parameter across all apis showing as “apiVersion” instead of api-version
13
+
14
+ See merge request itentialopensource/adapters/devops-netops/adapter-azure_devops!4
15
+
16
+ ---
17
+
2
18
  ## 0.1.3 [10-31-2022]
3
19
 
4
20
  * Azure DevOps Adapter Mixed Path Variables
package/adapter.js CHANGED
@@ -5003,6 +5003,124 @@ class AzureDevops extends AdapterBaseCl {
5003
5003
  }
5004
5004
  }
5005
5005
 
5006
+ /**
5007
+ * @function commitsGetCommits
5008
+ * @pronghornType method
5009
+ * @name commitsGetCommits
5010
+ * @summary Retrieve git commits for a project.
5011
+ *
5012
+ * @param {string} organization - The name of the Azure DevOps organization.
5013
+ * @param {string} repositoryId - The id or friendly name of the repository. To use the friendly name, projectId must also be specified.
5014
+ * @param {string} project - Project ID or project name
5015
+ * @param {number} [skip] - Number of entries to skip.
5016
+ * @param {number} [top] - Maximum number of entries to retrieve.
5017
+ * @param {string} searchCriteriaAuthor - Alias or display name of the author
5018
+ * @param {string} searchCriteriaCompareVersionVersion - Version string identifier (name of tag/branch, SHA1 of commit)
5019
+ * @param {string} searchCriteriaCompareVersionVersionOptions - Version options - Specify additional modifiers to version (e.g Previous)
5020
+ * @param {string} searchCriteriaCompareVersionVersionType - Version type (branch, tag, or commit). Determines how Id is interpreted
5021
+ * @param {boolean} searchCriteriaExcludeDeletes - This determines whether to exclude delete entries of the specified path.
5022
+ * @param {string} searchCriteriaFromCommitId - If provided, a lower bound for filtering commits alphabetically
5023
+ * @param {string} searchCriteriaFromDate - If provided, only include history entries created after this date
5024
+ * @param {string} searchCriteriaHistoryMode - What Git history mode should be used.
5025
+ * @param {array} searchCriteriaIds - If provided, specifies the exact commit ids of the commits to fetch
5026
+ * @param {boolean} searchCriteriaIncludeLinks - Whether to include the _links field on the shallow references
5027
+ * @param {boolean} searchCriteriaIncludePushData - Whether to include the push information
5028
+ * @param {boolean} searchCriteriaIncludeUserImageUrl - Whether to include the image Url for committers and authors
5029
+ * @param {boolean} searchCriteriaIncludeWorkItems - Whether to include linked work items
5030
+ * @param {string} searchCriteriaItemPath - Path of item to search under
5031
+ * @param {string} searchCriteriaItemVersionVersion - Version string identifier (name of tag/branch, SHA1 of commit)
5032
+ * @param {string} searchCriteriaItemVersionVersionOptions - Version options - Specify additional modifiers to version (e.g Previous)
5033
+ * @param {string} searchCriteriaItemVersionVersionType - Version type (branch, tag, or commit). Determines how Id is interpreted
5034
+ * @param {boolean} searchCriteriaShowOldestCommitsFirst - If enabled, this option will ignore the itemVersion and compareVersion parameters
5035
+ * @param {string} searchCriteriaToCommitId - If provided, an upper bound for filtering commits alphabetically
5036
+ * @param {string} searchCriteriaToDate - If provided, only include history entries created before this date (string)
5037
+ * @param {string} searchCriteriaUser - Alias or display name of the committer
5038
+ * @param {string} apiVersion - Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api.
5039
+ * @param {getCallback} callback - a callback function to return the result
5040
+ * @return {object} results - An object containing the response of the action
5041
+ *
5042
+ * @route {GET} /commitsGetCommits
5043
+ * @roles admin
5044
+ * @task true
5045
+ */
5046
+ /* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
5047
+ commitsGetCommits(organization, repositoryId, project, skip, top, searchCriteriaAuthor, searchCriteriaCompareVersionVersion, searchCriteriaCompareVersionVersionOptions, searchCriteriaCompareVersionVersionType, searchCriteriaExcludeDeletes, searchCriteriaFromCommitId, searchCriteriaFromDate, searchCriteriaHistoryMode, searchCriteriaIds, searchCriteriaIncludeLinks, searchCriteriaIncludePushData, searchCriteriaIncludeUserImageUrl, searchCriteriaIncludeWorkItems, searchCriteriaItemPath, searchCriteriaItemVersionVersion, searchCriteriaItemVersionVersionOptions, searchCriteriaItemVersionVersionType, searchCriteriaShowOldestCommitsFirst, searchCriteriaToCommitId, searchCriteriaToDate, searchCriteriaUser, apiVersion, callback) {
5048
+ const meth = 'adapter-commitsGetCommits';
5049
+ const origin = `${this.id}-${meth}`;
5050
+ log.trace(origin);
5051
+
5052
+ if (this.suspended && this.suspendMode === 'error') {
5053
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
5054
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5055
+ return callback(null, errorObj);
5056
+ }
5057
+
5058
+ /* HERE IS WHERE YOU VALIDATE DATA */
5059
+ if (organization === undefined || organization === null || organization === '') {
5060
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['organization'], null, null, null);
5061
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5062
+ return callback(null, errorObj);
5063
+ }
5064
+ if (repositoryId === undefined || repositoryId === null || repositoryId === '') {
5065
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['repositoryId'], null, null, null);
5066
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5067
+ return callback(null, errorObj);
5068
+ }
5069
+ if (apiVersion === undefined || apiVersion === null || apiVersion === '') {
5070
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['apiVersion'], null, null, null);
5071
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5072
+ return callback(null, errorObj);
5073
+ }
5074
+
5075
+ /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
5076
+ const queryParamsAvailable = { skip, top, searchCriteriaAuthor, searchCriteriaCompareVersionVersion, searchCriteriaCompareVersionVersionOptions, searchCriteriaCompareVersionVersionType, searchCriteriaExcludeDeletes, searchCriteriaFromCommitId, searchCriteriaFromDate, searchCriteriaHistoryMode, searchCriteriaIds, searchCriteriaIncludeLinks, searchCriteriaIncludePushData, searchCriteriaIncludeUserImageUrl, searchCriteriaIncludeWorkItems, searchCriteriaItemPath, searchCriteriaItemVersionVersion, searchCriteriaItemVersionVersionOptions, searchCriteriaItemVersionVersionType, searchCriteriaShowOldestCommitsFirst, searchCriteriaToCommitId, searchCriteriaToDate, searchCriteriaUser, apiVersion };
5077
+ const queryParams = {};
5078
+ const pathVars = [organization, project, repositoryId];
5079
+ const bodyVars = {};
5080
+
5081
+ // loop in template. long callback arg name to avoid identifier conflicts
5082
+ Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
5083
+ if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
5084
+ && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
5085
+ queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
5086
+ }
5087
+ });
5088
+
5089
+ // set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
5090
+ // see adapter code documentation for more information on the request object's fields
5091
+ const reqObj = {
5092
+ payload: bodyVars,
5093
+ uriPathVars: pathVars,
5094
+ uriQuery: queryParams
5095
+ };
5096
+
5097
+ try {
5098
+ // Make the call -
5099
+ // identifyRequest(entity, action, requestObj, returnDataFlag, callback)
5100
+ return this.requestHandlerInst.identifyRequest('Commits', 'commitsGetCommits', reqObj, true, (irReturnData, irReturnError) => {
5101
+ // if we received an error or their is no response on the results
5102
+ // return an error
5103
+ if (irReturnError) {
5104
+ /* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
5105
+ return callback(null, irReturnError);
5106
+ }
5107
+ if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
5108
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['commitsGetCommits'], null, null, null);
5109
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5110
+ return callback(null, errorObj);
5111
+ }
5112
+
5113
+ /* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
5114
+ // return the response
5115
+ return callback(irReturnData, null);
5116
+ });
5117
+ } catch (ex) {
5118
+ const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
5119
+ log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
5120
+ return callback(null, errorObj);
5121
+ }
5122
+ }
5123
+
5006
5124
  /**
5007
5125
  * @function commitsGetCommitsBatch
5008
5126
  * @pronghornType method
@@ -2,18 +2,29 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "annotatedTagsCreate",
12
12
  "enum": [
13
13
  "annotatedTagsCreate",
14
14
  "annotatedTagsGet"
15
15
  ],
16
16
  "external_name": "ph_request_type"
17
+ },
18
+ "apiVersion": {
19
+ "type": "string",
20
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "api-version"
17
28
  }
18
29
  },
19
30
  "definitions": {}
@@ -2,18 +2,29 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "blobsGetBlobsZip",
12
12
  "enum": [
13
13
  "blobsGetBlobsZip",
14
14
  "blobsGetBlob"
15
15
  ],
16
16
  "external_name": "ph_request_type"
17
+ },
18
+ "apiVersion": {
19
+ "type": "string",
20
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
21
+ "parse": false,
22
+ "encode": false,
23
+ "encrypt": {
24
+ "type": "AES",
25
+ "key": ""
26
+ },
27
+ "external_name": "api-version"
17
28
  }
18
29
  },
19
30
  "definitions": {}
@@ -2,19 +2,30 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "cherryPicksCreate",
12
12
  "enum": [
13
13
  "cherryPicksCreate",
14
14
  "cherryPicksGetCherryPickForRefName",
15
15
  "cherryPicksGetCherryPick"
16
16
  ],
17
17
  "external_name": "ph_request_type"
18
+ },
19
+ "apiVersion": {
20
+ "type": "string",
21
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
22
+ "parse": false,
23
+ "encode": false,
24
+ "encrypt": {
25
+ "type": "AES",
26
+ "key": ""
27
+ },
28
+ "external_name": "api-version"
18
29
  }
19
30
  },
20
31
  "definitions": {}
@@ -63,6 +63,27 @@
63
63
  }
64
64
  ]
65
65
  },
66
+ {
67
+ "name": "commitsGetCommits",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/_apis/git/repositories/{pathv3}/commits?{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
+ },
66
87
  {
67
88
  "name": "commitsGetCommitsBatch",
68
89
  "protocol": "REST",
@@ -2,20 +2,285 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "commitsGetCommits",
12
12
  "enum": [
13
13
  "commitsGetPushCommits",
14
14
  "commitsGet",
15
15
  "commitsGetChanges",
16
+ "commitsGetCommits",
16
17
  "commitsGetCommitsBatch"
17
18
  ],
18
19
  "external_name": "ph_request_type"
20
+ },
21
+ "skip": {
22
+ "type": "number",
23
+ "description": "Number of entries to skip",
24
+ "parse": false,
25
+ "encode": false,
26
+ "encrypt": {
27
+ "type": "AES",
28
+ "key": ""
29
+ },
30
+ "external_name": "$skip"
31
+ },
32
+ "top": {
33
+ "type": "number",
34
+ "description": "Maximum number of entries to retrieve",
35
+ "parse": false,
36
+ "encode": false,
37
+ "encrypt": {
38
+ "type": "AES",
39
+ "key": ""
40
+ },
41
+ "external_name": "$top"
42
+ },
43
+ "searchCriteriaAuthor": {
44
+ "type": "string",
45
+ "description": "Alias or display name of the author",
46
+ "parse": false,
47
+ "encode": false,
48
+ "encrypt": {
49
+ "type": "AES",
50
+ "key": ""
51
+ },
52
+ "external_name": "searchCriteria\\.author"
53
+ },
54
+ "searchCriteriaCompareVersionVersion": {
55
+ "type": "string",
56
+ "description": "Version string identifier (name of tag/branch, SHA1 of commit)",
57
+ "parse": false,
58
+ "encode": false,
59
+ "encrypt": {
60
+ "type": "AES",
61
+ "key": ""
62
+ },
63
+ "external_name": "searchCriteria\\.compareVersion\\.version"
64
+ },
65
+ "searchCriteriaCompareVersionVersionOptions": {
66
+ "type": "string",
67
+ "description": "Version options - Specify additional modifiers to version (e.g Previous)",
68
+ "parse": true,
69
+ "encode": false,
70
+ "encrypt": {
71
+ "type": "AES",
72
+ "key": ""
73
+ },
74
+ "external_name": "searchCriteria\\.compareVersion\\.versionOptions"
75
+ },
76
+ "searchCriteriaCompareVersionVersionType": {
77
+ "type": "string",
78
+ "description": "Version type (branch, tag, or commit). Determines how Id is interpreted",
79
+ "parse": false,
80
+ "encode": false,
81
+ "encrypt": {
82
+ "type": "AES",
83
+ "key": ""
84
+ },
85
+ "external_name": "searchCriteria\\.compareVersion\\.versionType"
86
+ },
87
+ "searchCriteriaExcludeDeletes": {
88
+ "type": "boolean",
89
+ "description": "Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.",
90
+ "parse": false,
91
+ "encode": false,
92
+ "encrypt": {
93
+ "type": "AES",
94
+ "key": ""
95
+ },
96
+ "external_name": "searchCriteria\\.excludeDeletes"
97
+ },
98
+ "searchCriteriaFromCommitId": {
99
+ "type": "string",
100
+ "description": "If provided, a lower bound for filtering commits alphabetically",
101
+ "parse": false,
102
+ "encode": false,
103
+ "encrypt": {
104
+ "type": "AES",
105
+ "key": ""
106
+ },
107
+ "external_name": "searchCriteria\\.fromCommitId"
108
+ },
109
+ "searchCriteriaFromDate": {
110
+ "type": "string",
111
+ "description": "If provided, only include history entries created after this date (string)",
112
+ "parse": false,
113
+ "encode": false,
114
+ "encrypt": {
115
+ "type": "AES",
116
+ "key": ""
117
+ },
118
+ "external_name": "searchCriteria\\.fromDate"
119
+ },
120
+ "searchCriteriaHistoryMode": {
121
+ "type": "string",
122
+ "description": "What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.",
123
+ "parse": false,
124
+ "encode": false,
125
+ "encrypt": {
126
+ "type": "AES",
127
+ "key": ""
128
+ },
129
+ "external_name": "searchCriteria\\.historyMode"
130
+ },
131
+ "searchCriteriaIds": {
132
+ "type": "array",
133
+ "description": "If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters.",
134
+ "parse": false,
135
+ "encode": false,
136
+ "encrypt": {
137
+ "type": "AES",
138
+ "key": ""
139
+ },
140
+ "external_name": "searchCriteria\\.ids"
141
+ },
142
+ "searchCriteriaIncludeLinks": {
143
+ "type": "boolean",
144
+ "description": "Whether to include the _links field on the shallow references",
145
+ "parse": false,
146
+ "encode": false,
147
+ "encrypt": {
148
+ "type": "AES",
149
+ "key": ""
150
+ },
151
+ "external_name": "searchCriteria\\.includeLinks"
152
+ },
153
+ "searchCriteriaIncludePushData": {
154
+ "type": "boolean",
155
+ "description": "Whether to include the push information",
156
+ "parse": false,
157
+ "encode": false,
158
+ "encrypt": {
159
+ "type": "AES",
160
+ "key": ""
161
+ },
162
+ "external_name": "searchCriteria\\.includePushData"
163
+ },
164
+ "searchCriteriaIncludeUserImageUrl": {
165
+ "type": "boolean",
166
+ "description": "Whether to include the image Url for committers and authors",
167
+ "parse": false,
168
+ "encode": false,
169
+ "encrypt": {
170
+ "type": "AES",
171
+ "key": ""
172
+ },
173
+ "external_name": "searchCriteria\\.includeUserImageUrl"
174
+ },
175
+ "searchCriteriaIncludeWorkItems": {
176
+ "type": "boolean",
177
+ "description": "Whether to include linked work items",
178
+ "parse": false,
179
+ "encode": false,
180
+ "encrypt": {
181
+ "type": "AES",
182
+ "key": ""
183
+ },
184
+ "external_name": "searchCriteria\\.includeWorkItems"
185
+ },
186
+ "searchCriteriaItemPath": {
187
+ "type": "string",
188
+ "description": "Path of item to search under",
189
+ "parse": false,
190
+ "encode": false,
191
+ "encrypt": {
192
+ "type": "AES",
193
+ "key": ""
194
+ },
195
+ "external_name": "searchCriteria\\.itemPath"
196
+ },
197
+ "searchCriteriaItemVersionVersion": {
198
+ "type": "string",
199
+ "description": "Version string identifier (name of tag/branch, SHA1 of commit)",
200
+ "parse": false,
201
+ "encode": false,
202
+ "encrypt": {
203
+ "type": "AES",
204
+ "key": ""
205
+ },
206
+ "external_name": "searchCriteria\\.itemVersion\\.version"
207
+ },
208
+ "searchCriteriaItemVersionVersionOptions": {
209
+ "type": "string",
210
+ "description": "Version options - Specify additional modifiers to version (e.g Previous)",
211
+ "parse": false,
212
+ "encode": false,
213
+ "encrypt": {
214
+ "type": "AES",
215
+ "key": ""
216
+ },
217
+ "external_name": "searchCriteria\\.itemVersion\\.versionOptions"
218
+ },
219
+ "searchCriteriaItemVersionVersionType": {
220
+ "type": "string",
221
+ "description": "Version type (branch, tag, or commit). Determines how Id is interpreted",
222
+ "parse": false,
223
+ "encode": false,
224
+ "encrypt": {
225
+ "type": "AES",
226
+ "key": ""
227
+ },
228
+ "external_name": "searchCriteria\\.itemVersion\\.versionType"
229
+ },
230
+ "searchCriteriaShowOldestCommitsFirst": {
231
+ "type": "boolean",
232
+ "description": "If enabled, this option will ignore the itemVersion and compareVersion parameters",
233
+ "parse": false,
234
+ "encode": false,
235
+ "encrypt": {
236
+ "type": "AES",
237
+ "key": ""
238
+ },
239
+ "external_name": "searchCriteria\\.showOldestCommitsFirst"
240
+ },
241
+ "searchCriteriaToCommitId": {
242
+ "type": "string",
243
+ "description": "If provided, an upper bound for filtering commits alphabetically",
244
+ "parse": false,
245
+ "encode": false,
246
+ "encrypt": {
247
+ "type": "AES",
248
+ "key": ""
249
+ },
250
+ "external_name": "searchCriteria\\.toCommitId"
251
+ },
252
+ "searchCriteriaToDate": {
253
+ "type": "string",
254
+ "description": "If provided, only include history entries created before this date (string)",
255
+ "parse": false,
256
+ "encode": false,
257
+ "encrypt": {
258
+ "type": "AES",
259
+ "key": ""
260
+ },
261
+ "external_name": "searchCriteria\\.toDate"
262
+ },
263
+ "searchCriteriaUser": {
264
+ "type": "string",
265
+ "description": "Alias or display name of the committer",
266
+ "parse": false,
267
+ "encode": false,
268
+ "encrypt": {
269
+ "type": "AES",
270
+ "key": ""
271
+ },
272
+ "external_name": "searchCriteria\\.user"
273
+ },
274
+ "apiVersion": {
275
+ "type": "string",
276
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
277
+ "parse": false,
278
+ "encode": false,
279
+ "encrypt": {
280
+ "type": "AES",
281
+ "key": ""
282
+ },
283
+ "external_name": "api-version"
19
284
  }
20
285
  },
21
286
  "definitions": {}
@@ -2,17 +2,28 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "diffsGet",
12
12
  "enum": [
13
13
  "diffsGet"
14
14
  ],
15
15
  "external_name": "ph_request_type"
16
+ },
17
+ "apiVersion": {
18
+ "type": "string",
19
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "api-version"
16
27
  }
17
28
  },
18
29
  "definitions": {}
@@ -2,13 +2,13 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "forksList",
12
12
  "enum": [
13
13
  "forksList",
14
14
  "forksCreateForkSyncRequest",
@@ -16,6 +16,17 @@
16
16
  "forksGetForkSyncRequest"
17
17
  ],
18
18
  "external_name": "ph_request_type"
19
+ },
20
+ "apiVersion": {
21
+ "type": "string",
22
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "api-version"
19
30
  }
20
31
  },
21
32
  "definitions": {}
@@ -2,13 +2,13 @@
2
2
  "$id": "schema.json",
3
3
  "type": "object",
4
4
  "schema": "http://json-schema.org/draft-07/schema#",
5
- "translate": false,
5
+ "translate": true,
6
6
  "dynamicfields": true,
7
7
  "properties": {
8
8
  "ph_request_type": {
9
9
  "type": "string",
10
10
  "description": "type of request (internal to adapter)",
11
- "default": "",
11
+ "default": "importRequestsCreate",
12
12
  "enum": [
13
13
  "importRequestsCreate",
14
14
  "importRequestsQuery",
@@ -16,6 +16,17 @@
16
16
  "importRequestsUpdate"
17
17
  ],
18
18
  "external_name": "ph_request_type"
19
+ },
20
+ "apiVersion": {
21
+ "type": "string",
22
+ "description": "Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "api-version"
19
30
  }
20
31
  },
21
32
  "definitions": {}
@@ -1,5 +1,7 @@
1
- [
2
- [],
3
- [],
4
- []
5
- ]
1
+ {
2
+ "value": [
3
+ [],
4
+ [],
5
+ []
6
+ ]
7
+ }