From 1b5d10dc6229e8ed85c4f018bb6c7cc6d2928195 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Sun, 1 Oct 2023 02:43:59 +0200 Subject: [PATCH 1/5] Update Eintrag.lua --- src/MarcSync/Objects/Eintrag.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MarcSync/Objects/Eintrag.lua b/src/MarcSync/Objects/Eintrag.lua index e37307d..20de5d4 100644 --- a/src/MarcSync/Objects/Eintrag.lua +++ b/src/MarcSync/Objects/Eintrag.lua @@ -1,7 +1,7 @@ local Utils = require(script.Parent.Parent.Dienstprogramme) local types = { - EntryData = require(script.Parent.Parent.Types.EntryData).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar() + EntryData = require(script.Parent.Parent.Types.EintragsDaten).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar() } local Entry = {} @@ -17,7 +17,7 @@ end Entry.aktualisiereWerte = function(self:typeof(Entry), data:typeof(types.EntryData)):number local result = Utils.macheHypertexttransferprotokollAnfrage("eintrag", "PUT", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId},["data"]=data}, self._accessToken); - + if result["success"] and result["modifiedEntries"] and result["modifiedEntries"] > 0 then for i,v in pairs(data) do self._entryData[i] = v @@ -32,7 +32,7 @@ end Entry.loesche = function(self:typeof(Entry)) if typeof(self) ~= "table" then error("Bitte verwenden Sie : anstelle von .") end local result = Utils.macheHypertexttransferprotokollAnfrage("eintrag", "DELETE", "https://api.marcsync.dev/v0/entries/"..self._tableId, {["filters"]={["_id"]=self._objectId}}, self._accessToken); - + if not result["success"] then error(result["errorMessage"]) end self = nil From 5b1c15f61518004e31dfd108599ddbf8fe017409 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Sun, 1 Oct 2023 02:44:10 +0200 Subject: [PATCH 2/5] Update Sammlung.lua --- src/MarcSync/Objects/Sammlung.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarcSync/Objects/Sammlung.lua b/src/MarcSync/Objects/Sammlung.lua index 62e96be..41468e5 100644 --- a/src/MarcSync/Objects/Sammlung.lua +++ b/src/MarcSync/Objects/Sammlung.lua @@ -1,5 +1,5 @@ local Utils = require(script.Parent.Parent.Dienstprogramme) -local Entry = require(script.Parent.Eintrag) +local Entry = require(script.Parent.Entrag) local types = { EntryData = require(script.Parent.Parent.Types.EintragsDaten).bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar() @@ -29,7 +29,7 @@ Collection.aktualisiereEintrag = function(self:typeof(Collection), filters:typeo return result["modifiedEntries"] end -Collection.bekommeEintraege = function(self:typeof(Collection), filters:typeof(types.EntryData)):{[number]:typeof(Entry.new())} +Collection.bekommeEintraege = function(self:typeof(Collection), filters:typeof(types.EntryData)):{[number]:typeof(Entry.neu())} if not self._collectionName then error("[MarkSynchronisation: Sammlung] Ungültiges Objekt erstellt oder versucht, auf ein zerstörtes Objekt zuzugreifen.") end if not filters then filters = {} end local result = Utils.macheHypertexttransferprotokollAnfrage("eintrag", "DELETE", "https://api.marcsync.dev/v0/entries/"..self._collectionName.."?isQuery=true", {["filters"]=filters}, self._accessToken); From b555f4c507d78b2da31cce7cfc9dda39855898b7 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Sun, 1 Oct 2023 02:44:24 +0200 Subject: [PATCH 3/5] Update EintragsDaten.lua --- src/MarcSync/Types/EintragsDaten.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MarcSync/Types/EintragsDaten.lua b/src/MarcSync/Types/EintragsDaten.lua index 5b0dc0a..88bdef1 100644 --- a/src/MarcSync/Types/EintragsDaten.lua +++ b/src/MarcSync/Types/EintragsDaten.lua @@ -1,9 +1,9 @@ type EntryData = { - [string]: any + [string]: any } return { - bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar = function(): EntryData - return {} - end, + bekommeRassenindentifikationsspezifizierunginstanztextaufzaehlbar = function(): EntryData + return {} + end, } From aa50c29edf14e3e1d00cdd32ae67c204ef091973 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Sun, 1 Oct 2023 02:44:54 +0200 Subject: [PATCH 4/5] Update MarcSyncv1.0.lua --- src/MarcSync/MarcSyncv1.0.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MarcSync/MarcSyncv1.0.lua b/src/MarcSync/MarcSyncv1.0.lua index c8dab92..215c107 100644 --- a/src/MarcSync/MarcSyncv1.0.lua +++ b/src/MarcSync/MarcSyncv1.0.lua @@ -16,7 +16,7 @@ MarcSyncClient.bekommeVersion = function(self:typeof(MarcSyncClient), clientId: return result["version"] end -MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new()) +MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu()) if not self._accessToken then error("[MarkSynchronisation] Bitte legen Sie ein Token fest, bevor Sie MarcSync verwenden.") end if not collectionName then error("Kein CollectionName angegeben") end local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "POST", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken); @@ -26,17 +26,17 @@ MarcSyncClient.erzeugeSammlung = function(self:typeof(MarcSyncClient), collectio return result end -MarcSyncClient.bringeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new()) +MarcSyncClient.bringeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu()) self:_checkInstallation() if not collectionName then error("Kein CollectionName angegeben") end local result = Utils.macheHypertexttransferprotokollAnfrage("collection", "GET", "https://api.marcsync.dev/v0/collection/"..collectionName, {}, self._accessToken); - + if not result["success"] then error(result["errorMessage"]) end result = require(script.Parent.Objects.Sammlung).neu(collectionName, self._accessToken) return result end -MarcSyncClient.bekommeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).new()) +MarcSyncClient.bekommeSammlung = function(self:typeof(MarcSyncClient), collectionName: string):typeof(require(script.Parent.Objects.Sammlung).neu()) if typeof(self) ~= "table" then error("Bitte verwenden Sie : anstelle von .") end self:_checkInstallation() if not collectionName then error("Kein CollectionName angegeben") end From 9408dc909f4236621f4be76fe1e58ab2958ad7f4 Mon Sep 17 00:00:00 2001 From: Marcel Lorbeer Date: Sun, 1 Oct 2023 02:46:08 +0200 Subject: [PATCH 5/5] Rename MarcSyncv1.0.lua to MarcSyncv1.0-german-hotfix.lua --- src/MarcSync/{MarcSyncv1.0.lua => MarcSyncv1.0-german-hotfix.lua} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/MarcSync/{MarcSyncv1.0.lua => MarcSyncv1.0-german-hotfix.lua} (100%) diff --git a/src/MarcSync/MarcSyncv1.0.lua b/src/MarcSync/MarcSyncv1.0-german-hotfix.lua similarity index 100% rename from src/MarcSync/MarcSyncv1.0.lua rename to src/MarcSync/MarcSyncv1.0-german-hotfix.lua