@lokalise/harmony 2.0.3 → 2.0.5
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 +1 -1
- package/dist/harmony.mjs +3 -3
- 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 +1 -1
- package/dist/harmony106.mjs +1 -1
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- 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/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 +44 -9
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +46 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +6 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +6 -9
- 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/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 +2 -2
- package/dist/harmony121.mjs +2 -2
- package/dist/harmony122.cjs +87 -7
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +87 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +30 -17
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +30 -17
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +6 -9
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +5 -8
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -9
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +5 -8
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +20 -15
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +20 -15
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +7 -87
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +7 -87
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +17 -30
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +17 -30
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +8 -20
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +8 -20
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +8 -9
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +7 -8
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +14 -11
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -11
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +9 -15
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +8 -14
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +6 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +8 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +12 -7
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +14 -9
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +13 -20
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +15 -22
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +7 -9
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +9 -11
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +18 -30
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +20 -32
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +6 -6
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +6 -6
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +29 -13
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +30 -14
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +7 -31
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +8 -32
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +22 -21
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +21 -20
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +30 -15
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +32 -17
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +18 -3
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +18 -3
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +21 -15
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +20 -14
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +6 -5
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +6 -5
- package/dist/harmony146.cjs +15 -5
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +15 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony148.cjs +96 -3
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +96 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +13 -3
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +13 -3
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +14 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +14 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +36 -14
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +36 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +28 -14
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +28 -14
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +3 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +3 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +4 -10
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +3 -9
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +4 -7
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +3 -6
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +15 -10
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +14 -9
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +15 -25
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +14 -24
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +4 -7
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +3 -6
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +14 -13
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +13 -12
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony160.cjs +16 -7
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +15 -6
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +14 -94
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +14 -94
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +10 -14
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +9 -13
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +7 -15
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +6 -14
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +10 -37
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +9 -36
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +25 -29
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +24 -28
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +6 -32
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +5 -31
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +13 -14
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +12 -13
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +7 -16
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +6 -15
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +14 -14
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +14 -14
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony170.cjs +20 -10
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +20 -10
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +10 -14
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +10 -14
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +10 -20
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +10 -20
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +32 -12
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +32 -12
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +12 -4
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +12 -4
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony175.cjs +31 -5
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +31 -5
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +13 -11
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +13 -11
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +5 -31
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +5 -31
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +4 -14
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +4 -14
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony45.cjs +2 -0
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +2 -0
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony81.cjs +5 -20
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +5 -20
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +5 -1
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +5 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony88.cjs +2 -1
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +3 -2
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony96.cjs +2 -2
- package/dist/harmony96.mjs +2 -2
- package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts +1 -1
- package/dist/types/src/features/permissions/types.d.ts +2 -0
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -26
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetUserTokenQuery.d.ts +1 -4
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -65
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -14
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -63
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -33
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -8
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +5 -5
- package/dist/types/src/features/publicApi/projects.d.ts +15 -15
- package/dist/types/src/features/publicApi/teamUsers.d.ts +5 -5
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +9 -10
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +4 -4
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +24 -24
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +8 -8
- package/dist/types/src/utils/types/apiQueryOverrides.d.ts +1 -1
- package/package.json +1 -1
package/dist/harmony65.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony65.mjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,mBAAmB,cAAc,cAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;"}
|
|
1
|
+
{"version":3,"file":"harmony65.mjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T, S = JwtToken>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,mBAAmB,cAAc,cAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;"}
|
package/dist/harmony66.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony66.cjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","listContributors"],"mappings":";;;;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,+BAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
|
|
1
|
+
{"version":3,"file":"harmony66.cjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T, S = ListContributorsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","listContributors"],"mappings":";;;;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,+BAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
|
package/dist/harmony66.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony66.mjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,kBAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
|
|
1
|
+
{"version":3,"file":"harmony66.mjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T, S = ListContributorsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,kBAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
|
package/dist/harmony67.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony67.cjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides
|
|
1
|
+
{"version":3,"file":"harmony67.cjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T, S = ListPermissionTemplatesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<\n\t\tListPermissionTemplatesResponse,\n\t\ttypeof listPermissionTemplatesKeys,\n\t\tS\n\t>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listPermissionTemplates"],"mappings":";;;;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cAKI;AACJ,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,6CAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony67.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony67.mjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides
|
|
1
|
+
{"version":3,"file":"harmony67.mjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T, S = ListPermissionTemplatesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<\n\t\tListPermissionTemplatesResponse,\n\t\ttypeof listPermissionTemplatesKeys,\n\t\tS\n\t>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cAKI;AACJ,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,yBAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony68.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony68.cjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages 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 useListProjectLanguagesQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjectLanguages"],"mappings":";;;;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,gCAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony68.cjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages 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 useListProjectLanguagesQuery<T, S = ListProjectLanguagesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjectLanguages"],"mappings":";;;;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,gCAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony68.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony68.mjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages 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 useListProjectLanguagesQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,sBAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony68.mjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages 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 useListProjectLanguagesQuery<T, S = ListProjectLanguagesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,sBAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony69.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony69.cjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjects"],"mappings":";;;;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,uBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony69.cjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T, S = ListProjectsSuccessResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjects"],"mappings":";;;;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,uBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony69.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony69.mjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony69.mjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T, S = ListProjectsSuccessResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony70.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony70.cjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeams"],"mappings":";;;;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony70.cjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T, S = ListTeamsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeams"],"mappings":";;;;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony70.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,WAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T, S = ListTeamsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,WAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony71.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony71.cjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeamUsers"],"mappings":";;;;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,yBAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony71.cjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T, S = ListTeamUsersResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeamUsers"],"mappings":";;;;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,yBAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony71.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony71.mjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,eAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony71.mjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers 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.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T, S = ListTeamUsersResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,eAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony72.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony72.cjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","retrieveContributor"],"mappings":";;;;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,kCAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
|
|
1
|
+
{"version":3,"file":"harmony72.cjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T, S = RetrieveContributorResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","retrieveContributor"],"mappings":";;;;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,kCAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
|
package/dist/harmony72.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony72.mjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,qBAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
|
|
1
|
+
{"version":3,"file":"harmony72.mjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T, S = RetrieveContributorResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,qBAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
|
package/dist/harmony73.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony73.cjs","sources":["../src/features/publicApi/hooks/useRetrieveProjectQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveProject } from '../projects'\nimport type { Project, ProjectApiBaseHeaders } from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the retrieveProject query\n */\nexport const retrieveProjectQueryKey = {\n\tprojectIdKey: (projectId: string) => ['retrieveProject', projectId],\n}\n\n/**\n * A react-router wrapper about the retrieveProject 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 useRetrieveProjectQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<Project, typeof retrieveProjectQueryKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","retrieveProject"],"mappings":";;;;;AAWO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,mBAAmB,SAAS;AACnE;AASgB,SAAA,wBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,0BAAiB;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony73.cjs","sources":["../src/features/publicApi/hooks/useRetrieveProjectQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveProject } from '../projects'\nimport type { Project, ProjectApiBaseHeaders } from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the retrieveProject query\n */\nexport const retrieveProjectQueryKey = {\n\tprojectIdKey: (projectId: string) => ['retrieveProject', projectId],\n}\n\n/**\n * A react-router wrapper about the retrieveProject 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 useRetrieveProjectQuery<T, S = Project>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<Project, typeof retrieveProjectQueryKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","retrieveProject"],"mappings":";;;;;AAWO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,mBAAmB,SAAS;AACnE;AASgB,SAAA,wBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,0BAAiB;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony73.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony73.mjs","sources":["../src/features/publicApi/hooks/useRetrieveProjectQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveProject } from '../projects'\nimport type { Project, ProjectApiBaseHeaders } from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the retrieveProject query\n */\nexport const retrieveProjectQueryKey = {\n\tprojectIdKey: (projectId: string) => ['retrieveProject', projectId],\n}\n\n/**\n * A react-router wrapper about the retrieveProject 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 useRetrieveProjectQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<Project, typeof retrieveProjectQueryKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAWO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,mBAAmB,SAAS;AACnE;AASgB,SAAA,wBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,iBAAiB;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony73.mjs","sources":["../src/features/publicApi/hooks/useRetrieveProjectQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveProject } from '../projects'\nimport type { Project, ProjectApiBaseHeaders } from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the retrieveProject query\n */\nexport const retrieveProjectQueryKey = {\n\tprojectIdKey: (projectId: string) => ['retrieveProject', projectId],\n}\n\n/**\n * A react-router wrapper about the retrieveProject 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 useRetrieveProjectQuery<T, S = Project>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<Project, typeof retrieveProjectQueryKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAWO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,mBAAmB,SAAS;AACnE;AASgB,SAAA,wBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,iBAAiB;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony74.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony74.cjs","sources":["../src/features/publicApi/hooks/useRetrieveTeamQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { RetrieveTeamResponse, TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveTeam } from '../team'\n\n/**\n * Factory function to create the query key for the retrieveTeam query\n */\nexport const retrieveTeamQueryKey = {\n\tteamIdKey: (teamId: string | number) => ['retrieveTeam', teamId],\n}\n\n/**\n * A react-router wrapper about the retrieveTeam 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 useRetrieveTeamQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<RetrieveTeamResponse, typeof retrieveTeamQueryKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveTeam, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","retrieveTeam"],"mappings":";;;;;AAWO,MAAM,uBAAuB;AAAA,EACnC,WAAW,CAAC,WAA4B,CAAC,gBAAgB,MAAM;AAChE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,mBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,OAAO;AAAA,IACrB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
|
1
|
+
{"version":3,"file":"harmony74.cjs","sources":["../src/features/publicApi/hooks/useRetrieveTeamQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { RetrieveTeamResponse, TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveTeam } from '../team'\n\n/**\n * Factory function to create the query key for the retrieveTeam query\n */\nexport const retrieveTeamQueryKey = {\n\tteamIdKey: (teamId: string | number) => ['retrieveTeam', teamId],\n}\n\n/**\n * A react-router wrapper about the retrieveTeam 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 useRetrieveTeamQuery<T, S = RetrieveTeamResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<RetrieveTeamResponse, typeof retrieveTeamQueryKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveTeam, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","retrieveTeam"],"mappings":";;;;;AAWO,MAAM,uBAAuB;AAAA,EACnC,WAAW,CAAC,WAA4B,CAAC,gBAAgB,MAAM;AAChE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,mBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,OAAO;AAAA,IACrB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony74.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony74.mjs","sources":["../src/features/publicApi/hooks/useRetrieveTeamQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { RetrieveTeamResponse, TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveTeam } from '../team'\n\n/**\n * Factory function to create the query key for the retrieveTeam query\n */\nexport const retrieveTeamQueryKey = {\n\tteamIdKey: (teamId: string | number) => ['retrieveTeam', teamId],\n}\n\n/**\n * A react-router wrapper about the retrieveTeam 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 useRetrieveTeamQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<RetrieveTeamResponse, typeof retrieveTeamQueryKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveTeam, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAWO,MAAM,uBAAuB;AAAA,EACnC,WAAW,CAAC,WAA4B,CAAC,gBAAgB,MAAM;AAChE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,OAAO;AAAA,IACrB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
|
1
|
+
{"version":3,"file":"harmony74.mjs","sources":["../src/features/publicApi/hooks/useRetrieveTeamQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { RetrieveTeamResponse, TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveTeam } from '../team'\n\n/**\n * Factory function to create the query key for the retrieveTeam query\n */\nexport const retrieveTeamQueryKey = {\n\tteamIdKey: (teamId: string | number) => ['retrieveTeam', teamId],\n}\n\n/**\n * A react-router wrapper about the retrieveTeam 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 useRetrieveTeamQuery<T, S = RetrieveTeamResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<RetrieveTeamResponse, typeof retrieveTeamQueryKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveTeam, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAWO,MAAM,uBAAuB;AAAA,EACnC,WAAW,CAAC,WAA4B,CAAC,gBAAgB,MAAM;AAChE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,OAAO;AAAA,IACrB,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony75.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony75.cjs","sources":["../src/features/publicApi/hooks/useRetrieveUserPermissions.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { getTeamUserPermissions } from '@features/publicApi/teamUsers'\nimport type { TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport type {\n\tGetTeamUserPermissionsRequestBody,\n\tGetTeamUserPermissionsResponse,\n\tTeamUserPathParams,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory function to create the query key for the useRetrieveUserPermissions query\n */\nexport const retrieveUserPermissionsKey = {\n\tqueryKey: (params: TeamUserPathParams, body: GetTeamUserPermissionsRequestBody) =>\n\t\t['retrieveUserPermissions', params, body] as const,\n}\n\n/**\n * Allows to get information about user permissions for specific projects *\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.F\n * @param overrides - Additional options to pass to the query.\n */\nexport function useRetrieveUserPermissions<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides
|
|
1
|
+
{"version":3,"file":"harmony75.cjs","sources":["../src/features/publicApi/hooks/useRetrieveUserPermissions.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { getTeamUserPermissions } from '@features/publicApi/teamUsers'\nimport type { TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport type {\n\tGetTeamUserPermissionsRequestBody,\n\tGetTeamUserPermissionsResponse,\n\tTeamUserPathParams,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory function to create the query key for the useRetrieveUserPermissions query\n */\nexport const retrieveUserPermissionsKey = {\n\tqueryKey: (params: TeamUserPathParams, body: GetTeamUserPermissionsRequestBody) =>\n\t\t['retrieveUserPermissions', params, body] as const,\n}\n\n/**\n * Allows to get information about user permissions for specific projects *\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.F\n * @param overrides - Additional options to pass to the query.\n */\nexport function useRetrieveUserPermissions<T, S = GetTeamUserPermissionsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetTeamUserPermissionsResponse,\n\t\ttypeof retrieveUserPermissionsKey,\n\t\tS\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params, body] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getTeamUserPermissions, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t\tbody,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByPayloadRoute","getTeamUserPermissions"],"mappings":";;;;;AAgBO,MAAM,6BAA6B;AAAA,EACzC,UAAU,CAAC,QAA4B,SACtC,CAAC,2BAA2B,QAAQ,IAAI;AAC1C;AASgB,SAAA,2BACf,cACA,SACA,WAKC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,IAAI,QAC3CC,mBAAAA,mBAAmB,cAAcC,kCAAwB;AAAA,MACxD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,MACZ;AAAA,IACA,CAAA;AAAA,EAAA,CACF;AACF;;;"}
|
package/dist/harmony75.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony75.mjs","sources":["../src/features/publicApi/hooks/useRetrieveUserPermissions.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { getTeamUserPermissions } from '@features/publicApi/teamUsers'\nimport type { TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport type {\n\tGetTeamUserPermissionsRequestBody,\n\tGetTeamUserPermissionsResponse,\n\tTeamUserPathParams,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory function to create the query key for the useRetrieveUserPermissions query\n */\nexport const retrieveUserPermissionsKey = {\n\tqueryKey: (params: TeamUserPathParams, body: GetTeamUserPermissionsRequestBody) =>\n\t\t['retrieveUserPermissions', params, body] as const,\n}\n\n/**\n * Allows to get information about user permissions for specific projects *\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.F\n * @param overrides - Additional options to pass to the query.\n */\nexport function useRetrieveUserPermissions<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides
|
|
1
|
+
{"version":3,"file":"harmony75.mjs","sources":["../src/features/publicApi/hooks/useRetrieveUserPermissions.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { getTeamUserPermissions } from '@features/publicApi/teamUsers'\nimport type { TeamApiBaseHeaders } from '@features/publicApi/types/teamTypes'\nimport type {\n\tGetTeamUserPermissionsRequestBody,\n\tGetTeamUserPermissionsResponse,\n\tTeamUserPathParams,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory function to create the query key for the useRetrieveUserPermissions query\n */\nexport const retrieveUserPermissionsKey = {\n\tqueryKey: (params: TeamUserPathParams, body: GetTeamUserPermissionsRequestBody) =>\n\t\t['retrieveUserPermissions', params, body] as const,\n}\n\n/**\n * Allows to get information about user permissions for specific projects *\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.F\n * @param overrides - Additional options to pass to the query.\n */\nexport function useRetrieveUserPermissions<T, S = GetTeamUserPermissionsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetTeamUserPermissionsResponse,\n\t\ttypeof retrieveUserPermissionsKey,\n\t\tS\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params, body] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getTeamUserPermissions, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t\tbody,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAgBO,MAAM,6BAA6B;AAAA,EACzC,UAAU,CAAC,QAA4B,SACtC,CAAC,2BAA2B,QAAQ,IAAI;AAC1C;AASgB,SAAA,2BACf,cACA,SACA,WAKC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,IAAI,QAC3C,mBAAmB,cAAc,wBAAwB;AAAA,MACxD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,MACZ;AAAA,IACA,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony81.cjs
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const types = require("./harmony45.cjs");
|
|
3
4
|
const permissionTypes = require("./harmony82.cjs");
|
|
4
5
|
const zod = require("zod");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"download",
|
|
10
|
-
"settings",
|
|
11
|
-
"statistics",
|
|
12
|
-
"manage_keys",
|
|
13
|
-
"screenshots",
|
|
14
|
-
"contributors",
|
|
15
|
-
"glossary_edit",
|
|
16
|
-
"branches_merge",
|
|
17
|
-
"branches_create",
|
|
18
|
-
"glossary_delete",
|
|
19
|
-
"manage_languages",
|
|
20
|
-
"branches_main_modify",
|
|
21
|
-
"custom_status_modify"
|
|
22
|
-
];
|
|
23
|
-
const PERMISSION_SCHEMA = zod.z.enum(PERMISSIONS);
|
|
6
|
+
const PERMISSION_SCHEMA = zod.z.union([
|
|
7
|
+
zod.z.enum(types.PROJECT_PERMISSIONS),
|
|
8
|
+
zod.z.enum(types.LEGACY_PROJECT_PERMISSIONS)
|
|
9
|
+
]);
|
|
24
10
|
const PERMISSION_TEMPLATE_SCHEMA = zod.z.object({
|
|
25
11
|
id: zod.z.string(),
|
|
26
12
|
role: zod.z.string(),
|
|
@@ -40,7 +26,6 @@ const LIST_PERMISSION_TEMPLATES_RESPONSE = zod.z.object({
|
|
|
40
26
|
});
|
|
41
27
|
exports.LIST_PERMISSION_TEMPLATES_PATH_PARAMS = LIST_PERMISSION_TEMPLATES_PATH_PARAMS;
|
|
42
28
|
exports.LIST_PERMISSION_TEMPLATES_RESPONSE = LIST_PERMISSION_TEMPLATES_RESPONSE;
|
|
43
|
-
exports.PERMISSIONS = PERMISSIONS;
|
|
44
29
|
exports.PERMISSION_SCHEMA = PERMISSION_SCHEMA;
|
|
45
30
|
exports.PERMISSION_TEMPLATE_SCHEMA = PERMISSION_TEMPLATE_SCHEMA;
|
|
46
31
|
//# sourceMappingURL=harmony81.cjs.map
|
package/dist/harmony81.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony81.cjs","sources":["../src/features/publicApi/types/permissionTemplateTypes.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"harmony81.cjs","sources":["../src/features/publicApi/types/permissionTemplateTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { PERMISSION_ID_SCHEMA } from '@features/publicApi/types/permissionTypes'\nimport { z } from 'zod'\n\n// TODO: Single source of truth for permissions (here and in permissions feature) and expert\nexport const PERMISSION_SCHEMA = z.union([\n\tz.enum(PROJECT_PERMISSIONS),\n\tz.enum(LEGACY_PROJECT_PERMISSIONS),\n])\n\nexport type Permission = z.infer<typeof PERMISSION_SCHEMA>\n\nexport const PERMISSION_TEMPLATE_SCHEMA = z.object({\n\tid: z.string(),\n\trole: z.string(),\n\tpermissions: z.array(PERMISSION_ID_SCHEMA),\n\tdescription: z.string().nullable(),\n\ttag: z.string().nullable(),\n\ttagColor: z.string().nullable(),\n\ttagInfo: z.string().nullable(),\n\tisForMarketingProjects: z.boolean(),\n\tdoesEnableAllReadOnlyLanguages: z.boolean(),\n})\nexport type PermissionTemplate = z.infer<typeof PERMISSION_TEMPLATE_SCHEMA>\n\nexport const LIST_PERMISSION_TEMPLATES_PATH_PARAMS = z.object({\n\tteamId: z.number(),\n})\n\nexport type ListPermissionTemplatesPathParams = z.infer<\n\ttypeof LIST_PERMISSION_TEMPLATES_PATH_PARAMS\n>\n\nexport const LIST_PERMISSION_TEMPLATES_RESPONSE = z.object({\n\troles: z.array(PERMISSION_TEMPLATE_SCHEMA),\n})\n\nexport type ListPermissionTemplatesResponse = z.infer<typeof LIST_PERMISSION_TEMPLATES_RESPONSE>\n"],"names":["z","PROJECT_PERMISSIONS","LEGACY_PROJECT_PERMISSIONS","PERMISSION_ID_SCHEMA"],"mappings":";;;;;AAKa,MAAA,oBAAoBA,MAAE,MAAM;AAAA,EACxCA,IAAA,EAAE,KAAKC,yBAAmB;AAAA,EAC1BD,IAAA,EAAE,KAAKE,MAA0B,0BAAA;AAClC,CAAC;AAIY,MAAA,6BAA6BF,MAAE,OAAO;AAAA,EAClD,IAAIA,MAAE,OAAO;AAAA,EACb,MAAMA,MAAE,OAAO;AAAA,EACf,aAAaA,IAAAA,EAAE,MAAMG,oCAAoB;AAAA,EACzC,aAAaH,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,KAAKA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EACzB,UAAUA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EAC9B,SAASA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,wBAAwBA,MAAE,QAAQ;AAAA,EAClC,gCAAgCA,MAAE,QAAQ;AAC3C,CAAC;AAGY,MAAA,wCAAwCA,MAAE,OAAO;AAAA,EAC7D,QAAQA,MAAE,OAAO;AAClB,CAAC;AAMY,MAAA,qCAAqCA,MAAE,OAAO;AAAA,EAC1D,OAAOA,IAAAA,EAAE,MAAM,0BAA0B;AAC1C,CAAC;;;;;"}
|
package/dist/harmony81.mjs
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
|
+
import { PROJECT_PERMISSIONS, LEGACY_PROJECT_PERMISSIONS } from "./harmony45.mjs";
|
|
1
2
|
import { PERMISSION_ID_SCHEMA } from "./harmony82.mjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"download",
|
|
8
|
-
"settings",
|
|
9
|
-
"statistics",
|
|
10
|
-
"manage_keys",
|
|
11
|
-
"screenshots",
|
|
12
|
-
"contributors",
|
|
13
|
-
"glossary_edit",
|
|
14
|
-
"branches_merge",
|
|
15
|
-
"branches_create",
|
|
16
|
-
"glossary_delete",
|
|
17
|
-
"manage_languages",
|
|
18
|
-
"branches_main_modify",
|
|
19
|
-
"custom_status_modify"
|
|
20
|
-
];
|
|
21
|
-
const PERMISSION_SCHEMA = z.enum(PERMISSIONS);
|
|
4
|
+
const PERMISSION_SCHEMA = z.union([
|
|
5
|
+
z.enum(PROJECT_PERMISSIONS),
|
|
6
|
+
z.enum(LEGACY_PROJECT_PERMISSIONS)
|
|
7
|
+
]);
|
|
22
8
|
const PERMISSION_TEMPLATE_SCHEMA = z.object({
|
|
23
9
|
id: z.string(),
|
|
24
10
|
role: z.string(),
|
|
@@ -39,7 +25,6 @@ const LIST_PERMISSION_TEMPLATES_RESPONSE = z.object({
|
|
|
39
25
|
export {
|
|
40
26
|
LIST_PERMISSION_TEMPLATES_PATH_PARAMS,
|
|
41
27
|
LIST_PERMISSION_TEMPLATES_RESPONSE,
|
|
42
|
-
PERMISSIONS,
|
|
43
28
|
PERMISSION_SCHEMA,
|
|
44
29
|
PERMISSION_TEMPLATE_SCHEMA
|
|
45
30
|
};
|
package/dist/harmony81.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony81.mjs","sources":["../src/features/publicApi/types/permissionTemplateTypes.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"harmony81.mjs","sources":["../src/features/publicApi/types/permissionTemplateTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { PERMISSION_ID_SCHEMA } from '@features/publicApi/types/permissionTypes'\nimport { z } from 'zod'\n\n// TODO: Single source of truth for permissions (here and in permissions feature) and expert\nexport const PERMISSION_SCHEMA = z.union([\n\tz.enum(PROJECT_PERMISSIONS),\n\tz.enum(LEGACY_PROJECT_PERMISSIONS),\n])\n\nexport type Permission = z.infer<typeof PERMISSION_SCHEMA>\n\nexport const PERMISSION_TEMPLATE_SCHEMA = z.object({\n\tid: z.string(),\n\trole: z.string(),\n\tpermissions: z.array(PERMISSION_ID_SCHEMA),\n\tdescription: z.string().nullable(),\n\ttag: z.string().nullable(),\n\ttagColor: z.string().nullable(),\n\ttagInfo: z.string().nullable(),\n\tisForMarketingProjects: z.boolean(),\n\tdoesEnableAllReadOnlyLanguages: z.boolean(),\n})\nexport type PermissionTemplate = z.infer<typeof PERMISSION_TEMPLATE_SCHEMA>\n\nexport const LIST_PERMISSION_TEMPLATES_PATH_PARAMS = z.object({\n\tteamId: z.number(),\n})\n\nexport type ListPermissionTemplatesPathParams = z.infer<\n\ttypeof LIST_PERMISSION_TEMPLATES_PATH_PARAMS\n>\n\nexport const LIST_PERMISSION_TEMPLATES_RESPONSE = z.object({\n\troles: z.array(PERMISSION_TEMPLATE_SCHEMA),\n})\n\nexport type ListPermissionTemplatesResponse = z.infer<typeof LIST_PERMISSION_TEMPLATES_RESPONSE>\n"],"names":[],"mappings":";;;AAKa,MAAA,oBAAoB,EAAE,MAAM;AAAA,EACxC,EAAE,KAAK,mBAAmB;AAAA,EAC1B,EAAE,KAAK,0BAA0B;AAClC,CAAC;AAIY,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,IAAI,EAAE,OAAO;AAAA,EACb,MAAM,EAAE,OAAO;AAAA,EACf,aAAa,EAAE,MAAM,oBAAoB;AAAA,EACzC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,KAAK,EAAE,OAAO,EAAE,SAAS;AAAA,EACzB,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,EAC9B,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,wBAAwB,EAAE,QAAQ;AAAA,EAClC,gCAAgC,EAAE,QAAQ;AAC3C,CAAC;AAGY,MAAA,wCAAwC,EAAE,OAAO;AAAA,EAC7D,QAAQ,EAAE,OAAO;AAClB,CAAC;AAMY,MAAA,qCAAqC,EAAE,OAAO;AAAA,EAC1D,OAAO,EAAE,MAAM,0BAA0B;AAC1C,CAAC;"}
|
package/dist/harmony82.cjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const types = require("./harmony45.cjs");
|
|
3
4
|
const zod = require("zod");
|
|
4
|
-
const PERMISSION_ID_SCHEMA = zod.z.
|
|
5
|
+
const PERMISSION_ID_SCHEMA = zod.z.union([
|
|
6
|
+
zod.z.enum(types.PROJECT_PERMISSIONS),
|
|
7
|
+
zod.z.enum(types.LEGACY_PROJECT_PERMISSIONS)
|
|
8
|
+
]);
|
|
5
9
|
const PERMISSION_SCOPE_SCHEMA = zod.z.union([
|
|
6
10
|
zod.z.literal("project"),
|
|
7
11
|
zod.z.literal("team"),
|
package/dist/harmony82.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony82.cjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.
|
|
1
|
+
{"version":3,"file":"harmony82.cjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.union([\n\tz.enum(PROJECT_PERMISSIONS),\n\tz.enum(LEGACY_PROJECT_PERMISSIONS),\n])\n\nexport type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>\n\nexport const PERMISSION_SCOPE_SCHEMA = z.union([\n\tz.literal('project'),\n\tz.literal('team'),\n\tz.literal('user'),\n])\n\nexport type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>\n\nexport const PERMISSION_DETAILS_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tnew_permission: z.boolean(),\n\tdoes_set_all_read_only_languages: z.boolean(),\n\tis_hidden: z.boolean(),\n})\n\nexport type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>\n"],"names":["z","PROJECT_PERMISSIONS","LEGACY_PROJECT_PERMISSIONS"],"mappings":";;;;AAGa,MAAA,uBAAuBA,MAAE,MAAM;AAAA,EAC3CA,IAAA,EAAE,KAAKC,yBAAmB;AAAA,EAC1BD,IAAA,EAAE,KAAKE,MAA0B,0BAAA;AAClC,CAAC;AAIY,MAAA,0BAA0BF,MAAE,MAAM;AAAA,EAC9CA,IAAA,EAAE,QAAQ,SAAS;AAAA,EACnBA,IAAA,EAAE,QAAQ,MAAM;AAAA,EAChBA,IAAA,EAAE,QAAQ,MAAM;AACjB,CAAC;AAIY,MAAA,4BAA4BA,MAAE,OAAO;AAAA,EACjD,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAOA,MAAE,OAAO;AAAA,EAChB,OAAOA,MAAE,OAAO;AAAA,EAChB,aAAaA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,gBAAgBA,MAAE,QAAQ;AAAA,EAC1B,kCAAkCA,MAAE,QAAQ;AAAA,EAC5C,WAAWA,MAAE,QAAQ;AACtB,CAAC;;;;"}
|
package/dist/harmony82.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { PROJECT_PERMISSIONS, LEGACY_PROJECT_PERMISSIONS } from "./harmony45.mjs";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
const PERMISSION_ID_SCHEMA = z.
|
|
3
|
+
const PERMISSION_ID_SCHEMA = z.union([
|
|
4
|
+
z.enum(PROJECT_PERMISSIONS),
|
|
5
|
+
z.enum(LEGACY_PROJECT_PERMISSIONS)
|
|
6
|
+
]);
|
|
3
7
|
const PERMISSION_SCOPE_SCHEMA = z.union([
|
|
4
8
|
z.literal("project"),
|
|
5
9
|
z.literal("team"),
|
package/dist/harmony82.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony82.mjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.
|
|
1
|
+
{"version":3,"file":"harmony82.mjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.union([\n\tz.enum(PROJECT_PERMISSIONS),\n\tz.enum(LEGACY_PROJECT_PERMISSIONS),\n])\n\nexport type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>\n\nexport const PERMISSION_SCOPE_SCHEMA = z.union([\n\tz.literal('project'),\n\tz.literal('team'),\n\tz.literal('user'),\n])\n\nexport type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>\n\nexport const PERMISSION_DETAILS_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tnew_permission: z.boolean(),\n\tdoes_set_all_read_only_languages: z.boolean(),\n\tis_hidden: z.boolean(),\n})\n\nexport type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>\n"],"names":[],"mappings":";;AAGa,MAAA,uBAAuB,EAAE,MAAM;AAAA,EAC3C,EAAE,KAAK,mBAAmB;AAAA,EAC1B,EAAE,KAAK,0BAA0B;AAClC,CAAC;AAIY,MAAA,0BAA0B,EAAE,MAAM;AAAA,EAC9C,EAAE,QAAQ,SAAS;AAAA,EACnB,EAAE,QAAQ,MAAM;AAAA,EAChB,EAAE,QAAQ,MAAM;AACjB,CAAC;AAIY,MAAA,4BAA4B,EAAE,OAAO;AAAA,EACjD,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAO,EAAE,OAAO;AAAA,EAChB,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,gBAAgB,EAAE,QAAQ;AAAA,EAC1B,kCAAkC,EAAE,QAAQ;AAAA,EAC5C,WAAW,EAAE,QAAQ;AACtB,CAAC;"}
|
package/dist/harmony88.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const types = require("./harmony45.cjs");
|
|
3
4
|
const permissionTemplateTypes = require("./harmony81.cjs");
|
|
4
5
|
const sharedTypes = require("./harmony85.cjs");
|
|
5
6
|
const teamRoleTypes = require("./harmony86.cjs");
|
|
@@ -36,7 +37,7 @@ const USER_PROJECTS_PERMISSIONS_SCHEMA = zod.z.object({
|
|
|
36
37
|
permissions: zod.z.union([
|
|
37
38
|
zod.z.object(
|
|
38
39
|
Object.fromEntries(
|
|
39
|
-
|
|
40
|
+
[...types.PROJECT_PERMISSIONS, ...types.LEGACY_PROJECT_PERMISSIONS].map((permission) => [
|
|
40
41
|
permission,
|
|
41
42
|
zod.z.union([zod.z.literal(0), zod.z.literal(1)]).optional()
|
|
42
43
|
])
|
package/dist/harmony88.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony88.cjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"harmony88.cjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { PERMISSION_SCHEMA } from '@features/publicApi/types/permissionTemplateTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { TEAM_ROLE_SCHEMA } from '@features/publicApi/types/teamRoleTypes'\nimport { z } from 'zod'\n\nexport const TEAM_USER_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamUserApiBaseHeaders = z.infer<typeof TEAM_USER_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_USER_SCHEMA = z.object({\n\tuser_id: z.number(),\n\temail: z.string().email(),\n\tfullname: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\trole: TEAM_ROLE_SCHEMA,\n})\n\nexport type TeamUser = z.infer<typeof TEAM_USER_SCHEMA>\n\nexport const TEAM_USER_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.number(), z.string().uuid()]),\n\tuserId: z.union([z.number(), z.string().uuid()]),\n})\n\nexport type TeamUserPathParams = z.infer<typeof TEAM_USER_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n})\n\nexport type TeamPathParams = z.infer<typeof TEAM_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_USER_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_user: TEAM_USER_SCHEMA,\n})\n\nexport type TeamUserResponse = z.infer<typeof TEAM_USER_RESPONSE_SCHEMA>\n\nexport const LIST_TEAM_USERS_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_users: z.array(TEAM_USER_SCHEMA),\n})\n\nexport type ListTeamUsersResponse = z.infer<typeof LIST_TEAM_USERS_RESPONSE_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA = z.object({\n\tprojectIds: z.array(z.union([z.string(), z.string().uuid()])),\n})\n\nexport type GetTeamUserPermissionsRequestBody = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA\n>\n\nexport const USER_PROJECTS_PERMISSIONS_SCHEMA = z.object({\n\tid: z.string(),\n\tpermissions: z.union([\n\t\tz.object(\n\t\t\tObject.fromEntries(\n\t\t\t\t[...PROJECT_PERMISSIONS, ...LEGACY_PROJECT_PERMISSIONS].map((permission) => [\n\t\t\t\t\tpermission,\n\t\t\t\t\tz.union([z.literal(0), z.literal(1)]).optional(),\n\t\t\t\t]),\n\t\t\t),\n\t\t),\n\t\tz.array(PERMISSION_SCHEMA),\n\t]),\n})\n\nexport type UserProjectsPermissionsSchema = z.infer<typeof USER_PROJECTS_PERMISSIONS_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA = z.object({\n\tprojects: z.array(USER_PROJECTS_PERMISSIONS_SCHEMA),\n})\n\nexport type GetTeamUserPermissionsResponse = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA\n>\n"],"names":["BASE_API_ENDPOINT_HEADER_SCHEMA","z","TEAM_ROLE_SCHEMA","PROJECT_PERMISSIONS","LEGACY_PROJECT_PERMISSIONS","PERMISSION_SCHEMA"],"mappings":";;;;;;;AAMO,MAAM,oCAAoCA,YAAAA;AAIpC,MAAA,mBAAmBC,MAAE,OAAO;AAAA,EACxC,SAASA,MAAE,OAAO;AAAA,EAClB,OAAOA,IAAA,EAAE,OAAO,EAAE,MAAM;AAAA,EACxB,UAAUA,MAAE,OAAO;AAAA,EACnB,YAAYA,MAAE,OAAO;AAAA,EACrB,sBAAsBA,MAAE,OAAO;AAAA,EAC/B,MAAMC,cAAAA;AACP,CAAC;AAIY,MAAA,+BAA+BD,MAAE,OAAO;AAAA,EACpD,QAAQA,IAAA,EAAE,MAAM,CAACA,MAAE,UAAUA,IAAAA,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAAA,EAC/C,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAE,EAAA,OAAU,GAAAA,MAAE,SAAS,MAAM,CAAC;AAChD,CAAC;AAIY,MAAA,0BAA0BA,MAAE,OAAO;AAAA,EAC/C,QAAQA,MAAE,OAAO;AAClB,CAAC;AAIY,MAAA,4BAA4BA,MAAE,OAAO;AAAA,EACjD,SAASA,MAAE,OAAO;AAAA,EAClB,WAAW;AACZ,CAAC;AAIY,MAAA,kCAAkCA,MAAE,OAAO;AAAA,EACvD,SAASA,MAAE,OAAO;AAAA,EAClB,YAAYA,IAAAA,EAAE,MAAM,gBAAgB;AACrC,CAAC;AAIY,MAAA,gDAAgDA,MAAE,OAAO;AAAA,EACrE,YAAYA,IAAAA,EAAE,MAAMA,IAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,SAAS,KAAM,CAAA,CAAC,CAAC;AAC7D,CAAC;AAMY,MAAA,mCAAmCA,MAAE,OAAO;AAAA,EACxD,IAAIA,MAAE,OAAO;AAAA,EACb,aAAaA,MAAE,MAAM;AAAA,IACpBA,IAAAA,EAAE;AAAA,MACD,OAAO;AAAA,QACN,CAAC,GAAGE,MAAqB,qBAAA,GAAGC,MAAAA,0BAA0B,EAAE,IAAI,CAAC,eAAe;AAAA,UAC3E;AAAA,UACAH,IAAAA,EAAE,MAAM,CAACA,IAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS;AAAA,QAC/C,CAAA;AAAA,MAAA;AAAA,IAEH;AAAA,IACAA,IAAA,EAAE,MAAMI,wBAAiB,iBAAA;AAAA,EACzB,CAAA;AACF,CAAC;AAIY,MAAA,4CAA4CJ,MAAE,OAAO;AAAA,EACjE,UAAUA,IAAAA,EAAE,MAAM,gCAAgC;AACnD,CAAC;;;;;;;;;;"}
|
package/dist/harmony88.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PROJECT_PERMISSIONS, LEGACY_PROJECT_PERMISSIONS } from "./harmony45.mjs";
|
|
2
|
+
import { PERMISSION_SCHEMA } from "./harmony81.mjs";
|
|
2
3
|
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony85.mjs";
|
|
3
4
|
import { TEAM_ROLE_SCHEMA } from "./harmony86.mjs";
|
|
4
5
|
import { z } from "zod";
|
|
@@ -34,7 +35,7 @@ const USER_PROJECTS_PERMISSIONS_SCHEMA = z.object({
|
|
|
34
35
|
permissions: z.union([
|
|
35
36
|
z.object(
|
|
36
37
|
Object.fromEntries(
|
|
37
|
-
|
|
38
|
+
[...PROJECT_PERMISSIONS, ...LEGACY_PROJECT_PERMISSIONS].map((permission) => [
|
|
38
39
|
permission,
|
|
39
40
|
z.union([z.literal(0), z.literal(1)]).optional()
|
|
40
41
|
])
|
package/dist/harmony88.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony88.mjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"harmony88.mjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import { LEGACY_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '@features/permissions/types'\nimport { PERMISSION_SCHEMA } from '@features/publicApi/types/permissionTemplateTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { TEAM_ROLE_SCHEMA } from '@features/publicApi/types/teamRoleTypes'\nimport { z } from 'zod'\n\nexport const TEAM_USER_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamUserApiBaseHeaders = z.infer<typeof TEAM_USER_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_USER_SCHEMA = z.object({\n\tuser_id: z.number(),\n\temail: z.string().email(),\n\tfullname: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\trole: TEAM_ROLE_SCHEMA,\n})\n\nexport type TeamUser = z.infer<typeof TEAM_USER_SCHEMA>\n\nexport const TEAM_USER_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.number(), z.string().uuid()]),\n\tuserId: z.union([z.number(), z.string().uuid()]),\n})\n\nexport type TeamUserPathParams = z.infer<typeof TEAM_USER_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n})\n\nexport type TeamPathParams = z.infer<typeof TEAM_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_USER_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_user: TEAM_USER_SCHEMA,\n})\n\nexport type TeamUserResponse = z.infer<typeof TEAM_USER_RESPONSE_SCHEMA>\n\nexport const LIST_TEAM_USERS_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_users: z.array(TEAM_USER_SCHEMA),\n})\n\nexport type ListTeamUsersResponse = z.infer<typeof LIST_TEAM_USERS_RESPONSE_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA = z.object({\n\tprojectIds: z.array(z.union([z.string(), z.string().uuid()])),\n})\n\nexport type GetTeamUserPermissionsRequestBody = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA\n>\n\nexport const USER_PROJECTS_PERMISSIONS_SCHEMA = z.object({\n\tid: z.string(),\n\tpermissions: z.union([\n\t\tz.object(\n\t\t\tObject.fromEntries(\n\t\t\t\t[...PROJECT_PERMISSIONS, ...LEGACY_PROJECT_PERMISSIONS].map((permission) => [\n\t\t\t\t\tpermission,\n\t\t\t\t\tz.union([z.literal(0), z.literal(1)]).optional(),\n\t\t\t\t]),\n\t\t\t),\n\t\t),\n\t\tz.array(PERMISSION_SCHEMA),\n\t]),\n})\n\nexport type UserProjectsPermissionsSchema = z.infer<typeof USER_PROJECTS_PERMISSIONS_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA = z.object({\n\tprojects: z.array(USER_PROJECTS_PERMISSIONS_SCHEMA),\n})\n\nexport type GetTeamUserPermissionsResponse = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA\n>\n"],"names":[],"mappings":";;;;;AAMO,MAAM,oCAAoC;AAIpC,MAAA,mBAAmB,EAAE,OAAO;AAAA,EACxC,SAAS,EAAE,OAAO;AAAA,EAClB,OAAO,EAAE,OAAO,EAAE,MAAM;AAAA,EACxB,UAAU,EAAE,OAAO;AAAA,EACnB,YAAY,EAAE,OAAO;AAAA,EACrB,sBAAsB,EAAE,OAAO;AAAA,EAC/B,MAAM;AACP,CAAC;AAIY,MAAA,+BAA+B,EAAE,OAAO;AAAA,EACpD,QAAQ,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAAA,EAC/C,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAU,GAAA,EAAE,SAAS,MAAM,CAAC;AAChD,CAAC;AAIY,MAAA,0BAA0B,EAAE,OAAO;AAAA,EAC/C,QAAQ,EAAE,OAAO;AAClB,CAAC;AAIY,MAAA,4BAA4B,EAAE,OAAO;AAAA,EACjD,SAAS,EAAE,OAAO;AAAA,EAClB,WAAW;AACZ,CAAC;AAIY,MAAA,kCAAkC,EAAE,OAAO;AAAA,EACvD,SAAS,EAAE,OAAO;AAAA,EAClB,YAAY,EAAE,MAAM,gBAAgB;AACrC,CAAC;AAIY,MAAA,gDAAgD,EAAE,OAAO;AAAA,EACrE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,SAAS,KAAM,CAAA,CAAC,CAAC;AAC7D,CAAC;AAMY,MAAA,mCAAmC,EAAE,OAAO;AAAA,EACxD,IAAI,EAAE,OAAO;AAAA,EACb,aAAa,EAAE,MAAM;AAAA,IACpB,EAAE;AAAA,MACD,OAAO;AAAA,QACN,CAAC,GAAG,qBAAqB,GAAG,0BAA0B,EAAE,IAAI,CAAC,eAAe;AAAA,UAC3E;AAAA,UACA,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS;AAAA,QAC/C,CAAA;AAAA,MAAA;AAAA,IAEH;AAAA,IACA,EAAE,MAAM,iBAAiB;AAAA,EACzB,CAAA;AACF,CAAC;AAIY,MAAA,4CAA4C,EAAE,OAAO;AAAA,EACjE,UAAU,EAAE,MAAM,gCAAgC;AACnD,CAAC;"}
|
package/dist/harmony96.cjs
CHANGED
|
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const louis = require("@lokalise/louis");
|
|
5
5
|
const clsx = require("./harmony92.cjs");
|
|
6
6
|
const React = require("react");
|
|
7
|
-
const NavItemContents = require("./
|
|
8
|
-
const styles_module = require("./
|
|
7
|
+
const NavItemContents = require("./harmony109.cjs");
|
|
8
|
+
const styles_module = require("./harmony110.cjs");
|
|
9
9
|
const NavigationTabsItem = React.forwardRef(
|
|
10
10
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
11
|
"div",
|
package/dist/harmony96.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Tooltip } from "@lokalise/louis";
|
|
3
3
|
import { clsx } from "./harmony92.mjs";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { NavItemContents } from "./
|
|
6
|
-
import classes from "./
|
|
5
|
+
import { NavItemContents } from "./harmony109.mjs";
|
|
6
|
+
import classes from "./harmony110.mjs";
|
|
7
7
|
const NavigationTabsItem = forwardRef(
|
|
8
8
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsx(Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsx(
|
|
9
9
|
"div",
|
package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ import { Wretch } from 'wretch';
|
|
|
11
11
|
export declare function useGetPromotedClassicSessionJwtQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder, teamId: number): import('@tanstack/react-query').UseQueryResult<{
|
|
12
12
|
accessToken: string;
|
|
13
13
|
refreshToken: string;
|
|
14
|
-
}
|
|
14
|
+
}, undefined>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const TEAM_ROLES: readonly ["owner", "admin", "biller", "member"];
|
|
2
2
|
export type TeamRole = (typeof TEAM_ROLES)[number];
|
|
3
|
+
export declare const LEGACY_PROJECT_PERMISSIONS: readonly ["glossary", "create_branches"];
|
|
4
|
+
export type LegacyProjectPermission = (typeof LEGACY_PROJECT_PERMISSIONS)[number];
|
|
3
5
|
export declare const PROJECT_PERMISSIONS: readonly ["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"];
|
|
4
6
|
export type ProjectPermission = (typeof PROJECT_PERMISSIONS)[number];
|
|
5
7
|
export declare const EXPERT_FEATURE_FLAGS: readonly ["homeFeatureLqai", "lionLfcFilesManagement", "lionFeatureFilesManagementBulkActions", "trexFeatureAutomaticTranslations", "perfFeatureReportingEngine", "homeFeatureAiLqaSuggestions", "homeFeatureAibilling", "homeBugfixAiTaskSaveTemplate", "homeFeatureAutomaticTranslationUse100TMMatch", "homeFeatureAutomaticTranslationUseFuzzyMatch", "homeMarketingBeta", "growthSubscriptionExtras", "growthCreditCardExpiry", "growthCancellationFlow", "growthPricingV2", "growthPricingV2WipUsageOverview", "metroWorkflowsManagement", "metroWorkflowsCreateCustomScratch", "metroWorkflowStatusReporting", "metroWorkflowsGa", "metroFeatureTemplateTriggerGates", "metroCustomWorkflows", "metroFeatureWorkflowsAiScoring", "metroFeatureWorkflowsInBranches", "maxMigrationForm", "gitLabRecursivePullEnabled", "perfFeatureAsyncExport", "exportAppleStringsReplaceU2028Disabled", "translationsFeatureRagModelSettings", "translationsFeatureAiScoring"];
|