@progress/sitefinity-webservices-sdk 1.1.0 → 1.1.6

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 (116) hide show
  1. package/README.md +28 -11
  2. package/dist/docs/assets/highlight.css +6 -6
  3. package/dist/docs/assets/main.js +56 -52
  4. package/dist/docs/assets/search.js +1 -1
  5. package/dist/docs/assets/style.css +58 -2
  6. package/dist/docs/classes/BlobBuilder.BlobBuilder.html +4 -2
  7. package/dist/docs/classes/Data.Data.html +6 -4
  8. package/dist/docs/classes/Expression.BinaryExpression.html +5 -5
  9. package/dist/docs/classes/Expression.ComplexExpression.html +13 -6
  10. package/dist/docs/classes/Expression.ExpressionBase.html +5 -5
  11. package/dist/docs/classes/OrderProperty.OrderProperty.html +23 -2
  12. package/dist/docs/classes/Query.Query.html +10 -10
  13. package/dist/docs/classes/QueryBase.QueryBase.html +5 -5
  14. package/dist/docs/classes/QueryBuilder.QueryBuilder.html +18 -4
  15. package/dist/docs/classes/Requests_BatchRequest.BatchRequest.html +14 -14
  16. package/dist/docs/classes/Requests_BatchRequest.Transaction.html +4 -2
  17. package/dist/docs/classes/Requests_ExecutableRequest.ExecutableRequest.html +9 -11
  18. package/dist/docs/classes/Requests_Request.CommitChunksRequest.html +10 -10
  19. package/dist/docs/classes/Requests_Request.CreateRelatedRequest.html +7 -7
  20. package/dist/docs/classes/Requests_Request.CreateRequest.html +7 -9
  21. package/dist/docs/classes/Requests_Request.DeleteRelatedByIdRequest.html +7 -7
  22. package/dist/docs/classes/Requests_Request.DeleteRelatedRequest.html +7 -7
  23. package/dist/docs/classes/Requests_Request.DeleteRequest.html +7 -9
  24. package/dist/docs/classes/Requests_Request.GetByIdRequest.html +7 -9
  25. package/dist/docs/classes/Requests_Request.GetRelatedByIdRequest.html +7 -7
  26. package/dist/docs/classes/Requests_Request.GetRelatedRequest.html +7 -7
  27. package/dist/docs/classes/Requests_Request.GetRequest.html +7 -7
  28. package/dist/docs/classes/Requests_Request.UpdateRequest.html +7 -7
  29. package/dist/docs/classes/Requests_Request.UploadChunkRequest.html +19 -12
  30. package/dist/docs/classes/Requests_Request.UploadRequest.html +8 -8
  31. package/dist/docs/classes/Requests_RequestBase.RequestBase.html +9 -9
  32. package/dist/docs/classes/Requests_RequestFactory.RequestFactory.html +4 -2
  33. package/dist/docs/classes/Sitefinity.Sitefinity.html +4 -2
  34. package/dist/docs/classes/WhereQuery.WhereQuery.html +13 -6
  35. package/dist/docs/classes/chunk_upload_chunk_upload_sdk.ChunkUploadSdk.html +7 -5
  36. package/dist/docs/classes/chunk_upload_chunked_file_upload_utilities.ChunkedFileUploadUtilities.html +4 -2
  37. package/dist/docs/classes/utils.utils.html +4 -2
  38. package/dist/docs/index.html +30 -15
  39. package/dist/docs/interfaces/Data.CreateRelatedRequestOptions.html +5 -7
  40. package/dist/docs/interfaces/Data.CreateRequestOptions.html +5 -7
  41. package/dist/docs/interfaces/Data.OperationsRequestOptions.html +5 -5
  42. package/dist/docs/interfaces/Data.PropertyRequestOptions.html +5 -7
  43. package/dist/docs/interfaces/Data.RequestOptionsBase.html +5 -5
  44. package/dist/docs/interfaces/Data.SingleRelatedItemRequestOptions.html +5 -7
  45. package/dist/docs/interfaces/Data.UpdateRequestOptions.html +5 -7
  46. package/dist/docs/interfaces/Data.UploadRequestOptions.html +7 -7
  47. package/dist/docs/interfaces/Requests_BatchRequest.BatchCreateRelatedRequestOptions.html +5 -5
  48. package/dist/docs/interfaces/Requests_BatchRequest.BatchCreateRequestOptions.html +5 -5
  49. package/dist/docs/interfaces/Requests_BatchRequest.BatchPropertyRequestOptions.html +5 -5
  50. package/dist/docs/interfaces/Requests_BatchRequest.BatchRequestOptionsBase.html +5 -5
  51. package/dist/docs/interfaces/Requests_BatchRequest.BatchRequestOptionsExtended.html +5 -5
  52. package/dist/docs/interfaces/Requests_BatchRequest.BatchSingleItemRequestOptions.html +5 -5
  53. package/dist/docs/interfaces/Requests_BatchRequest.BatchSingleRelatedItemRequestOptions.html +5 -5
  54. package/dist/docs/interfaces/Requests_BatchRequest.BatchUpdateRequestOptions.html +5 -5
  55. package/dist/docs/interfaces/Requests_ExecutableRequest.ResponseHandlers.html +4 -2
  56. package/dist/docs/interfaces/Requests_Request.CommitChunksRequestOptionsExtended.html +16 -16
  57. package/dist/docs/interfaces/Requests_Request.PostRequestOptionsExtended.html +7 -9
  58. package/dist/docs/interfaces/Requests_Request.PutRequestOptionsExtended.html +8 -8
  59. package/dist/docs/interfaces/Requests_Request.RelatedByIdRequestOptionsExtended.html +9 -9
  60. package/dist/docs/interfaces/Requests_Request.RelatedRequestOptionsExtended.html +8 -10
  61. package/dist/docs/interfaces/Requests_Request.UploadChunkRequestOptionsExtended.html +22 -15
  62. package/dist/docs/interfaces/Requests_Request.UploadRequestOptionsExtended.html +11 -11
  63. package/dist/docs/interfaces/Requests_RequestBase.RequestOptionsBaseExtended.html +5 -7
  64. package/dist/docs/interfaces/Sitefinity.SDKOptions.html +5 -5
  65. package/dist/docs/interfaces/Sitefinity.Token.html +4 -2
  66. package/dist/docs/interfaces/Sitefinity.TypeOptions.html +6 -6
  67. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.ChunkUploadInfoDTO.html +11 -9
  68. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.ChunkUploadResult.html +7 -5
  69. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.CleanUpChunksRequestOptions.html +8 -8
  70. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.CommitChunksRequestOptions.html +9 -9
  71. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.GetChunkUploadInfoRequestOptions.html +8 -8
  72. package/dist/docs/interfaces/chunk_upload_chunk_upload_sdk.UploadChunkRequestOptions.html +13 -8
  73. package/dist/docs/interfaces/chunk_upload_chunked_file_upload_utilities.ChunkFileResult.html +4 -2
  74. package/dist/docs/interfaces/chunk_upload_chunked_file_upload_utilities.FileUploadChunk.html +4 -2
  75. package/dist/docs/modules/BlobBuilder.html +4 -2
  76. package/dist/docs/modules/Data.html +4 -2
  77. package/dist/docs/modules/Expression.html +4 -2
  78. package/dist/docs/modules/OrderProperty.html +4 -2
  79. package/dist/docs/modules/Query.html +4 -2
  80. package/dist/docs/modules/QueryBase.html +4 -2
  81. package/dist/docs/modules/QueryBuilder.html +4 -2
  82. package/dist/docs/modules/Requests_BatchRequest.html +4 -2
  83. package/dist/docs/modules/Requests_ExecutableRequest.html +4 -2
  84. package/dist/docs/modules/Requests_Request.html +4 -2
  85. package/dist/docs/modules/Requests_RequestBase.html +4 -2
  86. package/dist/docs/modules/Requests_RequestFactory.html +4 -2
  87. package/dist/docs/modules/Sitefinity.html +4 -2
  88. package/dist/docs/modules/WhereQuery.html +4 -2
  89. package/dist/docs/modules/chunk_upload_chunk_upload_sdk.html +4 -2
  90. package/dist/docs/modules/chunk_upload_chunked_file_upload_utilities.html +4 -2
  91. package/dist/docs/modules/constants.html +4 -2
  92. package/dist/docs/modules/utils.html +4 -2
  93. package/dist/docs/modules.html +4 -2
  94. package/dist/docs/variables/constants.CONTENT_TYPES.html +5 -3
  95. package/dist/docs/variables/constants.EXPRESSION_TYPE.html +5 -3
  96. package/dist/docs/variables/constants.HEADER_NAMES.html +5 -3
  97. package/dist/docs/variables/constants.HTTP_METHODS.html +5 -3
  98. package/dist/docs/variables/constants.ODATA_PARAMS.html +5 -3
  99. package/dist/docs/variables/constants.SF_PARAMS.html +5 -3
  100. package/dist/samples.html +2 -2
  101. package/dist/sitefinity-webservices-sdk.js +54 -2
  102. package/dist/sitefinity-webservices-sdk.js.map +1 -1
  103. package/dist/sitefinity-webservices-sdk.min.js +1 -1
  104. package/dist/src/Requests/Request.d.ts +2 -0
  105. package/dist/src/chunk-upload/chunk-upload.sdk.d.ts +5 -0
  106. package/package.json +10 -10
  107. package/src/Requests/Request.ts +4 -0
  108. package/src/chunk-upload/chunk-upload.sdk.spec.ts +2 -0
  109. package/src/chunk-upload/chunk-upload.sdk.ts +6 -0
  110. package/template.html +2 -2
  111. package/.npmignore +0 -92
  112. package/ci/pipelines/ci.yml +0 -219
  113. package/dist/docs/assets/widgets.png +0 -0
  114. package/dist/docs/assets/widgets@2x.png +0 -0
  115. package/package-lock.json +0 -13966
  116. package/type.txt +0 -1
@@ -1,219 +0,0 @@
1
- trigger:
2
- branches:
3
- include:
4
- - refs/heads/master
5
- jobs:
6
- - job: Job_1
7
- displayName: Build and publish artifact
8
- pool:
9
- name: IrisVMware
10
- steps:
11
- - checkout: self
12
- - task: UseNode@1
13
- displayName: Use Node $(node.version)
14
- inputs:
15
- version: $(node.version)
16
- - task: PowerShell@2
17
- displayName: Verify Commit Type
18
- condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
19
- inputs:
20
- targetType: inline
21
- script: |
22
- $pullrequestId = $(System.PullRequest.PullRequestId)
23
- $azureDevOpsProject = "https://prgs-sitefinity.visualstudio.com/sitefinity"
24
- $headers = @{}
25
- $headers.Add("Content-Type", "application/json");
26
- $headers.Add("Authorization", "Basic $(VstsRestApiToken)");
27
- $pullRequestUrl = "${azureDevOpsProject}/_apis/git/repositories/sitefinity-webservices-sdk/pullrequests/${pullrequestId}?api-version=4.1"
28
- $response = Invoke-WebRequest -URI $pullRequestUrl -Headers $headers
29
- $responseJsonObject = $response | ConvertFrom-Json
30
- $pullRequestTitle = $responseJsonObject.title
31
- $semicolonIndex = $pullRequestTitle.IndexOf(":")
32
-
33
- if($semicolonIndex -eq -1)
34
- {
35
- throw (new-object "Exception" @("Please specify pull request type. Check readme file for more information"))
36
- exit 1
37
- }
38
-
39
- $prType = $pullRequestTitle.Substring(0, $semicolonIndex)
40
- $versionType = ""
41
-
42
- switch ($prType)
43
- {
44
- "build" { $versionType = "patch"; break}
45
- "test" { $versionType = "patch"; break}
46
- "fix" { $versionType = "patch"; break}
47
- "feat" { $versionType = "minor"; break}
48
- "BREAKING CHANGE" { $versionType = "major"; break}
49
- }
50
-
51
- if($versionType -eq "")
52
- {
53
- throw (new-object "Exception" @("Unsupported pull request type '$prType'. Check readme file for more information"))
54
- exit 1
55
- }
56
-
57
- $tb="$(System.PullRequest.TargetBranch)"
58
- $bnRegex = $tb -match "refs/heads/(.*)"
59
- $bn = $Matches[1]
60
- Write-Output "Target branch name is $bn"
61
-
62
- if(($versionType -eq "major") -and ($bn -ne "master"))
63
- {
64
- throw (new-object "Exception" @("Cannot release BREAKING CHANGE from branch different than master."))
65
- exit 1
66
- }
67
-
68
- Write-Output "Version type is $versionType"
69
- "$versionType" | Out-File "$(Build.SourcesDirectory)/type.txt"
70
- Write-Output "##vso[task.setvariable variable=VersionType]$versionType"
71
- - task: PowerShell@2
72
- displayName: Save Commit Type
73
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
74
- inputs:
75
- targetType: inline
76
- script: |
77
- $releaseBranches = ConvertFrom-Json -InputObject "$(SitefinitySdkReleaseBranches)"
78
-
79
- if ($releaseBranches -contains "$(Build.SourceBranch)") {
80
- "$(Build.SourceVersionMessage)" -match "Merged PR \d+: (.*)"
81
- $pullRequestTitle = $Matches[1]
82
- Write-Output "Pull request title is '$pullRequestTitle'"
83
- $semicolonIndex = $pullRequestTitle.IndexOf(":")
84
- if($semicolonIndex -eq -1)
85
- {
86
- Write-Error "Please specify pull request type. Check readme file for more information"
87
- exit 1
88
- }
89
-
90
- $prType = $pullRequestTitle.Substring(0, $semicolonIndex)
91
- $versionType = ""
92
- switch ($prType)
93
- {
94
- "build" { $versionType = "patch"; break}
95
- "test" { $versionType = "patch"; break}
96
- "fix" { $versionType = "patch"; break}
97
- "feat" { $versionType = "minor"; break}
98
- "BREAKING CHANGE" { $versionType = "major"; break}
99
- }
100
-
101
- Write-Output "##vso[task.setvariable variable=VersionType]$versionType"
102
-
103
- if($versionType -eq "")
104
- {
105
- Write-Error "Unsupported pull request type '$prType'. Check readme file for more information"
106
- exit 1
107
- }
108
-
109
- Write-Output "Version type is $versionType"
110
- "$versionType" | Out-File "$(Build.SourcesDirectory)/type.txt"
111
- Write-Output "##vso[task.setvariable variable=VersionType]$versionType"
112
-
113
- } else {
114
- Write-Output ""$(Build.SourceBranch)" branch is missing from the release branches $releaseBranches . Skipping this step"
115
- }
116
- - task: PublishPipelineArtifact@1
117
- displayName: Create Commit Data Artifact
118
- inputs:
119
- path: type.txt
120
- artifactName: commit-data-drop
121
- - task: Npm@1
122
- displayName: Npm install (CI)
123
- inputs:
124
- command: custom
125
- customCommand: ci
126
- - task: Npm@1
127
- displayName: Run lint
128
- inputs:
129
- command: custom
130
- verbose: true
131
- customCommand: run lint
132
- - task: Bash@3
133
- displayName: Run Tests
134
- inputs:
135
- targetType: inline
136
- script: >-
137
- export DISPLAY=':99.0'
138
-
139
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
140
-
141
- cd $(Build.SourcesDirectory)
142
-
143
- npm run test
144
- - task: Npm@1
145
- displayName: Build
146
- inputs:
147
- command: custom
148
- verbose: false
149
- customCommand: run build:release
150
- - task: PublishPipelineArtifact@1
151
- displayName: Publish Pipeline Artifact
152
- inputs:
153
- path: $(Pipeline.Workspace)/s
154
- artifactName: sitefinity-webservices-sdk-drop
155
- - task: PowerShell@2
156
- displayName: Calculate release version
157
- inputs:
158
- targetType: inline
159
- script: |
160
- $version=git describe --long --tags
161
- $version=$version.Replace('-', '.')
162
-
163
- $versionSegments="$version".Split('.')
164
- $major = [int]$versionSegments[0]
165
- $minor = [int]$versionSegments[1]
166
- $patch = [int]$versionSegments[2]
167
- $latestVersion = "$major.$minor.$patch"
168
- Write-Output "Currently published version is $latestVersion"
169
-
170
- switch ("$(VersionType)")
171
- {
172
- "major" { $major = $major + 1; $minor = 0; $patch = 0; break}
173
- "minor" { $minor = $minor + 1; $patch = 0; break}
174
- "patch" { $patch = $patch + 1; break}
175
- default {Write-Error "Version type not supported. Check Readme"; exit 1}
176
- }
177
-
178
- $newVersion = "$major.$minor.$patch"
179
- Write-Output "Releasing version $newVersion"
180
-
181
- $validVersion = $newVersion -match "(\d){1,2}\.(\d){1,2}\.(\d){1,2}"
182
- if(-not $validVersion)
183
- {
184
- Write-Error "Invalid version $newVersion aborting publish"
185
- exit 1
186
- }
187
-
188
- Write-Output "Version number is $newVersion "
189
- "$newVersion " | Out-File "$(Build.SourcesDirectory)/version.txt"
190
-
191
- Write-Output "##vso[task.setvariable variable=ReleaseVersion]$newVersion"
192
- - task: PublishPipelineArtifact@1
193
- displayName: Publish release version artifact
194
- inputs:
195
- path: version.txt
196
- artifactName: commit-data-drop-version
197
- - task: PowerShell@2
198
- displayName: Tag sitefinity-webservices-sdk repo
199
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
200
- inputs:
201
- targetType: inline
202
- script: |
203
- $releaseBranches = ConvertFrom-Json -InputObject "$(SitefinitySdkReleaseBranches)"
204
-
205
- if ($releaseBranches -contains "$(Build.SourceBranch)") {
206
- $token = "$(VstsRestApiToken)"
207
- Write-Host "##vso[task.logissue type=warning;] Releasing Sitefinity webservices sdk - "$(ReleaseVersion)""
208
-
209
- $postParams = @{name="$(ReleaseVersion)";taggedObject=@{objectId="$(Build.SourceVersion)"};message='Sitefinity webservices sdk release'}
210
- $json = $postParams | ConvertTo-Json
211
-
212
- $headers = @{'Content-Type'='application/json'; 'Authorization'="Basic $token"}
213
- $tagUrl = "https://prgs-sitefinity.visualstudio.com/sitefinity/_apis/git/repositories/sitefinity-webservices-sdk/annotatedtags?api-version=4.1-preview.1"
214
-
215
- Invoke-WebRequest -Uri $tagUrl -Method POST -Body $json -Headers $headers
216
- } else {
217
- Write-Error "Cannot tag the branch with the new release since it is missing from the list with release branches. Please review the whitelisted branches"
218
- exit 1
219
- }
Binary file
Binary file