fiftyone.geolocation 4.4.1 → 4.4.3

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 (118) hide show
  1. package/.github/workflows/monthly-copyright-update.yml +21 -0
  2. package/.github/workflows/nightly-documentation-update.yml +21 -0
  3. package/.github/workflows/nightly-package-update.yml +22 -0
  4. package/.github/workflows/nightly-prs-to-main.yml +22 -0
  5. package/.github/workflows/nightly-publish-to-main.yml +23 -0
  6. package/ci/README.md +11 -1
  7. package/ci/build-package-requirements.ps1 +1 -0
  8. package/ci/build-package.ps1 +14 -0
  9. package/ci/build-project.ps1 +16 -0
  10. package/ci/fetch-assets.ps1 +1 -0
  11. package/ci/get-next-package-version.ps1 +10 -0
  12. package/ci/install-package.ps1 +8 -0
  13. package/ci/options.json +50 -0
  14. package/ci/package-update-required.ps1 +1 -0
  15. package/ci/publish-package.ps1 +10 -0
  16. package/ci/run-integration-tests.ps1 +22 -0
  17. package/ci/run-performance-tests.ps1 +8 -0
  18. package/ci/run-unit-tests.ps1 +8 -0
  19. package/ci/setup-environment.ps1 +13 -0
  20. package/ci/update-packages.ps1 +10 -0
  21. package/docs/Doxyfile +12 -10
  22. package/package.json +11 -11
  23. package/tests/geoLocationCloud.test.js +0 -28
  24. package/ci/build-and-test.yml +0 -34
  25. package/ci/common-ci/.github/labels.yml +0 -86
  26. package/ci/common-ci/.github/workflows/sync-labels.yml +0 -52
  27. package/ci/common-ci/CiTips.md +0 -34
  28. package/ci/common-ci/GitVersion.yml +0 -18
  29. package/ci/common-ci/LICENSE +0 -286
  30. package/ci/common-ci/README.md +0 -365
  31. package/ci/common-ci/build-and-test.yml +0 -65
  32. package/ci/common-ci/c/shared-variables.yml +0 -15
  33. package/ci/common-ci/check-merge-commit-format.yml +0 -56
  34. package/ci/common-ci/cloud-release-config.json +0 -51
  35. package/ci/common-ci/create-tag.yml +0 -44
  36. package/ci/common-ci/deploy.yml +0 -25
  37. package/ci/common-ci/dotnet/shared-code-signing-steps.yml +0 -20
  38. package/ci/common-ci/dotnet/shared-extract-and-publish-packages.yml +0 -29
  39. package/ci/common-ci/go/shared-go-list-stage.yml +0 -64
  40. package/ci/common-ci/java/readme.md +0 -22
  41. package/ci/common-ci/java/shared-package-signing-steps.yml +0 -17
  42. package/ci/common-ci/java/shared-security-vulnerability-check.yml +0 -54
  43. package/ci/common-ci/node/shared-extract-and-publish-packages.yml +0 -26
  44. package/ci/common-ci/php/readme.md +0 -15
  45. package/ci/common-ci/release-config-schema.json +0 -52
  46. package/ci/common-ci/release-config-template.json +0 -310
  47. package/ci/common-ci/release-config.json +0 -151
  48. package/ci/common-ci/release-process.drawio +0 -165
  49. package/ci/common-ci/release-process.png +0 -0
  50. package/ci/common-ci/scripts/azure/checkSlot.ps1 +0 -28
  51. package/ci/common-ci/scripts/modules/51DAuthorizationModule/51DAuthorizationModule.Tests.ps1 +0 -1
  52. package/ci/common-ci/scripts/modules/51DAuthorizationModule/51DAuthorizationModule.psm1 +0 -16
  53. package/ci/common-ci/scripts/modules/51DBuildModule/51DBuildModule.Tests.ps1 +0 -3
  54. package/ci/common-ci/scripts/modules/51DBuildModule/51DBuildModule.psm1 +0 -200
  55. package/ci/common-ci/scripts/modules/51DDeployModule/51DDeployModule.psm1 +0 -66
  56. package/ci/common-ci/scripts/modules/51DDownloadDataFileModule/51DDownloadDataFileModule.psm1 +0 -74
  57. package/ci/common-ci/scripts/modules/51DEnvironmentModule/51DEnvironmentModule.Tests.ps1 +0 -25
  58. package/ci/common-ci/scripts/modules/51DEnvironmentModule/51DEnvironmentModule.psm1 +0 -22
  59. package/ci/common-ci/scripts/modules/51DErrorHandleModule/51DErrorHandleModule.Tests.ps1 +0 -1
  60. package/ci/common-ci/scripts/modules/51DErrorHandleModule/51DErrorHandleModule.psm1 +0 -41
  61. package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.Tests.ps1 +0 -5
  62. package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +0 -765
  63. package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.Tests.ps1 +0 -842
  64. package/ci/common-ci/scripts/modules/51DPackageModule/51DPackageModule.psm1 +0 -926
  65. package/ci/common-ci/scripts/modules/51DPipelineModule/51DPipelineModule.Tests.ps1 +0 -1
  66. package/ci/common-ci/scripts/modules/51DPipelineModule/51DPipelineModule.psm1 +0 -87
  67. package/ci/common-ci/scripts/modules/51DPullRequestModule/51DPullRequestModule.Tests.ps1 +0 -194
  68. package/ci/common-ci/scripts/modules/51DPullRequestModule/51DPullRequestModule.psm1 +0 -653
  69. package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.Tests.ps1 +0 -277
  70. package/ci/common-ci/scripts/modules/51DReleaseModule/51DReleaseModule.psm1 +0 -554
  71. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.Tests.ps1 +0 -1141
  72. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.psd1 +0 -0
  73. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/51DReleaseTestEnvModule.psm1 +0 -1465
  74. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ConfigurationVerifier.Tests.ps1 +0 -318
  75. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ConfigurationVerifier.psm1 +0 -344
  76. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.Tests.ps1 +0 -1186
  77. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/ReleaseVerifier.psm1 +0 -900
  78. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/SharedVariables.psm1 +0 -139
  79. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/c-test-env-config.json +0 -268
  80. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/dotnet-deploy-test-env-config.json +0 -700
  81. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/dotnet-test-env-config.json +0 -533
  82. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-deploy-test-env-config.json +0 -290
  83. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/go-test-env-config.json +0 -260
  84. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/java-deploy-test-env-config.json +0 -511
  85. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/java-test-env-config.json +0 -388
  86. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/node-deploy-test-env-config.json +0 -419
  87. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/node-test-env-config.json +0 -329
  88. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/php-test-env-config.json +0 -540
  89. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/python-deploy-test-env-config.json +0 -411
  90. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/python-test-env-config.json +0 -321
  91. package/ci/common-ci/scripts/modules/51DReleaseTestEnvModule/config/test-env-config.json +0 -457
  92. package/ci/common-ci/scripts/modules/51DRestModule/51DRestModule.psm1 +0 -38
  93. package/ci/common-ci/scripts/modules/AzurePortalModules/51DApplicationInsightsModule/51DApplicationInsightsModule.psm1 +0 -104
  94. package/ci/common-ci/scripts/modules/AzurePortalModules/51DChecksModule/51DChecksModule.psm1 +0 -68
  95. package/ci/common-ci/scripts/modules/AzurePortalModules/51DCloudModule/51DCloudModule.psm1 +0 -155
  96. package/ci/common-ci/scripts/modules/AzurePortalModules/51DConnectAzureModule/51DConnectAzureModule.psm1 +0 -45
  97. package/ci/common-ci/scripts/modules/AzurePortalModules/51DSSLBindingsModule/51DSSLBIndingsModule.psm1 +0 -100
  98. package/ci/common-ci/scripts/modules/AzurePortalModules/51DStagingSlotModule/51DStagingSlotModule.psm1 +0 -50
  99. package/ci/common-ci/scripts/modules/AzurePortalModules/51DStorageAccountModule/51DStorageAccountModule.psm1 +0 -248
  100. package/ci/common-ci/scripts/modules/AzurePortalModules/51DTrafficManagerModule/51DTrafficManagerModule.psm1 +0 -58
  101. package/ci/common-ci/shared-auto-complete-pr-stage.yml +0 -61
  102. package/ci/common-ci/shared-create-tag-job.yml +0 -23
  103. package/ci/common-ci/shared-docker-build-steps.yml +0 -34
  104. package/ci/common-ci/shared-docker-push-steps.yml +0 -32
  105. package/ci/common-ci/shared-docker-test-http-steps.yml +0 -69
  106. package/ci/common-ci/shared-git-tag-job.yml +0 -38
  107. package/ci/common-ci/shared-git-version-job.yml +0 -71
  108. package/ci/common-ci/shared-publish-github-stage.yml +0 -107
  109. package/ci/common-ci/shared-submodule-trigger-stage.yml +0 -110
  110. package/ci/common-ci/shared-variables.yml +0 -7
  111. package/ci/common-ci/trigger-release-apis.yml +0 -39
  112. package/ci/create-packages.yml +0 -109
  113. package/ci/deploy-external.yml +0 -55
  114. package/ci/deploy-internal.yml +0 -50
  115. package/ci/shared-build-and-test-platforms.yml +0 -26
  116. package/ci/shared-build-and-test-stage.yml +0 -128
  117. package/ci/shared-variables.yml +0 -1
  118. package/ci/submodule-trigger.yml +0 -12
@@ -1,74 +0,0 @@
1
- <#
2
- ==================== Download =====================
3
- .Description
4
- This module contains a function to download a data file
5
- from the 51Degrees Distributor.
6
- #>
7
-
8
- # Download a data file.
9
- function Get-DataFile {
10
-
11
- param (
12
- [Parameter(Mandatory=$true)]
13
- [string]$licenseKey,
14
-
15
- [Parameter(Mandatory=$true)]
16
- [string]$dataType,
17
-
18
- [Parameter(Mandatory=$true)]
19
- [string]$product,
20
-
21
- [Parameter(Mandatory=$true)]
22
- [string]$fullFilePath
23
- )
24
-
25
- Add-Type -AssemblyName System.Net.Http
26
-
27
- $webClient = New-Object System.Net.Http.HttpClient;
28
- $webClient.Timeout = New-TimeSpan -Seconds 240
29
- $url ="https://distributor.51degrees.com/api/v2/download?LicenseKeys=$($licenseKey)&Type=$($dataType)&Download=True&Product=$($product)"
30
- $start_time = Get-Date
31
- $complete = $false
32
- $tryCount = 0
33
-
34
- DO
35
- {
36
- $tryCount++;
37
- Write-Host "Attempt: $tryCount"
38
-
39
- try
40
- {
41
- # Get download stream
42
- $stream = $webClient.GetStreamAsync($url)
43
- $stream.ConfigureAwait($false) > $null
44
- if ($null -ne $stream.Exception){ throw $stream.Exception }
45
-
46
- # Save stream to path
47
- try
48
- {
49
- $fileStream = [System.IO.File]::Create($fullFilePath)
50
- $stream.Result.CopyTo($fileStream)
51
- $complete = $true
52
- }
53
- finally
54
- {
55
- if ($null -ne $fileStream){ $fileStream.Dispose() }
56
- if (($null -ne $stream) -and ($stream.IsCompleted -eq $true)){ $stream.Dispose() }
57
- }
58
- }
59
- catch
60
- {
61
- Write-Host "# ERROR downloading data file:"
62
- Write-Host $_
63
- }
64
- } While (($complete -eq $false) -and ($tryCount -le 10))
65
-
66
- if($complete -eq $false)
67
- {
68
- throw "# ERROR: Data file download failed after $tryCount attempts."
69
- }
70
-
71
- Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
72
- }
73
-
74
- Export-ModuleMember -Function Get-DataFile
@@ -1,25 +0,0 @@
1
- Using module 51DEnvironmentModule
2
-
3
- Describe 'GetEnvironmentVariable' {
4
- It 'Successfully get default in test environment' {
5
- $curEnv = $Env:51D_ENVIRONMENT
6
- # Set test environment
7
- $Env:51D_ENVIRONMENT = "Test"
8
- $result = [EnvironmentHandler]::GetEnvironmentVariable("test")
9
-
10
- # Restore the current environment
11
- $Env:51D_ENVIRONMENT = $curEnv
12
- $result | Should -Be "default"
13
- }
14
-
15
- It 'Successfully get value in production environment' {
16
- $curEnv = $Env:51D_ENVIRONMENT
17
- # Set test environment
18
- $Env:51D_ENVIRONMENT = "Production"
19
- $result = [EnvironmentHandler]::GetEnvironmentVariable("test")
20
-
21
- # Restore the current environment
22
- $Env:51D_ENVIRONMENT = $curEnv
23
- $result | Should -Be "test"
24
- }
25
- }
@@ -1,22 +0,0 @@
1
- class EnvironmentHandler {
2
- <#
3
- .Description
4
- This function check what value caller should see in current environment.
5
- This is normally used to make sure that in a test environment, a fake
6
- value is always used so that we don't accidentally change the production
7
- environment.
8
-
9
- .Parameter envVarValue
10
- Actual environment value
11
-
12
- .Outputs
13
- The input value or default if in test environment
14
- #>
15
- static [object]GetEnvironmentVariable([object]$envVarValue) {
16
- if ($Env:51D_ENVIRONMENT -eq 'Test') {
17
- return "default"
18
- } else {
19
- return $envVarValue
20
- }
21
- }
22
- }
@@ -1 +0,0 @@
1
- # Placeholder for future tests
@@ -1,41 +0,0 @@
1
- <#
2
- ===================== Error Handling =====================
3
- .Description
4
- This module contains functions that perform error handling
5
- actions.
6
- For more information, please read description of
7
- each function.
8
- #>
9
-
10
- <#
11
- .Description
12
- Check a Rest Response and return
13
- whether it is successful or not.
14
-
15
- .Parameter Response
16
-
17
- .Outputs true or false
18
- #>
19
- function Test-RestResponse {
20
- param (
21
- $Response,
22
- [string]$ErrorMessage
23
- )
24
-
25
- # Check that reponse is not null. This is for cases whereexception occurs
26
- # when call Invoke-WebRequest and no response is returned.
27
- if ($Response -eq $null) {
28
- Write-Host "# ERROR: Response object is null."
29
- Write-Host "# ERROR: $ErrorMessage"
30
- return $false
31
- }
32
-
33
- # Check for actual status code
34
- if ($Response.StatusCode -le 599 -and $Response.StatusCode -ge 400) {
35
-
36
- Write-Host "# ERROR: Status Code returned $($Response.StatusCode)"
37
- Write-Host "# ERROR: $ErrorMessage"
38
- throw "# ERROR: Rest api call failed."
39
- }
40
- return $true
41
- }
@@ -1,5 +0,0 @@
1
- # Place holder. Since most of the Git module requires
2
- # invokdation of 'git' command. It cannot mock the
3
- # git behaviour without a great deal of cearting the
4
- # wrapper for each. Thus, this file is a place holder
5
- # for future tests.