@lokalise/harmony 2.1.0 → 2.1.1
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.
- package/dist/harmony.cjs +135 -135
- package/dist/harmony.mjs +79 -79
- package/dist/harmony102.cjs +1 -1
- package/dist/harmony102.mjs +1 -1
- package/dist/harmony103.cjs +7 -7
- package/dist/harmony103.mjs +7 -7
- package/dist/harmony105.cjs +2 -2
- package/dist/harmony105.mjs +2 -2
- package/dist/harmony106.cjs +13 -165
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +13 -165
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +159 -37
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +160 -38
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +42 -12
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +42 -12
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +3 -12
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +3 -12
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony11.cjs +55 -30
- package/dist/harmony11.cjs.map +1 -1
- package/dist/harmony11.mjs +55 -30
- package/dist/harmony11.mjs.map +1 -1
- package/dist/harmony110.cjs +18 -12
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +17 -11
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +76 -3
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +76 -3
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +11 -17
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +11 -17
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +34 -76
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +34 -76
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +9 -12
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +9 -12
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +47 -34
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +47 -34
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +10 -10
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +9 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +9 -45
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +11 -47
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +20 -8
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +20 -8
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +10 -9
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony12.cjs +30 -22
- package/dist/harmony12.cjs.map +1 -1
- package/dist/harmony12.mjs +30 -22
- package/dist/harmony12.mjs.map +1 -1
- package/dist/harmony120.cjs +11 -20
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -20
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +20 -7
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +20 -7
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +97 -15
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +81 -16
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +86 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +86 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +30 -8
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +30 -8
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +7 -15
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -15
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +17 -20
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +17 -20
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +7 -98
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +7 -81
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +7 -86
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +7 -86
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -30
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +15 -30
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +11 -52
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +11 -52
- package/dist/harmony13.mjs.map +1 -1
- package/dist/harmony131.cjs +2 -2
- package/dist/harmony131.mjs +2 -2
- package/dist/harmony132.cjs +2 -2
- package/dist/harmony132.mjs +2 -2
- package/dist/harmony133.cjs +3 -3
- package/dist/harmony133.mjs +3 -3
- package/dist/harmony134.cjs +1 -1
- package/dist/harmony134.mjs +1 -1
- package/dist/harmony135.cjs +3 -3
- package/dist/harmony135.mjs +3 -3
- package/dist/harmony136.cjs +2 -2
- package/dist/harmony136.mjs +2 -2
- package/dist/harmony137.cjs +3 -3
- package/dist/harmony137.mjs +3 -3
- package/dist/harmony138.cjs +2 -2
- package/dist/harmony138.mjs +2 -2
- package/dist/harmony139.cjs +2 -2
- package/dist/harmony139.mjs +2 -2
- package/dist/harmony14.cjs +55 -9
- package/dist/harmony14.cjs.map +1 -1
- package/dist/harmony14.mjs +55 -9
- package/dist/harmony14.mjs.map +1 -1
- package/dist/harmony140.cjs +4 -4
- package/dist/harmony140.mjs +4 -4
- package/dist/harmony142.cjs +1 -1
- package/dist/harmony142.mjs +1 -1
- package/dist/harmony145.cjs +6 -4
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +5 -3
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +6 -4
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +5 -3
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +10 -3
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +10 -3
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +3 -14
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +3 -14
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +3 -14
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +3 -14
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony15.cjs +30 -5
- package/dist/harmony15.cjs.map +1 -1
- package/dist/harmony15.mjs +30 -5
- package/dist/harmony15.mjs.map +1 -1
- package/dist/harmony150.cjs +3 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +3 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +15 -6
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +14 -5
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +15 -6
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +14 -5
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +3 -10
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +3 -10
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +10 -97
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +9 -96
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +7 -14
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +6 -13
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +10 -15
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +9 -14
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +25 -37
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +24 -36
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +7 -29
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +6 -28
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +12 -32
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +11 -31
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony16.cjs +18 -15
- package/dist/harmony16.cjs.map +1 -1
- package/dist/harmony16.mjs +18 -15
- package/dist/harmony16.mjs.map +1 -1
- package/dist/harmony160.cjs +3 -6
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +3 -6
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +97 -7
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +96 -6
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +14 -10
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +13 -9
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +15 -25
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +14 -24
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +37 -7
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +36 -6
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +29 -13
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +28 -12
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +32 -6
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +31 -5
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony17.cjs +28 -32
- package/dist/harmony17.cjs.map +1 -1
- package/dist/harmony17.mjs +28 -32
- package/dist/harmony17.mjs.map +1 -1
- package/dist/harmony18.cjs +14 -5
- package/dist/harmony18.cjs.map +1 -1
- package/dist/harmony18.mjs +14 -5
- package/dist/harmony18.mjs.map +1 -1
- package/dist/harmony19.cjs +13 -10
- package/dist/harmony19.cjs.map +1 -1
- package/dist/harmony19.mjs +13 -10
- package/dist/harmony19.mjs.map +1 -1
- package/dist/harmony20.cjs +13 -10
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +13 -10
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +13 -17
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +13 -17
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +13 -15
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +13 -15
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +12 -141
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +12 -141
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +22 -20
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +22 -20
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +13 -14
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +13 -14
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +12 -16
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +13 -17
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +15 -16
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +16 -17
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +15 -18
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +15 -18
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +15 -20
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +15 -20
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony30.cjs +15 -10
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +15 -10
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +15 -11
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +15 -11
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +16 -8
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +16 -8
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +16 -8
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +16 -8
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +16 -14
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +16 -14
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +16 -13
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +16 -13
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +16 -13
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +16 -13
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +14 -13
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +14 -13
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +16 -13
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +16 -13
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +16 -7
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +16 -7
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +17 -10
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +17 -10
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +14 -11
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +14 -11
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +14 -9
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +14 -9
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +124 -9
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +124 -9
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +82 -9
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +82 -9
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +6 -88
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +6 -88
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +25 -52
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +25 -52
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +23 -30
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +23 -30
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +141 -11
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +140 -10
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +32 -50
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +32 -50
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +5 -5
- package/dist/harmony5.mjs +5 -5
- package/dist/harmony50.cjs +26 -30
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +26 -30
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +4 -18
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +4 -18
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +81 -25
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +81 -25
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +57 -13
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +56 -12
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +18 -14
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +18 -14
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +30 -14
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +30 -14
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +22 -13
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +22 -13
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +52 -14
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +52 -14
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +9 -13
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +9 -13
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +5 -22
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +5 -22
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +1 -1
- package/dist/harmony6.mjs +2 -2
- package/dist/harmony60.cjs +14 -12
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +14 -12
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +31 -12
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +31 -12
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +5 -17
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +5 -17
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +10 -16
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +10 -16
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +11 -15
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +11 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +18 -15
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +18 -15
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +16 -15
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +16 -15
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +142 -17
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +142 -17
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +19 -16
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +19 -16
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +13 -16
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +13 -16
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +15 -15
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +16 -16
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +16 -15
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +17 -16
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +20 -15
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +20 -15
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +19 -16
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +19 -16
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +8 -15
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +8 -15
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +9 -16
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +9 -16
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +9 -14
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +9 -14
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +9 -14
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +9 -14
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +15 -124
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +15 -124
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +14 -82
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +14 -82
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +14 -6
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +14 -6
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +14 -28
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +14 -28
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +14 -24
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +14 -24
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +8 -141
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -141
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +11 -37
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +11 -37
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +11 -26
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +11 -26
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +9 -4
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -4
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +9 -84
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +9 -84
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +9 -58
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +9 -58
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +88 -18
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +88 -18
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony94.cjs +1 -1
- package/dist/harmony94.mjs +1 -1
- package/dist/harmony96.cjs +2 -2
- package/dist/harmony96.mjs +2 -2
- package/dist/harmony98.cjs +2 -2
- package/dist/harmony98.mjs +2 -2
- package/dist/harmony99.cjs +4 -4
- package/dist/harmony99.mjs +4 -4
- package/package.json +1 -1
package/dist/harmony20.cjs
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
const languages = require("./harmony12.cjs");
|
|
4
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
5
|
+
const reactQuery = require("@tanstack/react-query");
|
|
6
|
+
function useAddLanguagesToProjectMutation(wretchClient, params, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, languages.addLanguagesToProject, {
|
|
10
|
+
pathParams: params,
|
|
11
|
+
headers: await headers.resolve(),
|
|
12
|
+
body: variables
|
|
13
|
+
})
|
|
14
|
+
});
|
|
12
15
|
}
|
|
13
|
-
exports.
|
|
16
|
+
exports.useAddLanguagesToProjectMutation = useAddLanguagesToProjectMutation;
|
|
14
17
|
//# sourceMappingURL=harmony20.cjs.map
|
package/dist/harmony20.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony20.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony20.cjs","sources":["../src/features/publicApi/hooks/useAddLanguagesToProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addLanguagesToProject } from '@features/publicApi/languages'\nimport type {\n\tAddLanguagesToProjectPathParams,\n\tAddLanguagesToProjectRequestBody,\n\tAddLanguagesToProjectResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * A react-router wrapper about the addLanguagesToProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useAddLanguagesToProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: AddLanguagesToProjectPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tAddLanguagesToProjectResponse,\n\t\tAddLanguagesToProjectRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addLanguagesToProject, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","addLanguagesToProject"],"mappings":";;;;;AAqBO,SAAS,iCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,UAAAA,uBAAuB;AAAA,MACvD,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony20.mjs
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { addLanguagesToProject } from "./harmony12.mjs";
|
|
2
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
3
|
+
import { useMutation } from "@tanstack/react-query";
|
|
4
|
+
function useAddLanguagesToProjectMutation(wretchClient, params, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, addLanguagesToProject, {
|
|
8
|
+
pathParams: params,
|
|
9
|
+
headers: await headers.resolve(),
|
|
10
|
+
body: variables
|
|
11
|
+
})
|
|
12
|
+
});
|
|
10
13
|
}
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
useAddLanguagesToProjectMutation
|
|
13
16
|
};
|
|
14
17
|
//# sourceMappingURL=harmony20.mjs.map
|
package/dist/harmony20.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony20.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony20.mjs","sources":["../src/features/publicApi/hooks/useAddLanguagesToProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addLanguagesToProject } from '@features/publicApi/languages'\nimport type {\n\tAddLanguagesToProjectPathParams,\n\tAddLanguagesToProjectRequestBody,\n\tAddLanguagesToProjectResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * A react-router wrapper about the addLanguagesToProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useAddLanguagesToProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: AddLanguagesToProjectPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tAddLanguagesToProjectResponse,\n\t\tAddLanguagesToProjectRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addLanguagesToProject, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAqBO,SAAS,iCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,uBAAuB;AAAA,MACvD,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony21.cjs
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
const languages = require("./harmony12.cjs");
|
|
4
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
5
|
+
const reactQuery = require("@tanstack/react-query");
|
|
6
|
+
function useBulkUpdateProjectLanguagesMutation(wretchClient, params, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, languages.bulkUpdateProjectLanguages, {
|
|
10
|
+
pathParams: params,
|
|
11
|
+
headers: await headers.resolve(),
|
|
12
|
+
body: variables
|
|
13
|
+
})
|
|
14
|
+
});
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
return getCookie(document.cookie, "csrf_token") ?? null;
|
|
13
|
-
}
|
|
14
|
-
function getCookie(cookies, name) {
|
|
15
|
-
var _a, _b;
|
|
16
|
-
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
|
17
|
-
}
|
|
18
|
-
exports.getCookie = getCookie;
|
|
19
|
-
exports.getCsrfTokenFromCookie = getCsrfTokenFromCookie;
|
|
20
|
-
exports.getJwtTokenFromCookie = getJwtTokenFromCookie;
|
|
16
|
+
exports.useBulkUpdateProjectLanguagesMutation = useBulkUpdateProjectLanguagesMutation;
|
|
21
17
|
//# sourceMappingURL=harmony21.cjs.map
|
package/dist/harmony21.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony21.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony21.cjs","sources":["../src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { bulkUpdateProjectLanguages } from '@features/publicApi/languages'\nimport type {\n\tBulkUpdateProjectLanguagesPathParams,\n\tBulkUpdateProjectLanguagesRequestBody,\n\tBulkUpdateProjectLanguagesResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * A react-router wrapper about the bulkUpdateProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useBulkUpdateProjectLanguagesMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: BulkUpdateProjectLanguagesPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tBulkUpdateProjectLanguagesResponse,\n\t\tBulkUpdateProjectLanguagesRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","bulkUpdateProjectLanguages"],"mappings":";;;;;AAqBO,SAAS,sCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,UAAAA,4BAA4B;AAAA,MAC5D,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony21.mjs
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
var _a, _b;
|
|
14
|
-
return (_b = (_a = cookies.split(";").find((cookie) => cookie.trim().startsWith(`${name}=`))) == null ? void 0 : _a.trim()) == null ? void 0 : _b.substring(name.length + 1);
|
|
1
|
+
import { bulkUpdateProjectLanguages } from "./harmony12.mjs";
|
|
2
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
3
|
+
import { useMutation } from "@tanstack/react-query";
|
|
4
|
+
function useBulkUpdateProjectLanguagesMutation(wretchClient, params, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {
|
|
8
|
+
pathParams: params,
|
|
9
|
+
headers: await headers.resolve(),
|
|
10
|
+
body: variables
|
|
11
|
+
})
|
|
12
|
+
});
|
|
15
13
|
}
|
|
16
14
|
export {
|
|
17
|
-
|
|
18
|
-
getCsrfTokenFromCookie,
|
|
19
|
-
getJwtTokenFromCookie
|
|
15
|
+
useBulkUpdateProjectLanguagesMutation
|
|
20
16
|
};
|
|
21
17
|
//# sourceMappingURL=harmony21.mjs.map
|
package/dist/harmony21.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony21.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony21.mjs","sources":["../src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { bulkUpdateProjectLanguages } from '@features/publicApi/languages'\nimport type {\n\tBulkUpdateProjectLanguagesPathParams,\n\tBulkUpdateProjectLanguagesRequestBody,\n\tBulkUpdateProjectLanguagesResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * A react-router wrapper about the bulkUpdateProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useBulkUpdateProjectLanguagesMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: BulkUpdateProjectLanguagesPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tBulkUpdateProjectLanguagesResponse,\n\t\tBulkUpdateProjectLanguagesRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAqBO,SAAS,sCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,4BAA4B;AAAA,MAC5D,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony22.cjs
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const score = require("./harmony15.cjs");
|
|
6
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => frontendHttpClient.sendByPayloadRoute(wretchClient, score.createScore, {
|
|
10
|
+
headers: await headers.resolve(),
|
|
11
|
+
pathParams: { projectId, keyId, languageId },
|
|
12
|
+
body: { segmentId, sourceLanguageId }
|
|
13
|
+
})
|
|
14
|
+
});
|
|
6
15
|
}
|
|
7
|
-
|
|
8
|
-
constructor(middleware) {
|
|
9
|
-
this.middleware = middleware;
|
|
10
|
-
}
|
|
11
|
-
apply(base) {
|
|
12
|
-
return base.from(async () => {
|
|
13
|
-
const middlewareBuilder = this.middleware(headerBuilder.HeaderBuilder.create());
|
|
14
|
-
return middlewareBuilder instanceof Promise ? middlewareBuilder.then((r) => r.resolve()) : middlewareBuilder.resolve();
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.createHeaderBuilderMiddleware = createHeaderBuilderMiddleware;
|
|
16
|
+
exports.useCreateScoreMutation = useCreateScoreMutation;
|
|
19
17
|
//# sourceMappingURL=harmony22.cjs.map
|
package/dist/harmony22.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony22.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony22.cjs","sources":["../src/features/publicApi/hooks/useCreateScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createScore } from '../score'\nimport type {\n\tCreateScoreRequestBody,\n\tCreateScoreResponseBody,\n\tScoreRequestQuery,\n} from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tCreateScoreResponseBody,\n\t\tCreateScoreRequestBody & ScoreRequestQuery\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) =>\n\t\t\tsendByPayloadRoute(wretchClient, createScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId, keyId, languageId },\n\t\t\t\tbody: { segmentId, sourceLanguageId },\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","createScore"],"mappings":";;;;;AAoBO,SAAS,uBACf,cACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,EAAE,WAAW,kBAAkB,WAAW,OAAO,iBACnEC,mBAAAA,mBAAmB,cAAcC,mBAAa;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,WAAW,OAAO,WAAW;AAAA,MAC3C,MAAM,EAAE,WAAW,iBAAiB;AAAA,IACpC,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony22.mjs
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
});
|
|
14
|
-
}
|
|
1
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
import { createScore } from "./harmony15.mjs";
|
|
4
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => sendByPayloadRoute(wretchClient, createScore, {
|
|
8
|
+
headers: await headers.resolve(),
|
|
9
|
+
pathParams: { projectId, keyId, languageId },
|
|
10
|
+
body: { segmentId, sourceLanguageId }
|
|
11
|
+
})
|
|
12
|
+
});
|
|
15
13
|
}
|
|
16
14
|
export {
|
|
17
|
-
|
|
15
|
+
useCreateScoreMutation
|
|
18
16
|
};
|
|
19
17
|
//# sourceMappingURL=harmony22.mjs.map
|
package/dist/harmony22.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony22.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony22.mjs","sources":["../src/features/publicApi/hooks/useCreateScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createScore } from '../score'\nimport type {\n\tCreateScoreRequestBody,\n\tCreateScoreResponseBody,\n\tScoreRequestQuery,\n} from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tCreateScoreResponseBody,\n\t\tCreateScoreRequestBody & ScoreRequestQuery\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) =>\n\t\t\tsendByPayloadRoute(wretchClient, createScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId, keyId, languageId },\n\t\t\t\tbody: { segmentId, sourceLanguageId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAoBO,SAAS,uBACf,cACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,EAAE,WAAW,kBAAkB,WAAW,OAAO,iBACnE,mBAAmB,cAAc,aAAa;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,WAAW,OAAO,WAAW;AAAA,MAC3C,MAAM,EAAE,WAAW,iBAAiB;AAAA,IACpC,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony23.cjs
CHANGED
|
@@ -1,145 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
static create(initialHeaders = {}) {
|
|
15
|
-
return new HeaderBuilder([() => initialHeaders]);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Adds a single header to the builder by providing a key and a value.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const builder = HeaderBuilder.create()
|
|
23
|
-
* .add('Content-Type', 'application/json')
|
|
24
|
-
* .add('authorization', 'Bearer token')
|
|
25
|
-
*
|
|
26
|
-
* const headers = await builder.resolve()
|
|
27
|
-
* console.log(headers)
|
|
28
|
-
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @param key - The key of the header
|
|
32
|
-
* @param value - The value of the header
|
|
33
|
-
*/
|
|
34
|
-
add(key, value) {
|
|
35
|
-
return new HeaderBuilder([...this.factories, () => ({ [key]: value })]);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Adds multiple headers to the builder by providing an object or a promise of an object with the headers.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```typescript
|
|
42
|
-
* const builder = HeaderBuilder.create()
|
|
43
|
-
* .and({ 'Content-Type': 'application/json', 'authorization': 'Bearer token' })
|
|
44
|
-
* .and(Promise.resolve({ 'X-Custom-Header': 'custom', 'X-Another-Header': 'another' }))
|
|
45
|
-
*
|
|
46
|
-
* const headers = await builder.resolve()
|
|
47
|
-
* console.log(headers)
|
|
48
|
-
* // Prints: {
|
|
49
|
-
* // 'Content-Type': 'application/json',
|
|
50
|
-
* // 'authorization': 'Bearer token',
|
|
51
|
-
* // 'X-Custom-Header': 'custom',
|
|
52
|
-
* // 'X-Another-Header': 'another'
|
|
53
|
-
* // }
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @param extension - An object with the headers to add
|
|
57
|
-
*/
|
|
58
|
-
and(extension) {
|
|
59
|
-
return new HeaderBuilder([...this.factories, () => extension]);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Adds a factory function that returns a promise of headers to the builder.
|
|
63
|
-
* This is useful when you need to fetch some data asynchronously to build the headers.
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```typescript
|
|
67
|
-
* const builder = HeaderBuilder.create()
|
|
68
|
-
* .from(async () => {
|
|
69
|
-
* const token = await fetchToken()
|
|
70
|
-
* return { 'authorization': `Bearer ${token}` }
|
|
71
|
-
* })
|
|
72
|
-
*
|
|
73
|
-
* const headers = await builder.resolve()
|
|
74
|
-
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* @param factory - A function that returns a promise of headers
|
|
78
|
-
*/
|
|
79
|
-
from(factory) {
|
|
80
|
-
return new HeaderBuilder([...this.factories, factory]);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Takes a middleware function that receives the current builder and returns a new, modified, builder.
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
|
|
88
|
-
* const token = await fetchToken()
|
|
89
|
-
* return builder.add('authorization', `Bearer ${token}`)
|
|
90
|
-
* })
|
|
91
|
-
*
|
|
92
|
-
* const builder = HeaderBuilder.create()
|
|
93
|
-
* .with(authMiddleware)
|
|
94
|
-
*
|
|
95
|
-
* const headers = await builder.resolve() // Type of headers is { 'authorization': string }
|
|
96
|
-
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @param middleware
|
|
100
|
-
*/
|
|
101
|
-
with(middleware) {
|
|
102
|
-
return middleware.apply(this);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Merges the current builder with another builder.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```typescript
|
|
109
|
-
* const builderA = HeaderBuilder.create()
|
|
110
|
-
* .add('Content-Type', 'application/json')
|
|
111
|
-
*
|
|
112
|
-
* const builderB = HeaderBuilder.create()
|
|
113
|
-
* .add('authorization', 'Bearer token')
|
|
114
|
-
*
|
|
115
|
-
* const mergedBuilder = builderA.merge(builderB)
|
|
116
|
-
*
|
|
117
|
-
* const headers = await mergedBuilder.resolve()
|
|
118
|
-
* console.log(headers)
|
|
119
|
-
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
|
120
|
-
* ```
|
|
121
|
-
*
|
|
122
|
-
* @param builder - The builder to merge with
|
|
123
|
-
*/
|
|
124
|
-
merge(builder) {
|
|
125
|
-
return new HeaderBuilder([...this.factories, ...builder.factories]);
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Resolves the headers by waiting for all the promises to resolve and merging them together.
|
|
129
|
-
*
|
|
130
|
-
* @example
|
|
131
|
-
* ```typescript
|
|
132
|
-
* const builder = HeaderBuilder.create()
|
|
133
|
-
* .add('Content-Type', 'application/json')
|
|
134
|
-
*
|
|
135
|
-
* const headers = await builder.resolve()
|
|
136
|
-
* console.log(headers) // { 'Content-Type': 'application/json' }
|
|
137
|
-
*/
|
|
138
|
-
async resolve() {
|
|
139
|
-
const headers = this.factories.map((header) => header());
|
|
140
|
-
const resolvedHeaders = await Promise.all(headers);
|
|
141
|
-
return Object.assign({}, ...resolvedHeaders);
|
|
142
|
-
}
|
|
3
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const projects = require("./harmony14.cjs");
|
|
6
|
+
function useCreateProjectMutation(wretchClient, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, projects.createProject, {
|
|
10
|
+
headers: await headers.resolve(),
|
|
11
|
+
body: variables
|
|
12
|
+
})
|
|
13
|
+
});
|
|
143
14
|
}
|
|
144
|
-
exports.
|
|
15
|
+
exports.useCreateProjectMutation = useCreateProjectMutation;
|
|
145
16
|
//# sourceMappingURL=harmony23.cjs.map
|
package/dist/harmony23.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony23.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony23.cjs","sources":["../src/features/publicApi/hooks/useCreateProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createProject } from '../projects'\nimport type {\n\tCreateProjectRequestBody,\n\tProject,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiMutationOverrides<Project, CreateProjectRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, createProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","createProject"],"mappings":";;;;;AAmBO,SAAS,yBACf,cACA,SACA,YAAqE,CAAA,GACpE;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,SAAAA,eAAe;AAAA,MAC/C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|