feat(extensions): bulk check for updates

This commit is contained in:
5rahim
2024-07-29 16:09:13 -04:00
parent 4ebe909fc3
commit bffbe46520
17 changed files with 386 additions and 132 deletions

View File

@@ -1975,7 +1975,7 @@
"HandleGetAllExtensions",
"",
"\t@summary returns all loaded and invalid extensions.",
"\t@route /api/v1/extensions/all [GET]",
"\t@route /api/v1/extensions/all [POST]",
"\t@returns extension_repo.AllExtensions",
""
],
@@ -1986,10 +1986,20 @@
"descriptions": [],
"endpoint": "/api/v1/extensions/all",
"methods": [
"GET"
"POST"
],
"params": [],
"bodyFields": [],
"bodyFields": [
{
"name": "WithUpdates",
"jsonName": "withUpdates",
"goType": "bool",
"usedStructType": "",
"typescriptType": "boolean",
"required": true,
"descriptions": []
}
],
"returns": "extension_repo.AllExtensions",
"returnGoType": "extension_repo.AllExtensions",
"returnTypescriptType": "ExtensionRepo_AllExtensions"

View File

@@ -26190,6 +26190,53 @@
],
"comments": []
},
{
"filepath": "../internal/extension/bank.go",
"filename": "bank.go",
"name": "UnifiedBank",
"formattedName": "Extension_UnifiedBank",
"package": "extension",
"fields": [
{
"name": "extensions",
"jsonName": "extensions",
"goType": "",
"typescriptType": "any",
"required": false,
"public": false,
"comments": []
},
{
"name": "extensionAddedCh",
"jsonName": "extensionAddedCh",
"goType": "",
"typescriptType": "any",
"required": true,
"public": false,
"comments": []
},
{
"name": "extensionRemovedCh",
"jsonName": "extensionRemovedCh",
"goType": "",
"typescriptType": "any",
"required": true,
"public": false,
"comments": []
},
{
"name": "mu",
"jsonName": "mu",
"goType": "sync.RWMutex",
"typescriptType": "RWMutex",
"usedStructName": "sync.RWMutex",
"required": false,
"public": false,
"comments": []
}
],
"comments": []
},
{
"filepath": "../internal/extension/bank.go",
"filename": "bank.go",
@@ -26267,6 +26314,7 @@
"typescriptType": "string",
"declaredValues": [
"\"javascript\"",
"\"typescript\"",
"\"go\""
]
},
@@ -27626,6 +27674,42 @@
],
"comments": []
},
{
"filepath": "../internal/extension_repo/goja_anime_torrent_provider.go",
"filename": "goja_anime_torrent_provider.go",
"name": "GojaAnimeTorrentProvider",
"formattedName": "ExtensionRepo_GojaAnimeTorrentProvider",
"package": "extension_repo",
"fields": [],
"comments": [],
"embeddedStructNames": [
"extension_repo.gojaExtensionImpl"
]
},
{
"filepath": "../internal/extension_repo/goja_manga_provider.go",
"filename": "goja_manga_provider.go",
"name": "GojaMangaProvider",
"formattedName": "ExtensionRepo_GojaMangaProvider",
"package": "extension_repo",
"fields": [],
"comments": [],
"embeddedStructNames": [
"extension_repo.gojaExtensionImpl"
]
},
{
"filepath": "../internal/extension_repo/goja_onlinestream_provider.go",
"filename": "goja_onlinestream_provider.go",
"name": "GojaOnlinestreamProvider",
"formattedName": "ExtensionRepo_GojaOnlinestreamProvider",
"package": "extension_repo",
"fields": [],
"comments": [],
"embeddedStructNames": [
"extension_repo.gojaExtensionImpl"
]
},
{
"filepath": "../internal/extension_repo/repository.go",
"filename": "repository.go",
@@ -27673,8 +27757,8 @@
"comments": []
},
{
"name": "mangaProviderExtensionBank",
"jsonName": "mangaProviderExtensionBank",
"name": "gojaExtensions",
"jsonName": "gojaExtensions",
"goType": "",
"typescriptType": "any",
"required": false,
@@ -27682,19 +27766,11 @@
"comments": []
},
{
"name": "animeTorrentProviderExtensionBank",
"jsonName": "animeTorrentProviderExtensionBank",
"goType": "",
"typescriptType": "any",
"required": false,
"public": false,
"comments": []
},
{
"name": "onlinestreamProviderExtensionBank",
"jsonName": "onlinestreamProviderExtensionBank",
"goType": "",
"typescriptType": "any",
"name": "extensionBank",
"jsonName": "extensionBank",
"goType": "extension.UnifiedBank",
"typescriptType": "Extension_UnifiedBank",
"usedStructName": "extension.UnifiedBank",
"required": false,
"public": false,
"comments": []
@@ -27737,6 +27813,53 @@
"required": false,
"public": true,
"comments": []
},
{
"name": "HasUpdate",
"jsonName": "hasUpdate",
"goType": "[]UpdateData",
"typescriptType": "Array\u003cExtensionRepo_UpdateData\u003e",
"usedStructName": "extension_repo.UpdateData",
"required": false,
"public": true,
"comments": []
}
],
"comments": []
},
{
"filepath": "../internal/extension_repo/repository.go",
"filename": "repository.go",
"name": "UpdateData",
"formattedName": "ExtensionRepo_UpdateData",
"package": "extension_repo",
"fields": [
{
"name": "ExtensionID",
"jsonName": "extensionID",
"goType": "string",
"typescriptType": "string",
"required": true,
"public": true,
"comments": []
},
{
"name": "ManifestURI",
"jsonName": "manifestURI",
"goType": "string",
"typescriptType": "string",
"required": true,
"public": true,
"comments": []
},
{
"name": "Version",
"jsonName": "version",
"goType": "string",
"typescriptType": "string",
"required": true,
"public": true,
"comments": []
}
],
"comments": []
@@ -35425,8 +35548,9 @@
{
"name": "providerExtensionBank",
"jsonName": "providerExtensionBank",
"goType": "",
"typescriptType": "any",
"goType": "extension.UnifiedBank",
"typescriptType": "Extension_UnifiedBank",
"usedStructName": "extension.UnifiedBank",
"required": false,
"public": false,
"comments": []
@@ -40234,8 +40358,9 @@
{
"name": "providerExtensionBank",
"jsonName": "providerExtensionBank",
"goType": "",
"typescriptType": "any",
"goType": "extension.UnifiedBank",
"typescriptType": "Extension_UnifiedBank",
"usedStructName": "extension.UnifiedBank",
"required": false,
"public": false,
"comments": []
@@ -46630,10 +46755,11 @@
"comments": []
},
{
"name": "animeProviderExtensionBank",
"jsonName": "animeProviderExtensionBank",
"goType": "",
"typescriptType": "any",
"name": "extensionBank",
"jsonName": "extensionBank",
"goType": "extension.UnifiedBank",
"typescriptType": "Extension_UnifiedBank",
"usedStructName": "extension.UnifiedBank",
"required": false,
"public": false,
"comments": []