@lokalise/harmony 2.1.1 → 2.1.2
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/harmony106.cjs +1 -1
- package/dist/harmony106.mjs +1 -1
- package/dist/harmony107.cjs +2 -2
- package/dist/harmony107.mjs +2 -2
- package/dist/harmony108.cjs +2 -2
- package/dist/harmony108.mjs +2 -2
- package/dist/harmony109.cjs +11 -3
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -3
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony11.cjs +30 -55
- package/dist/harmony11.cjs.map +1 -1
- package/dist/harmony11.mjs +30 -55
- package/dist/harmony11.mjs.map +1 -1
- package/dist/harmony110.cjs +21 -18
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +20 -17
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +3 -76
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +3 -76
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +17 -11
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +17 -11
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +76 -34
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +76 -34
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +12 -9
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +12 -9
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +34 -47
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +34 -47
- 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 +45 -9
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +47 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +8 -20
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +8 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony12.cjs +22 -30
- package/dist/harmony12.cjs.map +1 -1
- package/dist/harmony12.mjs +22 -30
- package/dist/harmony12.mjs.map +1 -1
- package/dist/harmony121.cjs +1 -1
- package/dist/harmony121.mjs +1 -1
- package/dist/harmony122.cjs +6 -98
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +7 -82
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +16 -86
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +16 -86
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +8 -30
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +8 -30
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +8 -7
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +8 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +14 -16
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +14 -16
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +86 -7
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +86 -7
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +30 -8
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +30 -8
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +98 -14
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +81 -14
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +52 -11
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +52 -11
- 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 +2 -2
- package/dist/harmony133.mjs +2 -2
- package/dist/harmony135.cjs +2 -2
- package/dist/harmony135.mjs +2 -2
- package/dist/harmony136.cjs +2 -2
- package/dist/harmony136.mjs +2 -2
- package/dist/harmony137.cjs +2 -2
- package/dist/harmony137.mjs +2 -2
- package/dist/harmony138.cjs +2 -2
- package/dist/harmony138.mjs +2 -2
- package/dist/harmony139.cjs +1 -1
- package/dist/harmony139.mjs +1 -1
- package/dist/harmony14.cjs +9 -55
- package/dist/harmony14.cjs.map +1 -1
- package/dist/harmony14.mjs +9 -55
- package/dist/harmony14.mjs.map +1 -1
- package/dist/harmony140.cjs +3 -3
- package/dist/harmony140.mjs +3 -3
- package/dist/harmony145.cjs +4 -6
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +3 -5
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +4 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +3 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +3 -10
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +3 -10
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +14 -3
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +14 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +14 -3
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +14 -3
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony15.cjs +5 -30
- package/dist/harmony15.cjs.map +1 -1
- package/dist/harmony15.mjs +5 -30
- 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 +6 -15
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +5 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +6 -15
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +5 -14
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +10 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +10 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony16.cjs +15 -18
- package/dist/harmony16.cjs.map +1 -1
- package/dist/harmony16.mjs +15 -18
- package/dist/harmony16.mjs.map +1 -1
- package/dist/harmony161.cjs +31 -95
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +31 -95
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +94 -11
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +94 -11
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +12 -13
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +12 -13
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +13 -35
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +13 -35
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +32 -24
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +32 -24
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +27 -31
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +27 -31
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony17.cjs +32 -28
- package/dist/harmony17.cjs.map +1 -1
- package/dist/harmony17.mjs +32 -28
- package/dist/harmony17.mjs.map +1 -1
- package/dist/harmony18.cjs +5 -14
- package/dist/harmony18.cjs.map +1 -1
- package/dist/harmony18.mjs +5 -14
- package/dist/harmony18.mjs.map +1 -1
- package/dist/harmony19.cjs +10 -13
- package/dist/harmony19.cjs.map +1 -1
- package/dist/harmony19.mjs +10 -13
- package/dist/harmony19.mjs.map +1 -1
- package/dist/harmony20.cjs +10 -13
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +10 -13
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +17 -13
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +17 -13
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +15 -13
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +15 -13
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +141 -12
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +141 -12
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +20 -22
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +20 -22
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +14 -13
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +14 -13
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +16 -12
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +17 -13
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +16 -15
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +17 -16
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +18 -15
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +18 -15
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +20 -15
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +20 -15
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony30.cjs +10 -15
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +10 -15
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +11 -15
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +11 -15
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +8 -16
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +8 -16
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +8 -16
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +8 -16
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +14 -16
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +14 -16
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +13 -16
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +13 -16
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +13 -16
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +13 -16
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +13 -14
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +13 -14
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +13 -16
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +13 -16
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +7 -16
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +7 -16
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +10 -17
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +10 -17
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +11 -14
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +11 -14
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +9 -14
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +9 -14
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +9 -124
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +9 -124
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +9 -82
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +9 -82
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +88 -6
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +88 -6
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +52 -25
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +52 -25
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +30 -23
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +30 -23
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +11 -141
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +10 -140
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +50 -32
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +50 -32
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +5 -5
- package/dist/harmony5.mjs +5 -5
- package/dist/harmony50.cjs +30 -26
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +30 -26
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +18 -4
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +18 -4
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +25 -81
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +25 -81
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +13 -57
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +12 -56
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +14 -18
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +14 -18
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +14 -30
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +14 -30
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +13 -22
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +13 -22
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +14 -52
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +14 -52
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +13 -9
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +13 -9
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +22 -5
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +22 -5
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +1 -1
- package/dist/harmony6.mjs +2 -2
- package/dist/harmony60.cjs +12 -14
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +12 -14
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +12 -31
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +12 -31
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +17 -5
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +17 -5
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +16 -10
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +16 -10
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +15 -11
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +15 -11
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +15 -18
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +15 -18
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +15 -16
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +15 -16
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +17 -142
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +17 -142
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +16 -19
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +16 -19
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +16 -13
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +16 -13
- 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 +15 -16
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +16 -17
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +15 -20
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +15 -20
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +16 -19
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +16 -19
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +15 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +15 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +16 -9
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +16 -9
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +14 -9
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +14 -9
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +14 -9
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +14 -9
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +124 -15
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +124 -15
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +82 -14
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +82 -14
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +6 -14
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +6 -14
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +28 -14
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +28 -14
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +24 -14
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +24 -14
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +141 -8
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +141 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +37 -11
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +37 -11
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +26 -11
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +26 -11
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +4 -9
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +4 -9
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +84 -9
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +84 -9
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +47 -9
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +47 -9
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +18 -88
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +18 -88
- 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/harmony99.cjs +4 -4
- package/dist/harmony99.mjs +4 -4
- package/dist/types/src/features/publicApi/teamUsers.d.ts +5 -19
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +8 -32
- package/package.json +1 -1
package/dist/harmony43.mjs
CHANGED
|
@@ -1,127 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
z.literal(0),
|
|
10
|
-
z.literal(1),
|
|
11
|
-
z.boolean()
|
|
12
|
-
// (╥﹏╥) this is a workaround for the API returning boolean instead of 0/1, as the API spec says
|
|
13
|
-
])
|
|
14
|
-
});
|
|
15
|
-
const CONTRIBUTOR_SCHEMA = z.object({
|
|
16
|
-
user_id: z.number(),
|
|
17
|
-
email: z.string().email(),
|
|
18
|
-
fullname: z.string(),
|
|
19
|
-
avatar_url: z.string(),
|
|
20
|
-
created_at: z.string(),
|
|
21
|
-
created_at_timestamp: z.number(),
|
|
22
|
-
languages: z.array(CONTRIBUTOR_LANGUAGE_SCHEMA),
|
|
23
|
-
admin_rights: z.array(z.string()),
|
|
24
|
-
permissions: z.array(z.string()),
|
|
25
|
-
role_id: z.number().nullable(),
|
|
26
|
-
is_owner: z.boolean(),
|
|
27
|
-
is_admin: z.boolean(),
|
|
28
|
-
is_reviewer: z.boolean(),
|
|
29
|
-
is_pending: z.boolean(),
|
|
30
|
-
is_reinvited: z.boolean()
|
|
31
|
-
});
|
|
32
|
-
const BY_PROJECT_ID = z.object({ id: z.string() });
|
|
33
|
-
const BY_CONTRIBUTOR_ID = z.object({ id: z.number() });
|
|
34
|
-
const BY_UUID = z.object({ uuid: z.string().uuid() });
|
|
35
|
-
const PROJECT_TARGET_SCHEMA = z.union([BY_UUID, BY_PROJECT_ID]);
|
|
36
|
-
const CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA = z.union([
|
|
37
|
-
z.object({ authenticatedUser: z.literal(true) }),
|
|
38
|
-
BY_UUID,
|
|
39
|
-
BY_CONTRIBUTOR_ID
|
|
40
|
-
]);
|
|
41
|
-
const LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA = z.object({
|
|
42
|
-
project: PROJECT_TARGET_SCHEMA
|
|
43
|
-
});
|
|
44
|
-
const LIST_CONTRIBUTORS_RESPONSE_SCHEMA = z.object({
|
|
45
|
-
project_id: z.string(),
|
|
46
|
-
contributors: z.array(CONTRIBUTOR_SCHEMA)
|
|
47
|
-
});
|
|
48
|
-
const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = z.object({
|
|
49
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
50
|
-
contributor: CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA
|
|
51
|
-
});
|
|
52
|
-
const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA = z.object({
|
|
53
|
-
project_id: z.string(),
|
|
54
|
-
contributor: CONTRIBUTOR_SCHEMA
|
|
55
|
-
});
|
|
56
|
-
const ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA = z.object({
|
|
57
|
-
project: PROJECT_TARGET_SCHEMA
|
|
58
|
-
});
|
|
59
|
-
const ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA = z.object({
|
|
60
|
-
contributors: z.array(
|
|
61
|
-
z.object({
|
|
62
|
-
email: z.string().email(),
|
|
63
|
-
fullname: z.string().optional(),
|
|
64
|
-
is_admin: z.boolean().optional(),
|
|
65
|
-
is_reviewer: z.boolean().optional(),
|
|
66
|
-
role_id: z.number().optional(),
|
|
67
|
-
admin_rights: z.array(z.string()).optional(),
|
|
68
|
-
languages: z.array(
|
|
69
|
-
z.object({
|
|
70
|
-
lang_iso: z.string(),
|
|
71
|
-
is_writable: z.boolean().optional()
|
|
72
|
-
})
|
|
73
|
-
)
|
|
74
|
-
})
|
|
75
|
-
)
|
|
76
|
-
});
|
|
77
|
-
const ADD_CONTRIBUTORS_RESPONSE_SCHEMA = z.object({
|
|
78
|
-
project_id: z.string(),
|
|
79
|
-
project_uuid: z.string(),
|
|
80
|
-
contributors: z.array(CONTRIBUTOR_SCHEMA)
|
|
81
|
-
});
|
|
82
|
-
const UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA = z.object({
|
|
83
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
84
|
-
contributorId: z.string()
|
|
85
|
-
});
|
|
86
|
-
const UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA = z.object({
|
|
87
|
-
is_admin: z.boolean().optional(),
|
|
88
|
-
is_reviewer: z.boolean().optional(),
|
|
89
|
-
role_id: z.number().optional(),
|
|
90
|
-
admin_rights: z.array(z.string()).optional(),
|
|
91
|
-
languages: z.array(
|
|
92
|
-
z.object({
|
|
93
|
-
lang_iso: z.string(),
|
|
94
|
-
is_writable: z.boolean().optional()
|
|
95
|
-
})
|
|
96
|
-
)
|
|
97
|
-
});
|
|
98
|
-
const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA = z.object({
|
|
99
|
-
project_id: z.string(),
|
|
100
|
-
contributor: CONTRIBUTOR_SCHEMA
|
|
101
|
-
});
|
|
102
|
-
const DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = z.object({
|
|
103
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
104
|
-
contributor: z.union([BY_UUID, BY_CONTRIBUTOR_ID])
|
|
105
|
-
});
|
|
106
|
-
const DELETE_CONTRIBUTOR_RESPONSE_SCHEMA = z.object({
|
|
107
|
-
project_id: z.string(),
|
|
108
|
-
contributor_deleted: z.boolean()
|
|
109
|
-
});
|
|
1
|
+
import { useActionResolverPayload } from "./harmony123.mjs";
|
|
2
|
+
import { has } from "./harmony125.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
const useHasAllFeatureFlags = (...features) => {
|
|
5
|
+
const { enabledFeatureFlags } = useActionResolverPayload();
|
|
6
|
+
const key = features.join("");
|
|
7
|
+
return useMemo(() => has(enabledFeatureFlags, ...features), [key, enabledFeatureFlags]);
|
|
8
|
+
};
|
|
110
9
|
export {
|
|
111
|
-
|
|
112
|
-
ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA,
|
|
113
|
-
ADD_CONTRIBUTORS_RESPONSE_SCHEMA,
|
|
114
|
-
CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
|
|
115
|
-
CONTRIBUTOR_LANGUAGE_SCHEMA,
|
|
116
|
-
CONTRIBUTOR_SCHEMA,
|
|
117
|
-
DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
|
|
118
|
-
DELETE_CONTRIBUTOR_RESPONSE_SCHEMA,
|
|
119
|
-
LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA,
|
|
120
|
-
LIST_CONTRIBUTORS_RESPONSE_SCHEMA,
|
|
121
|
-
RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
|
|
122
|
-
RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
|
|
123
|
-
UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA,
|
|
124
|
-
UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA,
|
|
125
|
-
UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA
|
|
10
|
+
useHasAllFeatureFlags
|
|
126
11
|
};
|
|
127
12
|
//# sourceMappingURL=harmony43.mjs.map
|
package/dist/harmony43.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony43.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony43.mjs","sources":["../src/features/permissions/hooks/useHasAllFeatureFlags.ts"],"sourcesContent":["import { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport type { FeatureFlag } from '@features/permissions/types'\nimport { has } from '@features/permissions/utils/has'\nimport { useMemo } from 'react'\n\nexport const useHasAllFeatureFlags = (...features: FeatureFlag[]) => {\n\tconst { enabledFeatureFlags } = useActionResolverPayload()\n\tconst key = features.join('')\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Using key as spreading parameters will create a new array on every render.\n\treturn useMemo(() => has(enabledFeatureFlags, ...features), [key, enabledFeatureFlags])\n}\n"],"names":[],"mappings":";;;AAKa,MAAA,wBAAwB,IAAI,aAA4B;AAC9D,QAAA,EAAE,oBAAoB,IAAI,yBAAyB;AACnD,QAAA,MAAM,SAAS,KAAK,EAAE;AAGrB,SAAA,QAAQ,MAAM,IAAI,qBAAqB,GAAG,QAAQ,GAAG,CAAC,KAAK,mBAAmB,CAAC;AACvF;"}
|
package/dist/harmony44.cjs
CHANGED
|
@@ -1,85 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
words_to_do: zod.z.number(),
|
|
13
|
-
project_language_id: zod.z.number(),
|
|
14
|
-
project_language_uuid: zod.z.string().uuid()
|
|
15
|
-
});
|
|
16
|
-
const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
17
|
-
projectId: zod.z.string()
|
|
18
|
-
});
|
|
19
|
-
const LANGUAGE_SCHEMA = zod.z.object({
|
|
20
|
-
lang_id: zod.z.number(),
|
|
21
|
-
lang_iso: zod.z.string(),
|
|
22
|
-
lang_name: zod.z.string(),
|
|
23
|
-
is_rtl: zod.z.boolean(),
|
|
24
|
-
plural_forms: zod.z.array(zod.z.string().optional()),
|
|
25
|
-
project_language_id: zod.z.string(),
|
|
26
|
-
project_language_uuid: zod.z.string().uuid()
|
|
27
|
-
});
|
|
28
|
-
const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = zod.z.object({
|
|
29
|
-
project_id: zod.z.string(),
|
|
30
|
-
project_uuid: zod.z.string().uuid(),
|
|
31
|
-
languages: zod.z.array(LANGUAGE_SCHEMA)
|
|
32
|
-
});
|
|
33
|
-
const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
34
|
-
projectId: zod.z.string()
|
|
35
|
-
});
|
|
36
|
-
const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = zod.z.object({
|
|
37
|
-
languages: zod.z.array(
|
|
38
|
-
zod.z.object({
|
|
39
|
-
lang_iso: zod.z.string(),
|
|
40
|
-
custom_iso: zod.z.string().optional(),
|
|
41
|
-
custom_name: zod.z.string().optional(),
|
|
42
|
-
custom_plural_forms: zod.z.array(zod.z.string()).optional()
|
|
43
|
-
})
|
|
44
|
-
)
|
|
45
|
-
});
|
|
46
|
-
const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = zod.z.object({
|
|
47
|
-
project_id: zod.z.string(),
|
|
48
|
-
project_uuid: zod.z.string().uuid(),
|
|
49
|
-
languages: zod.z.array(
|
|
50
|
-
LANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true })
|
|
51
|
-
),
|
|
52
|
-
errors: zod.z.array(
|
|
53
|
-
zod.z.object({
|
|
54
|
-
message: zod.z.string(),
|
|
55
|
-
code: zod.z.number(),
|
|
56
|
-
lang_iso: zod.z.string()
|
|
57
|
-
})
|
|
58
|
-
).optional()
|
|
59
|
-
});
|
|
60
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
61
|
-
projectId: zod.z.string()
|
|
62
|
-
});
|
|
63
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA = zod.z.object({
|
|
64
|
-
langs: zod.z.array(
|
|
65
|
-
zod.z.object({
|
|
66
|
-
lang_iso: zod.z.string(),
|
|
67
|
-
base_lang: zod.z.boolean()
|
|
68
|
-
})
|
|
69
|
-
)
|
|
70
|
-
});
|
|
71
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA = zod.z.object({
|
|
72
|
-
result: zod.z.boolean()
|
|
73
|
-
});
|
|
74
|
-
exports.ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA;
|
|
75
|
-
exports.ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA;
|
|
76
|
-
exports.ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA;
|
|
77
|
-
exports.BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA;
|
|
78
|
-
exports.BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA = BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA;
|
|
79
|
-
exports.BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA = BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA;
|
|
80
|
-
exports.LANGUAGE_ISO_SCHEMA = LANGUAGE_ISO_SCHEMA;
|
|
81
|
-
exports.LANGUAGE_SCHEMA = LANGUAGE_SCHEMA;
|
|
82
|
-
exports.LANGUAGE_STATISTICS_SCHEMA = LANGUAGE_STATISTICS_SCHEMA;
|
|
83
|
-
exports.LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA;
|
|
84
|
-
exports.LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA;
|
|
3
|
+
const action = require("./harmony126.cjs");
|
|
4
|
+
function canPerformAction(action$1, payload) {
|
|
5
|
+
const resolver = action.actionResolvers[action$1];
|
|
6
|
+
if (!resolver) {
|
|
7
|
+
throw new Error(`Action resolver for "${action$1}" not found`);
|
|
8
|
+
}
|
|
9
|
+
return resolver(payload);
|
|
10
|
+
}
|
|
11
|
+
exports.canPerformAction = canPerformAction;
|
|
85
12
|
//# sourceMappingURL=harmony44.cjs.map
|
package/dist/harmony44.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony44.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony44.cjs","sources":["../src/features/permissions/utils/canPerformAction.ts"],"sourcesContent":["import { type Action, actionResolvers } from '../action'\nimport type { ActionResolverPayload } from '../types'\n\n/**\n * Checks if the user can perform a specific action given the current permissions context and payload.\n *\n * This utility function is used internally by hooks and guards to determine\n * if a user is authorized to perform a particular action.\n *\n * @param action The action to check permission for.\n * @param payload The action resolver payload, typically containing the user's permissions, roles, and other relevant context.\n * @returns {boolean} True if the user can perform the action, otherwise false.\n *\n * @example\n * const allowed = canPerformAction(\"edit_project\", payload);\n * if (allowed) {\n * // perform edit\n * }\n */\nexport function canPerformAction(action: Action, payload: ActionResolverPayload): boolean {\n\tconst resolver = actionResolvers[action]\n\n\tif (!resolver) {\n\t\tthrow new Error(`Action resolver for \"${action}\" not found`)\n\t}\n\n\treturn resolver(payload)\n}\n"],"names":["action","actionResolvers"],"mappings":";;;AAmBgB,SAAA,iBAAiBA,UAAgB,SAAyC;AACnF,QAAA,WAAWC,uBAAgBD,QAAM;AAEvC,MAAI,CAAC,UAAU;AACd,UAAM,IAAI,MAAM,wBAAwBA,QAAM,aAAa;AAAA,EAAA;AAG5D,SAAO,SAAS,OAAO;AACxB;;"}
|
package/dist/harmony44.mjs
CHANGED
|
@@ -1,85 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
progress: z.number(),
|
|
10
|
-
words_to_do: z.number(),
|
|
11
|
-
project_language_id: z.number(),
|
|
12
|
-
project_language_uuid: z.string().uuid()
|
|
13
|
-
});
|
|
14
|
-
const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({
|
|
15
|
-
projectId: z.string()
|
|
16
|
-
});
|
|
17
|
-
const LANGUAGE_SCHEMA = z.object({
|
|
18
|
-
lang_id: z.number(),
|
|
19
|
-
lang_iso: z.string(),
|
|
20
|
-
lang_name: z.string(),
|
|
21
|
-
is_rtl: z.boolean(),
|
|
22
|
-
plural_forms: z.array(z.string().optional()),
|
|
23
|
-
project_language_id: z.string(),
|
|
24
|
-
project_language_uuid: z.string().uuid()
|
|
25
|
-
});
|
|
26
|
-
const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({
|
|
27
|
-
project_id: z.string(),
|
|
28
|
-
project_uuid: z.string().uuid(),
|
|
29
|
-
languages: z.array(LANGUAGE_SCHEMA)
|
|
30
|
-
});
|
|
31
|
-
const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA = z.object({
|
|
32
|
-
projectId: z.string()
|
|
33
|
-
});
|
|
34
|
-
const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA = z.object({
|
|
35
|
-
languages: z.array(
|
|
36
|
-
z.object({
|
|
37
|
-
lang_iso: z.string(),
|
|
38
|
-
custom_iso: z.string().optional(),
|
|
39
|
-
custom_name: z.string().optional(),
|
|
40
|
-
custom_plural_forms: z.array(z.string()).optional()
|
|
41
|
-
})
|
|
42
|
-
)
|
|
43
|
-
});
|
|
44
|
-
const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA = z.object({
|
|
45
|
-
project_id: z.string(),
|
|
46
|
-
project_uuid: z.string().uuid(),
|
|
47
|
-
languages: z.array(
|
|
48
|
-
LANGUAGE_SCHEMA.partial({ project_language_id: true, project_language_uuid: true })
|
|
49
|
-
),
|
|
50
|
-
errors: z.array(
|
|
51
|
-
z.object({
|
|
52
|
-
message: z.string(),
|
|
53
|
-
code: z.number(),
|
|
54
|
-
lang_iso: z.string()
|
|
55
|
-
})
|
|
56
|
-
).optional()
|
|
57
|
-
});
|
|
58
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA = z.object({
|
|
59
|
-
projectId: z.string()
|
|
60
|
-
});
|
|
61
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA = z.object({
|
|
62
|
-
langs: z.array(
|
|
63
|
-
z.object({
|
|
64
|
-
lang_iso: z.string(),
|
|
65
|
-
base_lang: z.boolean()
|
|
66
|
-
})
|
|
67
|
-
)
|
|
68
|
-
});
|
|
69
|
-
const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA = z.object({
|
|
70
|
-
result: z.boolean()
|
|
71
|
-
});
|
|
1
|
+
import { actionResolvers } from "./harmony126.mjs";
|
|
2
|
+
function canPerformAction(action, payload) {
|
|
3
|
+
const resolver = actionResolvers[action];
|
|
4
|
+
if (!resolver) {
|
|
5
|
+
throw new Error(`Action resolver for "${action}" not found`);
|
|
6
|
+
}
|
|
7
|
+
return resolver(payload);
|
|
8
|
+
}
|
|
72
9
|
export {
|
|
73
|
-
|
|
74
|
-
ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
|
|
75
|
-
ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
|
|
76
|
-
BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
|
77
|
-
BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
|
|
78
|
-
BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
|
|
79
|
-
LANGUAGE_ISO_SCHEMA,
|
|
80
|
-
LANGUAGE_SCHEMA,
|
|
81
|
-
LANGUAGE_STATISTICS_SCHEMA,
|
|
82
|
-
LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
|
|
83
|
-
LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA
|
|
10
|
+
canPerformAction
|
|
84
11
|
};
|
|
85
12
|
//# sourceMappingURL=harmony44.mjs.map
|
package/dist/harmony44.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony44.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony44.mjs","sources":["../src/features/permissions/utils/canPerformAction.ts"],"sourcesContent":["import { type Action, actionResolvers } from '../action'\nimport type { ActionResolverPayload } from '../types'\n\n/**\n * Checks if the user can perform a specific action given the current permissions context and payload.\n *\n * This utility function is used internally by hooks and guards to determine\n * if a user is authorized to perform a particular action.\n *\n * @param action The action to check permission for.\n * @param payload The action resolver payload, typically containing the user's permissions, roles, and other relevant context.\n * @returns {boolean} True if the user can perform the action, otherwise false.\n *\n * @example\n * const allowed = canPerformAction(\"edit_project\", payload);\n * if (allowed) {\n * // perform edit\n * }\n */\nexport function canPerformAction(action: Action, payload: ActionResolverPayload): boolean {\n\tconst resolver = actionResolvers[action]\n\n\tif (!resolver) {\n\t\tthrow new Error(`Action resolver for \"${action}\" not found`)\n\t}\n\n\treturn resolver(payload)\n}\n"],"names":[],"mappings":";AAmBgB,SAAA,iBAAiB,QAAgB,SAAyC;AACnF,QAAA,WAAW,gBAAgB,MAAM;AAEvC,MAAI,CAAC,UAAU;AACd,UAAM,IAAI,MAAM,wBAAwB,MAAM,aAAa;AAAA,EAAA;AAG5D,SAAO,SAAS,OAAO;AACxB;"}
|
package/dist/harmony45.cjs
CHANGED
|
@@ -1,9 +1,91 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const TEAM_ROLES = ["owner", "admin", "biller", "member"];
|
|
4
|
+
const LEGACY_PROJECT_PERMISSIONS = ["glossary", "create_branches"];
|
|
5
|
+
const PROJECT_PERMISSIONS = [
|
|
6
|
+
"tasks",
|
|
7
|
+
"upload",
|
|
8
|
+
"activity",
|
|
9
|
+
"download",
|
|
10
|
+
"glossary_edit",
|
|
11
|
+
"glossary_delete",
|
|
12
|
+
"settings",
|
|
13
|
+
"statistics",
|
|
14
|
+
"manage_keys",
|
|
15
|
+
"screenshots",
|
|
16
|
+
"contributors",
|
|
17
|
+
"branches_create",
|
|
18
|
+
"branches_merge",
|
|
19
|
+
"manage_languages",
|
|
20
|
+
"review",
|
|
21
|
+
"branches_main_modify",
|
|
22
|
+
"custom_status_modify"
|
|
23
|
+
];
|
|
24
|
+
const EXPERT_FEATURE_FLAGS = [
|
|
25
|
+
"homeFeatureLqai",
|
|
26
|
+
"lionLfcFilesManagement",
|
|
27
|
+
"lionFeatureFilesManagementBulkActions",
|
|
28
|
+
"trexFeatureAutomaticTranslations",
|
|
29
|
+
"perfFeatureReportingEngine",
|
|
30
|
+
"homeFeatureAiLqaSuggestions",
|
|
31
|
+
"homeFeatureAibilling",
|
|
32
|
+
"homeBugfixAiTaskSaveTemplate",
|
|
33
|
+
"homeFeatureAutomaticTranslationUse100TMMatch",
|
|
34
|
+
"homeFeatureAutomaticTranslationUseFuzzyMatch",
|
|
35
|
+
"homeMarketingBeta",
|
|
36
|
+
"growthSubscriptionExtras",
|
|
37
|
+
"growthCreditCardExpiry",
|
|
38
|
+
"growthCancellationFlow",
|
|
39
|
+
"growthPricingV2",
|
|
40
|
+
"growthPricingV2WipUsageOverview",
|
|
41
|
+
"metroWorkflowsManagement",
|
|
42
|
+
"metroWorkflowsCreateCustomScratch",
|
|
43
|
+
"metroWorkflowStatusReporting",
|
|
44
|
+
"metroWorkflowsGa",
|
|
45
|
+
"metroFeatureTemplateTriggerGates",
|
|
46
|
+
"metroCustomWorkflows",
|
|
47
|
+
"metroFeatureWorkflowsAiScoring",
|
|
48
|
+
"metroFeatureWorkflowsInBranches",
|
|
49
|
+
"maxMigrationForm",
|
|
50
|
+
"gitLabRecursivePullEnabled",
|
|
51
|
+
"perfFeatureAsyncExport",
|
|
52
|
+
"exportAppleStringsReplaceU2028Disabled",
|
|
53
|
+
"translationsFeatureRagModelSettings",
|
|
54
|
+
"translationsFeatureAiScoring"
|
|
55
|
+
];
|
|
56
|
+
const AUTOPILOT_FEATURE_FLAGS = [
|
|
57
|
+
"ap_feature_setup_cancel",
|
|
58
|
+
"ap_feature_setup_human_review",
|
|
59
|
+
"ap_feature_delete_project_button",
|
|
60
|
+
"ap_feature_project_jobs",
|
|
61
|
+
"ap_feature_settings_apps",
|
|
62
|
+
"ap_feature_styleguide_name",
|
|
63
|
+
"ap_feature_reviewer_users",
|
|
64
|
+
"ap_feature_target_languages_limit",
|
|
65
|
+
"ap_feature_hraas",
|
|
66
|
+
"ap_feature_detach_project_from_shopify",
|
|
67
|
+
"ap_feature_detach_force_install_project_from_shopify",
|
|
68
|
+
"ap_experiment_shopify_roi_recommendations",
|
|
69
|
+
"ap_feature_billing",
|
|
70
|
+
"ap_feature_force_re_export",
|
|
71
|
+
"ap_feature_export_with_non_translatable_markers",
|
|
72
|
+
"ap_feature_export_modal",
|
|
73
|
+
"ap_feature_in_context_preview",
|
|
74
|
+
"ap_feature_in_context_preview_pdf_interactivity",
|
|
75
|
+
"ap_feature_marketing_all_file_types_support",
|
|
76
|
+
"ap_feature_ntc_manipulation"
|
|
77
|
+
];
|
|
78
|
+
const PROJECT_TYPES = [
|
|
79
|
+
"localization_files",
|
|
80
|
+
"paged_documents",
|
|
81
|
+
"content_integration",
|
|
82
|
+
"marketing",
|
|
83
|
+
"marketing_integrations"
|
|
84
|
+
];
|
|
85
|
+
exports.AUTOPILOT_FEATURE_FLAGS = AUTOPILOT_FEATURE_FLAGS;
|
|
86
|
+
exports.EXPERT_FEATURE_FLAGS = EXPERT_FEATURE_FLAGS;
|
|
87
|
+
exports.LEGACY_PROJECT_PERMISSIONS = LEGACY_PROJECT_PERMISSIONS;
|
|
88
|
+
exports.PROJECT_PERMISSIONS = PROJECT_PERMISSIONS;
|
|
89
|
+
exports.PROJECT_TYPES = PROJECT_TYPES;
|
|
90
|
+
exports.TEAM_ROLES = TEAM_ROLES;
|
|
9
91
|
//# sourceMappingURL=harmony45.cjs.map
|
package/dist/harmony45.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony45.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony45.cjs","sources":["../src/features/permissions/types.ts"],"sourcesContent":["// This is sad-making! This should really be in a shared package.\n// TODO nic: Where can we get this from so that we are not duplicating it?\n\nexport const TEAM_ROLES = ['owner', 'admin', 'biller', 'member'] as const\nexport type TeamRole = (typeof TEAM_ROLES)[number]\n\n/** @deprecated - use `ProjectPermission` instead */\nexport const LEGACY_PROJECT_PERMISSIONS = ['glossary', 'create_branches'] as const\n\n/** @deprecated - use `ProjectPermission` instead */\nexport type LegacyProjectPermission = (typeof LEGACY_PROJECT_PERMISSIONS)[number]\n\nexport const PROJECT_PERMISSIONS = [\n\t'tasks',\n\t'upload',\n\t'activity',\n\t'download',\n\t'glossary_edit',\n\t'glossary_delete',\n\t'settings',\n\t'statistics',\n\t'manage_keys',\n\t'screenshots',\n\t'contributors',\n\t'branches_create',\n\t'branches_merge',\n\t'manage_languages',\n\t'review',\n\t'branches_main_modify',\n\t'custom_status_modify',\n] as const\nexport type ProjectPermission = (typeof PROJECT_PERMISSIONS)[number]\n\nexport const EXPERT_FEATURE_FLAGS = [\n\t'homeFeatureLqai',\n\t'lionLfcFilesManagement',\n\t'lionFeatureFilesManagementBulkActions',\n\t'trexFeatureAutomaticTranslations',\n\t'perfFeatureReportingEngine',\n\t'homeFeatureAiLqaSuggestions',\n\t'homeFeatureAibilling',\n\t'homeBugfixAiTaskSaveTemplate',\n\t'homeFeatureAutomaticTranslationUse100TMMatch',\n\t'homeFeatureAutomaticTranslationUseFuzzyMatch',\n\t'homeMarketingBeta',\n\t'growthSubscriptionExtras',\n\t'growthCreditCardExpiry',\n\t'growthCancellationFlow',\n\t'growthPricingV2',\n\t'growthPricingV2WipUsageOverview',\n\t'metroWorkflowsManagement',\n\t'metroWorkflowsCreateCustomScratch',\n\t'metroWorkflowStatusReporting',\n\t'metroWorkflowsGa',\n\t'metroFeatureTemplateTriggerGates',\n\t'metroCustomWorkflows',\n\t'metroFeatureWorkflowsAiScoring',\n\t'metroFeatureWorkflowsInBranches',\n\t'maxMigrationForm',\n\t'gitLabRecursivePullEnabled',\n\t'perfFeatureAsyncExport',\n\t'exportAppleStringsReplaceU2028Disabled',\n\t'translationsFeatureRagModelSettings',\n\t'translationsFeatureAiScoring',\n] as const\n\nexport type ExpertFeatureFlag = (typeof EXPERT_FEATURE_FLAGS)[number]\n\nexport const AUTOPILOT_FEATURE_FLAGS = [\n\t'ap_feature_setup_cancel',\n\t'ap_feature_setup_human_review',\n\t'ap_feature_delete_project_button',\n\t'ap_feature_project_jobs',\n\t'ap_feature_settings_apps',\n\t'ap_feature_styleguide_name',\n\t'ap_feature_reviewer_users',\n\t'ap_feature_target_languages_limit',\n\t'ap_feature_hraas',\n\t'ap_feature_detach_project_from_shopify',\n\t'ap_feature_detach_force_install_project_from_shopify',\n\t'ap_experiment_shopify_roi_recommendations',\n\t'ap_feature_billing',\n\t'ap_feature_force_re_export',\n\t'ap_feature_export_with_non_translatable_markers',\n\t'ap_feature_export_modal',\n\t'ap_feature_in_context_preview',\n\t'ap_feature_in_context_preview_pdf_interactivity',\n\t'ap_feature_marketing_all_file_types_support',\n\t'ap_feature_ntc_manipulation',\n] as const\n\nexport type AutopilotFeatureFlag = (typeof AUTOPILOT_FEATURE_FLAGS)[number]\n\nexport type FeatureFlag = ExpertFeatureFlag | AutopilotFeatureFlag\n\nexport const PROJECT_TYPES = [\n\t'localization_files',\n\t'paged_documents',\n\t'content_integration',\n\t'marketing',\n\t'marketing_integrations',\n] as const\n\nexport type ProjectType = (typeof PROJECT_TYPES)[number]\n\nexport type ActionResolverPayload = {\n\tenabledFeatureFlags?: FeatureFlag[]\n\n\t// This is optional to future-proof the API for the possibility of actions outside the context of a team\n\tteamRole?: TeamRole\n\n\t// This is optional as resolvers should be usable outside the context of a project\n\tprojectPermissions?: (ProjectPermission | LegacyProjectPermission)[]\n\tprojectType?: ProjectType\n}\n\nexport type ActionResolver = (payload: ActionResolverPayload) => boolean\n"],"names":[],"mappings":";;AAGO,MAAM,aAAa,CAAC,SAAS,SAAS,UAAU,QAAQ;AAIlD,MAAA,6BAA6B,CAAC,YAAY,iBAAiB;AAKjE,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAGO,MAAM,uBAAuB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAIO,MAAM,0BAA0B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAMO,MAAM,gBAAgB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;;;;;;;"}
|
package/dist/harmony45.mjs
CHANGED
|
@@ -1,9 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const TEAM_ROLES = ["owner", "admin", "biller", "member"];
|
|
2
|
+
const LEGACY_PROJECT_PERMISSIONS = ["glossary", "create_branches"];
|
|
3
|
+
const PROJECT_PERMISSIONS = [
|
|
4
|
+
"tasks",
|
|
5
|
+
"upload",
|
|
6
|
+
"activity",
|
|
7
|
+
"download",
|
|
8
|
+
"glossary_edit",
|
|
9
|
+
"glossary_delete",
|
|
10
|
+
"settings",
|
|
11
|
+
"statistics",
|
|
12
|
+
"manage_keys",
|
|
13
|
+
"screenshots",
|
|
14
|
+
"contributors",
|
|
15
|
+
"branches_create",
|
|
16
|
+
"branches_merge",
|
|
17
|
+
"manage_languages",
|
|
18
|
+
"review",
|
|
19
|
+
"branches_main_modify",
|
|
20
|
+
"custom_status_modify"
|
|
21
|
+
];
|
|
22
|
+
const EXPERT_FEATURE_FLAGS = [
|
|
23
|
+
"homeFeatureLqai",
|
|
24
|
+
"lionLfcFilesManagement",
|
|
25
|
+
"lionFeatureFilesManagementBulkActions",
|
|
26
|
+
"trexFeatureAutomaticTranslations",
|
|
27
|
+
"perfFeatureReportingEngine",
|
|
28
|
+
"homeFeatureAiLqaSuggestions",
|
|
29
|
+
"homeFeatureAibilling",
|
|
30
|
+
"homeBugfixAiTaskSaveTemplate",
|
|
31
|
+
"homeFeatureAutomaticTranslationUse100TMMatch",
|
|
32
|
+
"homeFeatureAutomaticTranslationUseFuzzyMatch",
|
|
33
|
+
"homeMarketingBeta",
|
|
34
|
+
"growthSubscriptionExtras",
|
|
35
|
+
"growthCreditCardExpiry",
|
|
36
|
+
"growthCancellationFlow",
|
|
37
|
+
"growthPricingV2",
|
|
38
|
+
"growthPricingV2WipUsageOverview",
|
|
39
|
+
"metroWorkflowsManagement",
|
|
40
|
+
"metroWorkflowsCreateCustomScratch",
|
|
41
|
+
"metroWorkflowStatusReporting",
|
|
42
|
+
"metroWorkflowsGa",
|
|
43
|
+
"metroFeatureTemplateTriggerGates",
|
|
44
|
+
"metroCustomWorkflows",
|
|
45
|
+
"metroFeatureWorkflowsAiScoring",
|
|
46
|
+
"metroFeatureWorkflowsInBranches",
|
|
47
|
+
"maxMigrationForm",
|
|
48
|
+
"gitLabRecursivePullEnabled",
|
|
49
|
+
"perfFeatureAsyncExport",
|
|
50
|
+
"exportAppleStringsReplaceU2028Disabled",
|
|
51
|
+
"translationsFeatureRagModelSettings",
|
|
52
|
+
"translationsFeatureAiScoring"
|
|
53
|
+
];
|
|
54
|
+
const AUTOPILOT_FEATURE_FLAGS = [
|
|
55
|
+
"ap_feature_setup_cancel",
|
|
56
|
+
"ap_feature_setup_human_review",
|
|
57
|
+
"ap_feature_delete_project_button",
|
|
58
|
+
"ap_feature_project_jobs",
|
|
59
|
+
"ap_feature_settings_apps",
|
|
60
|
+
"ap_feature_styleguide_name",
|
|
61
|
+
"ap_feature_reviewer_users",
|
|
62
|
+
"ap_feature_target_languages_limit",
|
|
63
|
+
"ap_feature_hraas",
|
|
64
|
+
"ap_feature_detach_project_from_shopify",
|
|
65
|
+
"ap_feature_detach_force_install_project_from_shopify",
|
|
66
|
+
"ap_experiment_shopify_roi_recommendations",
|
|
67
|
+
"ap_feature_billing",
|
|
68
|
+
"ap_feature_force_re_export",
|
|
69
|
+
"ap_feature_export_with_non_translatable_markers",
|
|
70
|
+
"ap_feature_export_modal",
|
|
71
|
+
"ap_feature_in_context_preview",
|
|
72
|
+
"ap_feature_in_context_preview_pdf_interactivity",
|
|
73
|
+
"ap_feature_marketing_all_file_types_support",
|
|
74
|
+
"ap_feature_ntc_manipulation"
|
|
75
|
+
];
|
|
76
|
+
const PROJECT_TYPES = [
|
|
77
|
+
"localization_files",
|
|
78
|
+
"paged_documents",
|
|
79
|
+
"content_integration",
|
|
80
|
+
"marketing",
|
|
81
|
+
"marketing_integrations"
|
|
82
|
+
];
|
|
6
83
|
export {
|
|
7
|
-
|
|
84
|
+
AUTOPILOT_FEATURE_FLAGS,
|
|
85
|
+
EXPERT_FEATURE_FLAGS,
|
|
86
|
+
LEGACY_PROJECT_PERMISSIONS,
|
|
87
|
+
PROJECT_PERMISSIONS,
|
|
88
|
+
PROJECT_TYPES,
|
|
89
|
+
TEAM_ROLES
|
|
8
90
|
};
|
|
9
91
|
//# sourceMappingURL=harmony45.mjs.map
|
package/dist/harmony45.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony45.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony45.mjs","sources":["../src/features/permissions/types.ts"],"sourcesContent":["// This is sad-making! This should really be in a shared package.\n// TODO nic: Where can we get this from so that we are not duplicating it?\n\nexport const TEAM_ROLES = ['owner', 'admin', 'biller', 'member'] as const\nexport type TeamRole = (typeof TEAM_ROLES)[number]\n\n/** @deprecated - use `ProjectPermission` instead */\nexport const LEGACY_PROJECT_PERMISSIONS = ['glossary', 'create_branches'] as const\n\n/** @deprecated - use `ProjectPermission` instead */\nexport type LegacyProjectPermission = (typeof LEGACY_PROJECT_PERMISSIONS)[number]\n\nexport const PROJECT_PERMISSIONS = [\n\t'tasks',\n\t'upload',\n\t'activity',\n\t'download',\n\t'glossary_edit',\n\t'glossary_delete',\n\t'settings',\n\t'statistics',\n\t'manage_keys',\n\t'screenshots',\n\t'contributors',\n\t'branches_create',\n\t'branches_merge',\n\t'manage_languages',\n\t'review',\n\t'branches_main_modify',\n\t'custom_status_modify',\n] as const\nexport type ProjectPermission = (typeof PROJECT_PERMISSIONS)[number]\n\nexport const EXPERT_FEATURE_FLAGS = [\n\t'homeFeatureLqai',\n\t'lionLfcFilesManagement',\n\t'lionFeatureFilesManagementBulkActions',\n\t'trexFeatureAutomaticTranslations',\n\t'perfFeatureReportingEngine',\n\t'homeFeatureAiLqaSuggestions',\n\t'homeFeatureAibilling',\n\t'homeBugfixAiTaskSaveTemplate',\n\t'homeFeatureAutomaticTranslationUse100TMMatch',\n\t'homeFeatureAutomaticTranslationUseFuzzyMatch',\n\t'homeMarketingBeta',\n\t'growthSubscriptionExtras',\n\t'growthCreditCardExpiry',\n\t'growthCancellationFlow',\n\t'growthPricingV2',\n\t'growthPricingV2WipUsageOverview',\n\t'metroWorkflowsManagement',\n\t'metroWorkflowsCreateCustomScratch',\n\t'metroWorkflowStatusReporting',\n\t'metroWorkflowsGa',\n\t'metroFeatureTemplateTriggerGates',\n\t'metroCustomWorkflows',\n\t'metroFeatureWorkflowsAiScoring',\n\t'metroFeatureWorkflowsInBranches',\n\t'maxMigrationForm',\n\t'gitLabRecursivePullEnabled',\n\t'perfFeatureAsyncExport',\n\t'exportAppleStringsReplaceU2028Disabled',\n\t'translationsFeatureRagModelSettings',\n\t'translationsFeatureAiScoring',\n] as const\n\nexport type ExpertFeatureFlag = (typeof EXPERT_FEATURE_FLAGS)[number]\n\nexport const AUTOPILOT_FEATURE_FLAGS = [\n\t'ap_feature_setup_cancel',\n\t'ap_feature_setup_human_review',\n\t'ap_feature_delete_project_button',\n\t'ap_feature_project_jobs',\n\t'ap_feature_settings_apps',\n\t'ap_feature_styleguide_name',\n\t'ap_feature_reviewer_users',\n\t'ap_feature_target_languages_limit',\n\t'ap_feature_hraas',\n\t'ap_feature_detach_project_from_shopify',\n\t'ap_feature_detach_force_install_project_from_shopify',\n\t'ap_experiment_shopify_roi_recommendations',\n\t'ap_feature_billing',\n\t'ap_feature_force_re_export',\n\t'ap_feature_export_with_non_translatable_markers',\n\t'ap_feature_export_modal',\n\t'ap_feature_in_context_preview',\n\t'ap_feature_in_context_preview_pdf_interactivity',\n\t'ap_feature_marketing_all_file_types_support',\n\t'ap_feature_ntc_manipulation',\n] as const\n\nexport type AutopilotFeatureFlag = (typeof AUTOPILOT_FEATURE_FLAGS)[number]\n\nexport type FeatureFlag = ExpertFeatureFlag | AutopilotFeatureFlag\n\nexport const PROJECT_TYPES = [\n\t'localization_files',\n\t'paged_documents',\n\t'content_integration',\n\t'marketing',\n\t'marketing_integrations',\n] as const\n\nexport type ProjectType = (typeof PROJECT_TYPES)[number]\n\nexport type ActionResolverPayload = {\n\tenabledFeatureFlags?: FeatureFlag[]\n\n\t// This is optional to future-proof the API for the possibility of actions outside the context of a team\n\tteamRole?: TeamRole\n\n\t// This is optional as resolvers should be usable outside the context of a project\n\tprojectPermissions?: (ProjectPermission | LegacyProjectPermission)[]\n\tprojectType?: ProjectType\n}\n\nexport type ActionResolver = (payload: ActionResolverPayload) => boolean\n"],"names":[],"mappings":"AAGO,MAAM,aAAa,CAAC,SAAS,SAAS,UAAU,QAAQ;AAIlD,MAAA,6BAA6B,CAAC,YAAY,iBAAiB;AAKjE,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAGO,MAAM,uBAAuB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAIO,MAAM,0BAA0B;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAMO,MAAM,gBAAgB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;"}
|