From 211894151c5b721fdc58c726fea0ad36a18ed933 Mon Sep 17 00:00:00 2001 From: Pierre Dorge Date: Mon, 27 May 2024 14:45:53 +0200 Subject: [PATCH] Changes method response types --- output.pdf | Bin 18819 -> 18819 bytes outputSnippet.pdf | Bin 17015 -> 17015 bytes output_helper.pdf | Bin 14201 -> 14201 bytes output_merged.pdf | Bin 26822 -> 26822 bytes src/Client.ts | 6 +++--- tests/custom.test.ts | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/output.pdf b/output.pdf index d08774edef464fc731f8d7dca0fd197ab59f58dc..6fd140823e5040ca23430a00768f8cb078fa4cd1 100644 GIT binary patch delta 176 zcmZpk%-B4caYMd`v$3O-k&C&jfvcITv5AR^xs$V@iJOs|fs3PyiK~;Txt)RyAtjSH nc@)PHQbdF~cCmJLT*W1cMI{wQscBq>7G}m4T&k+B{%%|Vmpv>~ delta 176 zcmZpk%-B4caYMd`v#GhEi=ly|k%57MlZml`xudCzfwP;dxtXDvsj0cSk)47KAtjSH nc@)PHQbdF~cCmJLT*W1cMI{wQscBq>7G}m4T&k+B{%%|V+%zg@ diff --git a/outputSnippet.pdf b/outputSnippet.pdf index f374fa9c27dc9b60ddefbd47d5bbc841bc6e02b7..39705e47150b638d8f7077b6efda4831f457cf94 100644 GIT binary patch delta 153 zcmey~!uY*~aYM4Bvx|j^i=(Ntp}C`}rHQ4ZqlJ@+laZr~v!St>iHV_$iJgKCAtjTS MITlmJoERr*02{g{U;qFB delta 153 zcmey~!uY*~aYM4BvzeotqqC`nk-52>n~9N|iKC;rnWM3>ftitoxuKbfnVo_SAtjTS MITlmJoERr*0RCSk-~a#s diff --git a/output_helper.pdf b/output_helper.pdf index 275d0396dd2317aadb0786bb84473d83e62241f2..59abe36862c0b1f4cbe28cc1fb2248f9ce9ffd53 100644 GIT binary patch delta 151 zcmeyF_cL!ps+qH!rGc5Ni?gAbiJ7yBqk)@+k)wf;v#Gg@tDBRXo27-Ff(;=hlUJA( KQ^lM(b7=r0VJ71M delta 151 zcmeyF_cL!ps+qI1lZmCXg@KugtBIM3iL0Z9n}wU9k%^I;p{a$Nv#Xh%f(;=hlUJA( KQ^lM(b7=ti940>i diff --git a/output_merged.pdf b/output_merged.pdf index e54fd68d3fef1b8a87431e73099ae8af8f236945..ad4387c7eab939f5a0534bc67c130721c2f01332 100644 GIT binary patch delta 958 zcmV;v13~=8(E-NM0kBVGe=!O^J_>Vma%Ev{3V59DS8Z?GI1K)-U%`(Z4z*rvS@KX6 z$VizmFf263JlFoF{P3*w`b1t2AHSD3jW>0p>_)RFMuJdpgZ+Xq3#%8>^^oqyKHuz1dNYe>q&?hdOyP7 zFUxA<+jstc9yYF?EzZYbUEVAizp9H+R`m+_jVpTLVTSR%F>2awa_1U|72|K+o>5ve z{(Dt+cZ5o%1;jC7^8dSxF<+ER4CSLjty4&nQ-jogL%oyyWhZ|~n@PrLB{Anpri@=> z$*PJ`y;^$^i0964exrwp+rIYI>aN4us!=aryH(qRkxmi=}RbvJ)CCe7=~ zgxWxfDX|ClVCoRrmcCnh1CFE9Qra!iIp7QWgc#8JkU;Xe`8+qD?|S{W`6!zHX}ga) z${uPzPbe1@a%jI_s1*2@;wzR delta 958 zcmV;v13~=8(E-NM0kBVGe=rI@J_>Vma%Ev{3V59DS8Z?GMhyObzk(lA4AH&mbW#xn z@JrMNZ3@Howqij)T&0^M)Yci2jCB8gq+~DlhO|Yn7AO!4CyGbj9Z5YTWeEZl7zG;A z1Pqv10Mgii1u0Vj8AzSrO(L}hq(X|*QiF^I@-ax0A%l-LMZE-Me`b+SK`DXC8PNn3 z9+Soj8PGx_)kIUcxL|zw*VY4{xs`7je^Zq$+|oV*=A=gC1LKpht2ZiAuD8Dm^`jo*Ta-FeM=v`Mb;tN(_p$5QWwY}nV0`RaPeR1d`w{+r zSymh0zVr9~@@C2SRb7O#s#m~oT+s^;GmPg|Fw=IEJJ*0#jK6hzMj6BS z?^W5|5h|4tpfzFg|GTWUUzAG><)cDl5{TndgVcUQvy=U0Cx6H^lZ?|!V$PLJ7{A7n zRTZOpwe}zo&z;}=Mh_FWeeJ8&U5B;RpkBUqtF{Ltoi-ka&j`SCV^TQReL)q34P_1< z9_H9*v!r&a0{ZT<>09Anh zI=^OggR{G?+qN$`zrVkaLhZ{?tlh^pD#C{MmEq*&oZ7Bb6dUYPI*Fq!&Mf9@WV1Ad zSjk9cIPnx8)DQIm<8Ng|6?Fe9RA$VR?AG7eZtA<(segP~xdEVLR)XQTnL07AM;AR&j;5a%hrQH&p1HPb7hykq+2_&DJ&vWznuGfE?kD}?Hw)?1~ z?4kDagcm{~hxYr0N`ZeVzEUbk^zDiMH|6yXsFS#7Y5_EpBWNp8%sUQ%Fbo4wyAb}+ zvT+M$xC{#tBUfbRQUxo^lVe!{kaNHS2#P=?KMPR`qrKi$Tn|sRXhbVI(TjoG; @@ -40,7 +40,7 @@ export class FileForgeClient { files: File[] | fs.ReadStream[], request: FileForge.GenerateRequest, requestOptions?: FileForgeClient.RequestOptions - ): Promise{ + ): Promise{ const _request = core.newFormData(); const options = await serializers.GenerateRequestOptions.jsonOrThrow(request.options, { unrecognizedObjectKeys: "passthrough", @@ -109,7 +109,7 @@ export class FileForgeClient { files: File[] | fs.ReadStream[], request: FileForge.MergeRequest, requestOptions?: FileForgeClient.RequestOptions - ): Promise { + ): Promise { const _request = core.newFormData(); const options = await serializers.GenerateRequestOptions.jsonOrThrow(request.options, { unrecognizedObjectKeys: "passthrough", diff --git a/tests/custom.test.ts b/tests/custom.test.ts index 4f6e732..1d97fa7 100644 --- a/tests/custom.test.ts +++ b/tests/custom.test.ts @@ -200,7 +200,7 @@ describe("test", () => { { options: {}, } - ); + ) as ResponseStream; // Write the PDF stream to a file const writeStream = fs.createWriteStream('output_merged.pdf');