@itentialopensource/adapter-azure_devops 0.1.1 → 0.1.2
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/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +9 -2
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +221 -571
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +11999 -57
- package/adapterBase.js +1007 -253
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/README.md +59 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/specificCallScript.js +97 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/update.js +532 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/adapter.js +11651 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/AnnotatedTags/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/AnnotatedTags/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/AnnotatedTags/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Blobs/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Blobs/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Blobs/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/CherryPicks/action.json +64 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/CherryPicks/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/CherryPicks/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Commits/action.json +85 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Commits/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Commits/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Diffs/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Diffs/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Diffs/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Forks/action.json +85 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Forks/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Forks/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/ImportRequests/action.json +84 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/ImportRequests/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/ImportRequests/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Items/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Items/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Items/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/MergeBases/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/MergeBases/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/MergeBases/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Merges/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Merges/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Merges/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PolicyConfigurations/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PolicyConfigurations/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PolicyConfigurations/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestAttachments/action.json +84 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestAttachments/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestAttachments/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommentLikes/action.json +63 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommentLikes/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommentLikes/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommits/action.json +44 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommits/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestCommits/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationChanges/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationChanges/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationChanges/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationStatuses/action.json +104 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationStatuses/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterationStatuses/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterations/action.json +44 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterations/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestIterations/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestLabels/action.json +84 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestLabels/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestLabels/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestProperties/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestProperties/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestProperties/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestQuery/action.json +22 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestQuery/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestQuery/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestReviewers/action.json +164 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestReviewers/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestReviewers/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestShare/action.json +22 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestShare/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestShare/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestStatuses/action.json +104 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestStatuses/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestStatuses/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreadComments/action.json +104 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreadComments/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreadComments/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreads/action.json +84 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreads/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestThreads/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestWorkItems/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestWorkItems/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequestWorkItems/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequests/action.json +126 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequests/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/PullRequests/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Pushes/action.json +64 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Pushes/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Pushes/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Refs/action.json +63 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Refs/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Refs/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/RefsFavorites/action.json +84 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/RefsFavorites/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/RefsFavorites/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Repositories/action.json +186 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Repositories/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Repositories/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Reverts/action.json +64 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Reverts/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Reverts/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Stats/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Stats/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Stats/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Statuses/action.json +43 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Statuses/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Statuses/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Suggestions/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Suggestions/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Suggestions/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Trees/action.json +23 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Trees/mockdatafiles/mockdata.json +20817 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/entities/Trees/schema.json +125 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/methods.json +74975 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/pronghorn.json +11730 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/test/integration/adapterTestIntegration.js +5493 -0
- package/adapter_modifications/archive/UPD-2022-04-29T13:05:13.710Z/updateFiles/components/test/unit/adapterTestUnit.js +10889 -0
- package/entities/.generic/action.json +105 -0
- package/entities/.generic/schema.json +6 -1
- package/entities/AnnotatedTags/action.json +45 -0
- package/entities/AnnotatedTags/schema.json +20 -0
- package/entities/Blobs/action.json +45 -0
- package/entities/Blobs/schema.json +20 -0
- package/entities/CherryPicks/action.json +66 -0
- package/entities/CherryPicks/schema.json +21 -0
- package/entities/Commits/action.json +87 -0
- package/entities/Commits/mockdatafiles/commitsGetCommitsBatch-default.json +707 -0
- package/entities/Commits/mockdatafiles/commitsGetPushCommits-default.json +336 -0
- package/entities/Commits/schema.json +22 -0
- package/entities/Diffs/action.json +25 -0
- package/entities/Diffs/schema.json +19 -0
- package/entities/Forks/action.json +87 -0
- package/entities/Forks/mockdatafiles/forksGetForkSyncRequests-default.json +200 -0
- package/entities/Forks/mockdatafiles/forksList-default.json +102 -0
- package/entities/Forks/schema.json +22 -0
- package/entities/ImportRequests/action.json +86 -0
- package/entities/ImportRequests/mockdatafiles/importRequestsQuery-default.json +91 -0
- package/entities/ImportRequests/schema.json +22 -0
- package/entities/Items/action.json +45 -0
- package/entities/Items/mockdatafiles/itemsGetItemsBatch-default.json +5 -0
- package/entities/Items/mockdatafiles/itemsList-default.json +40 -0
- package/entities/Items/schema.json +20 -0
- package/entities/MergeBases/action.json +25 -0
- package/entities/MergeBases/mockdatafiles/mergeBasesList-default.json +580 -0
- package/entities/MergeBases/schema.json +19 -0
- package/entities/Merges/action.json +45 -0
- package/entities/Merges/schema.json +20 -0
- package/entities/PolicyConfigurations/action.json +25 -0
- package/entities/PolicyConfigurations/mockdatafiles/policyConfigurationsGet-default.json +20 -0
- package/entities/PolicyConfigurations/schema.json +19 -0
- package/entities/PullRequestAttachments/action.json +86 -0
- package/entities/PullRequestAttachments/mockdatafiles/pullRequestAttachmentsList-default.json +159 -0
- package/entities/PullRequestAttachments/schema.json +22 -0
- package/entities/PullRequestCommentLikes/action.json +65 -0
- package/entities/PullRequestCommentLikes/mockdatafiles/pullRequestCommentLikesList-default.json +10 -0
- package/entities/PullRequestCommentLikes/schema.json +21 -0
- package/entities/PullRequestCommits/action.json +46 -0
- package/entities/PullRequestCommits/mockdatafiles/pullRequestCommitsGetPullRequestCommits-default.json +818 -0
- package/entities/PullRequestCommits/mockdatafiles/pullRequestCommitsGetPullRequestIterationCommits-default.json +813 -0
- package/entities/PullRequestCommits/schema.json +20 -0
- package/entities/PullRequestIterationChanges/action.json +25 -0
- package/entities/PullRequestIterationChanges/schema.json +19 -0
- package/entities/PullRequestIterationStatuses/action.json +106 -0
- package/entities/PullRequestIterationStatuses/mockdatafiles/pullRequestIterationStatusesList-default.json +71 -0
- package/entities/PullRequestIterationStatuses/schema.json +23 -0
- package/entities/PullRequestIterations/action.json +46 -0
- package/entities/PullRequestIterations/mockdatafiles/pullRequestIterationsList-default.json +2403 -0
- package/entities/PullRequestIterations/schema.json +20 -0
- package/entities/PullRequestLabels/action.json +86 -0
- package/entities/PullRequestLabels/mockdatafiles/pullRequestLabelsList-default.json +20 -0
- package/entities/PullRequestLabels/schema.json +22 -0
- package/entities/PullRequestProperties/action.json +45 -0
- package/entities/PullRequestProperties/schema.json +20 -0
- package/entities/PullRequestQuery/action.json +24 -0
- package/entities/PullRequestQuery/schema.json +19 -0
- package/entities/PullRequestReviewers/action.json +166 -0
- package/entities/PullRequestReviewers/mockdatafiles/pullRequestReviewersCreatePullRequestReviewers-default.json +10 -0
- package/entities/PullRequestReviewers/mockdatafiles/pullRequestReviewersList-default.json +10 -0
- package/entities/PullRequestReviewers/schema.json +26 -0
- package/entities/PullRequestShare/action.json +24 -0
- package/entities/PullRequestShare/schema.json +19 -0
- package/entities/PullRequestStatuses/action.json +106 -0
- package/entities/PullRequestStatuses/mockdatafiles/pullRequestStatusesList-default.json +48 -0
- package/entities/PullRequestStatuses/schema.json +23 -0
- package/entities/PullRequestThreadComments/action.json +106 -0
- package/entities/PullRequestThreadComments/mockdatafiles/pullRequestThreadCommentsList-default.json +215 -0
- package/entities/PullRequestThreadComments/schema.json +23 -0
- package/entities/PullRequestThreads/action.json +86 -0
- package/entities/PullRequestThreads/mockdatafiles/pullRequestThreadsList-default.json +395 -0
- package/entities/PullRequestThreads/schema.json +22 -0
- package/entities/PullRequestWorkItems/action.json +25 -0
- package/entities/PullRequestWorkItems/mockdatafiles/pullRequestWorkItemsList-default.json +18 -0
- package/entities/PullRequestWorkItems/schema.json +19 -0
- package/entities/PullRequests/action.json +128 -0
- package/entities/PullRequests/mockdatafiles/pullRequestsGetPullRequests-default.json +6555 -0
- package/entities/PullRequests/mockdatafiles/pullRequestsGetPullRequestsByProject-default.json +5929 -0
- package/entities/PullRequests/schema.json +24 -0
- package/entities/Pushes/action.json +66 -0
- package/entities/Pushes/mockdatafiles/pushesList-default.json +34 -0
- package/entities/Pushes/schema.json +21 -0
- package/entities/Refs/action.json +65 -0
- package/entities/Refs/mockdatafiles/refsList-default.json +500 -0
- package/entities/Refs/mockdatafiles/refsUpdateRefs-default.json +13 -0
- package/entities/Refs/schema.json +21 -0
- package/entities/RefsFavorites/action.json +86 -0
- package/entities/RefsFavorites/mockdatafiles/refsFavoritesList-default.json +35 -0
- package/entities/RefsFavorites/schema.json +22 -0
- package/entities/Repositories/action.json +188 -0
- package/entities/Repositories/mockdatafiles/repositoriesGetDeletedRepositories-default.json +54 -0
- package/entities/Repositories/mockdatafiles/repositoriesGetRecycleBinRepositories-default.json +28 -0
- package/entities/Repositories/mockdatafiles/repositoriesList-default.json +123 -0
- package/entities/Repositories/schema.json +27 -0
- package/entities/Reverts/action.json +66 -0
- package/entities/Reverts/schema.json +21 -0
- package/entities/Stats/action.json +25 -0
- package/entities/Stats/mockdatafiles/statsList-default.json +195 -0
- package/entities/Stats/schema.json +19 -0
- package/entities/Statuses/action.json +45 -0
- package/entities/Statuses/mockdatafiles/statusesList-default.json +94 -0
- package/entities/Statuses/schema.json +20 -0
- package/entities/Suggestions/action.json +25 -0
- package/entities/Suggestions/mockdatafiles/suggestionsList-default.json +14 -0
- package/entities/Suggestions/schema.json +19 -0
- package/entities/Trees/action.json +25 -0
- package/entities/Trees/schema.json +19 -0
- package/error.json +6 -0
- package/package.json +5 -3
- package/previousVersion.zip +0 -0
- package/pronghorn.json +49635 -378
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +421 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653439219306.json +120 -0
- package/sampleProperties.json +90 -1
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestIntegration.js +4869 -105
- package/test/unit/adapterBaseTestUnit.js +30 -25
- package/test/unit/adapterTestUnit.js +11057 -159
- package/utils/adapterInfo.js +206 -0
- package/utils/entitiesToDB.js +12 -57
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +3 -0
- package/utils/tbScript.js +35 -20
- package/utils/tbUtils.js +59 -35
- package/utils/testRunner.js +16 -16
- package/versions.json +135 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Update
|
|
2
|
+
|
|
3
|
+
This update script will update an adapter by appending or updating API calls selected for modification.
|
|
4
|
+
|
|
5
|
+
Calls can be selected for change within an adapter by providing a specification document to the Update Tool in the adapter-engine and choosing which calls to modify via the CLI or adapter-wizard (to be implemented in later versions).
|
|
6
|
+
|
|
7
|
+
Ability to properly delete API calls via this update script will be implemented in the future.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Navigate to the directory of the adapter you want to update. If necessary, move an adapter-modifications folder generated by the Update Tool into the adapter directory.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
cd adapter_modifications
|
|
15
|
+
|
|
16
|
+
node update.js {sub-directory name}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The second argument in the above command should be identical to the name of a immediate sub-directory within adapter-modifications. The provided directory should contain the components required to update a certain adapter.
|
|
20
|
+
|
|
21
|
+
The name of this folder is initialized based on the specification document you provide as input to the Update Tool. If you rename that folder, you will need to reflect that change in the given command argument.
|
|
22
|
+
|
|
23
|
+
Running this command will update the adapter and run unit and integration tests. If updated correctly, the adapter should pass all tests.
|
|
24
|
+
|
|
25
|
+
In order to pass all tests, note that adapter names should be formatted as: 'adapter-name'. Names such as 'adapter-name-test' or similar will cause the tests to error at this point in time.
|
|
26
|
+
|
|
27
|
+
## Directory Structure
|
|
28
|
+
|
|
29
|
+
A sub-directory within adapter-modifications should have the following file structure:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
{name of sub-directory}
|
|
33
|
+
-- components
|
|
34
|
+
-- adapter.js
|
|
35
|
+
-- entities
|
|
36
|
+
-- {entity name}
|
|
37
|
+
-- schema.json
|
|
38
|
+
-- action.json
|
|
39
|
+
-- mockdatafiles
|
|
40
|
+
-- mockdata.json
|
|
41
|
+
-- pronghorn.json
|
|
42
|
+
-- test
|
|
43
|
+
-- unit
|
|
44
|
+
-- adapterTestUnit.js
|
|
45
|
+
-- integration
|
|
46
|
+
-- adapterTestIntegration.js
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Each of these files contains the changes to their adapter equivalents that are enacted when an adapter is updated.
|
|
50
|
+
|
|
51
|
+
Note that depending on how many calls are being updated, the number of sub-directories within entities/ will vary. Each entity sub-directory will have its own action.json, schema.json, and mockdatafiles/ directory.
|
|
52
|
+
|
|
53
|
+
## Linting
|
|
54
|
+
|
|
55
|
+
If this is an adapter built prior to update capabilities being added (9/2020) you may need to add a line to the .eslintignore (adapter_modifications/*) to ignore any lint errors in the update files. These files have lint errors because they are parital js files.
|
|
56
|
+
|
|
57
|
+
## Testing
|
|
58
|
+
|
|
59
|
+
Refer to the adapter's README file to perform unit and integration tests post-update. Integration tests can be performed in standalone or integrated mode.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* @copyright Itential, LLC 2019 */
|
|
2
|
+
|
|
3
|
+
/* eslint prefer-destructuring:warn */
|
|
4
|
+
/* eslint prefer-template:warn */
|
|
5
|
+
|
|
6
|
+
// const updateScript = require('update.js');
|
|
7
|
+
const fs = require('fs-extra');
|
|
8
|
+
const path = require('path');
|
|
9
|
+
|
|
10
|
+
const folder = process.argv[2];
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* This is the file to run in order to add specific calls to your existing adapter.
|
|
15
|
+
* Make sure the zip is in the adapter's top level directory, then navigate there in the terminal and run 'node specficCallScript {folderName}'.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*@summary the main function to be run in this file.
|
|
21
|
+
*@function main
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function main() {
|
|
25
|
+
const entityPath = path.join(__dirname, '../entities');
|
|
26
|
+
const entitiesFull = fs.readdirSync(entityPath, 'utf8').filter((entity) => (entity !== '.system' && entity !== '.DS_Store' && entity !== '.generic'));
|
|
27
|
+
const mockArray = [];
|
|
28
|
+
|
|
29
|
+
// loop through existing adapter entities
|
|
30
|
+
entitiesFull.forEach((e) => {
|
|
31
|
+
if (fs.existsSync(path.join(__dirname, `../entities/${e}/mockdatafiles`))) {
|
|
32
|
+
fs.readdirSync(path.join(__dirname, `../entities/${e}/mockdatafiles`)).forEach((file) => {
|
|
33
|
+
const mockObj = {};
|
|
34
|
+
mockObj.name = file;
|
|
35
|
+
mockObj.contents = JSON.parse(fs.readFileSync(path.join(__dirname, `../entities/${e}/mockdatafiles/${file}`), 'utf8'));
|
|
36
|
+
mockObj.entity = e;
|
|
37
|
+
mockObj.function = file.slice(0, -13);
|
|
38
|
+
mockArray.push(mockObj);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// find and loop through entities of methods being added
|
|
42
|
+
if (fs.existsSync(path.join(__dirname, `./${folder}/components/entities`))) {
|
|
43
|
+
const entityAddPath = path.join(__dirname, `./${folder}/components/entities`);
|
|
44
|
+
const entitiesAdding = fs.readdirSync(entityAddPath, 'utf8').filter((entity) => (entity !== '.system' && entity !== '.DS_Store' && entity !== '.generic'));
|
|
45
|
+
|
|
46
|
+
// for each entity in the specific additions, get the appropriate integration test info from generic call for the specific calls
|
|
47
|
+
let finalAddedIntegrationTest = '';
|
|
48
|
+
let entityIntegrationTests = '';
|
|
49
|
+
entitiesAdding.forEach((eSpecific) => {
|
|
50
|
+
const existingActionFile = JSON.parse(fs.readFileSync(path.join(__dirname, `../entities/${e}/action.json`), 'utf8'));
|
|
51
|
+
const existingIntegrationFile = fs.readFileSync(path.join(__dirname, '../test/integration/adapterTestIntegration.js'), 'utf8');
|
|
52
|
+
const testSplit = existingIntegrationFile.split('describe');
|
|
53
|
+
existingActionFile.actions.forEach((action) => {
|
|
54
|
+
let replaceTest = '';
|
|
55
|
+
testSplit.every((test) => {
|
|
56
|
+
const testSlice = test.slice(0, action.name.length + 3);
|
|
57
|
+
if (testSlice.includes(action.name)) {
|
|
58
|
+
replaceTest = test.split('if (stub) {\n');
|
|
59
|
+
replaceTest = replaceTest[1].split('} else {\n');
|
|
60
|
+
replaceTest = replaceTest[0];
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return true;
|
|
64
|
+
});
|
|
65
|
+
if (replaceTest !== '') {
|
|
66
|
+
const addingIntegrationFile = fs.readFileSync(path.join(__dirname, `${folder}/components/test/integration/adapterTestIntegration.js`), 'utf8');
|
|
67
|
+
const addingTestSplit = addingIntegrationFile.split('describe');
|
|
68
|
+
const addingActionFile = JSON.parse(fs.readFileSync(path.join(__dirname, `./${folder}/components/entities/${eSpecific}/action.json`)), 'utf8');
|
|
69
|
+
addingActionFile.forEach((addingAction) => {
|
|
70
|
+
let replacedTest = '';
|
|
71
|
+
addingTestSplit.forEach((addedTest) => {
|
|
72
|
+
const addingTestSlice = addedTest.slice(0, addingAction.name.length + 3);
|
|
73
|
+
if (addingTestSlice.includes(addingAction.name) && (action.method === addingAction.method)) {
|
|
74
|
+
replacedTest = addedTest.split('if (stub) {\n');
|
|
75
|
+
replacedTest = replacedTest[1].split('} else {\n');
|
|
76
|
+
replacedTest = replacedTest[0];
|
|
77
|
+
let finalTest = addedTest.replace(replacedTest, replaceTest);
|
|
78
|
+
finalTest = finalTest.replace('should work if integrated but since no mockdata should error when run standalone', 'should work if integrated or standalone with mockdata');
|
|
79
|
+
finalTest = 'describe' + finalTest;
|
|
80
|
+
entityIntegrationTests = finalTest;
|
|
81
|
+
finalAddedIntegrationTest += entityIntegrationTests;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
// clear out the action.json and schema.json file of the specific call so it does not get added to action.json and schema.json of generic adapter
|
|
88
|
+
fs.writeFileSync(path.join(__dirname, `./${folder}/components/entities/${eSpecific}/action.json`), '[]');
|
|
89
|
+
fs.writeFileSync(path.join(__dirname, `./${folder}/components/entities/${eSpecific}/schema.json`), '[]');
|
|
90
|
+
});
|
|
91
|
+
finalAddedIntegrationTest = '\n ' + finalAddedIntegrationTest;
|
|
92
|
+
fs.writeFileSync(path.join(__dirname, `${folder}/components/test/integration/adapterTestIntegration.js`), finalAddedIntegrationTest);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
main();
|